/* ==========================================================================
   半糖直播官网 — Swiss International Style Design System
   Typography / Grid / Red-Black-White / Sharp Edges / Generous Whitespace
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
  --ink: #0d0d0d;
  --ink-soft: #2a2a2a;
  --paper: #ffffff;
  --paper-2: #f4f4f1;
  --paper-3: #e9e9e5;
  --red: #e30613;
  --red-dark: #b90510;
  --gray: #767676;
  --line: #0d0d0d;
  --line-soft: #d6d6d2;

  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", sans-serif;

  --header-h: 76px;
  --maxw: 1440px;
  --pad: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--narrow { max-width: 1040px; }

.section {
  padding-block: clamp(72px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.section--flush { border-top: 0; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--red { background: var(--red); color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stack { display: flex; flex-direction: column; gap: 20px; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light { color: #fff; }

.display {
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.055em;
  text-transform: none;
}

.display--md { font-size: clamp(2.6rem, 6.5vw, 6rem); }
.display--sm { font-size: clamp(2rem, 4.5vw, 4rem); }

.h2 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.lead--light { color: rgba(255,255,255,.78); }

.muted { color: var(--gray); }
.text-red { color: var(--red); }
.upper { text-transform: uppercase; letter-spacing: .08em; }

.underline-red {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.underline-red::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.1em;
  height: .13em;
  background: var(--red);
  z-index: -1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.section-head__index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.section-head p { max-width: 46ch; margin-top: 16px; }

/* Big outline wordmark */
.outline-word {
  font-size: clamp(4rem, 18vw, 18rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.28);
  white-space: nowrap;
  user-select: none;
}
.outline-word--dark { -webkit-text-stroke-color: rgba(13,13,13,.16); }

/* --------------------------------------------------------------------------
   4. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.logo__text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.logo__dot { color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  margin-left: auto;
  height: 100%;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  padding-block: 8px;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transition: right .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { right: 0; }
.nav__link.is-active { color: var(--red); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__mobile-actions { display: none; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle.is-active span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle.is-active span:last-child { top: 20px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 15px; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); border-color: var(--red); }

.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }

.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--block { width: 100%; }
.btn__arrow { font-size: 18px; line-height: 1; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tlink:hover { color: var(--red); border-color: var(--red); }

/* --------------------------------------------------------------------------
   6. TICKER
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid var(--ink);
  padding-block: 12px;
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ticker__group span:nth-child(even) { color: var(--red); }
.ticker__star { font-size: 18px; color: var(--red); line-height: 1; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 120px) clamp(64px, 9vw, 140px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.hero__title { margin-top: 26px; }
.hero__title .line { display: block; }
.hero__title .line--indent { padding-left: clamp(0px, 6vw, 90px); }

.hero__desc { max-width: 54ch; margin-top: 30px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.hero__meta span { font-size: 12px; color: var(--gray); letter-spacing: .06em; }

/* Hero poster */
.poster {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--red);
  border: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.5vw, 34px);
  color: #fff;
}

.poster::before {
  content: "";
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  right: -55%;
  top: 18%;
}
.poster::after {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  right: -30%;
  top: 29%;
}

.poster__top, .poster__bottom { position: relative; z-index: 2; }
.poster__label {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.poster__num {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
}
.poster__caption {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 10px;
}
.poster__play {
  position: absolute;
  right: clamp(20px, 2.5vw, 34px);
  bottom: clamp(20px, 2.5vw, 34px);
  z-index: 3;
  width: 62px;
  height: 62px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.poster__play:hover { background: #fff; color: var(--red); transform: scale(1.08); }

.hero--sub {
  padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.hero--sub .hero__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

.page-index {
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  user-select: none;
}

/* --------------------------------------------------------------------------
   8. STATS
   -------------------------------------------------------------------------- */
.stat {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}
.stat__num {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}
.stat__num span { color: var(--red); }
.stat__label { font-size: 14px; font-weight: 700; margin-top: 8px; }
.stat__note { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* --------------------------------------------------------------------------
   9. SERVICE BLOCKS
   -------------------------------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: clamp(24px, 3vw, 38px);
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  overflow: hidden;
}
.service-card:hover { background: var(--ink); color: #fff; transform: translateY(-6px); }
.service-card:hover .service-card__num { color: var(--red); }
.service-card:hover .service-card__arrow { transform: translate(4px, -4px); }

.service-card__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--red);
}
.service-card__icon {
  margin-top: auto;
  margin-bottom: 26px;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.06em;
}
.service-card__title { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.service-card__desc { font-size: 14px; margin-top: 10px; opacity: .75; max-width: 32ch; }
.service-card__arrow {
  position: absolute;
  top: clamp(24px, 3vw, 38px);
  right: clamp(24px, 3vw, 38px);
  font-size: 24px;
  line-height: 1;
  transition: transform .3s var(--ease);
}

/* --------------------------------------------------------------------------
   10. COVER ART / LIVE CARDS
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper-3);
  isolation: isolate;
}
.cover__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cover__glyph {
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.9);
  z-index: 2;
}
.cover__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.cover__tag--live { background: var(--red); color: #fff; }
.cover__viewers {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  background: rgba(13,13,13,.85);
  color: #fff;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Geometric cover variants — pure CSS, no external images */
.cover--a { background: var(--red); }
.cover--a .cover__inner::before {
  content: ""; position: absolute; inset: -30%;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(0,0,0,.16) 22px 26px);
}
.cover--b { background: #111; }
.cover--b .cover__inner::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1;
  border: 18px solid rgba(255,255,255,.16); border-radius: 50%;
}
.cover--c { background: #e8e6df; }
.cover--c .cover__inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#0d0d0d 1.6px, transparent 1.6px);
  background-size: 18px 18px;
}
.cover--c .cover__glyph { color: var(--ink); }
.cover--d { background: #1b3fd8; }
.cover--d .cover__inner::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.14) 40px 44px);
}
.cover--e { background: #f0b91c; }
.cover--e .cover__inner::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(13,13,13,.12) 18px 20px);
}
.cover--e .cover__glyph { color: var(--ink); }
.cover--f { background: #0f8a5f; }
.cover--f .cover__inner::before {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1;
  background: rgba(255,255,255,.12); transform: rotate(45deg);
}

.live-card { display: block; cursor: pointer; }
.live-card .cover { transition: transform .3s var(--ease); }
.live-card:hover .cover { transform: scale(.98); }
.live-card:hover .live-card__title { color: var(--red); }

.live-card__body { padding-top: 14px; }
.live-card__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: color .2s var(--ease);
}
.live-card__host {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
}
.avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.avatar--red { background: var(--red); }

/* Filter tabs */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.filter-btn:hover { background: var(--paper-3); }
.filter-btn.is-active { background: var(--ink); color: #fff; }

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   11. FEATURE / STEP / INFO BLOCKS
   -------------------------------------------------------------------------- */
.feature {
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.feature__num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--red);
}
.feature__title { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; margin-top: 12px; }
.feature__desc { font-size: 14px; margin-top: 12px; color: var(--ink-soft); max-width: 42ch; }
.feature__glyph {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}

.step {
  position: relative;
  border: 2px solid var(--ink);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  height: 100%;
}
.step__num {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.step__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 10px; }
.step__desc { font-size: 14px; color: var(--ink-soft); }

.benefit {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.28);
}
.benefit__mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

/* Big CTA band */
.cta-band {
  padding-block: clamp(64px, 9vw, 130px);
  text-align: center;
}
.cta-band .display { margin-bottom: 18px; }
.cta-band .lead { margin-inline: auto; max-width: 50ch; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

/* SEO text block */
.seo-block {
  padding-block: 50px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray);
}
.seo-block h2 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.seo-block p { max-width: 100ch; }
.seo-block a { text-decoration: underline; text-underline-offset: 3px; }
.seo-block a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   12. COMMUNITY FEED
   -------------------------------------------------------------------------- */
.feed-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  padding-block: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 1px solid var(--line); }
.feed-item .cover { aspect-ratio: 1 / 1; }
.feed-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-item__author { font-weight: 800; font-size: 15px; }
.feed-item__time { font-size: 12px; color: var(--gray); }
.feed-item__title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.feed-item__text { font-size: 14px; color: var(--ink-soft); margin-top: 8px; max-width: 70ch; }
.feed-item__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  padding: 5px 10px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.feed-item__actions { display: flex; gap: 10px; margin-top: 18px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn.is-liked { color: var(--red); border-color: var(--red); background: rgba(227,6,19,.05); }

.topic-chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
  transition: padding-left .25s var(--ease);
}
.topic-chip:hover { padding-left: 10px; color: var(--red); }
.topic-chip span:last-child { font-size: 12px; color: var(--gray); font-weight: 700; }

/* --------------------------------------------------------------------------
   13. FORMS
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 800; }
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--red);
  box-shadow: 3px 3px 0 rgba(227,6,19,.18);
}
.form textarea { resize: vertical; min-height: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: 12px; color: var(--gray); line-height: 1.6; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding-top: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: 60px;
}
.footer__wordmark {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
}
.footer__wordmark span { color: var(--red); }
.footer__tag { margin-top: 16px; color: rgba(255,255,255,.65); font-size: 14px; max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer__col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.footer__col a, .footer__col button {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  text-align: left;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer__col a:hover, .footer__col button:hover { color: #fff; padding-left: 6px; }

.footer__band {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.footer__band a:hover { color: #fff; }

.footer__outline {
  font-size: clamp(3.5rem, 16vw, 17rem);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
  white-space: nowrap;
  margin-bottom: -3vw;
  user-select: none;
}

/* --------------------------------------------------------------------------
   15. MODALS / TOAST / TO-TOP
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,.86);
  backdrop-filter: blur(3px);
  animation: fade-in .25s var(--ease);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  animation: modal-in .3s var(--ease);
}
.modal__panel--wide { max-width: 860px; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  background: var(--ink);
  color: #fff;
  transition: background .2s var(--ease);
}
.modal__close:hover { background: var(--red); }
.modal__body { padding: clamp(26px, 4vw, 44px); }
.modal__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; margin: 14px 0 24px; }
.modal__note { margin-top: 16px; font-size: 12px; color: var(--gray); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* QR */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: #fff;
}
.qr {
  width: 176px;
  height: 176px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 0;
  background: #fff;
}
.qr i { display: block; }
.qr i.on { background: var(--ink); }
.qr-wrap p { font-size: 13px; font-weight: 700; text-align: center; }
.download__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* Player */
.player { background: var(--ink); }
.player__screen { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.player__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  color: #fff;
  background: repeating-linear-gradient(45deg, #111 0 30px, #181818 30px 60px);
}
.player__ring {
  width: 76px;
  height: 76px;
  border: 3px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.player__live {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  flex-wrap: wrap;
}
.player__bar strong { display: block; font-size: 17px; }
.player__bar span { font-size: 12px; color: rgba(255,255,255,.6); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  z-index: 2000;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border-left: 4px solid var(--red);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* To top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--red); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .menu-toggle { display: block; }
  .header__actions .btn { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 20px var(--pad) 40px;
    margin: 0;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link::after { display: none; }
  .nav__mobile-actions { display: flex; gap: 10px; margin-top: 28px; }
  .nav__mobile-actions .btn { flex: 1; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__poster { max-width: 420px; }
  .poster { aspect-ratio: 4 / 3; }
  .hero--sub .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .page-index { font-size: clamp(4rem, 22vw, 8rem); }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }

  .hero__title .line--indent { padding-left: 0; }
  .hero__meta { gap: 18px 28px; }
  .hero__actions .btn { flex: 1 1 100%; width: 100%; }

  .feed-item { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
  .feed-item__tags { display: none; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }

  .modal { padding: 12px; }
  .modal__panel { max-height: calc(100dvh - 24px); }
  .download__options { grid-template-columns: 1fr; }

  .cta-band__actions .btn { flex: 1 1 100%; width: 100%; }
}

@media (max-width: 400px) {
  .logo__text { font-size: 17px; }
  .logo__mark { width: 30px; height: 30px; font-size: 18px; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-item .cover { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
