/* ===================================================
   webinar.css — IBD ON AIR · 린버크 보이는 라디오 (ibonair.sympolive.com)
   2026nurseacademy(pd-on 계열) 레이아웃 구조 + '라디오 스튜디오' 스킨
   팔레트(초청 포스터 기준): 다크 우드 #2E1205·#3A1808 / 옐로 #FAD003 / ON AIR 레드 #E23712 / 크림 #E0C6A6
   entry(입장) / main(로비) / watch(시청) / 레이어 팝업 공통
   =================================================== */

/* ── Pretendard 웹폰트 (자체 호스팅) ── */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/Pretendard-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/Pretendard-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/Pretendard-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/Pretendard-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/Pretendard-ExtraBold.woff2') format('woff2'); }

/* ── 리셋 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── CSS 변수 — 팔레트만 바꾸면 전체 톤이 바뀐다 ── */
:root {
    /* 나무 패널 (포스터 배경에서 샘플링) */
    --wood-0: #0E0604;
    --wood-1: #1A0B06;
    --wood-2: #2A1208;
    --wood-3: #3A1808;
    --wood-4: #4A2210;
    --wood-hi: #72301C;

    /* 옐로(브랜드) · 황동(액자) · ON AIR 레드 */
    --gold:      #FAD003;
    --gold-2:    #F4CE1E;
    --gold-d:    #D9B300;
    --gold-soft: rgba(250,208,3,0.12);
    --gold-line: rgba(250,208,3,0.26);
    --brass:     #B8862E;
    --brass-hi:  #F1D27A;
    --brass-lo:  #7A5218;
    --onair:     #E23712;

    /* 글자 */
    --cream:       #F5E9D3;
    --cream-2:     #E0C6A6;
    --cream-muted: rgba(245,233,211,0.64);
    --cream-faint: rgba(245,233,211,0.40);
    --ink:         #241109;   /* 옐로 버튼·크림 칩 위 글자 */
    --txt:   var(--cream);
    --muted: var(--cream-muted);
    --border: var(--gold-line);
    --danger: #FF7A66;

    /* 면 */
    --panel:   rgba(24,11,6,0.82);
    --panel-2: rgba(40,19,10,0.88);
    --input:   rgba(12,5,3,0.55);

    --radius-card: 22px;
    --shadow-card: 0 2px 2px rgba(0,0,0,0.35), 0 26px 64px rgba(0,0,0,0.55);
    --shadow-soft: 0 10px 28px rgba(0,0,0,0.38);
    --grad-gold: linear-gradient(180deg, #FFE24A 0%, var(--gold) 45%, #E3B900 100%);
    --grad-brass: linear-gradient(160deg, #F6DE8E 0%, #B8862E 26%, #F1D27A 48%, #8A5F1C 74%, #D8B45A 100%);
}

/* ── 베이스 — 다크 우드 패널 배경 ── */
html, body { min-height: 100%; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--txt);
    background-color: #1F0E08;
    background-image:
        radial-gradient(110% 60% at 50% -8%, rgba(114,48,28,0.55), transparent 62%),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.30) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(90deg, rgba(255,196,130,0.035) 0 2px, transparent 2px 9px, rgba(0,0,0,0.06) 9px 12px, transparent 12px 31px),
        linear-gradient(90deg, #22100A 0%, #2D1409 28%, #24110A 50%, #2F160A 74%, #1F0E08 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
}
/* 비네트 — 가장자리를 어둡게 눌러 스튜디오 조명 느낌 (클릭 방해 없음) */
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(0,0,0,0.50) 100%);
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(250,208,3,0.35); color: #fff; }

/* ── 브랜드 로고 칩 (abbvie · RINVOQ — 투명 PNG 라 크림 칩이 있어야 보인다) ── */
.brand-chip {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 7px 16px; border-radius: 999px;
    background: #FBF6EC; box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(184,134,46,0.35);
}
.brand-logo { display: block; height: 26px; width: auto; }
.brand-logo--single { height: 30px; }
.brand-sep { width: 1px; height: 22px; background: rgba(36,17,9,0.18); }

/* ── 페이지 좌측 상단 브랜드 · 우측 상단 배지 ── */
.page-brand { position: fixed; top: 18px; left: 24px; z-index: 20; }
.page-badge {
    position: fixed; top: 24px; right: 26px; z-index: 20;
    font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
    color: var(--gold); background: rgba(14,6,4,0.55);
    border: 1px solid var(--gold-line); border-radius: 999px;
    padding: 7px 14px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ── ON AIR 네온 사인 (라이브 상태) ── */
.onair {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 16px 7px 13px; border-radius: 9px;
    background: #170504; border: 1px solid rgba(255,120,90,0.35);
    color: #FF6A4A; font-size: 14px; font-weight: 800; letter-spacing: .16em;
    text-shadow: 0 0 8px rgba(255,90,50,0.95), 0 0 20px rgba(226,55,18,0.55);
    box-shadow: inset 0 0 14px rgba(226,55,18,0.35), 0 0 24px rgba(226,55,18,0.45);
    animation: onairGlow 2.4s ease-in-out infinite;
}
.onair::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FF5A3C; box-shadow: 0 0 10px #FF5A3C, 0 0 18px rgba(255,90,60,0.7); }
@keyframes onairGlow {
    0%, 100% { box-shadow: inset 0 0 14px rgba(226,55,18,0.35), 0 0 24px rgba(226,55,18,0.45); }
    50%      { box-shadow: inset 0 0 18px rgba(226,55,18,0.5),  0 0 36px rgba(226,55,18,0.7); }
}
/* 대기(진행 예정) — 꺼진 사인 */
.onair.is-off { color: rgba(255,120,90,0.42); text-shadow: none; box-shadow: none; animation: none; border-color: rgba(255,120,90,0.18); }
.onair.is-off::before { background: rgba(255,90,60,0.35); box-shadow: none; }

/* ── 황동 액자 (포스터의 창틀) — 안쪽에 .frame-in 을 둔다 ── */
.frame { position: relative; padding: 3px; border-radius: var(--radius-card); background: var(--grad-brass); box-shadow: var(--shadow-card); }
.frame-in { border-radius: calc(var(--radius-card) - 3px); overflow: hidden; background: var(--wood-1); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6); }

/* ── 카드 진입 애니메이션 ── */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.u-card-in { animation: cardIn .65s cubic-bezier(.16,.84,.44,1) both; }

/* ── eyebrow 라벨 ── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 8px rgba(226,55,18,0.8); }
.eyebrow.is-live::before { animation: eyebrowPulse 2s ease-out infinite; }
@keyframes eyebrowPulse {
    0%   { box-shadow: 0 0 0 0 rgba(226,55,18,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(226,55,18,0); }
    100% { box-shadow: 0 0 0 0 rgba(226,55,18,0); }
}

/* ── 가는 구분선 ── */
.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250,208,3,0.35) 20%, rgba(250,208,3,0.35) 80%, transparent);
    margin: 0 0 16px;
}

/* ── 폼 ── */
.form-control {
    width: 100%; padding: 15px 16px;
    font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--cream);
    background: var(--input);
    border: 1.5px solid rgba(250,208,3,0.30); border-radius: 12px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-control::placeholder { color: var(--cream-faint); font-weight: 500; }
.form-control:focus {
    outline: none; border-color: var(--gold); background: rgba(12,5,3,0.75);
    box-shadow: 0 0 0 4px rgba(250,208,3,0.16);
}
.form-group { margin-bottom: 11px; }

/* ── 입장 버튼 (옐로) ── */
.btn-enter {
    position: relative; overflow: hidden;
    width: 100%; padding: 16px;
    background: var(--grad-gold); color: var(--ink);
    border: none; border-radius: 12px;
    font-family: inherit; font-size: 16.5px; font-weight: 800; letter-spacing: .02em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 6px;
    box-shadow: 0 10px 26px rgba(250,208,3,0.28), inset 0 1px 0 rgba(255,255,255,0.45);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-enter:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 34px rgba(250,208,3,0.40), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-enter:active { transform: translateY(0); }
.btn-enter svg { width: 18px; height: 18px; stroke: var(--ink); transition: transform .2s; }
.btn-enter:hover svg { transform: translateX(3px); }
.btn-enter::after {   /* 광택 스윕 */
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-18deg); pointer-events: none; transition: left .5s ease;
}
.btn-enter:hover::after { left: 120%; }

/* ── 사전 등록 버튼 (아웃라인) ── */
.btn-register {
    width: 100%; padding: 13px;
    margin-top: 10px;
    background: transparent; color: var(--gold);
    border: 1.5px solid rgba(250,208,3,0.55);
    border-radius: 12px;
    font-family: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.btn-register:hover { background: var(--gold-soft); border-color: var(--gold); box-shadow: 0 8px 20px rgba(250,208,3,0.14); }
.btn-register svg { width: 18px; height: 18px; stroke: currentColor; }

/* 하단 토스트 (입장 오류 — 레이아웃에 영향 없음) */
.form-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px);
    z-index: 700; display: inline-flex; align-items: center; gap: 9px;
    max-width: 90vw; padding: 13px 20px; border-radius: 12px;
    background: linear-gradient(180deg, #F0533A, #D62F14); color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-align: center; line-height: 1.45;
    box-shadow: 0 14px 34px rgba(214,47,20,0.45);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.form-toast.show { opacity: 1; transform: translate(-50%, 0); }
.form-toast svg { width: 18px; height: 18px; stroke: #fff; flex-shrink: 0; }

/* 인풋 위 안내 박스 */
.form-lead {
    display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; font-weight: 600; color: var(--cream-2); line-height: 1.45;
    background: var(--gold-soft);
    border: 1px solid var(--gold-line); border-radius: 11px;
    padding: 11px 14px; margin-bottom: 14px;
}
.form-lead svg { width: 17px; height: 17px; stroke: var(--gold); flex-shrink: 0; }
.form-lead b { font-weight: 800; color: var(--gold); }

/* 버튼 하단 안내 문구 */
.login-note { text-align: left; font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 14px; }

/* ── 알림 박스 ── */
.alert-error, .alert-success { font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; }
.alert-error   { background: rgba(226,55,18,0.14); border: 1px solid rgba(255,122,102,0.45); color: #FFB3A6; }
.alert-success { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); }

/* ═══════════════ 입장(entry) 레이아웃 ═══════════════ */
body.page-index {
    display: flex; flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 92px 16px 0;
}
.card-wrap {
    width: auto; max-width: 100%;
    display: inline-flex; align-items: stretch;   /* 좌우 한 카드처럼 동일 높이 */
    position: relative; z-index: 1;
    margin: 2vh auto 40px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--wood-1);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.6);
}
/* 황동 테두리 — 카드 가장자리에 얇은 그라데이션 라인 */
.card-wrap::before {
    content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
    border-radius: inherit; padding: 2px;
    background: var(--grad-brass);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}

/* 좌측: 정보 + 폼 */
.left-panel {
    /* 카드 높이는 우측 포스터(680px 폭 → 470px)가 정한다 — 좌측 내용이 그보다 커지면 포스터 위아래에 여백이 생기니 여기 여백을 늘리지 말 것 */
    width: 500px; flex-shrink: 0;
    padding: 30px 44px 28px;
    display: flex; flex-direction: column; justify-content: flex-start;
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(114,48,28,0.30), transparent 70%),
        linear-gradient(180deg, rgba(42,18,8,0.96) 0%, rgba(22,10,6,0.98) 100%);
    position: relative; z-index: 2;
}
/* 타이틀 락업 (포스터의 '린버크 보이는 라디오' 그래픽) */
.title-lockup { display: block; width: min(300px, 100%); height: auto; margin: 2px 0 6px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45)); }
.event-title {
    font-size: clamp(24px, 3.2vw, 32px); font-weight: 800;
    color: var(--cream); letter-spacing: -0.025em; line-height: 1.3;
    margin-bottom: 10px;
}
.event-title .tt-brand { color: var(--gold); }
.event-meta { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.event-meta b { color: var(--cream); font-weight: 600; }
/* 일정 칩 */
.event-date { margin: 0 0 12px; }   /* 입장 화면 좌측 패널의 첫 요소 (타이틀·라벨 없음) */
.event-date .ev-sched {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 12px;
    background: var(--gold-soft); border: 1px solid var(--gold-line);
    font-size: 17px; font-weight: 700; color: var(--cream); letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
.event-date .ev-sched svg { width: 18px; height: 18px; stroke: var(--gold); flex-shrink: 0; }
.event-date .ev-sched .tm { color: var(--gold); }
.left-panel .panel-divider { margin: 14px 0 12px; }
.left-panel .form-lead { margin-bottom: 10px; }
.left-panel .form-group { margin-bottom: 9px; }
.left-panel .btn-enter { margin-top: 4px; }
.left-panel .login-note { margin-top: 10px; }
.left-panel .btn-register { margin-top: auto; padding-top: 12px; padding-bottom: 12px; }
.left-panel .login-note + .btn-register { margin-top: 10px; }

/* 우측: 히어로 (포스터) — 포스터(1221×844)가 패널보다 납작해 위아래 여백이 생긴다.
   포스터 가장자리(어두운 나무·비네트)와 같은 톤의 나무결 배경을 깔고 이미지 위아래를 살짝 페이드해 이음새를 숨긴다 */
.right-panel {
    width: 680px; flex-shrink: 0;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    /* 포스터 위·아래 가장자리 색(#2F1506~#371607)에 맞춘 바탕 — 이미지 경계가 튀지 않게 */
    background-color: #301506;
    background-image:
        radial-gradient(75% 65% at 50% 50%, transparent 55%, rgba(0,0,0,0.42) 100%),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(90deg, rgba(255,196,130,0.05) 0 2px, transparent 2px 7px, rgba(0,0,0,0.08) 7px 10px, transparent 10px 23px),
        linear-gradient(180deg, #331607 0%, #2E1406 100%);
}
.right-panel.has-image { border-left: 1px solid rgba(0,0,0,0.6); }
.right-panel.has-image::before {   /* 좌측 경계 안쪽 그림자 — 패널 분리감 */
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    box-shadow: inset 28px 0 40px -30px rgba(0,0,0,0.7);
}
.hero-image {
    display: block; width: 100%; height: auto;   /* 자연 높이 — 이 높이가 곧 카드 높이 */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 97%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.right-content { position: relative; z-index: 1; text-align: center; padding: 48px; }
.right-tagline { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: var(--gold); letter-spacing: -0.025em; line-height: 1.4; margin-bottom: 12px; }
.right-sub { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ── 좌측 패널 진입 스태거 — 카드 등장 후 순차 페이드 ── */
@media (prefers-reduced-motion: no-preference) {
    .page-index .left-panel > * { opacity: 0; animation: cardIn .5s cubic-bezier(.16,.84,.44,1) both; }
    .page-index .left-panel > *:nth-child(1) { animation-delay: .10s; }
    .page-index .left-panel > *:nth-child(2) { animation-delay: .16s; }
    .page-index .left-panel > *:nth-child(3) { animation-delay: .22s; }
    .page-index .left-panel > *:nth-child(4) { animation-delay: .28s; }
    .page-index .left-panel > *:nth-child(5) { animation-delay: .34s; }
    .page-index .left-panel > *:nth-child(6) { animation-delay: .40s; }
    .page-index .left-panel > *:nth-child(7) { animation-delay: .46s; }
    .page-index .left-panel > *:nth-child(8) { animation-delay: .52s; }
}

/* ── 초대의 글 (입장 화면 카드 아래) ── */
.greet {
    width: 100%; max-width: 1180px; margin: 0 auto 48px;   /* 입장 카드(500+680)와 같은 폭 */
}
.greet-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.greet-head .eyebrow { margin: 0; }
.greet-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(250,208,3,0.35), transparent); }
/* 글 — 나무 패널 배경(img/background.png) 위에 크림색 본문 */
.greet-text {
    padding: 26px 34px 24px; font-size: 14.5px; line-height: 1.8; color: var(--cream-2);
    background: url('/img/background.png') center / cover no-repeat, var(--wood-2);
}
.greet-text p { margin-bottom: 11px; }
.greet-text p:last-of-type { margin-bottom: 0; }
.greet-text b { color: var(--cream); font-weight: 700; }
.greet-text .hl { color: var(--gold); font-weight: 800; }
.greet-text .sign { margin-top: 16px; text-align: right; }
.greet-text .sign b { display: block; font-size: 15px; color: var(--cream); }
.greet-text .sign span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
    .greet-text { padding: 22px 20px 20px; font-size: 14px; }
}

/* ═══════════════ 사전등록 레이어 팝업 (entry) ═══════════════ */
.regm { display: none; position: fixed; inset: 0; z-index: 680; background: rgba(8,3,2,0.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); align-items: center; justify-content: center; padding: 20px; }
.regm.open { display: flex; animation: certFade .22s ease; }
.regm-card {
    position: relative; width: 100%; max-width: 640px; max-height: 92vh;
    overflow-y: auto; overflow-x: hidden;
    border-radius: 22px; background: var(--wood-1);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(241,210,122,0.22);
    animation: svPop .3s cubic-bezier(.16,.84,.44,1);
}
@keyframes svPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.regm-card::-webkit-scrollbar { width: 6px; }
.regm-card::-webkit-scrollbar-thumb { background: rgba(250,208,3,0.35); border-radius: 6px; }
.regm-head {
    position: relative; padding: 20px 32px 16px;
    background: linear-gradient(135deg, #4A2210 0%, #2A1208 70%);
    border-bottom: 1px solid rgba(250,208,3,0.22);
}
.regm-title { font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--gold); line-height: 1.1; }
.regm-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.regm-close {
    position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
    border: 1px solid rgba(250,208,3,0.25); border-radius: 10px; background: rgba(0,0,0,0.25); color: var(--cream);
    font-size: 21px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s;
}
.regm-close:hover { background: rgba(250,208,3,0.14); border-color: var(--gold); }
.regm-body { padding: 18px 32px 24px; }
.regm-guide { font-size: 14px; font-weight: 700; color: var(--cream-2); margin-bottom: 10px; }
.regm-input {
    width: 100%; height: 50px; padding: 0 16px; margin-bottom: 9px;
    font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--cream);
    border: 1.5px solid rgba(250,208,3,0.28); border-radius: 12px; background: var(--input);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.regm-input::placeholder { color: var(--cream-faint); font-weight: 500; }
.regm-input:focus { outline: none; border-color: var(--gold); background: rgba(12,5,3,0.75); box-shadow: 0 0 0 4px rgba(250,208,3,0.16); }
/* 동의 박스 */
.regm-sec { margin-top: 10px; border: 1px solid rgba(250,208,3,0.20); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.22); }
.regm-sec-title { font-size: 13.5px; font-weight: 800; color: var(--gold); padding: 10px 15px 0; }
.regm-sec-body { font-size: 12.5px; line-height: 1.6; color: var(--muted); padding: 6px 15px 9px; max-height: 96px; overflow-y: auto; }
.regm-sec-body::-webkit-scrollbar { width: 5px; }
.regm-sec-body::-webkit-scrollbar-thumb { background: rgba(250,208,3,0.3); border-radius: 5px; }
.regm-agree {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 15px;
    border-top: 1px solid rgba(250,208,3,0.18); background: rgba(250,208,3,0.06);
    font-size: 13.5px; font-weight: 700; color: var(--cream-2); cursor: pointer; line-height: 1.45;
    transition: background .15s, color .15s;
}
.regm-agree:hover { background: rgba(250,208,3,0.12); }
.regm-agree input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; margin-top: 1px; }
.regm-agree:has(input:checked) { color: var(--gold); background: rgba(250,208,3,0.14); }
.regm-agree .req { color: #FF9C8C; }
/* 버튼 */
.regm-btns { display: flex; gap: 10px; margin-top: 16px; }
.regm-submit {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px; border: none; border-radius: 12px;
    background: var(--grad-gold); color: var(--ink);
    font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: .02em; cursor: pointer;
    box-shadow: 0 10px 24px rgba(250,208,3,0.28); transition: transform .15s, filter .15s, box-shadow .15s;
}
.regm-submit svg { width: 18px; height: 18px; stroke: var(--ink); }
.regm-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(250,208,3,0.38); }
.regm-cancel {
    padding: 14px 24px; border: 1.5px solid rgba(250,208,3,0.30); border-radius: 12px; background: transparent;
    font-family: inherit; font-size: 15px; font-weight: 700; color: var(--cream-2); cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.regm-cancel:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.regm-err { margin-bottom: 14px; padding: 12px 16px; border-radius: 11px; background: rgba(226,55,18,0.14); border: 1px solid rgba(255,122,102,0.45); color: #FFB3A6; font-size: 14px; font-weight: 600; }
@media (max-width: 560px) {
    .regm { padding: 12px; }
    .regm-head { padding: 20px 20px 16px; }
    .regm-title { font-size: 20px; }
    .regm-body { padding: 18px 18px 22px; }
    .regm-input { height: 52px; font-size: 15px; }
    .regm-btns { flex-direction: column; }
}

/* ── 등록완료 모달 ── */
.done-modal { display: none; position: fixed; inset: 0; z-index: 650; background: rgba(8,3,2,0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.done-modal.open { display: flex; animation: certFade .22s ease; }
.done-card { background: var(--wood-1); border-radius: 20px; width: 100%; max-width: 400px; padding: 36px 28px 26px; text-align: center; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(241,210,122,0.22); animation: svPop .3s cubic-bezier(.16,.84,.44,1); }
.done-ico { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad-gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(250,208,3,0.35); }
.done-ico svg { width: 32px; height: 32px; stroke: var(--ink); }
.done-title { font-size: 18px; font-weight: 800; color: var(--cream); line-height: 1.5; letter-spacing: -.01em; }
.done-sub { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.done-btn { margin-top: 22px; width: 100%; padding: 14px; border: none; border-radius: 12px; background: var(--grad-gold); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(250,208,3,0.28); transition: transform .15s, filter .15s; }
.done-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ═══════════════ 입장 후 로비 (main.php) ═══════════════ */
body.page-main { display: flex; flex-direction: column; min-height: 100vh; padding: 0; }

/* 상단 네비 (로고 + 회원 상태) */
.site-nav {
    position: sticky; top: 0; z-index: 100; height: 68px;
    padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(14,6,4,0.78);
    -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid rgba(250,208,3,0.18);
}
.sn-logo { display: flex; align-items: center; text-decoration: none; }
.sn-logo .brand-chip { padding: 6px 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(184,134,46,0.35); }
.sn-logo .brand-logo { height: 24px; }
.sn-logo-txt { font-size: 22px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.sn-right { display: flex; align-items: center; gap: 12px; }
.sn-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-gold); color: var(--ink); font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(250,208,3,0.3); }
.sn-info { display: flex; flex-direction: column; line-height: 1.3; }
.sn-name { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; color: var(--cream); }
.sn-hosp { font-size: 12.5px; color: var(--muted); }
.sn-logout { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(250,208,3,0.25); color: var(--cream-2); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.sn-logout:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.sn-profile { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.sn-profile:hover { background: rgba(250,208,3,0.08); border-color: rgba(250,208,3,0.3); }
.sn-edit-ico { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
.sn-profile:hover .sn-edit-ico { color: var(--gold); }
@media (max-width: 520px) { .site-nav { padding: 0 14px; height: 62px; } .sn-info { display: none; } .sn-logo .brand-logo { height: 20px; } .sn-logo .brand-chip { gap: 10px; padding: 5px 11px; } }
/* 정보 수정 완료 토스트 */
.profile-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 700; padding: 13px 24px; border-radius: 999px; background: var(--grad-gold); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(250,208,3,0.35); animation: certFade .25s ease; }
.profile-toast.hide { opacity: 0; transition: opacity .4s ease; }

/* 상단 배너 — 스튜디오 조명 + 포스터 */
.main-banner { position: relative; overflow: hidden; width: 100%; border-bottom: 1px solid rgba(250,208,3,0.14); }
.main-banner::before {   /* 스포트라이트 */
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(60% 90% at 78% 0%, rgba(250,208,3,0.13), transparent 60%),
                radial-gradient(50% 80% at 12% 100%, rgba(114,48,28,0.55), transparent 65%);
}
.main-banner-inner {
    position: relative; z-index: 2;
    max-width: 1120px; margin: 0 auto;
    min-height: 360px;
    padding: 34px 24px 30px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
/* 우측 아트워크 — img/main.png (타이틀 락업 + 연자 3인, 투명 PNG 라 액자 없이 나무 배경 위에 그대로) */
.main-bn-art { flex: 0 1 auto; min-width: 0; }
.main-bn-art img { display: block; height: 330px; width: auto; max-width: 100%; filter: drop-shadow(0 14px 28px rgba(0,0,0,0.5)); }
/* 좌측 텍스트 — 상태 사인 · 일시 · 입장 버튼 */
.main-bn-text { flex: 0 0 auto; min-width: 0; max-width: 440px; padding: 0; }
.main-bn-text .onair { margin-bottom: 18px; }
/* 'IBD ON AIR' 사인 이미지 (img/ibd_onair.png, 392×109 — 나무 배경·테두리가 그려져 있음) */
.main-bn-sign { display: block; width: 270px; height: auto; margin: 0 0 22px; border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,0.55), 0 0 34px rgba(226,55,18,0.28); }
.main-bn-text h1 { line-height: 1.05; letter-spacing: -.01em; }
.main-bn-text h1 .t1 { display: block; font-size: clamp(34px, 5vw, 56px); font-weight: 800; color: var(--cream); }
.main-bn-text h1 .t1 .tt-brand { color: var(--gold); }
.main-bn-text .title-lockup { width: min(360px, 100%); margin: 0 0 4px; }
.main-bn-meta { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; font-size: 19px; font-weight: 600; color: var(--cream-2); letter-spacing: .01em; }
.main-bn-meta .bn-sched { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.main-bn-meta .bn-sched svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; }
.main-bn-meta .bn-sched .tm { color: var(--gold); font-weight: 800; }
/* 배너 입장 버튼 */
.main-bn-enter {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 26px; padding: 16px 42px; border-radius: 13px; border: none;
    font-family: inherit; font-size: 19px; font-weight: 800; letter-spacing: .01em; text-decoration: none; cursor: pointer;
    background: var(--grad-gold); color: var(--ink);
    box-shadow: 0 14px 34px rgba(250,208,3,0.32), inset 0 1px 0 rgba(255,255,255,0.45);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.main-bn-enter:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(250,208,3,0.45), inset 0 1px 0 rgba(255,255,255,0.45); filter: brightness(1.05); }
.main-bn-enter svg { width: 20px; height: 20px; stroke: currentColor; }
/* 진행 예정 — 유리 질감 + 펄스(대기 느낌) */
.main-bn-enter.is-locked {
    background: rgba(250,208,3,0.10); color: var(--cream);
    border: 1.5px solid rgba(250,208,3,0.45);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
    animation: enterPulse 2.4s ease-in-out infinite;
}
.main-bn-enter.is-locked:hover { background: rgba(250,208,3,0.18); transform: translateY(-2px); filter: none; }
@keyframes enterPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 0 0 0 rgba(250,208,3,0.45); }
    55%      { box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 0 0 10px rgba(250,208,3,0); }
}

/* ── 안내 카드 (시스템 가이드 / 문의 / 안내문) ── */
.guide-cards { width: 100%; max-width: 1120px; margin: 22px auto 0; padding: 0 24px; display: flex; gap: 18px; flex-wrap: wrap; }
.guide-card {
    flex: 1 1 0; min-width: 270px; min-height: 92px; display: flex; align-items: center; gap: 16px; text-align: left;
    text-decoration: none; color: inherit;
    padding: 16px 20px; border-radius: 16px; position: relative; overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(250,208,3,0.18);
    box-shadow: var(--shadow-soft); cursor: pointer; font: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.guide-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-gold); opacity: 0; transition: opacity .16s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.5); border-color: rgba(250,208,3,0.5); }
.guide-card:hover::before { opacity: 1; }
.guide-ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--grad-gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(250,208,3,0.28); }
.guide-ico svg { width: 28px; height: 28px; stroke: var(--ink); }
.guide-txt { flex: 1; display: flex; flex-direction: column; }
.guide-title { font-size: 17px; font-weight: 800; color: var(--cream); letter-spacing: -.01em; }
.guide-desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.guide-arrow { flex-shrink: 0; display: flex; align-items: center; color: var(--gold); transition: transform .16s ease; }
.guide-arrow svg { width: 20px; height: 20px; stroke: currentColor; }
.guide-card:hover .guide-arrow { transform: translateX(4px); }
.guide-card.is-disabled { cursor: default; opacity: .6; pointer-events: none; box-shadow: none; }
.guide-card.cert-ready { border-color: rgba(250,208,3,0.7); box-shadow: 0 0 0 2px rgba(250,208,3,0.18), var(--shadow-soft); }
@media (max-width: 620px) { .guide-cards { flex-direction: column; gap: 10px; margin-top: 14px; padding: 0 14px; } .guide-card { flex: 0 0 auto; min-width: 0; min-height: 0; padding: 14px 16px; gap: 13px; }   /* 세로 스택에서는 flex-basis 0 이 높이 0 이 되어 카드가 잘린다 — auto 로 */ .guide-ico { width: 46px; height: 46px; border-radius: 12px; } .guide-ico svg { width: 23px; height: 23px; } .guide-title { font-size: 16px; } .guide-desc { font-size: 13px; } }

/* 콘텐츠 패널 (아젠다) — 황동 액자 안에 밝은 표 */
.main-panel { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 22px auto 56px; padding: 0 24px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-head .eyebrow { margin: 0; }
.section-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(250,208,3,0.35), transparent); }
.main-agenda { padding: 0; }
.agenda-img-wrap { line-height: 0; }
.agenda-img { display: block; width: 100%; height: auto; }
.page-main .greet { margin-bottom: 22px; }

/* ── 안내 팝업 (시스템 가이드/문의/입장 안내/내 정보 공통) ── */
.pop-modal { display: none; position: fixed; inset: 0; z-index: 660; background: rgba(8,3,2,0.70); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.pop-modal.open { display: flex; animation: certFade .22s ease; }
.pop-card { background: var(--wood-1); border-radius: 18px; width: 100%; max-width: 470px; max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(241,210,122,0.22); animation: svPop .3s cubic-bezier(.16,.84,.44,1); }
.pop-head { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(250,208,3,0.18); background: linear-gradient(135deg, rgba(74,34,16,0.6), rgba(42,18,8,0.3)); }
.pop-head-left { display: flex; align-items: center; gap: 11px; }
.pop-head-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--grad-gold); display: flex; align-items: center; justify-content: center; }
.pop-head-ico svg { width: 20px; height: 20px; stroke: var(--ink); }
.pop-title { font-size: 17px; font-weight: 800; color: var(--cream); }
.pop-close { width: 32px; height: 32px; border: 1px solid rgba(250,208,3,0.25); background: rgba(0,0,0,0.25); border-radius: 8px; cursor: pointer; color: var(--cream-2); font-size: 19px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s; }
.pop-close:hover { border-color: var(--gold); color: var(--gold); }
.pop-body { padding: 20px 22px; overflow-y: auto; font-size: 15px; color: var(--cream-2); line-height: 1.75; }
.pop-body p { margin: 0 0 12px; }
.pop-body ul { margin: 0; padding-left: 18px; }
.pop-body li { margin-bottom: 7px; }
.pop-body b { color: var(--gold); font-weight: 700; }
.pop-body .pop-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(250,208,3,0.18); font-size: 13px; color: var(--muted); }
.pop-body::-webkit-scrollbar { width: 6px; }
.pop-body::-webkit-scrollbar-thumb { background: rgba(250,208,3,0.3); border-radius: 6px; }
/* iframe 팝업 (설문·수료증) */
.pop-card--survey, .pop-card--cert { max-width: 640px; height: 88vh; }
.pop-card--cert { max-width: 680px; }
.survey-frame, .cert-frame { flex: 1; width: 100%; border: none; background: #FBF6EC; }
@media (max-width: 520px) { .pop-card--survey, .pop-card--cert { height: 92vh; } }

/* 내 정보 수정 폼 (_profile.php — .reg-row 계열) */
.reg-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.reg-label { font-size: 15px; font-weight: 700; color: var(--cream-2); white-space: nowrap; display: flex; align-items: baseline; }
.reg-label .lt { white-space: pre; }
.reg-label .req { color: var(--gold); margin-left: 2px; flex: none; }
.reg-input {
    width: 100%; height: 48px; padding: 0 14px;
    font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--cream);
    background: var(--input); border: 1.5px solid rgba(250,208,3,0.28); border-radius: 11px;
    transition: border-color .18s, box-shadow .18s;
}
.reg-input::placeholder { color: var(--cream-faint); font-weight: 500; }
.reg-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(250,208,3,0.16); }
.reg-submit {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; margin: 0 auto; padding: 14px 32px;
    background: var(--grad-gold); color: var(--ink); border: none; border-radius: 12px;
    font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: .02em; cursor: pointer;
    box-shadow: 0 10px 22px rgba(250,208,3,0.28); transition: transform .18s, box-shadow .18s, filter .18s;
}
.reg-submit svg { width: 18px; height: 18px; stroke: var(--ink); }
.reg-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 560px) { .reg-row { grid-template-columns: 1fr; gap: 5px; } }

@keyframes certFade { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════ 시청 룸 (watch.php) ═══════════════ */
body.page-watch { display: block; padding: 0; min-height: 100vh; }
.top-nav {
    position: sticky; top: 0; z-index: 100; height: 68px;
    padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(14,6,4,0.78);
    -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid rgba(250,208,3,0.18);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo .brand-chip { padding: 6px 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(184,134,46,0.35); }
.nav-logo .brand-logo { height: 24px; }
.nav-logo-txt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.member-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-gold); color: var(--ink); font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(250,208,3,0.3); }
.member-info { display: flex; flex-direction: column; line-height: 1.3; }
.member-name { font-size: 15px; font-weight: 700; color: var(--cream); display: inline-flex; align-items: center; gap: 5px; }
.member-hosp { font-size: 12.5px; color: var(--muted); }
.member-profile { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.member-profile:hover { background: rgba(250,208,3,0.08); border-color: rgba(250,208,3,0.3); }
.member-edit-ico { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
.member-profile:hover .member-edit-ico { color: var(--gold); }
.btn-exit-room {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px;
    background: var(--grad-gold); color: var(--ink);
    font-size: 14.5px; font-weight: 800; text-decoration: none;
    box-shadow: 0 6px 14px rgba(250,208,3,0.25); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-exit-room svg { width: 14px; height: 14px; stroke: currentColor; }
.btn-exit-room:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-logout { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(250,208,3,0.25); background: transparent; color: var(--cream-2); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.btn-logout:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

/* 룸 카드 — 영상 + 사이드바 */
.room-wrap {
    display: flex; align-items: stretch; max-width: 1280px; margin: 22px auto;
    border-radius: 18px; overflow: hidden; background: var(--wood-1);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(241,210,122,0.22);
}
.video-area { flex: 1; aspect-ratio: 16/9; background: #050201; position: relative; overflow: hidden; }
.video-area iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: none; }
.video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--cream-faint); font-size: 15px; }
.video-ph svg { width: 56px; height: 56px; stroke: rgba(250,208,3,0.45); }

.qa-sidebar { width: 330px; flex-shrink: 0; background: var(--panel-2); display: flex; flex-direction: column; border-left: 1px solid rgba(250,208,3,0.16); }
.room-header { padding: 16px 18px; flex-shrink: 0; background: linear-gradient(135deg, #4A2210 0%, #2A1208 75%); border-bottom: 1px solid rgba(250,208,3,0.18); }
.room-header-sub { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold); margin-bottom: 5px; text-transform: uppercase; }
.room-header-title { font-size: 16px; font-weight: 800; line-height: 1.4; color: var(--cream); }
.room-header .onair { margin-top: 10px; font-size: 12px; padding: 5px 12px 5px 10px; }

/* Q&A 입력 */
.qa-input-wrap { padding: 14px 16px 12px; background: rgba(0,0,0,0.22); border-bottom: 1px solid rgba(250,208,3,0.14); flex-shrink: 0; }
.qa-input-label { font-size: 13.5px; color: var(--cream-2); margin-bottom: 8px; line-height: 1.5; }
.qa-input-label strong { color: var(--gold); }
.qa-textarea {
    width: 100%; min-height: 84px; border: 1.5px solid rgba(250,208,3,0.28); border-radius: 10px;
    padding: 10px 12px; font-size: 14.5px; font-family: inherit; resize: none; outline: none;
    line-height: 1.6; color: var(--cream); background: var(--input);
    transition: border-color .15s, box-shadow .15s;
}
.qa-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250,208,3,0.16); }
.qa-textarea::placeholder { color: var(--cream-faint); }
.btn-qa-submit {
    display: block; width: 100%; margin-top: 9px; padding: 12px;
    background: var(--grad-gold); color: var(--ink); border: none; border-radius: 10px;
    font-size: 14.5px; font-weight: 800; cursor: pointer; font-family: inherit;
    box-shadow: 0 6px 14px rgba(250,208,3,0.25); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-qa-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-qa-submit:disabled { background: rgba(245,233,211,0.18); color: var(--cream-faint); box-shadow: none; transform: none; cursor: default; }
.qa-msg { font-size: 12px; text-align: center; min-height: 15px; margin-top: 5px; }
.qa-msg.ok { color: #9BE59B; } .qa-msg.err { color: #FFB3A6; }

/* 액션 버튼 (설문·수료증) */
.action-btns { padding: 12px 16px; border-bottom: 1px solid rgba(250,208,3,0.14); display: flex; flex-direction: column; gap: 9px; flex-shrink: 0; }
.action-btns[hidden], .action-btn[hidden] { display: none !important; }
.action-btn {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 700;
    cursor: pointer; font-family: inherit; text-decoration: none;
    background: rgba(250,208,3,0.08); color: var(--gold);
    border: 1px solid rgba(250,208,3,0.35);
    transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.action-btn:hover { background: rgba(250,208,3,0.16); border-color: var(--gold); transform: translateY(-1px); }
.action-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.action-btn--cert { background: var(--grad-gold); color: var(--ink); border-color: transparent; font-weight: 800; box-shadow: 0 8px 18px rgba(250,208,3,0.3); animation: certGlow 2.4s ease-in-out infinite; }
.action-btn--cert:hover { border-color: transparent; }
@keyframes certGlow { 0%, 100% { box-shadow: 0 8px 18px rgba(250,208,3,0.3); } 50% { box-shadow: 0 8px 30px rgba(250,208,3,0.55); } }
.qa-spacer { flex: 1; }

/* 토스트 */
.toast {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
    background: var(--grad-gold); color: var(--ink); font-size: 14px; font-weight: 700; padding: 11px 20px; border-radius: 10px;
    box-shadow: 0 12px 30px rgba(250,208,3,0.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 시청 화면 하단 패널 — 상단 영상(room-wrap)과 동일 너비 */
.page-watch .main-panel { max-width: 1280px; margin: 22px auto 44px; padding: 0; }
.page-watch .guide-cards { max-width: none; margin: 0 0 22px; padding: 0; }
@media (max-width: 1320px) { .page-watch .main-panel { margin: 20px 16px 44px; } .room-wrap { margin: 22px 16px; } }
@media (max-width: 860px) {
    .top-nav { padding: 0 14px; height: 62px; } .member-info { display: none; }
    .nav-logo .brand-logo { height: 20px; } .nav-logo .brand-chip { gap: 10px; padding: 5px 11px; }
    .room-wrap { flex-direction: column; margin: 14px 12px; border-radius: 14px; }
    .video-area { flex: none; width: 100%; }
    .qa-sidebar { width: 100%; border-left: none; border-top: 1px solid rgba(250,208,3,0.16); }
    .page-watch .main-panel { margin: 14px 12px 36px; }
    .btn-exit-room { padding: 8px 12px; font-size: 13.5px; }
}

/* ═══════════════ 반응형 ═══════════════ */
@media (min-width: 861px) and (max-width: 1280px) {
    .left-panel { width: 450px; padding: 26px 36px 24px; }
    .right-panel { width: 600px; }
    .main-bn-art img { height: 300px; }
}
@media (max-width: 860px) {
    body.page-index { padding-top: 84px; }
    .card-wrap { flex-direction: column; align-items: stretch; width: 100%; max-width: 560px; margin: 0 auto 28px; }
    .left-panel { width: 100%; padding: 34px 26px 30px; order: 2; }
    .left-panel .btn-register { margin-top: 12px; }
    .right-panel { width: 100%; min-height: 0; order: 1; }
    .right-panel.has-image { border-left: none; border-bottom: 1px solid rgba(0,0,0,0.6); }
    .right-panel.has-image::before { box-shadow: inset 0 -28px 40px -30px rgba(0,0,0,0.7); }
    .hero-image { width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
    .page-brand { position: absolute; }
    .main-banner-inner { flex-direction: column; align-items: center; text-align: center; min-height: 0; padding: 28px 18px 30px; gap: 22px; }
    .main-bn-art { order: -1; width: 100%; max-width: 440px; }
    .main-bn-art img { height: auto; width: 100%; }
    .main-bn-text { width: 100%; max-width: none; display: flex; flex-direction: column; align-items: center; }
    .main-bn-sign { width: 230px; margin-bottom: 4px; }
    .main-bn-meta { align-items: center; margin-top: 14px; font-size: 16px; }
    .main-bn-enter { width: 100%; margin-top: 20px; font-size: 17px; padding: 15px 20px; }
    .main-panel { padding: 0 14px; margin: 18px auto 40px; }
}
@media (max-width: 480px) {
    body.page-index { padding: 78px 12px 0; }
    .page-badge { display: none; }
    .page-brand { top: 14px; left: 12px; }
    .brand-logo { height: 21px; } .brand-chip { gap: 10px; padding: 6px 12px; }
    .left-panel { padding: 28px 20px 26px; }
    .event-date .ev-sched { font-size: 15px; padding: 9px 12px; gap: 8px; }
    .title-lockup { width: min(240px, 100%); }
    .greet { margin-bottom: 36px; }
}
