/* Geist and Geist Mono (Vercel, SIL Open Font License 1.1), served from AA Games itself: no font server to wait for. One variable file per alphabet covers every weight. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geistmono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geistmono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ================= AA Games ================= */
:root {
  --bg: #0a0a0a;
  --bg1: #0f0f0f;
  --s1: #141414;
  --s2: #1a1a1a;
  --s3: #232323;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #ededed;
  --muted: #8d8d8d;
  --dim: #5a5a5a;
  --white: #fafafa;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top-h: 64px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--s3); color: var(--muted); border: 1px solid var(--line); }
::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--white); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--white); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ================= intro ================= */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: #000; display: grid; place-items: center;
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease);
}
.intro.out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro-mark { width: 72px; height: 72px; stroke: var(--white); stroke-width: 3.2; stroke-linecap: square; stroke-linejoin: miter; }
.intro-mark path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .9s var(--ease) forwards; }
.intro-mark path:nth-child(2) { animation-delay: .12s; }
.intro-mark path:nth-child(3) { animation-delay: .3s; }
.intro-mark path:nth-child(4) { animation-delay: .42s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-word { display: flex; overflow: hidden; font: 600 30px/1.1 var(--font); letter-spacing: -.04em; }
.intro-word span { display: inline-block; transform: translateY(110%); animation: rise .8s var(--ease) forwards; white-space: pre; }
@keyframes rise { to { transform: none; } }
.intro-bar { width: 140px; height: 1px; background: var(--s3); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; animation: fill 1.3s .2s var(--ease) forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.intro-skip { position: absolute; bottom: 28px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
body.intro-on .top, body.intro-on main { opacity: 0; }
body.revealed .top { animation: dropIn .9s var(--ease) both; }
body.revealed main > * { animation: up .9s var(--ease) both; }
body.revealed main > *:nth-child(2) { animation-delay: .08s; }
body.revealed main > *:nth-child(3) { animation-delay: .16s; }
body.revealed main > *:nth-child(n+4) { animation-delay: .24s; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }

/* ================= top bar ================= */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: rgba(10, 10, 10, .78); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; stroke: var(--white); stroke-width: 3.4; stroke-linecap: square; stroke-linejoin: miter; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.brand-word { font: 600 17px/1 var(--font); letter-spacing: -.04em; }
.brand-word b { font-weight: 400; color: var(--muted); margin-left: 4px; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px 12px; font-weight: 500; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--white); }
.nav a.on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--white); }
.search-btn {
  margin-left: auto; display: flex; align-items: center; gap: 10px; width: 280px;
  height: 38px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line);
  color: var(--dim); font-size: 14px; transition: border-color .2s, background .2s;
}
.search-btn:hover { border-color: var(--line2); background: var(--s2); }
.search-btn span { flex: 1; text-align: left; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--white); border-color: var(--line2); }

/* ================= layout ================= */
main { padding: 0 0 80px; min-height: 70vh; outline: none; }
main.swap > * { animation: up .6s var(--ease) both; }
.section { padding: 44px var(--gutter) 0; }
.sec-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font: 600 21px/1.2 var(--font); letter-spacing: -.03em; }
.sec-head .count { font: 500 12px var(--mono); color: var(--dim); }
.sec-head .more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s, gap .3s var(--ease); }
.sec-head .more:hover { color: var(--white); gap: 10px; }
.page-head { padding: 48px var(--gutter) 0; }
.page-title { font: 600 clamp(32px, 4.6vw, 56px)/1 var(--font); letter-spacing: -.05em; margin: 10px 0 12px; }
.page-sub { color: var(--muted); margin: 0; max-width: 560px; font-size: 16px; }

/* ================= buttons ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 500; font-size: 14px; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-play { background: var(--white); color: #000; }
.btn-play:hover { background: #fff; transform: translateY(-1px); }
.btn-play svg { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.btn-ghost.on svg { fill: currentColor; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= hero / featured selector ================= */
.hero { position: relative; margin: 12px var(--gutter) 0; height: min(76vh, 720px); min-height: 460px; border-radius: 20px; overflow: hidden; background: var(--s1); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 8s linear; }
.hero-bg img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .55) 40%, rgba(10, 10, 10, .05) 75%), linear-gradient(0deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, 0) 45%); }
.hero-info { position: absolute; z-index: 2; left: clamp(22px, 4vw, 56px); top: clamp(28px, 7vh, 72px); max-width: min(540px, 70%); }
.hero-info > * { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hero-info.swap > * { opacity: 0; transform: translateY(12px); }
.hero-info h1 { font: 600 clamp(36px, 5.4vw, 76px)/.95 var(--font); letter-spacing: -.055em; margin: 14px 0 16px; text-wrap: balance; }
.hero-info p { color: #c4c4c4; margin: 0 0 26px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; }
.hero-meta { display: flex; gap: 8px; align-items: center; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.picker { position: absolute; z-index: 2; left: clamp(22px, 4vw, 56px); right: clamp(22px, 4vw, 56px); bottom: clamp(20px, 3.4vw, 36px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pick { position: relative; text-align: left; border-radius: 12px; padding: 8px; background: rgba(20, 20, 20, .55); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease); overflow: hidden; }
.pick:hover { background: rgba(40, 40, 40, .6); transform: translateY(-2px); }
.pick img { width: 64px; height: 48px; object-fit: cover; border-radius: 7px; filter: grayscale(1) brightness(.75); transition: filter .4s; }
.pick.on img, .pick:hover img { filter: none; }
.pick b { font-weight: 500; font-size: 13px; line-height: 1.25; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.pick.on { border-color: rgba(255, 255, 255, .35); background: rgba(30, 30, 30, .7); }
.pick.on b { color: var(--white); }
.pick .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.pick.on .prog { animation: fill var(--dur, 7s) linear forwards; }
.hero.paused .pick.on .prog { animation-play-state: paused; }

/* ================= category switcher ================= */
.seg { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s; }
.seg button:hover, .seg a:hover { color: var(--text); }
.seg .on { color: #000; }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 8px; background: var(--white); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg .n { font: 500 10px var(--mono); opacity: .55; margin-left: 4px; }
.explore-grid { margin-top: 20px; transition: opacity .25s, transform .35s var(--ease); }
.explore-grid.fade { opacity: 0; transform: translateY(8px); }

/* ================= rows ================= */
.row { position: relative; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 18vw, 250px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 12px; margin: -4px -2px 0; scroll-behavior: smooth; }
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row.wide .row-track { grid-auto-columns: clamp(240px, 26vw, 340px); }
.row-arrow { position: absolute; top: calc(50% - 34px); z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 250, 250, .95); color: #000; opacity: 0; transition: opacity .25s, transform .25s var(--ease); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.row:hover .row-arrow { opacity: 1; }
.row-arrow:hover { transform: scale(1.08); }
.row-arrow.l { left: -12px; } .row-arrow.r { right: -12px; }
.row-arrow[disabled] { opacity: 0 !important; pointer-events: none; }

/* ================= cards ================= */
.card { position: relative; display: block; }
.card-img { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--s1); transition: transform .4s var(--ease); }
.card-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .03) 50%, transparent 70%) var(--s1); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-img img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.card-img img.ok { opacity: 1; }
.card-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .3s; pointer-events: none; z-index: 2; }
.card:hover .card-img { transform: translateY(-4px); }
.card:hover .card-img::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.card:hover .card-img img { transform: scale(1.05); }
.card-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1)); opacity: 0; transition: opacity .3s; }
.card-play span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); transform: scale(.7); transition: transform .4s var(--ease); }
.card-play svg { width: 16px; height: 16px; fill: #000; stroke: none; margin-left: 2px; }
.card:hover .card-play { opacity: 1; }
.card:hover .card-play span { transform: scale(1); }
.card-badge { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 3px 7px; border-radius: 6px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .6); color: var(--white); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.card-fav { position: absolute; z-index: 3; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); opacity: 0; transform: translateY(-4px); transition: all .3s var(--ease); color: var(--white); }
.card-fav svg { width: 15px; height: 15px; }
.card:hover .card-fav, .card-fav.on { opacity: 1; transform: none; }
.card-fav.on svg { fill: var(--white); }
.card-fav:active { transform: scale(.85); }
.card-title { margin: 11px 2px 0; font-weight: 500; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { margin: 2px 2px 0; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rank { display: grid; grid-template-columns: auto 1fr; align-items: end; }
.rank-n { font: 600 clamp(80px, 9vw, 128px)/.74 var(--font); letter-spacing: -.09em; color: var(--bg); -webkit-text-stroke: 1.5px #3a3a3a; margin-right: -10px; transition: -webkit-text-stroke-color .3s; }
.rank:hover .rank-n { -webkit-text-stroke-color: var(--white); }
.rank .card { z-index: 1; }

/* ================= grid ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 210px), 1fr)); gap: 26px 16px; }
.grid .card { animation: up .6s var(--ease) both; }
.browse-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 26px 0 26px; }
.filter-input { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; min-width: 240px; color: var(--dim); transition: border-color .2s; }
.filter-input:focus-within { border-color: rgba(255, 255, 255, .4); }
.filter-input input { background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 14px; width: 100%; }
select.sort { appearance: none; height: 40px; padding: 0 34px 0 12px; border-radius: 10px; background: var(--s1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d8d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 15px; border: 1px solid var(--line); color: var(--text); font: 500 14px var(--font); cursor: pointer; }
.result-count { font: 500 12px var(--mono); color: var(--dim); margin-left: auto; }
.sentinel { height: 1px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.empty b { display: block; font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--text); margin-bottom: 4px; }

/* ================= category tiles ================= */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat-tile { position: relative; height: 104px; border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; background: var(--s1); border: 1px solid var(--line); overflow: hidden; transition: background .35s var(--ease), color .35s, border-color .35s; }
.cat-tile b { font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.cat-tile span { font: 500 11px var(--mono); color: var(--dim); transition: color .35s; }
.cat-tile svg { position: absolute; right: 16px; top: 16px; width: 16px; height: 16px; color: var(--dim); transition: transform .4s var(--ease), color .35s; }
.cat-tile:hover { background: var(--white); color: #000; border-color: var(--white); }
.cat-tile:hover span, .cat-tile:hover svg { color: #555; }
.cat-tile:hover svg { transform: translate(3px, -3px); }

/* ================= play page ================= */
.play { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding: 20px var(--gutter) 0; }
.play.theater { grid-template-columns: minmax(0, 1fr); }
.play.theater .side { display: none; }
.stage { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.stage-frame { position: relative; width: 100%; aspect-ratio: var(--ar, 16/9); max-height: calc(100vh - var(--top-h) - 110px); margin: 0 auto; background: #000; }
.stage-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage:fullscreen .stage-frame { max-height: none; height: 100%; aspect-ratio: auto; }
.stage:fullscreen { border-radius: 0; border: 0; }
.stage:fullscreen .toolbar { display: none; }
.stage-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; overflow: hidden; }
.stage-cover > img { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(28px) brightness(.35) saturate(.6); }
.stage-cover-inner { position: relative; text-align: center; padding: 20px; }
.stage-cover-inner img.thumb { width: min(240px, 46vw); aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; margin: 0 auto 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); border: 1px solid var(--line2); }
.stage-cover h2 { font: 600 clamp(22px, 3vw, 32px)/1.05 var(--font); letter-spacing: -.04em; margin: 0 0 20px; }
.big-play { height: 50px; padding: 0 30px; font-size: 15px; }
.stage-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #000; pointer-events: none; transition: opacity .5s; }
.stage-loading.gone { opacity: 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--s3); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-stuck { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(10, 10, 10, .94); text-align: center; padding: 24px; }
.stage-stuck b { display: block; font-weight: 600; font-size: 20px; letter-spacing: -.03em; margin-bottom: 6px; }
.stage-stuck p { color: var(--muted); margin: 0 0 20px; }
.stage-stuck .hero-actions { justify-content: center; }
.toolbar { display: flex; align-items: center; gap: 4px; padding: 10px 12px 10px 18px; background: var(--bg1); border-top: 1px solid var(--line); }
.toolbar h1 { font: 600 16px/1.2 var(--font); letter-spacing: -.02em; margin: 0 auto 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13px; transition: background .2s, color .2s; }
.tool:hover { background: var(--s2); color: var(--white); }
.tool.on { color: var(--white); }
.tool.on svg { fill: currentColor; }
.tool svg { width: 16px; height: 16px; }
.about { margin-top: 18px; display: grid; gap: 12px; }
.about-card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.about-card h3 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-card p { margin: 0; color: #c2c2c2; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tags a { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 7px; background: var(--s2); color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.tags a:hover { color: var(--white); border-color: var(--line2); }
.side h3 { margin: 4px 0 14px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }

/* ================= menu ================= */
.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 12px; border-radius: 10px; background: var(--white); color: #000; font-weight: 500; font-size: 14px; transition: transform .2s var(--ease); flex-shrink: 0; }
.menu-btn:active { transform: scale(.96); }
.burger { position: relative; width: 16px; height: 10px; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 0; } .burger i:last-child { top: 8.4px; }
.menu-open .burger i:first-child { top: 4.2px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 4.2px; transform: rotate(-45deg); }
.menu {
  position: fixed; z-index: 39; inset: var(--top-h) 0 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.menu-open .top { border-bottom-color: var(--line); background: var(--bg); }
.menu-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); padding: clamp(24px, 5vh, 56px) var(--gutter) 120px; max-width: 1400px; }
.menu-links { display: grid; border-top: 1px solid var(--line); }
.menu-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(10px, 2vh, 18px) 0; border-bottom: 1px solid var(--line); font: 600 clamp(34px, 6vw, 72px)/1 var(--font); letter-spacing: -.055em; transition: color .3s, padding-left .45s var(--ease); }
.menu-links a span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.menu-links:hover a { color: var(--dim); }
.menu-links a:hover { color: var(--white); padding-left: 14px; }
.menu-links a b { font: inherit; }
.menu-links a.on b::after { content: ''; display: inline-block; width: .16em; height: .16em; margin-left: .22em; border-radius: 50%; background: var(--white); vertical-align: .12em; }
.menu-side { display: grid; align-content: start; gap: 14px; }
.menu-side .mono { margin: 10px 0 0; }
.menu-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-cats a { padding: 8px 12px; border-radius: 9px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.menu-cats a span { font: 500 10px var(--mono); color: var(--dim); margin-left: 6px; }
.menu-cats a:hover { background: var(--white); color: #000; border-color: var(--white); }
.menu-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.menu-keys kbd { margin-right: 8px; }
.menu-links a, .menu-side > * { opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .7s var(--ease), color .3s, padding-left .45s var(--ease); }
.menu-open .menu-links a, .menu-open .menu-side > * { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s), calc(.12s + var(--i, 0) * .05s), 0s, 0s; }
body.menu-open { overflow: hidden; }
@media (max-width: 1180px) { .search-btn { width: 38px; padding: 0; justify-content: center; } .search-btn span, .search-btn kbd { display: none; } }
@media (max-width: 760px) { .menu-inner { grid-template-columns: 1fr; } .menu-label { display: none; } .menu-btn { width: 38px; padding: 0; justify-content: center; } }
.mini-list { display: grid; gap: 4px; }
.mini { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 6px; border-radius: 12px; transition: background .2s; }
.mini:hover { background: var(--s1); }
.mini img { width: 104px; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; background: var(--s2); }
.mini b { font-weight: 500; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini span { display: block; font-size: 12px; color: var(--dim); margin-top: 3px; }

/* ================= watch ================= */
.vcard { display: block; text-align: left; width: 100%; }
.vcard-img { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--s1); transition: transform .4s var(--ease); }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .3s; z-index: 2; }
.vcard:hover .vcard-img { transform: translateY(-4px); }
.vcard:hover .vcard-img::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.vcard:hover .vcard-img img { transform: scale(1.05); }
.vcard:hover .card-play { opacity: 1; }
.vcard:hover .card-play span { transform: scale(1); }
.vcard-title { margin: 11px 2px 0; font-weight: 500; font-size: 14px; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-sub { margin: 4px 2px 0; font-size: 12px; color: var(--dim); }
.paste { display: flex; gap: 10px; max-width: 560px; margin-top: 24px; }
.paste .filter-input { flex: 1; height: 44px; }
.paste .btn { height: 44px; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.svc { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 18px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); font-weight: 500; letter-spacing: -.02em; transition: background .3s var(--ease), color .3s, border-color .3s; }
.svc svg { color: var(--dim); transition: transform .3s var(--ease), color .3s; width: 15px; height: 15px; }
.svc:hover { background: var(--white); color: #000; border-color: var(--white); }
.svc:hover svg { color: #000; transform: translate(2px, -2px); }
.theater { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .9); backdrop-filter: blur(12px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.theater-box { position: relative; width: min(1120px, 100%); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.96) translateY(10px); opacity: 0; } }
.theater-frame { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.theater-frame iframe, .theater-frame > div { width: 100%; height: 100%; border: 0; }
.theater-meta h3 { margin: 18px 0 4px; font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.theater-meta p { margin: 0; color: var(--muted); font-size: 14px; }
.theater-close { position: absolute; top: -50px; right: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line2); display: grid; place-items: center; transition: background .2s; }
.theater-close:hover { background: var(--s3); }

/* ================= palette ================= */
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .2s; }
.palette-box { width: min(620px, 100%); background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, .8); overflow: hidden; animation: pop .35s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--dim); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: 400 16px var(--font); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-results { max-height: 60vh; overflow-y: auto; padding: 6px; }
.pr-group { padding: 12px 10px 6px; }
.pr { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.pr img { width: 52px; height: 39px; object-fit: cover; border-radius: 7px; background: var(--s2); flex-shrink: 0; }
.pr .pr-ico { width: 52px; height: 39px; border-radius: 7px; display: grid; place-items: center; background: var(--s2); color: var(--muted); flex-shrink: 0; }
.pr b { display: block; font-size: 14px; font-weight: 500; }
.pr span { font-size: 12px; color: var(--dim); }
.pr mark { background: none; color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.pr.sel { background: var(--s3); }
.pr.sel::after { content: '↵'; margin-left: auto; color: var(--dim); font-family: var(--mono); font-size: 12px; }

/* ================= toasts ================= */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 16px; border-radius: 10px; background: var(--white); color: #000; font-weight: 500; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); animation: toastIn .45s var(--ease); max-width: min(92vw, 520px); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ================= footer / tabbar ================= */
.foot { margin-top: 40px; padding: 36px var(--gutter) 110px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 720px; }
.tabbar { display: none; }

/* ================= AI chat ================= */
.chat { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); min-height: calc(100vh - var(--top-h)); display: flex; flex-direction: column; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 26px; padding: 36px 0 28px; }
.ai-empty { margin: auto 0; padding: 6vh 0 2vh; display: grid; justify-items: start; gap: 10px; }
.ai-empty .ai-mark { width: 40px; height: 40px; margin-bottom: 10px; }
.ai-empty h1 { margin: 0; font: 600 clamp(30px, 4.4vw, 46px)/1.05 var(--font); letter-spacing: -.05em; }
.ai-empty > p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.ai-suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ai-suggest button { text-align: left; padding: 14px 16px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); display: grid; gap: 3px; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.ai-suggest button:hover { border-color: var(--line2); background: var(--s2); transform: translateY(-2px); }
.ai-suggest b { font-weight: 500; font-size: 14px; }
.ai-suggest span { font-size: 13px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ai-mark { fill: none; stroke: var(--white); stroke-width: 3.6; stroke-linecap: square; stroke-linejoin: miter; }
.msg { animation: up .45s var(--ease) both; min-width: 0; }
.msg.user { align-self: flex-end; max-width: 82%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--s2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.ai { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.ai-av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--s1); border: 1px solid var(--line); }
.ai-av .ai-mark { width: 16px; height: 16px; stroke-width: 4.5; }
.md { line-height: 1.65; color: #dcdcdc; overflow-wrap: anywhere; padding-top: 3px; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 12px; }
.md h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--white); }
.md ul, .md ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.md strong { color: var(--white); font-weight: 600; }
.md code { font: 500 13px var(--mono); background: var(--s2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.md pre { margin: 0 0 12px; padding: 14px 16px; background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.md pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.6; }
.md a { color: var(--white); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.md a.game-link { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); font-weight: 500; }
.md a:hover { text-decoration-color: var(--white); border-color: var(--white); }
.ai-err { color: var(--muted); }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--white); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: flex; align-items: center; gap: 5px; height: 24px; color: var(--dim); font-size: 13px; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: bob 1.2s var(--ease) infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
.thinking span { margin-left: 6px; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer { position: sticky; bottom: 0; padding: 12px 0 18px; background: linear-gradient(0deg, var(--bg) 70%, transparent); }
.composer-box { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 16px; background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.composer-box:focus-within { border-color: rgba(255, 255, 255, .32); box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }
.composer textarea { flex: 1; resize: none; background: none; border: 0; outline: none; color: var(--text); font: 400 15px/1.5 var(--font); padding: 6px 0; max-height: 200px; }
.composer textarea::placeholder { color: var(--dim); }
.send { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--white); color: #000; transition: transform .2s var(--ease), opacity .2s; flex-shrink: 0; }
.send:hover { transform: scale(1.06); }
.send svg { stroke-width: 2.4; }
.send.stop svg { fill: currentColor; stroke: none; }
.composer-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--dim); }
.composer-foot button { color: var(--muted); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.composer-foot button:hover { color: var(--white); }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picker .pick:nth-child(n+4) { display: none; }
}
@media (max-width: 1100px) {
  .play { grid-template-columns: minmax(0, 1fr); }
  .side .mini-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  :root { --top-h: 56px; }
  .nav { display: none; }
  .search-btn { width: 38px; padding: 0; justify-content: center; }
  .top { gap: 10px; }
  .hero { height: min(78vh, 140vw); min-height: 0; margin-top: 8px; border-radius: 16px; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 10, 10, .97) 18%, rgba(10, 10, 10, .4) 60%, rgba(10, 10, 10, .1)); }
  .hero-info { top: auto; bottom: 92px; right: 20px; max-width: none; left: 20px; }
  .hero-info p { display: none; }
  .picker { grid-template-columns: repeat(6, 1fr); left: 20px; right: 20px; bottom: 20px; gap: 6px; }
  .picker .pick:nth-child(n+4) { display: grid; }
  .pick { padding: 3px; grid-template-columns: 1fr; border-radius: 9px; }
  .pick img { width: 100%; height: auto; aspect-ratio: 4/3; }
  .pick b { display: none; }
  .row-arrow { display: none; }
  .row-track { grid-auto-columns: 42vw; }
  .row.wide .row-track { grid-auto-columns: 74vw; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .stage { border-radius: 12px; }
  .stage-frame { max-height: 70vh; }
  .toolbar .tool span { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, .9); backdrop-filter: blur(20px); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 500; color: var(--dim); transition: color .2s; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .on { color: var(--white); }
  .filter-input { flex: 1; min-width: 0; }
  .card-fav { opacity: 1; transform: none; }
  .result-count { width: 100%; margin: 0; }
  .chat { min-height: calc(100vh - var(--top-h) - 64px); }
  .composer { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .ai-suggest { grid-template-columns: 1fr; }
  .composer-foot span { font-size: 11px; }
}
/* Reduced motion: keep fades and color transitions, drop sliding, zooming and looping movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes up { from { opacity: 0; } }
  @keyframes dropIn { from { opacity: 0; } }
  @keyframes pop { from { opacity: 0; } }
  @keyframes toastIn { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: none; } to { opacity: 1; transform: none; } }
  .hero-bg img, .hero-bg img.on { transform: none; }
  .land-scroll i, .card-img::before, .thinking i { animation: none; }
}

body[data-page="ai"] .foot { display: none; }

/* ================= v4: top bar ================= */
.rail, .tabbar { display: none !important; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.top .brand { justify-self: start; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.top .search-btn { margin-left: 0; width: 210px; }
@media (max-width: 1180px) { .top .search-btn { width: 38px; padding: 0; justify-content: center; } .top .search-btn span, .top .search-btn kbd { display: none; } }
@media (max-width: 860px) { .top { padding: 0 16px; gap: 10px; } .top-actions { gap: 6px; } .menu-btn { width: 38px; padding: 0; justify-content: center; } .menu-label { display: none; } }
.nav { position: relative; display: flex; gap: 2px; margin: 0; padding: 4px; border-radius: 14px; background: rgba(20, 20, 20, .7); border: 1px solid var(--line); }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .35s var(--ease); }
.nav a svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.nav a:hover { color: var(--white); }
.nav a:hover svg { transform: translateY(-1px) scale(1.08); }
.nav a.on { color: #000; }
.nav a.on::after { display: none; }
.nav-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px -8px rgba(255, 255, 255, .45); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.nav-ind.show { opacity: 1; }
.icon-btn.on { color: var(--white); border-color: var(--line2); }
.icon-btn.on svg { fill: currentColor; }
.menu-btn { display: none; }
@media (max-width: 1060px) { .nav a svg { display: none; } .nav a { padding: 0 12px; } }
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .composer { bottom: 0; }
}

/* ================= v3: landing ================= */
.landing { position: relative; min-height: min(92vh, 900px); display: grid; place-items: center; padding: 60px var(--gutter) 90px; overflow: hidden; isolation: isolate; text-align: center; }
.landing canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.landing::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 50% 45%, transparent 0%, rgba(10, 10, 10, .35) 55%, var(--bg) 100%); }
.land-inner { display: grid; justify-items: center; gap: 22px; width: min(760px, 100%); }
.land-inner > * { animation: up 1s var(--ease) both; }
.land-inner > :nth-child(2) { animation-delay: .07s; } .land-inner > :nth-child(3) { animation-delay: .14s; }
.land-inner > :nth-child(4) { animation-delay: .21s; } .land-inner > :nth-child(5) { animation-delay: .28s; }
.land-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(20, 20, 20, .6); backdrop-filter: blur(10px); font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.land-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.land-title { margin: 0; font: 600 clamp(64px, 12vw, 168px)/.86 var(--font); letter-spacing: -.07em; background: linear-gradient(180deg, #fff 30%, #7d7d7d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.land-sub { margin: 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 520px; }
.land-search { position: relative; width: min(620px, 100%); }
.land-search input { width: 100%; height: 60px; padding: 0 120px 0 54px; border-radius: 16px; background: rgba(20, 20, 20, .75); border: 1px solid var(--line2); color: var(--text); font: 400 16px var(--font); outline: none; backdrop-filter: blur(16px); transition: border-color .25s, box-shadow .3s, background .25s; }
.land-search input::placeholder { color: var(--dim); }
.land-search input:focus { border-color: rgba(255, 255, 255, .4); background: rgba(24, 24, 24, .9); box-shadow: 0 0 0 6px rgba(255, 255, 255, .05), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.land-search > svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 19px; height: 19px; }
.land-search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.land-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(760px, 100%); margin-top: 6px; }
.land-tile { display: grid; justify-items: start; gap: 18px; padding: 16px; border-radius: 16px; text-align: left; background: rgba(20, 20, 20, .6); border: 1px solid var(--line); backdrop-filter: blur(14px); transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.land-tile svg { width: 22px; height: 22px; }
.land-tile b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.02em; }
.land-tile span { display: block; font: 500 11px var(--mono); color: var(--dim); margin-top: 2px; transition: color .3s; }
.land-tile:hover { transform: translateY(-4px); background: var(--white); color: #000; border-color: var(--white); }
.land-tile:hover span { color: #555; }
.land-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.land-scroll i { width: 1px; height: 34px; background: linear-gradient(var(--dim), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero { margin-top: 0; }

/* ================= v3: movies ================= */
.poster { display: block; text-align: left; width: 100%; }
.poster-img { position: relative; aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; background: var(--s1); transition: transform .4s var(--ease); }
.poster-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .6s var(--ease), filter .4s; }
.poster-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .3s; }
.poster:hover .poster-img { transform: translateY(-4px); }
.poster:hover .poster-img::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.poster:hover .poster-img img { transform: scale(1.05); filter: none; }
.poster:hover .card-play { opacity: 1; }
.poster:hover .card-play span { transform: scale(1); }
.poster-title { margin: 11px 2px 0; font-weight: 500; font-size: 14px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-sub { margin: 2px 2px 0; font-size: 12px; color: var(--dim); }
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 13vw, 180px), 1fr)); }
.row.posters .row-track { grid-auto-columns: clamp(130px, 13vw, 180px); }
.theater-frame iframe { display: block; }

@media (max-width: 860px) {
  .landing { min-height: auto; padding: 56px var(--gutter) 60px; }
  .land-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-tiles .land-tile:last-child { grid-column: span 2; }
  .land-scroll { display: none; }
  .land-search input { height: 54px; padding-right: 20px; }
  .land-search kbd { display: none; }
  .row.posters .row-track { grid-auto-columns: 34vw; }
  .grid.posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .grid.posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* page cross-fade */
main { transition: opacity .2s ease, filter .2s ease; }
main.leaving { opacity: 0; filter: blur(4px); }
main.swap > * { animation: up .7s var(--ease) both; }
main.swap > *:nth-child(2) { animation-delay: .06s; } main.swap > *:nth-child(3) { animation-delay: .12s; } main.swap > *:nth-child(n+4) { animation-delay: .18s; }

/* shows */
.land-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(720px, 100%); }
.land-tile { grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 18px; }
.svc-big { height: 76px; }
.svc-big span { display: grid; gap: 2px; }
.svc-big b { font-weight: 500; font-size: 16px; }
.svc-big small { font-size: 12px; color: var(--dim); transition: color .3s; }
.svc-big:hover small { color: #555; }
#showRows .section:first-child { padding-top: 8px; }
@media (max-width: 860px) {
  .land-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-tiles .land-tile:last-child { grid-column: auto; }
  .land-tile { grid-template-columns: 1fr; gap: 14px; }
}

/* standalone home screen: one fixed screen, no page scroll */
body[data-page="home"] { overflow: hidden; }
body[data-page="home"] .foot { display: none; }
body[data-page="home"] main { padding: 0; min-height: 0; }
body[data-page="home"] .landing { height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); min-height: 0; padding-block: 24px; overflow-y: auto; scrollbar-width: none; }
.land-resume { display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(20, 20, 20, .6); border: 1px solid var(--line); backdrop-filter: blur(14px); font-size: 14px; font-weight: 500; text-align: left; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.land-resume img { width: 44px; height: 33px; object-fit: cover; border-radius: 8px; }
.land-resume span { display: grid; }
.land-resume small { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.land-resume svg { width: 16px; height: 16px; color: var(--dim); transition: transform .35s var(--ease); }
.land-resume:hover { border-color: var(--line2); background: rgba(30, 30, 30, .8); transform: translateY(-2px); }
.land-resume:hover svg { transform: translateX(3px); color: var(--white); }
.games-head { display: grid; gap: 4px; padding-bottom: 22px; }
.games-head .hero-actions { margin-top: 6px; }
.games-head .btn svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  body[data-page="home"] .landing { height: calc(100dvh - var(--top-h)); padding-block: 16px; }
  body[data-page="home"] .land-inner { gap: 16px; }
  body[data-page="home"] .land-title { font-size: clamp(52px, 16vw, 90px); }
  body[data-page="home"] .land-sub { display: none; }
  body[data-page="home"] .land-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body[data-page="home"] .land-tile { padding: 14px 10px; gap: 10px; justify-items: center; text-align: center; }
  body[data-page="home"] .land-tile span { display: none; }
  body[data-page="home"] .land-search input { height: 50px; }
}
@media (max-width: 860px) { .land-kicker { font-size: 11px; white-space: nowrap; } .kick-ai { display: none; } }

/* ================= v4: title, tiles, no accidental highlighting ================= */
/* nothing on the page highlights on drag or double-click, except where you type or read AI answers */
body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable="true"], .md, .msg.user { -webkit-user-select: text; user-select: text; }
img, svg, a { -webkit-user-drag: none; }

/* title: words rise out of a blur, then a slow light sweep crosses the letters */
.landing .land-inner > .land-title { animation: none; }
.land-title { position: relative; display: flex; gap: .22em; justify-content: center; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.land-title .lt-w {
  display: inline-block; padding-bottom: .06em;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, .95) 48%, transparent 56% 100%) no-repeat, linear-gradient(180deg, #fff 25%, #777 100%);
  background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordIn 1.1s var(--ease) both, sweep 7s 1.6s ease-in-out infinite;
}
.land-title .lt-w:last-child { animation-delay: .12s, 1.75s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.18em); filter: blur(14px); } }
@keyframes sweep { 0%, 55% { background-position: 160% 0, 0 0; } 85%, 100% { background-position: -60% 0, 0 0; } }
.land-title::after { content: ''; position: absolute; inset: 20% 10% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent); filter: blur(20px); pointer-events: none; }

/* section tiles: glass, icon well, cursor spotlight, arrow on hover */
.land-tile { position: relative; overflow: hidden; isolation: isolate; grid-template-columns: auto 1fr auto !important; align-items: center; background: linear-gradient(180deg, rgba(28, 28, 28, .72), rgba(16, 16, 16, .72)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.land-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 65%); }
.land-tile:hover { transform: translateY(-3px); background: linear-gradient(180deg, rgba(34, 34, 34, .85), rgba(18, 18, 18, .85)); color: var(--white); border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px -18px rgba(0, 0, 0, .9); }
.land-tile:hover::before { opacity: 1; }
.land-tile:hover span { color: var(--muted); }
.tile-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .35s var(--ease), color .35s, border-color .35s, transform .45s var(--ease); }
.tile-ico svg { width: 20px; height: 20px; }
.land-tile:hover .tile-ico { background: var(--white); color: #000; border-color: var(--white); transform: rotate(-6deg) scale(1.04); }
.tile-go { display: grid; place-items: center; color: var(--dim); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease), color .3s; }
.tile-go svg { width: 16px; height: 16px; }
.land-tile:hover .tile-go { opacity: 1; transform: none; color: var(--white); }
.land-tiles .land-tile { animation: up .8s var(--ease) both; }
.land-tiles .land-tile:nth-child(2) { animation-delay: .05s; } .land-tiles .land-tile:nth-child(3) { animation-delay: .1s; }
.land-tiles .land-tile:nth-child(4) { animation-delay: .15s; } .land-tiles .land-tile:nth-child(5) { animation-delay: .2s; } .land-tiles .land-tile:nth-child(6) { animation-delay: .25s; }

@media (max-width: 860px) {
  .land-tile { grid-template-columns: 1fr !important; }
  .tile-go { display: none; }
  body[data-page="home"] .land-tile .tile-ico { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes wordIn { from { opacity: 0; } }
  .land-title .lt-w { animation: wordIn .8s ease both; }
}

/* ================= v5: performance ================= */
/* No backdrop blur over the animated constellation: a blur above a changing canvas must be recomputed every frame. Solid glass-look fills instead. */
.landing .land-kicker, .landing .land-search input, .landing .land-tile, .landing .land-resume { -webkit-backdrop-filter: none; backdrop-filter: none; }
.landing .land-kicker, .landing .land-resume { background: rgba(18, 18, 18, .9); }
.landing .land-search input { background: rgba(16, 16, 16, .92); }
.landing .land-search input:focus { background: rgba(20, 20, 20, .96); }
.landing .land-tile { background: linear-gradient(180deg, rgba(28, 28, 28, .94), rgba(15, 15, 15, .94)); }
.landing .land-tile:hover { background: linear-gradient(180deg, rgba(36, 36, 36, .97), rgba(18, 18, 18, .97)); }
/* Loading shimmer stops as soon as the image arrives (it used to animate forever behind every card). */
.card-img.loaded::before { animation: none; background: var(--s1); }
/* Page change: a plain fade (blurring the whole page each transition is expensive on long pages). */
main { transition: opacity .18s ease; }
main.leaving { opacity: 0; filter: none; }
/* Off-screen sections skip layout and paint until they scroll near the viewport. */
.section, #showRows > .section { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.landing, .chat { content-visibility: visible; }
.card, .vcard, .poster { contain: layout style; }
.hero-bg img { will-change: opacity; }

/* ================= v5: design polish ================= */
/* page titles share the landing title's gradient + reveal */
.page-title { background: linear-gradient(180deg, #fff 35%, #8a8a8a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; animation: wordIn 1s var(--ease) both; }
.page-head { position: relative; }
main { position: relative; }
main::before { content: ''; position: absolute; inset: calc(var(--top-h) * -1) 0 auto; height: 460px; z-index: -1; pointer-events: none; background: radial-gradient(55% 100% at 50% 0%, rgba(255, 255, 255, .055), transparent 70%); }
body[data-page="home"] main::before { display: none; }
/* sections holding a sliding selector always lay out (so the pill can measure itself) */
.section:has(.seg) { content-visibility: visible; }
/* top bar: a faint pill follows the pointer, the white pill marks where you are */
.nav-ghost { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s; pointer-events: none; }
.nav-ghost.show { opacity: 1; }
/* duration chip on episodes and movies */
.dur { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .78); font: 500 11px var(--mono); color: var(--white); letter-spacing: .02em; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 22vw, 300px), 1fr)); gap: 24px 16px; }
/* Rick and Morty official link card */
.feature-wrap { display: grid; }
.feature-link { position: relative; display: grid; gap: 8px; padding: 26px 28px; border-radius: 18px; overflow: hidden; isolation: isolate; border: 1px solid var(--line2); background: linear-gradient(120deg, #161616, #0d0d0d); transition: border-color .35s, transform .45s var(--ease); }
.feature-link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at 85% 20%, rgba(255, 255, 255, .09), transparent 60%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.feature-link b { font: 600 clamp(28px, 4vw, 44px)/1 var(--font); letter-spacing: -.05em; }
.feature-link .fl-sub { color: var(--muted); max-width: 560px; }
.feature-link .fl-go { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--white); color: #000; font-weight: 500; font-size: 14px; transition: transform .3s var(--ease); }
.feature-link .fl-go svg { width: 15px; height: 15px; }
.feature-link:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.feature-link:hover .fl-go { transform: translateX(3px); }
/* "Classics" divider */
.divider { display: flex; align-items: center; gap: 14px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .grid.wide { grid-template-columns: 1fr; } .feature-link { padding: 22px; } }

/* ================= v6: Games page, AI finder ================= */
.games-top { display: grid; gap: 6px; }
.finder { position: relative; display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; max-width: 760px; height: 58px; padding: 0 8px 0 18px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line2); transition: border-color .25s, box-shadow .3s; }
.finder:focus-within { border-color: rgba(255, 255, 255, .38); box-shadow: 0 0 0 6px rgba(255, 255, 255, .04); }
.finder > svg { color: var(--dim); width: 19px; height: 19px; }
.finder input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: 400 16px var(--font); }
.finder input::placeholder { color: var(--dim); }
.finder input::-webkit-search-cancel-button { display: none; }
.ai-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; background: var(--white); color: #000; font-weight: 500; font-size: 14px; flex-shrink: 0; transition: transform .25s var(--ease), opacity .2s; }
.ai-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.ai-btn:hover { transform: translateY(-1px); }
.ai-btn.busy svg { animation: spin 1s linear infinite; }
.ai-btn:disabled { opacity: .7; cursor: progress; }
.ai-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; padding: 10px 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; color: var(--muted); animation: up .4s var(--ease) both; }
.ai-note .thinking { height: auto; }
.ai-q { color: var(--text); }
.ai-tag { padding: 3px 9px; border-radius: 7px; background: var(--s3); color: var(--text); font-size: 12px; }
.ai-clear { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.ai-clear:hover { color: var(--white); }
.cat-pills { margin-top: 10px; flex-wrap: wrap; overflow: visible; }
.results-bar { margin: 18px 0 18px; }
.results-bar .result-count { margin-left: 0; margin-right: auto; }
/* generated cover for games without an official preview image */
.ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font: 600 clamp(16px, 2vw, 22px)/1.05 var(--font); letter-spacing: -.04em; color: var(--white); background: radial-gradient(120% 90% at 20% 10%, #2b2b2b, #111 60%), #111; }
.ph::after { content: 'Official site'; position: absolute; left: 12px; bottom: 10px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ph-big { position: static; width: min(240px, 46vw); aspect-ratio: 4/3; margin: 0 auto 20px; border-radius: 14px; border: 1px solid var(--line2); font-size: 26px; }
@media (max-width: 860px) {
  .finder { height: 54px; padding-left: 14px; }
  .ai-btn span { display: none; }
  .ai-btn { width: 42px; padding: 0; justify-content: center; }
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; }
}

/* category pills */
.chips { display: flex; gap: 8px; scrollbar-width: none; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease); }
.chip .n { font: 500 11px var(--mono); color: var(--dim); transition: color .25s; }
.chip:hover { color: var(--white); border-color: var(--line2); transform: translateY(-1px); }
.chip.on { background: var(--white); color: #000; border-color: var(--white); }
.chip.on .n { color: #666; }
.mini-ph { display: grid; place-items: center; width: 104px; aspect-ratio: 4/3; border-radius: 9px; padding: 6px; background: radial-gradient(120% 90% at 20% 10%, #2b2b2b, #111 60%); font-weight: 600; font-size: 12px; text-align: center; letter-spacing: -.02em; color: var(--white); }

/* ================= v7: shows, music, dock ================= */
.show-card { display: block; }
.show-card:hover .vcard-img { transform: translateY(-4px); }
.show-card:hover .vcard-img::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.show-card:hover .vcard-img img { transform: scale(1.05); }
.show-card:hover .card-play { opacity: 1; }
.show-card:hover .card-play span { transform: scale(1); }
.show-card .vcard-title { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.ep-n { position: absolute; z-index: 2; left: 8px; bottom: 8px; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 6px; display: grid; place-items: center; background: rgba(0, 0, 0, .78); font: 500 11px var(--mono); color: var(--white); }
.show-hero { position: relative; margin: 12px var(--gutter) 0; min-height: min(56vh, 520px); border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; background: var(--s1); }
.show-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } }
.show-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .6) 45%, rgba(10, 10, 10, .15) 80%), linear-gradient(0deg, rgba(10, 10, 10, .95), transparent 55%); }
.show-info { display: grid; gap: 10px; padding: clamp(22px, 4vw, 52px); max-width: 640px; }
.show-info h1 { margin: 0; font: 600 clamp(36px, 5.4vw, 72px)/.95 var(--font); letter-spacing: -.055em; text-wrap: balance; animation: wordIn 1s var(--ease) both; }
.show-info p { margin: 0; color: #c8c8c8; }
.show-info .hero-actions { margin-top: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s, gap .3s var(--ease); }
.back:hover { color: var(--white); gap: 10px; }
.back svg { width: 15px; height: 15px; }
.season-pills { flex-wrap: wrap; margin: 4px 0 22px; }
.season-pills .chip { cursor: pointer; }
.credit { margin-top: 12px !important; font-size: 13px; color: var(--muted) !important; }
.credit a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
/* music */
.grid.streams { grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 19vw, 260px), 1fr)); gap: 22px 16px; }
.stream { display: block; text-align: left; width: 100%; }
.stream:hover .vcard-img { transform: translateY(-4px); }
.stream:hover .vcard-img::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.stream:hover .card-play { opacity: 1; }
.stream:hover .card-play span { transform: scale(1); }
.live-dot { position: absolute; z-index: 2; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .75); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.grid.radios { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.radio { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); text-align: left; transition: background .25s, border-color .25s, transform .35s var(--ease); min-width: 0; }
.radio:hover { background: var(--s2); border-color: var(--line2); transform: translateY(-2px); }
.radio img, .radio-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #fff; }
.radio-ph { display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 10%, #333, #111 60%); font-weight: 600; font-size: 20px; color: var(--white); text-transform: uppercase; }
.radio-meta { display: grid; min-width: 0; }
.radio-meta b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-meta small { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--s3); color: var(--white); transition: background .25s, color .25s; }
.radio-play svg { width: 13px; height: 13px; fill: currentColor; stroke: none; margin-left: 2px; }
.radio:hover .radio-play { background: var(--white); color: #000; }
.radio.sk { height: 70px; background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
/* dock: the mini player */
.dock { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: rgba(18, 18, 18, .96); border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.dock.in { opacity: 1; transform: none; }
.dock-media { display: none; }
.dock.is-video .dock-media { display: block; aspect-ratio: 16/9; background: #000; }
.dock.is-video .dock-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.dock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.dock-meta { flex: 1; min-width: 0; display: grid; }
.dock-meta b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta span { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--white); flex-shrink: 0; transition: background .2s; }
.dock-btn:hover { background: #333; }
.dock-btn svg { width: 15px; height: 15px; }
.dock-btn .i-play { fill: currentColor; stroke: none; }
.dock #dockToggle .i-play { display: none; }
.dock:not(.playing) #dockToggle .i-pause { display: none; }
.dock:not(.playing) #dockToggle .i-play { display: block; }
.dock.is-video #dockToggle, .dock.is-video .dock-vol { display: none; }
.dock-vol { width: 70px; accent-color: #fff; }
.dock-eq { display: flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; flex-shrink: 0; }
.dock-eq i { flex: 1; background: var(--white); border-radius: 1px; height: 30%; }
.dock.playing .dock-eq i { animation: eq .9s ease-in-out infinite; }
.dock.playing .dock-eq i:nth-child(2) { animation-delay: .2s; }
.dock.playing .dock-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
body.docked main { padding-bottom: 140px; }
@media (max-width: 860px) {
  .dock-vol { display: none; }
  .grid.radios { grid-template-columns: 1fr; }
  .grid.streams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show-hero { min-height: 60vh; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .show-bg { animation: none; } .dock.playing .dock-eq i { animation: none; height: 70%; } }
.radio img { background: var(--s2); } .radio img.ok { background: #fff; }

.ph-ep { font-size: clamp(14px, 1.5vw, 18px); padding: 18px; }
.ph-ep::after { content: 'Episode'; }
.stage-frame { max-width: calc((100vh - var(--top-h) - 110px) * var(--ar, 1.777)); }
.stage:fullscreen .stage-frame { max-width: none; }

/* ================= v8: nebula sky, player, songs, picture tiles ================= */
html { background: var(--bg); }
body { background: transparent; }
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -3; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
#sky.on { opacity: .55; }
body[data-page="home"] #sky.on { opacity: 1; }
#sky.flat { opacity: 1; background: radial-gradient(70% 60% at 52% 40%, #1a1a1d 0%, #0d0d0f 55%, var(--bg) 100%); }
.landing::after { display: none; }
.landing canvas#field { z-index: -1; }
main::before { z-index: -2; }
.brand-word { font-size: 18px; letter-spacing: -.045em; }
.brand-word b { font-weight: 400; color: var(--muted); margin-left: 5px; }

/* home tiles carry a picture of what's inside */
.land-tile.has-img::after { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; opacity: .32; filter: grayscale(.15); -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 78%); mask-image: linear-gradient(100deg, transparent 18%, #000 78%); transition: opacity .5s var(--ease), transform .9s var(--ease); }
.land-tile.has-img:hover::after { opacity: .7; transform: scale(1.07); }
.land-tile { min-height: 88px; }

/* songs */
.tracks { display: grid; gap: 2px; }
.track { display: grid; grid-template-columns: 36px 44px minmax(0, 1fr) 140px 64px 52px; align-items: center; gap: 14px; padding: 7px 12px 7px 8px; border-radius: 10px; text-align: left; width: 100%; transition: background .2s; }
.track:hover { background: rgba(255, 255, 255, .05); }
.track img, .tr-ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--s2); }
.tr-n { display: grid; place-items: center; color: var(--dim); font: 500 13px var(--mono); }
.tr-n svg { display: none; width: 14px; height: 14px; fill: var(--white); stroke: none; }
.track:hover .tr-n em { display: none; }
.track:hover .tr-n svg { display: block; }
.tr-n em { font-style: normal; }
.tr-meta { display: grid; min-width: 0; }
.tr-meta b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-meta small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-g { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-p, .tr-d { font: 500 12px var(--mono); color: var(--dim); text-align: right; }
.track.now { background: rgba(255, 255, 255, .07); }
.track.now .tr-meta b { color: var(--white); }
.track.now .tr-n em { display: none; }
.track.now .tr-n::after { content: ''; width: 12px; height: 12px; background: linear-gradient(var(--white), var(--white)) 0 100% / 3px 60% no-repeat, linear-gradient(var(--white), var(--white)) 50% 100% / 3px 100% no-repeat, linear-gradient(var(--white), var(--white)) 100% 100% / 3px 40% no-repeat; }
.track.now:hover .tr-n::after { display: none; }
.track.sk { height: 58px; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .04) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.radio.now { border-color: rgba(255, 255, 255, .45); background: var(--s2); }
.grid.plists { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 14vw, 190px), 1fr)); gap: 22px 16px; }
.plist { display: block; text-align: left; width: 100%; }
.pl-art { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--s2); transition: transform .4s var(--ease); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.plist:hover .pl-art { transform: translateY(-4px); }
.plist:hover .pl-art img { transform: scale(1.05); }
.plist:hover .card-play { opacity: 1; }
.plist:hover .card-play span { transform: scale(1); }
.pl-head { display: flex; gap: 22px; align-items: flex-end; margin: 18px 0 24px; }
.pl-head img { width: 160px; height: 160px; border-radius: 14px; object-fit: cover; box-shadow: 0 20px 50px -20px #000; }
.pl-head h2 { margin: 6px 0 14px; font: 600 clamp(26px, 3.4vw, 42px)/1 var(--font); letter-spacing: -.04em; }
#mfind { margin-top: 18px; }

/* the player bar */
.player { position: fixed; z-index: 75; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(12, 12, 12, .97); border-top: 1px solid var(--line2); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9); transform: translateY(100%); transition: transform .5s var(--ease); }
.player.in { transform: none; }
.pl-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-now img, .pl-ph { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--s2); }
.pl-ph { display: grid; place-items: center; font-weight: 600; font-size: 20px; text-transform: uppercase; background: radial-gradient(120% 90% at 20% 10%, #333, #111 60%); }
.pl-meta { display: grid; min-width: 0; }
.pl-meta b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-center { display: grid; justify-items: center; gap: 4px; }
.pl-ctrls { display: flex; align-items: center; gap: 14px; }
.pl-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .2s, transform .2s var(--ease), background .2s; }
.pl-btn:hover { color: var(--white); }
.pl-btn svg { width: 17px; height: 17px; }
.pl-btn #x, .pl-btn .i-play { fill: currentColor; stroke: none; }
#plPrev svg, #plNext svg { fill: currentColor; }
.pl-main { width: 40px; height: 40px; background: var(--white); color: #000; }
.pl-main:hover { color: #000; transform: scale(1.06); }
.player .i-play { display: none; }
.player:not(.playing) .i-pause { display: none; }
.player:not(.playing) .i-play { display: block; }
.pl-seek { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; width: 100%; font: 500 11px var(--mono); color: var(--dim); }
.pl-seek span:last-child { text-align: left; }
.pl-seek span:first-child { text-align: right; }
.pl-live { display: none; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: pulse 1.6s infinite; }
.player.is-radio .pl-seek, .player.is-radio #plPrev, .player.is-radio #plNext { display: none; }
.player.is-radio .pl-live { display: flex; }
.pl-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pl-vol-ico { width: 17px; height: 17px; color: var(--muted); }
.player input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(var(--white), var(--white)) 0 / var(--p, 0%) 100% no-repeat, #333; cursor: pointer; }
.player input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--white); opacity: 0; transition: opacity .2s; }
.player input[type="range"]:hover::-webkit-slider-thumb { opacity: 1; }
.player input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--white); }
#plSeek { width: 100%; }
#plVol { width: 96px; }
body.has-player main { padding-bottom: 120px; }
body.has-player .dock { bottom: 96px; }
.dock { width: min(340px, calc(100vw - 32px)); }
.dock .dock-media { display: block; aspect-ratio: 16/9; background: #000; }
.dock .dock-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.dock .dock-eq i { animation: eq .9s ease-in-out infinite; }
.dock .dock-eq i:nth-child(2) { animation-delay: .2s; }
.dock .dock-eq i:nth-child(3) { animation-delay: .4s; }
@media (max-width: 860px) {
  .player { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .pl-center { grid-column: 2; grid-row: 1; }
  .pl-seek { display: none; }
  .pl-right { display: none; }
  .pl-ctrls { gap: 6px; }
  .player.is-radio .pl-live { display: none; }
  .track { grid-template-columns: 28px 44px minmax(0, 1fr) 44px; gap: 10px; }
  .tr-g, .tr-p { display: none; }
  .pl-head img { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) { #sky { transition: none; } }

.resume-ph { width: 44px; height: 33px; aspect-ratio: auto; border-radius: 8px; font-size: 14px; padding: 0; }
.land-tile.has-img::after { -webkit-mask-image: linear-gradient(100deg, transparent 42%, rgba(0,0,0,.55) 66%, #000 92%); mask-image: linear-gradient(100deg, transparent 42%, rgba(0,0,0,.55) 66%, #000 92%); opacity: .42; }
.land-tile.has-img:hover::after { opacity: .8; }
@media (max-width: 860px) { .land-tile.has-img::after { -webkit-mask-image: linear-gradient(0deg, transparent 35%, #000 100%); mask-image: linear-gradient(0deg, transparent 35%, #000 100%); opacity: .3; } }

/* ================= v9: title reveal + glint ================= */
.land-title { position: relative; display: inline-block; gap: 0; background: none; color: inherit; }
.land-title .lt {
  display: inline-block; padding-bottom: .06em;
  background: linear-gradient(180deg, #f4f4f4 18%, #8c8c8c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleIn 1.2s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes titleIn {
  0% { opacity: 0; transform: translateY(.14em) scale(.97); filter: blur(18px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
/* the glint: an exact copy of the text, transparent except a moving bright band with a soft glow */
.land-title::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; padding-bottom: .06em; white-space: nowrap; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 40%, rgba(255, 255, 255, .25) 45%, #fff 50%, rgba(255, 255, 255, .25) 55%, transparent 60% 100%) no-repeat;
  background-size: 320% 100%; background-position: 135% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, .5));
  animation: glintIn 1.7s .8s cubic-bezier(.35, .6, .2, 1) both, glint 9s 5s ease-in-out infinite;
}
@keyframes glintIn { from { background-position: 135% 0; } to { background-position: -35% 0; } }
@keyframes glint { 0%, 72% { background-position: 135% 0; } 90%, 100% { background-position: -35% 0; } }
/* soft halo that breathes behind the title */
.land-title::before { content: ''; position: absolute; inset: 10% -8% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent); filter: blur(24px); animation: halo 6s 1.2s ease-in-out infinite both; pointer-events: none; }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
/* wait for the intro to finish before playing the title animation */
body.intro-on .land-title .lt, body.intro-on .land-title::after, body.intro-on .land-title::before { animation-play-state: paused; }
/* the header wordmark glints on hover */
.brand:hover .brand-word b { color: var(--white); transition: color .3s; }
@media (prefers-reduced-motion: reduce) {
  @keyframes titleIn { from { opacity: 0; } }
  .land-title::after { animation: glintIn 1.7s .8s ease both; }
  .land-title::before { animation: none; }
}
.land-title::after { inset: 0 auto auto 0; z-index: 1; width: auto; height: auto; }
.land-title .lt { background: linear-gradient(180deg, #e9e9e9 15%, #7a7a7a 100%); -webkit-background-clip: text; background-clip: text; }
.land-title::after { background-image: linear-gradient(100deg, transparent 0 38%, rgba(255,255,255,.35) 44%, #fff 50%, rgba(255,255,255,.35) 56%, transparent 62% 100%); filter: drop-shadow(0 0 18px rgba(255,255,255,.65)); }

/* ================= v10: top bar, player, music library, videos, finder ================= */
/* top bar: solid black that dissolves into the fog */
.top { background: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom-color: transparent !important; }
.top::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 64px; pointer-events: none; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .72) 30%, rgba(0, 0, 0, .28) 65%, transparent 100%); }
.dock { display: none !important; }

/* ---- AA player ---- */
.vp { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .88); opacity: 0; transition: opacity .25s ease; }
.vp.in { opacity: 1; }
.vp-win { position: relative; width: min(1180px, 100%); transform: scale(.97); transition: transform .35s var(--ease); }
.vp.in .vp-win { transform: none; }
.vp-bar { display: none; }
.vp-stage { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); width: 100%; margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.vp-media, .vp-media > div, .vp-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.vp-big { position: absolute; z-index: 2; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #000; opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.vp-big svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }
.vp:not(.playing):not(.buffering) .vp-big { opacity: 1; transform: none; pointer-events: auto; }
.vp-spin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; pointer-events: none; transition: opacity .2s; }
.vp.buffering .vp-spin { opacity: 1; }
.vp-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 40px 14px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45) 55%, transparent); transition: opacity .3s ease, transform .3s var(--ease); }
.vp.idle .vp-ui { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vp.idle .vp-stage { cursor: none; }
.vp-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.vp-ib { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: background .2s, transform .2s var(--ease); }
.vp-ib:hover { background: rgba(255, 255, 255, .14); }
.vp-ib:active { transform: scale(.92); }
.vp-ib svg { width: 19px; height: 19px; }
.vp-ib svg.fill, .vp-ib .fill { fill: currentColor; }
.vp-pp .i-play { display: none; }
.vp:not(.playing) .vp-pp .i-pause { display: none; }
.vp:not(.playing) .vp-pp .i-play { display: block; }
.vp .i-x { display: none; }
.vp.muted .i-x { display: block; }
.vp.muted .i-wave { display: none; }
.vp-volw { display: flex; align-items: center; }
.vp-vol { width: 0; opacity: 0; transition: width .3s var(--ease), opacity .2s; }
.vp-volw:hover .vp-vol, .vp-vol:focus { width: 90px; opacity: 1; margin: 0 8px 0 2px; }
.vp-time { font: 500 12px var(--mono); color: rgba(255, 255, 255, .85); margin-left: 6px; white-space: nowrap; }
.vp-sp { flex: 1; }
.vp-rate { width: auto; padding: 0 10px; font: 600 12px var(--mono); }
.vp input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; cursor: pointer; background: linear-gradient(#fff, #fff) 0 / var(--p, 0%) 100% no-repeat, linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .35)) 0 / var(--b, 0%) 100% no-repeat, rgba(255, 255, 255, .18); }
.vp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); transform: scale(0); transition: transform .2s var(--ease); }
.vp input[type="range"]:hover::-webkit-slider-thumb, .vp input[type="range"]:active::-webkit-slider-thumb { transform: scale(1); }
.vp input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.vp-seek { width: 100%; height: 5px; transition: height .2s; }
.vp-seek:hover { height: 7px; }
.vp:not(.has-list) .vp-list, .vp.live .vp-nolive, .vp.live .vp-seek { display: none; }
.vp.native .vp-ui, .vp.native .vp-hit, .vp.native .vp-big, .vp.native .vp-spin { display: none; }
.vp-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 4px 0; }
.vp-meta h3 { margin: 0 0 4px; font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.vp-meta p { margin: 0; color: var(--muted); font-size: 14px; }
.vp-close { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line2); flex-shrink: 0; transition: background .2s; }
.vp-close:hover { background: var(--s3); }
.vp-close svg { width: 17px; height: 17px; }
.vp-stage:fullscreen { aspect-ratio: auto; max-height: none; border-radius: 0; border: 0; }
.vp-h { display: none; }
/* pop-out window */
.vp.pop { background: transparent; pointer-events: none; padding: 0; display: block; }
.vp.pop .vp-win { position: fixed; pointer-events: auto; display: flex; flex-direction: column; width: 460px; height: 300px; border-radius: 14px; overflow: visible; background: #000; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6); transform: none; }
.vp.pop .vp-bar { display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px 0 12px; background: #111; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; cursor: grab; user-select: none; touch-action: none; }
.vp.pop.dragging .vp-bar { cursor: grabbing; }
.vp-bar-title { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp.pop .vp-bar .vp-ib { width: 30px; height: 28px; border-radius: 8px; }
.vp.pop .vp-bar .vp-ib svg { width: 15px; height: 15px; }
.vp.pop .vp-stage { flex: 1; aspect-ratio: auto; max-height: none; border-radius: 0 0 14px 14px; border: 0; }
.vp.pop .vp-meta, .vp.pop #vpBack, .vp.pop #vpFwd, .vp.pop .vp-rate { display: none; }
.vp.pop .vp-ui { padding: 30px 8px 6px; }
.vp.pop .vp-big { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.vp.pop .vp-h { display: block; position: absolute; z-index: 5; touch-action: none; }
.vp-h[data-d="n"], .vp-h[data-d="s"] { left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.vp-h[data-d="n"] { top: -4px; } .vp-h[data-d="s"] { bottom: -4px; }
.vp-h[data-d="e"], .vp-h[data-d="w"] { top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.vp-h[data-d="e"] { right: -4px; } .vp-h[data-d="w"] { left: -4px; }
.vp-h[data-d="ne"], .vp-h[data-d="nw"], .vp-h[data-d="se"], .vp-h[data-d="sw"] { width: 16px; height: 16px; }
.vp-h[data-d="ne"] { top: -6px; right: -6px; cursor: nesw-resize; } .vp-h[data-d="sw"] { bottom: -6px; left: -6px; cursor: nesw-resize; }
.vp-h[data-d="nw"] { top: -6px; left: -6px; cursor: nwse-resize; } .vp-h[data-d="se"] { bottom: -6px; right: -6px; cursor: nwse-resize; }
.vp.dragging { user-select: none; }
.vp.dragging .vp-media { pointer-events: none; }
@media (max-width: 860px) {
  .vp { padding: 0; }
  .vp-stage { border-radius: 0; border: 0; }
  .vp-meta { padding: 14px 16px; }
  .vp-volw .vp-vol, #vpBack, #vpFwd { display: none; }
}

/* ---- music: likes, playlists, artists, history ---- */
.tr-acts { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .2s; }
.track:hover .tr-acts, .track:focus-within .tr-acts, .tr-like.on { opacity: 1; }
.track:hover .tr-acts .tr-like, .tr-acts:has(.tr-like.on) { opacity: 1; }
.tr-acts button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s, transform .2s var(--ease); }
.tr-acts button:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.tr-acts button:active { transform: scale(.88); }
.tr-acts svg { width: 16px; height: 16px; }
.tr-like.on { color: var(--white); }
.tr-like.on svg, .pl-like.on svg { fill: currentColor; }
.track { grid-template-columns: 36px 44px minmax(0, 1fr) 130px auto 52px; }
.tr-artist { color: var(--muted); transition: color .2s; }
.tr-artist:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.ver { display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 9px no-repeat; }
.ver.big { width: 22px; height: 22px; background-size: 14px; margin-left: 12px; vertical-align: 4px; }
.pl-like { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; transition: color .2s, transform .2s var(--ease); }
.pl-like:hover { color: var(--white); }
.pl-like:active { transform: scale(.85); }
.pl-like svg { width: 17px; height: 17px; }
.pl-like.on { color: var(--white); }
.player.is-radio .pl-like { display: none; }
.pl-artist { font-size: 12px; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pl-artist:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.player.is-radio .pl-artist { cursor: default; text-decoration: none; }
.msearch { position: relative; max-width: 760px; }
.mhist { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); padding: 8px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line2); box-shadow: 0 30px 60px -20px #000; animation: up .25s var(--ease) both; }
.mh-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; }
.mh-head button { font-size: 12px; color: var(--muted); }
.mh-head button:hover { color: var(--white); }
.mh-row { display: flex; align-items: center; border-radius: 9px; }
.mh-row:hover { background: var(--s2); }
.mh-q { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 8px; text-align: left; font-size: 14px; color: var(--text); }
.mh-q svg { width: 15px; height: 15px; color: var(--dim); }
.mh-x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); }
.mh-x:hover { color: var(--white); background: var(--s3); }
.mh-x svg { width: 14px; height: 14px; }
.mix-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; text-align: left; background: radial-gradient(120% 90% at 85% 10%, #3a3a3a, #141414 60%), #141414; }
.mix-cover b { font-weight: 600; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.05; letter-spacing: -.04em; color: #fff; }
.mix-cover small { font-size: 11px; color: var(--muted); }
.mix-cover.liked { background: radial-gradient(120% 90% at 20% 10%, #fff 0%, #9a9a9a 45%, #2a2a2a 100%); }
.mix-cover.liked b, .mix-cover.liked small { color: #000; }
.mix-cover.liked svg { width: 34px; height: 34px; fill: #000; stroke: none; margin-bottom: auto; }
.mix-cover.new { align-items: center; justify-content: center; background: var(--s1); border: 1px dashed var(--line2); }
.mix-cover.new svg { width: 30px; height: 30px; color: var(--muted); }
.mix-cover.new b { font-size: 15px; color: var(--muted); }
.plists .pl-art { position: relative; }
.pl-cover { position: relative; width: 170px; height: 170px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--s2); box-shadow: 0 24px 60px -24px #000; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-head { align-items: flex-end; }
.pl-head h2 { margin: 6px 0 16px; }
.rn { display: flex; gap: 8px; }
.rn input { height: 44px; padding: 0 14px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line2); color: var(--text); font: 600 20px var(--font); outline: none; min-width: 0; }
.btn.danger { background: #fff; color: #000; }
.addmenu { position: fixed; z-index: 95; width: 260px; padding: 10px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line2); box-shadow: 0 30px 70px -20px #000; animation: up .2s var(--ease) both; }
.addmenu .mono { margin: 2px 4px 8px; display: block; }
.am-new { display: flex; gap: 6px; margin-bottom: 8px; }
.am-new input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line); color: var(--text); font: 400 13px var(--font); outline: none; }
.am-new input:focus { border-color: rgba(255, 255, 255, .35); }
.am-new button { height: 34px; padding: 0 12px; border-radius: 8px; background: var(--white); color: #000; font-size: 13px; font-weight: 500; }
.am-list { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; }
.am-list button { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.am-list button:hover { background: var(--s2); }
.am-list span { font: 500 11px var(--mono); color: var(--dim); }
.am-list small { padding: 6px 8px; color: var(--dim); font-size: 12px; }
.artists { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.artist { display: grid; justify-items: center; gap: 6px; width: 132px; flex-shrink: 0; text-align: center; padding: 10px; border-radius: 14px; transition: background .2s; }
.artist:hover { background: var(--s1); }
.artist img, .artist-ph { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; background: var(--s2); box-shadow: 0 16px 40px -18px #000; }
.artist-ph { display: grid; place-items: center; font-weight: 600; font-size: 34px; }
.artist b { font-weight: 500; font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist small { font-size: 12px; color: var(--dim); }
.artist.sk { height: 160px; background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.artist-hero { position: relative; margin: 12px var(--gutter) 0; min-height: 340px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; gap: 28px; padding: clamp(22px, 4vw, 44px); isolation: isolate; background: radial-gradient(120% 120% at 80% 0%, #2a2a2a, #0e0e0e 60%); }
.artist-hero .show-bg { opacity: .5; }
.artist-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 10, .95), rgba(10, 10, 10, .2) 70%); }
.artist-pic { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 30px 70px -20px #000; animation: up .8s var(--ease) both; }
.artist-info { display: grid; gap: 10px; }
.artist-info h1 { margin: 0; font: 600 clamp(36px, 6vw, 84px)/.92 var(--font); letter-spacing: -.055em; animation: wordIn 1s var(--ease) both; }
.artist-info p { margin: 0; color: #c8c8c8; }

/* ---- videos ---- */
.ytgrid { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 22vw, 320px), 1fr)); gap: 28px 18px; }
.ytc { min-width: 0; animation: up .5s var(--ease) both; }
.ytc .vcard { display: block; }
.ytc-meta { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.ytc-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--s2); }
.ytc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; font-weight: 500; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; color: var(--text); }
.ytc-title:hover { color: #fff; }
.ytc-ch { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ytc-ch:hover { color: var(--white); }
.ytc-sub { font-size: 12px; color: var(--dim); }
.ytc.sk .vcard-img { background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.chstrip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 22px; }
.chip-ch { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; height: 44px; padding: 0 16px 0 5px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s; }
.chip-ch:hover { background: var(--s2); border-color: var(--line2); }
.chip-ch img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ch-top { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.ch-av { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 20px 50px -20px #000; }
.ch-head .page-title { margin: 6px 0 14px; }
.follow { min-width: 120px; }
.ch-card { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 14px; border-radius: 14px; transition: background .2s; }
.ch-card:hover { background: var(--s1); }
.ch-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.ch-card b { font-weight: 500; font-size: 14px; }
.cw .vcard-img { position: relative; }
.cw-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.cw-bar i { display: block; height: 100%; background: #fff; }

/* ---- Find me a game ---- */
.gt-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gf-open { margin-bottom: 10px; }
.spark { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.gf { position: fixed; inset: 0; z-index: 88; display: grid; place-items: start center; padding: 10vh 16px 16px; background: rgba(0, 0, 0, .75); opacity: 0; transition: opacity .22s; overflow-y: auto; }
.gf.in { opacity: 1; }
.gf-box { position: relative; width: min(760px, 100%); padding: 28px; border-radius: 22px; background: linear-gradient(180deg, #161616, #0f0f0f); border: 1px solid var(--line2); box-shadow: 0 40px 120px -20px #000; transform: translateY(14px) scale(.98); transition: transform .4s var(--ease); }
.gf.in .gf-box { transform: none; }
.gf-box .mono { display: inline-flex; align-items: center; gap: 6px; }
.gf-box h2 { margin: 8px 0 6px; font: 600 clamp(28px, 4vw, 40px)/1 var(--font); letter-spacing: -.05em; }
.gf-box > p { margin: 0 0 18px; color: var(--muted); }
.gf-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--s2); }
.gf-x svg { width: 16px; height: 16px; }
.gf-form { display: flex; gap: 10px; align-items: stretch; }
.gf-form textarea { flex: 1; min-width: 0; resize: none; padding: 14px 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line2); color: var(--text); font: 400 16px/1.4 var(--font); outline: none; }
.gf-form textarea:focus { border-color: rgba(255, 255, 255, .4); }
.gf-form .btn { height: auto; }
.gf-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.gf-ideas .chip { height: 32px; font-size: 13px; }
.gf-wait { display: flex; align-items: center; gap: 10px; padding: 18px 4px; color: var(--muted); }
.gf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.gf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gf-card { display: grid; gap: 6px; min-width: 0; animation: up .45s var(--ease) both; }
.gf-card:nth-child(2) { animation-delay: .04s; } .gf-card:nth-child(3) { animation-delay: .08s; } .gf-card:nth-child(n+4) { animation-delay: .12s; }
.gf-img { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--s2); transition: transform .35s var(--ease); }
.gf-img img { width: 100%; height: 100%; object-fit: cover; }
.gf-card:hover .gf-img { transform: translateY(-3px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.gf-card b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-card span { font-size: 12px; color: var(--dim); }
.gf-all { margin-top: 18px; }
@media (max-width: 860px) {
  .gf { padding-top: 4vh; }
  .gf-box { padding: 22px 18px; }
  .gf-form { flex-direction: column; }
  .gf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track { grid-template-columns: 28px 44px minmax(0, 1fr) auto 44px; }
  .tr-acts { opacity: 1; }
  .artist-hero { flex-direction: column; align-items: flex-start; }
  .artist-pic { width: 120px; height: 120px; }
  .ytgrid { grid-template-columns: 1fr; }
}

/* top bar: no edge at all - one long eased fade from black to clear (the fog also fades to black up here) */
.top { background: transparent !important; }
.top::after { display: none !important; }
.top::before { content: ''; position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) * -1); height: calc(var(--top-h) + 120px + env(safe-area-inset-top, 0px)); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, #000 30%, rgba(0,0,0,.93) 37%, rgba(0,0,0,.82) 44%, rgba(0,0,0,.67) 52%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.33) 69%, rgba(0,0,0,.19) 78%, rgba(0,0,0,.08) 87%, rgba(0,0,0,.02) 94%, transparent 100%); }
.top::before { background: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.9) 47%, rgba(0,0,0,.75) 54%, rgba(0,0,0,.58) 62%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.24) 79%, rgba(0,0,0,.11) 87%, rgba(0,0,0,.03) 94%, transparent 100%); }

/* ---------- v11: movies with genres ---------- */
.mv-body { transition: opacity .25s, transform .35s var(--ease); }
.mv-body.fade { opacity: 0; transform: translateY(8px); }
.movie-hero { min-height: min(52vh, 470px); margin-bottom: 6px; }
.movie-hero .show-info { max-width: 620px; }
.movie-hero .show-info h1 { font-size: clamp(34px, 5vw, 64px); }
.movie-hero .tagline { color: #e2e2e2; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.movie-hero .mv-meta { font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.fresh { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: var(--white); color: #000; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sort-chips { margin: -4px 0 18px; }
.sort-chips .chip { cursor: pointer; }
.sort-chips + .grid.explore-grid { margin-top: 0; }
#mseg .n, #sseg .n { transition: opacity .3s; }
#mseg .on .n { opacity: .5; }
@media (max-width: 860px) { .movie-hero { min-height: 58vh; } }
.seg button.on, .seg button.on:hover, .seg a.on, .seg a.on:hover { color: #000; }
/* tall grids (all shows, a genre's movies, a season's episodes) lay out normally; only the horizontal rows use content-visibility */
.section:has(> .grid), .section:has(#mvgrid), .section:has(#eps), .section:has(#showGrid), .section:has(.explore-grid) { content-visibility: visible; contain-intrinsic-size: none; }

/* ================= v12: no layout jump when switching pages ================= */
/* Every page keeps the same width: the scrollbar's space is always reserved, so Home (no scrollbar) and the open
   video player no longer make the page 15px wider and re-wrap everything. The scrollbar itself is themed dark. */
html { scrollbar-gutter: stable; scrollbar-color: #2e2e2e transparent; }
/* Entrance animations only fade, rise and un-blur. They used to animate letter-spacing too, which made big titles
   wider for a moment so they wrapped onto extra lines and then snapped back. */
@keyframes wordIn { from { opacity: 0; transform: translateY(.18em); filter: blur(12px); } }
@keyframes titleIn {
  0% { opacity: 0; transform: translateY(.14em) scale(.97); filter: blur(18px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes wordIn { from { opacity: 0; } }
  @keyframes titleIn { from { opacity: 0; } }
}
/* The page's own scrollbar is always shown (on Home it simply can't move), so every page has exactly the same width.
   Chromium won't hold the space for a hidden page scrollbar, so hiding it (Home, menu, player, search) shifted everything. */
html { overflow-x: hidden; overflow-y: scroll; }
/* body must not turn into its own scroller (that would break the sticky top bar), so it clips instead of hiding */
body { overflow-x: clip; }
body[data-page="home"] { overflow: clip; height: 100vh; height: 100dvh; }
body.menu-open { overflow: visible; overflow-x: clip; }
.palette-results, .menu, .gf { overscroll-behavior: contain; }

/* ================= v13: covers everywhere ================= */
/* 2x2 artwork mosaics for mixes and playlists */
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; background: #111; }
.mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-art .mosaic img, .pl-cover .mosaic img { transition: transform .6s var(--ease); }
.plist:hover .mosaic img { transform: scale(1.04); }
.mix-cover.has-art { background: #111; }
.mix-cover.has-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .9) 100%); }
.mix-cover.has-art b, .mix-cover.has-art small { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.mix-cover.has-art small { color: #d0d0d0; }
.mix-cover .mosaic { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.pl-cover { position: relative; overflow: hidden; }
/* songs and stations without artwork get a designed tile, not an empty box */
.tr-ph { display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M18 29V15l12-2.5v13' fill='none' stroke='%238c8c8c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='15.5' cy='29.5' r='3.3' fill='%238c8c8c'/%3E%3Ccircle cx='27.5' cy='26' r='3.3' fill='%238c8c8c'/%3E%3C/svg%3E") center/100% no-repeat, radial-gradient(120% 90% at 20% 10%, #363636, #141414 60%); }
.radio-ph { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #3a3a3a, #121212 62%); letter-spacing: -.04em; }
.radio-ph::after { content: ''; position: absolute; right: -8px; bottom: -8px; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 0 0 9px rgba(255, 255, 255, .05), 0 0 0 15px rgba(255, 255, 255, .03); }

/* ================= v14: AA AI pictures ================= */
.composer-box { padding-left: 8px; }
.attach { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.attach:hover { color: var(--white); background: var(--s2); }
.attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.att-prev { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 13px; color: var(--muted); animation: up .35s var(--ease) both; }
.att-chip { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); flex-shrink: 0; }
.att-chip img { width: 100%; height: 100%; object-fit: cover; }
.att-chip button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .75); color: #fff; }
.att-chip button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.msg.user { display: flex; flex-direction: column; gap: 8px; }
.msg-img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 10px; object-fit: contain; background: #000; }
.chat.drop .composer-box { border-color: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.chat.drop::after { content: 'Drop the picture to add it'; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 20px; border-radius: 14px; background: rgba(10, 10, 10, .92); border: 1px dashed var(--line2); color: var(--white); font-weight: 500; pointer-events: none; z-index: 30; }

/* ================= v15: quality of life ================= */
/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 35; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(22, 22, 22, .92); border: 1px solid var(--line2); color: var(--white); box-shadow: 0 16px 40px -12px #000; opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), background .2s, bottom .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--white); color: #000; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.has-player .to-top { bottom: 104px; }
/* keyboard shortcuts sheet */
.keys .gf-box { width: min(620px, 100%); }
.keys h3 { margin: 22px 0 8px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.keys dl { margin: 0; display: grid; gap: 2px; }
.keys dl > div { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.keys dt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.keys dt i { font-style: normal; color: var(--dim); font-size: 12px; }
.keys dd { margin: 0; color: #cfcfcf; font-size: 14px; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--s2); border: 1px solid var(--line2); border-bottom-width: 2px; font: 600 12px var(--mono); color: var(--white); white-space: nowrap; }
.pr .pr-key { margin-left: auto; min-width: 22px; height: 22px; font-size: 11px; color: var(--muted); }
@media (max-width: 600px) { .keys dl > div { grid-template-columns: 1fr; gap: 6px; } }
/* home: continue watching + jump back in side by side */
.land-resumes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.land-resumes:empty { display: none; }
button.land-resume { cursor: pointer; color: inherit; font: inherit; text-align: left; }
.land-resume > svg { width: 16px; height: 16px; flex-shrink: 0; }
.land-resume span { min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .land-resumes .land-resume:nth-child(2) { display: none; } }
.wasd-note { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 13px; }
.wasd-note kbd { min-width: 24px; height: 24px; font-size: 11px; }
.wasd-note kbd:last-of-type { margin-right: 6px; }

/* ================= v16: music catalog ================= */
.top-res { display: flex; align-items: center; gap: 22px; width: min(560px, 100%); margin: 6px 0 4px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #1d1d1d, #111); border: 1px solid var(--line2); text-align: left; color: inherit; font: inherit; cursor: pointer; transition: transform .35s var(--ease), border-color .25s, background .25s; animation: up .5s var(--ease) both; }
.top-res:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .28); background: linear-gradient(135deg, #242424, #141414); }
.top-res img { width: 112px; height: 112px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--s2); box-shadow: 0 18px 40px -16px #000; }
.top-res img.round { border-radius: 50%; }
.top-res > span { display: grid; gap: 4px; min-width: 0; flex: 1; }
.top-res b { font: 600 clamp(24px, 3vw, 34px)/1.05 var(--font); letter-spacing: -.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-res small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-go { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: #000; transition: transform .3s var(--ease); }
.top-res:hover .top-go { transform: scale(1.08); }
.top-go svg { width: 20px; height: 20px; }
#topRes:empty { display: none; }
#topRes { padding: 0 var(--gutter); }
.more-btn { margin: 14px auto 0; display: flex; }
.pl-head .mono a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .top-res { gap: 14px; padding: 14px; } .top-res img { width: 76px; height: 76px; } .top-go { width: 40px; height: 40px; } }

/* ================= v17: Spotify-style bottom bar ================= */
:root { --plh: 76px; }
.pl-tog { position: relative; }
.pl-tog.on { color: var(--white); }
.pl-tog.on::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--white); }
.pl-tog svg, #plMute svg, .pl-add svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-tog#plVideo svg path { fill: currentColor; stroke: none; }
.pl-tog#plQueue svg path:last-child { fill: currentColor; stroke: none; }
.rep-one { display: none; position: absolute; top: 2px; right: 3px; min-width: 11px; height: 11px; border-radius: 6px; background: var(--white); color: #000; font: 700 8px/11px var(--mono); text-align: center; }
.pl-tog.one .rep-one { display: block; }
#plMute .i-x { display: none; }
.player.muted #plMute .i-x { display: block; }
.player.muted #plMute .i-wave { display: none; }
.pl-ctrls { gap: 10px; }
.pl-right { gap: 6px; }
#plVol { margin-right: 6px; }
.player:not(.is-yt) #plVideo { opacity: .3; pointer-events: none; }
.player.is-radio #plShuffle, .player.is-radio #plRepeat, .player.is-radio #plQueue, .player.is-radio #plVideo, .player.is-radio .pl-add { display: none; }
/* loading a song: the play button shows a thin spinning ring */
.player.buffering .pl-main { position: relative; }
.player.buffering .pl-main::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--white); animation: spin .8s linear infinite; }
/* the queue */
.pl-queue { position: fixed; z-index: 76; right: 16px; bottom: calc(var(--plh) + 12px); width: min(380px, calc(100vw - 32px)); max-height: min(62vh, 540px); display: flex; flex-direction: column; border-radius: 18px; background: rgba(16, 16, 16, .98); border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px #000; overflow: hidden; animation: up .3s var(--ease) both; }
.plq-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 18px; }
.plq-head b { font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.plq-list { overflow-y: auto; padding: 0 8px 10px; overscroll-behavior: contain; }
.plq-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left; color: inherit; transition: background .2s; }
.plq-row:hover { background: var(--s2); }
.plq-row.now { background: rgba(255, 255, 255, .08); }
.plq-row img, .plq-row .tr-ph { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.plq-row span { display: grid; min-width: 0; }
.plq-row b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plq-row small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plq-row em { font: 500 11px var(--mono); font-style: normal; color: var(--dim); white-space: nowrap; }
.plq-row.now em { color: var(--white); }
.plq-empty { margin: 8px 12px 14px; color: var(--muted); font-size: 13px; }
/* the music video: invisible until you press Video, then docked above the bar (never a floating window) */
.ya-box { position: fixed; z-index: 70; left: 16px; bottom: 16px; width: 200px; border-radius: 14px; overflow: hidden; background: #000; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease); }
.ya-box .ya-media { width: 200px; height: 200px; }
.ya-box.show { z-index: 76; opacity: 1; pointer-events: auto; transform: none; width: min(400px, calc(100vw - 32px)); bottom: calc(var(--plh) + 12px); border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px #000; }
.ya-box.show .ya-media { width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 200px; }
.ya-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.ya-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 14px; background: #111; font-size: 12px; color: var(--muted); }
.ya-bar span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ya-bar button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.ya-bar button:hover { color: var(--white); background: var(--s2); }
.ya-bar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 860px) {
  .player { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pl-right { display: flex; grid-column: 3; grid-row: 1; gap: 2px; }
  .pl-right #plVol, .pl-right #plMute, .pl-right #plVideo { display: none; }
  #plShuffle, #plRepeat, .pl-add { display: none; }
  .ya-box.show { left: 8px; width: calc(100vw - 16px); }
}
@media (max-width: 600px) {
  .player #plLike { display: none; }
  .player .pl-btn { width: 32px; height: 32px; }
  .player .pl-main { width: 40px; height: 40px; }
  .pl-now { gap: 10px; }
  .pl-now img, .pl-ph { width: 44px; height: 44px; }
}

/* ================= v18: quality of life ================= */
/* episodes and movies you finished */
.vcard.seen .vcard-img img { opacity: .55; }
.vcard.seen:hover .vcard-img img { opacity: .9; }
.seen-badge { position: absolute; z-index: 2; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .78); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.seen-badge::before { content: ''; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
/* AI: copy an answer */
.msg.ai { position: relative; }
.ai-copy { position: absolute; left: 44px; bottom: -30px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); opacity: 0; transition: opacity .2s, color .2s, background .2s; }
.msg.ai:hover .ai-copy, .ai-copy:focus-visible { opacity: 1; }
.ai-copy:hover { color: var(--white); background: var(--s2); }
.ai-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: none) { .ai-copy { opacity: .8; } }
/* Games: jump back in */
.jump-back { margin: 16px 0 4px; display: grid; gap: 10px; }
.jb-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.jb-row::-webkit-scrollbar { display: none; }
.jb { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 5px 14px 5px 5px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); font-size: 13px; font-weight: 500; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.jb:hover { border-color: var(--line2); background: var(--s2); transform: translateY(-2px); }
.jb img { width: 44px; height: 33px; border-radius: 7px; object-fit: cover; }
.jb span { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* search: artists are round */
.pr img.round { border-radius: 50%; }
/* the bar: the song title opens its album */
.player:not(.is-radio) #plTitle { cursor: pointer; }
.player:not(.is-radio) #plTitle:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ================= v19: Jump back in (everything) + recommendations ================= */
.jump-all { display: grid; gap: 10px; min-width: 0; }
.ja-head { display: flex; align-items: center; justify-content: space-between; }
.ja-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; scroll-snap-type: x proximity; }
.ja-row::-webkit-scrollbar { display: none; }
.jbx { position: relative; display: flex; align-items: center; gap: 12px; flex-shrink: 0; width: 248px; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(22, 22, 22, .92); border: 1px solid var(--line); text-align: left; color: inherit; font: inherit; cursor: pointer; scroll-snap-align: start; transition: border-color .25s, background .25s, transform .35s var(--ease); }
.jbx:hover { border-color: var(--line2); background: rgba(30, 30, 30, .95); transform: translateY(-2px); }
.jbx img, .jbx-ph { width: 76px; height: 48px; flex-shrink: 0; border-radius: 9px; object-fit: cover; background: var(--s2); }
.jbx-song img, .jbx-album img, .jbx-artist img, .jbx-song .jbx-ph, .jbx-album .jbx-ph, .jbx-artist .jbx-ph { width: 48px; }
.jbx-artist img, .jbx-artist .jbx-ph { border-radius: 50%; }
.jbx-ph { display: grid; place-items: center; font-weight: 600; color: var(--muted); }
.jbx-bar { position: absolute; left: 6px; bottom: 6px; width: 76px; height: 3px; border-radius: 0 0 9px 9px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.jbx-bar b { display: block; height: 100%; background: #fff; }
.jbx-t { display: grid; min-width: 0; gap: 1px; }
.jbx-t small { font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.jbx-t b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbx-t em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* on the home screen it sits under the tiles, centered */
.landing .jump-all { width: min(100%, 980px); margin: 0 auto; }
.landing .ja-head { justify-content: center; }
@media (max-width: 860px) { .jbx { width: 210px; } .landing .ja-head { justify-content: flex-start; } }
/* recommended for you */
.rec-rand { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; margin-left: auto; font-size: 13px; }
.rec-rand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.rec-rand:hover svg { transform: rotate(180deg); }
.rec-rand:disabled { opacity: .5; }
#recSec .sec-head { flex-wrap: wrap; row-gap: 8px; }
#recSec .sec-head .more { margin-left: 4px; }
#recs { transition: opacity .25s, transform .35s var(--ease); }
#recs.fade { opacity: .25; transform: translateY(6px); }
.ja-row.fr { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.ja-row.fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.ja-row.fl.fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 86%, transparent); }

/* ================= iPad & touch screens ================= */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
a, button, [role="button"], label, .card, .chip { touch-action: manipulation; }
.nav, .tool, .chip, .seg, .menu-btn, .icon-btn, .player, .pad, .vp-controls { -webkit-user-select: none; user-select: none; }
/* Safari's 100vh includes the hidden toolbars; the visible height is dvh */
@supports (height: 100dvh) {
  .stage-frame { max-height: calc(100dvh - var(--top-h) - 110px); }
  .stage-frame { max-width: calc((100dvh - var(--top-h) - 110px) * var(--ar, 1.777)); }
  .vp-stage { max-height: calc(100dvh - 140px); }
  .chat { min-height: calc(100dvh - var(--top-h)); }
  @media (max-width: 860px) { .stage-frame { max-height: 70dvh; } }
}
/* iPad held upright (744–860px wide): the section tabs fit in the top bar, so show them instead of the Menu button */
@media (min-width: 740px) and (max-width: 860px) {
  .top { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav { display: flex; justify-self: center; }
  .nav a { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .nav a svg { display: none; }
  .menu-btn { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  /* things that only showed on mouse hover are always there */
  .card-fav { opacity: 1; transform: none; width: 38px; height: 38px; border-radius: 10px; }
  .card-fav svg { width: 17px; height: 17px; }
  .player input[type="range"]::-webkit-slider-thumb { opacity: 1; }
  .ai-copy { opacity: .8; }
  .row-arrow { display: none; }
  .row-track { overscroll-behavior-x: contain; }
  /* a tap leaves :hover stuck on iPad: no lifted or zoomed cards after tapping */
  .card:hover .card-img, .vcard:hover .vcard-img, .poster:hover .poster-img, .show-card:hover .vcard-img, .stream:hover .vcard-img, .plist:hover .pl-art,
  .land-tile:hover, .pick:hover, .chip:hover, .radio:hover, .ai-suggest button:hover, .land-resume:hover, .feature-link:hover, .btn-play:hover, .ai-btn:hover, .jb:hover, .row-arrow:hover, .send:hover, .pl-main:hover { transform: none; }
  .card:hover .card-img img, .vcard:hover .vcard-img img, .poster:hover .poster-img img, .show-card:hover .vcard-img img, .plist:hover .pl-art img { transform: none; }
  .card:hover .card-play, .vcard:hover .card-play, .poster:hover .card-play, .show-card:hover .card-play, .stream:hover .card-play, .plist:hover .card-play { opacity: 0; }
  .land-tile:hover .tile-ico { transform: none; }
  /* a press shows instead */
  .card:active .card-img, .vcard:active .vcard-img, .poster:active .poster-img, .show-card:active .vcard-img, .stream:active .vcard-img, .plist:active .pl-art,
  .land-tile:active, .pick:active, .chip:active, .radio:active, .ai-suggest button:active, .jb:active { transform: scale(.97); transition-duration: .12s; }
  /* finger-sized controls (Apple's minimum is 44pt) */
  .tool { height: 44px; padding: 0 14px; }
  .icon-btn { width: 42px; height: 42px; }
  .chip, .seg button, .seg a { min-height: 40px; }
  .menu-btn { height: 42px; }
  /* text boxes at 16px or more, so tapping one doesn't zoom the page */
  input:not([type="range"]):not([type="file"]):not([type="checkbox"]), textarea, select { font-size: max(16px, 1em) !important; }
  /* keyboard-shortcut hints mean nothing without a keyboard */
  .menu-keys, .menu-keys + *, .land-search kbd, .finder kbd { display: none; }
}
/* volume sliders do nothing on iPad/iPhone (the side buttons set the volume) */
.ios #plVol, .ios .vp-vol { display: none !important; }

/* fullscreen where the browser can't do it (iPhone): the player fills the screen */
.has-pseudo-fs, .has-pseudo-fs body { overflow: hidden !important; }
.pseudo-fs { position: fixed !important; inset: 0 !important; z-index: 300 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important; background: #000; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.pseudo-fs .stage-frame, .pseudo-fs .vp-stage { flex: 1; max-height: none !important; max-width: none !important; aspect-ratio: auto !important; border-radius: 0; }
.stage:-webkit-full-screen .stage-frame { max-height: none; max-width: none; height: 100%; aspect-ratio: auto; }

/* on-screen controls for our own keyboard games (touch screens) */
.pad { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.pad > * { pointer-events: auto; }
.pad-stick { position: absolute; left: max(18px, 3%); bottom: max(18px, 4%); width: clamp(116px, 17vmin, 168px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04) 70%); border: 1.5px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); touch-action: none; display: grid; place-items: center; transition: background .2s, opacity .25s; }
.pad-stick.lr { aspect-ratio: auto; height: clamp(70px, 10vmin, 96px); width: clamp(170px, 26vmin, 240px); border-radius: 999px; }
.pad-stick.on { background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06) 70%); }
.pad-knob { width: 44%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .78); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .8); pointer-events: none; transition: transform .08s linear; }
.pad-stick.lr .pad-knob { width: auto; height: 62%; }
.pad-stick:not(.on) .pad-knob { transition: transform .22s var(--ease); }
.pad-btns { position: absolute; right: max(18px, 3%); bottom: max(18px, 4%); display: flex; gap: 14px; align-items: flex-end; pointer-events: none; }
.pad-btn { pointer-events: auto; width: clamp(72px, 11vmin, 104px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .26); color: #fff; font: 600 14px/1 var(--font); letter-spacing: -.01em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); touch-action: none; transition: transform .1s, background .1s; }
.pad-btn.on { background: rgba(255, 255, 255, .85); color: #000; transform: scale(.93); }
.pad-hide { position: absolute; top: 10px; right: 10px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pad.off .pad-stick, .pad.off .pad-btns { opacity: 0; pointer-events: none; }
.pad.off .pad-btns .pad-btn { pointer-events: none; }
.touch-note { color: var(--muted); }
@media (hover: none) and (pointer: coarse) {
  /* song rows: like / add-to-playlist are always there (no hover on iPad) and finger-sized */
  .tr-acts { opacity: 1; }
  .tr-acts button { width: 40px; height: 40px; }
  /* music bar and video player buttons */
  .pl-btn { width: 42px; height: 42px; }
  .vp-ib { width: 44px; height: 44px; }
}
/* Speed on iPads: a blur behind small things repeated on every card makes the GPU redraw them all while scrolling,
   so touch screens get solid tints there instead (they look the same at that size). */
@media (hover: none) and (pointer: coarse) {
  .card-badge, .card-fav, .pick, .land-tile, .land-resume, .btn-ghost { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .card-badge { background: rgba(0, 0, 0, .72); }
  .card-fav { background: rgba(0, 0, 0, .66); }
  .land-tile, .land-resume { background-color: rgba(22, 22, 22, .9); }
}
/* the on-screen controls sit over a running game: no blur there at all */
.pad-stick, .pad-btn, .pad-hide { -webkit-backdrop-filter: none; backdrop-filter: none; }
.pad-stick { background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(20, 20, 20, .42) 72%); }
.pad-btn { background: rgba(30, 30, 30, .55); }
.pad-hide { background: rgba(0, 0, 0, .7); }
