/* 영상 제작 가이드 (videoguide.html) */

/* videoguide 계열 페이지 공통 색상 토큰 */
body.videoguide-page,
body.videoguide-write-page,
body.videoguide-post-page {
    --vg-bg: #ffffff;
    --vg-card: #ffffff;
    --vg-card-soft: #f8fafc;
    --vg-border: rgba(15, 23, 42, 0.12);
    --vg-border-strong: rgba(40, 51, 106, 0.22);
    --vg-text: #111827;
    --vg-text-secondary: #334155;
    --vg-text-muted: #6b7280;
    --vg-link: #28336a;
    --vg-link-hover: #1a2245;
    --vg-hover: rgba(15, 23, 42, 0.05);
    --vg-focus: rgba(40, 51, 106, 0.25);
    --vg-danger-text: #b42318;
    --vg-danger-bg: rgba(180, 35, 24, 0.08);
}

/* 목록에서 연 상세(vgList=1): 전역 헤더·푸터 비표시 — 브레드크럼만으로 목록 복귀 */
body.videoguide-post-page.vgp-from-videoguide-list #header,
body.videoguide-post-page.vgp-from-videoguide-list #footer {
    display: none !important;
}

body.dark-mode.videoguide-page,
body.dark-mode.videoguide-write-page,
body.dark-mode.videoguide-post-page {
    --vg-bg: #0b1220;
    --vg-card: #111827;
    --vg-card-soft: #0f172a;
    --vg-border: rgba(148, 163, 184, 0.3);
    --vg-border-strong: rgba(165, 180, 252, 0.4);
    --vg-text: #e5e7eb;
    --vg-text-secondary: #cbd5e1;
    --vg-text-muted: #94a3b8;
    --vg-link: #a5b4fc;
    --vg-link-hover: #c7d2fe;
    --vg-hover: rgba(255, 255, 255, 0.08);
    --vg-focus: rgba(165, 180, 252, 0.35);
    --vg-danger-text: #fca5a5;
    --vg-danger-bg: rgba(248, 113, 113, 0.14);
}

/* 헤더 상단 프로필·배경 커버 숨김(본문 vg-hero와 중복 방지) */
.videoguide-page #header .profile-container {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.videoguide-page #header {
    flex-shrink: 0;
}

.videoguide-page .vg-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    grid-template-areas:
        "hero hero"
        "toolbar toolbar"
        "sidebar main";
    gap: 1.75rem;
    align-items: start;
}

.vg-hero {
    grid-area: hero;
    margin-bottom: 0.25rem;
}

.vg-sidebar {
    grid-area: sidebar;
}

.vg-main {
    grid-area: main;
    min-width: 0;
}

.vg-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vg-text-muted);
    margin: 0 0 0.35rem;
}

.vg-title {
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.vg-lead {
    margin: 0;
    max-width: 52rem;
    line-height: 1.65;
    color: var(--vg-text-secondary);
}

.vg-lead--notice {
    color: var(--vg-danger-text);
    font-size: 0.8rem;
    line-height: 1.4;
}

.vg-toolbar {
    grid-area: toolbar;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.vg-write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: var(--accent, #28336a);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.vg-write-btn:hover {
    opacity: 0.92;
}

.vg-write-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.vg-auth-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--vg-text-muted);
}

.vg-sidebar {
    position: sticky;
    --vg-sticky-top-offset: calc(var(--jkc-header-nav-height, 64px) + var(--jkc-index-top-banner-height, 0px) + 1.25rem);
    top: var(--vg-sticky-top-offset);
    z-index: 10;
    max-height: calc(100vh - var(--vg-sticky-top-offset) - 1rem);
    overflow-y: auto;
    border: 1px solid var(--vg-border);
    border-radius: 12px;
    padding: 1rem 0.85rem;
    background: var(--vg-card);
}

@media (max-width: 900px) {
    .videoguide-page .vg-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "toolbar"
            "main"
            "sidebar";
        gap: 0.85rem 0;
        padding: 0.85rem 0.75rem 1.75rem;
        row-gap: 0.85rem;
    }

    .vg-sidebar {
        position: static;
        margin-top: 0.35rem;
        padding: 1rem 0.65rem 0.85rem;
        border: none;
        border-top: 1px solid var(--vg-border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.dark-mode .videoguide-page .vg-sidebar {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .vg-eyebrow {
        font-size: 0.68rem;
        margin-bottom: 0.25rem;
    }

    .vg-title {
        font-size: 1.2rem;
        margin-bottom: 0.35rem;
        line-height: 1.25;
    }

    .vg-lead,
    .vg-lead--notice {
        font-size: 0.78rem;
        line-height: 1.5;
        max-width: none;
    }

    .vg-lead br {
        display: none;
    }

    .vg-lead--notice {
        overflow-wrap: break-word;
        word-break: keep-all;
    }

    .vg-lead--notice br {
        display: inline;
    }

    .vg-toolbar {
        margin-top: 0.25rem;
        gap: 0.45rem 0.65rem;
    }

    .vg-write-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.85rem;
        border-radius: 8px;
    }

    .vg-auth-hint {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .vg-auth-hint br {
        display: none;
    }

    .vg-sidebar-title {
        font-size: 0.68rem;
        margin-bottom: 0.45rem;
    }

    .vg-cat-list {
        gap: 0.15rem;
    }

    .vg-cat-btn {
        font-size: 0.78rem;
        padding: 0.45rem 0.45rem 0.45rem 0.55rem;
        min-height: 2.5rem;
        border-radius: 8px;
    }

    .vg-cat-count {
        font-size: 0.68rem;
    }

    .vg-status {
        font-size: 0.74rem;
        margin-bottom: 0.65rem;
    }

    .vg-section {
        margin-bottom: 1.25rem;
    }

    .vg-section-head {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .vg-section-title {
        font-size: 0.95rem;
    }

    .vg-section-meta {
        font-size: 0.7rem;
    }

    .vg-post-list {
        gap: 0.55rem;
    }

    .vg-post-card {
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
    }

    .vg-post-title {
        font-size: 0.88rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }

    .vg-post-meta {
        font-size: 0.68rem;
        margin-bottom: 0.45rem;
    }

    .vg-post-body {
        font-size: 0.78rem;
        line-height: 1.52;
    }

    .vg-post-num {
        font-size: 0.68rem;
        margin-top: 0.4rem;
    }

    .vg-empty {
        min-height: clamp(9rem, 22vh, 14rem);
        padding: 1.25rem 0.85rem;
        border-radius: 10px;
    }

    .vg-empty-message {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

.vg-sidebar-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.65rem;
    padding: 0 0.35rem;
    color: var(--vg-text-muted);
}

.vg-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vg-cat-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.55rem 0.55rem 0.65rem;
    margin: 0;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.vg-cat-btn:hover {
    background: var(--vg-hover);
    border-color: rgba(40, 51, 106, 0.08);
}

.vg-cat-btn:focus-visible {
    outline: 2px solid var(--accent, #28336a);
    outline-offset: 2px;
}

.vg-cat-btn[aria-current="true"] {
    background: rgba(40, 51, 106, 0.1);
    border-color: rgba(40, 51, 106, 0.14);
    border-left-color: var(--accent, #28336a);
    font-weight: 600;
    color: var(--accent, #28336a);
    box-shadow: 0 1px 3px rgba(40, 51, 106, 0.08);
}

body.dark-mode .vg-cat-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .vg-cat-btn[aria-current="true"] {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.2);
    border-left-color: #a5b4fc;
    color: #e0e7ff;
    box-shadow: none;
}

.vg-cat-count {
    font-size: 0.8rem;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

.vg-status {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--vg-text-muted);
}

.vg-section {
    margin-bottom: 2rem;
}

.vg-section-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--accent, #28336a);
}

.vg-section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.vg-section-meta {
    font-size: 0.85rem;
    color: var(--vg-text-muted);
}

.vg-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.vg-post-card {
    border: 1px solid var(--vg-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: var(--vg-card);
}

.vg-post-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.vg-post-meta {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--vg-text-muted);
}

.vg-post-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    font-size: 0.95rem;
}

.vg-empty {
    box-sizing: border-box;
    width: 100%;
    min-height: clamp(14rem, 32vh, 22rem);
    padding: 2.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--vg-text-muted);
    border: 1px solid var(--vg-border);
    border-radius: 12px;
    background: var(--vg-card-soft);
}

.vg-empty-message {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
}

/* 작성 페이지 */
.videoguide-write-page .vgw-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.vgw-title {
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.vgw-lead {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    color: var(--vg-text-secondary);
}

#vgwForm label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.vgw-field {
    margin-bottom: 1.1rem;
}

.vgw-field--category label {
    color: var(--vg-text-secondary);
    letter-spacing: -0.01em;
}

.vgw-select-wrap {
    position: relative;
}

.vgw-select-wrap::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    margin-top: -0.2rem;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--accent, #28336a);
    opacity: 0.85;
    pointer-events: none;
}

.vgw-select--category {
    width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.7rem 2.75rem 0.7rem 1rem;
    border-width: 2px;
    background: var(--vg-card);
    border-color: var(--vg-border-strong);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.96rem;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.vgw-select--category:hover {
    border-color: rgba(40, 51, 106, 0.4);
}

.vgw-select--category:focus {
    outline: none;
    border-color: var(--accent, #28336a);
    box-shadow: 0 0 0 3px rgba(40, 51, 106, 0.2);
}

.vgw-select--category:invalid {
    color: #9ca3af;
}

.vgw-select--category option {
    color: #111827;
    font-weight: 500;
    padding: 0.5rem;
}

body.dark-mode .vgw-field--category label {
    color: rgba(226, 232, 240, 0.92);
}

body.dark-mode .vgw-select-wrap::after {
    border-top-color: #a5b4fc;
}

body.dark-mode .vgw-select--category {
    border-color: rgba(165, 180, 252, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #f1f5f9;
}

body.dark-mode .vgw-select--category:hover {
    border-color: rgba(165, 180, 252, 0.55);
}

body.dark-mode .vgw-select--category:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

body.dark-mode .vgw-select--category:invalid {
    color: #94a3b8;
}

body.dark-mode .vgw-select--category option {
    color: #0f172a;
    background: #f8fafc;
}

.vgw-input,
.vgw-select:not(.vgw-select--category),
.vgw-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--vg-border);
    font: inherit;
    font-size: 0.95rem;
    background: var(--vg-card);
    color: var(--vg-text);
}

.vgw-input::placeholder,
.vgw-textarea::placeholder {
    color: var(--vg-text-muted);
}

.vgw-textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.55;
}

.vgw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.vgw-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.vgw-btn--primary {
    background: var(--accent, #28336a);
    color: #fff;
}

.vgw-btn--ghost {
    background: transparent;
    border: 1px solid var(--vg-border);
    color: var(--vg-text);
}

.vgw-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.25em;
}

.vgw-status--err {
    color: #b91c1c;
}

.vgw-status--ok {
    color: #15803d;
}

.vgw-denied {
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(254, 226, 226, 0.35);
    border-radius: 12px;
    padding: 1.25rem;
}

.vgw-denied h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.vgw-denied p {
    margin: 0 0 1rem;
    line-height: 1.55;
}

.vgw-back {
    display: inline-block;
    font-weight: 600;
    color: var(--accent, #28336a);
}

body.dark-mode .vgw-denied {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.25);
    color: #fee2e2;
}

/* 목록 — 개별 글(검색·공유용 URL) */
a.vg-post-title-link {
    color: inherit;
    text-decoration: none;
}

a.vg-post-title-link:hover {
    text-decoration: underline;
    color: var(--vg-link);
}

.vg-post-num {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--vg-text-muted);
    margin: 0.55rem 0 0;
    letter-spacing: 0.02em;
    opacity: 0.55;
}

/* 상세 videoguide-post.html */
.videoguide-post-page .vgp-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.75rem;
}

.vgp-breadcrumb {
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.vgp-breadcrumb a {
    color: var(--vg-link);
    text-decoration: none;
    font-weight: 600;
}

.vgp-breadcrumb a:hover {
    text-decoration: underline;
}

.vgp-breadcrumb-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.vgp-status {
    font-size: 0.9rem;
    color: var(--vg-text-muted);
    margin: 0 0 0.5rem;
}

.vgp-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent, #28336a);
    margin: 0 0 0.35rem;
}

.vgp-title {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    line-height: 1.25;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.vgp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.75rem;
    margin: 0 0 0.65rem;
}

.vgp-actions[hidden],
.vgp-staff-actions[hidden] {
    display: none !important;
}

.vgp-actions-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.vgp-staff-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* 로컬 + 비스태프: 수정·삭제 버튼 레이아웃만 확인용(클릭 불가) */
.vgp-staff-actions--local-preview .vgp-icon-btn {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

.vgp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--vg-border);
    background: var(--vg-card);
    color: var(--accent, #28336a);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vgp-icon-btn:hover {
    background: var(--accent-soft, rgba(40, 51, 106, 0.1));
}

.vgp-icon-btn:focus-visible {
    outline: 2px solid var(--accent, #28336a);
    outline-offset: 2px;
}

.vgp-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.vgp-icon-btn .fi {
    font-size: 1rem;
    line-height: 1;
}

.vgp-icon-btn--danger {
    color: var(--vg-danger-text);
    border-color: rgba(180, 35, 24, 0.25);
}

.vgp-icon-btn--danger:hover {
    background: var(--vg-danger-bg);
}

/* 텍스트 링크처럼: 작게 + 밑줄 */
.vgp-copy-link-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--vg-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    vertical-align: baseline;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.vgp-copy-link-btn:hover {
    color: var(--vg-link-hover);
    text-decoration-color: currentColor;
}

.vgp-copy-link-btn:focus-visible {
    outline: 2px solid var(--accent, #28336a);
    outline-offset: 3px;
    border-radius: 2px;
}

.vgp-copy-feedback {
    font-size: 0.82rem;
    color: var(--vg-text-muted);
}

.vgp-meta,
.vgp-unique {
    font-size: 0.88rem;
    color: var(--vg-text-muted);
    margin: 0 0 0.65rem;
}

.vgp-unique {
    font-variant-numeric: tabular-nums;
    opacity: 0.55;
}

.vgp-sharebar {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--vg-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.vgp-sharebar .vgp-unique {
    margin: 0;
}

.vgp-sharebar-actions {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.vgp-body--pre {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.vgp-link-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vg-border);
}

.vgp-unique-footer {
    font-size: 0.82rem;
    color: var(--vg-text-muted);
    margin: 0.55rem 0 0;
    font-variant-numeric: tabular-nums;
    opacity: 0.65;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .videoguide-post-page .vgp-wrap {
        padding: 0.85rem 0.75rem 2rem;
    }

    .vgp-breadcrumb {
        font-size: 0.75rem;
    }

    .vgp-title {
        font-size: 1.15rem;
    }

    .vgp-meta,
    .vgp-unique,
    .vgp-unique-footer,
    .vgp-copy-feedback,
    .vgp-body--pre {
        font-size: 0.82rem;
    }

    .vgp-copy-link-btn {
        font-size: 0.72rem;
    }
}

/* 가이드라인 목록 접속 제한(관리자 OFF) 시 전용 화면 */
.vg-access-gate[hidden] {
    display: none !important;
}

.vg-access-gate {
    box-sizing: border-box;
    min-height: min(70vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem 3.5rem;
    text-align: center;
}

.vg-access-gate__inner {
    max-width: 40rem;
    margin: 0 auto;
}

.vg-access-gate__title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.2rem, 3.6vw, 1.65rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--vg-text);
}

.vg-access-gate__soon {
    margin: 0;
    font-size: clamp(2.75rem, 11vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.06em;
    color: var(--vg-link);
    text-transform: uppercase;
}

body.dark-mode .vg-access-gate__soon {
    color: var(--vg-link);
}

body.videoguide-page.videoguide-page--gated .vg-layout[hidden] {
    display: none !important;
}

/* 준비중 게이트만 보이기: 헤더·푸터·검색 모달·상단 배너 슬롯 숨김 */
body.videoguide-page--gated #header,
body.videoguide-page--gated #footer,
body.videoguide-page--gated #searchModal,
body.videoguide-page--gated #indexTopBanner {
    display: none !important;
}

body.videoguide-page--gated {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.videoguide-page--gated .main {
    flex: 1;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body.videoguide-page--gated .vg-access-gate {
    flex: 1;
    min-height: min(100vh, 720px);
    width: 100%;
}

/* localhost: 공개 OFF일 때 하단 소형 토스트(목록은 그대로 사용) */
.vg-local-closed-notice[hidden] {
    display: none !important;
}

.vg-local-closed-notice {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px max(10px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    pointer-events: none;
}

/* 로컬 준비중 바: 사이트 라이트/다크와 무관하게 다크 톤 고정 */
.vg-local-closed-notice__dialog {
    position: relative;
    z-index: 1;
    max-width: min(380px, calc(100vw - 20px));
    width: 100%;
    pointer-events: none;
    padding: 0;
    border-radius: 12px;
    background: linear-gradient(165deg, #1a2332 0%, #0f1419 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: left;
}

.vg-local-closed-notice__inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 10px 12px;
}

/* 플랫 2D 상태 표시등 — 다크 바에서도 식별되도록 밝은 초록 */
.vg-local-closed-notice__led {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background-color: #4ade80;
    border: 1px solid #166534;
    box-shadow: none;
    animation: vg-local-led-blink 2s ease-in-out infinite;
}

@keyframes vg-local-led-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.38;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vg-local-closed-notice__led {
        animation: none;
        opacity: 1;
    }
}

.vg-local-closed-notice__copy {
    flex: 1;
    min-width: 0;
}

.vg-local-closed-notice__title {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #e2e8f0;
}

.vg-local-closed-notice__soon {
    margin: 0;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1.2;
}
