:root {
  --bg: #0a0b0d;
  --bg-2: #121418;
  --line: #22262d;
  --text: #eeece6;
  --muted: #8c919a;
  --accent: #46e0b8;
  --accent-ink: #04140f;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; font-size: 15px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 600; color: var(--accent); letter-spacing: 0.22em; font-size: 11px; padding: 3px 8px; border: 1px solid rgba(70, 224, 184, 0.35); border-radius: 999px; }
.top-meta { color: var(--muted); font-size: 13px; }

/* hero */
.hero { position: relative; margin-top: 28px; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-height: clamp(380px, 52vw, 560px); display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.02); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.7) 38%, rgba(8, 9, 11, 0.05) 75%), linear-gradient(0deg, rgba(8, 9, 11, 0.85) 0%, transparent 45%); }
.hero-body { position: relative; z-index: 1; padding: clamp(24px, 4vw, 52px); max-width: 620px; }
.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 88px); line-height: 0.92; letter-spacing: -0.01em; margin: 14px 0 6px; }
.hero h1 span { display: block; font-size: 0.32em; font-weight: 600; letter-spacing: 0.28em; color: var(--muted); margin-top: 12px; text-transform: uppercase; }
.hero p { color: #c9cbd0; font-size: 17px; margin: 18px 0 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-play { background: var(--accent); color: var(--accent-ink); }
.btn-play:hover { background: #6ff0cf; }
.btn-ghost { border-color: #3a3f48; background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: #5a606b; background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 14px; height: 14px; }

/* library */
.lib-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 64px 0 22px; flex-wrap: wrap; }
.lib-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); margin: 0; letter-spacing: -0.01em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; transition: all 0.15s ease; }
.chip:hover { color: var(--text); border-color: #3a3f48; }
.chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: #353a43; box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.8); }
.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-art img { transform: scale(1.05); }
.card-art .play-badge { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: all 0.2s ease; }
.card:hover .play-badge, .card:focus-visible .play-badge { opacity: 1; transform: none; }
.play-badge svg { width: 16px; height: 16px; margin-left: 2px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; }
.card-sub { color: var(--muted); font-size: 13.5px; }
.card-tag { color: #b9bcc2; font-size: 14px; margin-top: 4px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.pill { font-size: 11.5px; font-weight: 500; color: var(--muted); padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.pill.genre { color: var(--accent); border-color: rgba(70, 224, 184, 0.25); background: rgba(70, 224, 184, 0.06); }

.empty { color: var(--muted); padding: 40px 0; }

footer { margin-top: 96px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }

/* play page */
.play-body { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.bar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.bar-left, .bar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-title { font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-hint { color: var(--muted); font-size: 13px; white-space: nowrap; }
.icon-btn { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 13px; font-weight: 500; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }
.icon-btn svg { width: 15px; height: 15px; }
.stage { position: relative; flex: 1; background: #000; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.launch { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.launch-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(0.35); transform: scale(1.1); }
.launch-card { position: relative; width: min(920px, 100%); display: grid; grid-template-columns: 1.15fr 1fr; background: rgba(18, 20, 24, 0.86); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.launch-card img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.launch-info { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.launch-info h1 { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; margin: 4px 0 0; }
.launch-info .card-sub { font-size: 14px; }
.launch-info p { color: #c3c6cc; margin: 4px 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; margin: 6px 0 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.notice { font-size: 13px; color: #f3c26b; background: rgba(243, 194, 107, 0.08); border: 1px solid rgba(243, 194, 107, 0.25); border-radius: 8px; padding: 9px 12px; }

@media (max-width: 760px) {
  .launch-card { grid-template-columns: 1fr; }
  .launch-card img { min-height: 0; aspect-ratio: 16 / 9; }
  .bar-hint, .hide-sm { display: none; }
  .hero img { object-position: 20% 50%; }
}
