:root {
  --bg: #04040a;
  --bg-raised: rgba(255, 255, 255, 0.035);
  --bg-hover: #0d0d18;
  --ink: #eef0ff;
  --muted: #8d90aa;
  --faint: #545770;
  --line: rgba(160, 170, 255, 0.1);
  --line-strong: rgba(160, 170, 255, 0.22);
  --accent: #ff7a3d;
  --violet: #8b5cf6;
  --cyan: #5eead4;
  --glow: linear-gradient(100deg, #ffb347, #ff6a3d 30%, #c04cf5 65%, #5b8cff);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 140, 255, 0.08), transparent),
    var(--bg);
}

.site-header {
  background: rgba(4, 4, 10, 0.6);
}

.brand-mark {
  background: var(--glow);
  box-shadow: 0 0 18px rgba(255, 106, 61, 0.45);
}

.channel-link {
  font-family: var(--mono);
  font-weight: 500;
}

/* Hero */

.hero {
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
}

.hero::before {
  background:
    linear-gradient(rgba(120, 140, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(120, 140, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 100%;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
  content: "";
}

.hero-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eyebrow,
.section-eyebrow,
.featured-label {
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.eyebrow .sep {
  color: var(--faint);
}

h1 {
  text-shadow: 0 0 40px rgba(4, 4, 10, 0.9);
}

.gradient-text {
  background: var(--glow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: shimmer 8s linear infinite;
}

.hero-copy {
  text-shadow: 0 0 20px var(--bg);
}

.meta-item dt {
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 500;
}

.meta-item dd {
  font-family: var(--mono);
  font-weight: 500;
}

#video-count {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgba(94, 234, 212, 0.35);
}

/* Featured: glass panel with gradient hairline */

.featured {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-hover), var(--bg-hover)) padding-box,
    var(--glow) border-box;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px -20px rgba(192, 76, 245, 0.35);
}

.live-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation-name: pulse-cyan;
}

.featured h2 {
  font-family: var(--sans);
  font-weight: 700;
}

.featured .upload-date,
.upload-date,
.list-duration,
.duration {
  font-family: var(--mono);
  font-weight: 500;
}

.upload-date::before {
  background: var(--glow);
}

.watch-button {
  background: var(--glow);
  box-shadow: 0 10px 30px -8px rgba(255, 106, 61, 0.6);
}

.watch-button:hover {
  background: var(--glow);
  filter: brightness(1.12);
}

.play-icon {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 30px rgba(94, 234, 212, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Archive */

.section-heading {
  border-bottom: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent) 0 100% / 100% 1px no-repeat;
}

.section-heading h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-tools,
.view-toggle button {
  font-family: var(--mono);
}

.view-toggle button[aria-pressed="true"] {
  color: #04040a;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.45);
}

.thumbnail-link {
  box-shadow: 0 0 0 1px var(--line);
}

.thumbnail-link:hover,
.thumbnail-link:focus-visible {
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.7),
    0 0 30px rgba(94, 234, 212, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

.thumbnail-link::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.thumbnail-link:hover::before {
  opacity: 1;
}

.title-link:hover,
.title-link:focus-visible {
  color: var(--cyan);
}

.description {
  border-left-color: var(--cyan);
  font-family: var(--sans);
}

.video-grid[data-view="list"] .video-card:hover {
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.06), transparent 60%);
}

footer {
  font-family: var(--mono);
}

.footer-mark {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes pulse-cyan {
  70% {
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: 200px;
  }

  #video-count {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text {
    animation: none;
  }
}
