:root {
  --bg-black: #080606;
  --bg-black-2: #0d0709;

  --ink: #e6c9a3;
  --ink-dim: #c2a878;

  --gold: #d9a94a;
  --gold-dim: #a3853f;

  --red: #b8232f;
  --red-accent: #7a1c2b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg-black-2);
  color: var(--ink);
  font-family: 'Noto Serif KR', 'Cormorant Garamond', serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  word-break: keep-all;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-black);
  overflow: hidden;
  padding-bottom: 60px;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/wood.jpg") center center / cover no-repeat;
  filter: grayscale(1) brightness(0.09) contrast(1.1);
  z-index: 0;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 45% at 50% 8%, rgba(120, 20, 24, 0.16), transparent 60%),
    radial-gradient(ellipse 80% 35% at 50% 100%, rgba(90, 14, 18, 0.1), transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 50;
}

/* ---------- Header (Episodes/Schedule와 동일한 헤더 언어) ---------- */

.profile-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 24px 24px;
}

.ep-channel {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--red);
  margin-bottom: 8px;
}

.profile-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.profile-title {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--gold);
}

.profile-rule {
  width: 60px;
  height: 1px;
  margin: 16px auto 12px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* ================================================
   Cast grid — 480px 프레임 안에서 2열 고정
   ================================================ */

.cast-grid {
  position: relative;
  z-index: 10;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 340px;
  margin: 0 auto 20px;
}

.cast-card {
  border: 1px solid var(--gold-dim);
  border-left: 2px solid var(--red-accent);
  background: rgba(10, 6, 6, 0.35);
  padding: 8px 8px 10px;
}

.cast-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(217, 169, 74, 0.1), rgba(0, 0, 0, 0.45));
  border: 1px solid rgba(168, 134, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cast-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  z-index: 0;
}

.cast-noplay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cast-noplay-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-size: 12px;
  padding-left: 2px;
  background: rgba(0, 0, 0, 0.35);
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cast-photo-empty {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 1;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold-dim);
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
}

.cast-name {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-meta {
  font-family: 'Courier New', monospace;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--ink-dim);
  margin-top: 5px;
}

/* ---------- Nav ---------- */

.stage nav {
  position: relative;
  width: 100%;
  z-index: 25;
  margin-top: 36px;
  padding: 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  text-decoration: none;
  color: var(--gold-dim);
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-kr {
  margin-top: 2px;
  font-family: 'Noto Serif KR', serif;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #d9c4a4;
  opacity: 0.8;
}

nav a.active {
  padding: 8px 20px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold);
}

nav a:not(.active):hover {
  color: var(--gold);
}

nav .sep {
  color: var(--gold-dim);
  opacity: 0.5;
  font-size: 12px;
}

.floor-glow {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 450px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(90, 14, 18, 0.12), transparent 70%);
  filter: blur(6px);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 360px) {
  .profile-title { font-size: 26px; }
}