:root {
  --bg: #08090d;
  --surface: #101219;
  --surface-2: #161821;
  --surface-3: #1b1c25;
  --border: rgba(255, 255, 255, 0.085);
  --muted: #9595a3;
  --text: #f6f6f8;
  --sub: #c0bec9;
  --coral: #ff673f;
  --red: #fa3b45;
  --grad: linear-gradient(115deg, #ff8740 0%, #ff573d 56%, #f72e50 100%);

  /* Typography Scale Tokens */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
  --fs-4xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter, "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ffa773;
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  left: -1000px;
  width: 0;
  height: 0;
}

.wrap {
  width: min(1440px, calc(100% - 76px));
  margin: auto;
}

/* Site Header */
.site-header {
  position: relative;
  z-index: 100;
  background: #090a0edb;
  border-bottom: 1px solid #ffffff0f;
  backdrop-filter: blur(20px);
}

.header-content {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 55px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 172px;
  height: auto;
  max-height: 46px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  height: 100%;
  white-space: nowrap;
}

.global-nav a {
  font-weight: 700;
  font-size: 15px;
  color: #a9aab2;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}

.global-nav a:hover,
.global-nav a.current {
  color: #fff;
}

.global-nav a.current:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 230px;
  padding: 10px 11px;
  background: #191a21;
  border: 1px solid #24252e;
  border-radius: 10px;
  color: #878895;
  font-size: 14px;
  text-align: left;
}

.search-button svg {
  width: 16px;
  height: 16px;
}

.search-button span {
  flex: 1;
}

.search-button kbd {
  font-size: 11px;
  color: #71727e;
  border: 1px solid #373942;
  padding: 1px 5px;
  border-radius: 4px;
}

.vip-header {
  display: none !important;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #ff9252, #e94053);
  border-radius: 100%;
  border: 2px solid #ffad8066;
  color: white;
  font-weight: 800;
}

/* Page Layout */
main {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.ambient-orb {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(75px);
  opacity: 0.14;
  border-radius: 50%;
}

.orb-left {
  width: 570px;
  height: 420px;
  background: #f14c57;
  left: -290px;
  top: 180px;
}

.orb-right {
  width: 460px;
  height: 460px;
  background: #663d91;
  right: -280px;
  top: 200px;
}

.page-area {
  padding: 28px 0 78px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8b8e9d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
}

.breadcrumb span {
  color: #b4b4be;
}

/* Watch Heading */
.watch-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 29px;
}

.watch-overline {
  font-size: 13px;
  color: #bfc0c9;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}

.on-air-dot {
  width: 7px;
  height: 7px;
  background: #ff6544;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ff654426;
}

.watch-overline i {
  width: 1px;
  background: #4f515e;
  height: 13px;
}

.watch-overline strong {
  color: #ff976e;
  letter-spacing: 0.5px;
}

.watch-heading h1 {
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 0 0 13px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.watch-heading h1 span {
  color: #ff8962;
}

.watch-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #a9a9b6;
  font-size: 14px;
  font-weight: 600;
}

.watch-meta > span:not(:first-child):not(.audio-badge):before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #555564;
  vertical-align: middle;
  border-radius: 50%;
  margin-right: 13px;
}

.watch-meta .star {
  color: #ffb763;
}

.audio-badge {
  color: #b7f1df;
  border-radius: 4px;
  background: #3ea99f20;
  border: 1px solid #3ea99f3e;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 600;
}

.heading-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.ghost-btn {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #ffffff19;
  background: #181923;
  color: #cccdd5;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ghost-btn:hover,
.ghost-btn.active {
  background: #25232a;
  border-color: #ff7c5a77;
  color: white;
}

.ghost-btn svg {
  width: 16px;
  height: 16px;
}

.ghost-btn.square {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.favorite-btn.saved {
  color: #ff6d62;
  border-color: #ff6d6255;
}

.favorite-btn.saved svg {
  fill: #ff6d62;
}

.theater-symbol {
  color: #d1d1dd;
  font-size: 20px;
  line-height: 1;
}

/* Columns & Stage */
.watch-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 18px;
  align-items: stretch;
}

.watch-theater {
  min-width: 0;
}

.watch-stage {
  height: 715px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, #25202b 0%, #17151e 38%, #0e0f16 76%);
  border: 1px solid #ffffff14;
  border-radius: 15px;
  isolation: isolate;
}

.stage-blur-image {
  position: absolute;
  inset: -80px;
  background-image: linear-gradient(90deg, #15121aab, #141018ad), url('assets/hero.webp');
  background-position: center;
  background-size: cover;
  filter: blur(70px) brightness(0.30) saturate(1.2);
  z-index: -1;
  opacity: 0.85;
}

.watch-stage:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 400px 460px at 50% 49%, #d8435c20, transparent 75%), linear-gradient(135deg, #ffffff04, transparent 48%);
}

.watch-stage:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #ffffff08;
  pointer-events: none;
  border-radius: 8px;
}

.stage-left-note {
  position: absolute;
  left: 41px;
  top: 39px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #8b8994;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 700;
}

.stage-left-note .note-line {
  background: var(--grad);
  width: 33px;
  height: 2px;
}

.stage-left-note b {
  color: #d3c5cf;
  line-height: 1.85;
  font-size: 14px;
  letter-spacing: 2px;
}

.stage-left-note > span:last-child {
  font-size: 13px;
}

.stage-right-note {
  position: absolute;
  top: 38px;
  right: 39px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #7e7887;
  font-weight: 700;
}

.stage-right-note span {
  color: #ff714d;
  font-size: 13px;
  margin: 0 9px;
}

.stage-num {
  position: absolute;
  right: 40px;
  bottom: 38px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  color: #ada0ac;
}

.stage-num strong {
  font-size: 48px;
  color: #38303b;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

/* Portrait Player */
.portrait-player {
  height: calc(100% - 24px);
  max-height: 685px;
  aspect-ratio: 9 / 16;
  position: relative;
  z-index: 1;
  background: #150f1a;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 22px 72px #000b, 0 0 80px #ff6c5321;
}

.portrait-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #100d15;
}

.video-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.53) 0%, transparent 19%, transparent 46%, rgba(0, 0, 0, 0.52) 79%, rgba(0, 0, 0, 0.93) 100%);
}

.frame-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff44;
  border-radius: 5px;
  background: #0007;
  backdrop-filter: blur(14px);
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.demo-badge i {
  width: 6px;
  height: 6px;
  background: #ff6b4a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ff6b4a3b;
}

.frame-counter {
  font-size: 13px;
  font-weight: 700;
  color: #ddd6d8;
  text-shadow: 0 1px 8px #000;
}

.center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 70px;
  width: 70px;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: #0007;
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}

.center-play svg {
  width: 34px;
  height: 34px;
  transform: translateX(2px);
  stroke: none;
  fill: currentColor;
}

.center-play:hover {
  background: #f95043e0;
  transform: translate(-50%, -50%) scale(1.08);
}

.portrait-player.playing:not(:hover) .center-play {
  opacity: 0;
  pointer-events: none;
}

.portrait-player.playing .center-play svg {
  transform: none;
}

.video-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-shadow: 0 3px 12px #000e;
  pointer-events: none;
}

.caption-kicker {
  letter-spacing: 1px;
  color: #ffb5a0;
  font-size: 13px;
  font-weight: 700;
}

.video-caption strong {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-weight: 800;
}

.video-caption small {
  font-size: 13px;
  color: #d9cbd0;
  line-height: 1.4;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 17px 14px;
  background: linear-gradient(180deg, transparent, #000c);
}

.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #eee;
}

.seek-row input {
  flex: 1;
  min-width: 0;
  height: 4px;
  border-radius: 10px;
  appearance: none;
  background: linear-gradient(to right, #ff674c var(--pct, 0%), #ffffff6c var(--pct, 0%));
  cursor: pointer;
}

.seek-row input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px #ff7b5055;
}

.seek-row input::-moz-range-thumb {
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn,
.skip-btn,
.speed-toggle {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  padding: 0;
  color: #f4f3f5;
  width: 28px;
  height: 28px;
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.skip-btn {
  position: relative;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.skip-btn small {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  font-size: 10px;
}

.speed-toggle {
  font-size: 13px;
  font-weight: 700;
}

.control-btn:hover,
.skip-btn:hover,
.speed-toggle:hover {
  color: #ff976f;
}

/* Under Player Bar */
.under-player-bar {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #15161e;
  border: 1px solid #ffffff10;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 0 25px;
  margin-top: -1px;
}

.sequence-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a2a3b0;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 600;
}

.sequence-btn:hover {
  color: #ff9c76;
}

.sequence-btn svg {
  width: 16px;
  height: 16px;
}

.sequence-btn.next {
  color: #fff;
}

.episode-current {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.episode-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8444, #fc3b4c);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.episode-current > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.episode-current strong {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.episode-current small {
  color: #a5a5b4;
  font-size: 13px;
}

.playback-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: #8f909d;
  font-size: 13px;
}

.playback-tip svg {
  width: 14px;
  height: 14px;
  color: #ff865a;
}

.playback-tip strong {
  color: #ccc;
}

.tip-separator {
  color: #5b5b6b;
}

/* Episode Sidebar */
.episode-sidebar {
  height: 793px;
  background: linear-gradient(150deg, #181922 0%, #12131a 85%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px 24px 16px;
  flex: none;
}

.sidebar-eyebrow,
.block-eyebrow {
  color: #ff9274;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.sidebar-eyebrow span {
  font-size: 13px;
}

.sidebar-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.sidebar-heading-row h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.episode-count {
  font-size: 13px;
  color: #a8a8b2;
  border: 1px solid #ffffff20;
  background: #20212b;
  border-radius: 5px;
  padding: 5px 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.sidebar-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #999ba8;
  font-size: 13px;
  margin-top: 20px;
  position: relative;
}

.source-dropdown {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f0f0f4;
  background: #22232c;
  border-radius: 7px;
  border: 1px solid #ffffff16;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48c69b;
}

.source-dropdown svg {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
  color: #a8a5ac;
}

.source-menu {
  position: absolute;
  right: 0;
  top: 38px;
  border: 1px solid #ffffff24;
  border-radius: 9px;
  background: #252630;
  box-shadow: 0 20px 36px #0009;
  width: 210px;
  z-index: 8;
  overflow: hidden;
}

.source-option {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

.source-option:hover {
  background: #ffffff12;
}

.source-option svg {
  width: 16px;
  height: 16px;
  color: #54d6a1;
}

.source-option span {
  color: #9b96a3;
  font-size: 13px;
}

.episode-range-row {
  margin: 0 20px;
  padding: 0 4px 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.episode-range-row button {
  flex: 1;
  border: 1px solid #2c2d38;
  background: #20212a;
  color: #acacb9;
  border-radius: 7px;
  height: 38px;
  font-size: 14px;
  font-weight: 600;
}

.episode-range-row button.selected {
  background: #ff76421b;
  border-color: #ff764271;
  color: #ffa77a;
}

.episode-grid {
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 17px 23px 21px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #43414a transparent;
}

.episode-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 1px solid #ffffff10;
  background: #262630;
  color: #d0cfd6;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border 0.15s;
}

.episode-tile:hover {
  background: #393440;
  border-color: #fe8e6788;
}

.episode-tile.is-active {
  border-color: #ff7854;
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 17px #f94a3e35;
}

.episode-tile.is-watched:not(.is-active):after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  bottom: 5px;
  border-radius: 50%;
  background: #79d1a8;
}

.episode-tile.is-locked {
  color: #aaa4ae;
}

.episode-tile .tiny-lock {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  color: #e3b968;
}

.episode-tile .tiny-lock svg {
  width: 10px;
  height: 10px;
}

.episode-tile.is-locked .tile-label {
  font-size: 15px;
}

.sidebar-foot {
  padding: 20px 23px 15px;
  background: #191920;
  border-top: 1px solid #ffffff10;
  flex: none;
}

.autonext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  cursor: pointer;
}

.autonext-words {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.autonext-words svg {
  color: #ff865e;
  width: 15px;
  height: 15px;
}

.autonext input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  width: 38px;
  height: 21px;
  border-radius: 20px;
  background: #464650;
  position: relative;
  transition: 0.2s;
}

.switch:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.autonext input:checked + .switch {
  background: #f36c45;
}

.autonext input:checked + .switch:before {
  transform: translateX(17px);
}

.sidebar-foot p {
  font-size: 13px;
  color: #9897a4;
  line-height: 1.55;
  margin: 11px 0 0;
}

.sidebar-promo {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 15px 22px;
  background: linear-gradient(105deg, #3a232b, #25202b);
  border-top: 1px solid #ff947429;
  flex: none;
}

.promo-symbol {
  color: #ff9e6e;
  font-size: 24px;
}

.sidebar-promo div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.sidebar-promo strong {
  font-size: 14px;
}

.sidebar-promo span {
  font-size: 13px;
  color: #e0aeb2;
}

.sidebar-promo > svg {
  width: 14px;
  height: 14px;
  color: #ff9e6e;
}

/* Below Watch Section */
.below-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 55px;
  margin: 65px 0 65px;
}

.movie-info {
  padding-bottom: 33px;
  border-bottom: 1px solid var(--border);
}

.info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.movie-info h2,
.comments h2,
.recommendations h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 9px 0 14px;
}

.info-link {
  background: none;
  border: 0;
  color: #9b98a3;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.info-link svg {
  width: 13px;
  height: 13px;
  transform: rotate(-90deg);
}

.info-link.collapsed svg {
  transform: rotate(90deg);
}

.movie-info p {
  color: #b0b1bd;
  font-size: 15px;
  line-height: 1.75;
  max-width: 800px;
  margin: 3px 0 20px;
}

.story-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.story-chips span {
  border: 1px solid #ffffff12;
  background: #191a21;
  color: #aaaab5;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Comments */
.comments {
  padding-top: 37px;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comments h2 {
  margin-bottom: 24px;
}

.comments h2 span {
  color: #8f8e9b;
  font-size: 18px;
}

.comments-header select {
  background: #1b1b24;
  color: #adacb9;
  border: 1px solid #ffffff15;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.comment-form {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 23px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #785070, #d5786d);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 14px;
  font-weight: 800;
  color: white;
}

.comment-avatar.me {
  background: var(--grad);
}

.comment-entry {
  flex: 1;
  min-width: 0;
  border: 1px solid #ffffff1e;
  border-radius: 10px;
  overflow: hidden;
  background: #15161e;
}

.comment-entry:focus-within {
  border-color: #ff82546b;
}

.comment-entry textarea {
  width: 100%;
  min-height: 74px;
  display: block;
  resize: vertical;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 15px;
  padding: 14px 16px;
}

.comment-entry textarea::placeholder {
  color: #777583;
}

.comment-bottom {
  border-top: 1px solid #ffffff0c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 15px;
}

.comment-bottom span {
  color: #6d6e7b;
  font-size: 13px;
}

.comment-submit {
  border: 0;
  border-radius: 6px;
  background: var(--grad);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-submit svg {
  width: 14px;
  height: 14px;
}

.comment-feed {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.comment-row {
  display: flex;
  gap: 11px;
}

.comment-content {
  flex: 1;
  border-bottom: 1px solid #ffffff0e;
  padding-bottom: 18px;
}

.comment-row:last-child .comment-content {
  border: 0;
}

.comment-byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-byline b {
  font-size: 14px;
}

.comment-byline small {
  font-size: 13px;
  color: #7f808d;
}

.comment-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #b3b3be;
  margin: 6px 0 9px;
}

.comment-like {
  display: flex;
  gap: 5px;
  align-items: center;
  background: none;
  border: 0;
  padding: 2px;
  color: #8f8e99;
  font-size: 13px;
}

.comment-like svg {
  width: 13px;
  height: 13px;
}

.comment-like.liked {
  color: #ff876a;
}

/* Sidebar Info & Stats */
.next-up,
.watch-stats {
  background: #15161d;
  border: 1px solid #ffffff10;
  border-radius: 13px;
  padding: 24px;
}

.next-up h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 11px 0 18px;
}

.up-next-card {
  display: flex;
  width: 100%;
  gap: 15px;
  background: #20212a;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  padding: 9px;
  text-align: left;
}

.up-next-card:hover {
  border-color: #ff764b;
}

.up-next-card img {
  width: 73px;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 6px;
}

.up-next-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  justify-content: center;
}

.up-next-copy b {
  font-size: 15px;
  font-weight: 700;
}

.up-next-copy small {
  color: #9e9dab;
  font-size: 13px;
}

.up-next-copy > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff9770;
  font-weight: 700;
  font-size: 13px;
}

.up-next-copy svg {
  width: 14px;
  height: 14px;
}

.watch-stats {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
  padding: 20px 10px;
}

.watch-stats > span {
  color: #f3f1f5;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.watch-stats small {
  display: block;
  color: #9494a2;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  white-space: nowrap;
}

/* Recommendations */
.recommendations {
  padding-top: 18px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 0;
}

.section-title h2 span {
  color: #ff8766;
}

.section-title a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a5a3ae;
  font-size: 14px;
  font-weight: 700;
}

.section-title a svg {
  width: 15px;
  height: 15px;
}

.section-title a:hover {
  color: #ff926b;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
}

.recommend-item {
  min-width: 0;
}

.recommend-cover {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background: #18151e;
  width: 100%;
  border: 1px solid #ffffff0e;
  padding: 0;
  aspect-ratio: 9 / 13.5;
  display: block;
}

.recommend-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.recommend-cover:hover img {
  transform: scale(1.05);
}

.recommend-cover::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #000b);
}

.recommend-cover .rec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  background: #f45b45;
  padding: 3px 7px;
  border-radius: 4px;
}

.recommend-cover .rec-episodes {
  position: absolute;
  bottom: 10px;
  right: 8px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.recommend-title {
  display: block;
  margin: 10px 0 3px;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: #f3f2f5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.recommend-sub {
  color: #92909d;
  font-size: 13px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid #ffffff12;
  background: #0b0c12;
}

.footer-wrap {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-wrap img {
  width: 140px;
  height: auto;
}

.footer-wrap p {
  font-size: 13px;
  color: #9695a0;
  margin: 7px 0;
}

.footer-wrap > div:nth-child(2) {
  display: flex;
  gap: 25px;
  color: #aaa9b4;
  font-size: 14px;
}

.footer-wrap small {
  font-size: 13px;
  color: #747481;
  max-width: 210px;
}

/* Dialog Overlay */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: #06070cd9;
  backdrop-filter: blur(7px);
}

.dialog-box {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 29px;
  background: #1a1b24;
  border: 1px solid #ffffff25;
  box-shadow: 0 22px 65px #0009;
  border-radius: 17px;
  text-align: center;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 13px;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: #a8a7b1;
}

.dialog-close svg {
  width: 19px;
  height: 19px;
}

.dialog-icon {
  font-size: 34px;
  color: #ff885b;
  margin-bottom: 8px;
}

.dialog-box h2 {
  font-size: 21px;
  margin: 0 0 10px;
  font-weight: 800;
}

.dialog-box p {
  font-size: 15px;
  line-height: 1.65;
  color: #b9b8c4;
  margin: 0 0 24px;
}

.dialog-okay {
  border: 0;
  background: var(--grad);
  border-radius: 8px;
  padding: 11px 24px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.toast {
  position: fixed;
  z-index: 1100;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #24252e;
  border: 1px solid #ff976e75;
  box-shadow: 0 15px 40px #0008;
  color: #fff;
  padding: 12px 19px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Theater Mode */
body.theater-mode .watch-columns {
  grid-template-columns: minmax(0, 1fr) 330px;
}

body.theater-mode .watch-stage {
  height: min(820px, calc(100vh - 155px));
}

body.theater-mode .episode-sidebar {
  height: calc(min(820px, 100vh - 155px) + 78px);
}

body.theater-mode .stage-left-note,
body.theater-mode .stage-right-note {
  opacity: 0.3;
}

/* Media Queries */
@media (max-width: 1300px) {
  .wrap {
    width: min(1360px, calc(100% - 48px));
  }
  .header-content {
    gap: 32px;
  }
  .global-nav {
    gap: 20px;
  }
  .search-button {
    width: 190px;
  }
  .watch-columns {
    grid-template-columns: minmax(0, 1fr) 353px;
  }
  .episode-sidebar {
    height: 773px;
  }
  .watch-stage {
    height: 695px;
  }
  .sidebar-header {
    padding-left: 19px;
    padding-right: 19px;
  }
  .episode-grid {
    padding-left: 16px;
    padding-right: 16px;
    gap: 7px;
  }
  .stage-left-note {
    left: 25px;
  }
  .stage-right-note {
    right: 20px;
  }
  .stage-num {
    right: 23px;
  }
  .recommend-grid {
    gap: 12px;
  }
}

@media (max-width: 1050px) {
  .header-content {
    gap: 25px;
  }
  .brand img {
    width: 151px;
  }
  .global-nav {
    gap: 13px;
  }
  .global-nav a {
    font-size: 14px;
  }
  .search-button {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }
  .search-button span,
  .search-button kbd {
    display: none;
  }
  .header-actions {
    gap: 9px;
  }
  .watch-columns {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 12px;
  }
  .watch-stage {
    height: 630px;
  }
  .portrait-player {
    max-height: 606px;
  }
  .episode-sidebar {
    height: 708px;
  }
  .sidebar-heading-row h2 {
    font-size: 18px;
  }
  .episode-range-row {
    margin: 0 14px;
    padding: 0 1px 13px;
  }
  .episode-range-row button {
    font-size: 13px;
  }
  .episode-grid {
    padding: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }
  .episode-tile {
    font-size: 14px;
  }
  .sidebar-foot {
    padding: 16px;
  }
  .sidebar-promo {
    padding: 12px;
  }
  .watch-heading {
    align-items: flex-start;
  }
  .stage-left-note,
  .stage-right-note,
  .stage-num {
    display: none;
  }
  .below-watch {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 30px;
  }
  .watch-stats {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .watch-stats > span {
    font-size: 21px;
  }
  .recommend-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .recommend-item:nth-child(6) {
    display: none;
  }
}

@media (max-width: 750px) {
  /* Rule R8: Prevent iOS Safari auto-zoom on inputs */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .wrap {
    width: calc(100% - 34px);
  }
  .header-content {
    height: 65px;
    gap: 15px;
  }
  .brand img {
    width: 140px;
  }
  .global-nav {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  .page-area {
    padding-top: 19px;
  }
  .breadcrumb {
    font-size: 13px;
    gap: 6px;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
  }
  .breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .watch-heading {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 17px;
  }
  .watch-heading h1 {
    font-size: 24px;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
  }
  .watch-meta {
    gap: 8px;
    font-size: 13px;
  }
  .watch-meta > span:not(:first-child):not(.audio-badge):before {
    margin-right: 7px;
  }
  .heading-buttons {
    align-self: flex-start;
  }
  .ghost-btn {
    height: 36px;
    font-size: 13px;
  }
  .watch-columns {
    grid-template-columns: 1fr;
  }
  .watch-stage {
    height: auto;
    aspect-ratio: 9 / 14.3;
    min-height: 570px;
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
  }
  .portrait-player {
    width: min(100%, 390px);
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: 100%;
    border-radius: 0;
    border-width: 0 1px;
    box-shadow: 0 0 70px #000c;
  }
  .stage-blur-image {
    filter: blur(60px) brightness(0.17);
  }
  .under-player-bar {
    border-radius: 0 0 12px 12px;
    height: 70px;
    padding: 0 14px;
  }
  .episode-current {
    gap: 8px;
  }
  .episode-current small {
    font-size: 13px;
  }
  .episode-current strong {
    font-size: 13px;
  }
  .sequence-btn {
    font-size: 13px;
    gap: 5px;
  }
  .sequence-btn svg {
    width: 14px;
    height: 14px;
  }
  .episode-sidebar {
    height: auto;
    min-height: 490px;
    max-height: none;
  }
  .sidebar-header {
    padding: 22px 20px 14px;
  }
  .episode-grid {
    height: 250px;
    flex: auto;
    min-height: 0;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
    padding: 15px 20px 20px;
  }
  .episode-tile {
    font-size: 14px;
  }
  .sidebar-foot {
    padding: 15px 20px;
  }
  .sidebar-promo {
    display: none;
  }
  .playback-tip {
    margin: 12px 0 16px;
    font-size: 13px;
  }
  .below-watch {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0 42px;
  }
  .info-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .watch-stats {
    margin: 0;
    grid-template-columns: repeat(3, 1fr);
  }
  .next-up,
  .watch-stats {
    padding: 17px;
  }
  .next-up h3 {
    margin: 7px 0 9px;
    font-size: 16px;
  }
  .up-next-card img {
    width: 52px;
  }
  .up-next-copy {
    gap: 4px;
  }
  .up-next-copy b {
    font-size: 14px;
  }
  .up-next-copy small {
    font-size: 13px;
  }
  .watch-stats > span {
    font-size: 19px;
  }
  .watch-stats small {
    font-size: 13px;
  }
  .recommend-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
  }
  .recommend-item:nth-child(5) {
    display: none;
  }
  .site-footer .footer-wrap {
    flex-wrap: wrap;
    padding: 27px 0;
    min-height: 120px;
  }
  .footer-wrap small {
    width: 100%;
    max-width: 100%;
  }
  .video-caption {
    bottom: 92px;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .site-header .wrap {
    width: calc(100% - 30px);
  }
  .brand img {
    width: 126px;
  }
  .header-content {
    gap: 5px;
  }
  .header-actions {
    gap: 7px;
  }
  .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .search-button {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 0;
  }
  .watch-overline {
    font-size: 13px;
    gap: 8px;
  }
  .watch-heading h1 {
    font-size: clamp(21px, 5.8vw, 25px);
  }
  .watch-heading h1 span {
    display: inline;
  }
  .watch-meta {
    font-size: 13px;
  }
  .heading-buttons {
    gap: 5px;
  }
  .ghost-btn {
    height: 35px;
    padding: 0 12px;
    font-size: 13px;
  }
  .watch-stage {
    min-height: 0;
    aspect-ratio: 9 / 16;
    display: block;
    background: #06060a;
    border: 0;
    border-radius: 9px 9px 0 0;
  }
  .watch-stage:after,
  .stage-blur-image {
    display: none;
  }
  .portrait-player {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    border: none;
    border-radius: 9px 9px 0 0;
    max-height: none;
  }
  .video-caption {
    bottom: 94px;
  }
  .video-caption strong {
    font-size: 18px;
  }
  .center-play {
    height: 60px;
    width: 60px;
  }
  .center-play svg {
    width: 30px;
    height: 30px;
  }
  .under-player-bar {
    height: 66px;
    padding: 0 11px;
  }
  .sequence-btn span {
    display: none;
  }
  .sequence-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #22232c;
    border-radius: 7px;
  }
  .sequence-btn svg {
    width: 16px;
    height: 16px;
  }
  .episode-current small {
    font-size: 13px;
  }
  .episode-current .episode-number {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .episode-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    height: 260px;
  }
  .sidebar-eyebrow {
    font-size: 13px;
  }
  .sidebar-heading-row h2 {
    font-size: 18px;
  }
  .sidebar-source {
    margin-top: 16px;
  }
  .playback-tip .tip-separator,
  .playback-tip span:last-child {
    display: none;
  }
  .below-watch {
    margin-top: 35px;
  }
  .movie-info h2,
  .comments h2 {
    font-size: 21px;
  }
  .movie-info p {
    font-size: 14px;
    line-height: 1.65;
  }
  .comments {
    padding-top: 28px;
  }
  .comment-bottom {
    flex-wrap: wrap;
  }
  .comment-bottom span {
    font-size: 13px;
  }
  .comment-submit {
    font-size: 13px;
    padding: 8px 12px;
  }
  .info-side {
    grid-template-columns: 1fr;
  }
  .watch-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .recommend-item:nth-child(4) {
    display: none;
  }
  .section-title h2 {
    font-size: 21px;
  }
  .section-title a {
    font-size: 13px;
  }
  .section-title a svg {
    width: 13px;
  }
  .footer-wrap > div:nth-child(2) {
    gap: 16px;
  }
  .watch-meta .audio-badge {
    padding: 3px 6px;
  }
  .seek-row {
    gap: 7px;
  }
  .video-caption {
    bottom: 98px;
  }
  .comment-form {
    gap: 8px;
  }
  .comment-avatar {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
