/* ============================================================================
   Premium Network TV — modern streaming UI
   Netflix / Plex / Tivimate-inspired dark theme. Frontend-only restyle.
   ========================================================================== */
:root {
  --bg: #07090f;
  --bg-2: #0a0d15;
  --panel: #11151f;
  --panel-2: #161b27;
  --panel-3: #1f2634;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.12);
  --text: #f3f5fb;
  --muted: #9aa3b7;
  --muted-2: #6b7283;
  --red: #e50914;
  --red-2: #ff2d3f;
  --accent: #e50914;
  --accent-soft: rgba(229, 9, 20, 0.16);
  --green: #2bd576;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Author `display` rules below would otherwise beat the UA [hidden] rule and
   keep .hidden overlays/loaders visible — force-hide anything with [hidden]. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(229, 9, 20, 0.16) 0%, transparent 58%),
    radial-gradient(900px 540px at -6% -4%, rgba(43, 86, 213, 0.14) 0%, transparent 52%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.1px;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3142; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #38415a; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ───────────────────────── Top bar ───────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.92), rgba(7, 9, 15, 0.72));
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  z-index: 60;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
  user-select: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-2), #9b0610);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.45);
}
.brand-text .x { color: var(--red-2); margin-left: 2px; }

/* Primary tabs (desktop) */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.tab svg { opacity: 0.85; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.16);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.4);
}
.tab.active svg { opacity: 1; }

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin-left: auto;
}
.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hair);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px 11px 40px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.search::placeholder { color: var(--muted-2); }
.search:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}
.ip-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(43, 213, 118, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 213, 118, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(43, 213, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 213, 118, 0); }
}

/* ───────────────────────── Icon buttons ───────────────────────── */
.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--hair);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ───────────────────────── Mobile bottom tabbar ───────────────────────── */
.tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: linear-gradient(180deg, rgba(10, 13, 21, 0.86), rgba(7, 9, 15, 0.98));
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--hair);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.15s;
}
.tabbar-btn.active { color: var(--red-2); }

/* ───────────────────────── Layout ───────────────────────── */
.layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  padding: 18px 12px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  border-right: 1px solid var(--hair);
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 14px;
}
.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted-2);
  font-weight: 800;
}
#sidebar-close { display: none; }

.categories { display: flex; flex-direction: column; gap: 2px; }
.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}
.cat .cat-name { overflow: hidden; text-overflow: ellipsis; }
.cat .cat-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 2px 8px;
}
.cat:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.cat.active {
  background: linear-gradient(120deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.06));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red-2);
}
.cat.active .cat-count { background: rgba(229, 9, 20, 0.28); color: #ffd9db; }
.cat.skeleton { height: 40px; background: var(--panel); animation: shimmer 1.3s infinite; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 50;
  opacity: 0;
  animation: fade 0.2s ease forwards;
}
@keyframes fade { to { opacity: 1; } }

.content {
  flex: 1;
  padding: 22px 30px 60px;
  min-width: 0;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ───────────────────────── Hero / spotlight ───────────────────────── */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  margin-bottom: 26px;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  filter: saturate(115%);
  transition: transform 6s ease;
}
.hero:hover .hero-bg { transform: scale(1.12); }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.96) 0%, rgba(7, 9, 15, 0.7) 42%, rgba(7, 9, 15, 0.15) 100%),
    linear-gradient(0deg, rgba(7, 9, 15, 0.95) 0%, transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 6px;
}
.live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-w 1.6s infinite;
}
@keyframes pulse-w { 50% { opacity: 0.35; } }
.hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.5px;
}
.hero-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--red-2), #b00710);
  color: #fff;
  box-shadow: 0 10px 26px rgba(229, 9, 20, 0.4);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(229, 9, 20, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--hair-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ───────────────────────── Section header + chips ───────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 8px 2px 14px;
}
.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-meta {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
}
.section-meta.error {
  color: #ffb4b4;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--hair-2); }
.chip.active {
  background: #fff;
  color: #0a0d15;
  border-color: #fff;
}

/* ───────────────────────── Content grid + cards ───────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 18px;
}
.grid.posters {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 9, 20, 0.3);
}
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(120% 120% at 50% 0%, #232b3c 0%, var(--panel-2) 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.grid.posters .thumb { aspect-ratio: 2 / 3; }
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.grid.posters .thumb img { object-fit: cover; padding: 0; }
.card .thumb .initials {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  opacity: 0.92;
}
.card .badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(229, 9, 20, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(3px);
}
.card .badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-w 1.6s infinite;
}
.card .play-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(7, 9, 15, 0.7), rgba(7, 9, 15, 0.1));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.card:hover .play-hint, .card:focus-visible .play-hint { opacity: 1; }
.card .play-hint .pbtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.2s var(--ease);
}
.card:hover .play-hint .pbtn { transform: scale(1); }
.card .name {
  padding: 11px 12px 13px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.playing {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.6), 0 16px 36px rgba(229, 9, 20, 0.25);
}

/* Skeleton loading cards */
.card.skeleton { pointer-events: none; }
.card.skeleton .thumb { background: var(--panel-2); animation: shimmer 1.3s infinite; }
.card.skeleton .name { height: 30px; }
.card.skeleton .name::after {
  content: "";
  display: block;
  height: 12px;
  width: 75%;
  border-radius: 6px;
  background: var(--panel-2);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 50% { opacity: 0.45; } }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted-2);
  padding: 60px 20px;
  font-size: 15px;
}
.empty svg { opacity: 0.4; margin-bottom: 12px; }

/* ───────────────────────── Theater player modal ───────────────────────── */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade 0.2s ease forwards;
}
.player-modal {
  width: min(1180px, 100%);
  background: linear-gradient(180deg, #0c0f17, #0a0d14);
  border: 1px solid var(--hair-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.28s var(--ease);
}
@keyframes rise { from { transform: translateY(22px) scale(0.98); opacity: 0; } }
.player-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
}
#video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.player-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--hair);
}
.player-live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  flex-shrink: 0;
  animation: pulse-w 1.6s infinite;
}
.player-meta { min-width: 0; flex: 1; }
.player-title {
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-status {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  min-height: 16px;
}
.player-status.error { color: #ffb4b4; }
.player-close { display: inline-flex !important; }

/* ───────────────────────── Telegram popup ───────────────────────── */
.tg-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 5, 9, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.22s ease forwards;
}
.tg-modal {
  position: relative;
  width: min(420px, 100%);
  text-align: center;
  padding: 34px 28px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(41, 171, 226, 0.22), transparent 60%),
    linear-gradient(180deg, #121724, #0c0f18);
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow);
  animation: rise 0.3s var(--ease);
}
.tg-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tg-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tg-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2aabe2, #1c8fd6);
  box-shadow: 0 12px 30px rgba(41, 171, 226, 0.5);
}
.tg-modal h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.tg-modal p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.tg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tg-actions .btn { width: 100%; justify-content: center; }
.tg-actions .btn-primary {
  background: linear-gradient(135deg, #2aabe2, #1c8fd6);
  box-shadow: 0 10px 26px rgba(41, 171, 226, 0.45);
}

/* ───────────────────────── Tablet ───────────────────────── */
@media (max-width: 1080px) {
  .sidebar { width: 210px; }
  .content { padding: 20px 22px 60px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
}

/* ───────────────────────── Mobile ───────────────────────── */
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .icon-btn { display: inline-flex; }
  #menu-btn { order: -1; }
  .brand-text { font-size: 17px; }
  .tabs { display: none; }
  .tabbar { display: flex; }
  .search-wrap { max-width: none; }
  .ip-badge { padding: 7px; }
  .ip-badge-text { display: none; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 84%;
    max-width: 320px;
    max-height: none;
    z-index: 70;
    background: var(--bg-2);
    box-shadow: var(--shadow);
    transform: translateX(-104%);
    transition: transform 0.28s var(--ease);
    padding-top: 14px;
  }
  .sidebar.open { transform: translateX(0); }
  #sidebar-close { display: inline-flex; }

  .content { padding: 16px 16px 90px; }
  .hero { min-height: 240px; }
  .hero-inner { min-height: 240px; padding: 26px 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .player-overlay { padding: 0; align-items: stretch; }
  .player-modal { width: 100%; border-radius: 0; height: 100%; display: flex; flex-direction: column; }
  .player-stage { aspect-ratio: auto; flex: 1; max-height: none; }
}

@media (min-width: 761px) {
  .backdrop { display: none !important; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
}

/* ───────────────────────── Large TV / 10-ft ───────────────────────── */
@media (min-width: 1800px) {
  .content { max-width: 1840px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
  .section-title { font-size: 26px; }
  .hero { min-height: 380px; }
  .hero-inner { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
