/* MentiPlayer · open media, in the house's black and gold */
:root { --bg: #08080a; --bg2: #101013; --bg3: #17171c; --ink: #f2ede4; --dim: #a39a8a; --mute: #766f63; --line: rgba(242,237,228,.1); --acc: #f0b24a; --acc2: #ff7a59; --bad: #ff6a4d; --rh: 190px; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); background: radial-gradient(70% 40% at 80% -10%, rgba(240,178,74,.12), transparent 70%), var(--bg); }
body.deck-on { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
.dim { color: var(--dim); }
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: rgba(8,8,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--ink); } .logo span { color: var(--acc); }
.q { flex: 1; min-width: 220px; display: flex; gap: 8px; max-width: 640px; }
.q input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); padding: 0 18px; outline: none; }
.q input:focus { border-color: var(--acc); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--acc); }
.btn.pri { background: linear-gradient(135deg, #ffd27a, var(--acc)); color: #1a1200; border-color: transparent; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1; } .ic:hover { background: var(--bg3); }
.ic.big { width: 46px; height: 46px; background: var(--acc); color: #1a1200; } .ic.big:hover { background: #ffd27a; }
.ic.txt { width: auto; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
#tabs { display: flex; gap: 6px; padding: 10px 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); } #tabs::-webkit-scrollbar { display: none; }
#tabs button { flex: none; border: 1px solid transparent; background: transparent; color: var(--dim); font-weight: 600; font-size: 14px; padding: 7px 15px; border-radius: 999px; }
#tabs button:hover { color: var(--ink); } #tabs button.on { background: var(--ink); color: #111; }
main { padding: 6px 0 24px; min-height: 60vh; }
#status { padding: 8px 18px; color: var(--dim); font-size: 14px; min-height: 2.2em; }
.shelf { margin: 8px 0 22px; } .shelf > h2 { margin: 0 18px 10px; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; } .shelf > h2 small { font-weight: 400; color: var(--mute); font-size: 12.5px; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.rail .card { flex: none; width: calc(var(--rh) * var(--ar)); scroll-snap-align: start; }
.rail .card .art { height: var(--rh); aspect-ratio: auto; width: 100%; }
.shelf .skel { height: var(--rh); border-radius: 12px; width: 70%; margin: 0 18px; background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2)); background-size: 200% 100%; animation: sh 1.4s linear infinite; } @keyframes sh { to { background-position: -200% 0; } }
.shelf .gone { margin: 0 18px; color: var(--mute); font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 14px; padding: 8px 18px; }
.card { position: relative; --ar: 1; min-width: 0; }
.card .open { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; border-radius: 12px; }
.card .art { position: relative; width: 100%; aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: var(--bg3); border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card .open:hover .art, .card .open:focus-visible .art { transform: translateY(-3px); border-color: var(--acc); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.72); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card .badge.live::before { content: "● "; color: var(--bad); }
.card h3 { margin: 8px 2px 1px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: 0 2px; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .heart { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; opacity: 0; transition: opacity .15s; }
.card:hover .heart, .card .heart:focus-visible, .card .heart.on, .touch .card .heart { opacity: 1; } .card .heart.on { color: var(--acc2); }
.t-movie, .t-tv { --ar: .6667; } .t-video, .t-live { --ar: 1.7778; } .t-music, .t-radio, .t-audiobook, .t-podcast { --ar: 1; }
.morerow { text-align: center; padding: 8px; }
.empty { grid-column: 1 / -1; padding: 50px 18px; text-align: center; color: var(--dim); }
dialog { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); border-radius: 18px; padding: 0; width: min(920px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
#srcdlg { width: min(560px, calc(100vw - 20px)); padding: 0 20px 20px; }
.dhead { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 20px; background: var(--bg2); } .dhead h2 { margin: 0; flex: 1; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
#dbody { padding: 0 20px 20px; }
.stage { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.stage video { display: block; width: 100%; max-height: 62vh; background: #000; }
.stage iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.cover { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; } .cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .chips span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bg3); color: var(--dim); }
.desc { color: var(--dim); max-width: 70ch; white-space: pre-line; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.links a { margin-right: 14px; }
.lic { font-size: 12.5px; color: var(--mute); margin-top: 10px; }
.tracks { list-style: none; margin: 12px 0 0; padding: 0; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.tracks li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; } .tracks li:last-child { border-bottom: 0; } .tracks li:hover { background: var(--bg3); }
.tracks li.on { background: rgba(240,178,74,.12); color: var(--acc); } .tracks li small { margin-left: auto; color: var(--mute); white-space: nowrap; } .tracks li b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; } .eps li { font-size: 14px; } .eps li small { color: var(--mute); }
.cast { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 8px; } .cast figure { margin: 0; flex: none; width: 84px; text-align: center; font-size: 12px; color: var(--dim); } .cast img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; background: var(--bg3); } .cast b { display: block; color: var(--ink); font-weight: 500; }
.note { padding: 22px; text-align: center; color: var(--dim); background: var(--bg3); border-radius: 12px; }
.spin { text-align: center; padding: 40px; color: var(--dim); }
.deck { position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 8px); display: grid; grid-template-columns: 46px minmax(120px, 1.2fr) auto minmax(140px, 2fr) auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 16px; background: rgba(23,23,28,.96); border: 1px solid rgba(240,178,74,.35); box-shadow: 0 14px 40px rgba(0,0,0,.6); backdrop-filter: blur(14px); max-width: 1100px; margin: 0 auto; }
.deck img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg3); }
.dkt { min-width: 0; } .dkt b, .dkt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dkt small { color: var(--mute); font-size: 12.5px; }
.dkc { display: flex; align-items: center; gap: 2px; } .dks { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; } .dks input { flex: 1; min-width: 0; accent-color: var(--acc); }
.deck.live .dks input { visibility: hidden; }
.srclist { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; } .srclist li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.srclist input { grid-row: span 2; width: 20px; height: 20px; accent-color: var(--acc); margin-top: 3px; } .srclist label { font-weight: 600; cursor: pointer; } .srclist small { color: var(--mute); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; background: #666; vertical-align: 1px; } .dot.ok { background: #7ddc7d; } .dot.bad { background: var(--bad); }
.row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 28px 18px 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; } .foot h3 { margin: 0 0 6px; color: var(--dim); font-size: 14px; } .foot p { margin: 0; }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translateX(-50%); z-index: 90; background: var(--ink); color: #111; padding: 9px 16px; border-radius: 999px; font-size: 14px; max-width: 90vw; }
.deck.in-dlg { position: sticky; left: auto; right: auto; bottom: 0; margin: 0; max-width: none; border-radius: 0 0 17px 17px; border-width: 1px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
@media (max-width: 760px) {
  :root { --rh: 160px; }
  .top { padding-left: 12px; padding-right: 12px; } .q { order: 3; flex-basis: 100%; max-width: none; }
  #tabs, #status { padding-left: 12px; padding-right: 12px; } .shelf > h2 { margin-left: 12px; } .rail { padding-left: 12px; padding-right: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 12px; padding-right: 12px; gap: 16px 10px; }
  .cover { grid-template-columns: 96px 1fr; } #dbody { padding: 0 14px 16px; }
  .deck { grid-template-columns: 42px 1fr auto auto; grid-template-areas: "art t c x" "s s s s"; } .deck img { grid-area: art; width: 42px; height: 42px; } .dkt { grid-area: t; } .dkc { grid-area: c; } .dks { grid-area: s; } #dkrate { display: none; } #dkclose { grid-area: x; }
  body.deck-on { padding-bottom: calc(env(safe-area-inset-bottom) + 130px); } #toast { bottom: calc(env(safe-area-inset-bottom) + 130px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.stage.widget iframe { aspect-ratio: auto; height: 180px; }
.watch { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 10px; } .watch .card { flex: none; width: 150px; } .watch .card .art { aspect-ratio: 16/10; }
.back { margin-bottom: 10px; }
.srclist input:disabled + label { opacity: .6; cursor: default; }

.btn.safe { border-color: #2e7d5b; color: #8fe0b8; } .btn.safe:not(.on) { border-color: var(--bad); color: var(--bad); }
@media (max-width: 640px) { .top .btn.safe { padding-left: 10px; padding-right: 10px; font-size: 12.5px; } }
.card .score { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.78); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* ── v2: featured film, shelf arrows, jump chips, backdrop ── */
.hero { position: relative; margin: 4px 18px 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); min-height: 260px; }
.hero .hbg { position: absolute; inset: -40px; background: var(--bd) center/cover no-repeat; filter: blur(34px) saturate(1.25) brightness(.55); transform: scale(1.1); }
.hero .hin { position: relative; display: flex; gap: 22px; padding: 24px; align-items: flex-end; background: linear-gradient(90deg, rgba(8,8,10,.92), rgba(8,8,10,.55) 60%, rgba(8,8,10,.2)); min-height: 260px; }
.hero .hpost { width: 150px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.6); flex: none; }
.hero .htxt { max-width: 640px; } .hero .kick { color: var(--acc); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero h2 { margin: 4px 0 4px; font-size: clamp(24px, 4vw, 38px); line-height: 1.1; letter-spacing: -.02em; } .hero .meta { color: var(--dim); font-size: 14px; }
.hero p { margin: 10px 0 0; color: #d8d2c6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.shelf { position: relative; } .snav { position: absolute; right: 14px; top: -4px; display: flex; gap: 4px; } .touch .snav { display: none; }
.snav .ic { width: 34px; height: 34px; border: 1px solid var(--line); font-size: 20px; }
.rail .skel { flex: none; width: calc(var(--rh) * .667); height: var(--rh); margin: 0; }
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 16px; scrollbar-width: none; } .jump::-webkit-scrollbar { display: none; }
.jump button { flex: none; border: 1px solid var(--line); background: var(--bg2); color: var(--dim); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; } .jump button:hover { color: var(--ink); border-color: var(--acc); }
.card .art img { transition: transform .35s ease; } .card .open:hover .art img { transform: scale(1.06); }
#dlg { position: relative; } #dlg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 260px; background: var(--bd, none) center/cover no-repeat; filter: blur(30px) brightness(.5); opacity: .55; pointer-events: none; z-index: 0; } #dlg > * { position: relative; z-index: 1; }
@media (min-width: 1200px) { :root { --rh: 220px; } }
@media (max-width: 640px) { .hero { margin: 4px 12px 22px; } .hero .hin { align-items: flex-start; gap: 14px; padding: 16px; min-height: 0; } .hero { min-height: 0; } .hero .hpost { width: 88px; } .hero p { -webkit-line-clamp: 2; font-size: 13.5px; } .hero h2 { font-size: 22px; } .hero .acts .btn { height: 38px; padding: 0 14px; } .snav { display: none; } .jump { padding: 0 12px 14px; } }
