@font-face {
  font-family: "Smiley Sans";
  src: url("/assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-display: swap;
  font-style: oblique;
  font-weight: 400 900;
}

:root {
  color-scheme: dark;
  --void: #050306;
  --noir: #0b0509;
  --wine: #240915;
  --panel: #120910;
  --ink: #fff7fb;
  --soft: #d8bacb;
  --muted: #967184;
  --pink: #ff4fa3;
  --pink-soft: #ff9ccd;
  --cyan: #8eefff;
  --amber: #f2c16b;
  --line: rgba(255, 156, 205, 0.24);
  --cold-line: rgba(142, 239, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.58);
  --content: 1180px;
  --font-body:
    "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:
    "Smiley Sans", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(5, 3, 6, 0.4), var(--void) 720px),
    var(--void);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 79, 163, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 10px max(22px, calc((100% - var(--content)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 3, 6, 0.82);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-mark {
  width: 76px;
  height: 48px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(255, 79, 163, 0.5))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.brand-wordmark {
  transform: translateY(1px);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.3);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-size: 0.92rem;
}

.top-nav a {
  padding-block: 8px;
  border-bottom: 1px solid transparent;
}

.top-nav a:hover {
  color: var(--ink);
  border-color: var(--pink-soft);
}

main {
  position: relative;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 92px max(22px, calc((100% - var(--content)) / 2)) 54px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 3, 6, 0.96) 0%, rgba(5, 3, 6, 0.74) 42%, rgba(5, 3, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 3, 6, 0) 52%, var(--void) 100%),
    url("/assets/brand/stage-bg.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 156, 205, 0.8), transparent);
  box-shadow: 0 0 28px rgba(255, 79, 163, 0.72);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow,
.shelf-mood,
.series-label,
.hero-index span,
.channel-links span {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 5.8em;
  margin: 8px 0 0;
  font-size: 6.3rem;
  line-height: 0.94;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(255, 79, 163, 0.48);
}

.hero-line {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 1.22rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions a,
.channel-links a,
.player-links a,
.player-fallback a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: rgba(18, 9, 16, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.hero-actions a:hover,
.channel-links a:hover,
.player-links a:hover,
.player-fallback a:hover {
  border-color: rgba(255, 156, 205, 0.84);
  background: rgba(255, 79, 163, 0.16);
  transform: translateY(-1px);
}

.hero-index {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}

.hero-index span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 3, 6, 0.56);
  color: var(--soft);
}

.control-strip,
.series-section,
.catalog-section,
.channels-section {
  padding-inline: max(22px, calc((100% - var(--content)) / 2));
}

.control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 18px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 5, 9, 0.9);
}

.control-strip p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.platform-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.platform-button {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.platform-button.is-active {
  background: var(--pink);
  color: #19040e;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 2.8rem;
  line-height: 1;
}

.series-section {
  padding-top: 72px;
  padding-bottom: 28px;
}

.series-shelves {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.series-shelf {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.shelf-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: 24px;
  margin-bottom: 18px;
}

.shelf-header h3 {
  margin: 8px 0 0;
  font-size: 2.35rem;
  line-height: 1.05;
}

.shelf-header > p {
  max-width: 620px;
  margin: 0;
  color: var(--soft);
  font-size: 1.03rem;
  line-height: 1.72;
}

.video-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 310px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 18px;
  scroll-snap-type: inline proximity;
}

.video-row::-webkit-scrollbar {
  height: 10px;
}

.video-row::-webkit-scrollbar-thumb {
  background: rgba(255, 156, 205, 0.32);
}

.video-card {
  scroll-snap-align: start;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(18, 9, 16, 0.74);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.video-card.is-open {
  grid-column: span 2;
  border-color: rgba(255, 156, 205, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 79, 163, 0.12), rgba(142, 239, 255, 0.05)),
    rgba(18, 9, 16, 0.9);
}

.video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #10070d;
  cursor: pointer;
}

.video-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 220ms ease;
}

.video-cover:hover img {
  transform: scale(1.035);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 3, 6, 0.78)),
    linear-gradient(90deg, rgba(255, 79, 163, 0.12), transparent);
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 3, 6, 0.78);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.video-body {
  padding: 16px;
}

.video-body h3 {
  margin: 8px 0 0;
  font-size: 1.42rem;
  line-height: 1.18;
}

.video-body p:last-child {
  min-height: 3.2em;
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.inline-player {
  padding: 0 16px 16px;
}

.inline-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid var(--cold-line);
  background: #000;
}

.player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.player-links a,
.player-fallback a {
  min-height: 38px;
  font-size: 0.9rem;
}

.player-fallback {
  border: 1px solid var(--cold-line);
  padding: 18px;
  background: rgba(5, 3, 6, 0.58);
}

.player-fallback p {
  margin: 0 0 14px;
  color: var(--soft);
  line-height: 1.65;
}

.player-fallback a + a {
  margin-left: 8px;
}

.catalog-section {
  padding-top: 50px;
  padding-bottom: 76px;
}

.compact-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.compact-item {
  display: grid;
  grid-template-columns: 150px minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.compact-item:hover strong {
  color: var(--pink-soft);
}

.compact-item span {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 800;
}

.compact-item strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  transition: color 180ms ease;
}

.compact-item em {
  color: var(--soft);
  font-style: normal;
  line-height: 1.55;
}

.channels-section {
  padding-top: 58px;
  padding-bottom: 74px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 79, 163, 0.09), transparent 32%),
    rgba(11, 5, 9, 0.92);
}

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

.channel-links a {
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

.channel-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.channel-links a:hover::after {
  opacity: 1;
}

.channel-logo {
  width: 52px;
  height: 38px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 18px rgba(255, 79, 163, 0.18));
}

.channel-links strong {
  font-size: 1.35rem;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 580px;
    padding-top: 74px;
    background:
      linear-gradient(180deg, rgba(5, 3, 6, 0.72), var(--void) 92%),
      url("/assets/brand/stage-bg.jpg") 62% center / cover no-repeat;
  }

  h1 {
    font-size: 4.2rem;
  }

  .hero-line {
    font-size: 1.08rem;
  }

  .control-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-toggle {
    width: 100%;
  }

  .platform-button {
    flex: 1;
  }

  .shelf-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-card.is-open {
    grid-column: span 1;
  }

  .compact-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@media (max-width: 560px) {
  .brand-mark {
    width: 64px;
    height: 40px;
  }

  .top-nav {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 520px;
    padding-bottom: 38px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .section-heading h2,
  .shelf-header h3 {
    font-size: 2.05rem;
  }

  .video-row {
    grid-auto-columns: minmax(252px, 86%);
  }

  .player-fallback a {
    width: 100%;
  }

  .player-fallback a + a {
    margin: 8px 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
