/**
 * Joyn TV Board — Public CSS
 * 디자인: HC Joyn 방송게시판 (Dark Editorial Theme)
 * 브랜드: #c9a84c (Gold), Dark surfaces
 * 폰트: Outfit, Playfair Display, Noto Sans KR, JetBrains Mono
 * 
 * @package Joyn_TV_Board
 * @version 2.0.4
 */

/* ═══════════════════════════════════════════
   THEME OVERRIDE — 방송게시판 페이지 전체 너비·중앙 정렬 + 배경색
   (테마 사이드바/여백으로 오른쪽으로 밀리는 현상 방지, 컨텐츠 외부 흰색 → 짙은 회색)
   ═══════════════════════════ */
body.tvb-active,
html body.tvb-active,
body.tvb-active .site,
body.tvb-active #page,
body.tvb-active #content,
body.tvb-active .site-content,
body.tvb-active .content-area,
body.tvb-active main,
body.tvb-active #primary,
body.tvb-active #main,
body.tvb-active .site-main,
body.tvb-active [role="main"] {
    background-color: #0e0e12 !important;
}
body.tvb-active #content,
body.tvb-active .site-content,
body.tvb-active .content-area,
body.tvb-active main,
body.tvb-active #primary,
body.tvb-active #main,
body.tvb-active .site-main,
body.tvb-active [role="main"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* TVB 페이지에서 테마 사이드바 완전 숨김 — 게시판이 가운데 전체로 나오도록 */
body.tvb-active #secondary,
body.tvb-active .sidebar,
body.tvb-active .widget-area,
body.tvb-active aside[role="complementary"],
body.tvb-active .site-sidebar,
body.tvb-active .content-area > aside,
body.tvb-active #content > aside:not([class*="tvb"]),
body.tvb-active main aside,
body.tvb-active .ast-sidebar,
body.tvb-active [class*="sidebar"]:not(.tvb-page-wrap *),
body.tvb-active [id*="secondary"] {
    display: none !important;
}
/* 테마 2단 레이아웃 시 메인만 전체 폭 사용 (Astra, Blocksy 등) */
body.tvb-active .site-content .ast-container,
body.tvb-active .site-inner,
body.tvb-active #content > .site-inner {
    display: block !important;
    max-width: 100% !important;
}
body.tvb-active .content-area {
    display: block !important;
    max-width: 100% !important;
}
body.tvb-active #primary,
body.tvb-active main .content-area > *:first-child,
body.tvb-active .site-content #primary,
body.tvb-active .content-area > #primary,
body.tvb-active [role="main"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
}
body.tvb-active .tvb-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
}

/* 게시판 + 푸터2가 한 래퍼 안에서 세로로 쌓이고, 게시판은 가운데 정렬 유지 */
body.tvb-active .tvb-page-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    flex-basis: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
body.tvb-active .tvb-page-wrap .tvb-page {
    display: block !important;
    width: 100% !important;
    max-width: var(--max-w, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
body.tvb-active .tvb-page-wrap .mpf2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ═══════════════════════════════════════════
   DESIGN TOKENS (scoped to .tvb-page)
   ═══════════════════════════════════════════ */
.tvb-page {
    /* Brand */
    --brand: #c9a84c;
    --brand-light: #e8d48b;
    --brand-dark: #a88b3a;
    --brand-glow: rgba(201,168,76,0.12);
    --brand-glow2: rgba(201,168,76,0.06);

    /* Semantic */
    --live: #ef4444;
    --success: #22c55e;
    --info: #3b82f6;
    --warning: #f59e0b;
    --pending: #a78bfa;

    /* Surfaces */
    --bg-root: #06060a;
    --bg-1: #0a0a10;
    --bg-2: #0e0e16;
    --bg-3: #16161f;
    --bg-4: #1e1e2a;
    --bg-card: #0f0f1a;
    --bg-card-hover: #13131f;
    --bg-input: #0c0c14;
    --bg-glass: rgba(15,15,26,0.75);

    /* Text */
    --text-1: #f0ede6;
    --text-2: #b0aaa0;
    --text-3: #706a60;

    /* Borders */
    --border-1: rgba(201,168,76,0.18);
    --border-2: rgba(255,255,255,0.06);

    /* Layout */
    --max-w: 1200px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Typography */
    --ff-display: 'Playfair Display', serif;
    --ff-body: 'Noto Sans KR', sans-serif;
    --ff-ui: 'Outfit', 'Noto Sans KR', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;

    /* Apply base */
    background: var(--bg-root);
    color: var(--text-1);
    font-family: var(--ff-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   LIGHT THEME TOKENS (scoped to .tvb-page[data-theme="light"])
   ═══════════════════════════════════════════ */
body.tvb-active:has([data-theme="light"]),
body.tvb-active:has([data-theme="light"]) .site,
body.tvb-active:has([data-theme="light"]) #page {
    background-color: #f4f1eb !important;
}

body.tvb-active:has([data-theme="light"]) #content,
body.tvb-active:has([data-theme="light"]) .site-content,
body.tvb-active:has([data-theme="light"]) .content-area,
body.tvb-active:has([data-theme="light"]) main,
body.tvb-active:has([data-theme="light"]) #primary,
body.tvb-active:has([data-theme="light"]) #main,
body.tvb-active:has([data-theme="light"]) .site-main,
body.tvb-active:has([data-theme="light"]) [role="main"] {
    background-color: #f4f1eb !important;
}

.tvb-page[data-theme="light"] {
    --brand: #9e7c24;
    --brand-light: #c4a044;
    --brand-dark: #7b6018;
    --brand-glow: rgba(158,124,36,0.12);
    --brand-glow2: rgba(158,124,36,0.06);

    --live: #dc3545;
    --success: #1a9e3f;

    --bg-root: #f4f1eb;
    --bg-1: #edeae3;
    --bg-2: #e5e2da;
    --bg-3: #d9d5cc;
    --bg-4: #cbc7bd;
    --bg-card: #ffffff;
    --bg-card-hover: #fdfcfa;
    --bg-input: #f8f6f2;
    --bg-glass: rgba(255,255,255,0.90);

    --text-1: #1a1814;
    --text-2: #57524a;
    --text-3: #908a80;

    --border-1: rgba(158,124,36,0.28);
    --border-2: rgba(28,24,20,0.08);

    background: var(--bg-root);
    color: var(--text-1);
    color-scheme: light;
}

/* ═══════════════════════════════════════════
   RESET (scoped)
   ═══════════════════════════════════════════ */
.tvb-page *,
.tvb-page *::before,
.tvb-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tvb-page button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.tvb-page a {
    text-decoration: none;
    color: inherit;
}

/* 라벨 색상: 테마/외부 CSS 덮어쓰기 방지 — 다크 테마 흰색 고정 */
.tvb-page label,
.tvb-page .form-label,
.tvb-page .tvb-form-label,
.tvb-page .ws-option-label {
    color: #ffffff !important;
}

/* 라벨 색상: 라이트 테마 — 따뜻한 다크 텍스트 */
.tvb-page[data-theme="light"] label,
.tvb-page[data-theme="light"] .form-label,
.tvb-page[data-theme="light"] .tvb-form-label,
.tvb-page[data-theme="light"] .ws-option-label {
    color: var(--text-2) !important;
}

.tvb-page img {
    display: block;
    max-width: 100%;
}

/* Scrollbar */
.tvb-page ::-webkit-scrollbar { width: 6px; height: 6px; }
.tvb-page ::-webkit-scrollbar-track { background: var(--bg-1); }
.tvb-page ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
.tvb-page ::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ═══════════════════════════════════════════
   GLOBAL NAVIGATION
   ═══════════════════════════════════════════ */
.g-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(6,6,10,0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-2);
    padding: 0 24px;
}
.g-nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.g-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.g-nav-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-ui);
    font-weight: 900;
    font-size: 14px;
    color: var(--bg-root);
    letter-spacing: -0.5px;
}
.g-nav-title {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-1);
    letter-spacing: -0.3px;
}
.g-nav-title span {
    color: var(--brand);
    font-weight: 500;
}
.g-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.g-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    transition: all 0.2s;
}
.g-nav-btn:hover {
    background: var(--bg-3);
    color: var(--text-1);
}
.g-nav-btn i { font-size: 18px; }
.g-nav-btn--live {
    background: var(--live);
    color: #fff;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.g-nav-btn--live:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 20px rgba(239,68,68,0.4);
}
.g-nav-btn--live i {
    font-size: 14px;
    animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════
   HERO BANNER (방송안내 상단 노출)
   ═══════════════════════════════════════════ */
.hero-banner {
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-root) 100%);
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, var(--brand-glow) 0%, transparent 60%);
    pointer-events: none;
}
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(201,168,76,0.03)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px 28px;
}
.broadcast-notice {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

/* 좌측1: 썸네일 위 + 제목·텍스트 아래 */
.broadcast-notice-main.bn-main-split {
    position: relative;
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
}
.broadcast-notice-main.bn-main-split:hover {
    border-color: var(--border-1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.broadcast-notice-main .bn-main-link.bn-main-link-split {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.broadcast-notice-main .bn-main-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-3);
}
.broadcast-notice-main .bn-main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.broadcast-notice-main.bn-main-split:hover .bn-main-thumb img {
    transform: scale(1.03);
}
.broadcast-notice-main .bn-main-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
}
.broadcast-notice-main .bn-main-thumb-placeholder i {
    font-size: 48px;
    color: var(--text-3);
}
.broadcast-notice-main .bn-main-thumb .bn-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}
.broadcast-notice-main .bn-main-thumb .bn-category-badge-gold {
    position: absolute;
    top: 12px;
    right: 12px;
}
.broadcast-notice-main .bn-main-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.broadcast-notice-main .bn-watch-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--brand);
    color: var(--bg-root);
    font-family: var(--ff-ui);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.broadcast-notice-main .bn-watch-btn:hover {
    background: var(--brand-light);
    color: var(--bg-root);
    transform: scale(1.02);
}
.bn-live-badge {
    padding: 5px 12px;
    background: var(--live);
    border-radius: 20px;
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.8px;
}
.bn-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: bn-blink 1.2s ease-in-out infinite;
}
@keyframes bn-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.bn-category-badge-gold {
    padding: 5px 12px;
    background: rgba(224, 200, 130, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    color: #1a1a24;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(201,168,76,0.3);
}
.broadcast-notice-main .bn-date {
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 8px;
}
.broadcast-notice-main .bn-title {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--text-1);
    line-height: 1.35;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}
.broadcast-notice-main .bn-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.broadcast-notice-main .bn-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--ff-ui);
}
.broadcast-notice-main .bn-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.broadcast-notice-main .bn-meta-item i { font-size: 14px; }

/* 우측4: 세로 쌓인 카드 */
.broadcast-notice-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bn-side-card {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.bn-side-card:hover {
    border-color: var(--border-1);
    background: var(--bg-card-hover);
}
.bn-side-card-empty {
    justify-content: center;
    align-items: center;
    min-height: 80px;
}
.bn-side-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-3);
}
.bn-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bn-side-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
}
.bn-side-thumb-placeholder i {
    font-size: 24px;
    color: var(--text-3);
}
.bn-side-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bn-side-cat {
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.bn-side-title {
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-1);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.bn-side-meta {
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--ff-mono);
}

/* ═══════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════ */
.tab-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-2);
    position: sticky;
    top: 64px;
    z-index: 50;
    background: var(--bg-root);
    padding-top: 4px;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--ff-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    position: relative;
    transition: color 0.2s;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active {
    color: var(--brand);
    font-weight: 600;
}
.tab-btn.active::after { transform: scaleX(1); }
.tvb-page .tab-nav .tab-btn[data-tab="participate"],
.tvb-page .tab-nav .tab-btn[data-tab="participate"].active { color: #e8dc9e !important; }
.tvb-page .tab-nav .tab-btn[data-tab="participate"]:hover { color: #f0e6b8 !important; }
.tvb-page .tab-nav .tab-btn[data-tab="participate"] i { color: inherit; }
.tab-btn i { font-size: 18px; }
.badge {
    padding: 2px 7px;
    background: var(--brand);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-root);
    line-height: 1.4;
}

/* Tab Panels */
.tab-panel {
    display: none;
    padding: 28px 0;
    animation: fadeUp 0.4s ease;
}
.tab-panel.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   PANEL 1 — 방송안내
   ═══════════════════════════════════════════ */

/* Section Header */
.info-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.info-section-title {
    font-family: var(--ff-ui);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-1);
}
.info-section-title span { color: var(--brand); }
.info-section-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 4px;
}

/* Section Actions (글쓰기 + View Toggle) */
.info-section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tvb-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--brand);
    color: var(--bg-root);
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.tvb-write-btn:hover {
    background: var(--brand-light);
    color: var(--bg-root);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--brand-glow);
}
.tvb-write-btn i { font-size: 15px; }

/* Light Theme — Write Button */
.tvb-page[data-theme="light"] .tvb-write-btn {
    color: #ffffff;
}
.tvb-page[data-theme="light"] .tvb-write-btn:hover {
    color: #ffffff;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-2);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.view-toggle-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-3);
    transition: all 0.2s;
}
.view-toggle-btn.active {
    background: var(--bg-4);
    color: var(--brand);
}

/* Category Filters */
.cat-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cat-filter-btn {
    padding: 7px 16px;
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    transition: all 0.2s;
}
.cat-filter-btn:hover {
    border-color: var(--border-1);
    color: var(--text-2);
}
.cat-filter-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--bg-root);
}

.cat-filter-toggle {
    display: none;
}

/* 모바일: 카테고리 4개만 노출, 펼치기로 확장 */
@media (max-width: 768px) {
    .cat-filters-wrap--has-more .cat-filter-btn:nth-child(n+5) {
        display: none;
    }
    .cat-filters-wrap--has-more.cat-filters-expanded .cat-filter-btn:nth-child(n+5) {
        display: flex;
    }
    .cat-filters-wrap--has-more .cat-filter-toggle {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 7px 14px;
        font-family: var(--ff-ui);
        font-size: 12px;
        font-weight: 500;
        color: var(--text-3);
        background: var(--bg-2);
        border: 1px solid var(--border-2);
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .cat-filters-wrap--has-more .cat-filter-toggle:hover {
        border-color: var(--border-1);
        color: var(--text-2);
    }
    .cat-filters-wrap--has-more.cat-filters-expanded .cat-filter-toggle i {
        transform: rotate(180deg);
    }
}

/* Grid View */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.info-card-wrap {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}
.info-card-wrap:hover {
    border-color: var(--border-1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.info-card-wrap:hover .info-card { transform: translateY(-4px); }
.info-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s;
}
.info-card-wrap .info-card-watch-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--brand);
    color: var(--bg-root);
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}
.info-card-wrap .info-card-watch-btn:hover {
    background: var(--brand-light);
    color: var(--bg-root);
    transform: scale(1.05);
}
.info-card:hover {
    border-color: transparent;
}
.info-card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-3);
}
.info-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.info-card:hover .info-card-thumb img { transform: scale(1.06); }
.info-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,0.7) 0%, transparent 50%);
}
.info-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}
.info-card-cat {
    padding: 4px 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-light);
    border-radius: 14px;
    border: 1px solid var(--border-1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
/* 안내 스타일 뱃지 (방송안내 관리 카테고리: 라이브 방송, VOD·다시보기 등) */
.info-card-guide-badge {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--info, #60a5fa);
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    letter-spacing: 0.3px;
}
.info-card-status {
    padding: 4px 10px;
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 0.5px;
}
.info-card-status.live { background: var(--live); color: #fff; }
.info-card-status.upcoming { background: var(--info); color: #fff; }
.info-card-status.vod { background: var(--bg-4); color: var(--text-2); }

.info-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.75);
    font-family: var(--ff-mono);
    font-size: 11px;
    color: #fff;
    border-radius: 4px;
}
.info-card-body { padding: 18px; }
.info-card-date {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--brand-dark);
    margin-bottom: 6px;
}
.info-card-title {
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-1);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.info-card-desc {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.info-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-2);
}
.info-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-root);
}
.info-card-author-name {
    font-family: var(--ff-ui);
    font-size: 12px;
    color: var(--text-2);
}
.info-card-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--ff-ui);
}
.info-card-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.info-card-stats i { font-size: 13px; }

/* List View */
.info-list {
    display: none;
    flex-direction: column;
    gap: 8px;
}
.info-list.active { display: flex; }
.info-grid.hidden { display: none; }

.info-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    transition: all 0.2s;
    overflow: hidden;
}
.info-list-item:hover {
    border-color: var(--border-1);
    background: var(--bg-card-hover);
}
.info-list-item .info-list-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 0;
}
.info-list-item .info-list-watch {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 8px 12px;
    background: var(--brand);
    color: var(--bg-root);
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s;
}
.info-list-item .info-list-watch:hover {
    background: var(--brand-light);
    color: var(--bg-root);
}
.info-list-num {
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--text-3);
    min-width: 28px;
}
.info-list-cat {
    padding: 3px 10px;
    background: var(--bg-3);
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--brand);
    border-radius: 12px;
    text-transform: uppercase;
}
.info-list-guide-badge {
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15);
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--info, #60a5fa);
    border-radius: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.info-list-title {
    flex: 1;
    font-family: var(--ff-ui);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-list-author {
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--ff-ui);
    white-space: nowrap;
}
.info-list-date {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}
.info-list-views {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
}
.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.page-btn:hover {
    background: var(--bg-3);
    color: var(--text-1);
}
.page-btn.active {
    background: var(--brand);
    color: var(--bg-root);
    font-weight: 700;
}
.page-btn.nav { font-size: 16px; }

/* ═══════════════════════════════════════════
   PANEL 2 — 방송참여
   ═══════════════════════════════════════════ */
.participate-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-root) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-2);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.participate-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
}
.participate-hero h2 {
    position: relative;
    font-family: var(--ff-ui);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-1);
    margin-bottom: 10px;
}
.participate-hero h2 span { color: var(--brand); }
#panel-participate .participate-hero h2,
#panel-participate .participate-hero h2 span { color: #e8dc9e !important; }
.participate-hero p {
    position: relative;
    font-size: 15px;
    color: var(--text-2);
    max-width: 500px;
    margin: 0 auto 24px;
}
.participate-types {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.participate-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    width: 200px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.participate-type-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--brand-glow);
}
.participate-type-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: var(--brand-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--brand);
    transition: all 0.3s;
}
.participate-type-card:hover .participate-type-icon {
    background: var(--brand);
    color: var(--bg-root);
}
.participate-type-name {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-1);
    margin-bottom: 6px;
}
.participate-type-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

/* Participate Form */
.participate-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.pf-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pf-header h3 {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pf-header h3 i { color: var(--brand); font-size: 20px; }
.pf-step-indicator { display: flex; gap: 8px; }
.pf-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    transition: all 0.3s;
}
.pf-step.active { background: var(--brand); color: var(--bg-root); }
.pf-step.done { background: var(--success); color: #fff; }
.pf-body { padding: 28px; }

.form-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-label {
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: visible;
}
.form-label .required { color: var(--live); font-size: 10px; }
.form-input,
.form-select,
.form-textarea {
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-1);
    transition: all 0.2s;
    outline: none;
    font-family: var(--ff-body);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23706a60' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    min-height: 44px;
    line-height: 1.4;
}
/* 전체 리스트(select) 선택 영역: 드롭다운 넓게 · 닫힌 박스/리스트 글자 안 잘리게 */
.tvb-page .form-select,
.tvb-page .tvb-select,
.tvb-page select {
    min-width: 260px;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding-right: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.4;
}
.tvb-page .form-select option,
.tvb-page .tvb-select option,
.tvb-page select option {
    padding: 10px 14px;
    white-space: normal;
    min-height: 2em;
}
.form-textarea { resize: vertical; min-height: 100px; }

/* 글쓰는 곳(텍스트 영역): 투명도 적용 — 어두운 배경과 자연스럽게 블렌딩 */
.tvb-page .form-textarea,
.tvb-page .tvb-textarea,
.tvb-page .tvb-editor {
    background: rgba(12, 12, 20, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.tvb-page .form-textarea:focus,
.tvb-page .tvb-textarea:focus,
.tvb-page .tvb-editor:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-glow) !important;
}

/* 글쓰는 곳(텍스트 영역): 라이트 테마 — 따뜻한 밝은 배경 */
.tvb-page[data-theme="light"] .form-textarea,
.tvb-page[data-theme="light"] .tvb-textarea,
.tvb-page[data-theme="light"] .tvb-editor {
    background: var(--bg-input) !important;
    border-color: var(--border-2) !important;
}
.tvb-page[data-theme="light"] .form-textarea:focus,
.tvb-page[data-theme="light"] .tvb-textarea:focus,
.tvb-page[data-theme="light"] .tvb-editor:focus {
    background: var(--bg-card) !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-glow), 0 1px 3px rgba(0,0,0,0.06) !important;
}

.form-hint { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.pf-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-3);
    border-radius: var(--radius-sm);
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    transition: all 0.2s;
}
.btn-secondary:hover { background: var(--bg-4); color: var(--text-1); }
.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    border-radius: var(--radius-sm);
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--bg-root);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-primary:hover {
    box-shadow: 0 4px 20px var(--brand-glow);
    transform: translateY(-1px);
}
.btn-primary i { font-size: 16px; }

/* Status Section */
.participate-status-section { margin-top: 32px; }
.ps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ps-header h3 {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 17px;
    color: var(--text-1);
}
.status-legend {
    display: flex;
    gap: 14px;
    font-size: 11px;
    font-family: var(--ff-ui);
    color: var(--text-3);
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.status-dot.pending { background: var(--pending); }
.status-dot.approved { background: var(--success); }
.status-dot.rejected { background: var(--live); }

.ps-table-wrap { overflow-x: auto; }
.ps-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.ps-table thead th {
    padding: 12px 16px;
    background: var(--bg-2);
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    border-bottom: 1px solid var(--border-2);
}
.ps-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.ps-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.ps-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-2);
    vertical-align: middle;
}
.ps-table tbody tr { transition: background 0.2s; }
.ps-table tbody tr:hover { background: var(--bg-card-hover); }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 600;
}
.status-badge.pending { background: rgba(167,139,250,0.15); color: var(--pending); }
.status-badge.approved { background: rgba(34,197,94,0.15); color: var(--success); }
.status-badge.rejected { background: rgba(239,68,68,0.15); color: var(--live); }

/* ═══════════════════════════════════════════
   PANEL 3 — 방송안내 섹션 글쓰기
   ═══════════════════════════════════════════ */
.writer-layout {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 24px;
}
.writer-main {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.writer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.writer-header h3 {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 17px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.writer-header h3 i { color: var(--brand); }
.writer-header-info {
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--ff-ui);
    display: flex;
    align-items: center;
    gap: 4px;
}
.writer-header-info i { color: var(--brand); }
.writer-body { padding: 24px; }

.writer-title-input {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-2);
    font-family: var(--ff-ui);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 20px;
}
.writer-title-input::placeholder { color: var(--text-3); }
.writer-title-input:focus { border-color: var(--brand); }

.writer-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.toolbar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-3);
    transition: all 0.15s;
}
.toolbar-btn:hover { background: var(--bg-3); color: var(--text-1); }
.toolbar-btn.active { background: var(--bg-4); color: var(--brand); }
.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border-2);
    margin: 0 6px;
}

.writer-content {
    min-height: 300px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-1);
    line-height: 1.8;
    outline: none;
    transition: border-color 0.2s;
}
.writer-content:focus { border-color: var(--brand); }
.writer-content:empty::before {
    content: '방송 안내 내용을 작성하세요...';
    color: var(--text-3);
}

.writer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.writer-char-count {
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--text-3);
}

/* Writer Sidebar */
.writer-sidebar { display: flex; flex-direction: column; gap: 16px; }
.ws-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ws-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-2);
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ws-card-header i { color: var(--brand); font-size: 15px; }
.ws-card-body { padding: 16px 18px; }
/* 글쓰기 사이드바(카테고리/방송상태 등): 선택 박스 더 넓게 · 표시 텍스트 안 잘리게 */
.writer-sidebar .ws-card-body {
    min-width: 0;
}
.writer-sidebar .form-select {
    width: 100%;
    min-width: 380px;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding-right: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.4;
}
.writer-sidebar .form-select option {
    padding: 10px 14px;
    white-space: normal;
    min-height: 2em;
}

.ws-thumb-upload {
    width: 100%;
    height: 160px;
    border: 2px dashed var(--border-2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-input);
}
.ws-thumb-upload:hover { border-color: var(--brand); background: var(--brand-glow2); }
.ws-thumb-upload i { font-size: 28px; color: var(--text-3); }
.ws-thumb-upload span { font-size: 12px; color: var(--text-3); }

.ws-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.ws-option-row + .ws-option-row { border-top: 1px solid var(--border-2); }
.ws-option-label { font-family: var(--ff-ui); font-size: 13px; color: var(--text-2); }
.ws-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--bg-3);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-toggle.active { background: var(--brand); }
.ws-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.ws-toggle.active::after { transform: translateX(18px); }

/* Preview */
.ws-preview { padding: 0; }
.ws-preview-card { padding: 16px; }
.ws-preview-label {
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.ws-preview-thumb {
    width: 100%;
    height: 120px;
    background: var(--bg-3);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-3);
}
.ws-preview-title {
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-1);
    margin-bottom: 4px;
}
.ws-preview-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }

/* ═══════════════════════════════════════════
   SECTION EDITOR HUB (Tab 3)
   ═══════════════════════════════════════════ */
.section-editor-hub {
    padding: 40px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.section-editor-hero {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    margin-bottom: 28px;
}
.section-editor-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--brand-glow2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.section-editor-icon i {
    font-size: 28px;
    color: var(--brand);
}
.section-editor-hero h3 {
    font-family: var(--ff-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}
.section-editor-hero p {
    font-family: var(--ff-ui);
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}
.section-editor-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.section-editor-card {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
}
.section-editor-card:hover {
    border-color: var(--brand);
}
.section-editor-card i {
    font-size: 24px;
    color: var(--brand);
    margin-bottom: 10px;
    display: block;
}
.section-editor-card h4 {
    font-family: var(--ff-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 6px;
}
.section-editor-card p {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}
.section-editor-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--brand-glow2);
    border: 1px solid var(--brand);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-2);
}
.section-editor-tip i {
    font-size: 16px;
    color: var(--brand);
    flex-shrink: 0;
}
.section-editor-tip strong {
    color: var(--brand);
}
@media (max-width: 768px) {
    .section-editor-hub { padding: 20px 12px; }
    .section-editor-hero { padding: 28px 16px; }
    .section-editor-hero h3 { font-size: 18px; }
    .section-editor-cards { grid-template-columns: 1fr; gap: 10px; }
    .section-editor-card { padding: 14px; }
}

/* ═══════════════════════════════════════════
   SCHEDULE TICKER
   ═══════════════════════════════════════════ */
.schedule-ticker {
    background: var(--bg-2);
    border-top: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
    overflow: hidden;
    padding: 10px 0;
}
.ticker-track {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    width: max-content;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-family: var(--ff-ui);
    font-size: 13px;
}
.ticker-time { color: var(--brand); font-weight: 600; font-family: var(--ff-mono); }
.ticker-name { color: var(--text-2); }
.ticker-sep { color: var(--text-3); font-size: 8px; }

/* ═══════════════════════════════════════════
   EMPTY & LOADING STATES
   ═══════════════════════════════════════════ */
.tvb-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-2);
}
.tvb-empty-state i { font-size: 64px; color: var(--text-3); margin-bottom: 20px; display: block; }
.tvb-empty-state p { font-size: 16px; color: var(--text-2); margin: 0; }

.tvb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-3);
    font-family: var(--ff-ui);
    font-size: 14px;
    gap: 10px;
}
.tvb-loading i { font-size: 20px; animation: spin 1s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   LIGHT THEME — 글로벌 컴포넌트 오버라이드
   ═══════════════════════════════════════════ */

/* ── Navigation ── */
.tvb-page[data-theme="light"] .g-nav,
[data-theme="light"] .g-nav {
    background: rgba(255,255,255,0.92);
    border-bottom-color: rgba(28,24,20,0.08);
}
.tvb-page[data-theme="light"] .g-nav-logo,
[data-theme="light"] .g-nav-logo {
    color: #ffffff;
}

/* ── Card Shadows ── */
.tvb-page[data-theme="light"] .info-card-wrap:hover,
[data-theme="light"] .info-card-wrap:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* ── Card Overlay — 이미지 위 그라데이션 ── */
.tvb-page[data-theme="light"] .info-card-overlay,
[data-theme="light"] .info-card-overlay {
    background: linear-gradient(to top, rgba(26,24,20,0.50) 0%, transparent 50%);
}

/* ── Duration Badge ── */
.tvb-page[data-theme="light"] .info-card-duration,
[data-theme="light"] .info-card-duration {
    background: rgba(26,24,20,0.72);
}

/* ── Tab Navigation — 방송참여 탭 ── */
.tvb-page[data-theme="light"] .tab-nav .tab-btn[data-tab="participate"],
.tvb-page[data-theme="light"] .tab-nav .tab-btn[data-tab="participate"].active {
    color: var(--brand) !important;
}
.tvb-page[data-theme="light"] .tab-nav .tab-btn[data-tab="participate"]:hover {
    color: var(--brand-light) !important;
}

/* ── Participate Hero ── */
.tvb-page[data-theme="light"] #panel-participate .participate-hero h2,
.tvb-page[data-theme="light"] #panel-participate .participate-hero h2 span {
    color: var(--brand) !important;
}

/* ── Participate Form Card ── */
.tvb-page[data-theme="light"] .participate-form-section {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}
.tvb-page[data-theme="light"] .participate-type-card:hover {
    box-shadow: 0 8px 28px rgba(158,124,36,0.12);
}

/* ── Empty & Loading States ── */
.tvb-page[data-theme="light"] .tvb-empty-state {
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* ── Single Post Hero Overlay ── */
.tvb-page-single[data-theme="light"] .tvb-post-hero-overlay,
[data-theme="light"] .tvb-page-single .tvb-post-hero-overlay {
    background: linear-gradient(to top, rgba(26,24,20,0.70) 0%, rgba(26,24,20,0.20) 45%, transparent 70%);
}

/* ── Single Post — CTA ── */
.tvb-page-single[data-theme="light"] .tvb-broadcast-watch-cta,
[data-theme="light"] .tvb-page-single .tvb-broadcast-watch-cta {
    background: linear-gradient(135deg, rgba(158,124,36,0.08) 0%, transparent 60%);
}

/* ── Hero Banner ── */
.tvb-page[data-theme="light"] .hero-banner {
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-root) 100%);
}

/* ── Broadcast Notice Cards ── */
.tvb-page[data-theme="light"] .broadcast-notice-main,
[data-theme="light"] .broadcast-notice-main {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.03);
}
.tvb-page[data-theme="light"] .broadcast-notice-main:hover,
[data-theme="light"] .broadcast-notice-main:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.04);
}
.tvb-page[data-theme="light"] .bn-side-card:hover,
[data-theme="light"] .bn-side-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Schedule Ticker: 라이트 테마여도 이 구간만 블랙(다크) 스타일 유지 ── */
.tvb-page[data-theme="light"] .schedule-ticker,
[data-theme="light"] .schedule-ticker {
    background: #0e0e16;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tvb-page[data-theme="light"] .schedule-ticker .ticker-time,
[data-theme="light"] .schedule-ticker .ticker-time {
    color: #c9a84c;
}
.tvb-page[data-theme="light"] .schedule-ticker .ticker-name,
[data-theme="light"] .schedule-ticker .ticker-name {
    color: #b0aaa0;
}
.tvb-page[data-theme="light"] .schedule-ticker .ticker-sep,
[data-theme="light"] .schedule-ticker .ticker-sep {
    color: #706a60;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .broadcast-notice { grid-template-columns: 1fr; }
    .broadcast-notice-side {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
    }
    .bn-side-card { min-width: 280px; flex: 0 0 auto; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .writer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body.tvb-active .tvb-page { padding: 0 10px; }
    .g-nav { padding: 0 10px; }
    .g-nav-inner { height: 56px; }
    .g-nav-title { font-size: 16px; }
    .g-nav-btn span { display: none; }

    .hero-inner { padding: 24px 0 20px; }
    .broadcast-notice-main .bn-main-thumb { aspect-ratio: 16/9; }
    .broadcast-notice-main .bn-title { font-size: 18px; }

    .tab-section { padding: 0; }
    .tab-nav .tab-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding: 12px 6px;
        font-size: 13px;
    }
    .tab-btn span.hide-mobile { display: none; }

    .main-inner,
    .writer-body,
    .pf-body { padding-left: 10px; padding-right: 10px; }

    .info-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .info-section-head { flex-wrap: wrap; gap: 12px; }
    .info-section-actions { width: 100%; justify-content: space-between; }
    .tvb-write-btn { padding: 7px 14px; font-size: 12px; }

    .participate-types {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        justify-items: stretch;
    }
    .participate-type-card { width: 100%; max-width: none; }
    .participate-type-desc { display: none; }

    .info-list-item .info-list-link { flex-wrap: wrap; gap: 8px; }
    .info-list-link .info-list-title { flex-basis: 100%; order: -1; }

    .ps-table-wrap { overflow-x: auto; }

    /* 모바일: select 높이 확대 — 글자 잘림 방지 */
    .tvb-page .form-select,
    .tvb-page .tvb-select,
    .tvb-page select {
        min-height: 52px;
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        line-height: 1.5;
        font-size: 16px;
    }
    .writer-sidebar .form-select {
        min-height: 52px;
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body.tvb-active .tvb-page { padding: 0 10px; }
    .broadcast-notice-side { flex-direction: column; }
    .bn-side-card { min-width: 0; }
    .info-card-thumb { height: 160px; }
    .participate-hero { padding: 32px 0; }
    .participate-hero h2 { font-size: 22px; }
}

/* ═══════════════════════════════════════════
   WRITER LAYOUT — 글쓰기/글보기 공통 2-Column 레이아웃
   ═══════════════════════════════════════════ */
.tvb-write-page {
    max-width: var(--max-w, 1200px);
    margin: 0 auto;
    padding: 32px 24px 60px;
}
.tvb-write-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.tvb-write-page-header h1 {
    font-family: var(--ff-ui);
    font-weight: 800;
    font-size: 26px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
    margin: 0;
}
.tvb-write-page-header h1 i {
    font-size: 28px;
    color: var(--brand);
}
.tvb-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--bg-3);
    border-radius: var(--radius-sm);
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    transition: all 0.2s;
    text-decoration: none;
}
.tvb-btn-back:hover {
    background: var(--bg-4);
    color: var(--text-1);
}
.tvb-writer-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.tvb-writer-main {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.tvb-writer-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tvb-writer-header h3 {
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.tvb-writer-header h3 i {
    color: var(--brand);
    font-size: 18px;
}
.tvb-writer-header-info {
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--ff-ui);
    display: flex;
    align-items: center;
    gap: 4px;
}
.tvb-writer-header-info i { color: var(--brand); }
.tvb-writer-body { padding: 24px; }
.tvb-writer-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tvb-writer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}
.tvb-ws-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.tvb-ws-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-2);
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tvb-ws-card-header i { color: var(--brand); font-size: 15px; }
.tvb-ws-card-body { padding: 16px 18px; }
.tvb-writer-content,
.tvb-writer-content-read {
    min-height: 120px;
    padding: 18px;
    background: rgba(12, 12, 20, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-1);
    line-height: 1.8;
    overflow-y: auto;
}
.tvb-writer-content-read {
    min-height: 0;
}
.tvb-preview-card {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}
.tvb-preview-card:hover { border-color: var(--border-1); }
.tvb-preview-thumb {
    width: 100%;
    height: 130px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.tvb-preview-thumb > i { font-size: 36px; color: var(--text-3); opacity: 0.5; }
.tvb-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.tvb-preview-thumb.has-img img { display: block !important; }
.tvb-preview-play-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.tvb-preview-play-icon i { font-size: 18px; color: #fff; opacity: 1; }
.tvb-preview-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    font-family: var(--ff-ui);
    font-size: 9px;
    font-weight: 700;
    color: var(--brand-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--border-1);
}
.tvb-preview-body { padding: 14px; }
.tvb-preview-date {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--brand-dark);
    margin-bottom: 6px;
}
.tvb-preview-title {
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-1);
    line-height: 1.4;
    margin-bottom: 6px;
}
@media (max-width: 1024px) {
    .tvb-writer-layout { grid-template-columns: 1fr; }
    .tvb-writer-sidebar { position: static; }
}

/* Light theme — writer layout */
.tvb-page[data-theme="light"] .tvb-write-page-header h1 { color: var(--text-1); }
.tvb-page[data-theme="light"] .tvb-write-page-header h1 i { color: var(--brand); }
.tvb-page[data-theme="light"] .tvb-btn-back {
    background: var(--bg-card);
    color: var(--text-2);
}
.tvb-page[data-theme="light"] .tvb-btn-back:hover {
    background: var(--bg-1);
    color: var(--text-1);
}
.tvb-page[data-theme="light"] .tvb-writer-main {
    background: var(--bg-card);
    border-color: var(--border-2);
}
.tvb-page[data-theme="light"] .tvb-ws-card {
    background: var(--bg-card);
    border-color: var(--border-2);
}
.tvb-page[data-theme="light"] .tvb-preview-card {
    background: var(--bg-input);
    border-color: var(--border-2);
}
.tvb-page[data-theme="light"] .tvb-writer-content,
.tvb-page[data-theme="light"] .tvb-writer-content-read {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-2) !important;
}

/* ═══════════════════════════════════════════
   SINGLE POST (글 읽기) — 방송보기 CTA, 댓글 등
   ═══════════════════════════════════════════ */
.tvb-page-single {
    --hc-space-page: 24px;
}
.tvb-page-single .tvb-post-hero {
    margin: 0 calc(-1 * var(--hc-space-page, 24px)) var(--hc-space-2xl, 1.5rem);
    border-radius: 0;
    overflow: hidden;
}
.tvb-page-single .tvb-post-hero-inner {
    position: relative;
    aspect-ratio: 21/9;
    max-height: 420px;
    background: var(--bg-3);
}
.tvb-page-single .tvb-post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tvb-page-single .tvb-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,10,0.85) 0%, rgba(6,6,10,0.3) 45%, transparent 70%);
    pointer-events: none;
}
.tvb-page-single .tvb-post-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--hc-space-lg) var(--hc-space-xl);
    display: flex;
    align-items: center;
}
.tvb-page-single .tvb-post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tvb-page-single .tvb-post-back:hover { color: var(--brand); }
.tvb-page-single .tvb-post-back-inline { margin-bottom: var(--hc-space-lg); display: inline-flex; }
.tvb-page-single .tvb-broadcast-watch-cta {
    margin-top: var(--hc-space-xl);
    margin-bottom: var(--hc-space-2xl);
    padding: var(--hc-space-lg);
    background: linear-gradient(135deg, var(--brand-glow) 0%, transparent 60%);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    text-align: center;
}
.tvb-page-single .tvb-btn-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tvb-page-single .tvb-btn-watch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--brand-glow);
}
@media (max-width: 768px) {
    .tvb-page-single .tvb-post-hero-inner { aspect-ratio: 16/9; max-height: 280px; }
    .tvb-page-single .tvb-post-hero-caption { padding: var(--hc-space-md) var(--hc-space-lg); }
    .tvb-page-single .tvb-btn-watch { padding: 14px 24px; font-size: 15px; }
}
