/* Stadium Pulse Theme — clean, fast, no JS frameworks */

:root {
    --color-primary: #16a34a;
    --color-primary-hover: #15803d;
    --color-secondary: #0f766e;
    --color-secondary-hover: #115e59;
    --color-warn: #f59e0b;
    --color-mute: #64748b;
    --color-mute-2: #94a3b8;
    --color-text: #0f172a;
    --color-text-soft: #334155;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-2: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-footer-bg: #0f172a;
    --color-footer-text: #cbd5e1;
    --color-footer-muted: #64748b;

    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);

    --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --content-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--color-primary); }

h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; color: var(--color-text); }

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content { flex: 1; }

/* ---------- Header ---------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 64px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    flex-shrink: 0;
}
.logo:hover { color: var(--color-primary); }
.logo-icon { font-size: 1.6rem; line-height: 1; }
.logo-text { letter-spacing: 0.5px; }

.main-nav { flex: 1; min-width: 0; }
.main-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}
.nav-link {
    display: inline-block;
    color: var(--color-text-soft);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-surface-2); }
.nav-link.active {
    color: var(--color-primary);
    background: rgba(22, 163, 74, 0.08);
    font-weight: 600;
}

/* ---------- Hero ---------- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
    color: #fff;
    padding: 3.5rem 0;
}
.hero-inner {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.hero-inner .badge { background: var(--color-primary); color: #fff; font-size: 0.7rem; letter-spacing: 0.15em; }
.hero-title {
    font-size: 2.4rem;
    color: #fff;
    margin: 1rem 0 0.75rem;
    line-height: 1.2;
}
.hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.hero-cta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ---------- Sections ---------- */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}
.section-header h2 {
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.dot-live {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.05); }
}
.view-all {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 500;
}
.view-all:hover { color: var(--color-secondary-hover); }

.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.85rem; }

/* ---------- Buttons / Badges ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: var(--color-secondary-hover); color: #fff; }
.btn-live {
    background: var(--color-primary);
    color: #fff;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}
.btn-live:hover { background: var(--color-primary-hover); color: #fff; }

.badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--color-surface-2);
    color: var(--color-text-soft);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-live { background: var(--color-primary); color: #fff; }

/* ---------- Status badges ---------- */
.status-badge {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: 1.4;
}
.status-live { background: var(--color-primary); }
.status-upcoming { background: var(--color-secondary); }
.status-finished { background: var(--color-mute-2); }
.status-postponed { background: var(--color-warn); }
.status-cancelled { background: var(--color-mute); }

/* ---------- Tabs ---------- */
.tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.28rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}
.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    color: var(--color-text-soft);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tab:hover {
    color: var(--color-primary);
    background: var(--color-surface-2);
}
.tab.active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.18);
}

/* ---------- Match cards ---------- */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.match-list { display: flex; flex-direction: column; gap: 0.6rem; }

.match-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    align-items: center;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.match-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.match-card-featured {
    border-left: 3px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.match-card-body { min-width: 0; }
.match-league {
    color: var(--color-mute);
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.match-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}
.match-title a { color: inherit; }
.match-title a:hover { color: var(--color-primary); }
.match-teams {
    color: var(--color-text-soft);
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}
.match-teams .vs {
    color: var(--color-mute);
    font-size: 0.78rem;
    margin: 0 0.4rem;
    font-weight: 700;
}
.match-time {
    color: var(--color-mute);
    font-size: 0.82rem;
}

.match-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    text-align: right;
}
.match-score {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Dual column layout ---------- */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}
.dual-col { min-width: 0; }

/* ---------- Video grid ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.video-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-border-strong);
}
.video-thumb {
    display: block;
    background: var(--color-surface-2);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
.video-thumb-image { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mute-2);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    color: #fff;
}
.video-card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.video-card-title { font-size: 0.98rem; line-height: 1.4; font-weight: 600; }
.video-card-title a { color: inherit; }
.video-card-title a:hover { color: var(--color-primary); }
.video-card-excerpt { color: var(--color-mute); font-size: 0.85rem; }
.video-card-body time { color: var(--color-mute); font-size: 0.8rem; }

/* ---------- News list (homepage) ---------- */
.news-list { list-style: none; padding: 0; margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
}
.news-row:last-child { border-bottom: none; }
.news-row-body { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 0; flex: 1; }
.news-row-title { font-size: 0.95rem; color: var(--color-text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row-title:hover { color: var(--color-primary); }
.news-row-time { color: var(--color-mute); font-size: 0.82rem; white-space: nowrap; }

/* ---------- Homepage SEO modules ---------- */
.sports-home-layout { display: flex; flex-direction: column; }
.sports-asks,
.asks,
.sports-searchs,
.searchs { scroll-margin-top: 84px; }
.sports-asks .section-header,
.asks .section-header,
.sports-searchs .section-header,
.searchs .section-header { margin-bottom: 0.9rem; }
.qa-grid,
.asks-list,
.asks ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.qa-card,
.asks li { min-width: 0; }
.qa-card-link,
.asks li > a,
.asks .ask-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 132px;
    height: 100%;
    padding: 0.85rem 0.95rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.qa-card-link:hover,
.asks li > a:hover,
.asks .ask-item:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.qa-card-link strong,
.asks li > a strong,
.asks .ask-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.98rem;
    line-height: 1.4;
}
.qa-card-link p,
.asks li > a p,
.asks .ask-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}
.qa-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-top: auto;
    padding-top: 0.1rem;
    color: var(--color-mute);
    font-size: 0.78rem;
}
.qa-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.10);
    color: var(--color-primary);
    font-weight: 700;
}
.hot-search-list,
.searchs-list,
.searchs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0.85rem;
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.searchs li { display: inline-flex; max-width: 100%; }
.hot-search-link,
.searchs a {
    display: inline-flex;
    align-items: center;
    max-width: 18rem;
    min-height: 2rem;
    padding: 0.3rem 0.68rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-2);
    color: var(--color-text-soft);
    font-size: 0.86rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-search-link:hover,
.searchs a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(220, 38, 38, 0.08);
}

@media (max-width: 1024px) {
    .qa-grid,
    .asks-list,
    .asks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .qa-grid,
    .asks-list,
    .asks ul { grid-template-columns: 1fr; }
    .qa-card-link,
    .asks li > a,
    .asks .ask-item { min-height: 0; }
    .hot-search-list,
    .searchs-list,
    .searchs ul { padding: 0.75rem; gap: 0.45rem; }
    .hot-search-link,
    .searchs a { max-width: 100%; }
}

/* ---------- Article list (archive) ---------- */
.article-list { display: flex; flex-direction: column; gap: 1.25rem; }
.article-row {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.article-row:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.article-row-thumb { flex-shrink: 0; width: 220px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-2); display: block; }
.article-row-image { width: 100%; height: 100%; object-fit: cover; }
.article-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.article-row-meta { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--color-mute); }
.article-row-title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.article-row-title a { color: inherit; }
.article-row-title a:hover { color: var(--color-primary); }
.article-row-excerpt { color: var(--color-text-soft); font-size: 0.92rem; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-soft);
}
.pagination a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.pagination .disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-info { background: transparent; border: none; color: var(--color-mute); font-variant-numeric: tabular-nums; }

/* ---------- Detail layout ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
.detail-main { min-width: 0; background: var(--color-surface); padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.detail-header { margin-bottom: 1.25rem; }
.detail-meta { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--color-mute); }
.detail-title { font-size: 1.85rem; line-height: 1.3; margin-bottom: 0.5rem; }
.detail-excerpt { color: var(--color-text-soft); font-size: 1.02rem; line-height: 1.65; }

.detail-hero { width: 100%; max-height: 420px; border-radius: var(--radius); object-fit: cover; margin: 1.25rem 0; display: block; }

.detail-video-wrap {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.22), transparent 34%), #020617;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}
.detail-video-content {
    min-height: clamp(220px, 42vw, 460px);
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem;
    text-align: center;
}
.detail-video-content p {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 1rem;
    line-height: 1.6;
}
.detail-video-content p:first-child { margin-bottom: 0.2rem; }
.detail-video-wrap:has(.video-source) {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}
.detail-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
}
.detail-video-poster {
    background: #020617;
    aspect-ratio: 16 / 9;
}
.detail-video-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.detail-video-wrap:has(.video-source) .detail-video-content,
.detail-video-wrap:has(> p .video-source) {
    min-height: auto;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 1.25rem;
    text-align: left;
}
.detail-video-wrap:has(.video-source) .detail-video-content p,
.detail-video-wrap:has(.video-source) > p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 1rem;
    line-height: 1.6;
}
.detail-video-wrap:has(.video-source) .detail-video-content p:first-child,
.detail-video-wrap:has(.video-source) > p:first-child {
    margin-bottom: 0.75rem;
}
.detail-video-content .video-source,
.detail-video-actions .video-source,
.detail-video-wrap > p .video-source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}
.detail-video-content .video-source:hover,
.detail-video-actions .video-source:hover,
.detail-video-wrap > p .video-source:hover {
    background: var(--color-primary-hover);
    color: #fff;
}
.detail-video-wrap video,
.detail-video-wrap iframe {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    border: 0;
}

.detail-body { color: var(--color-text); font-size: 1rem; line-height: 1.8; }
.detail-body p { margin-bottom: 1rem; }
.detail-body h2, .detail-body h3 { margin: 1.5rem 0 0.75rem; }
.detail-body h2 { font-size: 1.35rem; }
.detail-body h3 { font-size: 1.15rem; }
.detail-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1rem 0; }
.detail-body blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    background: var(--color-surface-2);
    color: var(--color-text-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.detail-body code {
    background: var(--color-surface-2);
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}
.detail-body pre {
    background: var(--color-footer-bg);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1rem 0;
}
.detail-body pre code { background: none; padding: 0; color: inherit; }
.detail-body a { color: var(--color-secondary); text-decoration: underline; }
.detail-body a:hover { color: var(--color-secondary-hover); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }

.tag {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    color: var(--color-text-soft);
}
.tag:hover { background: var(--color-border); }

/* ---------- Sidebar ---------- */
.detail-sidebar { min-width: 0; }
.sidebar-widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}
.sidebar-widget h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.85rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: block; font-size: 0.92rem; line-height: 1.4; color: var(--color-text); }
.related-list a:hover { color: var(--color-primary); }
.related-list time { display: block; color: var(--color-mute); font-size: 0.78rem; margin-top: 0.15rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-mute);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-mute-2); }
.breadcrumb-current { color: var(--color-text); font-weight: 500; }

/* ---------- Empty state ---------- */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    text-align: center;
    color: var(--color-mute);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    font-weight: 700;
    grid-column: 1 / -1;
    list-style: none;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 2.5rem 0 1.25rem;
    margin-top: 3rem;
}
.site-footer a { color: var(--color-footer-text); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col p { color: var(--color-footer-text); font-size: 0.9rem; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-footer-muted);
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }

    .header-inner { gap: 0.75rem; height: auto; padding: 0.65rem 0; flex-wrap: wrap; }
    .main-nav-list { width: 100%; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
    .nav-link { padding: 0.4rem 0.7rem; font-size: 0.88rem; }

    .hero-section { padding: 2.25rem 0; }
    .hero-title { font-size: 1.7rem; }
    .hero-sub { font-size: 0.95rem; }

    .section { padding: 1.75rem 0; }
    .section-header h2 { font-size: 1.15rem; }
    .page-header h1 { font-size: 1.5rem; }

    .dual-grid { grid-template-columns: 1fr; gap: 1rem; }
    .live-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }

    .match-card { padding: 0.75rem 0.85rem; }
    .match-card-side { gap: 0.3rem; }
    .match-title { font-size: 0.95rem; }

    .article-row { flex-direction: column; padding: 0.85rem; gap: 0.75rem; }
    .article-row-thumb { width: 100%; aspect-ratio: 16 / 9; }
    .article-row-title { font-size: 1.05rem; }

    .news-row { flex-wrap: wrap; gap: 0.4rem 0.75rem; padding: 0.65rem 0.85rem; }
    .news-row-title { white-space: normal; }

    .detail-main { padding: 1.1rem; border-radius: var(--radius); }
    .detail-title { font-size: 1.4rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    .hero-title { font-size: 1.4rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}
