body.beplay-page {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-2: #f5f5f3;
  --line: #e7e5e2;
  --green: #ff6a00;
  --blue: #ff9a3c;
  --gold: #f97316;
  --text: #171717;
  --muted: #6b7280;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0, rgba(255, 106, 0, .08), transparent 27%),
    linear-gradient(180deg, #ffffff 0, #f7f7f5 42%, #f1f1ee 100%) !important;
  padding-bottom: 40px;
}

body.beplay-page::before {
  display: none;
}

body.beplay-page > header.topbar {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 1 !important;
  width: min(calc(100% - 32px), 1240px) !important;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--text) !important;
  box-shadow: 0 12px 34px rgba(17, 17, 17, .06) !important;
  backdrop-filter: blur(18px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.beplay-page .brand-kicker {
  text-transform: none;
}

.beplay-page .brand-kicker span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.beplay-page .brand-kicker strong {
  color: var(--text);
  font-size: 18px;
}

.beplay-page .topnav {
  display: flex;
  gap: 8px;
  margin-top: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.beplay-page .topnav::-webkit-scrollbar {
  display: none;
}

.beplay-page .topnav a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #44403c;
  font-size: 12px;
  text-transform: none;
}

.beplay-page .topnav a:hover,
.beplay-page .topnav a:focus-visible,
.beplay-page .topnav a.is-active {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
  box-shadow: none;
}

.beplay-page .app-shell {
  width: min(calc(100% - 32px), 1240px) !important;
  padding: 30px 0 20px !important;
}

.beplay-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.beplay-intro h1 {
  max-width: 760px;
  margin: 10px 0 0;
  color: #171717;
  font-size: clamp(38px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -.045em;
}

.beplay-intro p {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.channel-card {
  min-width: 230px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, .05);
}

.channel-card strong {
  color: #171717;
  font-size: 18px;
}

.channel-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.channel-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.channel-card button,
.comment-form button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ff6a00;
  color: #111111;
  font-weight: 900;
}

.channel-card button[aria-pressed="true"] {
  background: #171717;
  color: #ffffff;
}

.beplay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, .72fr);
  gap: 20px;
  align-items: start;
}

.watch-column,
.side-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.beplay-layout,
.beplay-intro > div,
.beplay-page .player-panel,
.beplay-page .video-meta {
  min-width: 0;
}

.beplay-page .section {
  margin: 0;
}

.beplay-page .panel {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--text) !important;
  box-shadow: 0 12px 34px rgba(17, 17, 17, .055) !important;
}

.beplay-page .panel::before {
  display: none;
}

.beplay-page .player-panel {
  padding: clamp(10px, 2vw, 16px);
  border-color: #dedbd7 !important;
}

.beplay-page .video-frame {
  border: 0;
  border-radius: 10px;
  background: #050505;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.beplay-page .video-player-status {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.beplay-page .video-player-status[hidden] { display: none; }

.beplay-page .video-placeholder::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .74));
}

.beplay-page .video-placeholder[hidden] {
  display: none !important;
}

.beplay-page .video-placeholder-content strong {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .55);
  overflow-wrap: anywhere;
}

.beplay-page .video-placeholder-content {
  width: min(100%, 420px);
  min-width: 0;
  padding-inline: 8px;
}

.beplay-page .video-play-button {
  background: #ff6a00;
  color: #111111;
  box-shadow: 0 10px 26px rgba(255, 106, 0, .28);
}

.beplay-page .video-meta {
  padding: 20px 4px 4px;
}

.beplay-page .video-meta h1,
.beplay-page .video-meta h2 {
  margin: 0;
  color: #171717 !important;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.beplay-page .video-meta p {
  max-width: 70ch;
  color: var(--muted) !important;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.beplay-page .video-facts span {
  border-color: var(--line);
  background: #f7f7f5;
  color: #57534e;
}

.beplay-page .primary-actions {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.beplay-page .action-btn,
.beplay-page .feedback-btn,
.beplay-page .related-card button,
.beplay-page .retention-dock a {
  text-transform: none;
  letter-spacing: 0;
}

.beplay-page .action-btn.secondary {
  border: 1px solid var(--line) !important;
  background: #f7f7f5 !important;
  color: #171717 !important;
}

.beplay-page .action-btn.secondary:hover,
.beplay-page .action-btn.secondary:focus-visible {
  border-color: #ff6a00 !important;
  background: #fff7ed !important;
}

.beplay-page .section-title {
  align-items: center;
}

.beplay-page .section-title h2,
.beplay-page .summary-item strong,
.beplay-page .related-body strong {
  color: #171717 !important;
}

.beplay-page .section-title span,
.beplay-page .summary-item span {
  color: #d94f00;
}

.beplay-page .summary-grid,
.beplay-page .video-feedback,
.beplay-page .related-list {
  padding: 14px;
}

.beplay-page .summary-item,
.beplay-page .related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f8f6 !important;
  color: #171717 !important;
}

.beplay-page .summary-item {
  min-height: 82px;
}

.playlist-panel,
.comment-panel,
.history-panel {
  padding: 16px;
}

.playlist-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.video-search,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #ffffff;
  color: #171717;
}

.video-search {
  min-height: 44px;
  padding: 0 13px;
}

.comment-form input,
.comment-form textarea {
  padding: 12px;
}

.video-search:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .11);
}

.video-search::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #9ca3af;
}

.video-filter-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.video-filter-tabs::-webkit-scrollbar {
  display: none;
}

.video-filter-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #ffffff;
  color: #57534e;
  font-size: 12px;
  font-weight: 850;
}

.video-filter-tabs button.is-active {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.beplay-page .related-list {
  max-height: 690px;
  overflow: auto;
  padding: 0;
  scrollbar-width: thin;
}

.beplay-page .related-card {
  grid-template-columns: minmax(112px, 160px) 1fr;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.beplay-page .related-card:hover,
.beplay-page .related-card:focus-within {
  border-color: #d6d3d1;
  background: #ffffff !important;
  transform: translateY(-1px);
}

.beplay-page .related-card.is-current {
  border-color: rgba(255, 106, 0, .48) !important;
  background: #fff7ed !important;
}

.beplay-page .related-thumb {
  border-radius: 9px;
}

.beplay-page .related-body span,
.related-card-meta {
  color: var(--muted) !important;
}

.beplay-page .related-card button {
  min-height: 44px;
  border-color: #dedbd7;
  background: #ffffff;
  color: #171717;
  font-size: 12px;
}

.beplay-page .related-card button:hover,
.beplay-page .related-card button:focus-visible {
  border-color: #ff6a00;
  background: #fff7ed;
}

.beplay-page .feedback-btn {
  border-color: var(--line);
  background: #f8f8f6;
  color: #171717;
}

.beplay-page .feedback-btn.is-active {
  border-color: rgba(255, 106, 0, .48);
  background: #fff7ed;
  box-shadow: none;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form textarea {
  resize: vertical;
}

.comment-list,
.history-list {
  display: grid;
  gap: 8px;
}

.comment-list {
  margin-top: 12px;
}

.comment-item,
.history-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f8f6;
  color: #171717;
}

.comment-item strong,
.comment-item p,
.history-item strong {
  color: #171717;
}

.comment-item time,
.history-item span,
.comment-empty {
  color: var(--muted);
}

.history-item-thumb {
  border-color: var(--line);
  background-color: #171717;
}

.beplay-page .retention-dock {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(17, 17, 17, .12);
  backdrop-filter: blur(16px);
}

.beplay-page .retention-dock a {
  color: #44403c;
}

.beplay-page .toast {
  background: #171717;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 17, 17, .18);
}

@media (max-width: 960px) {
  .beplay-intro,
  .beplay-layout {
    grid-template-columns: 1fr;
  }

  .channel-card {
    min-width: 0;
    width: 100%;
  }

  .beplay-page .related-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  body.beplay-page {
    padding-bottom: calc(82px + var(--safe-bottom));
  }

  .beplay-page .topbar,
  .beplay-page .app-shell {
    width: min(calc(100% - 18px), 700px) !important;
  }

  .beplay-page .topbar {
    margin-top: 10px;
    padding: 12px;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .beplay-page .topnav {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .beplay-page .app-shell {
    padding-top: 22px !important;
  }

  .beplay-intro {
    gap: 16px;
    margin-bottom: 18px;
  }

  .beplay-intro h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .beplay-intro p {
    font-size: 15px;
  }

  .beplay-page .player-panel {
    padding: 8px;
  }

  .beplay-page .video-meta {
    padding: 16px 6px 6px;
  }

  .beplay-page .primary-actions,
  .beplay-page .summary-grid,
  .beplay-page .video-feedback {
    grid-template-columns: 1fr;
  }

  .beplay-page .related-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .beplay-page .retention-dock {
    display: grid;
    left: 9px;
    right: 9px;
    bottom: 8px;
    width: auto;
    border-radius: 14px;
    transform: none;
  }
}

@media (max-width: 420px) {
  .beplay-page .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 9px;
  }

  .beplay-page .related-card button {
    min-height: 44px;
  }
}
