/* 魔改AI短剧官网 - 共享样式 */
:root {
  --bg: #080a14;
  --bg-deep: #05060d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f8fc;
  --muted: #a7adc4;
  --muted-2: #7d839b;
  --brand: #8b5cf6;
  --brand-light: #b8a0ff;
  --pink: #ff5d8f;
  --cyan: #38e8c8;
  --amber: #ffc46b;
  --danger: #ff6b7a;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.25);
  --max: 1240px;
  --header-h: 74px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 22px); }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.2), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 93, 143, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(56, 232, 200, 0.08), transparent 36%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.section { padding: 92px 0; }
.section-sm { padding: 62px 0; }
.section-alt { background: rgba(255,255,255,.018); border-block: 1px solid rgba(255,255,255,.05); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(184,160,255,.3);
  border-radius: 999px;
  background: rgba(139,92,246,.1);
  color: var(--brand-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -.03em;
}
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 620px; }
.section-head .text-link { flex: 0 0 auto; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-light);
  font-weight: 700;
  font-size: 14px;
}
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.gradient-text {
  background: linear-gradient(100deg, #fff 5%, var(--brand-light) 42%, var(--pink) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(8,10,20,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--pink));
  box-shadow: 0 8px 24px rgba(139,92,246,.35);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand small { display: block; color: var(--muted-2); font-size: 10px; font-weight: 600; letter-spacing: .18em; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(230px, 22vw);
  padding: 0 12px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.header-search input { width: 100%; border: 0; background: transparent; color: var(--text); outline: 0; font-size: 13px; }
.header-search input::placeholder { color: var(--muted-2); }
.header-search button { border: 0; background: transparent; color: var(--muted); padding: 4px; display: grid; place-items: center; }
.header-search button:hover { color: var(--text); }

.header-cta {
  flex: 0 0 auto;
  padding: 10px 17px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--brand), var(--pink));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(139,92,246,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(139,92,246,.4); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  place-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--brand), var(--pink)); color: #fff; box-shadow: 0 14px 34px rgba(139,92,246,.3); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(139,92,246,.42); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.btn-cyan { background: var(--cyan); color: #04120f; }
.btn-cyan:hover { box-shadow: 0 14px 34px rgba(56,232,200,.28); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.1vw, 78px);
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 850;
}
.hero h1 span { display: block; }
.hero-copy > p {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted-2); font-size: 13px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero-visual { position: relative; min-height: 520px; }
.hero-collage { position: absolute; inset: 0; }
.hero-poster {
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-deep);
  animation: float 7s ease-in-out infinite;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-poster.one { width: 43%; left: 2%; top: 6%; transform: rotate(-7deg); }
.hero-poster.two { width: 49%; right: 0; top: 0; transform: rotate(6deg); animation-delay: -2.2s; }
.hero-poster.three { width: 38%; left: 24%; bottom: 0; transform: rotate(2deg); animation-delay: -4.1s; z-index: 2; }
.hero-poster.one img { aspect-ratio: 2/3; }
.hero-poster.two img { aspect-ratio: 3/2; }
.hero-poster.three img { aspect-ratio: 1/1; }

.float-card {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 8%;
  width: 190px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(14,17,32,.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.float-card strong { display: block; font-size: 22px; line-height: 1.2; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-card .mini-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 11px; overflow: hidden; }
.float-card .mini-bar i { display: block; width: 78%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--pink)); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(139,92,246,.12), rgba(255,93,143,.06));
}
.stat { padding: 12px 18px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }

/* Masonry cards */
.masonry { column-count: 4; column-gap: 20px; }
.masonry > * { break-inside: avoid; margin: 0 0 20px; }

.drama-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.drama-card:hover { transform: translateY(-5px); border-color: rgba(184,160,255,.4); box-shadow: var(--shadow-soft); }
.drama-card.is-hidden { display: none; }

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #101426;
  overflow: hidden;
  text-align: left;
}
.card-media img { width: 100%; height: auto; transition: transform .55s ease; }
.drama-card:hover .card-media img { transform: scale(1.045); }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,6,13,.82), transparent 48%);
  pointer-events: none;
}
.play-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8,10,20,.62);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease;
}
.drama-card:hover .play-badge { transform: scale(1.08); background: var(--brand); }
.duration, .tag-chip, .rank-badge, .score-badge { position: absolute; z-index: 2; }
.duration { right: 13px; bottom: 13px; padding: 4px 8px; border-radius: 8px; background: rgba(5,6,13,.75); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.tag-chip { left: 13px; top: 14px; padding: 5px 9px; border-radius: 8px; background: rgba(139,92,246,.86); color: #fff; font-size: 11px; font-weight: 700; }
.tag-chip + .play-badge { left: auto; right: 14px; }
.rank-badge {
  left: 0;
  top: 0;
  padding: 8px 14px 9px;
  border-radius: 0 0 16px 0;
  background: linear-gradient(135deg, var(--pink), var(--brand));
  font-size: 14px;
  font-weight: 900;
}
.score-badge { right: 13px; top: 13px; padding: 5px 9px; border-radius: 8px; background: rgba(255,196,107,.94); color: #1b1204; font-size: 12px; font-weight: 900; }

.card-body { padding: 15px 16px 16px; }
.card-body h3 { margin: 0; font-size: 16px; line-height: 1.4; letter-spacing: -.01em; }
.card-body p { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--muted-2); font-size: 11.5px; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11.5px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.like-btn:hover, .like-btn.is-liked { color: var(--pink); border-color: rgba(255,93,143,.45); background: rgba(255,93,143,.1); }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  transition: border-color .25s ease, transform .25s ease;
}
.feature-card:hover { border-color: rgba(184,160,255,.4); transform: translateY(-4px); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(139,92,246,.14);
  color: var(--brand-light);
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card:nth-child(2) .feature-icon { background: rgba(255,93,143,.13); color: #ff9ab6; }
.feature-card:nth-child(3) .feature-icon { background: rgba(56,232,200,.12); color: var(--cyan); }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Ranking */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.podium-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-deep); }
.podium-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.podium-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,5,12,.94), transparent 62%); pointer-events: none; }
.podium-info { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.podium-info h3 { margin: 0 0 5px; font-size: 22px; }
.podium-info p { margin: 0; color: #d6daea; font-size: 13px; }
.podium-card .rank-badge { font-size: 20px; padding: 10px 18px; }
.podium-card:nth-child(2) { transform: translateY(18px); }
.podium-card:nth-child(2) .rank-badge { background: linear-gradient(135deg, #a78bfa, #60a5fa); }
.podium-card:nth-child(3) .rank-badge { background: linear-gradient(135deg, #fbbf24, #f97316); }

.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.tab-btn {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.is-active { background: linear-gradient(120deg, var(--brand), var(--pink)); border-color: transparent; color: #fff; }

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { color: #fff; border-color: transparent; background: var(--brand); }
.toolbar-spacer { flex: 1 1 80px; }
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  padding: 0 12px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0,0,0,.16);
}
.toolbar-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.toolbar-search input::placeholder { color: var(--muted-2); }
.toolbar select {
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #121627;
  color: var(--text);
  font-size: 13px;
}
.result-count { color: var(--muted-2); font-size: 13px; }
.empty-state { display: none; text-align: center; padding: 70px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state.is-visible { display: block; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 32px;
  border: 1px solid rgba(184,160,255,.28);
  background: linear-gradient(120deg, rgba(139,92,246,.24), rgba(255,93,143,.16) 55%, rgba(56,232,200,.11));
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -100px;
  top: -160px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  filter: blur(4px);
}
.cta-band h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.18; letter-spacing: -.03em; }
.cta-band p { margin: 14px 0 26px; color: #d7d9e9; max-width: 620px; }
.cta-band .btn { position: relative; z-index: 2; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand-light); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: 14px; }

/* Download / login */
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.login-card, .qr-card, .download-card, .form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: var(--shadow-soft);
}
.login-card { padding: 30px; }
.login-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 24px; border-radius: 12px; background: rgba(0,0,0,.25); }
.login-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; }
.login-tabs button.is-active { background: var(--surface-strong); color: var(--text); }
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 8px; color: #d8dbe9; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5,7,15,.55);
  color: var(--text);
  outline: 0;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(184,160,255,.65); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inline-link { color: var(--brand-light); font-size: 13px; font-weight: 700; border: 0; background: transparent; padding: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0 20px; }
.checkbox-row input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); }
.form-note { margin: 14px 0 0; color: var(--muted-2); font-size: 12px; text-align: center; }

.qr-card { margin-top: 18px; padding: 22px; text-align: center; }
.qr-frame {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 2px;
}
.qr-frame i { background: #fff; border-radius: 1px; }
.qr-frame i.on { background: #0b0d18; }
.qr-card strong { display: block; }
.qr-card span { color: var(--muted); font-size: 12.5px; }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download-card { padding: 26px; }
.download-icon { font-size: 28px; margin-bottom: 16px; }
.download-card h3 { margin: 0 0 8px; font-size: 20px; }
.download-card p { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.download-card .btn { width: 100%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); counter-increment: step; }
.step-card::before {
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}
.step-card h3 { margin: 0 0 8px; font-size: 18px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Publish form */
.publish-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.form-card { padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
}
.upload-box:hover { border-color: var(--brand-light); color: var(--text); }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box strong { color: var(--text); font-size: 14px; }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.upload-box.has-image img { opacity: 1; }
.upload-box.has-image span, .upload-box.has-image strong { position: relative; z-index: 2; text-shadow: 0 2px 8px #000; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.success-panel { display: none; margin-top: 20px; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(56,232,200,.35); background: rgba(56,232,200,.08); }
.success-panel.is-visible { display: block; }
.success-panel strong { color: var(--cyan); }
.success-panel p { margin: 6px 0 14px; color: #d4e9e4; font-size: 14px; }

.preview-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.preview-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.preview-body { padding: 18px; }
.preview-body h3 { margin: 0 0 7px; font-size: 17px; }
.preview-body p { margin: 0; color: var(--muted); font-size: 13px; }
.side-card { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); margin-bottom: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 18px; }
.side-card p, .side-card li { color: var(--muted); font-size: 13.5px; }
.side-card li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.side-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Player dialog */
.player-modal {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: #0b0e1b;
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  overflow: auto;
}
.player-modal::backdrop { background: rgba(3,4,10,.8); backdrop-filter: blur(8px); }
.player-shell { position: relative; }
.modal-close {
  position: absolute;
  z-index: 5;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(5,7,15,.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.player-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #05070f; }
.player-stage img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 8s linear, filter .3s ease; }
.player-stage.is-playing img { transform: scale(1.12); filter: saturate(1.2); }
.player-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,15,.8), transparent 55%); pointer-events: none; }
.player-scan { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.035) 3px 4px); opacity: .5; pointer-events: none; }
.player-toggle {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(139,92,246,.88);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.player-time { position: absolute; z-index: 3; right: 18px; bottom: 16px; font-size: 12px; font-variant-numeric: tabular-nums; color: #fff; }
.player-info { padding: 20px 24px 24px; }
.player-info h3 { margin: 0 0 6px; font-size: 22px; }
.player-info p { margin: 0 0 17px; color: var(--muted); font-size: 13.5px; }
.player-progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; cursor: pointer; }
.player-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--pink)); }
.player-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.player-controls button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; }
.player-controls button:hover { background: var(--surface-strong); }
.player-controls .spacer { flex: 1; }

/* Toast */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 26px;
  translate: -50% 20px;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 18px;
  border-radius: 13px;
  border: 1px solid rgba(184,160,255,.32);
  background: rgba(18,21,38,.96);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, translate .24s ease;
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* Footer */
.site-footer { margin-top: 40px; padding: 62px 0 28px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(4,5,11,.55); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; max-width: 320px; }
.footer-col h3 { margin: 0 0 14px; font-size: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); color: var(--muted-2); font-size: 12px; }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; }
.keyword-cloud a { color: var(--muted-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1120px) {
  .masonry { column-count: 3; }
  .hero-grid, .entry-grid, .publish-grid { gap: 38px; }
  .header-search { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: grid; margin-left: auto; }
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(var(--header-h) + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(12,14,27,.97);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .header-cta { margin-left: 0; }
  .hero-grid, .entry-grid, .publish-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; max-width: 560px; margin-inline: auto; width: 100%; }
  .hero { padding-top: 52px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  .feature-grid, .app-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: 12px; }
  .podium-card:nth-child(2) { transform: none; }
  .podium-info { left: 14px; right: 14px; bottom: 14px; }
  .podium-info h3 { font-size: 17px; }
}

@media (max-width: 700px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 64px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .masonry { column-count: 2; column-gap: 12px; }
  .masonry > * { margin-bottom: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 14px; }
  .card-body p { font-size: 11.5px; }
  .card-meta { font-size: 10.5px; }
  .play-badge { width: 34px; height: 34px; left: 10px; top: 10px; }
  .tag-chip { left: 10px; top: 10px; font-size: 10px; }
  .tag-chip + .play-badge { right: 10px; left: auto; }
  .duration { right: 9px; bottom: 9px; font-size: 10px; }
  .cta-band { padding: 34px 24px; border-radius: 24px; }
  .podium { grid-template-columns: 1fr; }
  .podium-card img { aspect-ratio: 16/10; }
  .podium-card .rank-badge { font-size: 16px; }
  .toolbar { padding: 14px; }
  .toolbar-search { width: 100%; }
  .form-grid, .upload-row { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-card, .login-card { padding: 22px; }
  .player-info { padding: 16px; }
  .player-controls { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 380px) {
  .masonry { column-count: 1; }
  .hero-visual { min-height: 360px; }
  .float-card { width: 160px; }
}

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