:root {
  --accent: #0A84FF;
  --bg: #000;
  --side: #0E0E10;
  --card: #1C1C1E;
  --text: #F5F5F7;
  --muted: #98989F;
  --soft: #D1D1D6;
  --fill: rgba(118,118,128,0.24);
  --line: rgba(255,255,255,0.08);
  --sep: rgba(84,84,88,0.45);
  --live: #FF453A;
  --green: #30D158;
  --orange: #FF9F0A;
  --glass: rgba(28,28,30,0.62);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, sans-serif;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { flex: none; }

/* ---------- layout ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side {
  flex: 1 1 220px; max-width: 260px; padding: 22px 14px; background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 72px; display: flex; flex-direction: column; gap: 44px; }
.main.tight { gap: 24px; }
.main.mid { gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--text); }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--fill); color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.search.big { height: 40px; padding: 0 12px; border-radius: 12px; flex: 1 1 280px; max-width: 420px; }

.navlist { display: flex; flex-direction: column; gap: 2px; }
.navlink { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text); font-weight: 500; }
.navlink svg { stroke: var(--muted); }
.navlink:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.navlink[aria-current="page"] { background: rgba(255,255,255,0.1); font-weight: 600; }
.navlink[aria-current="page"] svg { stroke: var(--accent); }
.navhead { padding: 0 10px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.favlink { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--text); }
.favlink:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.favlink .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); color: var(--text); }
.me:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #3A3A3C; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.me .t { display: flex; flex-direction: column; min-width: 0; }
.me .t b { font-size: 14px; font-weight: 600; }
.me .t span { font-size: 12px; color: var(--muted); }

/* ---------- typografi ---------- */
.eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
h1.h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
h2.h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sechead a { font-size: 15px; }
.section { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }

/* ---------- knappar ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: var(--fill); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill:hover { color: var(--text); background: rgba(118,118,128,0.34); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 23px; border: 0; background: #fff; color: #000; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.btn-white:hover { color: #000; background: #E5E5EA; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 23px; border: 0; background: rgba(255,255,255,0.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; }
.btn-glass:hover { color: #fff; background: rgba(255,255,255,0.26); }
.btn-glass.round { width: 46px; padding: 0; justify-content: center; border-radius: 50%; }
.btn-sm { height: 40px !important; font-size: 15px !important; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; height: 34px; padding: 0 16px; border-radius: 17px; border: 0; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--fill); color: var(--text); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--text); color: #000; }
.seg { display: flex; padding: 2px; border-radius: 10px; background: var(--fill); flex: none; }
.seg button { height: 32px; min-width: 96px; padding: 0 18px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #636366; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.seg.small button { height: 28px; min-width: 0; padding: 0 14px; font-size: 13px; border-radius: 7px; }
.seg.scroll { overflow-x: auto; max-width: 100%; scrollbar-width: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 460px; border-radius: 24px; background: #1E3045; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.hero.detail { min-height: 500px; padding: 44px; }
.hero .c1 { position: absolute; right: -140px; top: -180px; width: 680px; height: 680px; border-radius: 50%; background: #29445F; }
.hero .c2 { position: absolute; right: 200px; top: 110px; width: 240px; height: 240px; border-radius: 50%; background: #3A5E80; }
.hero .c3 { position: absolute; right: 120px; top: 70px; width: 90px; height: 90px; border-radius: 50%; background: #CFE3F5; }
.hero .bd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0) 72%); }
.hero.detail .shade { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 75%); }
.hero .shade2 { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%); }
.hero .body { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.tag { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,0.16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.hero h2, .hero h1 { margin: 0; font-size: 60px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; overflow-wrap: anywhere; }
.hero.detail h1 { font-size: 64px; }
.hero .meta { margin: 0; font-size: 14px; font-weight: 500; color: var(--soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero .plot { margin: 0; font-size: 16px; line-height: 1.5; color: #E5E5EA; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.badge-o { height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.45); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.dots { position: absolute; right: 40px; bottom: 40px; display: flex; gap: 6px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,0.4); cursor: pointer; transition: width .25s; }
.dots button[aria-current="true"] { width: 18px; background: #fff; }
.hero-fade { animation: fade .5s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }

/* ---------- kort ---------- */
.grid-cont { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.grid-poster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.grid-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 20px; margin-top: 8px; }

.ccard { display: flex; flex-direction: column; gap: 10px; color: var(--text); min-width: 0; }
.ccard:hover { color: var(--text); }
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #1E3045; }
.thumb .shape { position: absolute; right: -18%; top: -45%; width: 75%; aspect-ratio: 1; border-radius: 50%; }
.thumb img, .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ttl { position: absolute; left: 14px; right: 14px; bottom: 22px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.has-img .ttl { display: none; }
.thumb.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0) 45%); }
.pbar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3); z-index: 1; }
.pbar div { height: 100%; border-radius: 2px; background: #fff; }
.ccard .lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccard .lbl b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .lbl span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard:hover .thumb, .pcard:hover .poster { transform: scale(1.02); }
.thumb, .poster { transition: transform .2s ease; }

.lcard { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); color: var(--text); min-width: 0; }
.lcard:hover { color: var(--text); background: #232325; }
.lcard .top { display: flex; align-items: center; gap: 12px; }
.lcard .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lcard .nm b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .nm span { font-size: 12px; color: var(--muted); }
.livetag { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.lcard .prog { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow { display: flex; align-items: center; gap: 10px; }
.track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.track div { height: 100%; border-radius: 2px; background: var(--accent); }
.prow span { font-size: 12px; color: var(--muted); white-space: nowrap; }

.badge { flex: none; border-radius: 11px; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; background: #2C2C2E; }
.b44 { width: 44px; height: 44px; font-size: 15px; }
.b40 { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; }
.b38 { width: 38px; height: 38px; font-size: 13px; border-radius: 9px; }
.b36 { width: 36px; height: 36px; font-size: 13px; border-radius: 9px; }
.b32 { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.b24 { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; font-weight: 700; }

.pcard { display: flex; flex-direction: column; gap: 8px; color: var(--text); min-width: 0; }
.pcard:hover { color: var(--text); }
.poster { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 12px; }
.grid-lib .poster { border-radius: 14px; }
.poster .shape { position: absolute; left: -25%; top: 12%; width: 110%; aspect-ratio: 1; border-radius: 50%; }
.poster .ttl { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.grid-lib .poster .ttl { left: 14px; right: 14px; bottom: 14px; font-size: 19px; }
.poster.has-img .ttl { display: none; }
.poster .q { position: absolute; right: 10px; top: 10px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(0,0,0,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: #fff; display: flex; align-items: center; z-index: 1; }
.pcard .lbl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pcard .lbl b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-lib .pcard .lbl b { font-size: 15px; }
.pcard .lbl span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-lib .pcard .lbl span { font-size: 13px; }

/* ---------- live ---------- */
.selch { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.preview { flex: 1 1 480px; max-width: 660px; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; color: #fff; background: #123325; }
.preview:hover { color: #fff; }
.preview .s1 { position: absolute; right: -12%; top: -38%; width: 72%; aspect-ratio: 1; border-radius: 50%; }
.preview .s2 { position: absolute; left: 18%; bottom: -30%; width: 44%; aspect-ratio: 1; border-radius: 50%; }
.preview .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 55%); }
.preview .lv { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(0,0,0,0.45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.preview .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.preview:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.preview .bigl { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 34%; max-height: 40%; object-fit: contain; opacity: .9; }
.preview .who { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.selinfo { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.selinfo .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.selinfo h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.selinfo .track { max-width: 280px; }
.selinfo .desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); max-width: 460px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.selinfo .next { margin: 0; font-size: 14px; color: var(--muted); }
.selinfo .next b { color: var(--text); font-weight: 600; }

.guide { overflow-x: auto; border-radius: 18px; background: var(--side); border: 1px solid var(--line); }
.guide-in { position: relative; width: 1280px; }
.gh { display: flex; height: 40px; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.gh div { flex: none; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.gh .c0 { width: 200px; padding-left: 18px; position: sticky; left: 0; z-index: 4; background: var(--side); }
.gh .tk { width: 180px; padding-left: 10px; border-left: 1px solid var(--line); }
.grow { display: flex; height: 68px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gch { width: 200px; flex: none; padding: 0 14px 0 18px; border: 0; background: transparent; color: var(--text); text-align: left; display: flex; align-items: center; gap: 12px; cursor: pointer; position: sticky; left: 0; z-index: 2; background: var(--side); }
.gch[aria-pressed="true"] { background: #1D1D20; }
.gch .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gch .t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gch .t span { font-size: 12px; color: var(--muted); }
.gprogs { width: 1080px; flex: none; padding: 6px 0; position: relative; }
.gp { position: absolute; top: 6px; bottom: 6px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,0.04); color: var(--text); text-align: left; padding: 0 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer; }
.gp:hover { background: rgba(255,255,255,0.09); }
.gp.now { background: rgba(255,255,255,0.13); }
.gp.now.sel { border: 1.5px solid var(--accent); }
.gp b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp.past b { color: var(--muted); }
.gp span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.gp.empty { background: transparent; color: var(--muted); font-size: 13px; cursor: default; }
.nowline { position: absolute; top: 40px; bottom: 0; width: 2px; background: var(--accent); z-index: 1; pointer-events: none; }
.nowtag { position: absolute; top: 8px; transform: translateX(-50%); height: 24px; padding: 0 8px; border-radius: 7px; background: var(--text); color: #000; font-size: 12px; font-weight: 700; display: flex; align-items: center; z-index: 3; }

/* ---------- bibliotek ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.sentinel { height: 1px; }
.more { align-self: center; }

/* ---------- detalj ---------- */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 32px; font-size: 16px; font-weight: 500; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.eps { display: flex; flex-direction: column; gap: 4px; }
.ep { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 12px; margin: 0 -12px; border-radius: 16px; color: var(--text); }
.ep:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.ep.cur { background: rgba(255,255,255,0.06); }
.ep .thumb { flex: 0 0 240px; border-radius: 12px; }
.ep .thumb .shape { right: -20%; top: -50%; width: 80%; }
.ep .pbar { left: 10px; right: 10px; bottom: 10px; }
.ep .info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ep .info .r1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ep .info .r1 b { font-size: 17px; font-weight: 600; }
.ep .info .r1 span { font-size: 13px; color: var(--muted); }
.ep .info p { margin: 0; font-size: 14px; line-height: 1.5; color: #AEAEB2; max-width: 720px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep .info .st { font-size: 13px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 28px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.45; }

/* ---------- inställningar ---------- */
.set-wrap { width: 100%; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group > h2 { margin: 0; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.group .note { margin: 0; padding: 0 16px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.list { border-radius: 14px; background: var(--card); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding-left: 16px; width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit; }
.row > .rb { flex: 1; min-width: 0; min-height: 52px; padding: 8px 16px 8px 0; display: flex; align-items: center; gap: 12px; }
.row + .row > .rb, .row + .addrow, .list > label + label { border-top: 1px solid var(--sep); }
button.row, a.row { cursor: pointer; }
button.row:hover, a.row:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.row .lab { flex: 1; min-width: 0; font-size: 16px; }
.row .val { color: var(--muted); font-size: 16px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.glyph { width: 30px; height: 30px; flex: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.glyph.l { width: 36px; height: 36px; border-radius: 9px; }
.src .rb { min-height: 64px; }
.src .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.src .nm b { font-size: 16px; font-weight: 500; }
.src .nm span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex: none; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.addrow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 0 16px; min-height: 52px; border: 0; background: transparent; color: var(--accent); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.field { display: flex; align-items: center; gap: 16px; margin-left: 16px; padding-right: 16px; min-height: 52px; }
.field span { width: 130px; flex: none; font-size: 16px; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16px; text-align: right; }
.formbtns { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.switch { position: relative; width: 51px; height: 31px; flex: none; border: 0; border-radius: 16px; background: rgba(120,120,128,0.32); cursor: pointer; padding: 0; transition: background .2s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); transition: left .2s; }
.switch[aria-checked="true"] span { left: 22px; }
.err { color: #FF6961; font-size: 14px; margin: 0; padding: 0 16px; }
.danger { color: #FF6961 !important; }

/* ---------- tomma lägen / laddning ---------- */
.empty { padding: 48px 32px; border-radius: 24px; background: var(--card); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.empty p { margin: 0; color: var(--soft); line-height: 1.5; max-width: 520px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.skel { background: #1C1C1E; border-radius: 14px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(1000px 600px at 80% -10%, #1E3045 0%, rgba(0,0,0,0) 60%), #000; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.auth-card .brand { padding: 0; }
.auth-card h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card p.lead { margin: -12px 0 0; color: var(--muted); line-height: 1.5; }
.auth-card .list .field span { width: 120px; }
.auth-card .btn-white { justify-content: center; width: 100%; }
.auth-card .switchmode { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 15px; padding: 6px 0; }

/* ---------- toast & meny ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; padding: 12px 18px; border-radius: 14px; background: rgba(44,44,46,0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.1); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-width: calc(100% - 32px); }
.menu { position: fixed; z-index: 90; min-width: 200px; max-width: 320px; max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: rgba(44,44,46,0.92); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 12px 40px rgba(0,0,0,0.55); }
.menu h3 { margin: 0; padding: 8px 12px 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.menu button:hover { background: rgba(255,255,255,0.08); }
.menu button .ck { width: 16px; color: var(--accent); flex: none; }

/* ---------- spelare ---------- */
.player { position: fixed; inset: 0; background: #000; overflow: hidden; color: var(--text); z-index: 50; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .art { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s; }
.player .art .ring { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,0.12); }
.player .art .s1 { position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; opacity: .6; }
.player .art .s2 { position: absolute; left: -8%; bottom: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; opacity: .5; }
.player.has-video .art { opacity: 0; }
.player .gtop { position: absolute; left: 0; right: 0; top: 0; height: 180px; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0)); pointer-events: none; transition: opacity .3s; }
.player .gbot { position: absolute; left: 0; right: 0; bottom: 0; height: 320px; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); pointer-events: none; transition: opacity .3s; }
.player .ui { transition: opacity .3s; }
.player.idle .ui, .player.idle .gtop, .player.idle .gbot { opacity: 0; pointer-events: none; }
.player.idle { cursor: none; }
.glass { background: rgba(30,30,32,0.55); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border: 1px solid rgba(255,255,255,0.1); }
.ptop { position: absolute; left: 24px; right: 24px; top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ptop .who { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 260px; }
.ptop .who .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ptop .who .t span { font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .who .t b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circ { width: 44px; height: 44px; flex: none; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tools { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 26px; }
.ib { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ib:hover { background: rgba(255,255,255,0.12); }
.ib[aria-pressed="true"] { background: var(--text); color: #000; }
.ib.lg { width: 48px; height: 48px; }
.ib.play { width: 60px; height: 60px; background: #fff; color: #000; }
.ib.play:hover { background: #E5E5EA; }
.chlist { position: absolute; right: 24px; top: 96px; bottom: 206px; width: 340px; max-width: calc(100% - 48px); padding: 14px 10px; border-radius: 22px; background: rgba(28,28,30,0.72); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.chlist .hd { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 10px 6px; gap: 8px; }
.chlist .hd h2 { margin: 0; font-size: 17px; font-weight: 700; }
.chlist .hd span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chlist .sc { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.chi { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.chi:hover { background: rgba(255,255,255,0.06); }
.chi[aria-pressed="true"] { background: rgba(255,255,255,0.12); }
.chi .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chi .t .r { display: flex; justify-content: space-between; gap: 8px; }
.chi .t .r b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chi .t .r span { font-size: 12px; color: var(--muted); flex: none; }
.chi .t .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chi .bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.16); }
.chi .bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.pbot { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; justify-content: center; }
.ctrl { width: 100%; max-width: 980px; padding: 18px 22px 16px; border-radius: 26px; background: var(--glass); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 14px; }
.ctrl .r1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctrl .r1 b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl .r1 .rng { margin-left: auto; font-size: 13px; color: var(--muted); flex: none; }
.livebadge { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(255,69,58,0.18); color: #FF6961; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; flex: none; }
.kindbadge { display: flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(255,255,255,0.12); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; flex: none; }
.ctrl .r2 { display: flex; align-items: center; gap: 12px; }
.ctrl .r2 .tm { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 44px; font-variant-numeric: tabular-nums; }
.ctrl .r2 .tm.end { text-align: right; }
.seek { position: relative; flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek .bg { position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.seek .buf { position: absolute; left: 0; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.32); }
.seek .fg { position: absolute; left: 0; height: 6px; border-radius: 3px; background: #fff; }
.seek .knob { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.seek.static { cursor: default; }
.seek .hover { position: absolute; bottom: 24px; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,0.7); font-size: 12px; font-weight: 600; pointer-events: none; display: none; }
.seek:hover .hover { display: block; }
.smallpill { height: 26px; padding: 0 10px; border-radius: 13px; border: 0; background: rgba(255,255,255,0.14); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; flex: none; white-space: nowrap; }
.smallpill[disabled] { opacity: .45; cursor: default; }
.ctrl .r3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ctrl .r3 > div { display: flex; align-items: center; gap: 10px; }
.ctrl .vol { flex: 1 1 180px; }
.ctrl .mid { gap: 18px !important; flex: none; }
.ctrl .rt { flex: 1 1 180px; justify-content: flex-end; gap: 6px !important; }
.ctrl input[type=range] { width: 110px; accent-color: #fff; }
.qbtn { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.28); background: transparent; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; flex: none; }
.pcenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: min(520px, calc(100% - 48px)); pointer-events: none; }
.pcenter.msg { pointer-events: auto; padding: 24px; border-radius: 22px; }
.pcenter p { margin: 0; line-height: 1.5; color: var(--soft); }
.pcenter h2 { margin: 0; font-size: 20px; }
.nextup { position: absolute; right: 24px; bottom: 220px; padding: 14px; border-radius: 18px; display: flex; gap: 12px; align-items: center; max-width: 380px; }

/* ---------- mobil ---------- */
@media (max-width: 820px) {
  .side { position: static; height: auto; max-width: none; flex-basis: 100%; padding: 12px 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .brand { padding: 0; }
  .side .search { flex: 1 1 160px; order: 3; flex-basis: 100%; }
  .side .navlist { flex-direction: row; overflow-x: auto; flex-basis: 100%; order: 4; scrollbar-width: none; }
  .side .navlist .navlink { flex: none; height: 36px; }
  .side .favs { display: none; }
  .side .me { margin: 0 0 0 auto; padding: 4px; background: transparent; }
  .side .me .t { display: none; }
  .main { padding: 20px 16px 56px; gap: 32px; }
  .hero { min-height: 380px; padding: 22px; border-radius: 20px; }
  .hero.detail { min-height: 420px; padding: 22px; }
  .hero h2, .hero.detail h1 { font-size: 40px; }
  .hero .c1 { width: 420px; height: 420px; right: -160px; top: -140px; }
  .hero .c2, .hero .c3 { display: none; }
  .dots { right: 22px; bottom: auto; top: 22px; }
  .grid-cont { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .grid-poster { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
  .grid-lib { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px 12px; }
  .grid-lib .poster .ttl, .poster .ttl { font-size: 15px; }
  .selch { gap: 18px; }
  .preview { flex-basis: 100%; }
  .selinfo h2 { font-size: 26px; }
  .ep .thumb { flex-basis: 100%; }
  .field span { width: 110px; font-size: 15px; }
  .ptop { left: 12px; right: 12px; top: 12px; }
  .pbot { left: 8px; right: 8px; bottom: 8px; }
  .ctrl { padding: 14px 14px 12px; border-radius: 20px; }
  .ctrl .vol input { display: none; }
  .ctrl .mid { gap: 6px !important; }
  .chlist { top: 76px; right: 8px; left: 8px; width: auto; max-width: none; bottom: 230px; }
  .nextup { right: 8px; left: 8px; bottom: 240px; }
}
