/* KMVA / 월드케이팝센터 — 브랜드 고정 다크 테마 (네이비 + 골드) */
:root {
  --navy-950: #070a14;
  --navy-900: #0d1224;
  --navy-800: #141a30;
  --navy-700: #1b2340;
  --gold-300: #e8cf94;
  --gold-400: #d4b060;
  --gold-600: #a9812f;
  --ink-100: #f3f0e6;
  --ink-400: #9099b3;
  --line: rgba(212, 176, 96, 0.18);
  --danger: #e5484d;
  --success: #3dd68c;
  --radius: 10px;

  /* 크리스탈 파셋(면) 악센트 — 트로피의 여러 단면이 다른 빛을 받는 컨셉 */
  --accent-rgb: 212, 176, 96;      /* gold (기본) */
  --accent: #d4b060;
  --accent-soft: #e8cf94;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-950);
  color: var(--ink-100);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  line-height: 1.65;
  /* 한글은 글자 단위가 아닌 단어(어절) 단위로 줄바꿈되도록 — 기본값(normal)은 아무 글자 사이에서나 끊겨 어색해 보임 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
main { min-height: 60vh; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header / GNB ─────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--navy-950) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: Georgia, "Nanum Myeongjo", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  white-space: nowrap;
}
.brand span { color: var(--gold-400); }
nav.gnb {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.98rem;
  flex-wrap: wrap;
}
nav.gnb a { color: var(--ink-400); transition: color 0.15s ease; white-space: nowrap; }
nav.gnb a:hover { color: var(--gold-300); }
nav.gnb .gnb-cta {
  border: 1px solid var(--gold-600);
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
}
nav.gnb .lang-switch {
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--ink-100);
}
.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--gold-600);
  background: rgba(212, 176, 96, 0.08);
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--gold-300) !important;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.pt-chip .pt-icon { color: var(--gold-400); flex-shrink: 0; }
.gnb-toggle { display: none; background: none; border: none; color: var(--ink-100); font-size: 1.3rem; cursor: pointer; }

@media (max-width: 860px) {
  nav.gnb {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 28px 22px;
    gap: 14px;
  }
  nav.gnb.open { display: flex; }
  .gnb-toggle { display: block; }
}

/* ── Hero (슬라이더) ──────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--navy-950);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }

.hero-track {
  display: flex;
  transition: transform .7s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}

.hero-slide {
  flex: 0 0 100%;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(55% 65% at 80% 15%, rgba(var(--accent-rgb), .26), transparent 70%),
    radial-gradient(40% 50% at 10% 85%, rgba(var(--accent-rgb), .12), transparent 70%);
  pointer-events: none;
  transition: background 1s ease;
}
.hero-slide .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
@media (max-width: 860px) { .hero-slide .wrap { grid-template-columns: 1fr; } }

.hero-copy { max-width: 620px; }
.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  transition: color .5s ease;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; transition: background .5s ease; }
h1.title {
  font-family: Georgia, "Nanum Myeongjo", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--ink-100) 25%, var(--accent-soft) 52%, var(--ink-100) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background 0.6s ease;
}
.sub { margin-top: 20px; font-size: 1.02rem; color: var(--ink-400); max-width: 560px; }
.chips { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.chip { border: 1px solid var(--accent); color: var(--accent-soft); font-size: 0.8rem; padding: 7px 16px; border-radius: 999px; transition: border-color .5s ease, color .5s ease; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 장식용 크리스탈 파셋 — 실제 사진 자산 없이 트로피 모티브를 CSS로 표현 */
.hero-visual { position: relative; height: 340px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .hero-visual { display: none; } }
.facet { position: absolute; opacity: .9; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); transition: background 0.6s ease, opacity .6s ease; }
.facet-1 { width: 130px; height: 300px; clip-path: polygon(50% 0%, 100% 18%, 78% 100%, 30% 100%); background: linear-gradient(160deg, var(--accent-soft), rgba(var(--accent-rgb), .25)); left: 90px; top: 10px; }
.facet-2 { width: 100px; height: 230px; clip-path: polygon(50% 0%, 100% 22%, 70% 100%, 20% 100%); background: linear-gradient(200deg, rgba(255,255,255,.85), rgba(var(--accent-rgb), .35)); left: 0px; top: 60px; opacity: .75; }
.facet-3 { width: 90px; height: 190px; clip-path: polygon(50% 0%, 100% 25%, 65% 100%, 15% 100%); background: linear-gradient(140deg, var(--accent), rgba(var(--accent-rgb), .15)); right: 10px; top: 100px; opacity: .65; }

.hero-nav { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dot { width: 26px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); border: none; cursor: pointer; padding: 0; transition: background .25s ease, width .25s ease; }
.hero-dot.active { background: var(--accent); width: 40px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--navy-950) 60%, transparent);
  color: var(--ink-100); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: border-color .2s ease, opacity .2s ease;
}
.hero-arrow:hover { border-color: var(--accent); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* 슬라이드별 크리스탈 파셋 색상 — 같은 트로피의 다른 단면 */
.hero-slide.accent-gold     { --accent-rgb: 212,176,96;  --accent: #d4b060; --accent-soft: #e8cf94; }
.hero-slide.accent-rose     { --accent-rgb: 214,111,120; --accent: #d66f78; --accent-soft: #f0b7bd; }
.hero-slide.accent-emerald  { --accent-rgb: 90,181,150;  --accent: #5ab596; --accent-soft: #a8e0cb; }
.hero-slide.accent-amethyst { --accent-rgb: 158,122,214; --accent: #9e7ad6; --accent-soft: #cdb8ec; }

/* ── Section shell ────────────────────────────────────── */
section.block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-400); display: inline-block; }
.block h2 { margin: 14px 0 0; font-family: Georgia, serif; font-size: 1.5rem; }
.block p.lede { margin-top: 12px; color: var(--ink-400); max-width: 640px; }

/* ── Cards / grid ─────────────────────────────────────── */
.grid { display: grid; gap: 18px; margin-top: 32px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease;
}
.card:hover { border-color: var(--gold-600); transform: translateY(-4px); box-shadow: 0 16px 32px -18px rgba(0,0,0,.55); }
.card .thumb { aspect-ratio: 16/9; background: var(--navy-800); overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-400); }
.card h3 { font-size: 1rem; margin: 0; }
.card .artist { color: var(--ink-400); font-size: 0.86rem; }
.card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--ink-400); padding-top: 10px; }
.card .vote-count { color: var(--gold-300); font-weight: 600; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--navy-800); color: var(--ink-100);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--gold-600); }
.btn-gold { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-outline { background: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }

/* ── Forms ────────────────────────────────────────────── */
.form-shell { max-width: 460px; margin: 60px auto; padding: 0 20px; }
.form-shell.wide { max-width: 720px; }
.form-card { background: var(--navy-900); border: 1px solid var(--line); border-radius: 14px; padding: 34px 30px; }
.form-card h1 { font-family: Georgia, serif; font-size: 1.4rem; margin: 0 0 6px; }
.form-card .desc { color: var(--ink-400); font-size: 0.86rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--ink-400); margin-bottom: 6px; }
.field .req { color: var(--gold-400); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=tel], .field input[type=date], .field input[type=url],
.field input[type=number], .field select, .field textarea {
  width: 100%; padding: 11px 13px; background: var(--navy-800);
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink-100);
  font-size: 0.92rem; font-family: inherit; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-400); }
.field .hint { font-size: 0.76rem; color: var(--ink-400); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--ink-400); margin-bottom: 10px; cursor: pointer; }
.checkline input { margin-top: 3px; accent-color: var(--gold-400); }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 18px; }
.alert-error { background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.35); color: #ff9b9e; }
.alert-success { background: rgba(61, 214, 140, 0.1); border: 1px solid rgba(61, 214, 140, 0.35); color: var(--success); }
.alert-info { background: rgba(212, 176, 96, 0.08); border: 1px solid var(--line); color: var(--gold-300); }

.divider-or { display: flex; align-items: center; gap: 12px; color: var(--ink-400); font-size: 0.76rem; margin: 20px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.form-links { margin-top: 18px; text-align: center; font-size: 0.82rem; color: var(--ink-400); }
.form-links a { color: var(--gold-300); }

/* ── Tables (admin/mypage) ───────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin-top: 24px; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.86rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.data thead th { color: var(--gold-400); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; }
table.data td { color: var(--ink-100); }
table.data td.dim { color: var(--ink-400); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-pending { background: rgba(212,176,96,.15); color: var(--gold-300); }
.badge-approved { background: rgba(61,214,140,.15); color: var(--success); }
.badge-rejected { background: rgba(229,72,77,.15); color: #ff9b9e; }
.badge-active { background: rgba(61,214,140,.15); color: var(--success); }

/* ── Stat tiles (admin dashboard) ─────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-top: 20px; }
.stat-tile { background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.stat-tile .label { font-size: 0.72rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; }
.stat-tile .value { font-family: Georgia, serif; font-size: 1.6rem; margin-top: 6px; color: var(--gold-300); }

/* ── Detail page (entry_detail) ──────────────────────────── */
.detail-video { aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.detail-video iframe, .detail-video video { width: 100%; height: 100%; display: block; }
.credit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; margin-top: 16px; font-size: 0.84rem; }
.credit-list div span { display: block; color: var(--ink-400); font-size: 0.72rem; margin-bottom: 2px; }

/* ── Partners (공동주최/파트너) ───────────────────────────── */
section.partners { padding: 76px 0; border-bottom: 1px solid var(--line); }
.partner-intro { max-width: 640px; }
.partner-strip {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .partner-strip { grid-template-columns: 1fr; } }
.partner-chip {
  background: #ffffff; border-radius: 12px; padding: 24px 20px;
  min-height: 148px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-chip:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(0,0,0,.4); }
.partner-chip .logo-box { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; }
.partner-chip .logo-box img { width: 160px; height: 56px; object-fit: contain; display: block; }
.partner-chip .role { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--navy-800); font-weight: 700; text-transform: uppercase; opacity: 0.65; text-align: center; }
.partner-role-note { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.partner-role-note div { border-left: 2px solid var(--gold-400); padding: 4px 0 4px 14px; font-size: 0.82rem; color: var(--ink-400); }
.partner-role-note div b { display: block; color: var(--ink-100); font-size: 0.88rem; margin-bottom: 2px; }

/* ── Season bar (연도 선택) ───────────────────────────────── */
.season-bar { border-bottom: 1px solid var(--line); background: var(--navy-900); padding: 12px 0; }
.season-bar .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.season-form { display: flex; align-items: center; gap: 8px; }
.season-form label { font-size: 0.78rem; color: var(--ink-400); }
.season-form select {
  background: var(--navy-800); color: var(--ink-100); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font-size: 0.84rem; font-family: inherit;
}
.season-archive-badge { font-size: 0.76rem; color: var(--gold-300); border: 1px solid var(--gold-600); border-radius: 999px; padding: 3px 12px; }
.season-archive-link { margin-left: auto; font-size: 0.8rem; color: var(--ink-400); }
.season-archive-link:hover { color: var(--gold-300); }

/* ── Community: FAQ 아코디언 ──────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; }
.faq-item summary {
  padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-q {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-400); color: var(--navy-950); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
}
.faq-item .faq-a { display: flex; gap: 12px; padding: 0 0 18px; color: var(--ink-400); font-size: 0.9rem; line-height: 1.8; }
.faq-item .faq-a-mark {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--gold-600); color: var(--gold-300); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
}

/* ── Community: 게시글 상세 ──────────────────────────────── */
.post-detail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-top: 20px; }
.post-meta { display: flex; gap: 14px; color: var(--ink-400); font-size: 0.82rem; margin-top: 8px; }
.post-content { margin-top: 20px; line-height: 1.9; white-space: pre-line; }
.reply-box { margin-top: 26px; background: var(--navy-900); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.reply-box .reply-label { font-size: 0.76rem; color: var(--gold-400); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }

/* ── Scroll reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Footer ───────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 26px 0; font-size: 0.78rem; color: var(--ink-400); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-links a { margin-right: 14px; }
.foot-orgs { margin-top: 4px; color: var(--ink-400); }

/* ── Misc ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-400); }
.pkg-badge-popular { background: var(--gold-400); color: var(--navy-950); font-size: 0.68rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
