/* ==================== 공통(Common) CSS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
    --main-red: #e30613;
    --main-domain: "yeollinissue.com";
    --color-bg: #f9fafb;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --bg-white: #ffffff;
    --font-family: 'Noto Sans KR', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: transparent; cursor: pointer; }
input:focus { outline: none; }

/* ==================== Layout ==================== */
.container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content-wrapper {
    max-width: 1536px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 32px;
}

.primary-content-area { flex: 1; min-width: 0; }
.view-sidebar { width: 320px; flex-shrink: 0; }

/* ==================== Top Utility Bar ==================== */
.top-utility-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    font-size: 12px;
}
.top-utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.utility-left, .utility-right { display: flex; align-items: center; }
.utility-left { gap: 24px; color: var(--color-muted); }
.utility-right { gap: 20px; color: #4b5563; }
.utility-item { display: flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.2s; }
.utility-item:hover { color: var(--main-red); }
.utility-domain { color: #9ca3af; }

/* ==================== Header ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-white);
    border-bottom: 2px solid var(--main-red);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo-group { display: flex; align-items: center; cursor: pointer; }
.logo-img { max-height: 36px;}
.logo-text { font-size: 36px; font-weight: 900; letter-spacing: -1.5px; }
.logo-red { color: var(--main-red); margin-left: 4px; }
.logo-arrow { color: var(--main-red); font-size: 30px; font-weight: 900; margin-left: 8px; display: flex; align-items: center; }

.main-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; }
.main-nav-link { cursor: pointer; transition: color 0.2s; }
.main-nav-link:hover, .main-nav-link.active { color: var(--main-red); font-weight: 700; }

.search-container { position: relative; width: 256px; display: flex; align-items: center; }
.search-input {
    width: 100%;
    background-color: #f3f4f6;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 10px 20px 10px 40px;
    font-size: 14px;
}
.search-input:focus { border-color: #ef4444; }
.search-icon { position: absolute; left: 16px; color: #9ca3af; cursor: pointer; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.mobile-menu-toggle span { width: 28px; height: 3px; background: #111; }

/* ==================== Section Titles ==================== */
.section-container { margin-bottom: 48px; }
.section-title-wrapper { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title { position: relative; font-size: 24px; font-weight: 700; display: flex; align-items: center; }
.section-title::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 48px; height: 3px; background: var(--main-red); }
.section-more { font-size: 14px; color: var(--color-muted); cursor: pointer; }
.section-more:hover { color: var(--main-red); }
.live-badge { font-size: 12px; background: #fee2e2; color: var(--main-red); padding: 4px 12px; border-radius: 4px; margin-left: 12px; font-weight: 700; animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== Main Hero & Today's Pick ==================== */
.hero-grid { display: flex; gap: 24px; margin-bottom: 48px; }
.hero-main { flex: 2; position: relative; border-radius: 24px; overflow: hidden; height: auto; cursor: pointer; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-main:hover img { transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7)); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; color: white; }
.hero-tag { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 12px; }
.hero-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.hero-main:hover .hero-title { text-decoration: underline; }
.hero-desc { font-size: 18px; opacity: 0.9; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { font-size: 14px; font-weight: 500; }
.breaking-badge { position: absolute; top: 24px; left: 24px; background: var(--main-red); color: white; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 9999px; }

.hero-side { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.today-pick-box { background: white; border-radius: 24px; padding: 24px; border: 1px solid var(--color-border); flex: 1; display: flex; flex-direction: column; }
.today-pick-title { color: var(--main-red); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.pick-list { display: flex; flex-direction: column; gap: 28px; }
.pick-item { display: flex; gap: 16px; cursor: pointer; padding: 8px; margin: -8px; border-radius: 12px; transition: background 0.2s; }
.pick-item:hover { background: #f9fafb; }
.pick-item-info { flex: 1; }
.pick-item-meta { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.pick-item-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pick-item:hover .pick-item-title { color: var(--main-red); }
.pick-item-img { width: 96px; height: 64px; object-fit: cover; border-radius: 12px; }

.poll-box { background: white; border-radius: 24px; padding: 24px; border: 1px solid var(--color-border); }
.poll-title { font-size: 14px; font-weight: 700; color: #4338ca; margin-bottom: 16px; }
.poll-question { font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.poll-options { display: flex; flex-direction: column; gap: 12px; }
.poll-option { display: flex; justify-content: space-between; background: #f3f4f6; padding: 12px 16px; border-radius: 16px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
.poll-option:hover { background: #e0e7ff; color: #4338ca; }
.poll-btn { width: 100%; margin-top: 24px; padding: 10px; border: 1px solid #c7d2fe; color: #4338ca; font-weight: 700; border-radius: 16px; font-size: 14px; }

/* ==================== General News Grids ==================== */
.news-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.news-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.news-card-img { width: 100%; height: 160px; object-fit: cover; }
.news-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.news-card-cat { font-size: 12px; color: var(--main-red); font-weight: 700; margin-bottom: 4px; }
.news-card-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; transition: color 0.2s; }
.news-card:hover .news-card-title { color: var(--main-red); }
.news-card-meta { font-size: 12px; color: var(--color-muted); margin-top: auto; }

/* politics wide card */
.news-card-wide { grid-column: span 2; display: flex; flex-direction: row; gap: 24px; padding: 16px; align-items: center; }
.news-card-wide .news-card-body { padding: 0; order: 1; justify-content: center; }
.news-card-wide .news-card-img { width: 192px; height: 192px; border-radius: 16px; order: 2; }
.news-card-wide .news-card-title { font-size: 20px; }
.news-card-wide-desc { font-size: 14px; color: #4b5563; margin-top: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ==================== YouTube Section ==================== */
.youtube-section { background: #111; color: white; padding: 32px; border-radius: 24px; margin-bottom: 48px; }
.youtube-header { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 24px; font-weight: 700; }
.youtube-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.youtube-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.youtube-card:hover img { opacity: 1; }
.youtube-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 48px; color: rgba(255,255,255,0.8); transition: color 0.3s; }
.youtube-card:hover .youtube-play { color: var(--main-red); }
.youtube-time { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.youtube-text-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; font-size: 14px; font-weight: 500; }
.youtube-text-list p { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.youtube-text-list p:hover { color: #f87171; }

/* ==================== Economy Section Custom ==================== */
.eco-card { border-radius: 24px; padding: 20px; box-shadow: none; border: 1px solid #f3f4f6; }
.eco-card .news-card-img { height: 128px; border-radius: 16px; margin-bottom: 16px; }
.eco-card .news-card-cat { color: #d97706; }
.special-report { background: linear-gradient(to bottom right, #dc2626, #b91c1c); color: white; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: box-shadow 0.3s; }
.special-report:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
.sr-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; opacity: 0.8; margin-bottom: 8px; }
.sr-title { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 8px; }
.sr-desc { font-size: 14px; opacity: 0.9; margin-top: 24px; line-height: 1.6; }
.sr-btn { background: white; color: var(--main-red); font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 16px; margin-top: 32px; width: fit-content; transition: background 0.2s; }
.special-report:hover .sr-btn { background: #f3f4f6; }

/* ==================== Past Issue Highlights ==================== */
.highlight-wrap { background: white; padding: 24px; border-radius: 16px; border: 1px solid var(--color-border); margin-top: 16px; }
.highlight-main { cursor: pointer; }
.highlight-main-img-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.highlight-main-img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s; }
.highlight-main:hover .highlight-main-img { transform: scale(1.05); }
.highlight-badge { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.7); color: white; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; }
.highlight-title { font-size: 24px; font-weight: 700; margin-top: 12px; transition: color 0.2s; }
.highlight-main:hover .highlight-title { color: var(--main-red); }
.highlight-desc { font-size: 14px; color: var(--color-muted); margin-top: 12px; line-height: 1.6; }

.highlight-list { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hl-item { display: flex; gap: 16px; padding: 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; }
.hl-item:hover { background: #f9fafb; border-color: var(--color-border); }
.hl-item-img { width: 112px; height: 96px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.hl-item-info { display: flex; flex-direction: column; justify-content: center; }
.hl-item-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; transition: color 0.2s; }
.hl-item:hover .hl-item-title { color: var(--main-red); }
.hl-item-meta { font-size: 12px; color: var(--color-muted); }

/* ==================== Category Board ==================== */
.category-board { border-top: 1px solid var(--color-border); padding-top: 40px; margin-bottom: 48px; }
.cat-col { display: flex; flex-direction: column; gap: 24px; }
.cat-list-item { display: flex; gap: 16px; cursor: pointer; }
.cat-list-img { width: 112px; height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.cat-list-info { display: flex; flex-direction: column; justify-content: center; }
.cat-list-time { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.cat-list-time.pink { color: #ec4899; font-weight: 700; }
.cat-list-title { font-size: 16px; font-weight: 500; line-height: 1.3; transition: color 0.2s; }
.cat-list-item:hover .cat-list-title { color: var(--main-red); }

.sports-box { background: white; border-radius: 24px; padding: 24px; border: 1px solid var(--color-border); }
.sports-header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; margin-bottom: 16px; }
.sports-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.sports-row:last-child { border-bottom: none; padding-bottom: 0; }
.team-name { font-size: 16px; font-weight: 500; }
.team-name.win { color: var(--main-red); font-weight: 700; }
.score-box { font-family: monospace; font-size: 20px; font-weight: 700; background: #f3f4f6; padding: 4px 12px; border-radius: 4px; }
.score-box.live { color: var(--main-red); background: #fee2e2; }

/* ==================== Dynamic Sub Articles ==================== */
.dynamic-item-card { display: flex; flex-direction: row; gap: 16px; background: white; padding: 24px; border-radius: 24px; border: 1px solid var(--color-border); cursor: pointer; transition: box-shadow 0.2s; }
.dynamic-item-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.dynamic-item-info { flex: 1; order: 1; display: flex; flex-direction: column; justify-content: center; }
.dynamic-item-img { width: 112px; height: 112px; object-fit: cover; border-radius: 16px; order: 2; }
.dynamic-badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; display: inline-block; }
.dynamic-item-title { font-size: 18px; font-weight: 700; margin-top: 12px; line-height: 1.3; transition: color 0.2s; }
.dynamic-item-card:hover .dynamic-item-title { color: var(--main-red); }
.dynamic-item-desc { font-size: 14px; color: var(--color-muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==================== List Page ==================== */
.list-container { display: flex; flex-direction: column; }
.list-item-card { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.list-item-image { width: 300px; height: 200px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.list-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-item-cat { font-size: 12px; color: var(--main-red); font-weight: 700; margin-bottom: 4px; }
.list-item-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; transition: color 0.2s; }
.list-item-card:hover .list-item-title { color: var(--main-red); }
.list-item-desc { font-size: 14px; color: #4b5563; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item-meta { font-size: 12px; color: #9ca3af; margin-top: 12px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.page-btn:hover { background: #f3f4f6; }
.page-btn.active { background: var(--main-red); color: white; font-weight: 700; border-color: var(--main-red); }

/* ==================== View & About Page ==================== */
/* 기존 .article-view와 새로 추가된 설정 병합 */
.article-view {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
}
.page-title { font-size: 30px; font-weight: 700; margin-bottom: 32px; }

.article-view-header { border-bottom: 2px solid #111; padding-bottom: 24px; margin-bottom: 32px; }
.view-cat { color: var(--main-red); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.article-view-title { font-size: 36px; font-weight: 700; line-height: 1.3; margin-bottom: 24px; }
.view-meta-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--color-muted); flex-wrap: wrap; gap: 16px; }
.view-meta-info { display: flex; gap: 12px; align-items: center; }
.view-meta-info strong { color: black; }
.share-group { display: flex; gap: 8px; }
.share-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.share-btn.fb:hover { background: #eff6ff; color: #2563eb; }
.share-btn.tw:hover { background: #000; color: #fff; }
.share-btn.link:hover { background: #f3f4f6; }

.article-view-body { font-size: 18px; line-height: 1.8; color: #374151; }
.article-view-body p { margin-bottom: 24px; }
.article-view-body img { width: 100%; border-radius: 8px; margin-bottom: 16px; }
.img-caption { text-align: center; font-size: 14px; color: var(--color-muted); margin-top: -8px; margin-bottom: 32px; }
.article-subtitle { font-size: 20px; font-weight: 700; margin-top: 32px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--main-red); }

.reporter-box { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.reporter-inner { background: #f9fafb; padding: 24px; border-radius: 12px; display: flex; align-items: center; gap: 16px; }
.reporter-img { width: 64px; height: 64px; background: #d1d5db; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #6b7280; }
.reporter-info h4 { font-size: 18px; font-weight: 700; }
.reporter-info p.email { font-size: 14px; color: var(--color-muted); margin-top: 4px; }
.reporter-info p.desc { font-size: 12px; color: #9ca3af; margin-top: 8px; }

/* About Tabs & Panels 병합 */
.about-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.about-tab-btn {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-muted);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}
.about-tab-btn:hover { background-color: #f3f4f6; color: #111; }
.about-tab-btn.active { background-color: #1f2937; color: var(--bg-white); border-color: #1f2937; }

.about-panel {
    display: none;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}
.about-panel.active { display: block; }
.about-panel h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: #111; }
.panel-desc { font-size: 16px; line-height: 1.6; margin-bottom: 16px; color: #374151; }
.mb-24 { margin-bottom: 24px; }

.info-list { list-style-type: disc; padding-left: 20px; margin-top: 24px; color: #374151; line-height: 1.8; }
.ethics-list { list-style-type: decimal; padding-left: 20px; margin-top: 24px; color: #374151; display: flex; flex-direction: column; gap: 16px; line-height: 1.6; }

.about-box { background: #f9fafb; padding: 24px; border-radius: 8px; border: 1px solid var(--color-border); margin-top: 24px; }
.about-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #111827; }
.email-text { font-size: 20px; font-weight: 500; color: #1f2937; margin-bottom: 8px; }

.warning-box { background-color: #fef2f2; color: #991b1b; padding: 24px; border-radius: 8px; border: 1px solid #fecaca; margin-top: 16px; }
.warning-box p { margin-bottom: 16px; line-height: 1.6; }
.warning-box .date-text { margin-bottom: 0; font-size: 14px; font-weight: 700; }
.legal-box { margin-top: 24px; font-size: 14px; line-height: 1.6; color: #4b5563; background-color: #f9fafb; padding: 16px; border-radius: 4px; border: 1px solid var(--color-border); }

/* Utility */
.icon-red { color: #dc2626; margin-right: 8px; }
.text-sm { font-size: 14px; }
.text-muted { color: #6b7280; }
.mt-8 { margin-top: 8px; }

/* ==================== Sidebar ==================== */
.sidebar-widget { background: white; border-radius: 24px; padding: 24px; border: 1px solid var(--color-border); margin-bottom: 32px; }
.sidebar-title { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* Real-time search */
.ranking-list { display: flex; flex-direction: column; gap: 16px; font-size: 14px; font-weight: 500; }
.ranking-item { display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: color 0.2s; }
.ranking-item:hover { color: var(--main-red); }
.rank-num { color: #9ca3af; display: inline-block; width: 20px; text-align: center; margin-right: 4px; }
.rank-up { color: #ef4444; font-size: 12px; }
.rank-down { color: #3b82f6; font-size: 12px; }
.rank-new { color: #ef4444; font-size: 12px; font-weight: 700; }
.rank-same { color: #d1d5db; font-size: 12px; }

/* AI Summary */
.ai-widget { background: linear-gradient(to bottom right, #9333ea, #4f46e5); color: white; border-radius: 24px; padding: 28px; margin-bottom: 32px; }
.ai-header { display: flex; justify-content: space-between; align-items: flex-start; }
.ai-badge { background: rgba(255,255,255,0.2); font-size: 12px; padding: 4px 16px; border-radius: 24px; font-weight: 700; }
.ai-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin-top: 16px; }
.ai-icon { font-size: 48px; opacity: 0.3; margin-top: 8px; }
.ai-desc { font-size: 14px; opacity: 0.9; margin-top: 24px; }
.ai-btn { width: 100%; background: white; color: #7e22ce; font-weight: 700; font-size: 14px; padding: 14px; border-radius: 16px; margin-top: 24px; transition: background 0.2s; }
.ai-btn:hover { background: #f9fafb; }

/* Popular News */
.popular-list { display: flex; flex-direction: column; gap: 24px; }
.pop-item { display: flex; gap: 16px; border-bottom: 1px solid #f9fafb; padding-bottom: 24px; cursor: pointer; }
.pop-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num { font-family: monospace; font-size: 36px; font-weight: 900; color: #e5e7eb; transition: color 0.2s; }
.pop-item:hover .pop-num { color: #fecaca; }
.pop-info { flex: 1; padding-top: 4px; }
.pop-title { font-size: 14px; font-weight: 700; line-height: 1.3; transition: color 0.2s; }
.pop-item:hover .pop-title { color: var(--main-red); }
.pop-time { font-size: 12px; color: var(--color-muted); margin-top: 8px; }

/* AD Widget */
.ad-widget { background: linear-gradient(to bottom right, #fbbf24, #f97316); color: white; border-radius: 24px; padding: 32px; text-align: center; cursor: pointer; margin-bottom: 32px; transition: box-shadow 0.3s; }
.ad-widget:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.ad-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; opacity: 0.8; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px; margin-bottom: 16px; display: inline-block; }
.ad-title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.ad-desc { font-size: 14px; font-weight: 500; margin-top: 16px; }
.ad-btn { background: white; color: #d97706; font-size: 14px; font-weight: 700; padding: 14px 32px; border-radius: 9999px; margin-top: 24px; width: 100%; transition: background 0.2s; }

/* Live TV Widget */
.livetv-widget { background: black; color: white; border-radius: 24px; overflow: hidden; border: 1px solid #1f2937; cursor: pointer; }
.livetv-header { padding: 24px 24px 0 24px; }
.livetv-top { display: flex; justify-content: space-between; align-items: center; }
.livetv-badge { color: #ef4444; font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.livetv-badge span { display: inline-block; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; }
.livetv-ch { font-size: 12px; color: #9ca3af; font-weight: 500; }
.livetv-title { font-size: 20px; font-weight: 700; margin-top: 16px; line-height: 1.3; transition: color 0.2s; }
.livetv-widget:hover .livetv-title { color: #fca5a5; }
.livetv-host { font-size: 14px; opacity: 0.6; margin-top: 8px; }
.livetv-video { aspect-ratio: 16/9; background: #18181b; margin-top: 20px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.livetv-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: all 0.5s; }
.livetv-widget:hover .livetv-video img { opacity: 0.7; transform: scale(1.05); }
.livetv-play { font-size: 48px; color: rgba(255,255,255,0.9); position: absolute; z-index: 10; transition: color 0.2s; }
.livetv-widget:hover .livetv-play { color: #ef4444; }
.livetv-onair { position: absolute; bottom: 12px; left: 12px; background: #dc2626; color: white; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; z-index: 10; }

/* ==================== Footer ==================== */
.site-footer { background: #111827; color: white; margin-top: 48px; border-top: 4px solid var(--main-red); padding: 48px 0; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; border-bottom: 1px solid #374151; padding-bottom: 32px; margin-bottom: 32px; gap: 32px; }
.footer-brand { width: 33.333%; }
.footer-logo { font-size: 30px; font-weight: 900; margin-bottom: 16px; }
.footer-desc { color: #9ca3af; line-height: 1.6; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 16px; }
.social-btn { width: 32px; height: 32px; background: #1f2937; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.social-btn.yt:hover { background: #dc2626; }
.social-btn.fb:hover { background: #2563eb; }
.social-btn.ig:hover { background: #db2777; }

.footer-links { width: 66.666%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.link-col h4 { font-size: 18px; font-weight: 700; color: #e5e7eb; margin-bottom: 16px; }
.link-col ul { display: flex; flex-direction: column; gap: 8px; color: #9ca3af; }
.link-col li { cursor: pointer; transition: color 0.2s; }
.link-col li:hover { color: white; }

.footer-bottom { font-size: 12px; color: #6b7280; line-height: 2; }
.footer-info-group { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.footer-copyright { margin-top: 16px; padding-top: 16px; border-top: 1px solid #1f2937; }

/* Page Display Logic */
.page-view { display: none; }
.page-view.active { display: block; animation: fadeIn 0.4s ease-in-out; }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .main-content-wrapper { flex-direction: column; }
    .view-sidebar { width: 100%; }
    .hero-grid { flex-direction: column; display: grid; }
    .hero-main { height: 500px; }
    .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .highlight-wrap > div { grid-template-columns: 1fr; }
    .news-card-wide { flex-direction: column; }
    .news-card-wide .news-card-img { width: 100%; order: 1; }
    .news-card-wide .news-card-body { order: 2; }
    .list-item-card { flex-direction: column; }
    .list-item-image { width: 100%; height: 240px; }
    .footer-top { flex-direction: column; }
    .footer-brand, .footer-links { width: 100%; }
}

@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .main-nav.active { display: flex; }
    .search-container { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .news-grid-3 { grid-template-columns: 1fr; }
    .youtube-text-list { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .category-board > .grid { grid-template-columns: 1fr; }
    
    .dynamic-item-card { flex-direction: column; }
    .dynamic-item-img { width: 100%; order: 1; height: 160px; }
    .dynamic-item-info { order: 2; }
    .special-report { display: none; }
    
    .article-view-title, .page-title { font-size: 24px; margin-bottom: 24px; }
    .article-view-body { font-size: 16px; }
    .hl-item-title { font-size: 16px; }
    .highlight-title { font-size: 18px; }
    .hero-title { font-size: 21px; }
    .hero-desc { font-size: 14px; }
    
    .article-view { padding: 0; border: 0; }
    .about-panel h2 { font-size: 18px; }
    .about-panel p, .about-panel li, .panel-desc { font-size: 14px; }
    .about-panel { padding: 16px; }
    .about-tabs-nav { margin-bottom: 16px; }
    
    .news-grid-2 { display: flex; flex-direction: column; gap: 16px; }
    .about-box, .warning-box { padding: 16px; }
}