:root {
  color-scheme: dark;
  --background: #0b0e16;
  --surface: #111520;
  --card: #161b28;
  --line: #272e40;
  --text: #f5f5fb;
  --muted: #aeb4c7;
  --accent: #c2a9ff;
  --primary: #b99bff;
  --sidebar: 226px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
input, button, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #d7c4ff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
svg { height: 19px; width: 19px; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; gap: 11px; align-items: center; width: max-content; font-size: 22px; font-weight: 780; letter-spacing: -.06em; }
.mark { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 10px 10px 10px 3px; color: #110925; background: linear-gradient(145deg,#e1d0ff,#a77cff 65%,#8d62ea); font-size: 22px; font-weight: 900; letter-spacing: -.12em; padding-right: 2px; box-shadow: 0 4px 18px #0c061c8c; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; background: var(--surface); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.workspace { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100svh; }
.sidebar { min-width: 0; background: #10141e; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 19px 14px; }
.sidebar > .brand { margin: 0 10px 36px; }
.sidebar-label { color: #b1a2d6; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; display: block; margin: 0 11px 9px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 7px 11px; margin: 3px 0; border-radius: 8px; color: #c7cbda; font-size: 14px; font-weight: 540; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:nth-last-child(2) { margin-top: 15px; }
.nav-link:hover, .nav-link[aria-current="page"] { background: #25203c; color: #e0ceff; }
.sidebar-footer { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sidebar-footer a { display: flex; align-items: center; gap: 8px; line-height: 1.5; }
.signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #76d4a7; margin-right: 7px; }
.shell { min-width: 0; background: radial-gradient(ellipse 850px 480px at 45% 0%, #14182a 0%, transparent 85%); }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px clamp(18px,3vw,40px); border-bottom: 1px solid #262c3b; background: #0d111adf; backdrop-filter: blur(18px); min-height: 70px; }
.compact { display: none; }
#search-form { display: flex; align-items: center; gap: 10px; width: min(100%, 430px); min-width: 0; border-radius: 8px; border: 1px solid #2b3143; background: #181d2a; color: var(--muted); padding: 0 12px; }
#search-form:focus-within { border-color: #b29af5; }
#search-form input { background: transparent; color: var(--text); width: 100%; border: 0; outline: 0; min-height: 39px; padding: 0; }
#search-form input::placeholder { color: #aeb4c7; }
kbd { font-size: 12px; color: var(--muted); border: 1px solid #383f52; border-radius: 4px; padding: 1px 6px; }
.user { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); text-align: left; padding: 2px 0; }
.user strong, .user small { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user strong { font-size: 13px; font-weight: 680; }
.user small { color: var(--muted); margin-top: 2px; font-size: 11px; }
.avatar { height: 34px; width: 34px; display: grid; flex: none; place-items: center; border-radius: 50%; color: #e1d2ff; background: #352654; font-size: 13px; font-weight: 750; }
#content { margin-inline: auto; max-width: 1620px; min-height: calc(100svh - 70px); padding: 29px clamp(18px,3vw,40px) 48px; outline: none; }
.intro { margin-bottom: 23px; }
.intro h1, .page-head h1 { font-size: clamp(27px,3vw,37px); line-height: 1.13; letter-spacing: -.052em; font-weight: 760; }
.intro p, .page-head p { color: var(--muted); margin-top: 7px; font-size: 14px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 255px; align-items: start; gap: 24px; }
.home-main { min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 28px; }
.metric, .rail, .library-tile { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(125deg,#171c29,#121622); }
.metric { display: flex; gap: 11px; align-items: center; padding: 15px 12px; min-width: 0; }
.metric:hover, .library-tile:hover { border-color: #72609e; }
.metric-icon, .rail-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; color: #dfd0ff; background: #352658; border-radius: 10px; }
.metric:nth-child(2) .metric-icon { color: #b2efd3; background: #22453f; }
.metric:nth-child(3) .metric-icon { color: #ffdba8; background: #4e362b; }
.metric-icon svg, .rail-icon svg { width: 16px; height: 16px; }
.metric span, .metric strong { display: block; }
.metric .metric-icon { display: grid; }
.metric strong { font-size: 21px; line-height: 1.15; margin-top: 3px; }
.metric small { color: var(--muted); font-size: 11px; }
.rail { padding: 17px; margin-bottom: 13px; }
.rail h2 { font-size: 15px; letter-spacing: -.02em; }
.rail p { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 8px 0 13px; }
.rail ul { list-style: none; padding: 0; margin: 10px 0 0; }
.rail li + li { border-top: 1px solid #2a3041; }
.rail-link { padding: 9px 0; display: flex; align-items: center; gap: 9px; font-size: 13px; }
.rail-link > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-link > svg { margin-left: auto; color: #bab1d0; width: 14px; }
.rail-link:hover { color: var(--accent); }
.shelf { margin-bottom: 25px; padding-bottom: 21px; border-bottom: 1px solid #202534; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-head h2 { font-size: 18px; letter-spacing: -.03em; }
.quiet { color: var(--accent); font-size: 13px; font-weight: 660; }
.quiet:hover { text-decoration: underline; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(107px,12.1vw,174px); gap: 12px; overflow: auto; padding: 4px 4px 10px; margin: -4px; scrollbar-width: thin; scrollbar-color: #42405b transparent; scroll-snap-type: inline proximity; }
.strip.resume { grid-auto-columns: clamp(130px,13vw,190px); }
.card { min-width: 0; display: block; scroll-snap-align: start; }
.poster { overflow: hidden; border-radius: 9px; aspect-ratio: 2 / 3; background: linear-gradient(155deg,#282143,#151c2d); position: relative; isolation: isolate; border: 1px solid #2b3246; display: grid; place-items: center; }
.poster.square { aspect-ratio: 1; }
.poster img, .hero-art { width: 100%; height: 100%; object-fit: cover; }
.poster img { position: absolute; inset: 0; transition: transform .23s ease; }
.card:hover .poster img { transform: scale(1.045); }
.poster > svg { width: 29px; height: 29px; color: #bda7ed; }
.poster .poster-play { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #f4ecff8c; background: #100b22b5; color: white; border-radius: 50%; }
.poster-play svg { width: 14px; height: 14px; fill: currentColor; }
.poster small { position: absolute; right: 6px; top: 6px; padding: 4px 5px; color: #fff; background: #10131edb; border-radius: 5px; line-height: 1; }
.poster progress { position: absolute; width: calc(100% - 14px); height: 4px; appearance: none; bottom: 7px; left: 7px; border-radius: 4px; overflow: hidden; background: #ede7ff60; }
.poster progress::-webkit-progress-bar { background: #ede7ff60; }
.poster progress::-webkit-progress-value { background: #c5acff; }
.poster progress::-moz-progress-bar { background: #c5acff; }
.card strong { line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; margin-top: 8px; }
.card > small { color: var(--muted); font-size: 12px; display: block; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.libraries { display: grid; grid-template-columns: repeat(auto-fit,minmax(138px,1fr)); gap: 10px; }
.library-tile { min-height: 65px; display: flex; align-items: center; min-width: 0; gap: 8px; padding: 10px; font-size: 13px; font-weight: 680; }
.library-tile > span:nth-child(2) { overflow-wrap: anywhere; }
.library-tile > svg { margin-left: auto; width: 14px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.filter { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
select, .button { color: var(--text); background: #1c2130; border: 1px solid #373f55; border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 650; }
.button, .primary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover, select:hover { border-color: var(--accent); }
.primary { border: 0; border-radius: 8px; padding: 10px 16px; background: var(--primary); color: #180c30; font-size: 14px; font-weight: 800; }
.primary:hover { background: #d0baff; }
button:disabled { opacity: .62; cursor: wait; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill,minmax(132px,1fr)); gap: 20px 14px; }
.more { margin: 24px auto; display: flex; }
.state { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 20px; line-height: 1.6; font-size: 14px; }
.error { color: #ffb9c4 !important; }
.detail { position: relative; overflow: hidden; min-height: 360px; border: 1px solid var(--line); border-radius: 17px; margin: 12px 0 26px; isolation: isolate; background: #19192b; }
.hero-art { position: absolute; inset: 0; z-index: -2; object-position: center 28%; }
.detail::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#10121ff5 8%,#10121fe0 33%,#12162438 90%), linear-gradient(0deg,#10121ff5,transparent 70%); }
.detail-copy { min-height: 360px; max-width: 695px; padding: clamp(20px,4vw,52px); display: flex; flex-direction: column; justify-content: end; align-items: start; gap: 11px; }
.detail-copy h1 { font-size: clamp(32px,5vw,62px); letter-spacing: -.065em; line-height: 1; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.meta { color: #d0cddd; font-size: 13px; font-weight: 600; }
.description { color: #dedce8; font-size: 15px; line-height: 1.55; max-width: 66ch; white-space: pre-line; }
.actions { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 9px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 11px; margin: 12px 0 0; padding: 0; list-style: none; }
.cast-grid li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; }
.cast-grid small { display: block; color: var(--muted); padding-top: 4px; }
.player { width: min(1120px,calc(100vw - 24px)); max-width: none; color: var(--text); background: #10131e; border: 1px solid #414766; border-radius: 13px; padding: 15px; }
.player::backdrop { background: #070813ed; }
.player-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.player-heading h2 { font-size: 18px; }
.player video { width: 100%; max-height: 76svh; display: block; background: #000; aspect-ratio: 16 / 9; }
.player audio { width: 100%; margin: 22px 0; }
.player p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.boot { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.login { min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; background: #0d1019; }
.login-art { overflow: hidden; display: grid; position: relative; isolation: isolate; place-items: center; background: radial-gradient(ellipse at 55% 58%, #40276c 0%, #251b48 33%, #100e20 73%); }
.login-art span { position: absolute; border-radius: 50%; aspect-ratio: 1; width: 75%; border: 1px solid #b299ff30; box-shadow: inset 0 0 85px #9672ff21; }
.login-art span:nth-child(2) { width: 97%; }
.login-art span:nth-child(3) { width: 121%; }
.login-emblem { font-size: clamp(105px,20vw,330px); color: #ddcbff; line-height: 1; font-weight: 900; letter-spacing: -.17em; margin-right: .16em; text-shadow: 0 8px 50px #a265ffb3, 0 30px 70px #140a39; transform: rotate(-8deg); }
.login-side { display: grid; place-items: center; padding: 32px 26px; }
.login-card { width: min(100%, 365px); }
.login-card > .brand { margin-bottom: 39px; }
.login h1 { font-size: clamp(32px,5vw,47px); letter-spacing: -.06em; }
.login p { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }
.login form { display: grid; gap: 8px; }
.login label { color: #ded9ea; font-size: 13px; font-weight: 650; }
.login input { background: #181c2a; color: var(--text); border: 1px solid #353c52; border-radius: 7px; height: 45px; padding: 8px 12px; width: 100%; margin-bottom: 9px; }
.login form p { margin: 2px 0; }
.login form .primary { margin-top: 6px; justify-content: space-between; }
.login-card > .quiet { display: inline-flex; gap: 7px; margin-top: 20px; }
@media (max-width: 1150px) {
  :root { --sidebar: 178px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 208px; gap: 16px; }
  .metric { flex-direction: column; align-items: start; }
}
@media (max-width: 890px) {
  .home-grid { grid-template-columns: minmax(0,1fr); }
  .home-rail { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
  .metric { flex-direction: row; align-items: center; }
}
@media (max-width: 690px) {
  .workspace { display: flex; flex-direction: column; padding-bottom: 61px; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 4; height: auto; padding: 5px 4px max(5px,env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .sidebar > .brand, .sidebar-label, .sidebar-footer { display: none; }
  #navigation { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); text-align: center; }
  .nav-link, .nav-link:nth-last-child(2) { flex-direction: column; gap: 4px; justify-content: center; margin: 0; padding: 4px 1px; font-size: 9px; }
  .topbar { min-height: 61px; gap: 10px; padding: 9px 12px; }
  .compact { display: inline-flex; }
  .user > span:nth-child(2), kbd { display: none; }
  #content { padding: 23px 15px 24px; }
  .metrics { gap: 7px; }
  .metric { padding: 9px; gap: 6px; flex-direction: column; align-items: start; }
  .catalog { grid-template-columns: repeat(auto-fill,minmax(104px,1fr)); gap: 15px 10px; }
  .login { grid-template-columns: 1fr; grid-template-rows: minmax(120px,27svh) 1fr; }
  .login-emblem { font-size: 105px; }
  .login-card > .brand { margin-bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
