:root {
  --bg: #07070a;
  --panel: #111116;
  --panel-2: #17171d;
  --text: #f7f4ef;
  --muted: #95939d;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #f0b35c;
  --accent-2: #ff7b57;
  --shell: min(1200px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin-inline: auto; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); opacity: .13; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; background: #d97837; top: 5%; right: -200px; }
.ambient-two { width: 320px; height: 320px; background: #493ac4; top: 58%; left: -180px; }

.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 146px; height: auto; }
.desktop-nav { display: flex; gap: 38px; font-size: 14px; color: var(--muted); }
.desktop-nav a { position: relative; padding: 32px 0; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a.active::after { content: ""; position: absolute; bottom: 22px; left: 50%; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .login-button { border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: .2s; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-button:hover, .login-button:hover { border-color: rgba(240,179,92,.5); background: rgba(240,179,92,.08); }
.login-button { max-width: 250px; padding: 11px 17px; border-radius: 24px; display: inline-flex; align-items: center; }
.login-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 7px; }

.hero { min-height: 600px; position: relative; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 50px 0 80px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 11px; letter-spacing: .24em; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 30px; height: 1px; background: var(--accent); }
.hero h1 { margin: 25px 0 22px; font-family: Georgia, "Songti SC", serif; font-size: clamp(50px, 6vw, 82px); line-height: 1.02; letter-spacing: -.05em; font-weight: 400; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 460px; }
.hero-actions { display: flex; gap: 13px; margin-top: 32px; }
.primary-button, .secondary-button, .membership-button { border: 0; cursor: pointer; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { background: linear-gradient(135deg, var(--accent), #d78c3c); color: #17100a; padding: 14px 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.primary-button svg { width: 15px; fill: currentColor; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240,179,92,.22); }
.secondary-button { padding: 14px 22px; color: #fff; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 4px; }
.secondary-button:hover { background: rgba(255,255,255,.1); }
.hero-meta { display: flex; gap: 10px; margin-top: 24px; color: #77757e; font-size: 11px; }
.hero-meta span { border: 1px solid var(--line); padding: 5px 8px; border-radius: 2px; }
.hero-reel { height: 520px; min-width: 0; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--line); border-radius: 120px 12px 12px 12px; background: radial-gradient(circle at 80% 10%, rgba(240,179,92,.15), transparent 32%), linear-gradient(145deg, #17151c, #0d0d12); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.hero-reel-head, .hero-reel-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.hero-reel-head { padding: 38px 30px 8px 52px; }
.hero-reel-head > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.hero-reel-head small { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.hero-reel-head strong { font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 400; }
.hero-reel-controls { display: flex; gap: 7px; }
.hero-reel-controls button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s; }
.hero-reel-controls button:hover { border-color: var(--accent); color: var(--accent); }
.hero-stack { min-width: 0; display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 22px 27% 22px 7%; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; touch-action: pan-y; }
.hero-stack::-webkit-scrollbar { display: none; }
.hero-stack.dragging { cursor: grabbing; user-select: none; }
.hero-stack-loading { width: 100%; align-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.hero-stack-loading button { margin-top: 12px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.05); cursor: pointer; }
.hero-stack-card { position: relative; flex: 0 0 67%; min-width: 0; margin-right: -22%; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; opacity: .42; transform: scale(.82) rotate(2.5deg); transform-origin: center bottom; transition: opacity .28s, transform .28s, filter .28s; filter: saturate(.65) brightness(.7); }
.hero-stack-card:nth-child(even) { transform: scale(.82) rotate(-2.5deg); }
.hero-stack-card.active { z-index: 5; opacity: 1; transform: scale(1) rotate(0); filter: none; }
.hero-stack-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: linear-gradient(145deg,#49352f,#17151d 72%); box-shadow: 0 18px 35px rgba(0,0,0,.5); }
.hero-stack-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.48), transparent 52%); }
.hero-stack-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stack-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(240,179,92,.92); color: #18100a; font-size: 15px; transform: translate(-50%,-50%) scale(.75); opacity: 0; transition: .2s; box-shadow: 0 10px 35px rgba(0,0,0,.45); }
.hero-stack-card.active:hover .hero-stack-play, .hero-stack-card.active:focus-visible .hero-stack-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hero-stack-copy { display: flex; flex-direction: column; min-width: 0; padding: 14px 3px 0; opacity: 0; transform: translateY(4px); text-shadow: 0 2px 8px #000; transition: opacity .2s, transform .2s; }
.hero-stack-card.active .hero-stack-copy { opacity: 1; transform: translateY(0); }
.hero-stack-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.hero-stack-copy small { margin-top: 5px; overflow: hidden; color: #aaa7ae; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hero-reel-foot { padding: 7px 30px 24px 52px; color: #77757e; font-size: 10px; letter-spacing: .08em; }
.hero-reel-foot span:first-child { color: var(--accent); }

.search-panel { max-height: 0; opacity: 0; overflow: hidden; transition: .3s; }
.search-panel.open { max-height: 110px; opacity: 1; padding-top: 28px; }
.search-box { height: 62px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--accent); }
.search-box svg { width: 21px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font-size: 18px; }
.search-box input::placeholder { color: #55535b; }
.search-box button { cursor: pointer; }
.search-box .search-submit { height: 36px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #17110a; font-size: 12px; font-weight: 700; }
.search-box .search-close { width: 34px; border: 0; background: none; color: #777; font-size: 26px; }

.content-section { padding: 92px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-heading h2, .membership h2 { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: 34px; margin: 8px 0 0; }
.catalog-summary { color: var(--muted); font-size: 12px; }
.catalog-nav { margin-bottom: 32px; border-top: 1px solid var(--line); }
.catalog-nav-loading { padding: 18px 0; color: var(--muted); }
.catalog-nav-row { min-width: 0; display: grid; grid-template-columns: 72px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.catalog-nav-row > strong { color: var(--text); font-size: 13px; }
.catalog-nav-row > div { min-width: 0; display: flex; gap: 8px; padding: 11px 0; overflow-x: auto; scrollbar-width: none; }
.catalog-nav-row > div::-webkit-scrollbar { display: none; }
.catalog-nav-all { background: rgba(255,255,255,.018); }
.category { flex: 0 0 auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s; }
.category:hover, .category.active { color: #17100a; background: var(--accent); border-color: var(--accent); }
.category small { margin-left: 6px; opacity: .65; font-size: 9px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 18px; }
.movie-card { cursor: pointer; min-width: 0; animation: fadeIn .35s ease both; }
.poster { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: 5px; background: #0d0e12; isolation: isolate; }
.poster-media { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.poster.has-image::before, .poster.has-image .poster-glow { display: none; }
.poster::before { content: ""; position: absolute; width: 76%; height: 65%; border-radius: 48% 52% 20% 25%; background: var(--shape); left: 12%; bottom: -12%; transform: rotate(var(--angle)); filter: blur(.2px); z-index: -1; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(4,4,7,.8)); }
.poster-glow { position: absolute; width: 80px; height: 80px; top: 15%; right: 12%; border-radius: 50%; background: var(--glow); filter: blur(3px); box-shadow: 0 0 45px var(--glow); }
.poster-rank { position: absolute; z-index: 2; top: 12px; left: 12px; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(7,7,10,.6); backdrop-filter: blur(8px); font-size: 10px; border: 1px solid rgba(255,255,255,.15); }
.poster-quality { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 4px 6px; border-radius: 2px; background: rgba(7,7,10,.72); font-size: 9px; color: #ddd; }
.poster-play { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(4,4,6,.28); transition: opacity .2s; }
.poster-play span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(240,179,92,.93); color: #14100b; font-size: 18px; padding-left: 3px; transform: scale(.8); transition: transform .2s; }
.movie-card:hover .poster-play { opacity: 1; }
.movie-card:hover .poster-play span { transform: scale(1); }
.movie-info { padding-top: 13px; }
.movie-info h3 { margin: 0 0 7px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-info p { color: #77757d; margin: 0; font-size: 11px; }
.movie-info .movie-date { margin-bottom: 5px; color: #c4a879; font-variant-numeric: tabular-nums; }
.catalog-loading, .catalog-error { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.catalog-error { align-content: center; gap: 9px; }
.catalog-error strong { color: var(--text); }
.catalog-error span { font-size: 11px; }
.catalog-error button { padding: 8px 13px; border: 1px solid var(--line); background: transparent; color: var(--accent); }
.empty-state { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-state span { color: var(--accent); font-size: 40px; }
.empty-state h3 { color: #ddd; margin: 12px 0 8px; }
.empty-state p { margin: 0; font-size: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 42px; }
.pagination button { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #111116; color: var(--muted); cursor: pointer; }
.pagination button:hover, .pagination button.active { border-color: var(--accent); color: #17100a; background: var(--accent); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pagination span { color: var(--muted); }

.membership { min-height: 330px; margin-bottom: 90px; padding: 58px 64px; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 55px; align-items: center; position: relative; overflow: hidden; background: linear-gradient(120deg, #1a1514, #181820 55%, #201712); border: 1px solid var(--line); }
.membership::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; border: 1px solid rgba(240,179,92,.17); border-radius: 50%; box-shadow: 0 0 0 40px rgba(240,179,92,.025), 0 0 0 80px rgba(240,179,92,.018); }
.membership-copy { position: relative; z-index: 1; }
.membership-copy p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 380px; }
.benefits { border-left: 1px solid var(--line); }
.benefits div { display: flex; gap: 15px; padding: 12px 24px; }
.benefits strong { color: var(--accent); font-size: 11px; }
.benefits span { color: #c3c0c6; font-size: 13px; }
.membership-button { position: relative; z-index: 1; white-space: nowrap; padding: 15px 20px; background: transparent; border: 1px solid rgba(240,179,92,.5); color: var(--accent); }
.membership-button:hover { background: rgba(240,179,92,.08); }
.membership-button span { margin-left: 20px; }

.footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #67656d; font-size: 11px; }
.footer p { max-width: 400px; text-align: center; }
.footer-brand { opacity: .72; }
.footer-brand .brand-logo { width: 130px; }
.mobile-nav { display: none; }

.modal { width: min(820px, calc(100% - 30px)); max-height: 88vh; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: #111116; color: #fff; overflow: hidden; overscroll-behavior: contain; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.modal[open] { display: grid; grid-template-columns: .82fr 1.18fr; animation: modalIn .25s ease both; }
.modal::backdrop { background: rgba(2,2,4,.78); backdrop-filter: blur(8px); }
.modal-close { position: absolute; z-index: 5; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(5,5,7,.55); color: #fff; font-size: 22px; cursor: pointer; }
.movie-switch-controls { position: absolute; z-index: 5; left: 14px; top: 14px; display: flex; align-items: center; gap: 7px; padding: 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(5,5,7,.72); backdrop-filter: blur(8px); }
.movie-switch-controls button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); cursor: pointer; }
.movie-switch-controls button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.movie-switch-controls button:disabled { opacity: .3; cursor: default; }
.movie-switch-controls span { min-width: 48px; color: #bbb7c0; font-size: 9px; letter-spacing: .08em; text-align: center; }
.modal-poster { min-height: 490px; background: var(--poster, linear-gradient(145deg, #382523, #111118)); position: relative; overflow: hidden; }
.modal-poster.has-image { min-height: 0; align-self: center; aspect-ratio: 16 / 9; background-color: #09090c; background-position: center; background-size: contain; background-repeat: no-repeat; }
.modal-poster.has-image::before, .modal-poster.has-image::after { display: none; }
.modal-poster::before { content: ""; position: absolute; width: 100%; height: 75%; border-radius: 50%; bottom: -20%; left: 0; background: var(--shape, #0a0a0e); transform: rotate(var(--angle, -8deg)); }
.modal-poster::after { content: ""; position: absolute; width: 110px; height: 110px; right: 20%; top: 18%; border-radius: 50%; background: var(--glow, #e9a75a); box-shadow: 0 0 60px var(--glow, #e9a75a); }
.modal-body { padding: 70px 45px 42px; align-self: center; }
.modal-label { color: var(--accent); font-size: 10px; letter-spacing: .2em; font-weight: 700; }
.modal-body h2, .login-form h2 { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: 38px; margin: 13px 0; }
.modal-meta { color: #9c99a2; font-size: 12px; }
.modal-description { color: #aaa7ae; font-size: 13px; line-height: 1.9; margin: 25px 0 32px; }
.modal-actions { display: flex; gap: 10px; }
.player-modal { width: min(1120px, calc(100% - 30px)); padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: #08080b; color: #fff; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.75); }
.player-modal[open] { display: block; }
.player-stage { position: relative; background: #000; }
.player-modal video { display: block; width: 100%; max-height: 76vh; aspect-ratio: 16 / 9; background: #000; }
.player-corner-logo { position: absolute; z-index: 2; width: clamp(76px, 12%, 150px); height: auto; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.player-corner-logo[hidden] { display: none; }
.player-corner-logo[data-position="top_left"] { top: 2.5%; left: 2.5%; }
.player-corner-logo[data-position="top_right"] { top: 2.5%; right: 2.5%; }
.player-corner-logo[data-position="bottom_left"] { bottom: 8%; left: 2.5%; }
.player-corner-logo[data-position="bottom_right"] { right: 2.5%; bottom: 8%; }
.player-stage-actions { position: absolute; z-index: 3; top: 12px; right: 56px; display: flex; gap: 8px; }
.player-stage-actions[hidden], .player-progress-controls[hidden] { display: none; }
.player-stage-actions button { border: 1px solid rgba(255,255,255,.36); border-radius: 5px; padding: 7px 9px; color: #fff; background: rgba(8,8,11,.72); font: inherit; font-size: 12px; cursor: pointer; backdrop-filter: blur(6px); }
.player-stage-actions button:hover { border-color: var(--accent); color: var(--accent); }
.player-progress-controls { position: absolute; z-index: 3; right: 14px; bottom: 12px; left: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 5px; background: rgba(8,8,11,.72); color: #fff; font-size: 11px; backdrop-filter: blur(6px); }
.player-progress-controls input { accent-color: var(--accent); min-width: 0; }
.player-stage:fullscreen { width: 100vw; height: 100vh; display: grid; place-items: center; background: #000; }
.player-stage:fullscreen video { width: 100%; max-height: 100vh; }
.player-stage:fullscreen .player-corner-logo[data-position="bottom_left"], .player-stage:fullscreen .player-corner-logo[data-position="bottom_right"] { bottom: 5%; }
.player-modal.is-floating { position: fixed; inset: auto 16px 16px auto; width: min(440px, calc(100vw - 32px)); margin: 0; z-index: 1000; }
.player-modal.is-floating video { max-height: min(48vh, 248px); }
.player-modal.is-floating .player-status { padding: 9px 12px; font-size: 11px; }
.player-modal.is-floating .modal-close { z-index: 4; }
.player-modal.is-floating .player-stage-actions { top: 8px; right: 48px; gap: 4px; }
.player-modal.is-floating .player-stage-actions button { padding: 5px 6px; font-size: 10px; }
.player-modal.is-floating .player-progress-controls { right: 8px; bottom: 8px; left: 8px; padding: 5px 7px; font-size: 10px; }
.player-status { display: flex; justify-content: space-between; gap: 20px; padding: 15px 20px; color: var(--muted); font-size: 12px; }
.player-status strong { color: #fff; }
.movie-switch-hint { margin: 16px 0 0; color: #67656e; font-size: 10px; }
.modal.switching-down .modal-poster, .modal.switching-down .modal-body { animation: detailSwitchDown .22s ease both; }
.modal.switching-up .modal-poster, .modal.switching-up .modal-body { animation: detailSwitchUp .22s ease both; }
.favorite-button { padding: 13px 18px; border: 1px solid var(--line); background: transparent; color: #ddd; cursor: pointer; }
.favorite-button.active { border-color: var(--accent); color: var(--accent); }
.login-modal[open] { grid-template-columns: .9fr 1.1fr; }
.login-art { min-height: 500px; padding: 48px 38px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 50% 28%, rgba(240,179,92,.5), transparent 16%), repeating-radial-gradient(ellipse at 50% 28%, transparent 0 30px, rgba(240,179,92,.08) 31px 32px), linear-gradient(145deg, #2d1f1e, #0d0d13); }
.login-art span { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-size: 12px; margin-bottom: 20px; }
.login-art strong { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: 27px; line-height: 1.4; }
.login-form { padding: 55px 45px; display: flex; flex-direction: column; justify-content: center; }
.login-form > p { color: #77757f; font-size: 12px; margin: -4px 0 25px; }
.login-form label { color: #aaa7af; font-size: 11px; margin-bottom: 15px; }
.login-form input { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px; background: #0c0c10; color: #fff; outline: none; }
.login-form input:focus { border-color: rgba(240,179,92,.55); }
.login-form .primary-button { width: 100%; margin-top: 5px; }
.adult-confirm { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.adult-confirm input { width: 16px; height: 16px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.adult-confirm span { color: #8f8c95; }
.form-feedback { display: none; margin: -3px 0 13px; padding: 9px 11px; border: 1px solid rgba(255,123,87,.28); border-radius: 3px; background: rgba(255,123,87,.08); color: #f2a38d; font-size: 11px; line-height: 1.55; }
.form-feedback:not(:empty) { display: block; }
.register-art { background: radial-gradient(circle at 50% 28%, rgba(204,106,73,.5), transparent 16%), repeating-radial-gradient(ellipse at 50% 28%, transparent 0 30px, rgba(240,179,92,.08) 31px 32px), linear-gradient(145deg, #311c1d, #0d0d13); }
.member-center-modal { width: min(980px, calc(100% - 30px)); max-height: 88vh; padding: 0; display: none; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
.member-center-modal[open] { display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); animation: modalIn .25s ease both; }
.member-center-head { padding: 36px 42px 26px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg,#1c1717,#111116 65%); }
.member-center-head h2 { margin: 9px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 400; }
.member-center-head p { margin: 0; max-width: 680px; color: #8f8c95; font-size: 12px; overflow-wrap: anywhere; }
.member-center-head .secondary-button { padding: 11px 17px; background: transparent; border: 1px solid var(--line); color: #bbb8c0; }
.member-center-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.member-center-actions [hidden] { display: none; }
.profile-completion { margin: 20px 42px 0; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(240,179,92,.34); background: rgba(240,179,92,.07); }
.profile-completion[hidden] { display: none; }
.profile-completion div { display: grid; gap: 5px; }
.profile-completion strong { color: #e9d0ab; font-size: 13px; }
.profile-completion span { color: #8f8c95; font-size: 11px; }
.profile-completion button { flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgba(240,179,92,.45); background: #171316; color: var(--accent); }
.purchase-history { padding: 28px 42px 38px; min-height: 330px; overflow-y: auto; }
.purchase-history-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.purchase-history-title h3 { margin: 0 0 6px; font-size: 18px; }
.purchase-history-title p { margin: 0; color: #77757f; font-size: 11px; }
.purchase-history-title button, .member-empty button { border: 1px solid var(--line); background: #15151a; color: #bbb8c0; padding: 8px 12px; cursor: pointer; }
.account-security { margin: 0 0 18px; border: 1px solid var(--line); background: #101015; }
.account-security[hidden] { display: none; }
.account-security summary { padding: 13px 15px; color: #c9c5cd; cursor: pointer; font-size: 12px; }
.account-security form { padding: 0 15px 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 10px; }
.account-security label { display: grid; gap: 6px; color: #85828c; font-size: 10px; }
.account-security input { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); background: #09090d; color: #f5f2f3; }
.account-security button { padding: 10px 13px; border: 1px solid rgba(240,179,92,.45); background: #171316; color: var(--accent); }
.account-security .form-feedback { grid-column: 1 / -1; margin: 0; min-height: 16px; color: #b9b5be; font-size: 11px; }
.purchase-history-list { display: grid; gap: 12px; }
.purchase-record { display: grid; grid-template-columns: 180px minmax(0,1fr); border: 1px solid var(--line); background: #0d0d11; }
.purchase-record-cover { aspect-ratio: 16/9; align-self: center; display: grid; place-items: center; background: #08080b; color: #66636b; font-size: 11px; overflow: hidden; }
.purchase-record-cover img { width: 100%; height: 100%; object-fit: contain; }
.purchase-record-main { padding: 17px 19px; min-width: 0; }
.purchase-record-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.purchase-record h4 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.purchase-record-main > p { margin: 7px 0 13px; color: #77757f; font-size: 11px; }
.entitlement-status { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; font-size: 10px; }
.entitlement-status.active { color: #95d5a5; background: rgba(63,142,82,.15); border: 1px solid rgba(63,142,82,.3); }
.entitlement-status.expired { color: #8c8991; background: #17171c; border: 1px solid #282830; }
.purchase-record dl { margin: 0 0 13px; display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 12px; }
.purchase-record dl div { min-width: 0; }
.purchase-record dt { color: #66636b; font-size: 9px; }
.purchase-record dd { margin: 4px 0 0; color: #bbb8c0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.purchase-record-main > button { border: 0; padding: 7px 0; background: none; color: var(--accent); font-size: 11px; cursor: pointer; }
.member-loading, .member-empty { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #77757f; font-size: 12px; text-align: center; }
.member-empty strong { color: #bbb8c0; }
.adult-confirmation-needed button { border-color: rgba(240,179,92,.45); color: var(--accent); }
.purchase-channels { display:grid; gap:10px; margin:4px 0 18px; }
.purchase-channels button { width:100%; padding:13px 14px; border:1px solid rgba(240,179,92,.35); border-radius:3px; background:#151217; color:#f2d3a4; cursor:pointer; }
.purchase-channels button:hover { border-color:#f0b35c; background:#1e1819; }
.purchase-unavailable { margin: 0; padding: 13px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 3px; background: #111116; color: #8f8c95; font-size: 12px; line-height: 1.7; }
.form-link { border: 0; background: none; color: var(--accent); font-size: 11px; margin-top: 17px; cursor: pointer; }
.entry-popup { width: min(440px, calc(100% - 30px)); max-height: 88vh; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: #111116; color: #fff; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.entry-popup[open] { animation: modalIn .25s ease both; }
.entry-popup::backdrop { background: rgba(2,2,4,.8); backdrop-filter: blur(8px); }
.entry-popup > img { width: 100%; max-height: 260px; object-fit: contain; background: #09090c; }
.entry-popup-close { position: absolute; z-index: 2; right: 12px; top: 12px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(5,5,7,.65); color: #fff; font-size: 20px; }
.entry-popup-body { padding: 32px; }
.entry-popup-body h2 { margin: 12px 0; font-family: Georgia, "Songti SC", serif; font-size: 29px; font-weight: 400; }
.entry-popup-body p { margin: 0 0 24px; white-space: pre-wrap; color: #aaa7ae; font-size: 13px; line-height: 1.8; }
.entry-popup-body .primary-button { display: inline-flex; align-items: center; justify-content: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 35px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border: 1px solid rgba(240,179,92,.3); border-radius: 3px; background: #1b1817; color: #eee; font-size: 12px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes detailSwitchDown { from { opacity: .25; transform: translateY(18px); } }
@keyframes detailSwitchUp { from { opacity: .25; transform: translateY(-18px); } }

@media (max-width: 900px) {
  .hero { min-height: 550px; grid-template-columns: 1fr 1fr; }
  .hero-reel { height: 440px; border-radius: 90px 12px 12px 12px; }
  .movie-grid { grid-template-columns: repeat(3, 1fr); }
  .membership { grid-template-columns: 1fr 1fr; padding: 45px; }
  .membership-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 30px); }
  body { padding-bottom: 70px; }
  .topbar { height: 66px; }
  .desktop-nav, .login-button { display: none; }
  .brand-logo { width: 126px; }
  .hero { display: block; min-height: 760px; overflow: visible; border-bottom: 0; }
  .hero-copy { padding: 45px 0 0; }
  .hero h1 { font-size: 49px; margin-top: 18px; }
  .hero-copy > p { max-width: 330px; font-size: 13px; line-height: 1.75; }
  .hero-reel { position: absolute; width: calc(100% + 15px); height: 365px; left: 0; bottom: 15px; border-radius: 56px 8px 8px 8px; }
  .hero-reel-head { padding: 24px 18px 4px 27px; }
  .hero-reel-head strong { font-size: 18px; }
  .hero-reel-controls button { width: 34px; height: 34px; }
  .hero-stack { padding: 14px 24% 15px 5%; }
  .hero-stack-card { flex-basis: 75%; margin-right: -25%; }
  .hero-stack-copy { padding-top: 10px; }
  .hero-stack-copy strong { font-size: 14px; }
  .hero-reel-foot { padding: 4px 18px 17px 27px; }
  .hero-actions { margin-top: 24px; }
  .hero-meta { display: none; }
  .content-section { padding: 65px 0 72px; }
  .section-heading h2 { font-size: 29px; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 11px; }
  .catalog-nav-row { grid-template-columns: 55px 1fr; }
  .catalog-nav-row > strong { font-size: 12px; }
  .category { padding: 7px 12px; }
  .catalog-summary { max-width: 170px; text-align: right; line-height: 1.5; }
  .pagination { gap: 4px; }
  .pagination button { min-width: 34px; height: 36px; padding: 0 9px; }
  .membership { margin-bottom: 65px; padding: 38px 25px; grid-template-columns: 1fr; gap: 25px; }
  .membership h2 { font-size: 29px; }
  .benefits { border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .benefits div { padding-left: 0; }
  .membership-button { grid-column: auto; }
  .footer { min-height: 170px; flex-direction: column; justify-content: center; gap: 15px; text-align: center; }
  .footer p { margin: 0; }
  .mobile-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; height: 67px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 8px max(4px, env(safe-area-inset-bottom)); background: rgba(10,10,14,.95); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: #77757e; font-size: 9px; }
  .mobile-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .mobile-nav .active { color: var(--accent); }
  .mobile-nav .nav-search { width: 43px; height: 43px; margin-top: -21px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #15100a; border: 5px solid var(--bg); }
  .mobile-nav button:nth-child(3) > span:last-child { margin-top: -2px; }
  .modal[open], .login-modal[open] { display: block; overflow-y: auto; }
  .modal-poster { min-height: 260px; }
  .modal-body { padding: 32px 25px; }
  .movie-switch-controls { position: sticky; left: 14px; top: 10px; width: max-content; margin: 0 0 -46px 14px; }
  .movie-switch-hint { text-align: center; }
  .modal-body h2, .login-form h2 { font-size: 30px; }
  .login-art { min-height: 210px; padding: 28px 25px; }
  .login-art strong { font-size: 22px; }
  .login-form { padding: 32px 25px 38px; }
  .member-center-head { padding: 30px 25px 22px; align-items: flex-start; flex-direction: column; }
  .member-center-head h2 { font-size: 29px; }
  .member-center-actions { width: 100%; justify-content: flex-start; }
  .profile-completion { margin: 16px 20px 0; align-items: flex-start; flex-direction: column; }
  .purchase-history { padding: 24px 20px 30px; }
  .account-security form { grid-template-columns: 1fr; }
  .purchase-record { grid-template-columns: 1fr; }
  .purchase-record-cover { width: 100%; }
  .purchase-record dl { grid-template-columns: 1fr; gap: 8px; }
  .entry-popup-body { padding: 27px 24px; }
  .toast { bottom: 88px; max-width: calc(100% - 30px); white-space: nowrap; }
}

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