/* TechandT Social Hub — brand: #c04000 orange, #808080 grey */

:root {
  --brand: #c04000;
  --brand-light: #e06010;
  --brand-glow: rgba(192, 64, 0, 0.45);
  --brand-muted: #808080;
  --font-display: 'TechandT', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
  --transition: 0.35s var(--ease-out);
}

[data-theme="dark"] {
  --bg: #070709;
  --bg-elevated: #0f0f14;
  --bg-card: rgba(18, 18, 24, 0.72);
  --bg-card-hover: rgba(28, 28, 38, 0.85);
  --text: #f2f2f5;
  --text-muted: #9a9aa8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --glass: rgba(12, 12, 18, 0.65);
  --mesh-1: rgba(192, 64, 0, 0.12);
  --mesh-2: rgba(128, 128, 128, 0.06);
  --grid-line: rgba(255, 255, 255, 0.03);
  --hero-title-muted: #808080;
  --scrollbar-track: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
  --bg: #ececec;
  --bg-elevated: #f8f8f8;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text: #121218;
  --text-muted: #5c5c6a;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.75);
  --mesh-1: rgba(192, 64, 0, 0.08);
  --mesh-2: rgba(128, 128, 128, 0.08);
  --grid-line: rgba(0, 0, 0, 0.04);
  --hero-title-muted: #6a6a72;
  --scrollbar-track: rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.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;
}

.offline-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}
.offline-page h1 {
  font-family: var(--font-display);
  color: var(--brand);
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__mesh {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, var(--mesh-1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 10%, var(--mesh-2), transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 100%, var(--mesh-1), transparent 45%);
  animation: meshDrift 25s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 18s ease-in-out infinite;
}
.ambient__orb--1 {
  width: 420px; height: 420px;
  background: var(--brand-glow);
  top: -10%; left: -5%;
}
.ambient__orb--2 {
  width: 300px; height: 300px;
  background: rgba(128, 128, 128, 0.15);
  top: 40%; right: -8%;
  animation-delay: -6s;
}
.ambient__orb--3 {
  width: 250px; height: 250px;
  background: rgba(224, 96, 16, 0.2);
  bottom: 10%; left: 30%;
  animation-delay: -12s;
}
.ambient__beam {
  position: absolute;
  width: 2px;
  height: 55vh;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  opacity: 0.35;
  filter: blur(1px);
}
.ambient__beam--left {
  top: 5%;
  left: 12%;
  transform: rotate(-18deg);
  animation: beamPulse 8s ease-in-out infinite;
}
.ambient__beam--right {
  top: 15%;
  right: 18%;
  transform: rotate(14deg);
  animation: beamPulse 8s ease-in-out infinite reverse;
}
@keyframes beamPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
.ambient__nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand__logo {
  height: 36px;
  width: auto;
  transition: transform var(--transition), filter var(--transition);
}
.brand:hover .brand__logo {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px var(--brand-glow));
}
.site-nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav__link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}
.site-nav__link:hover { color: var(--text); }
.site-nav__link:hover::after { width: 100%; }
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
@media (min-width: 768px) { .site-header__actions { margin-left: 0; } }

.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform 0.2s var(--ease-spring);
}
.theme-toggle:hover {
  border-color: var(--brand);
  transform: scale(1.05);
}
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.nav-toggle {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
}

/* Hero */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero__glow {
  position: absolute;
  top: -30%;
  left: 20%;
  width: min(700px, 90vw);
  height: 50%;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.hero__top {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero__top {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 2rem 2.5rem;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .hero__top {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 2rem 3rem;
  }
}

.hero__icon-col {
  display: flex;
  justify-content: center;
}
.hero__icon-frame {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  pointer-events: none;
}
.hero__icon-ring--outer {
  inset: -8%;
  border-style: dashed;
  opacity: 0.4;
  animation: ringSpin 36s linear infinite;
}
.hero__icon-ring--inner {
  inset: 4%;
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--brand) 12%, transparent);
  animation: ringSpin 24s linear infinite reverse;
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
.hero__icon {
  position: relative;
  z-index: 1;
  width: 88%;
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 16px 48px var(--brand-glow);
  animation: avatarFloat 7s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__copy {
  min-width: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .hero__copy {
    text-align: left;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin: 0 0 0.75rem;
}
.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

.hero__logo-link {
  display: inline-block;
  margin: 0 0 0.5rem;
  line-height: 0;
  transition: filter var(--transition), transform 0.2s var(--ease-spring);
}
.hero__logo-link:hover {
  filter: drop-shadow(0 0 20px var(--brand-glow));
  transform: scale(1.01);
}
.hero__logo {
  width: min(100%, 420px);
  height: auto;
}
[data-theme="light"] .hero__logo-link {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.08));
}

.hero__handle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.hero__lead {
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  color: var(--text-muted);
  max-width: none;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .hero__lead {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 640px) {
  .hero__lead {
    white-space: normal;
  }
}
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .hero__stats {
    justify-content: flex-start;
  }
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  color: var(--brand);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .hero__cta {
    justify-content: flex-start;
  }
}

/* Latest strip — full width below hero top row */
.hero__latest {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.hero__latest-head {
  margin-bottom: 0.75rem;
}
.hero__latest-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.hero__latest-track {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .hero__latest-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .hero__latest-track {
    grid-template-columns: repeat(4, 1fr);
  }
}
.hero__latest-loading {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease-spring), box-shadow var(--transition), background var(--transition);
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 8px 32px var(--brand-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--brand-glow);
  color: #fff;
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  min-height: 100%;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease-spring), border-color var(--transition), box-shadow var(--transition);
  animation: heroCardIn 0.45s var(--ease-out) backwards;
}
.hero-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--platform-color, var(--brand)) 45%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--platform-color, var(--brand)) 15%, transparent);
  color: inherit;
}
.hero-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
}
.hero-card__thumb--dot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--platform-color, var(--brand));
  font-size: 1.5rem;
}
.hero-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero-card__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.hero-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--platform-color, var(--brand));
}
.hero-card--audience {
  min-width: 9.5rem;
  padding: 0.85rem 1rem;
  text-align: left;
}
.hero-card--audience .hero-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  -webkit-line-clamp: unset;
}
.hero-card--audience .hero-card__meta {
  text-transform: capitalize;
}
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(6px); }
}
.hero__latest-track .hero-card:nth-child(1) { animation-delay: 0s; }
.hero__latest-track .hero-card:nth-child(2) { animation-delay: 0.06s; }
.hero__latest-track .hero-card:nth-child(3) { animation-delay: 0.12s; }
.hero__latest-track .hero-card:nth-child(4) { animation-delay: 0.18s; }

/* Radio — matches hero__latest width inside .hero */
.hero__radio {
  width: 100%;
  margin-bottom: 1.25rem;
  display: block;
}
.hero__radio[hidden] {
  display: block !important;
}
.hero__radio.is-stream-down .radio-player {
  opacity: 0.92;
}
.hero__radio:not([hidden]) {
  animation: feedViewerOpen 0.45s var(--ease-out);
}
.hero__radio .radio-player {
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.radio-player__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% 100%, var(--brand-glow), transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}
.radio-player__spectrum {
  display: block;
  width: 100%;
  height: 96px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--bg-elevated)), var(--bg-elevated));
  border-bottom: 1px solid var(--border);
}
.radio-player__spectrum canvas {
  display: block !important;
  width: 100% !important;
  height: 96px !important;
}
/* Keep audio in the layout tree (not display:none) for iOS / Web Audio */
#radioAudioHost {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
#radioAudio {
  display: block;
  width: 2px;
  height: 2px;
}
.radio-player__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
}
@media (max-width: 900px) {
  .radio-player__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .radio-player__center {
    order: 3;
  }
  .radio-player__controls {
    order: 2;
    justify-self: start;
  }
}
.radio-player__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  justify-self: start;
}
.radio-player__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
  min-width: min(100%, 22rem);
  justify-self: center;
  grid-column: 2;
}
@media (max-width: 900px) {
  .radio-player__center {
    grid-column: 1;
  }
}
.radio-player__show {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-player__track {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-player__track[hidden] {
  display: none;
}
.radio-player__listeners {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.radio-player__listeners[hidden] {
  display: none;
}
.radio-player__controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  justify-self: end;
  grid-column: 3;
}
@media (max-width: 900px) {
  .radio-player__controls {
    grid-column: 1;
  }
}
.radio-player__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.radio-player__live.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.radio-player__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.radio-player__live.is-active .radio-player__live-dot {
  background: #fff;
  opacity: 1;
  animation: radioPulse 1.2s ease-in-out infinite;
}
@keyframes radioPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
.radio-player__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}
.radio-player__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.radio-player__clock {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.radio-player__play {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: 0 8px 28px var(--brand-glow);
  transition: transform 0.25s var(--ease-spring), box-shadow var(--transition), background var(--transition);
}
.radio-player__play.is-playing {
  background: linear-gradient(145deg, #808080, #5a5a5a);
  box-shadow: 0 8px 24px rgba(128, 128, 128, 0.35);
}
.radio-player__play:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px var(--brand-glow);
}
.radio-player__play.is-playing:hover {
  box-shadow: 0 12px 32px rgba(128, 128, 128, 0.45);
}
.radio-player__play:active { transform: scale(0.94); }
.radio-player__play-icons {
  position: relative;
  width: 26px;
  height: 26px;
  display: block;
}
.radio-player__icon {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  transition: opacity 0.22s var(--ease-out), transform 0.28s var(--ease-spring);
}
.radio-player__icon--play {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.radio-player__icon--pause {
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
  pointer-events: none;
}
.radio-player__play.is-playing .radio-player__icon--play {
  opacity: 0;
  transform: scale(0.4) rotate(90deg);
  pointer-events: none;
}
.radio-player__play.is-playing .radio-player__icon--pause {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}
.radio-player__volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  min-width: 120px;
}
.radio-player__volume svg { width: 20px; height: 20px; flex-shrink: 0; }
.radio-player__volume input[type="range"] {
  flex: 1;
  accent-color: var(--brand);
  height: 4px;
}
@media (min-width: 768px) {
  .hero__radio .radio-player__inner { padding: 1.45rem 1.5rem 1.6rem; }
}
.radio-player__main {
  position: relative;
}
.radio-player__schedule-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.radio-player__schedule-btn:hover,
.radio-player.is-schedule-open .radio-player__schedule-btn {
  border-color: var(--brand);
  color: var(--brand);
}
.radio-schedule {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.radio-player.is-schedule-open .radio-schedule {
  grid-template-rows: 1fr;
}
.radio-schedule__sheet {
  overflow: hidden;
  min-height: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-strong);
  padding: 0 1.15rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), padding 0.5s var(--ease-out);
}
.radio-player.is-schedule-open .radio-schedule__sheet {
  padding: 1rem 1.15rem 1.35rem;
  opacity: 1;
}
.radio-schedule__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
  position: relative;
}
.radio-schedule__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  width: 100%;
}
.radio-schedule__sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
}
.radio-schedule__sub code {
  font-size: 0.9em;
  color: var(--brand);
}
.radio-schedule__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.radio-schedule__close svg { width: 18px; height: 18px; }
.radio-schedule__close:hover { color: var(--brand); border-color: var(--brand); }
.radio-schedule__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .radio-schedule__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .radio-schedule__grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
}
.radio-schedule__slot {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 100%;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.radio-schedule__slot--now {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, var(--bg-card));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent),
    0 8px 28px color-mix(in srgb, var(--brand) 22%, transparent);
}
.radio-schedule__now-badge {
  display: none;
  align-self: flex-start;
  margin-bottom: 0.15rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  line-height: 1.2;
}
.radio-schedule__slot--now .radio-schedule__now-badge {
  display: inline-flex;
}
.radio-schedule__slot--now .radio-schedule__time {
  color: var(--brand);
}
.radio-schedule__slot--now .radio-schedule__show {
  color: var(--text);
}
.radio-schedule__uk-now {
  font-weight: 600;
  color: var(--text);
}
.radio-schedule__time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.radio-schedule__show {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}
.radio-schedule__desc {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Filters */
.filters, .feed-grid, .site-bio, .networks {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.filters {
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: normal;
  margin: 0 0 0.35rem;
}
.section-sub {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.chip-bar-wrap {
  position: relative;
  margin-bottom: 0.25rem;
}
.chip-bar-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 1.25rem;
  width: 48px;
  background: linear-gradient(90deg, transparent, var(--bg));
  pointer-events: none;
}
.chip-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.25rem;
  margin-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--scrollbar-track);
  -webkit-overflow-scrolling: touch;
}
.chip-bar::-webkit-scrollbar {
  height: 8px;
}
.chip-bar::-webkit-scrollbar-track {
  margin-top: 0.65rem;
  background: var(--scrollbar-track);
  border-radius: 999px;
}
.chip-bar::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 70%, #808080), var(--brand));
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}
.chip-bar::-webkit-scrollbar-thumb:hover {
  background: var(--brand-light);
}
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}
.chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip-color, var(--brand));
}
.chip:hover {
  color: var(--text);
  border-color: var(--chip-color, var(--brand));
}
.chip--active {
  color: #fff;
  background: var(--chip-color, var(--brand));
  border-color: transparent;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--chip-color, var(--brand)) 50%, transparent);
}
.chip--active .chip__dot { background: rgba(255,255,255,0.9); }

/* Feed grid */
.feed-grid { padding-bottom: 5rem; }
.feed-grid__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .feed-grid__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feed-grid__inner { grid-template-columns: repeat(3, 1fr); }
}
.feed-panel--full {
  grid-column: 1 / -1;
}
.feed-panel--youtube {
  border-color: color-mix(in srgb, #ff0000 25%, var(--border));
}
.feed-panel--youtube::before {
  background: linear-gradient(90deg, #ff0000, #cc0000);
}
.feed-panel--youtube:hover {
  box-shadow: var(--shadow), 0 0 48px color-mix(in srgb, #ff0000 22%, transparent);
}
.feed-panel--youtube .feed-panel__body {
  max-height: none;
  overflow: visible;
  padding-bottom: 1rem;
}
.feed-panel--youtube .feed-panel__foot {
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.feed-panel--youtube .yt-preview {
  gap: 1rem;
}

.feed-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: panelIn 0.6s var(--ease-out) backwards;
}
.feed-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--platform-gradient, var(--platform-color));
  opacity: 0.9;
}
.feed-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--platform-color) 12%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.feed-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px color-mix(in srgb, var(--platform-color) 25%, transparent);
  border-color: color-mix(in srgb, var(--platform-color) 35%, var(--border));
}
.feed-panel:hover::after { opacity: 1; }
.feed-panel.is-feed-open .feed-panel__expand {
  border-style: solid;
  background: color-mix(in srgb, var(--platform-color) 18%, transparent);
}
.feed-panel.is-hidden {
  display: none;
}
.feed-panel.is-loading .feed-panel__loader { opacity: 1; }

.feed-grid__inner .feed-panel:nth-child(1) { animation-delay: 0.02s; }
.feed-grid__inner .feed-panel:nth-child(2) { animation-delay: 0.04s; }
.feed-grid__inner .feed-panel:nth-child(3) { animation-delay: 0.06s; }
.feed-grid__inner .feed-panel:nth-child(4) { animation-delay: 0.08s; }
.feed-grid__inner .feed-panel:nth-child(5) { animation-delay: 0.1s; }
.feed-grid__inner .feed-panel:nth-child(6) { animation-delay: 0.12s; }
.feed-grid__inner .feed-panel:nth-child(7) { animation-delay: 0.14s; }
.feed-grid__inner .feed-panel:nth-child(8) { animation-delay: 0.16s; }
.feed-grid__inner .feed-panel:nth-child(9) { animation-delay: 0.18s; }
.feed-grid__inner .feed-panel:nth-child(10) { animation-delay: 0.2s; }
.feed-grid__inner .feed-panel:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.feed-panel__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 0.75rem;
  position: relative;
  z-index: 1;
}
.feed-panel__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(
    in srgb,
    var(--platform-ui-color, var(--platform-color-alt, var(--platform-color))) 18%,
    transparent
  );
  color: var(--platform-ui-color, var(--platform-color-alt, var(--platform-color)));
}
.feed-panel__icon svg { width: 22px; height: 22px; }
.feed-panel__meta { flex: 1; min-width: 0; }
.feed-panel__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.feed-panel__handle {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.feed-panel__handle:hover { color: var(--platform-color); }
.feed-panel__audience {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
}
.feed-panel__audience-value {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--platform-ui-color, var(--platform-color));
  font-variant-numeric: tabular-nums;
}
.feed-panel.has-audience-stat .feed-panel__audience-value {
  font-family: var(--font-display);
}
.feed-panel__audience-label {
  text-transform: lowercase;
}
.feed-panel__external {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feed-panel__external svg { width: 16px; height: 16px; }
.feed-panel__external:hover {
  color: var(--platform-color);
  border-color: var(--platform-color);
  background: color-mix(in srgb, var(--platform-color) 10%, transparent);
}

.feed-panel__body {
  flex: 1 1 auto;
  padding: 0 1.1rem 0.75rem;
  min-height: 120px;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}
.feed-panel__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feed-panel__loader span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--platform-color);
  animation: loaderBounce 1.2s ease infinite;
}
.feed-panel__loader span:nth-child(2) { animation-delay: 0.15s; }
.feed-panel__loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loaderBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.feed-items { display: flex; flex-direction: column; gap: 0.65rem; }
.feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--platform-color) 6%, var(--bg-elevated));
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease-spring), border-color var(--transition);
}
.feed-item:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--platform-color) 40%, transparent);
  color: inherit;
}
.feed-item__thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
}
.feed-item__thumb--placeholder {
  display: grid;
  place-items: center;
  color: var(--platform-color);
  font-size: 1.25rem;
}
.feed-item__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.feed-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.feed-empty code {
  font-size: 0.85em;
  color: var(--brand);
}
.feed-panel__foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0 1.1rem 1rem;
  position: relative;
  z-index: 2;
}
.feed-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 420px) {
  .feed-panel__actions {
    grid-template-columns: 1fr;
  }
}
.feed-panel__expand,
.feed-panel__platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  transition: all var(--transition);
}
.feed-panel__expand {
  color: var(--platform-ui-color, var(--platform-color-alt, var(--platform-color)));
  border: 1px dashed color-mix(
    in srgb,
    var(--platform-ui-color, var(--platform-color-alt, var(--platform-color))) 45%,
    transparent
  );
  background: color-mix(
    in srgb,
    var(--platform-ui-color, var(--platform-color-alt, var(--platform-color))) 8%,
    transparent
  );
}
.feed-panel__platform {
  color: var(--platform-button-text, #fff) !important;
  background: var(--platform-button-bg, var(--platform-color));
  border: 1px solid color-mix(in srgb, var(--platform-ui-color, var(--platform-color)) 35%, var(--border));
  text-decoration: none;
}
.feed-panel__platform:hover {
  filter: brightness(1.08);
  color: var(--platform-button-text, #fff) !important;
  transform: translateY(-1px);
}
.feed-panel__expand svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.feed-panel__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.feed-panel__expand:hover {
  background: color-mix(
    in srgb,
    var(--platform-ui-color, var(--platform-color-alt, var(--platform-color))) 18%,
    transparent
  );
}

/* About / bio (between feeds and network list) */
.site-bio {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}
.site-bio__inner {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--brand) 14%, var(--bg-card)),
    var(--bg-card) 45%,
    var(--bg-elevated)
  );
  box-shadow: var(--shadow);
}
.site-bio__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-bio__content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.site-bio__content p:last-child {
  margin-bottom: 0;
}
.site-bio__content strong {
  color: var(--text);
}
.site-bio__tagline {
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--brand) !important;
  padding-top: 0.35rem;
}

/* Full feed viewer (inside overlay) */
.feed-viewer {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 1rem 1rem;
  background: var(--bg-elevated);
}
.feed-overlay.is-open .feed-viewer {
  animation: feedViewerOpen 0.35s var(--ease-out);
}
@keyframes feedViewerOpen {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full-screen feed overlay */
.feed-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
.feed-overlay[hidden] {
  display: none !important;
}
.feed-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
.feed-overlay__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
  max-height: 100%;
  background: var(--bg);
  border: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}
@media (min-width: 720px) {
  .feed-overlay {
    padding: 1.25rem;
    justify-content: center;
  }
  .feed-overlay__dialog {
    flex: none;
    max-height: min(92vh, 900px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
  }
}
.feed-overlay__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.feed-overlay__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.feed-overlay__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--platform-color) 18%, transparent);
  color: var(--platform-color);
  flex-shrink: 0;
}
.feed-overlay__icon svg {
  width: 20px;
  height: 20px;
}
.feed-overlay__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}
.feed-overlay__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.feed-overlay__close svg {
  width: 22px;
  height: 22px;
}
.feed-overlay__close:hover,
.feed-overlay__close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.feed-overlay__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.feed-overlay-open {
  overflow: hidden;
}
.feed-viewer__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.feed-viewer__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.feed-viewer__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.feed-viewer__profile-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--platform-color);
}
.feed-viewer__scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--scrollbar-track);
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
}
.feed-overlay .feed-viewer__header {
  flex-shrink: 0;
  padding-top: 1rem;
}
.feed-viewer__scroll::-webkit-scrollbar {
  width: 8px;
}
.feed-viewer__scroll::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
}
.feed-viewer__player {
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.feed-viewer__player:empty {
  display: none;
}
.feed-viewer__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.feed-viewer__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feed-viewer__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform 0.2s var(--ease-spring);
  cursor: pointer;
}
.feed-viewer__item:hover,
.feed-viewer__item.is-active {
  border-color: color-mix(in srgb, var(--platform-color) 50%, transparent);
  transform: translateX(4px);
  color: inherit;
}
.feed-viewer__item.is-active {
  background: color-mix(in srgb, var(--platform-color) 10%, var(--bg-card));
}
.feed-viewer__item-thumb {
  width: 100px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
}
.feed-viewer__item-thumb--placeholder {
  display: grid;
  place-items: center;
  color: var(--platform-color);
  font-size: 1.5rem;
}
.feed-viewer__item-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.feed-viewer__item-text {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-viewer__item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.feed-viewer__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.feed-viewer__embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 480px;
}
.feed-viewer__embed iframe {
  width: 100%;
  min-height: 520px;
  height: 720px;
  border: none;
  display: block;
}
.feed-viewer__embed-fallback {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.feed-viewer__embed-fallback a {
  color: var(--platform-color);
  font-weight: 600;
}
.feed-embed-teaser {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border-radius: 14px;
  border: 1px dashed color-mix(
    in srgb,
    var(--platform-ui-color, var(--platform-color-alt, var(--platform-color))) 35%,
    var(--border)
  );
  background: color-mix(
    in srgb,
    var(--platform-ui-color, var(--platform-color-alt, var(--platform-color))) 6%,
    var(--bg-card)
  );
  font-size: 0.9rem;
  line-height: 1.5;
}
.feed-embed-teaser__hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  opacity: 0.85;
}
.feed-viewer__empty--profile {
  padding: 2.5rem 1.5rem;
}
.feed-viewer__profile-btn {
  display: inline-flex;
  margin-top: 1rem;
}

/* YouTube featured panel */
.yt-preview {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.yt-preview__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #000 center / cover no-repeat;
  text-align: left;
  width: 100%;
  transition: transform 0.25s var(--ease-spring), box-shadow var(--transition);
}
@media (min-width: 768px) {
  .yt-preview__hero { min-height: 280px; }
}
.yt-preview__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85));
}
.yt-preview__hero:hover {
  transform: scale(1.008);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.2);
}
.yt-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transition: transform 0.25s var(--ease-spring);
}
.yt-preview__play svg { width: 28px; height: 28px; margin-left: 3px; }
.yt-preview__hero:hover .yt-preview__play { transform: translate(-50%, -50%) scale(1.08); }
.yt-preview__hero-meta {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
.yt-preview__badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #ff0000;
  color: #fff;
}
.yt-preview__hero-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-preview__strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .yt-preview__strip { grid-template-columns: repeat(4, 1fr); }
}
.yt-preview__card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: var(--bg-elevated);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), transform 0.2s var(--ease-spring);
}
.yt-preview__card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.yt-preview__card-title {
  padding: 0.5rem 0.6rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-preview__card:hover,
.yt-preview__card.is-active {
  border-color: #ff0000;
  transform: translateY(-2px);
}

.feed-viewer--youtube {
  padding-bottom: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.feed-overlay .yt-viewer {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.yt-viewer {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .yt-viewer {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}
.yt-viewer__player-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.yt-viewer__player {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.yt-viewer__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.yt-viewer__now-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.yt-viewer__playlist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(52vh, 480px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.15rem;
}
.yt-viewer__video {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.yt-viewer__video:hover,
.yt-viewer__video.is-active {
  border-color: #ff0000;
  background: color-mix(in srgb, #ff0000 8%, var(--bg-card));
}
.yt-viewer__video-thumb {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}
.yt-viewer__video-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.yt-viewer__video-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-viewer__video-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Networks grid */
.networks {
  padding: 4rem 1.25rem 6rem;
  border-top: 1px solid var(--border);
}
.networks__inner {
  width: 100%;
}
.network-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  width: 100%;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .network-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .network-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .network-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.network-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.network-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nc) 15%, transparent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.network-card:hover {
  transform: translateY(-2px);
  border-color: var(--nc);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--nc) 20%, transparent);
  color: var(--text);
}
.network-card:hover::before { opacity: 1; }
.network-card__icon {
  width: 32px; height: 32px;
  color: var(--nc);
  position: relative;
  z-index: 1;
}
.network-card__icon svg { width: 100%; height: 100%; }
.network-card__name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.network-card__arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.network-card:hover .network-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* X logo: light UI colour is for dark cards; network grid needs black on light theme */
[data-theme="light"] .platform--x {
  --nc: #000000;
  --chip-color: #000000;
}
[data-theme="light"] .platform--x .network-card__icon,
[data-theme="light"] .platform--x .feed-panel__icon {
  color: #000000;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.site-footer img {
  margin: 0 auto 1rem;
  opacity: 0.85;
}
.site-footer a { font-weight: 600; }

/* PWA install prompt */
.pwa-install {
  position: fixed;
  inset-inline: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  max-width: 28rem;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.pwa-install.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pwa-install__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.pwa-install__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.pwa-install__text {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.pwa-install__lead {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text);
}
.pwa-install__steps {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pwa-install__share-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin: 0 0.1em;
}
.pwa-install__copy {
  flex: 1;
  min-width: min(100%, 14rem);
}
.pwa-install__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
