:root {
  --navy: #0b1f3a;
  --navy-2: #16325c;
  --accent: #e11d48;
  --accent-soft: #fff1f3;
  --side-ico: #7dd3fc;
  --teal: #0f766e;
  --bg: #f3f6fb;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.25);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 560px) 1fr;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 20px;
  width: 100%;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-left { justify-self: start; }
.topbar-right { justify-self: end; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}
.brand img {
  width: clamp(36px, 4.6vw, 52px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}
.brand strong { display: block; font-size: 14px; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 11px; opacity: 0.7; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  color: var(--text);
}
.search i { color: var(--muted); }
.search input {
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  font-size: 14px;
  background: transparent;
}
.search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.search-desk {
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.search-mob { display: none; padding: 0 16px 12px; }

.queue-badge {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 48;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
  white-space: nowrap;
}
.queue-badge i { font-size: 13px; }

.nav-desk { display: flex; align-items: center; gap: 6px; }
.nav-desk > a,
.nav-drop > button {
  color: #e2e8f0;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.nav-desk a.is-on,
.nav-drop > button.is-on,
.nav-desk a:hover,
.nav-drop > button:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-drop { position: relative; }
.nav-drop-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
}
.nav-drop:hover .nav-drop-list,
.nav-drop:focus-within .nav-drop-list { display: grid; }
.nav-drop-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.nav-drop-list a:hover { background: var(--bg); }
.nav-drop-list i { width: 18px; color: var(--accent); }
.nav-drop-list em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 18px;
}
.side-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.side-reopen {
  display: none;
}

.drawer-bg { position: fixed; inset: 0; background: rgba(11,31,58,.45); z-index: 55; }
body.menu-open { overflow: hidden; }

.app {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}
.app-body {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.app-body .foot { margin-top: auto; }

.sidenav {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--navy);
  color: #fff;
  z-index: 45;
  transition: width .2s ease, min-width .2s ease, max-width .2s ease, flex-basis .2s ease;
}
.sidenav-top {
  flex-shrink: 0;
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: var(--navy);
}
.sidenav-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand-side {
  min-width: 0;
  flex: 1;
}
.brand-side img {
  width: clamp(40px, 5.2vw, 56px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
}
.brand-side strong { font-size: 14px; }
.brand-side small { font-size: 11px; }
.sidenav-brand-row button {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  place-items: center;
  flex-shrink: 0;
}
.sidenav-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px 24px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
}
.sidenav-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidenav-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidenav-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .35);
  border-radius: 99px;
}
.sidenav-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, .55);
}
.sidenav-tree {
  padding-bottom: 12px;
  min-width: 0;
}
.sidenav-tools {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidenav-tools p {
  margin: 0 8px 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.sidenav-tools a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 8px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}
.sidenav-tools a:hover { background: rgba(255,255,255,.06); }
.sidenav-tools i { width: 18px; font-size: 15px; color: var(--side-ico); }

.sn-item,
.sn-kids { min-width: 0; }
.sn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 6px 0 8px;
  border-radius: 8px;
}
.sn-item[data-depth="1"] > .sn-row { padding-left: 24px; }
.sn-item[data-depth="2"] > .sn-row { padding-left: 34px; }
.sn-item[data-depth="3"] > .sn-row { padding-left: 44px; }
.sn-item[data-depth="4"] > .sn-row { padding-left: 54px; }
.sn-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
a.sn-home { color: inherit; }
.sn-ico {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--side-ico);
  font-size: 16px;
  font-weight: 900;
}
.sn-label {
  min-width: 0;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-row:hover { background: rgba(255,255,255,.06); }
.sn-row.is-active {
  background: rgba(225, 29, 72, .22);
}
.sn-row.is-active .sn-link { color: #fff; }
.sn-tog {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
  z-index: 2;
}
.sn-tog:hover { color: #fff; }
.sn-tog i {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: transform .15s ease;
}
.sn-item.is-open > .sn-row .sn-tog i { transform: rotate(180deg); }
.sn-kids { display: none !important; }
.sn-item.is-open > .sn-kids { display: block !important; }
.sn-acc {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.sn-tog i,
.sn-acc i { pointer-events: none; }
.sn-leaf {
  display: flex;
  align-items: center;
  height: 36px;
  min-height: 36px;
  padding: 0 8px 0 36px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.3;
  border-radius: 8px;
  min-width: 0;
}
.sn-leaf .sn-label {
  flex: 1;
}
.sn-leaf[data-depth="1"] { padding-left: 36px; }
.sn-leaf[data-depth="2"] { padding-left: 46px; }
.sn-leaf[data-depth="3"] { padding-left: 56px; }
.sn-leaf[data-depth="4"] { padding-left: 66px; }
.sn-leaf:hover { background: rgba(255,255,255,.06); color: #fff; }
.sn-leaf.is-on { background: var(--accent); color: #fff; font-weight: 700; }
.sn-leaf i {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 900;
  opacity: .7;
}

.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 55%, #1d4e89 100%);
  color: #fff;
  padding: 36px 0 40px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero p { margin: 0 0 22px; max-width: 560px; color: #dbe4f0; }
.hero .search { max-width: 640px; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #dbe4f0;
  font-size: 14px;
}
.stats strong { display: block; color: #fff; font-size: 20px; }

.section { padding: 36px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-head a { color: var(--accent); font-weight: 700; font-size: 14px; }

.cat-grid, .video-grid {
  display: grid;
  gap: 14px;
}
.cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.cat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 128px;
  min-width: 0;
}
.cat i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}
.cat strong {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cat span { color: var(--muted); font-size: 12px; margin-top: auto; }
.cat:hover { transform: translateY(-3px); transition: transform .2s; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: inherit;
}
.card:hover { transform: translateY(-3px); transition: transform .2s; }
.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #0b1220;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, #16325c, #e11d48);
}
.card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.hero .chips {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.hero .chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
}
.chip.is-on, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.page-head { padding: 22px 0 8px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumb a { color: var(--navy); font-weight: 600; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.page-head p { margin: 0; color: var(--muted); }

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 20px 0 40px;
  align-items: start;
}
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player iframe, .player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.watch-title { margin: 16px 0 8px; font-size: 1.35rem; letter-spacing: -0.02em; }
.watch-meta { color: var(--muted); font-size: 14px; }
.watch-meta a { color: var(--accent); font-weight: 700; }
.side h3 { margin: 0 0 12px; font-size: 1rem; }
.side .card { margin-bottom: 12px; }

.note {
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 14px;
}
.note a { color: var(--accent); font-weight: 700; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.help {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.help i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}
.help h2 { margin: 0 0 8px; font-size: 1.05rem; }
.help .chat-open {
  margin-top: 12px;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.help .chat-open:hover { background: var(--navy-2); }
.help p { margin: 0; color: var(--muted); font-size: 14px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

.extra-block {
  margin-top: 22px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.extra-block pre,
.extra-block div[align="center"] pre {
  margin: 0 auto;
  width: 100% !important;
  max-width: 100%;
  overflow: auto;
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.extra-block strong { color: var(--navy); }
.file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.res-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.res-card i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
.res-card strong { font-size: 14px; }
.res-card span, .res-card p { margin: 0; color: var(--muted); font-size: 13px; }
.res-card a { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: auto; }
.update-list { display: grid; gap: 12px; }
.update-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.update-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.update-platform { font-weight: 700; color: var(--navy); }
.update-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.update-meta em {
  font-style: normal;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.update-meta span {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
}
.port-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.port-table th, .port-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.port-table th { background: var(--navy); color: #fff; }
.platform-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.platform-card img { max-height: 64px; margin: 0 auto; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a, .pager strong {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}
.pager strong { background: var(--navy); color: #fff; border-color: var(--navy); }

.foot {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 28px 0 18px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.foot h3 { margin: 0 0 8px; font-size: 14px; }
.foot p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.foot .brand { color: var(--navy); margin-bottom: 8px; }
.foot-copy { margin-top: 18px; color: var(--muted); font-size: 13px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

@media (min-width: 901px) {
  .brand-top { display: none; }
  body.side-collapsed .sidenav {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
  }
  body.side-collapsed .brand-side span,
  body.side-collapsed .sn-label,
  body.side-collapsed .sn-tog,
  body.side-collapsed .sn-kids,
  body.side-collapsed .sidenav-tools p,
  body.side-collapsed .sidenav-tools a span,
  body.side-collapsed .sn-ext .fa-external-link-alt {
    display: none !important;
  }
  body.side-collapsed .sidenav-top {
    padding: 12px 8px 10px;
  }
  body.side-collapsed .sidenav-brand-row {
    justify-content: center;
  }
  body.side-collapsed .brand-side img {
    width: clamp(32px, 4vw, 40px);
    padding: 2px;
  }
  body.side-collapsed .sidenav-scroll {
    padding: 8px 6px 20px;
  }
  body.side-collapsed .sn-row {
    gap: 0;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
  body.side-collapsed .sn-link {
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  body.side-collapsed .sn-ico {
    width: 20px;
    font-size: 16px;
    color: var(--side-ico);
  }
  body.side-collapsed .sidenav-tools a {
    justify-content: center;
    padding: 12px 0;
  }
  body.side-collapsed .sidenav-tools i {
    width: 18px;
    font-size: 16px;
  }
  body.side-collapsed .sn-item[data-depth="0"] > .sn-row.is-active,
  body.side-collapsed .sn-item[data-depth="0"] > .sn-row:hover {
    background: rgba(225, 29, 72, .22);
  }
}

@media (max-width: 1280px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .watch { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; }
  .topbar-inner {
    display: flex;
    justify-content: space-between;
  }
  .search-desk, .nav-desk { display: none; }
  .side-toggle { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .search-mob {
    display: flex;
    width: min(560px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 0;
  }
  .queue-badge {
    top: auto;
    bottom: 88px;
    right: 16px;
    font-size: 12px;
  }
  .app { display: block; min-height: 0; }
  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  body.menu-open .sidenav {
    transform: none;
    box-shadow: 12px 0 32px rgba(11, 31, 58, .35);
  }
  .sidenav-brand-row button { display: grid; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: 1fr 1fr; }
  .platform-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .hero { padding: 24px 0 28px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-title { font-size: 13px; }
  .section { padding: 24px 0; }
  .chips { grid-template-columns: 1fr; }
}

.legacy-page {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 16px auto 40px;
  overflow: auto;
}
.legacy-page img { max-width: 100%; height: auto; }
