/* 메인 포털 (thelabels.co.kr) — Next 밖의 독립 정적 페이지. 더크라운 globals.css 와 섞이지 않습니다.
   준비 중 화면(soon.html)도 이 파일을 씁니다. */
:root {
  --bg: #0B0A09; --bg2: #13110E; --card: #171410; --line: #2A241C; --line2: #3A3226;
  --text: #F5EFE4; --muted: #ADA08A; --dim: #756A59;
  --gold: #C9A24B; --gold-lt: #F2DC9E; --gold-deep: #8A6A22;
  --live: #E5384F;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-x: hidden;
}
/* 위쪽 조명 + 필름 입자 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(201, 162, 75, .16), transparent 70%),
    radial-gradient(600px 400px at 85% 30%, rgba(142, 124, 195, .06), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ── 머리 ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px max(16px, calc((100vw - 1120px) / 2 + 16px)); }
.mark { font-family: var(--serif); letter-spacing: .3em; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mark b { color: var(--text); font-weight: 700; }
.onair { margin: 0; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; min-height: 28px; text-align: right; }
.onair:empty { visibility: hidden; }
.onair .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.onair.is-live { color: var(--text); }
.onair.is-live .dot { background: var(--live); box-shadow: 0 0 0 0 rgba(229, 56, 79, .6); animation: ping 1.6s var(--ease) infinite; }
.onair b { font-weight: 700; letter-spacing: .12em; font-size: 11px; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(229, 56, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 56, 79, 0); } }

/* ── 첫 화면 글씨 ── */
.hero { text-align: center; padding: clamp(40px, 9vw, 96px) 16px clamp(40px, 7vw, 80px); }
.eyebrow { margin: 0 0 18px; font-size: 11px; letter-spacing: .5em; color: var(--gold); padding-left: .5em; }
.word {
  margin: 0; font-family: var(--serif); font-weight: 800; line-height: .95;
  font-size: clamp(46px, 11.5vw, 132px); letter-spacing: .04em;
  background: linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(201, 162, 75, .18));
}
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 22px; color: var(--gold); font-size: 9px; }
.orn i { display: block; width: min(120px, 22vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { transform: scaleX(-1); }
.lead { margin: 0 auto; max-width: 30em; color: var(--muted); font-size: clamp(14px, 1.8vw, 16px); line-height: 1.7; }

/* ── 구역 제목 ── */
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-h span { font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: .32em; color: var(--text); }
.sec-h small { font-size: 13px; color: var(--dim); }

/* ── 레이블 포스터 ── */
.labels { padding-bottom: clamp(56px, 8vw, 96px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.poster {
  --c: var(--gold);
  position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; min-height: 420px;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--c) 30%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--card)) 0%, var(--card) 60%, #0F0D0B 100%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
/* 금속 테두리 느낌의 안쪽 선 */
.poster::before {
  content: ""; position: absolute; inset: 10px; border-radius: 14px; pointer-events: none; z-index: 2;
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
a.poster:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -30px color-mix(in srgb, var(--c) 35%, #000); }
a.poster:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; }

.idx { position: absolute; top: 26px; left: 28px; z-index: 3; font-family: var(--serif); font-style: italic; font-size: 15px; color: color-mix(in srgb, var(--c) 80%, #fff); opacity: .8; }
.badge { position: absolute; top: 22px; right: 24px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.badge.live { background: var(--live); color: #fff; box-shadow: 0 6px 20px -6px rgba(229, 56, 79, .8); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
.badge.soon { color: var(--muted); border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); font-weight: 600; }
@keyframes blink { 50% { opacity: .2; } }

.art { flex: 1; display: grid; place-items: center; padding: 56px 40px 8px; min-height: 0; }
.art img { width: min(78%, 330px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
a.poster:hover .art img { transform: scale(1.04); }
.art.mono span {
  display: grid; place-items: center; width: min(52%, 210px); aspect-ratio: 1; border-radius: 50%;
  font-family: var(--serif); font-weight: 500; font-size: clamp(72px, 12vw, 110px); line-height: 1;
  color: color-mix(in srgb, var(--c) 85%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 6%, transparent), 0 0 80px color-mix(in srgb, var(--c) 25%, transparent) inset;
}

.info { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 0 28px 26px; }
.en { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: .05em; line-height: 1.05; color: color-mix(in srgb, var(--c) 70%, #fff); }
.ko { font-size: 15px; font-weight: 600; color: var(--text); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ko em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.live-title { font-size: 14px; color: var(--text); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); }
.when { font-size: 13px; color: var(--muted); }
.when b { color: var(--text); font-weight: 600; }
.go { font-size: 13px; font-weight: 700; color: var(--c); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.go::after { content: "→"; transition: transform .3s var(--ease); }
a.poster:hover .go::after { transform: translateX(4px); }
.poster.is-soon .art, .poster.is-soon .en { opacity: .72; }

/* ── 이번 주 ── */
.week { padding-bottom: clamp(56px, 8vw, 96px); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(23, 20, 16, .6); }
.day { min-height: 128px; padding: 16px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.day:first-child { border-left: 0; }
.day-h { display: flex; align-items: baseline; gap: 6px; }
.day-h b { font-size: 14px; font-weight: 700; }
.day-h small { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.day.is-past { opacity: .45; }
.day.is-today { background: linear-gradient(180deg, rgba(201, 162, 75, .12), transparent 80%); box-shadow: inset 0 2px 0 var(--gold); }
.day.is-today .day-h b { color: var(--gold-lt); }
.day.is-today .day-h::after { content: "오늘"; margin-left: auto; font-size: 11px; color: var(--gold); font-weight: 700; }
.slot { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); min-width: 0; }
.slot b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot.is-live small { color: #ff8b9a; font-weight: 700; }
.slots { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day-empty { font-size: 12px; color: var(--dim); }
.note { margin: 14px 2px 0; font-size: 12px; color: var(--dim); line-height: 1.6; }

/* ── 바닥 — 레이블 전체 줄 (각 레이블 사이트에도 같은 줄) ── */
.foot { border-top: 1px solid var(--line); padding: 40px 0 44px; background: rgba(0, 0, 0, .25); }
.foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.foot-mark { margin: 0; font-family: var(--serif); letter-spacing: .3em; font-size: 13px; color: var(--muted); }
.foot-mark b { color: var(--text); }
.label-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.label-row a, .label-row span { --c: var(--gold); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); transition: border-color .3s, color .3s; }
.label-row a:hover { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); color: var(--text); }
.label-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.label-row b { font-family: var(--serif); letter-spacing: .08em; font-weight: 700; color: var(--text); font-size: 13px; }
.label-row small { color: var(--dim); font-size: 12px; }
.label-row span { opacity: .7; }
.copy { margin: 0; color: var(--dim); font-size: 12px; }

/* ── 들어올 때 ── */
.hero > *, .labels, .week { animation: rise .9s var(--ease) both; }
.hero .word { animation-delay: .08s; } .hero .orn { animation-delay: .16s; } .hero .lead { animation-delay: .22s; }
.labels { animation-delay: .3s; } .week { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── 좁은 화면 ── */
@media (max-width: 860px) {
  .days { grid-template-columns: minmax(0, 1fr); }
  .day { min-height: 0; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .day:first-child { border-top: 0; }
  .day-h { width: 74px; flex: none; }
  .day.is-today .day-h::after { display: none; }
  .day.is-today { box-shadow: inset 3px 0 0 var(--gold); background: linear-gradient(90deg, rgba(201, 162, 75, .12), transparent 70%); }
  .day .slots { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; flex: 1; }
  .slot { flex-direction: row; align-items: baseline; gap: 8px; padding: 6px 10px; }
}
@media (max-width: 480px) {
  .poster { min-height: 0; aspect-ratio: 4 / 5; border-radius: 18px; }
  .art { padding: 52px 28px 4px; }
  .info { padding: 0 22px 22px; }
  .idx { top: 22px; left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
