:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #14171d;
  color: #f1f3f7;
  --muted: #aeb5c4;
  --line: #2b303a;
  --lime: #a6ed47;
  --sidebar: 218px;
  --top: 66px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 82px; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.top {
  position: sticky; top: 0; z-index: 8; min-height: var(--top); display: flex;
  justify-content: space-between; align-items: center; gap: 14px; padding: 10px 24px;
  background: #1c2028; border-bottom: 1px solid var(--line);
}
.top-left, .top-right, .brand { display: flex; align-items: center; gap: 13px; }
.brand strong { white-space: nowrap; letter-spacing: -.035em; font-size: 22px; font-style: italic; }
.brand strong span { color: var(--lime); margin-left: .22em; }
.icon-button, .top-search, .secondary, #language {
  border: 1px solid #353c48; border-radius: 8px; background: #232832; padding: 8px 12px;
}
.icon-button { min-width: 38px; min-height: 38px; padding: 4px 9px; font-size: 19px; }
.top-search { display: flex; align-items: center; gap: 8px; color: #d8dfeb; }
.top-search > span:first-child, .search > span { font-size: 23px; line-height: 1; }
#language { color: #eef2f9; max-width: 134px; font-size: 13px; }
.demo-badge { display: flex; gap: 7px; align-items: center; color: #d1e9b3; font-size: 12px; font-weight: 700; }
.demo-badge > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.sidebar {
  position: fixed; z-index: 7; top: var(--top); bottom: 0; width: var(--sidebar);
  padding: 16px 12px; background: #1c2028; border-right: 1px solid var(--line); overflow: auto;
}
.sidebar-head { display: flex; gap: 11px; align-items: center; padding: 13px 12px; border-radius: 8px; font-weight: 800; background: linear-gradient(110deg,#33462a,#252d2b); color: #eaf9db; }
.side-mark, .heading-icon { color: var(--lime); }
#side-menu { display: grid; gap: 4px; margin-top: 12px; }
.nav-button {
  display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: #c2cad7; text-align: left; padding: 10px 11px; font-size: 13px; font-weight: 650;
}
.nav-button > span:first-child { font-size: 17px; width: 20px; text-align: center; flex: none; }
.nav-button:hover, .nav-button[aria-current="page"] { background: #2a313c; color: #fff; }
.nav-button[aria-current="page"] > span:first-child { color: var(--lime); }
.side-foot { color: #949eae; padding: 19px 8px; margin-top: 16px; border-top: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
main { margin-left: var(--sidebar); }
.content { max-width: 1570px; padding: 23px 28px 0; margin: auto; }
.page-heading { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; }
.page-heading h1 { font-size: 21px; margin: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero { isolation: isolate; overflow: hidden; position: relative; display: flex; align-items: center; min-height: 237px; border-radius: 12px; border: 1px solid #394b35; background: #183626; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#081c16ed,#081c1680 40%,transparent 72%); }
.hero > img { position: absolute; z-index: -2; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 67% center; }
.slots-hero { background: #342046; border-color: #624777; }
.slots-hero::after { background: linear-gradient(90deg,#1d102deb,#1d102d80 40%,transparent 72%); }
.hero-copy { max-width: 77%; padding: 22px; }
.eyebrow { margin: 0; color: #c4ef8f; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: 10px; }
.slots-hero .eyebrow { color: #e3c4ff; }
.hero h2 { margin: 8px 0 18px; font-size: clamp(26px,3vw,42px); line-height: 1.03; letter-spacing: -.045em; }
.cta { border: 0; border-radius: 7px; padding: 10px 13px; background: var(--lime); color: #172212; font-size: 12px; font-weight: 800; }
.cta:hover { filter: brightness(1.1); }
.cta.purple { background: #d8b3ff; color: #321947; }
.search-row { display: flex; gap: 8px; margin-top: 19px; }
.search { display: flex; flex: 1; align-items: center; gap: 10px; color: #a4aec0; min-width: 0; background: #20252e; border: 1px solid #303744; padding: 0 12px; border-radius: 8px; }
.search input { border: 0; min-width: 0; width: 100%; background: transparent; padding: 12px 0; color: #fff; outline: none; font-size: 13px; }
.search:focus-within { border-color: var(--lime); }
.secondary { font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 25px; }
.filters .nav-button { background: #20252e; white-space: normal; }
.filters .nav-button[aria-current="page"] { border-color: #58743c; background: #2c3929; }
.shelf { margin: 0 0 27px; }
.shelf-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.shelf-title h2 { margin: 0; font-size: 18px; }
.shelf-title h2 span { color: var(--lime); margin-right: 7px; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.card { position: relative; min-width: 0; }
.card-preview { display: block; text-align: left; width: 100%; padding: 0; overflow: hidden; border: 1px solid #353c48; border-radius: 9px; background: #222631; }
.card-preview:hover { border-color: #91c95a; }
.card-preview img { width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; }
.card-title { display: block; padding: 8px 9px; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.poster-card .card-preview { position: relative; }
.poster-card .card-preview img { display: block; aspect-ratio: 2 / 3; }
.poster-card .card-title { position: absolute; inset: auto 0 0; padding: 35% 6% 8%; background: linear-gradient(transparent, #070710d9); font-size: clamp(15px, 2.5vw, 32px); line-height: .98; text-align: center; text-transform: uppercase; font-weight: 900; }
#site-footer { align-items: start; }
#footer-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 1; }
#footer-pages summary { cursor: pointer; color: #f4f7fa; }
#footer-pages p { margin-top: 8px; line-height: 1.5; }
@media (max-width: 760px) { #footer-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } }
.favorite { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 1px solid #ffffff40; border-radius: 50%; background: #13151bd9; font-size: 18px; line-height: 1; }
.favorite[aria-pressed="true"] { color: var(--lime); }
.empty { color: var(--muted); padding: 26px; border: 1px dashed #3a4353; border-radius: 9px; }
footer { display: flex; align-items: center; gap: 17px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 26px; padding: 19px 0; color: var(--muted); font-size: 12px; }
footer p { margin: 0; text-align: right; }
.footer-brand { display: flex; flex: none; align-items: center; gap: 7px; color: #eef4fa; font-weight: 800; }
dialog { width: min(530px,calc(100% - 24px)); max-height: 90dvh; color: #f4f7fa; background: #20252e; padding: 22px; border: 1px solid #485465; border-radius: 13px; }
dialog::backdrop { background: #0a0b10bf; }
#register-dialog { width: min(440px, calc(100% - 24px)); padding: clamp(18px, 5vw, 32px); }
#register-form { display: grid; gap: 13px; }
#register-form :is(p, h2) { margin: 0; }
#register-title { padding-right: 22px; line-height: 1.25; }
#register-email { width: 100%; padding: 12px; background: #14181e; color: #f4f7fa; border: 1px solid #485465; border-radius: 8px; }
#register-status { color: var(--lime); font-weight: 700; }
#register-form [hidden] { display: none; }
#register { padding: 8px 10px; min-height: 34px; font-size: 12px; }
.dialog-close { position: absolute; right: 9px; top: 9px; }
.dialog-body { display: grid; grid-template-columns: minmax(100px,36%) 1fr; gap: 17px; align-items: center; padding-right: 19px; }
.dialog-body img { width: 100%; height: auto; border-radius: 8px; }
.dialog-body h2 { margin: 5px 0; font-size: clamp(22px,4vw,29px); }
.dialog-body p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.55; }
.mobile-nav { display: none; }
body.sidebar-hidden .sidebar { display: none; }
body.sidebar-hidden main { margin-left: 0; }
@media (max-width: 1060px) {
  :root { --sidebar: 176px; }
  .content { padding-inline: 17px; }
  .hero-copy { padding: 15px; }
  .hero { min-height: 197px; }
}
@media (max-width: 760px) {
  :root { --top: 58px; }
  .top { padding: 7px 10px; }
  .top-left, .top-right, .brand { gap: 7px; }
  .brand strong { font-size: 17px; }
  .brand img { width: 25px; height: 25px; }
  .top-search { display: none; }
  #language { max-width: 104px; padding: 6px 4px; font-size: 11px; }
  .demo-badge { font-size: 9px; gap: 4px; }
  .sidebar { display: none; width: min(250px,80vw); }
  body.sidebar-open .sidebar { display: block; }
  #scrim { position: fixed; z-index: 6; inset: var(--top) 0 0; background: #090b10ab; border: 0; }
  main { margin-left: 0; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .content { padding: 13px 10px 0; }
  .hero-grid { gap: 7px; }
  .hero { min-height: 167px; }
  .hero-copy { padding: 10px; max-width: 94%; }
  .hero h2 { font-size: clamp(18px,4.8vw,30px); margin-bottom: 10px; }
  .hero .cta { font-size: 10px; padding: 7px; }
  .eyebrow { font-size: 8px; }
  .filters .nav-button { font-size: 11px; padding: 6px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mobile-nav { display: flex; justify-content: space-around; gap: 2px; position: fixed; z-index: 5; bottom: 0; width: 100%; background: #1c2028; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav .nav-button { flex: 1; flex-direction: column; text-align: center; gap: 1px; padding: 4px 2px; font-size: 9px; }
  footer { flex-wrap: wrap; }
  footer p { text-align: left; }
}
@media (max-width: 480px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .demo-badge { display: none; } }
