/* ============================================================================
   FEDU SWISS DARK ARCHITECTURE — BRAND DESIGN SYSTEM (ytuong.fedu.vn)
   Synchronized with /Users/vietmac/Documents/CODE/k/brand.html
   ============================================================================ */

/* 1. FONT DECLARATIONS */
@font-face {
    font-family: 'FD Anguita Sans';
    src: url('https://font.fedu.vn/fonts/FDAnguitaSans-Black.woff2?v=2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FD Anguita Sans';
    src: url('https://font.fedu.vn/fonts/FDAnguitaSans-Bold.woff2?v=2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FD Aeonik Extended';
    src: url('https://font.fedu.vn/fonts/FDAeonikExtended-Bold.woff2?v=20260911b') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FD Aeonik';
    src: url('https://font.fedu.vn/fonts/FDAeonikExtended-SemiBold.woff2?v=20260911b') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* 2. SWISS DARK ARCHITECTURE TOKENS (brand.html) */
:root {
    --cl-bg:          #07090e;
    --cl-tint:        #0c101a;
    --cl-card:        #111622;
    --cl-card-muted:  #161d2d;
    --cl-accent:      #38bdf8;
    --cl-accent-tint: rgba(56, 189, 248, 0.12);
    --cl-line:        rgba(255, 255, 255, 0.08);
    --cl-line-strong: rgba(255, 255, 255, 0.18);
    --cl-text-base:   #f8fafc;
    --cl-text-muted:  #94a3b8;
    --cl-text-faint:  #64748b;
    --cl-radius-sm:   10px;
    --cl-radius-md:   16px;
    --cl-radius-lg:   24px;
    --cl-font-head:   'FD Aeonik Extended', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --cl-font-sub:    'Be Vietnam Pro', 'FD Aeonik', -apple-system, BlinkMacSystemFont, sans-serif;
    --cl-font-mono:   'JetBrains Mono', monospace;
    --bg-main:        #07090e;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--cl-bg);
    color: var(--cl-text-base);
    font-family: var(--cl-font-sub);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 3. CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cl-bg); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cl-accent); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 4. NAVIGATION & GLASS HEADER (brand.html .site-nav) */
.glass-header {
    background: rgba(7, 9, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cl-line);
}

/* 5. CARD SURFACE & HOVER AFFORDANCE (brand.html .cl-card) */
.glass-card, .cl-card {
    background: var(--cl-card);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    transition: all 0.22s cubic-bezier(0.25, 1, 0.35, 1.05);
}
.glass-card:hover, .cl-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.admin-only-card {
    border: 2px dashed rgba(245, 158, 11, 0.65) !important;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.14) 0%, var(--cl-card) 35%) !important;
}

/* 6. EDITORIAL LINK AFFORDANCE (Medium.com style) */
a.article-card-link {
    text-decoration: none;
    color: inherit;
}
a.article-card-link:hover .article-card-title {
    color: var(--cl-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 7. POSTER 9:16 ASPECT RATIO */
.aspect-poster {
    aspect-ratio: 9 / 16;
}

/* 8. SEARCH & MODAL UTILITIES */
#globalSearchContainer.hidden-search {
    display: none;
}

.app-modal-backdrop {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
}
.app-modal-backdrop.open {
    display: flex !important;
}
body.modal-open {
    overflow: hidden;
}

/* 9. GROUP MANAGER PANEL */
#groupManagerPanel {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.group-manager-hidden {
    transform: translateY(100%) translateY(48px);
}
.group-dropzone {
    transition: all 0.2s ease;
}
.group-dropzone.drag-over {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.02);
}
.idea-card-draggable { cursor: grab; }
.idea-card-draggable:active { cursor: grabbing; }
.idea-card-dragging { opacity: 0.5; transform: scale(0.95); }
.selection-mode .glass-card { cursor: pointer; }
.selection-mode .glass-card:hover { border-color: rgba(56, 189, 248, 0.5); }
.card-selected {
    border-color: rgba(56, 189, 248, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5) !important;
}

/* 10. HIGH-CONTRAST TOAST NOTIFICATION (brand.html #toast) */
#toastNotification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #ffffff;
    color: #07090e;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 640px) {
    #toastNotification {
        left: 16px;
        right: 16px;
        bottom: 20px;
    }
}

/* ============================================================================
   11. WHITE EDITORIAL ARTICLE VIEW (report_template.html — 30ngayviral Light UI)
   ============================================================================ */
@font-face {
    font-family: 'FD Aeonik';
    src: url('https://font.fedu.vn/FDAeonik-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FD Aeonik';
    src: url('https://font.fedu.vn/FDAeonik-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tiempos Text';
    src: url('https://font.fedu.vn/TiemposText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('https://font.fedu.vn/JetBrainsMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('https://font.fedu.vn/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body.article-view-active {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.article-view-active > header.glass-header {
    display: none !important;
}

#articlePageView .we-nav-btn.hidden {
    display: none !important;
}

#articlePageView {
    --cl-bg: #ffffff;
    --cl-tint: #f8fafc;
    --cl-card: #ffffff;
    --cl-accent: #1a73e8;
    --cl-accent-tint: rgba(26, 115, 232, 0.08);
    --cl-text-base: #090d16;
    --cl-text-body: #0f172a;
    --cl-text-muted: #475569;
    --cl-line: rgba(0, 0, 0, 0.06);
    --cl-line-strong: rgba(0, 0, 0, 0.12);
    --cl-danger: #dc2626;
    --cl-success: #16a34a;
    --cl-radius-lg: 24px;
    --cl-radius-md: 16px;
    --cl-radius-sm: 10px;
    --cl-radius-full: 9999px;
    --font-display: 'FD Aeonik Extended', 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    --font-body: 'Tiempos Text', 'FD Aeonik', 'Be Vietnam Pro', Georgia, serif;
    --font-ui: 'FD Aeonik', 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --apple-spring: cubic-bezier(0.25, 1, 0.35, 1.05);
    --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--cl-bg);
    color: var(--cl-text-body);
    font-family: var(--font-body);
    min-height: 100vh;
}

/* Sticky Top Editorial Sub-Header */
#articlePageView .we-sub-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cl-line);
    padding: 10px 20px;
}

#articlePageView .we-sub-header-inner {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#articlePageView .we-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

#articlePageView .we-nav-btn {
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--cl-radius-full);
    border: 1px solid var(--cl-line-strong);
    background: var(--cl-card);
    color: var(--cl-text-body);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s var(--apple-ease);
    white-space: nowrap;
}

#articlePageView .we-nav-btn:hover {
    border-color: var(--cl-accent);
    color: var(--cl-accent);
    background: var(--cl-accent-tint);
}

#articlePageView .we-nav-primary {
    background: var(--cl-accent);
    color: #ffffff;
    border-color: var(--cl-accent);
}

#articlePageView .we-nav-primary:hover {
    background: #1557b0;
    color: #ffffff;
    border-color: #1557b0;
}

#articlePageView .we-nav-amber {
    background: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
}

/* 2-Column White Editorial App Container */
#articlePageView .app-container {
    display: flex;
    min-height: calc(100vh - 53px);
    background: var(--cl-bg);
}

#articlePageView .video-sidebar {
    width: 420px;
    max-width: 420px;
    position: sticky;
    top: 53px;
    height: calc(100vh - 53px);
    background: var(--cl-tint);
    border-right: 1px solid var(--cl-line);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 14px;
    overflow-y: auto;
}

#articlePageView .video-wrap {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 68vh;
    border-radius: var(--cl-radius-md);
    overflow: hidden;
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
}

#articlePageView .video-wrap video,
#articlePageView .video-wrap iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

#articlePageView .video-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#articlePageView .speed-row,
#articlePageView .action-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

#articlePageView .ctrl-btn {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--cl-line-strong);
    background: var(--cl-card);
    color: var(--cl-text-muted);
    border-radius: var(--cl-radius-full);
    cursor: pointer;
    transition: all 0.2s var(--apple-ease);
}

#articlePageView .ctrl-btn:hover {
    border-color: var(--cl-accent);
    color: var(--cl-accent);
}

#articlePageView .ctrl-btn.active {
    background: var(--cl-accent);
    color: #ffffff;
    border-color: var(--cl-accent);
}

#articlePageView #shotStatusTag {
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    color: var(--cl-accent);
    background: var(--cl-accent-tint);
    padding: 6px 12px;
    border-radius: var(--cl-radius-full);
    margin-top: 4px;
    word-break: break-all;
}

/* Content Column */
#articlePageView .content-column {
    flex: 1;
    padding: 32px 40px 64px;
    max-width: 1000px;
    background: var(--cl-bg);
}

/* Report Header */
#articlePageView .report-header {
    margin-bottom: 28px;
}

#articlePageView .header-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#articlePageView .header-badges .badge,
#articlePageView .header-badges span,
#articlePageView .header-badges button {
    background: var(--cl-accent-tint);
    color: var(--cl-accent);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: var(--cl-radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--apple-ease);
}

#articlePageView .header-badges button:hover {
    border-color: var(--cl-accent);
}

#articlePageView .report-title {
    font-family: var(--font-body);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 400;
    color: var(--cl-text-base);
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

#articlePageView .report-title a {
    color: inherit;
    text-decoration: none;
}

#articlePageView .report-title a:hover {
    text-decoration: underline;
}

#articlePageView .header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--cl-text-muted);
    flex-wrap: wrap;
}

#articlePageView .creator-link {
    color: var(--cl-accent);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

#articlePageView .creator-link:hover {
    text-decoration: underline;
}

#articlePageView .hub-link {
    margin-left: auto;
    color: var(--cl-text-muted);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

#articlePageView .hub-link:hover {
    color: var(--cl-accent);
}

#articlePageView .meta-dot {
    opacity: 0.5;
}

/* Script Axis Card */
#articlePageView .script-axis-card {
    background: var(--cl-tint);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

#articlePageView .script-axis-title {
    text-transform: uppercase;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--cl-accent);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

#articlePageView .script-axis-content {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    color: var(--cl-text-body);
}

/* Overview Card */
#articlePageView .overview-card {
    background: var(--cl-tint);
    border-radius: var(--cl-radius-md);
    padding: 20px 24px;
    border: 1px solid var(--cl-line);
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--cl-text-body);
}

#articlePageView .overview-drill-bar {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cl-line);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.55;
    color: #166534;
    background: #f0fdf4;
    padding: 10px 14px;
    border-radius: var(--cl-radius-sm);
    border-left: 3px solid var(--cl-success);
}

/* Toolbar (Bóc tách chi tiết | Lưới ảnh | Mục lục) */
#articlePageView .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px;
    gap: 8px;
    flex-wrap: wrap;
}

#articlePageView .tab-group {
    display: flex;
    gap: 8px;
}

#articlePageView .tab-btn {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--cl-text-muted);
    border-radius: var(--cl-radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

#articlePageView .tab-btn:hover {
    background: var(--cl-line);
}

#articlePageView .tab-btn.active {
    background: var(--cl-accent);
    color: #ffffff;
}

#articlePageView .drawer-btn {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--cl-line-strong);
    background: var(--cl-card);
    color: var(--cl-text-body);
    border-radius: var(--cl-radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

#articlePageView .drawer-btn:hover {
    border-color: var(--cl-accent);
    color: var(--cl-accent);
}

/* Shot Cards (Compact White Editorial) */
#articlePageView #storyboardView {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#articlePageView .shot-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--cl-card);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    transition: border-color 0.2s var(--apple-ease);
}

#articlePageView .shot-card:hover {
    border-color: var(--cl-accent);
}

#articlePageView .shot-card.active-playing {
    border-color: var(--cl-accent);
    box-shadow: 0 0 0 2px var(--cl-accent-tint);
}

#articlePageView .shot-thumb {
    width: 130px;
    flex-shrink: 0;
    border-radius: var(--cl-radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 9/16;
    background: #000;
}

#articlePageView .shot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.3s var(--apple-ease), opacity 0.3s;
}

#articlePageView .shot-thumb:hover img {
    transform: scale(1.05);
    opacity: 1;
}

#articlePageView .shot-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

#articlePageView .shot-thumb:hover .shot-play-icon {
    opacity: 1;
}

#articlePageView .shot-play-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

#articlePageView .shot-time-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

#articlePageView .shot-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#articlePageView .shot-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

#articlePageView .shot-num {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cl-accent);
    background: var(--cl-accent-tint);
    padding: 4px 10px;
    border-radius: var(--cl-radius-full);
    letter-spacing: 0.05em;
}

#articlePageView .shot-dur {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--cl-text-muted);
    font-weight: 500;
}

#articlePageView .shot-headline {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 600;
    color: var(--cl-text-base);
    margin: 0 0 10px 0;
    line-height: 1.35;
}

#articlePageView .shot-insight {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--cl-text-body);
    line-height: 1.6;
    margin: 0;
}

#articlePageView .shot-details {
    margin-top: 16px;
    background: var(--cl-tint);
    border-radius: var(--cl-radius-sm);
    border: 1px solid var(--cl-line);
}

#articlePageView .shot-details summary {
    font-family: var(--font-ui);
    font-size: 13.5px;
    color: var(--cl-text-muted);
    font-weight: 500;
    cursor: pointer;
    padding: 10px 14px;
    user-select: none;
    transition: color 0.2s;
}

#articlePageView .shot-details summary:hover {
    color: var(--cl-accent);
}

#articlePageView .shot-details[open] summary {
    border-bottom: 1px solid var(--cl-line);
    color: var(--cl-accent);
    margin-bottom: 12px;
}

#articlePageView .shot-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding: 0 14px 12px;
}

#articlePageView .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#articlePageView .meta-label {
    font-family: var(--font-ui);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cl-text-muted);
    font-weight: 600;
}

#articlePageView .meta-val {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--cl-text-base);
    line-height: 1.4;
}

#articlePageView .critique-good,
#articlePageView .critique-warn,
#articlePageView .shot-narrative {
    margin: 0 14px 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 13.5px;
    line-height: 1.5;
}

#articlePageView .critique-good {
    background: #f0fdf4;
    border-left: 3px solid var(--cl-success);
    color: #166534;
}

#articlePageView .critique-warn {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    color: #b45309;
}

#articlePageView .shot-narrative {
    background: var(--cl-card);
    border: 1px solid var(--cl-line);
    color: var(--cl-text-muted);
    font-style: italic;
}

/* Grid View */
#articlePageView #gridView {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
}

#articlePageView .grid-item {
    cursor: pointer;
}

#articlePageView .grid-thumb {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: var(--cl-radius-sm);
    overflow: hidden;
    position: relative;
    background: #000;
    margin-bottom: 6px;
}

#articlePageView .grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#articlePageView .grid-num {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

#articlePageView .grid-time {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

#articlePageView .grid-zoom {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #090d16;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#articlePageView .grid-title {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--cl-text-body);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TOC Drawer */
#articlePageView .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
}

#articlePageView .drawer-backdrop.open {
    display: flex;
    justify-content: flex-end;
}

#articlePageView .drawer-panel {
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background: var(--cl-card);
    border-left: 1px solid var(--cl-line);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#articlePageView .drawer-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--cl-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--cl-text-base);
}

#articlePageView .drawer-head button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--cl-text-muted);
}

#articlePageView .drawer-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#articlePageView .drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--cl-radius-sm);
    border: 1px solid var(--cl-line);
    cursor: pointer;
    transition: all 0.2s;
}

#articlePageView .drawer-item:hover {
    border-color: var(--cl-accent);
    background: var(--cl-tint);
}

#articlePageView .drawer-thumb {
    width: 44px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

#articlePageView .drawer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#articlePageView .drawer-info {
    flex: 1;
    min-width: 0;
}

#articlePageView .drawer-shot-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--cl-accent);
}

#articlePageView .drawer-shot-hl {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--cl-text-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#articlePageView .drawer-shot-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cl-text-muted);
}

#articlePageView .drawer-arrow {
    color: var(--cl-accent);
    font-size: 12px;
    padding-right: 4px;
}

/* Dialogue Section */
#articlePageView .dialogue-section {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

#articlePageView .dialogue-col-main {
    flex: 1;
    background: var(--cl-card);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    overflow: hidden;
}

#articlePageView .dialogue-col-aside {
    flex: 0 0 320px;
    background: var(--cl-tint);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#articlePageView .dialogue-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--cl-line);
    background: var(--cl-card);
    display: flex;
    align-items: center;
    gap: 12px;
}

#articlePageView .dialogue-aside-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--cl-line);
    background: var(--cl-tint);
    display: flex;
    align-items: center;
}

#articlePageView .dialogue-badge {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--cl-text-base);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

#articlePageView .dialogue-sub {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cl-text-muted);
}

#articlePageView .dialogue-aside-header span {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--cl-text-muted);
    letter-spacing: 0.05em;
}

#articlePageView .dialogue-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#articlePageView .dialogue-aside-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 400px;
}

#articlePageView .vn-para {
    cursor: pointer;
    padding: 14px;
    border-radius: var(--cl-radius-sm);
    transition: background 0.2s var(--apple-ease);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid transparent;
}

#articlePageView .vn-para:hover {
    background: var(--cl-tint);
    border-color: var(--cl-line);
}

#articlePageView .vn-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cl-text-muted);
}

#articlePageView .vn-beat {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cl-accent);
}

#articlePageView .vn-text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--cl-text-body);
}

#articlePageView .en-line {
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--cl-radius-sm);
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#articlePageView .en-line:hover {
    background: rgba(0, 0, 0, 0.03);
}

#articlePageView .en-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cl-text-muted);
}

#articlePageView .en-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--cl-text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Remake Prompt Card */
#articlePageView .remake-prompt-card {
    background: var(--cl-card);
    border: 1px solid var(--cl-accent);
    border-radius: var(--cl-radius-md);
    margin-bottom: 28px;
    box-shadow: 0 4px 20px var(--cl-accent-tint);
    overflow: hidden;
}

#articlePageView .prompt-accordion-header {
    padding: 16px 20px;
    background: #f0f7ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-bottom: 1px solid transparent;
}

#articlePageView .prompt-accordion-header:hover {
    background: #e0efff;
}

#articlePageView .prompt-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#articlePageView .prompt-badge {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--cl-accent);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

#articlePageView .prompt-title {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--cl-text-base);
}

#articlePageView .prompt-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

#articlePageView .prompt-copy-btn {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--cl-text-base);
    background: white;
    border: 1px solid var(--cl-line-strong);
    padding: 6px 12px;
    border-radius: var(--cl-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

#articlePageView .prompt-copy-btn:hover {
    border-color: var(--cl-accent);
    color: var(--cl-accent);
}

#articlePageView .prompt-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cl-text-muted);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
}

#articlePageView .prompt-accordion-body {
    padding: 24px;
    border-top: 1px solid #e0efff;
}

#articlePageView .prompt-desc {
    font-family: var(--font-ui);
    font-size: 14.5px;
    color: var(--cl-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

#articlePageView .prompt-code-wrap {
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-sm);
    overflow: hidden;
}

#articlePageView .prompt-code-bar {
    background: var(--cl-tint);
    padding: 10px 16px;
    border-bottom: 1px solid var(--cl-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cl-text-muted);
}

#articlePageView .prompt-code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--cl-text-base);
    background: white;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

/* Related Articles in White Editorial Theme */
#articlePageView .we-related-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--cl-line-strong);
}

#articlePageView .we-related-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-ui);
}

#articlePageView .we-related-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cl-text-base);
}

#articlePageView .we-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

#articlePageView .we-related-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--cl-tint);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s var(--apple-ease);
}

#articlePageView .we-related-card:hover {
    border-color: var(--cl-accent);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

#articlePageView .we-related-thumb {
    width: 56px;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
}

/* Responsive Breakpoints for White Editorial View */
@media (max-width: 768px) {
    #articlePageView .dialogue-section {
        flex-direction: column;
    }
    #articlePageView .dialogue-col-aside {
        flex: none;
        max-height: 300px;
    }
    #articlePageView .prompt-accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    #articlePageView .prompt-right {
        width: 100%;
        justify-content: space-between;
    }
    #articlePageView .we-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    #articlePageView .we-sub-header {
        padding: 8px 12px;
    }
    #articlePageView .we-nav-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    #articlePageView .app-container {
        flex-direction: column;
    }
    #articlePageView .video-sidebar {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        height: auto;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid var(--cl-line);
    }
    #articlePageView .content-column {
        padding: 20px 16px 48px;
    }
    #articlePageView .shot-card {
        flex-direction: column;
    }
    #articlePageView .shot-thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }
    #articlePageView #gridView {
        grid-template-columns: repeat(2, 1fr);
    }
    #articlePageView .hub-link {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }
}

