/*
Theme Name: HaoTiyu Sports - 好体育
Theme URI: https://haotiyuzhibo.com
Author: Eleven
Description: 专业体育资讯平台主题
Version: 2.0.0
Text Domain: haotiyu
*/

:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #e3f2fd;
    --secondary: #00c853;
    --accent: #ff5722;
    --warning: #ffc107;
    --text: #212121;
    --text-secondary: #757575;
    --text-muted: #9e9e9e;
    --border: #e0e0e0;
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --live: #f44336;
    --win: #4caf50;
    --draw: #ff9800;
    --lose: #f44336;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { 
    font-size: 16px; 
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
}
body { 
    margin: 0; 
    padding: 0;
    font-family: var(--font); 
    font-size: 15px; 
    line-height: 1.6; 
    color: var(--text); 
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    position: relative;
}
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 16px; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.site-main { padding: 24px 0 48px; min-height: calc(100vh - 300px); }
.row { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ================================
   HEADER
================================ */
.site-header { 
    background: var(--bg-white); 
    box-shadow: var(--shadow);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.header-top { 
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff; 
    padding: 8px 0; 
    font-size: 13px; 
}
.header-top .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.header-main { padding: 12px 0; border-bottom: 1px solid var(--border); }
.header-main .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo .logo-img { height: 40px; width: auto; }
.site-title { font-size: 22px; font-weight: 700; color: var(--primary); margin: 0; }
.site-title a { color: inherit; }

/* Language Switcher */
.language-switcher { position: relative; }
.current-lang { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.current-lang:hover { background: rgba(255,255,255,0.1); }
.lang-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 9999;
}
.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
}
.language-dropdown a:hover { background: var(--bg); color: var(--primary); }
.language-dropdown a.active { background: var(--primary); color: #fff; }

/* Navigation */
.main-navigation ul { 
    display: flex; 
    gap: 4px; 
}
.main-navigation a { 
    display: flex; 
    align-items: center; 
    gap: 6px;
    padding: 10px 16px; 
    color: var(--text); 
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius); 
    transition: all 0.2s; 
}
.main-navigation a i { font-size: 14px; opacity: 0.7; }
.main-navigation a:hover,
.main-navigation .current-menu-item > a { 
    background: var(--primary); 
    color: #fff; 
}
.mobile-menu-toggle { display: none; background: none; border: none; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; }

/* Search */
.search-form { position: relative; }
.search-form input { 
    width: 220px;
    padding: 10px 16px;
    padding-right: 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.2s;
}
.search-form input:focus { 
    outline: none; 
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,136,229,0.1);
    width: 280px;
}
.search-form button { 
    position: absolute; 
    right: 12px; 
    top: 50%;
    transform: translateY(-50%);
    background: none; 
    border: none; 
    color: var(--text-muted);
    cursor: pointer;
}

/* ================================
   ARTICLE PAGE (single.php)
================================ */
.single-post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.post-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
}
.post-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 20px;
    color: var(--text);
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-meta-item i { color: var(--primary); }
.post-featured-image {
    padding: 0 32px;
    margin: 24px 0;
}
.post-featured-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.post-content {
    padding: 0 32px 32px;
    font-size: 17px;
    line-height: 1.85;
    color: #333;
}
.post-content p { margin-bottom: 20px; }
.post-content h2 {
    font-size: 22px;
    margin: 36px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.post-content h3 { font-size: 19px; margin: 28px 0 14px; }
.post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: var(--shadow);
}
.post-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 24px;
}
.post-content li {
    margin-bottom: 10px;
    list-style: disc;
}
.post-content ol li { list-style: decimal; }

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.post-tag {
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.post-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Related Posts */
.related-posts {
    padding: 32px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.related-posts-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-posts-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ================================
   ARCHIVE PAGE (archive.php)
================================ */
.archive-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
}
.archive-header .container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.archive-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.archive-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}
.archive-description {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}
.archive-count {
    margin-left: auto;
    text-align: center;
}
.archive-count-num {
    font-size: 36px;
    font-weight: 700;
    display: block;
}
.archive-count-label {
    font-size: 13px;
    opacity: 0.8;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-card-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}
.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .news-card-image img {
    transform: scale(1.05);
}
.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.news-card-content {
    padding: 20px;
}
.news-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================================
   MATCHES PAGE
================================ */
.page-hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #fff;
    padding: 48px 0;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') repeat;
    background-size: 100px;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
}
.page-hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
}

/* Date Tabs */
.date-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.date-tab {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--bg);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    min-width: 80px;
}
.date-tab:hover { background: var(--primary-light); }
.date-tab.active {
    background: var(--primary);
    color: #fff;
}
.date-tab-day {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
}
.date-tab-date {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-top: 2px;
}

/* League Section */
.league-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.league-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}
.league-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.league-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}
.league-country {
    font-size: 13px;
    color: var(--text-muted);
}

/* Match Item */
.match-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    gap: 16px;
}
.match-item:last-child { border-bottom: none; }
.match-item:hover { background: var(--bg); }
.match-team {
    display: flex;
    align-items: center;
    gap: 12px;
}
.match-team.home { justify-content: flex-end; text-align: right; }
.match-team.away { justify-content: flex-start; }
.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.team-name {
    font-size: 15px;
    font-weight: 500;
}
.match-center {
    text-align: center;
    min-width: 100px;
}
.match-time {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.score-num {
    font-size: 24px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}
.score-divider {
    color: var(--text-muted);
}
.match-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.match-status.live {
    background: var(--live);
    color: #fff;
    animation: pulse 1.5s infinite;
}
.match-status.finished {
    background: var(--bg);
    color: var(--text-secondary);
}
.match-status.upcoming {
    background: var(--primary-light);
    color: var(--primary);
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ================================
   LEAGUES PAGE
================================ */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.league-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.league-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.league-card:hover::before {
    transform: scaleX(1);
}
.league-card-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}
.league-card-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}
.league-card-country {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.league-card-country img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}
.league-card-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.league-stat {
    text-align: center;
}
.league-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}
.league-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================
   TEAMS PAGE
================================ */
.teams-filter {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 20px;
    background: var(--bg);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-btn:hover { background: var(--primary-light); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; }
.filter-btn img { width: 20px; height: 20px; }

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.team-card-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    object-fit: contain;
}
.team-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}
.team-card-name a { color: var(--text); }
.team-card-name a:hover { color: var(--primary); }
.team-card-league {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.team-card-league img { width: 16px; height: 16px; }

/* ================================
   SIDEBAR WIDGETS
================================ */
.widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}
.widget-title i { color: var(--primary); }
.widget-content { padding: 16px 20px; }

/* Popular Posts Widget */
.popular-post {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.popular-post:last-child { border-bottom: none; }
.popular-post-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.popular-post-content { flex: 1; min-width: 0; }
.popular-post-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.popular-post-title a { color: var(--text); }
.popular-post-title a:hover { color: var(--primary); }
.popular-post-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tags Widget */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.widget-tag {
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.widget-tag:hover {
    background: var(--primary);
    color: #fff;
}

/* ================================
   FOOTER
================================ */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    margin-top: 48px;
}
.footer-main { padding: 48px 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand .site-title {
    color: #fff;
    margin-bottom: 16px;
}
.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
}
.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all 0.2s;
}
.footer-menu a:hover { color: #fff; padding-left: 4px; }
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ================================
   BREADCRUMBS
================================ */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .separator { margin: 0 8px; color: var(--text-muted); }
.breadcrumbs .current { color: var(--text); }

/* ================================
   PAGINATION
================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-white);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
}
.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .row { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .leagues-grid { grid-template-columns: repeat(2, 1fr); }
    .teams-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 16px;
    }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; }
    .mobile-menu-toggle { display: block; }
    .header-search { display: none; }
    .page-hero { padding: 32px 0; }
    .page-hero-title { font-size: 24px; }
    .news-grid { grid-template-columns: 1fr; }
    .leagues-grid { grid-template-columns: 1fr; }
    .teams-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .post-header, .post-content, .post-tags { padding-left: 20px; padding-right: 20px; }
    .post-title { font-size: 22px; }
    .match-team { flex-direction: column; text-align: center !important; }
    .match-team.home { flex-direction: column; }
    .team-name { font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .teams-grid { grid-template-columns: 1fr; }
    .date-tabs { gap: 4px; }
    .date-tab { min-width: 60px; padding: 10px 12px; }
    .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

/* ================================
   UTILITIES
================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.hidden { display: none !important; }
.mt-1 { margin-top: 16px; }
.mb-1 { margin-bottom: 16px; }
.mt-2 { margin-top: 24px; }
.mb-2 { margin-bottom: 24px; }

/* ================================
   SPORTS NAV - League Tabs
================================ */
.sports-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.sports-nav .container {
    max-width: 100%;
}
.league-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.league-tabs::-webkit-scrollbar {
    display: none;
}
.league-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}
.league-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.league-tab.active {
    background: var(--primary);
    color: #fff;
}
.league-tab img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: contain;
}
.league-tab i {
    font-size: 14px;
}

/* Header Top Left */
.header-top-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.current-time, .live-matches-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header Top Right */
.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ================================
   INDEX PAGE - Featured & News
================================ */
.featured-section {
    margin-bottom: 32px;
}
.news-section {
    margin-bottom: 32px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--primary);
}
.view-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.view-all-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* News Grid for Index/Archive */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.news-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f0f0f0;
}
.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .news-card-image img {
    transform: scale(1.05);
}
.news-card-image .placeholder-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 36px;
}
.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.news-card-content {
    padding: 20px;
}
.news-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}
.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive for news grid */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .league-tabs { padding: 10px 0; }
    .league-tab { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
    .league-tab { padding: 6px 12px; font-size: 12px; }
    .league-tab img { width: 18px; height: 18px; }
}
