:root {
  --bg: #eef2f7;
  --ink: #050912;
  --muted: #6a7280;
  --panel: #fbfcff;
  --line: #cfd8e6;
  --dark: #03050b;
  --cyan: #19d9ff;
  --blue: #2258ff;
  --violet: #a94dff;
  --magenta: #f05cff;
  --red: #ff2f3f;
  --green: #32f4a5;
  --shadow: 0 18px 48px rgba(7, 17, 31, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 6px clamp(14px, 3vw, 30px);
  color: white;
  background: rgba(3, 5, 11, 0.94);
  border-bottom: 1px solid rgba(25, 217, 255, 0.28);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand img,
.lead-logo img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 1px solid rgba(25, 217, 255, 0.44);
  border-radius: var(--radius);
  box-shadow: 0 0 22px rgba(25, 217, 255, 0.28);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(25, 217, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover,
.story-card h3 a:hover,
.link-card:hover strong {
  color: var(--cyan);
}

.nav-links a:hover {
  background: rgba(25, 217, 255, 0.1);
}

.lead {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(150px, 0.22fr);
  gap: clamp(10px, 2.4vw, 22px);
  align-items: center;
  min-height: 230px;
  max-height: 320px;
  padding: clamp(10px, 1.8vw, 18px) clamp(14px, 3vw, 30px);
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(25, 217, 255, 0.24), transparent 28%),
    radial-gradient(circle at 14% 86%, rgba(169, 77, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #02040a, #07101d 58%, #010208);
  border-bottom: 2px solid rgba(25, 217, 255, 0.22);
}

.lead::before {
  display: none;
}

.lead > * {
  position: relative;
  z-index: 1;
}

.lead-copy {
  max-width: 700px;
}

.lead-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #b9f6ff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead h1 {
  max-width: 420px;
  margin: 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(2.15rem, 4.7vw, 4.35rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(25, 217, 255, 0.14);
}

.lead p {
  max-width: 420px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.78rem, 0.9vw, 0.86rem);
  font-weight: 700;
  line-height: 1.42;
}

.hero-emblem {
  position: relative;
  justify-self: center;
  width: clamp(138px, 18vw, 230px);
  aspect-ratio: 1;
  opacity: 0.82;
  pointer-events: none;
}

.hero-emblem::before {
  position: absolute;
  inset: 13%;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(25, 217, 255, 0.34), rgba(34, 88, 255, 0.1) 48%, transparent 70%);
  filter: blur(18px);
}

.hero-emblem img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px rgba(25, 217, 255, 0.34));
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 52%, rgba(0, 0, 0, 0.82) 66%, transparent 82%);
  mask-image: radial-gradient(circle, #000 52%, rgba(0, 0, 0, 0.82) 66%, transparent 82%);
}

.label,
.feed-status,
.story-source,
.link-card span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news,
.studio2800-live,
.video-section,
.studio-links,
.legal-section,
.site-footer {
  padding-right: clamp(16px, 4vw, 42px);
  padding-left: clamp(16px, 4vw, 42px);
}

.news,
.studio2800-live,
.video-section,
.studio-links,
.legal-section {
  padding-top: clamp(14px, 3vw, 28px);
  scroll-margin-top: 58px;
}

.studio2800-live {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 520px);
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  color: white;
  background:
    radial-gradient(circle at 92% 12%, rgba(25, 217, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #03050b, #07101d 58%, #02040a);
  border-top: 1px solid rgba(25, 217, 255, 0.18);
  border-bottom: 1px solid rgba(25, 217, 255, 0.18);
}

.studio2800-live[hidden] {
  display: none;
}

.studio2800-live-copy h2 {
  margin: 2px 0 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.studio2800-live-copy p {
  max-width: 440px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.studio2800-live-player {
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  background: #02040a;
  border: 1px solid rgba(25, 217, 255, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 0 26px rgba(25, 217, 255, 0.14);
}

.studio2800-live-player iframe,
.studio2800-live-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.section-bar h2 {
  margin: 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-bar p {
  max-width: 680px;
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.2;
}

.feed-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(100%, 520px);
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.15;
  white-space: normal;
  text-align: right;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--green);
}

#feedUpdatedAt {
  color: var(--ink);
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.filter {
  min-height: 24px;
  padding: 0 8px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.hit-counter {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
  padding: 4px 6px;
  color: var(--cyan);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    #05070d;
  border: 1px solid rgba(25, 217, 255, 0.34);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(25, 217, 255, 0.12);
}

.hit-counter span,
.hit-counter small {
  color: var(--muted);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.66rem;
  font-weight: 840;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.hit-counter output {
  padding: 2px 5px;
  color: var(--green);
  background: #000;
  border: 1px solid rgba(25, 217, 255, 0.22);
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(58, 255, 171, 0.72);
}

.story-stack {
  display: grid;
  gap: 2px;
}

.story-card,
.link-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.story-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 4px 6px;
  border-left: 1px solid rgba(25, 217, 255, 0.45);
}

.story-rank {
  display: block;
  width: 22px;
  color: var(--muted);
  background: transparent;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1;
  text-align: right;
}

.story-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 0.95;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 520;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.story-source {
  display: inline-flex;
  margin-top: 2px;
  color: var(--muted);
}

.video-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(25, 217, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #050914, #091226 58%, #03050b);
  border: 1px solid rgba(25, 217, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.12);
}

.video-mark img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(25, 217, 255, 0.44);
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(25, 217, 255, 0.22);
}

.video-panel h3 {
  margin: 3px 0 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
}

.video-panel p {
  max-width: 620px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #00101d;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tab-button.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(25, 217, 255, 0.26);
}

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

.legal-grid article {
  min-height: 96px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.legal-grid a {
  color: var(--blue);
  font-weight: 900;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.studio-links {
  margin-top: clamp(12px, 2.5vw, 22px);
  padding-top: clamp(16px, 3vw, 30px);
  padding-bottom: clamp(18px, 3vw, 34px);
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(25, 217, 255, 0.2), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(169, 77, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #02040a, #07101d 58%, #010208);
  border-top: 1px solid rgba(25, 217, 255, 0.22);
  border-bottom: 1px solid rgba(25, 217, 255, 0.18);
}

.studio-links .section-bar h2 {
  color: white;
  text-shadow: 0 0 26px rgba(25, 217, 255, 0.16);
}

.studio-links .section-bar p {
  color: rgba(255, 255, 255, 0.68);
}

.link-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 9px 10px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(25, 217, 255, 0.22);
  border-left: 1px solid rgba(25, 217, 255, 0.5);
  box-shadow: none;
}

.link-card::after {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(25, 217, 255, 0.17), transparent 66%);
}

.link-card:hover {
  background: rgba(25, 217, 255, 0.08);
  border-color: rgba(25, 217, 255, 0.46);
}

.link-card strong,
.link-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.link-card strong {
  margin-top: 10px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.link-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.link-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding-bottom: 3px;
  color: #b9f6ff;
  border-bottom: 1px solid rgba(25, 217, 255, 0.34);
}

.primary-link {
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(240, 92, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(34, 88, 255, 0.34), rgba(25, 217, 255, 0.08) 50%, rgba(169, 77, 255, 0.12));
  border-color: rgba(25, 217, 255, 0.5);
}

.primary-link small {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  padding-bottom: 28px;
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 950;
}

.site-footer p {
  margin: 0;
}

.ad-panel {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(93, 239, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 213, 255, 0.08), rgba(123, 92, 255, 0.06)),
    rgba(4, 9, 22, 0.72);
  margin: 10px 0 12px;
  overflow: hidden;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ad-panel[hidden] {
  display: none;
}

.ad-panel::before {
  content: "Google Ad Placement";
}

.ad-panel.ads-live::before {
  content: "";
}

.compact-ad {
  min-height: 72px;
}

.footer-ad {
  width: min(420px, 100%);
  min-height: 60px;
  margin: 0;
}

@media (max-width: 920px) {
  .video-panel,
  .studio2800-live,
  .legal-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .section-bar {
    align-items: start;
    flex-direction: column;
  }

  .feed-status {
    justify-content: flex-start;
    text-align: left;
  }

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

  .video-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .lead h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .hero-emblem {
    position: absolute;
    right: -28px;
    width: 150px;
    opacity: 0.28;
  }

  .story-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

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

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}
