:root {
  --bg: #070b12;
  --panel: #0c1422;
  --panel-2: #101b2d;
  --line: rgba(148, 163, 184, .14);
  --text: #e8eefc;
  --muted: #93a3bd;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --red: #ef4444;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 18, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.1rem;
}

.brand svg {
  width: 28px;
  height: 28px;
  color: var(--cyan);
  flex: none;
}

.brand em {
  font-style: normal;
  color: var(--cyan);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .76rem;
  color: var(--muted);
}

.clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c7d2e5;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .6);
  animation: pulse 2s infinite;
}

.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 8px;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  color: #aebcd2;
  text-decoration: none;
  font-size: .81rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.site-nav a[aria-current="page"] {
  color: #e6fbff;
  background: rgba(34, 211, 238, .12);
  border-color: rgba(34, 211, 238, .35);
}

.dashboard-hero {
  border-bottom: 1px solid var(--line);
}

.dashboard-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 999px;
  background: rgba(34, 211, 238, .06);
  color: #a5f3fc;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}

.grad {
  background: linear-gradient(100deg, var(--cyan), #7dd3fc 35%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  color: #b6c4da;
  font-size: .84rem;
}

.hero-meta b {
  color: var(--text);
}

.hero-meta i {
  width: 4px;
  height: 4px;
  align-self: center;
  border-radius: 50%;
  background: #3b4a61;
}

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s;
}

.cat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .38);
  background: var(--panel-2);
}

.cat-tile svg {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--cyan);
}

.cat-tile[data-cat="news"] svg {
  color: #f87171;
}

.cat-tile[data-cat="cams"] svg {
  color: #22d3ee;
}

.cat-tile[data-cat="space"] svg {
  color: #a78bfa;
}

.cat-tile[data-cat="music"] svg {
  color: #f472b6;
}

.cat-tile[data-cat="podcasts"] svg {
  color: #a3e635;
}

.cat-tile strong {
  display: block;
  font-size: .83rem;
  line-height: 1.2;
}

.cat-tile span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.cat-tile.all {
  background: linear-gradient(120deg, rgba(34, 211, 238, .10), rgba(139, 92, 246, .12));
  border-color: rgba(34, 211, 238, .28);
}

.cat-tile.all svg {
  color: #67e8f9;
}

.browse {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 10px;
}

.browse-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 620px;
}

.search svg {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 13px 46px 13px 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search input::placeholder {
  color: #6b7c96;
}

.search input:focus {
  border-color: rgba(34, 211, 238, .6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .10);
}

.search kbd {
  position: absolute;
  right: 11px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: #8fa0ba;
  font-size: .7rem;
  font-family: inherit;
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--muted);
  font-size: .78rem;
}

.select select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .84rem;
  outline: none;
  max-width: 185px;
  cursor: pointer;
}

.select select option {
  background: var(--panel);
  color: var(--text);
}

.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #b9c7dc;
  font-size: .81rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

.chip:hover {
  border-color: rgba(34, 211, 238, .4);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  background: rgba(34, 211, 238, .12);
  border-color: rgba(34, 211, 238, .45);
  color: #e6fbff;
}

.chip .count {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #cfe3f5;
  font-size: .69rem;
  text-align: center;
}

.results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .79rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding-bottom: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, .38);
  box-shadow: 0 14px 30px rgba(2, 6, 16, .45);
}

.card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 14, 0) 45%, rgba(3, 7, 14, .5));
  z-index: 1;
}

.thumb[data-cat="news"] {
  background: linear-gradient(135deg, #450a0a, #b91c1c 52%, #f97316);
}

.thumb[data-cat="cams"] {
  background: linear-gradient(135deg, #083344, #0e7490 52%, #22d3ee);
}

.thumb[data-cat="space"] {
  background: linear-gradient(135deg, #1e1b4b, #4338ca 52%, #a855f7);
}

.thumb[data-cat="music"] {
  background: linear-gradient(135deg, #4a044e, #a21caf 52%, #f472b6);
}

.thumb[data-cat="podcasts"] {
  background: linear-gradient(135deg, #052e16, #15803d 52%, #a3e635);
}

.thumb-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .2;
}

.flag {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 23px;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(4, 9, 18, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(5px);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
  color: #dbeafe;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 9, 18, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(5px);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  color: #f8fafc;
}

.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}

.art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .9;
}

.art svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .35));
}

.play {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
}

.play svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  margin-left: 2px;
}

.card:hover .play,
.card:focus-visible .play {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  display: block;
  padding: 11px 12px 13px;
}

.card-title {
  display: block;
  font-size: .94rem;
  font-weight: 750;
  letter-spacing: -.015em;
  margin-bottom: 3px;
}

.card-meta {
  display: block;
  color: #8fa2bd;
  font-size: .7rem;
  margin-bottom: 6px;
}

.card-desc {
  display: -webkit-box;
  color: #a6b5cb;
  font-size: .79rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card[hidden] {
  display: none;
}

.empty {
  display: none;
  padding: 46px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty.show {
  display: block;
}

.empty strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px;
}

.empty button {
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 238, .4);
  background: rgba(34, 211, 238, .1);
  color: #d9fbff;
  cursor: pointer;
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 22px 24px;
}

.page-hero h1 {
  margin: 9px 0 8px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.page-hero .lede {
  font-size: .95rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 13px;
  color: #b6c4da;
  font-size: .82rem;
}

.stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats b {
  color: var(--text);
}

.stats i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b4a61;
}

.category-section {
  max-width: 1240px;
  margin: 4px auto 0;
  padding: 0 22px 30px;
}

.category-section h2 {
  margin: 0 0 11px;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.cat-tiles.compact {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.explain {
  max-width: 1240px;
  margin: 6px auto 0;
  padding: 18px 22px 30px;
  border-top: 1px solid var(--line);
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.feature h2 {
  margin: 0 0 6px;
  font-size: .92rem;
  letter-spacing: -.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.55;
}

.prose {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 22px 60px;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 16px;
}

.prose h2 {
  margin: 30px 0 9px;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.72;
  font-size: .94rem;
}

.prose ul {
  padding-left: 19px;
}

.prose li {
  margin-bottom: 7px;
}

.prose a {
  color: #67e8f9;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose details {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  padding: 13px 15px;
  margin-bottom: 9px;
}

.prose summary {
  cursor: pointer;
  font-weight: 650;
  font-size: .9rem;
}

.prose details p {
  margin: 9px 0 0;
  font-size: .88rem;
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 22px;
}

.not-found h1 {
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0 0 8px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.6;
}

.not-found a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, .4);
  background: rgba(34, 211, 238, .1);
  color: #d9fbff;
  text-decoration: none;
  font-size: .9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #060a11;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 22px 36px;
  display: grid;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.footer-brand svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  color: #93a3bd;
  font-size: .78rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  max-width: 860px;
  margin: 0;
  color: #8394ac;
  font-size: .78rem;
  line-height: 1.6;
}

.footer-copy {
  margin: 0;
  color: #67788f;
  font-size: .74rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, .84);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 18px;
  overflow: hidden;
  background: #0a1220;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 17px 11px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.modal-head p {
  margin: 3px 0 0;
  color: #8fa2bd;
  font-size: .76rem;
}

.icon-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  border-color: rgba(239, 68, 68, .5);
  color: #fecaca;
}

.player {
  aspect-ratio: 16 / 9;
  background: #000;
}

.player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 17px;
  color: #8fa2bd;
  font-size: .76rem;
}

.modal-foot a {
  color: #67e8f9;
  text-decoration: none;
}

.modal-foot a:hover {
  text-decoration: underline;
}

.no-scroll {
  overflow: hidden;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@media (max-width: 980px) {
  .dashboard-inner {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .explain-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 11px 16px 6px;
  }

  .header-tools .clock {
    display: none;
  }

  .site-nav {
    padding: 0 16px 7px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .dashboard-inner {
    padding: 24px 16px;
  }

  .browse {
    padding: 16px 16px 8px;
  }

  .browse-top {
    align-items: stretch;
  }

  .search {
    flex: 1 1 100%;
    max-width: none;
  }

  .select {
    width: 100%;
    justify-content: space-between;
  }

  .chips {
    flex-wrap: wrap;
    overflow: visible;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner {
    padding: 24px 16px 20px;
  }

  .category-section {
    padding: 0 16px 24px;
  }

  .explain {
    padding: 16px 16px 24px;
  }

  .modal {
    padding: 8px;
  }

  .modal-panel {
    border-radius: 13px;
  }

  .modal-foot {
    font-size: .71rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status i,
  .badge .dot {
    animation: none;
  }

  .card,
  .play,
  .cat-tile {
    transition: none;
  }
}
