       :root {
            --bg-dark: #121214;
            --bg-card: #1c1c1e;
            --bg-surface: #242426;
            --accent-red: #ff3b30;
            --text-main: #ffffff;
            --text-dim: #a0a0a2;
            --border-color: #2c2c2e;
            --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-family); line-height: 1.5; overflow-x: hidden; }
        .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
        a { text-decoration: none; color: inherit; transition: opacity 0.2s; cursor: pointer; }
        a:hover { opacity: 0.8; }
        ul { list-style: none; }
        .cursor-pointer { cursor: pointer; }

        /* Header */
        .header { background-color: var(--bg-dark); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; transition: background-color 0.3s, border-bottom-color 0.3s; }
        .header--scrolled { background-color: rgba(18, 18, 20, 0.95); backdrop-filter: blur(10px); border-bottom-color: transparent; }
        .header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

        .logo-wrap { display: flex; align-items: center; gap: 15px; }
        #mobile-menu-btn { display: none; color: white; }
        .logo-link { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
        .logo-link img { height: 40px; object-fit: contain; display: block; }

        .desktop-nav { display: flex; gap: 24px; }
        .desktop-nav a { font-size: 15px; color: var(--text-dim); font-weight: 500; cursor: pointer; transition: color 0.2s; }
        .desktop-nav a.active { color: var(--accent-red); }
        .desktop-nav a:hover { color: white; }

        .header-utils { display: flex; align-items: center; gap: 16px; }
        .search-wrap { display: flex; align-items: center; position: relative; }
        .search-input { width: 0; opacity: 0; overflow: hidden; transition: all 0.3s ease; background: var(--bg-surface); border: none; border-radius: 20px; padding: 0; color: white; font-size: 14px; position: absolute; right: 30px; }
        .search-input.show { width: 160px; opacity: 1; padding: 6px 15px; border: 1px solid var(--border-color); }
        .search-input:focus { outline: none; border-color: var(--accent-red); }
        .search-btn { color: white; transition: color 0.2s; }
        .search-btn:hover { color: var(--accent-red); }
        .lang-btn { color: var(--text-dim); cursor: pointer; transition: color 0.2s; display: flex; align-items: center; gap: 2px; }
        .lang-btn:hover { color: white; }
        .btn-subscribe { background-color: var(--accent-red); color: white; padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: bold; border: none; cursor: pointer; transition: background 0.2s; }
        .btn-subscribe:hover { background-color: #e0352b; }

        .mobile-nav { display: none; background-color: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 10px 20px; position: absolute; top: 64px; left: 0; right: 0; z-index: 999; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .mobile-nav.show { display: flex; }
        .mobile-nav a { color: var(--text-main); font-size: 15px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border-color); cursor: pointer; }
        .mobile-nav a:last-child { border-bottom: none; }
        .mobile-nav a.active { color: var(--accent-red); font-weight: bold; }

        /* Animations */
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* Main Components */
        .hero { margin-top: 20px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #4b0d0d 0%, #1c0505 100%); position: relative; height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 40px; cursor: pointer; }
        .hero-badge { background: var(--accent-red); padding: 4px 10px; font-size: 12px; font-weight: bold; border-radius: 4px; width: fit-content; margin-bottom: 16px; }
        .hero-title { font-size: 32px; font-weight: bold; margin-bottom: 12px; line-height: 1.3; }
        .hero-desc { color: var(--text-dim); font-size: 15px; max-width: 600px; }
        .info-bar { background-color: var(--bg-card); border-radius: 8px; margin-top: 20px; padding: 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
        .info-bar::-webkit-scrollbar { display: none; }
        .info-title { font-weight: bold; color: var(--text-dim); flex-shrink: 0; margin-right: 10px; }
        .ticker-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex-shrink: 0; }
        .ticker-label { font-size: 12px; color: var(--text-dim); }
        .ticker-val { font-size: 15px; font-weight: 600; }
        .up { color: #34c759; } .down { color: var(--accent-red); }
        .main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 40px; }
        .sec-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .sec-title h2 { font-size: 20px; font-weight: bold; }
        .ctrls { display: flex; gap: 8px; }
        .btn-ctrl { width: 24px; height: 24px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--text-dim); cursor: pointer; }
        .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
        .v-card { cursor: pointer; }
        .v-thumb { aspect-ratio: 16/9; background-color: #333; border-radius: 8px; position: relative; margin-bottom: 10px; overflow: hidden; background-size: cover; background-position: center; }
        .live-tag { position: absolute; top: 8px; left: 8px; background: var(--accent-red); font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 3px; }
        .v-title { font-size: 14px; font-weight: 500; line-height: 1.4; }

        /* Side Section & Ads */
        .side-keywords { background: var(--bg-card); border-radius: 12px; padding: 20px; }
        .keyword-list li { padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; color: var(--text-dim); cursor: pointer; }
        .keyword-list li:last-child { border-bottom: none; }
        .keyword-list li:hover { color: var(--text-main); }
        .side-box { margin-bottom: 30px; }
        .news-box { background: var(--bg-surface); padding: 20px; border-radius: 12px; }
        .news-input { display: flex; background: var(--bg-dark); border-radius: 8px; margin-top: 15px; overflow: hidden; }
        .news-input input { background: none; border: none; padding: 12px; color: white; flex: 1; outline: none; }
        .news-input button { background: var(--accent-red); border: none; width: 44px; color: white; cursor: pointer; }
        .chart-widget { background: var(--bg-card); padding: 20px; border-radius: 12px; margin-top: 20px; }
        .chart-placeholder { width: 100%; height: 120px; margin-top: 15px; background-image: linear-gradient(to top, rgba(52, 199, 89, 0.2), transparent); border-bottom: 2px solid #34c759; position: relative; }
        .ad-text-block { background: var(--bg-card); padding: 20px; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 30px; cursor: pointer; transition: transform 0.2s; }
        .ad-text-block:hover { transform: translateY(-3px); border-color: var(--accent-red); }
        .ad-label { display: inline-block; font-size: 10px; font-weight: bold; background: #444; color: white; padding: 2px 6px; border-radius: 4px; margin-bottom: 8px; }
        .ad-text-title { font-size: 16px; font-weight: bold; color: var(--accent-red); margin-bottom: 8px; }
        .ad-text-desc { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

        /* List & Articles */
        .article-list { display: flex; flex-direction: column; gap: 24px; }
        .a-card { display: flex; gap: 20px; cursor: pointer; padding: 10px; border-radius: 8px; transition: background 0.2s; }
        .a-card:hover { background: var(--bg-card); }
        .a-thumb { width: 160px; height: 100px; background: #2c2c2e; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center; }
        .a-info { flex: 1; }
        .a-title { font-size: 18px; font-weight: bold; margin-bottom: 8px; }
        .a-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.4; }
        .a-tags { display: flex; gap: 6px; }
        .a-tag { background: #3a3a3c; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: var(--text-dim); }
        .a-tag.red { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); }
        .bottom-content { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-color); }
        .bm-banner { background: var(--bg-card); border-radius: 12px; padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
        .bm-banner h2 { font-size: 22px; font-weight: bold; }
        .bm-thumbs { display: flex; gap: 12px; align-items: center; }
        .bm-thumb { width: 100px; height: 60px; background-color: var(--border-color); border-radius: 8px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,0.1); }
        .bm-arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dim); margin-left: 8px; }
        .tech-reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
        .badge-rounded { border: 1px solid var(--border-color); padding: 2px 12px; border-radius: 20px; font-size: 11px; color: var(--text-dim); }
        .tech-list { display: flex; flex-direction: column; gap: 24px; }
        .tech-item { display: flex; gap: 16px; align-items: center; cursor: pointer; }
        .tech-icon { width: 64px; height: 64px; border-radius: 50%; background-color: var(--border-color); flex-shrink: 0; background-size: cover; background-position: center; border: 2px solid #333; }
        .tech-info h3 { font-size: 16px; font-weight: bold; margin-bottom: 6px; transition: color 0.2s; }
        .tech-info p { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
        .reports-grid { display: flex; gap: 16px; }
        .report-card { flex: 1; height: 180px; background-color: var(--border-color); border-radius: 12px; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; }
        .report-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); transition: background 0.3s; }
        .report-card:hover::after { background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%); }
        .report-content { position: absolute; inset: 0; z-index: 1; padding: 24px; display: flex; align-items: center; }
        .report-content h3 { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: 1px; color: rgba(255,255,255,0.9); }

        /* Pages & Layouts */
        .page-header { margin: 40px 0; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
        .page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
        .page-header p { color: var(--text-dim); font-size: 16px; }
        .list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
        .list-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; transition: transform 0.2s; cursor: pointer; }
        .list-card:hover { transform: translateY(-4px); }
        .list-thumb { height: 200px; background-size: cover; background-position: center; }
        .list-info { padding: 20px; }
        .list-title { font-size: 20px; font-weight: bold; margin: 10px 0; line-height: 1.4; }
        .list-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
        .list-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
        .pagination { display: flex; justify-content: center; gap: 10px; margin: 40px 0; }
        .page-btn { padding: 8px 16px; border-radius: 6px; background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-main); cursor: pointer; }
        .page-btn.active { background: var(--accent-red); border-color: var(--accent-red); font-weight: bold; }

        .view-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 40px; }
        .view-container { padding-bottom: 40px;  flex: 1; min-width: 0;}
        .article-header { margin-bottom: 30px; text-align: center; }
        .view-tags { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
        .article-title { font-size: 40px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; word-break: keep-all; }
        .article-meta-info { display: flex; justify-content: center; align-items: center; gap: 20px; color: var(--text-dim); font-size: 14px; margin-bottom: 30px; }
        .author-info { display: flex; align-items: center; gap: 8px; }
        .author-pic { width: 32px; height: 32px; border-radius: 50%; background-color: var(--border-color); background-size: cover; background-position: center; }
        .article-hero { width: 100%; height: 450px; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 40px; }
        .article-body { font-size: 17px; line-height: 1.8; color: #ddd; }
        .article-body p { margin-bottom: 24px; }
        .article-body h3 { font-size: 24px; font-weight: bold; margin: 40px 0 20px; color: var(--text-main); }
        .article-body blockquote { border-left: 4px solid var(--accent-red); padding-left: 20px; margin: 30px 0; font-size: 20px; font-weight: bold; color: var(--text-main); font-style: italic; background: var(--bg-card); padding: 20px; border-radius: 0 8px 8px 0;}
        .share-box { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 20px 0; margin: 40px 0; display: flex; justify-content: space-between; align-items: center; }
        .share-btns { display: flex; gap: 10px; }
        .s-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
        .s-btn:hover { background: var(--bg-card); }
        .comments-section { margin-top: 60px; }
        .comments-section h3 { font-size: 20px; font-weight: bold; margin-bottom: 20px; }
        .comment-input-area { background: var(--bg-card); padding: 20px; border-radius: 12px; margin-bottom: 30px; }
        .comment-input-area textarea { width: 100%; background: var(--bg-dark); border: 1px solid var(--border-color); color: white; padding: 15px; border-radius: 8px; resize: none; height: 100px; outline: none; font-family: inherit; margin-bottom: 10px;}
        .comment-btn-row { display: flex; justify-content: flex-end; }
        .comment-list { display: flex; flex-direction: column; gap: 20px; }
        .comment-item { display: flex; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
        .comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: bold;}
        .comment-content { flex: 1; }
        .comment-author { font-weight: bold; font-size: 14px; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
        .comment-date { font-weight: normal; color: var(--text-dim); font-size: 12px; }
        .comment-text { font-size: 14px; line-height: 1.5; color: #ccc; }

        .about-wrapper { margin: 40px 0 80px; }
        .about-tabs { display: flex; gap: 5px; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); overflow-x: auto; white-space: nowrap; }
        .about-tab-btn { padding: 15px 25px; background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 500; }
        .about-tab-btn.active { color: var(--accent-red); border-bottom-color: var(--accent-red); font-weight: bold; }
        .about-tab-content { display: none; animation: fadeIn 0.3s; }
        .about-tab-content.active { display: block; }
        .about-hero { text-align: center; padding: 40px 0 60px; }
        .about-hero h1 { font-size: 40px; font-weight: 900; margin-bottom: 20px; }
        .about-hero h1 span { color: var(--accent-red); }
        .about-hero p { font-size: 17px; color: var(--text-dim); max-width: 600px; margin: 0 auto; line-height: 1.6; }
        .about-section { margin-bottom: 80px; }
        .about-section-title { font-size: 28px; font-weight: bold; margin-bottom: 30px; text-align: center; }
        .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .value-card { background: var(--bg-card); padding: 40px 30px; border-radius: 16px; text-align: center; }
        .value-icon { width: 80px; height: 80px; background: rgba(255, 59, 48, 0.1); color: var(--accent-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
        .value-card h3 { font-size: 20px; font-weight: bold; margin-bottom: 15px; }
        .value-card p { color: var(--text-dim); font-size: 15px; line-height: 1.5; }
        .history-list { max-width: 600px; margin: 0 auto; border-left: 2px solid var(--border-color); padding-left: 30px; }
        .history-item { position: relative; margin-bottom: 40px; }
        .history-item::before { content: ''; position: absolute; left: -39px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-red); border: 4px solid var(--bg-dark); }
        .h-year { font-size: 24px; font-weight: bold; color: var(--accent-red); margin-bottom: 10px; }
        .h-desc { font-size: 16px; line-height: 1.5; }
        .text-page-container { max-width: 800px; margin: 0 auto; }
        .text-content { font-size: 16px; line-height: 1.7; color: #ddd; }
        .text-content h3 { font-size: 20px; color: var(--text-main); margin: 30px 0 15px; border-left: 3px solid var(--accent-red); padding-left: 10px; }
        .text-content p { margin-bottom: 15px; }
        .text-content ul { padding-left: 20px; margin-bottom: 20px; list-style-type: disc; }
        .text-content li { margin-bottom: 8px; }
        .form-container { max-width: 600px; margin: 0 auto; background: var(--bg-card); padding: 40px; border-radius: 12px; }
        .form-title { font-size: 24px; font-weight: bold; margin-bottom: 10px; text-align: center; }
        .form-desc { text-align: center; color: var(--text-dim); margin-bottom: 30px; font-size: 14px; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 14px; }
        .form-input { width: 100%; padding: 12px 15px; background: var(--bg-dark); border: 1px solid var(--border-color); color: white; border-radius: 8px; font-family: inherit; font-size: 15px; outline: none; }
        .form-input:focus { border-color: var(--accent-red); }
        textarea.form-input { height: 150px; resize: none; }
        .btn-submit { width: 100%; padding: 14px; background: var(--accent-red); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; transition: background 0.2s; }
        .btn-submit:hover { background: #e0352b; }

        /* Modals & Footer */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        .modal-content { background: var(--bg-card); width: 90%; max-width: 500px; border-radius: 12px; padding: 40px; position: relative; transform: translateY(20px); transition: 0.3s; }
        .modal-overlay.active .modal-content { transform: translateY(0); }
        .modal-close { position: absolute; top: 20px; right: 20px; font-size: 24px; color: var(--text-dim); cursor: pointer; border: none; background: none; }
        .modal-close:hover { color: white; }
        .modal-title { font-size: 24px; font-weight: bold; margin-bottom: 20px; text-align: center; }

        .footer { background-color: var(--bg-dark); border-top: 1px solid var(--border-color); padding: 60px 0 30px; margin-top: 60px; }
        .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
        .f-col h4 { font-size: 15px; margin-bottom: 20px; color: var(--text-main); }
        .f-col ul li { margin-bottom: 10px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
        .f-col ul li a { color: var(--text-dim); }
        .f-col ul li a:hover, .f-col ul li:hover { color: white; }
        .f-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 30px; }
        .f-logo { font-weight: bold; font-size: 18px; }
        .socials { display: flex; gap: 15px; }
        .social-icon { width: 24px; height: 24px; opacity: 0.6; cursor: pointer; }
        .social-icon:hover { opacity: 1; }

        /* Mobile Media Queries */
        @media (max-width: 900px) {
            .info-bar { justify-content: flex-start; gap: 40px; }
            .main-grid, .view-layout { grid-template-columns: 1fr; }
            .desktop-nav { display: none; }
            #mobile-menu-btn { display: block; }
            .search-input.show { width: 120px; }
            .hero-title { font-size: 24px; }
            .video-grid { grid-template-columns: 1fr 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .bm-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; }
            .bm-thumbs { width: 100%; justify-content: space-between; }
            .tech-reports-grid { grid-template-columns: 1fr; }
            .list-grid { grid-template-columns: 1fr; }
            .value-grid { grid-template-columns: 1fr; }
            .article-title { font-size: 28px; }
            .article-hero { height: 250px; }
        }
        @media (max-width: 600px) {
            .footer-grid { grid-template-columns: 1fr; gap: 30px; }
            .btn-subscribe { display: none; }
            .bm-thumbs { overflow-x: auto; padding-bottom: 10px; }
            .bm-thumb { flex-shrink: 0; }
            .reports-grid { flex-direction: column; }
            .video-grid { grid-template-columns: 1fr; }
            .a-card { flex-direction: column; }
            .a-thumb { width: 100%; height: 180px; }
            .modal-content { padding: 30px 20px; }
            .about-tabs { padding-bottom: 5px; }
        }



@media (max-width: 992px) {
    .aside.view-sidebar { width: 100%; min-width: 0; }
}

/* 전체 배경 및 기본 폰트 색상 */
.view-sidebar { color: #d1d5db !important; }

/* a 태그, p 태그, 일반 텍스트 등 적용 안되던 요소들 강제 다크모드화 */
.view-sidebar a,
.view-sidebar p,
.view-sidebar span,
.view-sidebar div,
.view-sidebar li {
    color: #d1d5db !important;
}

/* 공통 헤딩 (h2, h3, h4) 다크테마 오버라이드 */
.view-sidebar h2,
.view-sidebar [class*="section_"] h3,
.view-sidebar [class*="ad_text"] h4 {
    color: #fff !important;
    border-bottom: 2px solid #334155 !important; /* 밝은 회색 선을 어두운 선으로 교체 */
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    padding: 0 0 10px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: transparent !important;
    margin-bottom: 16px !important;
    margin-top: 24px !important; /* 위젯 사이 간격 추가 */
}

/* 첫 번째 헤딩은 위쪽 여백 제거 */
.view-sidebar > *:first-child h2,
.view-sidebar > *:first-child h3,
.view-sidebar > *:first-child h4,
.view-sidebar > h2:first-of-type {
    margin-top: 0 !important;
}

/* 테두리(선) 다크테마 맞춤 */
.view-sidebar [class*="section_"] li,
.view-sidebar [class*="ad_text"] li {
    border-top-color: #334155 !important;
    border-bottom-color: #334155 !important;
    list-style: none;
}

/* 텍스트 색상 및 호버 (강조, 제목) */
.view-sidebar .tit,
.view-sidebar strong.tit,
.view-sidebar strong,
.view-sidebar [class*="ad_text"] h4 a,
.view-sidebar [class*="ad_text"] li a {
    color: #f3f4f6 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: color 0.2s ease;
}

.view-sidebar a:hover,
.view-sidebar a:hover .tit,
.view-sidebar a:hover strong.tit,
.view-sidebar a:hover strong,
.view-sidebar [class*="ad_text"] li a:hover {
    color: var(--primary) !important;
    text-decoration: none !important;
}

/* 서브 텍스트 (본문, 언론사, 날짜 등) */
.view-sidebar .lede,
.view-sidebar .press,
.view-sidebar .date,
.view-sidebar .hit,
.view-sidebar .txt_age {
    color: #9ca3af !important;
    font-size: 13px !important;
    margin-top: 6px !important;
}
.view-sidebar .txt_age {
    color: var(--primary) !important; /* 연령대 텍스트 포인트 색상 */
    font-weight: bold;
}

/* 썸네일 가상선 및 백그라운드 보정 */
.view-sidebar .thumb:after,
.view-sidebar .thumb_wrap:after {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.view-sidebar .thumb,
.view-sidebar .thumb_wrap {
    background-color: #1f2937 !important;
    border-radius: 6px !important;
}
.view-sidebar .thumb img,
.view-sidebar .thumb_wrap img {
    border-radius: 6px !important;
}

/* ==========================================================================
   특정 위젯 레이아웃 보정 (질문자님 원본 코드 유지)
   ========================================================================== */

/* [ad_text_pic_r_C] 보정 */
.view-sidebar .ad_text_pic_r_C .rank_num {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 12px !important;
    border-radius: 4px 0 6px 0;
}

/* [section_05] 보정 (순위 번호와 레이아웃 충돌 해결) */
.view-sidebar .section_05 .rank_num {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    color: var(--primary) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    width: 24px !important;
    line-height: 1 !important;
    text-align: left !important;
}
.view-sidebar .section_05 li a { padding-left: 28px !important; }
.view-sidebar .section_05 .thumb {
    margin-left: 0 !important;
    margin-right: 12px !important;
    border-radius: 6px !important;
    width: 80px !important;
    height: 60px !important;
}
.view-sidebar .section_05 .info {
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.view-sidebar .section_05 .tit { margin-top: 0 !important; }

/* [section_10, 11, 12 등] (추천영상) 보정 */
.view-sidebar .section_10 .thumb_wrap::after,
.view-sidebar .section_11 .thumb_wrap::after,
.view-sidebar .section_12 .thumb_wrap::after {
    content: '▶' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 3px !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
}

/* [ad_text_r_F] 보정 (텍스트 리스트) */
.view-sidebar .ad_text_r_F ul { padding: 0 !important; margin: 0 !important; }
.view-sidebar .ad_text_r_F li { border: none !important; padding: 6px 0 !important; }
.view-sidebar .ad_text_r_F li a {
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding-left: 12px !important;
    position: relative;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    color: #f3f4f6 !important;
}
.view-sidebar .ad_text_r_F li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* [section_03] 보정 */
    .section_03 .ico_exclusive {
    color: #fff !important;
    background-color: #ff3b30 !important;
    }
/* [section_06] 보정 */
.view-sidebar .section_06 .thumb {
    border-radius: 6px !important;
    margin-bottom: 10px !important;
}
  /* ==========================================================================
   [section_02 & section_04] 연령대 텍스트 및 스크린샷 맞춤 레이아웃 통합
   ========================================================================== */

/* 1. 공통 Flex 컨테이너 설정 (줄바꿈 방지) */
.view-sidebar .section_02 li a,
.view-sidebar .section_04 li a {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: nowrap !important; /* 내부 요소가 떨어지지 않게 강제 */
    padding: 12px 0 !important; /* 위아래 여백 확보 */
}

/* 2. 연령대 텍스트 (맨 왼쪽 1순위) */
.view-sidebar .section_02 .txt_age,
.view-sidebar .section_04 .txt_age {
    order: 1 !important; /* 첫 번째로 배치 */
    flex-shrink: 0 !important; /* 공간이 부족해도 절대 줄어들지 않음 */
    width: 45px !important; /* 글자 길이에 맞춰 너비 고정 */
    white-space: nowrap !important; /* 두 줄로 쪼개짐 방지 */
    color: var(--primary, #e4161b) !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-align: left !important;
    margin-top: 0 !important;
}

/* 3. 기사 제목 정보 컨테이너 (가운데 2순위) */
.view-sidebar .section_02 .info,
.view-sidebar .section_04 .info {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important; /* 텍스트 줄바꿈을 위한 필수 컨테이너 설정 */
    display: block !important; /* flex 대신 block으로 설정해 내부 텍스트 줄바꿈 유도 */
}

/* 기사 제목 텍스트 (2줄 말줄임표 처리 완벽 호환) */
.view-sidebar .section_02 .info .tit,
.view-sidebar .section_04 .info .tit {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* 최대 2줄 표시 */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important; /* 강제 한 줄 방지, 자연스러운 줄바꿈 허용 */
    word-break: break-all !important; /* 단어 중간이라도 영역이 끝나면 줄바꿈하여 공간 꽉 채움 */
    line-height: 1.4 !important;
    font-size: 14px !important;
    color: #f3f4f6 !important;
    max-height: 2.8em !important; /* line-height(1.4) * 2줄 = 2.8em. 세 번째 줄이 살짝 보이는 현상 원천 차단 */
}

/* 4. 썸네일 영역 (맨 오른쪽 3순위) */
.view-sidebar .section_02 .thumb,
.view-sidebar .section_04 .thumb {
    order: 3 !important;
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 60px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: block !important;
}

.view-sidebar .section_02 .thumb img,
.view-sidebar .section_04 .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 썸네일 이미지 꽉 차게 */
.view-sidebar .section_02 .thumb img,
.view-sidebar .section_04 .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}