/* ==========================================================
   MATVIK — iOS-style dark glass UI
   ========================================================== */

:root {
  --bg: #08080b;
  --bg-2: #0f0f14;
  --fg: #f5f5f7;
  --fg-2: rgba(245, 245, 247, .68);
  --fg-3: rgba(245, 245, 247, .42);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --accent: #ff8a1f;
  --accent-2: #ffb340;
  --green: #30d158;
  --red: #ff453a;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px;
  --mini-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--mini-h) + 24px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #17131a 0%, var(--bg) 60%); }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; transform: translateZ(0);
  animation: drift 26s var(--ease) infinite alternate;
}
.blob-1 { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, #ff7a1f 0%, transparent 65%); }
.blob-2 { width: 50vw; height: 50vw; right: -14vw; top: 14vh; background: radial-gradient(circle, #27a35a 0%, transparent 65%); animation-delay: -8s; animation-duration: 32s; }
.blob-3 { width: 45vw; height: 45vw; left: 30vw; bottom: -25vw; background: radial-gradient(circle, #d03d3d 0%, transparent 65%); animation-delay: -16s; animation-duration: 38s; opacity: .35; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}
.grain {
  position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px -20px rgba(0,0,0,.6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.96); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-accent {
  color: #150b00;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px -8px rgba(255,138,31,.7), 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn-accent:hover { box-shadow: 0 14px 40px -8px rgba(255,138,31,.9), 0 1px 0 rgba(255,255,255,.35) inset; transform: translateY(-1px); }
.btn-glass {
  background: var(--glass-2); border-color: var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-ghost { color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--fg); transition: background .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.xl { width: 56px; height: 56px; }
.icon-btn.xxl { width: 84px; height: 84px; background: #fff; color: #000; }
.icon-btn.xxl:hover { background: #fff; }
.icon-btn .i-pause { display: none; }
.is-playing .icon-btn.play .i-play { display: none; }
.is-playing .icon-btn.play .i-pause { display: block; }

/* ---------- Chips / labels ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--fg-2);
  background: var(--glass); border: 1px solid var(--line);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.6); } 70% { box-shadow: 0 0 0 8px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(12px + env(safe-area-inset-top)) 16px 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(1180px, 100%); height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 12px 0 14px; border-radius: 999px;
  background: rgba(14,14,18,.55);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: rgba(255,255,255,.08); }
.nav-cta { height: 40px; padding: 0 16px; font-size: 14px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-sheet {
  pointer-events: auto; width: min(1180px, 100%); border-radius: var(--r-lg); padding: 8px;
  display: flex; flex-direction: column; background: rgba(14,14,18,.7);
  animation: pop .3s var(--ease);
}
.nav-sheet a { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.nav-sheet a:hover { background: rgba(255,255,255,.08); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 60px + env(safe-area-inset-top));
  padding-bottom: 40px;
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 32px;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 118px);
  font-weight: 900; line-height: 1; letter-spacing: -.03em;
  margin: 6px 0 0; white-space: nowrap;
}
.hero-title.has-accent .accent {
  background: linear-gradient(90deg, #ffb340 0%, #ff8a1f 40%, #ff5f3a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--fg-2); max-width: 520px; line-height: 1.45; white-space: pre-line; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 10px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--fg-3); }

.hero-art { position: relative; display: grid; place-items: center; }
.fan { position: relative; width: min(360px, 85%); aspect-ratio: 1; }
.fan-card {
  position: absolute; inset: 0; border-radius: 28px; object-fit: cover;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transform-origin: 50% 110%;
  transition: transform .8s var(--ease);
}
.fan-card.c1 { transform: rotate(-14deg) translateX(-8%) scale(.92); filter: brightness(.7); }
.fan-card.c2 { transform: rotate(9deg) translateX(8%) scale(.95); filter: brightness(.8); }
.fan-card.c3 { transform: rotate(0) translateY(-4%); animation: float 6s ease-in-out infinite; }
.hero-art:hover .c1 { transform: rotate(-20deg) translateX(-16%) scale(.92); }
.hero-art:hover .c2 { transform: rotate(14deg) translateX(16%) scale(.95); }
@keyframes float { 50% { transform: translateY(-8%); } }
.fan-glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,138,31,.5), transparent 65%); filter: blur(40px);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .hero-sub { white-space: normal; }
  .stats { gap: 8px 22px; }
  .hero-art { order: -1; }
  .fan { width: min(280px, 70%); }
}

/* ---------- Release card ---------- */
.release { padding: 100px 0 0; }
#about.section { padding-top: 20px; }
@media (max-width: 640px) { .release { padding-top: 72px; } }
.release-card {
  display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center;
  padding: 28px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.release-cover { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.release-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.release-cover:hover img { transform: scale(1.04); }
.play-big {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; color: #000;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .3s var(--ease), background .3s;
}
.play-big:hover { transform: scale(1.08); background: #fff; }
.play-big svg { margin-left: 3px; }
.release-body { display: flex; flex-direction: column; gap: 14px; }
.release-body h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.lead { font-size: 18px; color: var(--fg-2); max-width: 560px; }
.release-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hint { font-size: 14px; color: var(--fg-3); }
@media (max-width: 860px) {
  .release-card { grid-template-columns: 1fr; padding: 16px; gap: 22px; }
  .release-cover { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--fg-2); font-size: 17px; margin-top: 8px; }
.center { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 640px) { .section { padding-top: 72px; } }

/* ---------- Music ---------- */
.player-card { border-radius: var(--r-xl); padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 10px; flex-wrap: wrap; }
.player-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.tracklist { padding: 0 2px 2px; }
.track-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px; }
.track-dl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-3); transition: color .2s, background .2s; }
.track-dl:hover { color: #150b00; background: var(--accent); }
.track-dl.disabled { visibility: hidden; }
.track {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  width: 100%; padding: 10px 12px 10px 10px; border-radius: 18px; text-align: left;
  transition: background .2s; cursor: pointer;
}
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.track-link { color: inherit; }
.track-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.track:hover { background: rgba(255,255,255,.06); }
.track.active { background: rgba(255,138,31,.14); }
.track-cover { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: block; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover .ov {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s;
}
.track:hover .ov, .track.active .ov { opacity: 1; }
.track-meta { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.track-meta strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.track-meta span { font-size: 13px; color: var(--fg-3); }
.track.active .track-meta strong { color: var(--accent-2); }
.track-dur { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.track-yt { width: 40px; height: 40px; margin-right: 6px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-3); transition: color .2s, background .2s; }
.track-yt:hover { color: #fff; background: rgba(255,0,0,.35); }
.track-yt.disabled { visibility: hidden; }
.track-row.is-hidden, .track.is-hidden { display: none; }
.list-more { margin: 10px auto 6px; display: flex; }
.tag-yt { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: rgba(255,0,0,.18); color: #ff6b6b; }
.track.is-video .track-cover img { object-fit: cover; }
@media (max-width: 480px) { .track.is-video .track-dur { display: inline-flex; } }
.eq { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.eq i { width: 3px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 4px } 50% { height: 18px } }
.track.active.playing .eq { display: flex; }
.track.active.playing .ov svg { display: none; }

.platforms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 0 6px; }
.platforms-label { font-size: 13px; color: var(--fg-3); margin-right: 4px; }
.platform-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--fg-2);
  background: var(--glass); border: 1px solid var(--line); transition: background .2s, color .2s;
}
.platform-pill:hover { background: rgba(255,255,255,.12); color: var(--fg); }
.platform-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.platform-icon.spotify { background: #1db954; color: #000; }
.platform-icon.apple { background: linear-gradient(180deg, #fb5c74, #fa233b); }
.platform-icon.ytm { background: #ff0000; }
.platform-icon.yt { background: #222; color: #ff0000; }
@media (max-width: 480px) {
  .track { grid-template-columns: 48px 1fr; gap: 12px; }
  .track-cover { width: 48px; height: 48px; }
  .track-dur { display: none; }
  .player-head .btn { width: 100%; justify-content: center; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--mini-h) + 32px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap;
  background: rgba(255,69,58,.9); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: pop .3s var(--ease);
}

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--bg-2); text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s;
  box-shadow: 0 0 0 1px var(--line);
}
.video:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 40px -16px rgba(0,0,0,.8), 0 0 0 1px var(--line-2); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video:hover img { transform: scale(1.06); }
.video-info {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  display: flex; flex-direction: column; gap: 2px;
}
.video-info strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-info span { font-size: 12px; color: var(--fg-2); }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), background .3s;
}
.video:hover .video-play { transform: scale(1.1); background: rgba(255,138,31,.85); }
.video-play svg { margin-left: 2px; }
.video.new::before {
  content: "Новинка"; position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--accent); color: #150b00;
}
.video.is-hidden { display: none; }
@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 340px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.about-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; padding: 0; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.about-text > p { color: var(--fg-2); font-size: 17px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.tile { padding: 18px; border-radius: 20px; display: flex; flex-direction: column; gap: 6px; }
.tile strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-2); }
.tile span { font-size: 13px; color: var(--fg-2); line-height: 1.4; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-media { max-width: 320px; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Social ---------- */
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.social {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px;
  transition: transform .3s var(--ease), background .3s;
}
.social:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.social-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.social-icon.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.social-icon.tt { background: #000; box-shadow: 0 0 0 1px var(--line-2); }
.social-icon.tg { background: #2aabee; }
.social-icon.yt { background: #ff0000; }
.social-name { font-weight: 700; font-size: 18px; }
.social-handle { font-size: 13px; color: var(--fg-3); margin-top: -10px; }
@media (max-width: 900px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA ---------- */
.cta {
  margin-top: 100px; padding: 56px 32px; border-radius: var(--r-xl); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(255,138,31,.18), rgba(255,255,255,.04));
}
.cta h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.cta p { color: var(--fg-2); max-width: 560px; font-size: 17px; }
@media (max-width: 640px) { .cta { margin-top: 72px; padding: 40px 20px; } }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand span { font-size: 13px; color: var(--fg-3); }
.footer-copy { font-size: 13px; color: var(--fg-3); }
.footer-links { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.footer-contact { font-size: 14px; color: var(--fg-2); }
.footer-contact a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.dl-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--fg-3); }
.dl-links a:hover { color: var(--fg); }

/* ---------- Mini player ---------- */
.mini {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  width: min(560px, calc(100% - 24px)); height: var(--mini-h);
  transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 0 10px 0 8px; border-radius: 999px; overflow: hidden;
  background: rgba(18,18,22,.7);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08) inset;
  animation: rise .5s var(--ease);
}
@keyframes rise { from { transform: translate(-50%, 120%); opacity: 0; } }
.mini-main { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; height: 100%; }
.mini-main img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; animation: spin 12s linear infinite; animation-play-state: paused; }
.is-playing .mini-main img { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mini-meta strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta span { font-size: 12px; color: var(--fg-3); }
.mini-controls { display: flex; align-items: center; gap: 2px; }
.mini-controls .play { background: #fff; color: #000; width: 44px; height: 44px; }
.mini-controls .play:hover { background: #fff; }
.mini-progress { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
@media (max-width: 420px) { #miniPrev, #miniNext { display: none; } }

/* ---------- Full player sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; animation: sheetIn .45s var(--ease); }
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(60px) brightness(.45) saturate(1.4); transform: scale(1.3); }
.sheet-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.6)); }
.sheet-inner {
  position: relative; width: min(440px, 100%); height: 100%; padding: calc(24px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.sheet-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: 60px; height: 30px; }
.sheet-close span { display: block; width: 40px; height: 5px; margin: auto; border-radius: 3px; background: rgba(255,255,255,.4); }
.sheet-cover {
  width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 22px; object-fit: cover;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.9);
  transition: transform .6s var(--ease);
  transform: scale(.88);
}
.is-playing .sheet-cover { transform: scale(1); }
.sheet-meta { width: 100%; max-width: 360px; display: flex; flex-direction: column; line-height: 1.3; }
.sheet-meta strong { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sheet-meta span { font-size: 16px; color: var(--fg-2); }
.scrub { width: 100%; max-width: 360px; cursor: pointer; padding: 8px 0; touch-action: none; }
.scrub-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; transition: transform .2s; }
.scrub:hover .scrub-track { transform: scaleY(1.5); }
.scrub-track span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.scrub-time { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.sheet-controls { display: flex; align-items: center; justify-content: center; gap: 28px; }
.sheet-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sheet-links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); }
.sheet-links a:hover { background: rgba(255,255,255,.2); }
@media (max-height: 700px) { .sheet-cover { max-width: 240px; } .sheet-inner { gap: 16px; } }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(1000px, 100%); padding: 8px; border-radius: 24px; background: rgba(20,20,24,.8); animation: pop .35s var(--ease); }
.modal-frame { aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #000; font-size: 16px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
@media (max-width: 640px) { .modal-close { top: -46px; right: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

::selection { background: rgba(255,138,31,.4); }

/* ---------- Admin / inline editing ---------- */
.admin-bar {
  position: fixed; top: calc(84px + env(safe-area-inset-top)); right: 16px; z-index: 55;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px;
  background: rgba(20,20,24,.85); border: 1px solid var(--line-2); backdrop-filter: blur(20px);
  font-size: 13px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.8);
}
.admin-bar span { color: var(--fg-3); margin-right: 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-bar .btn { height: 32px; padding: 0 12px; font-size: 13px; }
body.is-editing [data-edit] { outline: 1.5px dashed rgba(255,138,31,.7); outline-offset: 3px; border-radius: 4px; cursor: text; min-width: 1ch; }
body.is-editing [data-edit]:focus { outline: 2px solid var(--accent); background: rgba(255,138,31,.08); }
body.is-editing a[data-edit] { pointer-events: auto; }
@media (max-width: 640px) { .admin-bar { right: 8px; left: 8px; justify-content: flex-end; flex-wrap: wrap; } }
