body.beplay-page {
  background:
    linear-gradient(180deg, #08111c 0, #05070c 360px),
    #05070c !important;
}

.beplay-page .app-shell {
  width: min(calc(100% - 24px), 980px) !important;
  padding-top: calc(188px + var(--safe-top)) !important;
}

.beplay-page .topbar {
  width: min(calc(100% - 20px), 980px) !important;
  border-radius: 0 0 16px 16px;
}

.beplay-page .panel {
  border: 1px solid rgba(88, 245, 255, .22) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    linear-gradient(180deg, rgba(11, 17, 27, .94), rgba(4, 8, 13, .98)) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 0, 0, .34) !important;
}

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

.beplay-page .video-frame,
.beplay-page .related-thumb {
  border-radius: 12px;
}

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

.beplay-page .video-meta h1 {
  color: #ffffff !important;
  text-transform: none;
  letter-spacing: 0;
}

.beplay-page .video-meta p,
.beplay-page .related-body span {
  color: #c4d4df !important;
}

.beplay-page .primary-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.beplay-page .action-btn {
  background: linear-gradient(135deg, var(--green), var(--blue)) !important;
  color: #07100d !important;
}

.beplay-page .action-btn.secondary {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #f8fbff !important;
}

.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 .content-grid {
  margin-top: 14px;
}

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

.beplay-page .summary-item,
.beplay-page .related-card {
  background: rgba(255, 255, 255, .045) !important;
  color: #f8fbff !important;
  border-radius: 12px;
}

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

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

.beplay-page .retention-dock {
  width: min(calc(100% - 20px), 980px);
  bottom: 10px;
  border: 1px solid rgba(54, 213, 255, .18);
  border-radius: 16px;
  background: rgba(5, 7, 12, .92);
}

@media (max-width: 640px) {
  .beplay-page .app-shell {
    width: min(calc(100% - 18px), 620px) !important;
    padding-top: calc(176px + var(--safe-top)) !important;
  }

  .beplay-page .brand-kicker strong {
    font-size: 16px;
  }

  .beplay-page .topnav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .beplay-page .related-card {
    grid-template-columns: 112px 1fr;
  }
}

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

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

.beplay-intro h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(34px, 6vw, 68px);
  line-height: .96;
  letter-spacing: 0;
}

.beplay-intro p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #bdd0dc;
  font-size: 16px;
  line-height: 1.55;
}

.channel-card {
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

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

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

.beplay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 16px;
  align-items: start;
}

.watch-column,
.side-column {
  display: grid;
  gap: 14px;
}

.playlist-panel {
  padding: 14px;
}

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

.video-search {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.video-search::placeholder {
  color: #8ea3b3;
}

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

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

.video-filter-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .06);
  color: #dce9f2;
  font-size: 12px;
  font-weight: 900;
}

.video-filter-tabs button.is-active {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #07100d;
}

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

.beplay-page .related-card {
  cursor: pointer;
}

.beplay-page .related-card.is-current {
  border-color: rgba(45, 255, 141, .58) !important;
  background: rgba(45, 255, 141, .10) !important;
}

.related-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #8ea3b3;
  font-size: 10px;
  font-weight: 850;
}

.comment-panel {
  padding: 14px;
}

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

.comment-form input,
.comment-form textarea {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  outline: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.comment-form input {
  min-height: 46px;
}

.comment-form textarea {
  resize: vertical;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #8ea3b3;
}

.comment-form button,
.channel-card button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #07100d;
  font-weight: 950;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.comment-item {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.comment-item strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.comment-item p {
  margin: 0;
  color: #c4d4df;
  font-size: 13px;
  line-height: 1.45;
}

.comment-empty {
  color: #8ea3b3;
  font-size: 13px;
  font-weight: 800;
}

.history-panel {
  padding: 14px;
}

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

.history-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, .045);
  color: #f8fbff;
  text-align: left;
}

.history-item-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #0b111b center/cover;
}

.history-item strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item span {
  display: block;
  margin-top: 4px;
  color: #8ea3b3;
  font-size: 11px;
  font-weight: 850;
}

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

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

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