/* 魔改AI短剧官网 - 统一视觉系统 */
:root {
  --bg: #070812;
  --bg-2: #0b0d19;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f6f7ff;
  --muted: #a5a9c4;
  --muted-2: #777c99;
  --pink: #ff4d8d;
  --violet: #8b5cff;
  --cyan: #35e0e5;
  --amber: #ffc46b;
  --green: #43e39a;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  --grad: linear-gradient(120deg, var(--pink), var(--violet) 52%, var(--cyan));
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(139, 92, 255, .18), transparent 62%),
    radial-gradient(760px 480px at 92% 6%, rgba(255, 77, 141, .12), transparent 60%),
    radial-gradient(700px 600px at 55% 100%, rgba(53, 224, 229, .07), transparent 62%),
    var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(255, 77, 141, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2d45; border-radius: 10px; border: 2px solid var(--bg); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 8, 18, .74);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 800; letter-spacing: -.02em; font-size: 1.08rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.2rem; font-weight: 900;
  box-shadow: 0 8px 26px rgba(255, 77, 141, .32);
}
.brand span:last-child { white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 13px; border-radius: 10px; color: var(--muted); font-size: .94rem; font-weight: 600;
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: var(--surface-2); }
.nav-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  width: min(260px, 26vw); padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--border);
  transition: border .2s, background .2s;
}
.nav-search:focus-within { border-color: rgba(139, 92, 255, .7); background: rgba(255, 255, 255, .08); }
.nav-search svg { flex: 0 0 auto; opacity: .65; }
.nav-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .9rem; }
.nav-search input::placeholder { color: var(--muted-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }
.nav-icon-btn { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 34px rgba(255, 77, 141, .26); }
.btn-primary:hover { box-shadow: 0 16px 42px rgba(255, 77, 141, .38); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: rgba(139, 92, 255, .14); border-color: rgba(139, 92, 255, .32); color: #d9ccff; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: .84rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 46px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -160px 0 auto 42%; height: 560px;
  background: conic-gradient(from 140deg, rgba(139,92,255,.16), rgba(255,77,141,.10), rgba(53,224,229,.12), rgba(139,92,255,.16));
  filter: blur(90px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(139, 92, 255, .12); border: 1px solid rgba(139, 92, 255, .28);
  color: #d8c9ff; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(67, 227, 154, .12); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 900; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 610px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 38px; }
.hero-stats strong { display: block; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.03em; }
.hero-stats span { color: var(--muted-2); font-size: .82rem; }
.hero-collage { position: relative; height: 470px; }
.collage-glow { position: absolute; inset: 12% 5%; background: radial-gradient(circle, rgba(255,77,141,.26), transparent 68%); filter: blur(50px); }
.collage-item {
  position: absolute; overflow: hidden; border-radius: 22px; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); background: #111; animation: float 7s ease-in-out infinite;
}
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,8,18,.82)); }
.collage-item.one { width: 52%; height: 72%; top: 2%; left: 8%; transform: rotate(-6deg); }
.collage-item.two { width: 46%; height: 60%; top: 20%; right: 2%; transform: rotate(7deg); animation-delay: -2.4s; }
.collage-item.three { width: 40%; height: 52%; bottom: 0; left: 34%; transform: rotate(2deg); animation-delay: -4.8s; z-index: 2; }
.collage-tag {
  position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 7px 13px; border-radius: 999px; background: rgba(7,8,18,.72); border: 1px solid var(--border);
  backdrop-filter: blur(10px); font-size: .78rem; white-space: nowrap;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Sections */
.page-intro { padding-top: 58px; }
.page-intro h1 { margin: 16px 0 10px; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.15; letter-spacing: -.045em; }
.page-intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1rem; }
.section { padding: 46px 0; }
.section-tight { padding: 24px 0 52px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 8px 0 4px; font-size: clamp(1.55rem, 2.6vw, 2.2rem); letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: .94rem; }
.section-head .section-link { color: #d8c9ff; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.section-head .section-link:hover { color: #fff; }

/* Filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: .86rem; font-weight: 600;
  transition: all .2s;
}
.chip:hover { color: #fff; border-color: var(--border-strong); }
.chip.active { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 8px 22px rgba(139,92,255,.24); }
.result-count { margin-left: auto; align-self: center; color: var(--muted-2); font-size: .84rem; }

/* Masonry */
.masonry { column-count: 4; column-gap: 18px; }
.masonry-item { break-inside: avoid; margin: 0 0 18px; display: inline-block; width: 100%; }
.poster-card {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s, box-shadow .28s;
}
.poster-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.24); box-shadow: var(--shadow); }
.poster-media { position: relative; overflow: hidden; background: #101222; }
.poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.poster-card:hover .poster-media img { transform: scale(1.06); filter: saturate(1.15); }
.ratio-tall { aspect-ratio: 2 / 3; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-wide { aspect-ratio: 3 / 2; }
.poster-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,18,.05) 35%, rgba(7,8,18,.88)); }
.poster-badges { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.badge { padding: 5px 9px; border-radius: 8px; background: rgba(7,8,18,.72); border: 1px solid var(--border); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 700; }
.badge.hot { background: linear-gradient(120deg, var(--pink), #ff7a5c); border-color: transparent; color: #fff; }
.badge.new { background: rgba(53,224,229,.18); border-color: rgba(53,224,229,.38); color: #b8fbff; }
.badge.ai { background: rgba(139,92,255,.24); border-color: rgba(139,92,255,.42); color: #ddd0ff; }
.score { padding: 5px 9px; border-radius: 8px; background: rgba(7,8,18,.78); border: 1px solid var(--border); font-size: .76rem; font-weight: 800; color: var(--amber); backdrop-filter: blur(8px); }
.play-pill {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.82);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.36); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s, transform .25s;
}
.poster-card:hover .play-pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.poster-info { position: relative; z-index: 2; margin-top: -64px; padding: 14px 15px 16px; }
.poster-info h3 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.015em; }
.poster-info p { margin: 0; color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-meta { display: flex; align-items: center; gap: 10px; margin-top: 11px; color: var(--muted-2); font-size: .74rem; }
.poster-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: #b9bdd4; font-size: .7rem; }
.empty-state { display: none; grid-column: 1 / -1; padding: 70px 20px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state.show { display: block; }

/* Feature strip */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.feature-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(139,92,255,.18); color: #d8c9ff; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 6px; font-size: .98rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .82rem; }

/* Ranking podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; margin-bottom: 26px; }
.podium-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: transform .25s, border-color .25s; }
.podium-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.podium-card.first { transform: translateY(-18px); }
.podium-card.first:hover { transform: translateY(-23px); }
.podium-card img { width: 100%; height: 300px; object-fit: cover; }
.podium-card.first img { height: 360px; }
.podium-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,8,18,.94)); pointer-events: none; }
.rank-num { position: absolute; z-index: 2; top: 16px; left: 16px; font-size: 2.5rem; font-weight: 900; font-style: italic; letter-spacing: -.06em; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.podium-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px; }
.podium-body h3 { margin: 0 0 6px; font-size: 1.18rem; }
.podium-body p { margin: 0; color: var(--muted); font-size: .83rem; }
.podium-body .score { position: absolute; right: 18px; bottom: 22px; font-size: .92rem; }

/* Latest timeline */
.day-group { margin-bottom: 34px; }
.day-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.day-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.day-label b { color: var(--text); }

/* Auth */
.auth-section { padding: 46px 0 70px; }
.auth-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: stretch; }
.panel { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.auth-card { padding: 32px; }
.auth-card h1, .auth-card h2 { margin: 8px 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); font-size: .92rem; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 24px; }
.auth-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tabs button.active { background: var(--surface-2); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: #d6d8ea; font-size: .84rem; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap input, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.045); color: var(--text); outline: 0;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input-wrap input { padding-right: 76px; }
.input-wrap input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(139,92,255,.7); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(139,92,255,.10);
}
.input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #cbbcff; font-size: .8rem; font-weight: 700; padding: 8px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 8px; font-size: .8rem; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; font-size: .84rem; color: var(--muted); }
.checkbox { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.checkbox input { accent-color: var(--violet); width: 15px; height: 15px; }
.link { color: #d5c7ff; font-weight: 700; }
.link:hover { color: #fff; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .78rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social-btn { min-height: 42px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); font-size: .82rem; font-weight: 700; }
.social-btn:hover { background: var(--surface-2); }
.auth-promo { position: relative; overflow: hidden; min-height: 560px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.auth-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,18,.42), rgba(7,8,18,.95)); }
.auth-promo > * { position: relative; z-index: 2; }
.promo-badge { align-self: flex-start; }
.auth-promo h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; }
.auth-promo p { margin: 0; color: #c9cce0; max-width: 440px; }
.promo-list { display: grid; gap: 12px; margin-top: 24px; }
.promo-list li { display: flex; gap: 10px; align-items: flex-start; list-style: none; color: #e4e6f5; font-size: .9rem; }
.promo-check { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: rgba(67,227,154,.16); color: var(--green); font-size: .75rem; }
.qr-card { align-self: flex-start; padding: 16px; border-radius: 16px; background: rgba(7,8,18,.72); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.qr-card p { margin: 10px 0 0; font-size: .76rem; color: var(--muted); text-align: center; }

/* Download section */
.download-section { padding: 30px 0 76px; }
.download-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 20px; }
.download-card { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.download-card h2 { margin: 0 0 10px; font-size: 1.7rem; letter-spacing: -.03em; }
.download-card p { color: var(--muted); margin: 0 0 22px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.version-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted-2); font-size: .8rem; }
.qr-panel { display: grid; place-items: center; text-align: center; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(160deg, rgba(139,92,255,.13), rgba(255,77,141,.07)); }
.qr-frame { width: 176px; height: 176px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.35); margin: 0 auto 14px; }
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-panel h3 { margin: 0 0 6px; }
.qr-panel p { margin: 0; color: var(--muted); font-size: .84rem; }

/* Publish */
.publish-section { padding: 46px 0 76px; }
.publish-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.publish-card { padding: 28px; }
.publish-card h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -.03em; }
.publish-card > p { margin: 0 0 22px; color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.dropzone {
  border: 1.5px dashed rgba(139,92,255,.45); border-radius: var(--radius); background: rgba(139,92,255,.06);
  padding: 28px 20px; text-align: center; transition: background .2s, border-color .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { background: rgba(139,92,255,.12); border-color: var(--violet); }
.dropzone-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(139,92,255,.18); color: #d8c9ff; }
.dropzone strong { display: block; margin-bottom: 4px; }
.dropzone span { color: var(--muted); font-size: .8rem; }
.file-preview { display: none; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.file-preview.show { display: flex; }
.file-preview img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #222; }
.file-preview div { min-width: 0; }
.file-preview b, .file-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview small { color: var(--muted); }
.cover-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cover-option { position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #111; }
.cover-option img { width: 100%; height: 100%; object-fit: cover; }
.cover-option input { position: absolute; opacity: 0; pointer-events: none; }
.cover-option.selected { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,77,141,.18); }
.cover-option::after { content: "✓"; position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--pink); display: none; place-items: center; font-size: .7rem; }
.cover-option.selected::after { display: grid; }
.preview-panel { position: sticky; top: 96px; }
.preview-phone { width: min(100%, 310px); margin: 0 auto; border-radius: 28px; border: 1px solid var(--border-strong); background: #0d0f1c; overflow: hidden; box-shadow: var(--shadow); }
.preview-phone img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.preview-phone-body { padding: 16px; }
.preview-phone-body h3 { margin: 0 0 6px; font-size: 1.02rem; }
.preview-phone-body p { margin: 0; color: var(--muted); font-size: .8rem; }
.preview-meta { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted-2); font-size: .74rem; }
.publish-tips { margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; display: grid; gap: 8px; }
.publish-tips li::before { content: "✦"; color: var(--violet); margin-right: 8px; }
.success-box { display: none; padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(67,227,154,.3); background: rgba(67,227,154,.08); text-align: center; }
.success-box.show { display: block; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(67,227,154,.16); color: var(--green); font-size: 1.6rem; }
.success-box h2 { margin: 0 0 8px; }
.success-box p { color: var(--muted); margin: 0 0 18px; }

/* CTA band */
.cta-band { padding: 0 0 66px; }
.cta-inner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 44px; background: linear-gradient(120deg, rgba(255,77,141,.18), rgba(139,92,255,.18), rgba(53,224,229,.12)); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner::after { content: ""; position: absolute; width: 340px; height: 340px; right: -80px; top: -150px; border-radius: 50%; background: rgba(139,92,255,.24); filter: blur(60px); }
.cta-inner > * { position: relative; z-index: 2; }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.cta-inner p { margin: 0; color: #c9cce0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(5,6,12,.72); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .86rem; max-width: 360px; margin: 14px 0 0; }
.footer-col h3 { margin: 0 0 14px; font-size: .9rem; }
.footer-col a { display: block; color: var(--muted); font-size: .85rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.keyword-line { margin-top: 18px; color: var(--muted-2); font-size: .75rem; line-height: 1.8; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .78rem; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,10,.86); backdrop-filter: blur(10px); }
.watch-shell { position: relative; z-index: 2; width: min(1120px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; border: 1px solid var(--border-strong); background: #0b0d18; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 300px; }
.player { position: relative; min-height: 520px; background: #05060c; overflow: hidden; }
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 12s linear, opacity .3s; }
.player.playing > img { transform: scale(1.12); opacity: .92; }
.player-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 35%, rgba(0,0,0,.88)); }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.16); backdrop-filter: blur(12px); color: #fff; font-size: 1.5rem; display: grid; place-items: center; transition: transform .2s, background .2s; }
.play-big:hover { transform: translate(-50%,-50%) scale(1.07); background: rgba(255,255,255,.24); }
.player-top { position: absolute; top: 0; left: 0; right: 0; padding: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.player-top h3 { margin: 0; font-size: 1.05rem; }
.player-top p { margin: 4px 0 0; color: #cdd0e4; font-size: .78rem; }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.progress-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; cursor: pointer; }
.progress-fill { height: 100%; width: 0%; background: var(--grad); transition: width .3s linear; }
.control-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: #e7e8f5; font-size: .8rem; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(255,255,255,.08); color: #fff; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.control-spacer { flex: 1; }
.watch-side { padding: 22px; border-left: 1px solid var(--border); }
.watch-side h4 { margin: 0 0 12px; font-size: .95rem; }
.episode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 22px; }
.episode { min-height: 38px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--muted); font-size: .8rem; font-weight: 700; }
.episode.active { background: var(--grad); color: #fff; border-color: transparent; }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-note { margin-top: 18px; padding: 14px; border-radius: 12px; background: rgba(139,92,255,.10); border: 1px solid rgba(139,92,255,.2); color: #cfc5f5; font-size: .78rem; line-height: 1.7; }
.modal-close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(7,8,18,.7); color: #fff; font-size: 1.2rem; }
.notice-modal { width: min(480px, 100%); position: relative; z-index: 2; padding: 30px; border-radius: 20px; border: 1px solid var(--border-strong); background: #0d0f1c; text-align: center; }
.notice-modal h3 { margin: 0 0 8px; }
.notice-modal p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }

/* Toast + top */
.toast-stack { position: fixed; z-index: 500; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: 12px; background: rgba(20,22,38,.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: #fff; font-size: .86rem; animation: toastIn .25s ease-out; }
.toast.ok { border-color: rgba(67,227,154,.45); }
.toast.err { border-color: rgba(255,77,141,.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.back-top { position: fixed; z-index: 90; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: rgba(15,17,30,.85); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-top.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1180px) {
  .masonry { column-count: 3; }
  .nav-search { width: 200px; }
  .main-nav a { padding: 8px 10px; }
}
@media (max-width: 980px) {
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-collage { height: 390px; max-width: 560px; width: 100%; margin: 0 auto; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: 12px; }
  .podium-card img, .podium-card.first img { height: 250px; }
  .auth-grid, .publish-grid, .download-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .watch-shell { grid-template-columns: 1fr; }
  .watch-side { border-left: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { height: 64px; gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .nav-search { position: absolute; top: 64px; left: 14px; right: 14px; width: auto; margin: 0; display: none; z-index: 101; background: rgba(12,14,26,.96); }
  .nav-search.open { display: flex; }
  .main-nav { position: fixed; top: 64px; left: 0; right: 0; padding: 12px 14px 20px; background: rgba(9,10,20,.98); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 4px; transform: translateY(-130%); transition: transform .25s; z-index: 100; }
  .site-header.menu-open .main-nav { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; }
  .nav-icon-btn { display: inline-flex !important; }
  .masonry { column-count: 2; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .podium { grid-template-columns: 1fr 1fr; }
  .podium-card.first { grid-column: 1 / -1; transform: none; }
  .podium-card.first:hover { transform: translateY(-5px); }
  .podium-card.first img, .podium-card img { height: 230px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .result-count { width: 100%; margin-left: 0; }
}
@media (max-width: 520px) {
  .brand span:last-child { font-size: .98rem; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-actions .btn { flex: 1 1 44%; }
  .hero-stats { gap: 20px; }
  .hero-collage { height: 320px; }
  .masonry { column-count: 1; }
  .feature-strip { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-card.first { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .cover-picker { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .auth-card, .publish-card, .download-card { padding: 22px; }
  .auth-promo { min-height: 480px; padding: 24px; }
  .player { min-height: 360px; }
  .play-big { width: 62px; height: 62px; }
  .episode-grid { grid-template-columns: repeat(5, 1fr); }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
