: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.discover-home { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
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; }
.watch-player { padding-top: 20px; scroll-margin-top: 12px; }
.watch-player[hidden] { display: none; }
.watch-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.watch-heading button { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 5px; padding: 9px 14px; cursor: pointer; }
.player-stage { position: relative; background: #000; width: 100%; aspect-ratio: 16 / 9; outline: none; }
.player-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.player-stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; object-fit: contain; object-position: center; background: #000; }
.player-corner-cover { position: absolute; z-index: 2; box-sizing: border-box; display: grid; place-items: center; min-width: 1px; min-height: 1px; overflow: hidden; pointer-events: none; }
.player-corner-cover[hidden] { display: none; }
.player-corner-cover img { display: block; box-sizing: border-box; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.player-controls { display: flex; flex-direction: column; position: absolute; z-index: 3; inset: auto 0 0; padding: 28px 16px 4px; background: linear-gradient(transparent, rgba(0,0,0,.85)); transition: opacity .2s; }
.controls-hidden .player-controls { opacity: 0; pointer-events: none; }
.controls-hidden { cursor: none; }
.player-controls:focus-within { opacity: 1; pointer-events: auto; }
.player-progress-controls { display: flex; order: 0; }
.player-progress-controls input { width: 100%; height: 12px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.player-stage-actions { display: flex; gap: 10px; align-items: center; }
.player-stage-actions[hidden], .player-progress-controls[hidden] { display: none; }
.player-stage-actions button { display: grid; place-items: center; min-width: 40px; height: 32px; border: 0; border-radius: 4px; color: #fff; background: transparent; font: inherit; font-size: 14px; cursor: pointer; }
.player-stage-actions button:hover { background: rgba(255,255,255,.15); }
.player-stage-actions button:focus-visible { outline: 2px solid var(--accent); }
.player-stage-actions svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.player-controls-spacer { flex: 1; }
.player-time { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-volume { width: 75px; accent-color: var(--accent); }
.player-rate { width: 58px; height: 32px; border: 0; border-radius: 4px; color: #fff; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.player-rate option { color: #fff; background: #202024; }
.player-message { position: absolute; z-index: 2; top: 35%; left: 10%; right: 10%; text-align: center; color: #fff; font-size: 14px; text-shadow: 0 1px 4px #000; pointer-events: none; }
.player-status { padding: 16px 0 24px; }
.player-status h2 { font-size: 20px; line-height: 1.5; margin: 0 0 6px; }
.player-status > span { color: var(--muted); font-size: 12px; }
.player-fullscreen-open { overflow: hidden; }
.player-stage.is-viewport-fullscreen { position: absolute; inset: auto; left: var(--player-viewport-left,0px); top: var(--player-viewport-top,0px); z-index: 2000; width: var(--player-viewport-width,100vw); height: var(--player-viewport-height,100dvh); max-width: none; max-height: none; margin: 0; aspect-ratio: auto; overflow: hidden; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-controls { padding-bottom: max(4px,env(safe-area-inset-bottom)); padding-left: max(12px,env(safe-area-inset-left)); padding-right: max(12px,env(safe-area-inset-right)); }
.player-stage:fullscreen { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; }
.player-stage:-webkit-full-screen { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; }
@media (max-width: 600px) {
  .watch-player { width: 100%; padding-top: 12px; }
  .watch-heading, .player-status { padding-left: 16px; padding-right: 16px; }
  .player-stage-actions { gap: 4px; }
  .player-controls { padding-left: 8px; padding-right: 8px; }
  .player-volume { display: none; }
  .player-rate { width: 52px; }
  .player-status h2 { font-size: 17px; }
}

.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; }
}

#purchaseModal.credit-topup { width:min(460px,calc(100% - 24px)); max-height:90vh; max-height:calc(100dvh - 28px); border-radius:18px; }
#purchaseModal.credit-topup[open] { display:block; overflow-y:auto; }
#purchaseModal.credit-topup > .login-art { display:none; }
#purchaseModal.credit-topup .login-form { display:block; padding:24px 20px 20px; }
#purchaseModal.credit-topup .login-form > .modal-label { display:none; }
#purchaseModal.credit-topup .login-form h2 { margin:0; padding-right:40px; font-family:inherit; font-size:22px; font-weight:650; }
#purchaseModal.credit-topup .login-form > p { margin:6px 0 0; line-height:1.6; }
#purchaseModal.credit-topup .login-form > small { display:block; margin-top:10px; color:var(--muted); font-size:11px; line-height:1.6; }
.credit-checkout { display:grid; gap:9px; min-width:0; font-size:12px; line-height:1.6; }
.credit-checkout p { margin:0; }
.credit-checkout small { color:#a4a0aa; font-size:11px; }
.credit-checkout label { color:#d9d2da; margin:0; }
.credit-checkout button:disabled { opacity:.45; cursor:default; }
.credit-amount-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.credit-amount-row input { min-width:0; width:100%; height:46px; margin:0; border:1px solid #49413a; border-radius:10px; padding:10px 12px; background:#0c0c11; color:#fff; font:inherit; font-size:18px; font-variant-numeric:tabular-nums; }
.credit-checkout .credit-create { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:46px; padding:10px 13px; border:1px solid #e2bc78; border-radius:11px; background:linear-gradient(135deg,#f2d397,#d5a856); color:#30200e; font:inherit; font-weight:700; box-shadow:0 3px 12px #c9953430,inset 0 1px #fff4; cursor:pointer; touch-action:manipulation; }
.credit-create:active { transform:translateY(1px); filter:brightness(.95); }
.credit-create:focus-visible { outline:2px solid #ffe4ac; outline-offset:3px; }
.credit-create svg { flex:none; pointer-events:none; }
#creditOrder { border-top:1px solid var(--line); padding-top:10px; display:grid; gap:8px; }
#creditOrder[hidden] { display:none; }
.credit-order-head { display:flex; align-items:center; gap:12px; justify-content:space-between; }
.credit-order-head button { width:auto; min-height:36px; padding:4px 8px; border:0; background:transparent; color:#bca47f; font:inherit; }
.credit-order-id { color:#8f8995; overflow-wrap:anywhere; font-size:10px; }
.credit-payment { display:grid; gap:10px; min-width:0; padding:12px; border:1px solid var(--line); border-radius:12px; background:#09090d; }
.credit-receive-qr { display:grid; justify-items:center; gap:4px; min-width:0; margin:0; text-align:center; }
.credit-receive-qr img { display:block; width:200px; max-width:100%; height:auto; image-rendering:pixelated; -webkit-touch-callout:default; -webkit-user-select:auto; user-select:auto; touch-action:auto; }
.credit-receive-qr figcaption { font-size:11px; color:#e4d5bc; }
.credit-receive-qr small { font-size:10px; color:var(--muted); }
.credit-qr-detail { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:2px 6px; min-width:0; align-items:center; }
.credit-qr-detail > span { color:var(--muted); font-size:10px; }
.credit-qr-detail > strong,.credit-qr-detail > code { grid-column:1; min-width:0; overflow-wrap:anywhere; color:#eee4d3; }
.credit-qr-detail > strong { font-size:20px; font-variant-numeric:tabular-nums; }
.credit-qr-detail > code { font-size:12px; line-height:1.5; }
.credit-checkout .credit-copy { grid-column:2; grid-row:1 / 3; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#dfbf88; touch-action:manipulation; }
.credit-copy svg { pointer-events:none; }
.credit-copy:focus-visible { outline:2px solid #f4d398; outline-offset:1px; }
.credit-qr-note { color:#ff7272; font-size:11px; line-height:1.6; }
.credit-fee { color:#d9bc85; font-size:11px; }
.credit-bbt-pay { display:block; text-align:center; padding:12px; border:1px solid #d6a252; color:#161010; background:var(--accent); text-decoration:none; }
#purchaseModal.credit-topup .credit-wallet { min-height:80px; padding:8px 4px; gap:4px; }
#purchaseModal.credit-topup .credit-wallet-bbt { min-height:58px; padding:10px; }
@media(max-width:350px) { #purchaseModal.credit-topup .login-form { padding:22px 16px 16px; } .credit-checkout .credit-create { gap:4px; padding:10px; font-size:11px; } }

.member-wallet-entry { text-decoration:none; text-align:center; font-size:12px; }
.member-time-credit { padding:16px; margin:18px 0; border:1px solid var(--line); font-size:12px; color:#aaa4ae; }
.member-time-credit h3 { margin:0 0 10px; color:#ddd7de; }
.member-time-credit summary { cursor:pointer; padding:10px 0; }
.credit-history-row { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:7px 0; border-top:1px solid var(--line); }

/* Member center: shared surfaces and compact actions. */
.member-center-modal[open] { display: flex; flex-direction: column; border-radius: 22px; max-height: min(88vh, 880px); max-height: min(88dvh, 880px); overflow: hidden; background: #111115; border: 1px solid #333039; }
.member-center-head { flex: 0 0 auto; padding: 32px 38px 26px; gap: 24px; background: radial-gradient(ellipse at 0 0,rgba(216,170,102,.12),transparent 70%),#151418; }
.member-center-head > div:first-child { min-width: 0; }
.member-center-head h2 { font-family: inherit; font-size: 28px; font-weight: 600; letter-spacing: .04em; }
.member-center-head p { line-height: 1.8; color: #a6a0ac; }
.member-center-head .modal-label { color: #c8a56e; letter-spacing: .18em; font-size: 10px; }
.member-center-actions { gap: 10px; padding-right: 12px; }
.member-center-modal button,.member-center-modal a,.member-center-modal summary { -webkit-tap-highlight-color: transparent; }
.member-center-head .secondary-button,.profile-completion button,.account-security button,.member-empty button { min-height: 44px; border-radius: 11px; padding: 10px 15px; font-size: 12px; line-height: 1.5; cursor: pointer; transition: background .18s,border-color .18s,color .18s; }
.member-center-head .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #222027; border-color: #39343e; color: #d8d2dc; }
.member-center-head .secondary-button:hover { background: #302a30; border-color: #6c5840; color: #fff0d8; }
.member-center-actions [hidden] { display: none; }
.member-center-head .member-wallet-entry { border-color: #635035; background: linear-gradient(135deg,#342b20,#201e1b); color: #f3d4a2; padding: 8px 13px; font-weight: 600; }
.member-wallet-entry img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.member-wallet-entry svg,.member-refresh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.member-wallet-entry svg { width: 14px; height: 14px; color: #b89c75; }
.member-center-head [data-member-logout] { background: transparent; color: #a49ba9; border-color: #302c35; }
.member-center-head [data-member-logout]:hover { background: #2d2024; border-color: #774550; color: #efb4bd; }
.member-center-modal :is(button,a,summary,input):focus-visible { outline: 2px solid #e7bb79; outline-offset: 4px; }
.member-center-modal .modal-close { top: 10px; right: 10px; border-radius: 50%; width: 32px; height: 32px; background: #242127; border: 1px solid #39333d; color: #aaa1af; }
.profile-completion { flex: 0 0 auto; margin: 20px 38px 0; border-radius: 13px; padding: 15px 18px; }
.profile-completion span { line-height: 1.7; }
.profile-completion button,.account-security button { background: #30271d; border-color: #665035; color: #edc88c; }
.profile-completion button:hover,.account-security button:hover { background: #443423; border-color: #ba9156; }
.purchase-history { flex: 1 1 auto; min-height: 0; padding: 24px 38px 32px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4e4243 transparent; }
.purchase-history-title { align-items: center; margin-bottom: 20px; }
.purchase-history-title h3 { font-size: 17px; color: #e6dfe8; }
.purchase-history-title p { line-height: 1.7; color: #99919f; }
.purchase-history-title .member-refresh { width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #242129; border: 1px solid #403744; color: #d3bb98; transition: background .18s,border-color .18s; }
.purchase-history-title .member-refresh:hover { background: #382f29; border-color: #8a6a44; }
.member-refresh:active svg { transform: rotate(35deg); }
.account-security { border-radius: 12px; border-color: #302b35; background: #19171e; overflow: hidden; }
.account-security summary { padding: 16px 18px; color: #bdb3c5; }
.account-security form { padding: 0 18px 18px; gap: 12px; }
.account-security input { border-radius: 9px; min-height: 44px; }
.member-time-credit { margin: 0 0 26px; padding: 22px 24px; border-radius: 15px; border-color: #4b3e30; background: radial-gradient(ellipse at 100% 0,rgba(210,166,99,.11),transparent 65%),#1c1918; }
.member-time-credit h3 { color: #d4bc96; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.member-time-credit [data-credit-summary] { color: #f1d6ad; font-size: clamp(18px,3.5vw,25px); font-weight: 600; margin: 12px 0; line-height: 1.5; overflow-wrap: anywhere; }
.member-time-credit > p:last-of-type { color: #a69b91; line-height: 1.7; }
.member-time-credit details { margin-top: 14px; border-top: 1px solid #3e342c; }
.member-time-credit summary { padding: 14px 0 0; color: #baa98e; }
.member-time-credit [data-credit-history] { padding-top: 12px; color: #b0a699; }
.credit-history-row { line-height: 1.7; padding: 12px 0; }
.member-center-modal .member-empty { border: 1px dashed #39303d; border-radius: 14px; background: #17141b; min-height: 170px; padding: 24px; color: #a095a8; }
.member-center-modal .member-empty strong { color: #d0c5d8; font-size: 14px; }
.purchase-record { border-radius: 14px; overflow: hidden; background: #18151d; border-color: #342c3b; }
.purchase-record-main > button { min-height: 44px; padding: 10px 15px; border-radius: 9px; background: #33271e; color: #f0c790; }
@media (max-width: 700px) {
  .member-center-modal[open] { width: calc(100% - 24px); max-height: 92vh; max-height: 92dvh; border-radius: 18px; }
  .member-center-head { padding: 26px 20px 20px; gap: 18px; flex-direction: column; align-items: stretch; }
  .member-center-head h2 { font-size: 25px; }
  .member-center-head p { padding-right: 6px; }
  .member-center-actions { padding-right: 0; justify-content: flex-start; gap: 8px; }
  .member-center-head .secondary-button { padding: 8px 12px; }
  .profile-completion { margin: 16px 20px 0; flex-wrap: wrap; gap: 12px; padding: 14px; }
  .purchase-history { padding: 20px; }
  .purchase-history-title { gap: 12px; }
  .member-time-credit { padding: 18px; margin-bottom: 22px; }
}

.daily-checkin { margin-top: 22px; padding: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; border: 1px solid #675035; border-radius: 12px; background: linear-gradient(115deg,#32271d,#24201d); }
.daily-checkin > div { display: grid; gap: 7px; }
.checkin-eyebrow { color: #c9a473; font-size: 10px; letter-spacing: .12em; }
.daily-checkin strong { color: #f4d8ad; font-size: 16px; }
.daily-checkin p { margin: 0; line-height: 1.7; font-size: 11px; color: #b8a78f; }
.daily-checkin button { min-height: 44px; padding: 12px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e4bd7b; border-radius: 10px; color: #291c0c; background: linear-gradient(135deg,#f3d49c,#d6a456); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.daily-checkin button:hover:not(:disabled) { background: #f6daa7; }
.daily-checkin button:disabled { cursor: default; opacity: .65; }
.daily-checkin button.is-claimed { color: #c9be9e; border-color: #625840; background: #302c24; opacity: 1; }
.daily-checkin svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.daily-checkin .checkin-feedback { grid-column: 1 / -1; }
.daily-checkin .checkin-feedback:empty { display: none; }
@media(max-width:700px) { .daily-checkin { grid-template-columns: 1fr; padding: 16px; gap: 12px; } .daily-checkin button { width: 100%; } }

.member-credit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-credit-head h3 { margin: 0; }
.member-credit-head .member-topup { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: 0 0 auto; border: 1px solid #78603d; border-radius: 10px; background: #33291d; color: #edc88c; padding: 10px 13px; font: inherit; font-size: 12px; cursor: pointer; }
.member-topup svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.member-credit-head .member-topup:hover { background: #493821; border-color: #bf955c; }
.credit-checkout [hidden] { display: none; }

.checkin-float { position: fixed; z-index: 35; right: max(24px,env(safe-area-inset-right)); bottom: calc(28px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 18px; border: 1px solid #d9af6c; border-radius: 18px; color: #f5d6a1; background: linear-gradient(135deg,#49331f,#261d17); box-shadow: 0 6px 24px #0008,inset 0 1px 0 #ffe1aa20; cursor: pointer; font: inherit; text-align: left; transition: background .18s,transform .18s; }
.checkin-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.checkin-float span { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.checkin-float small { font-size: 10px; font-weight: 400; color: #c8ac82; }
.checkin-float:hover { background: #503820; transform: translateY(-2px); }
.checkin-float:focus-visible { outline: 2px solid #f1cc8c; outline-offset: 4px; }
.checkin-float[hidden],.modal-open .checkin-float { display: none; }
@media(max-width:700px) { .checkin-float { right: max(14px,env(safe-area-inset-right)); bottom: calc(88px + env(safe-area-inset-bottom)); min-height: 56px; padding: 10px 13px; gap: 8px; border-radius: 16px; } .checkin-float svg { width: 25px; height: 25px; } }

.payment-guide { margin:12px 0; padding:0 12px; border:1px solid #4b4030; border-radius:10px; background:transparent; font-size:12px; line-height:1.6; }
.payment-guide summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:42px; cursor:pointer; list-style:none; }
.payment-guide summary::-webkit-details-marker { display:none; }
.payment-guide summary::after { content:'⌄'; color:#b59a70; }
.payment-guide[open] summary::after { transform:rotate(180deg); }
.payment-guide strong { color:#dec18e; font-weight:500; }
.payment-guide p { margin:0 0 4px; color:#d9d2da; }
.payment-guide a { display:inline-flex; align-items:center; min-height:40px; color:#edc88c; text-underline-offset:3px; }
.payment-guide-wallets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.payment-guide .payment-guide-wallets a { flex-direction:column; justify-content:center; gap:6px; min-width:0; min-height:78px; padding:8px 4px; border-radius:10px; background:#1b1919; color:#e7dfd2; text-align:center; text-decoration:none; touch-action:manipulation; }
.payment-guide-wallets img { display:block; flex:none; object-fit:contain; border-radius:7px; }
.payment-guide-wallets a:focus-visible { outline:2px solid #f4d398; outline-offset:2px; }
.payment-guide-wallets a:active { background:#302a22; }

/* Persistent mini-games entry, offset from the existing daily check-in. */
.mini-games-entry{position:fixed;z-index:19;right:20px;bottom:160px;display:flex;align-items:center;gap:6px;min-height:44px;padding:10px 14px;border:1px solid #cba45d77;border-radius:24px;background:linear-gradient(135deg,#342719,#151218);color:#eacb8f;box-shadow:0 4px 20px #0005;font-size:12px;text-decoration:none}
.mini-games-entry>span{font-size:19px}.mini-games-entry small{font-size:9px;opacity:.75}
@media(max-width:700px){.mini-games-entry{right:12px;bottom:calc(168px + env(safe-area-inset-bottom));padding:9px 12px;font-size:11px}.mini-games-entry small{display:none}}

.modal-open .mini-games-entry{display:none}

.member-refund{margin-top:18px;padding-top:14px;border-top:1px solid #ffffff18}.member-refund>summary{cursor:pointer;color:#edc88c;min-height:44px;align-content:center}.member-refund>label{display:block;margin:14px 0 7px;font-size:13px;color:#d9d2da}.member-refund input{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:11px 12px;border:1px solid #ffffff26;border-radius:8px;background:#17151d;color:#f3edf4;font-size:16px}.member-refund button{min-height:44px;margin-top:12px;padding:10px 14px;border:1px solid #aa8756;border-radius:8px;background:#3b2e20;color:#f1d09b;cursor:pointer}.member-refund button:disabled{opacity:.5;cursor:wait}.member-refund p{font-size:13px;line-height:1.7;color:#c9c1ce}.member-refund strong{color:#f1d09b}.member-refund #refund-preview{margin-top:14px;padding:12px;border:1px solid #aa875655;border-radius:8px;background:#30251e}.refund-address,.refund-record{overflow-wrap:anywhere}.refund-record{padding:13px 0;border-top:1px solid #ffffff18}.refund-record small{font-size:11px;color:#a99eaf}.member-refund input:focus-visible,.member-refund button:focus-visible{outline:2px solid #edc88c;outline-offset:2px}

/* Branded wallet entries belong to the current unpaid top-up order. */
.credit-wallets{border-top:1px solid var(--line);padding-top:14px;min-width:0}.credit-wallet-heading{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin-bottom:12px}.credit-wallet-heading strong{font-size:13px;color:#eee5d5}.credit-wallet-heading>span{font-size:11px;color:#dfbd83}.credit-wallet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.credit-wallet{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:100px;padding:11px 5px;border:1px solid #544b3e;border-radius:10px;background:#19181b;color:#eee9e1;text-align:center;text-decoration:none;font-size:12px;line-height:1.3;touch-action:manipulation}.credit-wallet img{display:block;object-fit:contain;border-radius:7px;flex:none}.credit-wallet>small{font-size:10px;color:#aaa39a}.credit-wallet:focus-visible{outline:2px solid #f4d398;outline-offset:2px}.credit-wallet:active{background:#302a22}.credit-wallet-bbt{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:11px;padding:12px;min-height:68px;background:linear-gradient(110deg,#3e3020,#241e18);border-color:#a78149;text-align:left;color:#f3d9aa}.credit-wallet-bbt>span{display:grid;gap:4px;min-width:0}.credit-wallet-bbt strong{font-size:14px}.credit-wallet-bbt small{font-size:11px;color:#d8ba89}.credit-wallet-bbt>b{margin-left:auto;font-size:10px;font-weight:500;white-space:nowrap}.credit-checkout .credit-wallet-note{margin-top:10px;font-size:11px;line-height:1.7;color:#aaa39a}@media(max-width:350px){.credit-wallet-grid{gap:6px}.credit-wallet{font-size:11px}.credit-wallet-bbt{padding:10px}.credit-wallet-bbt>b{font-size:9px}}

.member-email-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line,#30303a)}
.member-email-status h3{margin:0 0 8px}.member-email-status p{margin:0;color:var(--muted,#a2a2b0);overflow-wrap:anywhere}
.member-email-modal{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;color:var(--text,#f5f5fa);background:var(--panel,#181820);border:1px solid var(--line,#30303a);border-radius:18px}
.member-email-modal .login-form{width:100%;box-sizing:border-box;padding:32px 24px;gap:14px}.member-email-modal .login-form h2{padding-right:24px}.member-email-modal label{min-width:0}.member-email-modal input{box-sizing:border-box;min-width:0;width:100%}.member-email-modal [hidden]{display:none!important}
.email-code-row{display:flex;gap:10px;align-items:end}.email-code-row label{flex:1}.email-code-row button{flex:0 0 auto;max-width:46%;padding:12px 10px;border:1px solid #535367;border-radius:10px;background:#292935;color:#f5f5fa;font-size:12px;line-height:1.5}.email-code-row button:disabled{opacity:.55}.member-email-modal small{color:var(--muted,#a2a2b0);line-height:1.6}
@media(max-width:420px){.member-email-modal .login-form{padding:28px 18px}.email-code-row{gap:8px}.member-email-status{align-items:flex-start}}

/* The hint overlays the compact toolbar; it never reserves extra space. */
.player-promotion { position:absolute; inset:0; overflow:hidden; color:#e8d9bb; background:#0b0b0c; touch-action:pan-y; }
.player-promotion[hidden], .player-promotion-slide[hidden] { display:none; }
.player-promotion-slides, .player-promotion-slide { position:absolute; inset:0; width:100%; height:100%; }
.player-promotion-slides { z-index:2; }
.player-promotion-slide { container-type:size; }
.player-promotion-artwork { position:absolute; top:50%; left:50%; width:min(100cqw,calc(100cqh * 1672 / 941)); aspect-ratio:1672 / 941; transform:translate(-50%,-50%); }
.player-promotion-art, .player-promotion-proof { display:block; width:100%; height:100%; object-fit:contain; user-select:none; -webkit-user-drag:none; }
/* Use the same table slice as the live room, maintaining the sprite aspect ratio. */
.player-promotion-room-art { background: url('/games/dragon-tiger/artwork-v2.webp') 50% 7.966805% / auto 351.041667% no-repeat; }
.player-promotion-game-title { position:absolute; top:5%; left:0; width:100%; text-align:center; color:#ffe3a2; font:700 clamp(22px,5.6cqw,64px)/1.1 "Songti SC","Noto Serif CJK SC",serif; letter-spacing:.14em; text-shadow:0 2px 3px #000,0 0 9px #000; }
.player-promotion-embedded-promise { position:absolute; top:30%; left:15%; width:70%; height:auto; aspect-ratio:1774 / 887; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.player-promotion-status { position:absolute; z-index:4; bottom:54px; left:50%; transform:translate(-50%,50%); width:max-content; max-width:min(calc(100% - 16px),420px); min-height:0; padding:1px 6px; border:0; border-radius:3px; background:#171006d9; color:#ffe3a2; font:inherit; font-size:clamp(11px,1.1vw,14px); font-weight:600; line-height:1.2; white-space:nowrap; text-align:center; cursor:pointer; text-shadow:0 1px 2px #000; box-shadow:none; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-promotion-status { bottom:calc(max(4px,env(safe-area-inset-bottom)) + 50px); }
.player-promotion-status:disabled { cursor:wait; opacity:1; }
.player-promotion-game { position:absolute; z-index:6; top:3%; right:3%; display:inline-flex; align-items:center; gap:5px; min-height:30px; padding:5px 10px; border:1px solid #e1b65b; border-radius:5px; background:linear-gradient(135deg,#f3d18a,#c99335); color:#191107; font-size:clamp(11px,1.1vw,16px); font-weight:600; text-decoration:none; }
.player-promotion :is(a,button):focus-visible { outline:2px solid #fff; outline-offset:2px; }
.has-promotion .player-message { visibility:hidden; }
.has-promotion .player-controls { z-index:5; visibility:visible; opacity:1; pointer-events:none; padding-top:4px; background:transparent; }
.has-promotion .player-controls :is(button,input,select) { pointer-events:auto; }
.has-promotion.controls-hidden { cursor:auto; }

.player-promotion-recharge{position:absolute;z-index:6;top:3%;left:3%;min-height:30px;padding:5px 9px;border:1px solid #e1b65b;border-radius:5px;background:#171006e8;color:#ffe3a2;font:inherit;font-size:clamp(11px,1.1vw,16px);cursor:pointer}.player-promotion-recharge[hidden]{display:none}.player-promotion[data-phase="exhausted"] .player-promotion-status{cursor:pointer;border-color:#ffc857;background:#261706f5;color:#ffe49c}

/* Inline media keeps its natural16:9 area between independent action bands. */
.player-stage { box-sizing:content-box; padding-top:40px; padding-bottom:72px; }
.player-stage video { inset:40px 0 72px; height:calc(100% - 112px); }
.player-stage .player-promotion-slides { inset:40px 0 72px; height:auto; }
.player-promotion-game { top:5px; right:12px; }
.player-promotion-recharge { top:5px; left:12px; }
.player-promotion-status { bottom:62px; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) { box-sizing:border-box; padding:0; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) video { inset:0; height:100%; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-promotion-slides { inset:0; height:100%; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-promotion-game { top:3%; right:3%; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-promotion-recharge { top:3%; left:3%; }

/* Keep the three controls centered on the video, outside the inline action bands. */
.player-center-controls { position:absolute; z-index:3; inset:40px 0 72px; display:flex; align-items:center; justify-content:center; gap:clamp(20px,6vw,64px); pointer-events:none; transition:opacity .2s; }
.player-center-controls[hidden], .has-promotion .player-center-controls { display:none; }
.player-center-controls button { display:grid; place-items:center; width:52px; height:52px; padding:8px; border:0; border-radius:50%; background:transparent; color:rgba(255,255,255,.8); cursor:pointer; pointer-events:auto; touch-action:manipulation; -webkit-tap-highlight-color:transparent; filter:drop-shadow(0 1px 3px #0008); }
.player-center-controls #playerCenterPlay { width:60px; height:60px; }
.player-center-controls svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.player-center-controls button:active { color:#fff; background:#ffffff14; }
.player-center-controls button:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.controls-hidden .player-center-controls { opacity:0; }
.controls-hidden .player-center-controls button { pointer-events:none; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-center-controls { inset:0; }
@media (prefers-reduced-motion:reduce) { .player-center-controls { transition:none; } }

/* Retain a complete timeline while independent paid intervals expire. */
.player-vr-view { position:absolute; z-index:1; inset:40px 0 72px; pointer-events:none; background:#000; }
.player-vr-view canvas { display:block; width:100%; height:100%; }
.player-vr-view[hidden],.player-vr-panel[hidden] { display:none; }
.vr-presenting video { opacity:0; }
.vr-presenting { touch-action:pan-x pan-y; }
.vr-presenting .player-corner-cover { visibility:hidden; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-vr-view { inset:0; }
#playerVrToggle[aria-pressed="true"] { color:#f4d291; }
.player-vr-panel { position:absolute; z-index:7; top:10px; right:max(10px,env(safe-area-inset-right)); width:min(240px,calc(100% - 20px)); max-height:calc(100% - 84px); overflow:auto; overscroll-behavior:contain; padding:8px 10px; border:1px solid #ffffff29; border-radius:12px; background:#11192399; color:#fff; font-size:11px; box-shadow:0 6px 24px #0006; }
.player-vr-heading,.player-vr-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.player-vr-heading { margin-bottom:6px; }.player-vr-heading strong{font-size:14px;}
.player-vr-panel button { border:0; border-radius:6px; min-height:32px; padding:4px 8px; background:#ffffff0d; color:#f4d291; font:inherit; cursor:pointer; }
.player-vr-panel label { display:grid; grid-template-columns:60px 30px minmax(0,1fr); align-items:center; gap:6px; min-height:28px; }
.player-vr-panel output { color:#bdc3ce; text-align:right; font-size:11px; }
.player-vr-panel input[type="range"] { width:100%; min-width:0; margin:0; accent-color:#ecd1a4; }
.player-vr-panel select { grid-column:2/-1; min-width:0; padding:5px; background:#1e2632; color:#fff; border:1px solid #fff3; border-radius:6px; font:inherit; }
.player-vr-panel .player-vr-fisheye { display:flex; justify-content:space-between; }.player-vr-fisheye input { accent-color:#ecd1a4; }
.player-vr-panel p { margin:6px 0; font-size:10px; color:#abb2bd; line-height:1.5; }
.player-vr-footer { border-top:1px solid #ffffff1a; padding-top:6px; }
.player-vr-panel :focus-visible { outline:2px solid #fff; outline-offset:2px; }
.player-vr-head-entry { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.player-vr-head-entry [aria-pressed="true"] { background:#705326; color:#fff; }
.player-vr-head { position:absolute; z-index:6; inset:40px 0 72px; display:flex; pointer-events:none; color:#fff; }
.player-stage:is(.is-viewport-fullscreen,:fullscreen,:-webkit-full-screen) .player-vr-head { inset:0; }
.player-vr-head[hidden],.vr-head-pointer[hidden],.player-vr-head-entry [hidden] { display:none; }
.vr-head-eye { position:relative; flex:1; min-width:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.vr-head-menu { width:min(92%,320px); padding:10px; box-sizing:border-box; border:1px solid #fff4; border-radius:16px; background:#11192399; box-shadow:0 6px 28px #0008; pointer-events:auto; }
.vr-head-status { height:30px; margin:0 0 8px; display:flex; align-items:center; justify-content:center; font-size:11px; line-height:1.3; color:#f4d291; text-align:center; }
.vr-head-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.player-stage .vr-head-grid button { min-width:0; min-height:40px; padding:4px 2px; margin:0; border:1px solid #fff3; border-radius:8px; background:#fff1; color:#fff; font:500 11px/1.3 sans-serif; font-family:inherit; cursor:pointer; touch-action:manipulation; }
.player-stage .vr-head-grid button.is-target { background:#d6a344; border-color:#ffe6af; color:#15120c; }
.vr-head-grid button:disabled { opacity:.3; cursor:default; }.vr-head-grid button:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.vr-head-main[hidden],.vr-head-geometry[hidden] { display:none; }
.vr-head-time { margin-bottom:8px; padding:4px 8px; border-radius:5px; background:#0005; color:#d6dce6; font:11px/1.4 system-ui; text-align:center; }
.player-stage .vr-head-main .vr-head-grid button { display:flex; min-height:52px; flex-direction:column; gap:4px; align-items:center; justify-content:center; font-size:10px; }
.vr-head-main button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.vr-head-modes,.vr-head-geometry-footer { display:flex; gap:8px; }
.vr-head-modes { margin-bottom:8px; }.vr-head-modes button,.vr-head-geometry-footer button { flex:1; }
.player-stage .vr-head-geometry button { min-width:0; min-height:34px; padding:4px; border:1px solid #fff3; border-radius:7px; background:#ffffff0e; color:#fff; font:11px/1.3 system-ui; cursor:pointer; }
.player-stage .vr-head-geometry button:is(.is-target,[aria-pressed="true"]) { background:#c89a42; color:#17120b; border-color:#ffdf94; }
.player-stage .vr-head-geometry button:disabled { opacity:.3; }
.vr-head-setting { display:grid; grid-template-columns:42% 16% 17% 17%; column-gap:2.666%; min-height:42px; align-items:center; color:#e5e9ef; font:12px/1.3 system-ui; }
.vr-head-setting output { text-align:center; color:#b5c2d4; font-size:11px; }.vr-head-setting>button { font-size:18px!important; }
.vr-head-geometry-footer { margin-top:8px; }
.vr-head-pointer { position:absolute; left:50%; top:50%; width:28px; height:28px; transform:translate(-50%,-50%); pointer-events:none; filter:drop-shadow(0 1px 3px #000); }
.vr-head-pointer svg { width:100%; height:100%; transform:rotate(-90deg); fill:none; stroke:#ffffff70; stroke-width:2; }
.vr-head-pointer .vr-head-progress { stroke:#ffeb00; stroke-width:3; stroke-dasharray:81.682; stroke-dashoffset:calc(81.682 * (1 - var(--dwell,0))); }
.vr-head-pointer i { position:absolute; inset:11px; border-radius:50%; background:#fff; }
.vr-head-open .player-center-controls,.vr-head-open .player-controls { opacity:0; pointer-events:none; }
.vr-head-open .player-center-controls button,.vr-head-open .player-controls :is(button,input,select) { pointer-events:none; }
@media(max-height:350px) and (orientation:landscape){.vr-head-menu{padding:6px}.vr-head-status{height:24px;margin-bottom:4px}.vr-head-grid{gap:6px}.player-stage .vr-head-grid button{min-height:34px}}
@media(max-width:480px){.player-stage-actions{gap:3px}.player-stage-actions button{min-width:32px;padding:0 5px}.player-rate{width:42px}.player-time{font-size:11px}}

#playerSeek { appearance:none; -webkit-appearance:none; background:transparent; }
#playerSeek::-webkit-slider-runnable-track { height:5px; border-radius:3px; background:var(--playable-track,#64748b); }
#playerSeek::-moz-range-track { height:5px; border-radius:3px; background:var(--playable-track,#64748b); }
#playerSeek::-moz-range-progress { background:transparent; }
#playerSeek::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:14px; height:14px; margin-top:-4.5px; border-radius:50%; background:#fff; border:2px solid #f4bd54; }
#playerSeek::-moz-range-thumb { width:11px; height:11px; border-radius:50%; background:#fff; border:2px solid #f4bd54; }

.shell-update-notice{position:fixed;z-index:1200;left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));max-width:560px;margin:auto;padding:12px 14px;display:flex;gap:12px;align-items:center;justify-content:space-between;color:#fff;background:#302333;border:1px solid #a67d9e;border-radius:12px;box-shadow:0 4px 20px #0008;font-size:14px}.shell-update-notice[hidden]{display:none}.shell-update-notice button{flex:none;padding:8px 12px;border-radius:8px;border:1px solid #cfabcb;background:#643a60;color:#fff;font:inherit;cursor:pointer}

/* Picture IPD moves the paired HUD/pointer; the viewport size stays independent. */
.vr-head-plane { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; transform-origin:center; pointer-events:none; }
.player-stage .vr-head-menu { width:min(96%,350px); padding:8px; }
.vr-head-menu input[type="range"] { width:100%; min-width:0; margin:0; accent-color:#ffeb00; cursor:pointer; touch-action:none; }
.vr-head-menu [data-vr-head-control="seek"] { display:block; height:24px; margin:0 0 6px; }
.vr-head-volume[hidden],.vr-head-rates[hidden] { display:none; }
.vr-head-volume { display:grid; grid-template-columns:48px 30px minmax(0,1fr) 30px 40px; align-items:center; gap:4px; margin-top:8px; font-size:10px; }
.vr-head-volume>span { display:flex; flex-direction:column; gap:2px; }
.vr-head-volume button,.vr-head-rates button { padding:4px 2px; border:1px solid #fff3; background:#ffffff12; border-radius:6px; color:#fff; font:11px system-ui; min-height:30px; }
.vr-head-rates { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; margin-top:8px; }
.vr-head-rates button[aria-pressed="true"] { background:#c89a42; color:#17120b; }
.vr-head-menu input.is-target { filter:drop-shadow(0 0 3px #ffe600); }
.vr-head-geometry .vr-head-setting { grid-template-columns:17% 13% minmax(0,1fr) 25px 25px; column-gap:4px; min-height:31px; font-size:11px; }
.player-stage .vr-head-geometry .vr-head-setting button { min-height:25px; padding:1px; }
.vr-head-geometry .vr-head-setting input { height:24px; }
.vr-head-geometry .vr-head-modes { margin-bottom:4px; }
.vr-head-geometry .vr-head-geometry-footer { margin-top:4px; gap:4px; }
.player-stage .vr-head-geometry-footer button,.player-stage .vr-head-modes button { min-height:28px; }
.vr-head-menu .vr-head-status { min-height:18px; height:18px; margin-bottom:4px; font-size:10px; }
.vr-head-menu .vr-head-time { margin-bottom:0; }
.player-stage .player-vr-head[data-page="geometry"] .vr-head-menu { width:min(70%,250px); padding:6px; border-radius:12px; }
.player-vr-head[data-page="geometry"] .vr-head-status { min-height:14px; height:14px; font-size:9px; }
.vr-head-geometry .vr-head-setting { grid-template-columns:34px 26px minmax(0,1fr) 22px 22px; column-gap:3px; min-height:24px; font-size:10px; }
.vr-head-geometry .vr-head-setting output { font-size:10px; }
.player-stage .vr-head-geometry .vr-head-setting button { min-height:22px; font-size:15px!important; }
.vr-head-geometry .vr-head-setting input { height:22px; }
.player-stage .vr-head-geometry-footer button,.player-stage .vr-head-modes button { min-height:24px; padding:2px; font-size:10px; }
@media(max-height:350px) and (orientation:landscape) { .vr-head-geometry .vr-head-setting { min-height:22px; }.vr-head-menu{padding:5px!important}.vr-head-menu .vr-head-status{height:12px;min-height:12px}.player-stage .vr-head-geometry .vr-head-setting button,.vr-head-geometry .vr-head-setting input{min-height:20px;height:20px}.player-stage .vr-head-geometry-footer button,.player-stage .vr-head-modes button{min-height:22px} }

.player-vr-wait { position:absolute; inset:0; display:flex; z-index:2; pointer-events:none; }
.player-vr-wait[hidden] { display:none; }.vr-wait-eye { position:relative; width:50%; overflow:hidden; }
.vr-wait-plane { position:absolute; inset:0; transform-origin:center; }.vr-wait-plane span { position:absolute; top:75%; left:50%; transform:translateX(-50%); padding:4px 10px; border-radius:20px; background:#0007; color:#fff; font:12px system-ui; white-space:nowrap; }
.vr-enabled .player-promotion-slides,.vr-enabled #playerPromotionGame { display:none; }
.vr-enabled #playerMessage[data-kind="buffering"],.vr-enabled #playerMessage[data-kind="analysis"] { display:none; }

/* Keep one landscape coordinate plane when a browser refuses orientation locking. */
.player-stage-content { position:absolute; inset:0; }

/* Preserve the playback anchor; newer hover popovers override their placement below. */
.player-vr-head[data-page="playback"] .vr-head-menu { position:absolute; left:50%; top:max(4px,calc(50% - 108px)); transform:translateX(-50%); }

.player-vr-group-title { margin-top:5px; padding-top:4px; border-top:1px solid #fff2; color:#f4d291; font-weight:600; }
.vr-head-tabs { display:flex; gap:4px; margin-bottom:5px; }
.player-stage .vr-head-tabs button { flex:1; min-height:25px; padding:3px; }
.vr-head-geometry [data-vr-head-group][hidden] { display:none; }
.vr-head-fisheye { display:flex; justify-content:flex-end; margin-top:4px; }
.player-stage .vr-head-fisheye button { min-height:24px; }

/* Hover popovers stay attached to their icon without moving playback controls. */
.vr-head-main { position:relative; }
:is(.vr-head-volume,.vr-head-brightness),.vr-head-rates { position:absolute; z-index:3; margin:0; padding:7px; box-sizing:border-box; transform:translateX(-50%); border:1px solid #fff4; border-radius:15px; background:#111923cc; box-shadow:0 4px 18px #0008; }
:is(.vr-head-volume,.vr-head-brightness) { width:64px; display:flex; flex-direction:column; gap:5px; }
:is(.vr-head-volume,.vr-head-brightness)>span { align-items:center; font-size:9px; }
:is(.vr-head-volume,.vr-head-brightness)>span>output { white-space:nowrap; }
:is(.vr-head-volume,.vr-head-brightness) [data-vr-head-action=quieter],:is(.vr-head-volume,.vr-head-brightness) [data-vr-head-action=louder] { display:none; }
.vr-head-menu :is(.vr-head-volume,.vr-head-brightness) input[type=range] { writing-mode:vertical-lr; direction:rtl; appearance:none; -webkit-appearance:none; width:38px; height:104px; min-height:70px; align-self:center; border-radius:19px; background:linear-gradient(to top,#fff var(--volume,100%),#ffffff38 var(--volume,100%)); }
:is(.vr-head-volume,.vr-head-brightness) input::-webkit-slider-runnable-track { background:transparent; border:0; }
:is(.vr-head-volume,.vr-head-brightness) input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:34px; height:8px; background:transparent; border:0; }
:is(.vr-head-volume,.vr-head-brightness) input::-moz-range-track { background:transparent; border:0; }
:is(.vr-head-volume,.vr-head-brightness) input::-moz-range-thumb { width:34px; height:8px; background:transparent; border:0; }
:is(.vr-head-volume,.vr-head-brightness) input:disabled { opacity:.5; }
.vr-head-rates { width:min(100%,240px); grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
:is(.vr-head-volume,.vr-head-brightness) button { width:100%; }

.player-stage :is(.vr-head-volume,.vr-head-brightness) { width:44px; padding:3px; border:0; border-radius:9px; background:#373331; gap:0; overflow:visible; }
:is(.vr-head-volume,.vr-head-brightness) input[type=range] { border-radius:7px 7px 0 0!important; }
.player-stage :is(.vr-head-volume,.vr-head-brightness) [data-vr-head-action=mute] { min-height:28px; padding:3px; border:0; border-radius:0 0 7px 7px; background:#fff; color:#666; }
:is(.vr-head-volume,.vr-head-brightness) [data-vr-head-action=mute] svg { width:17px; height:17px; }
:is(.vr-head-volume,.vr-head-brightness)>span[hidden] { display:none; }
:is(.vr-head-volume,.vr-head-brightness)>span { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); padding:4px; border-radius:4px; background:#111c; }
.player-vr-head[data-popover=volume] .vr-head-grid button,.player-vr-head[data-popover=rate] .vr-head-grid button,.player-vr-head[data-popover=volume] .vr-head-time,.player-vr-head[data-popover=rate] .vr-head-time,.player-vr-head[data-popover=volume] [data-vr-head-control=seek],.player-vr-head[data-popover=rate] [data-vr-head-control=seek] { opacity:.4; }

.player-stage .vr-head-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
.vr-head-brightness[hidden] { display:none; }
.vr-head-brightness { position:absolute; z-index:3; display:flex; flex-direction:column; margin:0; box-sizing:border-box; transform:translateX(-50%); box-shadow:0 4px 18px #0008; }
.vr-head-level-icon { display:flex; height:28px; align-items:center; justify-content:center; border-radius:0 0 7px 7px; background:#fff; color:#666; }
.vr-head-level-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; }
.player-vr-head[data-popover=brightness] .vr-head-grid button,.player-vr-head[data-popover=brightness] .vr-head-time,.player-vr-head[data-popover=brightness] [data-vr-head-control=seek] { opacity:.4; }
#moviePlayer,#playerVrView canvas,#playerCornerCover { filter:brightness(var(--player-brightness,1)); }

.vr-head-brightness>.vr-head-level-icon { position:static; transform:none; padding:0; background:#fff; }

/* Geometry stays as small buttons; only the pointed-at setting grows a tube. */
.vr-head-geometry [data-vr-head-group] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.vr-head-geometry .vr-head-modes,.vr-head-geometry .vr-head-fisheye { grid-column:1/-1; }
.vr-head-geometry .vr-head-setting { position:relative; display:block; min-height:0; }
.player-stage .vr-head-setting>[data-vr-head-action^=adjust-] { width:100%; min-height:44px; padding:4px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:10px!important; }
.player-stage .vr-head-setting>[data-vr-head-action^=adjust-] output { font-size:9px; }
.vr-head-adjust[hidden] { display:none; }
.vr-head-adjust { position:absolute; z-index:4; left:50%; bottom:calc(100% - 1px); width:44px; padding:3px; transform:translateX(-50%); display:flex; flex-direction:column; border-radius:9px; background:#373331; box-shadow:0 4px 18px #0008; }
.player-stage .vr-head-adjust input[type=range] { writing-mode:vertical-lr; direction:rtl; appearance:none; -webkit-appearance:none; width:38px; height:104px; min-height:70px; border-radius:7px 7px 0 0; background:linear-gradient(to top,#fff var(--volume,50%),#ffffff38 var(--volume,50%)); }
.vr-head-adjust input::-webkit-slider-runnable-track { background:transparent; border:0; }
.vr-head-adjust input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:34px; height:8px; background:transparent; border:0; }
.vr-head-adjust input::-moz-range-track { background:transparent; border:0; }
.vr-head-adjust input::-moz-range-thumb { width:34px; height:8px; background:transparent; border:0; }
.vr-head-adjust>.vr-head-level-icon { position:static; transform:none; padding:0; background:#fff; font-size:9px; }
.player-vr-head[data-adjust] .vr-head-setting>[data-vr-head-action^=adjust-] { opacity:.4; }

/* Compact transparent headset controls, matching the supplied visual reference. */
.player-stage .vr-head-menu { width:min(94%,280px); padding:0!important; border:0; border-radius:0; background:transparent; box-shadow:none; }
.player-vr-head[data-page=playback] .vr-head-menu { top:max(4px,calc(50% - 28px)); }
.player-stage .vr-head-menu .vr-head-status { height:14px; min-height:14px; margin-bottom:4px; font-size:9px; color:#fffc; }
.player-stage .vr-head-main .vr-head-grid button { min-height:36px; height:36px; padding:5px; gap:0; border:0; border-radius:6px; background:#363333b3; color:#fffd; }
.vr-head-main .vr-head-grid button>span { display:none; }
.player-stage .vr-head-main .vr-head-grid button.is-target { color:#fff; background:#ffffff45; }
.player-stage .vr-head-grid button svg { width:22px; height:22px; }
.player-stage .vr-head-main .vr-head-time { position:absolute; z-index:1; top:0; left:0; right:0; display:flex; justify-content:space-between; align-items:center; height:28px; margin:0; padding:0 7px; background:transparent; font-size:10px; pointer-events:none; }
.player-stage .vr-head-main [data-vr-head-control=seek] { appearance:none; -webkit-appearance:none; height:28px; margin:0 0 6px; border:0; border-radius:6px; background:linear-gradient(to right,#ffffff4a var(--volume,0%),#363333b3 var(--volume,0%)); }
.vr-head-main [data-vr-head-control=seek]::-webkit-slider-runnable-track { height:28px; background:transparent; }
.vr-head-main [data-vr-head-control=seek]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:8px; height:28px; background:#fff3; border:0; border-radius:3px; }
.vr-head-main [data-vr-head-control=seek]::-moz-range-track { height:28px; background:transparent; }
.vr-head-main [data-vr-head-control=seek]::-moz-range-thumb { width:8px; height:28px; background:#fff3; border:0; border-radius:3px; }
.player-stage .player-vr-head[data-page=geometry] .vr-head-menu { padding:0!important; }
.player-stage .vr-head-geometry button { border:0; border-radius:6px; background:#363333b3; color:#fffd; }
.player-stage .vr-head-geometry button:is(.is-target,[aria-pressed=true]) { background:#ffffff45; color:#fff; }

/* Floating settings never reflow or replace the playback icon grid. */
.player-stage .player-vr-head .vr-head-menu,.player-stage .player-vr-head[data-page=geometry] .vr-head-menu { position:absolute; left:50%; top:max(4px,calc(50% - 28px)); transform:translateX(-50%); width:min(94%,280px); padding:0!important; }
.vr-head-geometry { position:absolute; z-index:3; left:50%; bottom:calc(100% + 7px); width:min(100%,250px); transform:translateX(-50%); }
.vr-head-adjust[data-below=true] { bottom:auto; top:calc(100% - 1px); }
.player-vr-head[data-page=geometry] .vr-head-main .vr-head-grid button,.player-vr-head[data-page=geometry] .vr-head-time,.player-vr-head[data-page=geometry] [data-vr-head-control=seek] { opacity:.4; }

/* The rightmost viewport/picture icons pull a single compact row to the left. */
.vr-head-geometry { left:auto; bottom:auto; width:219px; transform:none; }
.vr-head-geometry [data-vr-head-group] { grid-template-columns:repeat(6,34px); gap:3px; }
.vr-head-geometry .vr-head-modes,.vr-head-geometry .vr-head-fisheye { display:contents; }
.player-stage .vr-head-setting>[data-vr-head-action^=adjust-],.player-stage .vr-head-geometry .vr-head-modes>button,.player-stage .vr-head-geometry .vr-head-fisheye>button { width:34px; min-height:36px; height:36px; padding:3px 1px; font-size:9px!important; }
.player-stage .vr-head-setting>[data-vr-head-action^=adjust-] output { font-size:8px; }

/* Compress the six slots to the actual space left of the fixed right icon. */
.vr-head-geometry [data-vr-head-group] { grid-template-columns:repeat(6,minmax(0,1fr)); }
.player-stage .vr-head-setting>[data-vr-head-action^=adjust-],.player-stage .vr-head-geometry .vr-head-modes>button,.player-stage .vr-head-geometry .vr-head-fisheye>button { width:100%; min-width:0; }
.player-stage .vr-head-adjust input[type=range] { height:var(--vr-column-height,104px); min-height:40px; }

/* Neutral gaze stays above actionable controls when the menu first appears. */
.player-stage .player-vr-head .vr-head-menu,.player-stage .player-vr-head[data-page=geometry] .vr-head-menu { top:max(4px,min(calc(50% + 10px),calc(100% - 133px))); }
