/* CricStaz - Cricbuzz-style Stylesheet */
/* Matches Cricbuzz green header, dark score bar, 3-col layout */

:root {
    --primary: #1a8a43;
    --primary-dark: #0d6b30;
    --primary-light: #2ecc71;
    --header-green: #1a8a43;
    --score-bar-dark: #2c3e50;
    --accent: #e74c3c;
    --bg-light: #f1f1f1;
    --bg-white: #ffffff;
    --bg-dark: #3d3d3d;
    --text-dark: #333333;
    --text-mid: #555555;
    --text-light: #888888;
    --border: #e0e0e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 2px 10px rgba(0,0,0,0.12);
    --radius: 2px;
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.2s ease;
}

/* ============ SCORE DETAIL TABS ============ */
.sd-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-top: 20px;
    gap: 0;
    position: sticky;
    top: 48px;
    z-index: 50;
    background: #fff;
}
.sd-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}
.sd-tab:hover { color: #475569; background: #f8fafc; }
.sd-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}
.sd-tab:active {
    background: #f1f5f9;
}

.sd-tab-content {
    display: none;
    padding-top: 20px;
}
.sd-tab-content.active { display: block; }

/* Innings blocks */
.sd-innings-block {
    margin-bottom: 12px;
}
.sd-innings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.sd-innings-logo { font-size: 20px; flex-shrink: 0; display: flex; align-items: center; }
.sd-innings-logo svg { width: 24px; height: 24px; }
.sd-innings-team {
    font-weight: 700;
    font-size: 14px;
    flex: 1;
    color: var(--text-dark);
}
.sd-innings-score {
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}
.sd-innings-overs {
    font-size: 12px;
    color: #94a3b8;
}

/* Commentary */
.sd-comm-list { max-height: 600px; overflow-y: auto; }
.sd-comm-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.sd-comm-item:last-child { border-bottom: none; }
.sd-comm-time {
    font-size: 11px;
    color: #94a3b8;
    float: right;
    margin-left: 8px;
}
.sd-comm-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.sd-comm-type.commentary { background: rgba(37,99,235,0.1); color: #2563eb; }
.sd-comm-type.snippet { background: rgba(234,88,12,0.1); color: #ea580c; }
.sd-comm-headline {
    font-weight: 700;
    font-size: 13px;
    margin-top: 6px;
    color: var(--text-dark);
}
.sd-comm-text {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    margin-top: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.sd-comm-text b { color: #1a1a2e; }

/* Videos */
.sd-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.sd-video-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.sd-video-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sd-video-card a { display: block; color: inherit; text-decoration: none; }
.sd-video-thumb {
    height: 130px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sd-video-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}
.sd-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}
.sd-video-card:hover .sd-video-play {
    background: rgba(26,138,67,0.85);
    transform: translate(-50%, -50%) scale(1.1);
}
.sd-video-type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.sd-video-info { padding: 10px 12px; }
.sd-video-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
}

.sd-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* Extra info */
.sd-extra-info {
    padding: 10px 0;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.sd-extra-info:last-child { border-bottom: none; }
.sd-extra-info strong { color: #1a1a2e; font-weight: 700; }
.sd-extra-info p { margin: 0; line-height: 1.5; }

/* Live stats */
.sd-live-section { margin-top: 16px; }
.sd-live-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}
.sd-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sd-stats-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
}
.sd-stats-table td:first-child { font-weight: 600; }
.sd-stats-table tr:hover { background: #f8fafc; }
.sd-live-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 0;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    margin-top: 12px;
}
.sd-live-meta strong { color: var(--primary); }
.sd-last-wicket {
    padding: 10px 0;
    font-size: 12px;
    color: #475569;
    border-top: 1px solid #f1f5f9;
}

/* Team logo badges */
.team-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.team-logo-badge svg {
    width: 44px;
    height: 44px;
    display: block;
}
.team-logo-emoji {
    font-size: 36px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sd-innings-logo .team-logo-badge svg,
.sd-innings-logo .team-logo-emoji {
    width: 24px;
    height: 24px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .sd-tab { padding: 10px 16px; font-size: 13px; }
    .sd-videos-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sd-video-thumb { height: 100px; }
    .sd-stats-table { font-size: 12px; }
    .sd-stats-table td { padding: 6px 8px; }
    .sd-live-meta { gap: 12px; font-size: 12px; }
    .sd-comm-list { max-height: 400px; }
}
@media (max-width: 480px) {
    .sd-videos-grid { grid-template-columns: 1fr; }
    .sd-innings-header { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
    .sd-tab { padding: 8px 12px; font-size: 12px; }
    .sd-stats-table td { padding: 5px 6px; font-size: 11px; }
    .sd-live-meta { flex-direction: column; gap: 6px; font-size: 11px; }
    .team-logo-badge svg { width: 36px; height: 36px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============ HEADER (single green bar like Cricbuzz) ============ */
.main-header {
    background: var(--header-green);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.header-content {
    display: flex;
    align-items: center;
    height: 48px;
    gap: 0;
}
.logo {
    display: flex;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
    margin-right: 20px;
}
.logo-img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px;
    display: block;
    object-fit: contain;
}
.logo-main {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo-cric {
    color: #fff;
}
.logo-highlight {
    color: #fff;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 1px;
}

/* Header inline nav */
.header-nav {
    flex: 1;
}
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    height: 48px;
}
.header-nav ul li a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 14px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.header-nav ul li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}
.header-search-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--font);
    outline: none;
    width: 140px;
}
.header-search-form input::placeholder { color: rgba(255,255,255,0.5); }
.header-search-form button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
}
.header-user-icon {
    color: rgba(255,255,255,0.8);
    display: flex;
    padding: 4px;
}
.header-user-icon:hover { color: #fff; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    align-items: center;
}

/* ============ SCORE TABS BAR (dark bar with match tabs) ============ */
.score-tabs-bar {
    background: var(--score-bar-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.score-tabs-inner {
    display: flex;
    align-items: center;
    height: 36px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}
.score-tabs-inner::-webkit-scrollbar { display: none; }
.score-tab-label {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.score-tab-item {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    padding: 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.score-tab-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.score-tab-item.tab-live { color: #e74c3c; font-weight: 700; }
.score-tab-all {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 700;
    padding: 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* ============ SCORE CARDS (large cards below tabs) ============ */
.score-cards-section {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.score-cards-wrapper {
    position: relative;
}
.score-cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    scrollbar-width: none;
}
.score-cards-scroll::-webkit-scrollbar { display: none; }

.sc-card {
    flex-shrink: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sc-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px); }
.sc-card.sc-live { border-color: var(--accent); border-left: 3px solid var(--accent); }
.sc-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}
.sc-live-dot {
    position: absolute;
    top: 10px;
    right: 42px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.sc-teams { margin: 8px 0 10px; }
.sc-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    padding: 2px 0;
}
.sc-flag { font-size: 16px; }
.sc-team-name { font-weight: 700; flex: 1; }
.sc-team-score { color: var(--text-dark); font-weight: 600; font-size: 13px; }
.sc-status {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.sc-status-live { color: var(--accent); }
.sc-bottom-links {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}
.sc-bottom-links a {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    padding-right: 14px;
}
.sc-bottom-links a:hover { color: var(--primary); }

.sc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 28px;
    height: 44px;
    cursor: pointer;
    font-size: 14px;
    z-index: 5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-prev { left: -2px; }
.sc-next { right: -2px; }
.sc-nav:hover { background: rgba(0,0,0,0.8); }

/* ============ SECTION TITLE BAR (like "IPL 2026") ============ */
.section-title-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.section-title-inner {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 20px;
}
.section-title-main {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}
.section-title-nav {
    display: flex;
    gap: 0;
}
.section-title-nav a {
    padding: 0 14px;
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.section-title-nav a:hover,
.section-title-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ============ QUICK ACCESS BAR ============ */
.quick-access-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.quick-access-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.quick-access-inner::-webkit-scrollbar { display: none; }
.qa-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
}
.qa-arrow {
    color: var(--text-dark);
    display: flex;
    flex-shrink: 0;
}
.qa-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-mid);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.qa-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============ 3-COLUMN HOME GRID ============ */
.main-content { padding: 16px 0 30px; }
.home-grid {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 20px;
}

/* ============ LEFT: LATEST NEWS SIDEBAR ============ */
.latest-news-sidebar {
    border-right: 1px solid var(--border);
    padding-right: 16px;
}
.ln-title {
    font-size: 14px;
    font-weight: 800;
    color: #d4690e;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.ln-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.ln-headline {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}
.ln-item:hover .ln-headline { color: var(--primary); }
.ln-time {
    display: block;
    font-size: 11px;
    color: var(--text-light);
}
.ln-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.ln-more-btn:hover { background: var(--primary-dark); }

/* ============ CENTER: ARTICLE CARDS ============ */
.center-articles {
    min-width: 0;
}
.ca-category-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-top: 4px;
}
.center-article-card {
    margin-bottom: 6px;
}
.ca-link {
    display: block;
}
.ca-image {
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #e0e0e0;
}
.ca-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.ca-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.ca-link:hover .ca-title { color: var(--primary); }
.ca-excerpt {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 6px;
}
.ca-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.ca-meta .ca-author { margin-right: 10px; }
.ca-divider {
    border-top: 1px solid #e0e0e0;
    margin: 14px 0;
}

/* ============ RIGHT SIDEBAR ============ */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 14px;
    margin-bottom: 16px;
}
.widget-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Featured Video */
.featured-video-placeholder { position: relative; }
/* ADD after .fv-thumb rule */
.fv-thumb {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    aspect-ratio: 16 / 9;  /* ADD this */
}
.fv-thumb img {
    width: 100%;
    height: 100%;           /* ADD this */
    object-fit: cover;      /* ADD this */
    display: block;
}
.fv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.fv-caption { font-size: 12px; color: var(--text-mid); }

/* Trending */
.trending-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    min-width: 24px;
    line-height: 1;
}
.trending-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.trending-body h4 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2px;
    color: var(--text-dark);
}
.trending-item:hover .trending-body h4 { color: var(--primary); }

/* Categories list */
.cat-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-list a:hover { color: var(--primary); }
.cat-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-light);
}

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-pill {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 11px;
    color: var(--text-mid);
    font-weight: 500;
}
.tag-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ ADS ============ */
.ad-block {
    text-align: center;
    margin-bottom: 16px;
}
.ad-block .container,
.ad-sidebar {
    background: var(--bg-light);
    border: 1px dashed var(--border);
    padding: 14px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--text-light);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ BREADCRUMB ============ */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.breadcrumb {
    display: flex;
    gap: 0;
    font-size: 12px;
    color: var(--text-light);
}
.breadcrumb li::after { content: '›'; margin: 0 8px; color: #ccc; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============ CONTENT GRID (2-col for article/category pages) ============ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* ============ STORIES LIST ============ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 14px;
}
.section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.view-all {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}
.view-all:hover { text-decoration: underline; }

.stories-list { margin-bottom: 24px; }
.story-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: var(--transition);
}
.story-card:hover {
    box-shadow: var(--shadow-lg);
}
.story-link {
    display: flex;
    gap: 14px;
    padding: 14px;
}
.story-img {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #e0e0e0;
}
.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-body { flex: 1; min-width: 0; }
.story-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.story-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 3px 0 5px;
    color: var(--text-dark);
}
.story-excerpt {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 6px;
}
.story-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-light);
}
.story-meta span { display: flex; align-items: center; gap: 3px; }

/* ============ CATEGORY GRID ============ */
.category-section { margin-bottom: 24px; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: var(--transition);
}
.cat-card:hover { box-shadow: var(--shadow-lg); }
.cat-card-img {
    overflow: hidden;
    background: #e0e0e0;
    aspect-ratio: 16 / 9;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-card-body { padding: 10px; }
.cat-card-body h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-dark);
}
.cat-card-time {
    font-size: 11px;
    color: var(--text-light);
}

/* ============ ARTICLE PAGE ============ */
.article-full {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 24px;
    margin-bottom: 24px;
}
.article-header { margin-bottom: 18px; }
.article-header h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 10px 0 14px;
    color: var(--text-dark);
}
.cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}
.author-name {
    font-weight: 700;
    font-size: 13px;
    display: block;
}
.article-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}
.article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-views {
    font-size: 12px;
    color: var(--text-light);
}
.share-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}
.share-btn:hover { background: var(--primary-dark); }

/* REPLACE existing .article-image */
.article-image {
    margin: 0 0 18px 0;   /* was: margin: 18px 0 */
    border-radius: 3px;
    overflow: hidden;
}
.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}
.article-content p { margin-bottom: 14px; }
.article-content h2 { font-size: 19px; margin: 20px 0 10px; }
.article-content h3 { font-size: 16px; margin: 18px 0 8px; }
.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 10px 18px;
    margin: 14px 0;
    background: var(--bg-light);
    font-style: italic;
}

.article-tags {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tags-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
}

.article-share-bottom {
    margin-top: 20px;
    padding: 14px;
    background: var(--bg-light);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.article-share-bottom span {
    font-size: 13px;
    font-weight: 700;
}
.share-buttons {
    display: flex;
    gap: 6px;
}
.share-buttons a {
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-buttons a:hover { opacity: 0.85; }

/* ============ RELATED ============ */
.related-section { margin-bottom: 24px; }

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 20px 0;
}
.page-link {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}
.page-link.active, .page-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ SEARCH ============ */
.search-count {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
}
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* ============ FOOTER (dark, 4-col, Cricbuzz style) ============ */
.main-footer { margin-top: 0; }
.footer-top {
    background: var(--bg-dark);
    color: #ccc;
    padding: 30px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-logo-link {
    display: inline-block;
    margin-bottom: 10px;
}
.footer-logo-link .logo-main {
    font-size: 26px;
}
.footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    color: #aaa;
    font-size: 13px;
}
.footer-col ul a:hover { color: var(--primary-light); }

.footer-bottom {
    background: #2a2a2a;
    color: #777;
    padding: 12px 0;
    text-align: center;
    font-size: 11px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .home-grid { grid-template-columns: 1fr 280px; }
    .latest-news-sidebar { display: none; }
    .content-grid { grid-template-columns: 1fr; }
    .score-detail-card { padding: 24px; }
    .sd-teams { gap: 30px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet-specific fixes */
    .sd-teams { gap: 30px; padding: 16px 0; }
    .sd-team-logo { width: 56px; height: 56px; }
    .sd-team-logo .team-logo-badge svg { width: 56px; height: 56px; }
    .sd-team-logo .team-logo-emoji { font-size: 40px; }
    .sd-team-name { font-size: 15px; }
    .sd-tab { padding: 11px 20px; font-size: 13px; }
    .sd-videos-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    /* --- HEADER: hamburger left, logo center, icons right --- */
    .header-content {
        position: relative;
        justify-content: center;
        padding: 0 50px; /* reserve equal space on both sides for absolute elements */
    }
    .header-nav { display: none; }
    .header-search-form { display: none; }
    .header-datetime { display: none !important; }
    .header-right {
        position: absolute;
        right: 8px;
        gap: 6px;
        display: flex;
        align-items: center;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        position: absolute;
        left: 8px;
    }
    .logo {
        margin-right: 0;
        max-width: calc(100% - 100px); /* prevent logo from touching absolute elements */
    }
    .logo-img {
        height: 32px !important;
        max-height: 32px;
        width: auto !important;
        max-width: 160px;
        object-fit: contain;
    }
    .logo-main { font-size: 22px; }

    /* Nav open overlay */
    .header-nav.nav-open {
        display: block;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: var(--header-green);
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    .header-nav.nav-open ul {
        flex-direction: column;
        height: auto;
    }
    .header-nav.nav-open ul li a {
        height: auto;
        padding: 13px 16px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* --- SCORE TABS: scrollable, smaller text --- */
    .score-tabs-inner { height: 32px; }
    .score-tab-label { font-size: 10px; padding: 0 10px; }
    .score-tab-item { font-size: 10px; padding: 0 10px; }

    /* --- SCORE CARDS: wider cards, full bleed --- */
    .score-cards-section { padding: 8px 0; }
    .sc-card {
        width: 280px;
        padding: 12px;
    }
    .sc-team-row { font-size: 14px; }
    .sc-team-name { font-size: 14px; }
    .sc-team-score { font-size: 14px; }
    .sc-flag { font-size: 20px; }
    .sc-status { font-size: 12px; margin-bottom: 10px; }
    .sc-bottom-links a { font-size: 11px; }

    /* --- SECTION TITLE BAR --- */
    .section-title-bar { border-bottom: 1px solid var(--border); }
    .section-title-inner {
        flex-wrap: nowrap;
        height: auto;
        padding: 10px 0;
        gap: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .section-title-inner::-webkit-scrollbar { display: none; }
    .section-title-main { font-size: 15px; flex-shrink: 0; }
    .section-title-nav a { font-size: 13px; padding: 0 10px; height: 36px; white-space: nowrap; }

    /* --- QUICK ACCESS: horizontal scroll --- */
    .quick-access-bar { padding: 8px 0; }
    .qa-label { font-size: 14px; }
    .qa-pill { font-size: 13px; padding: 6px 14px; }

    /* --- 3-COL -> SINGLE COL --- */
    .home-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .latest-news-sidebar {
        display: none;
    }
    .sidebar {
        border-top: 8px solid var(--bg-light);
        padding-top: 16px;
    }

    /* --- CENTER ARTICLES: full-width cards, Cricbuzz-style --- */
    .center-articles {
        padding: 0;
    }
    .ca-category-label {
        font-size: 12px;
        padding: 12px 0 6px;
    }
    .ca-image {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .ca-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
    }
    .ca-excerpt {
        font-size: 14px;
        line-height: 1.55;
        color: var(--text-mid);
    }
    .ca-meta {
        font-size: 12px;
    }
    .ca-divider {
        margin: 16px 0;
    }

    /* --- STORY CARDS (category/search pages) --- */
    .story-link {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    .story-img {
        width: 100%;
        height: 200px;
        border-radius: 0;
    }
    .story-body {
        padding: 12px 14px;
    }
    .story-cat { font-size: 11px; }
    .story-title {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.35;
        margin: 4px 0 6px;
    }
    .story-excerpt {
        font-size: 14px;
        line-height: 1.5;
    }
    .story-meta { font-size: 12px; }
    .story-card {
        margin-bottom: 8px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    /* --- ARTICLE PAGE --- */
    .article-full {
        padding: 14px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    .article-header h1 {
        font-size: 20px;
        line-height: 1.35;
        margin: 8px 0 12px;
    }
    .article-image {
    margin-left: -14px;
    margin-right: -14px;
    margin-top: 0;     /* ADD */
    border-radius: 0;
}
    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }
    .article-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
    .author-avatar { width: 32px; height: 32px; font-size: 14px; }
    .share-buttons { flex-wrap: wrap; }
    .share-buttons a { font-size: 12px; padding: 6px 14px; }

    /* --- CATEGORY GRID --- */
    .category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cat-card { border-radius: 3px; }
    .cat-card-img { height: auto; }
    .cat-card-body h4 { font-size: 13px; }

    /* --- SIDEBAR WIDGETS --- */
    .sidebar-widget {
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 14px;
    }
    .widget-title { font-size: 14px; }
    .trending-body h4 { font-size: 13px; }

    /* --- FOOTER --- */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-col h4 { font-size: 12px; margin-bottom: 10px; }
    .footer-col ul a { font-size: 13px; }
    .footer-logo-link .logo-main { font-size: 22px; }
    .footer-bottom { font-size: 10px; }

    /* --- BREADCRUMB --- */
    .breadcrumb { font-size: 11px; }

    /* --- SECTION HEADER --- */
    .section-title { font-size: 14px; }

    /* --- PAGINATION --- */
    .page-link { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }

    /* Header */
    .logo-main { font-size: 20px; }

    /* Score cards full width single */
    .sc-card {
        width: 260px;
    }

    /* Articles */
    .ca-image {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .ca-title { font-size: 17px; }
    .ca-excerpt { font-size: 13px; }

    /* Story cards */
    .story-img { height: 180px; }
    .story-title { font-size: 16px; }
    .story-excerpt { font-size: 13px; }

    /* Article page */
    .article-full { padding: 12px; }
    .article-header h1 { font-size: 18px; }
    .article-image {
        margin-left: -12px;
        margin-right: -12px;
    }
    .article-content { font-size: 14px; line-height: 1.7; }

    /* Category grid single col */
    .category-grid { grid-template-columns: 1fr; }

    /* Footer single col */
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Quick access */
    .qa-pill { font-size: 12px; padding: 5px 12px; }
    .qa-label { font-size: 13px; }
}

/* ============ ADMIN STYLES ============ */
.admin-body {
    background: #f0f2f5;
    font-family: var(--font);
}
.admin-header {
    background: var(--primary);
    padding: 12px 0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo-main { font-size: 20px; }
.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
}
.admin-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.admin-nav a {
    color: rgba(255,255,255,0.85);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.admin-content {
    padding: 20px 0;
    min-height: calc(100vh - 56px);
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-card h3 {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 3px;
}
.stat-card p {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Admin Cards */
.admin-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.admin-card h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font);
    font-size: 13px;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,138,67,0.1);
}
.form-group textarea { min-height: 180px; resize: vertical; }

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-danger {
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 4px 10px; font-size: 11px; }

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.admin-table th {
    text-align: left;
    padding: 8px 10px;
    background: var(--bg-light);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-mid);
    border-bottom: 2px solid var(--border);
}
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:hover { background: #fafafa; }
.admin-table img {
    width: 55px;
    height: 36px;
    object-fit: cover;
    border-radius: 2px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-published { background: #d4edda; color: #155724; }
.status-draft { background: #fff3cd; color: #856404; }

.alert {
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Login */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.login-box {
    background: #fff;
    padding: 36px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
}
.login-box h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}
.login-box .login-sub {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.login-box .btn-primary { width: 100%; }

/* Two column form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-menu-toggle { display: block; }
    .admin-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 8px;
        z-index: 999;
        flex-direction: column;
        gap: 2px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    .admin-nav.nav-open {
        display: flex;
    }
    .admin-nav a {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 4px;
    }
    .admin-header .container { position: relative; }
    .admin-table { font-size: 11px; }
    .admin-table th, .admin-table td { padding: 6px 6px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 12px; }
    .stat-card h3 { font-size: 20px; }
    .admin-card { padding: 14px; }
}

/* ============ VIDEO GRID (frontend) ============ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.video-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    display: block;
}
.video-card:hover { box-shadow: var(--shadow-lg); }
.video-thumb {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}
.video-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.video-info {
    padding: 10px 12px;
}
.video-info h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-dark);
}
.video-info p {
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 4px;
}
.video-date {
    font-size: 11px;
    color: var(--text-light);
}

/* Featured video list items in sidebar */
.fv-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.fv-item:last-of-type { border-bottom: none; padding-bottom: 0; }

/* Quill editor overrides */
.ql-container { font-family: var(--font); }
.ql-toolbar { background: #fafafa; border-radius: 4px 4px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 4px 4px; }
.ql-editor { min-height: 250px; }
.ql-editor img { max-width: 100%; height: auto; }
.ql-editor iframe { max-width: 100%; }

/* Center article overflow fix */
.center-articles {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Article content overflow fix */
.article-content img { max-width: 100%; height: auto; }
.article-content iframe { max-width: 100%; }
.article-content { overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* ============ HEADER DATE/TIME (IST) ============ */
.header-datetime {
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============ QUICK ACCESS SOCIAL PILLS ============ */
.qa-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    flex-shrink: 0;
}
.qa-social {
    font-weight: 600;
}
.qa-social svg {
    flex-shrink: 0;
}
.qa-youtube {
    background: #fff;
}
.qa-youtube:hover,
.qa-facebook:hover,
.qa-instagram:hover {
    background: #fff;
}

.qa-youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.qa-facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.qa-instagram:hover {
    color: #e4405f;
    border-color: #e4405f;
}

.qa-youtube:hover svg,
.qa-facebook:hover svg,
.qa-instagram:hover svg {
    fill: currentColor;
}

/* ============ FEATURED VIDEOS CLICKABLE ============ */
a.fv-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}
a.fv-link:hover .fv-caption {
    color: var(--primary);
}
a.fv-link:hover .fv-play {
    background: rgba(26,138,67,0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    .header-datetime { display: none; }
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, #0d6b30 0%, #1a8a43 40%, #0d6b30 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0 30px;
    text-align: center;
}
.hero-ball-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}
.rotating-ball {
    width: 100%;
    height: 100%;
    animation: rotateBall 20s linear infinite;
}
@keyframes rotateBall {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-container {
    position: relative;
    z-index: 2;
}
.hero-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
    filter: brightness(1.1);
}
.hero-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hero-nav-btn {
    display: inline-block;
    padding: 6px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-nav-btn:hover, .hero-nav-btn.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* ============ DESKTOP NAV DROPDOWN ============ */
.nav-dropdown-parent {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    padding: 4px 0;
}
.nav-dropdown-menu.open {
    display: block;
}
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-dark) !important;
    font-weight: 500;
    height: auto !important;
}
.nav-dropdown-menu li a:hover {
    background: var(--bg-light) !important;
    color: var(--primary) !important;
}

/* ============ LANGUAGE DROPDOWN ============ */
.lang-dropdown {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.25);
}
.lang-label {
    font-size: 11px;
}
.lang-menu {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    min-width: 120px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 1001;
    padding: 4px 0;
}
.lang-menu.open {
    display: block;
}
.lang-option {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}
.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* ============ MOBILE MENU ============ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
}
.mobile-menu-overlay.open {
    display: block;
}
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1200;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 16px rgba(0,0,0,0.2);
    visibility: hidden;
}
.mobile-menu.open {
    left: 0;
    visibility: visible;
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--header-green);
}
.mobile-logo-img {
    height: 28px !important;
    width: auto !important;
    max-height: 28px;
    object-fit: contain;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.mobile-menu-search input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font);
    outline: none;
}
.mobile-menu-search button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.mobile-menu-nav {
    padding: 8px 0;
}
.mobile-menu-nav > a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-nav > a:hover {
    color: var(--primary);
    background: #fafafa;
}
.mobile-dropdown {
    border-bottom: 1px solid #f0f0f0;
}
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    text-align: left;
}
.mobile-dropdown-toggle svg {
    transition: transform 0.2s;
}
.mobile-dropdown-toggle.active svg {
    transform: rotate(180deg);
}
.mobile-dropdown-content {
    display: none;
    padding: 0 0 8px;
    background: #fafafa;
}
.mobile-dropdown-content.open {
    display: block;
}
.mobile-dropdown-content a {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
}
.mobile-dropdown-content a:hover {
    color: var(--primary);
}
.mobile-menu-lang {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-lang-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
}
.mobile-lang-btns {
    display: flex;
    gap: 6px;
}
.mobile-lang-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    background: #fff;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.mobile-lang-btn:hover,
.mobile-lang-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.mobile-admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}
.mobile-admin-link:hover {
    color: var(--primary);
}

/* ============ SCORE CARDS AS LINKS ============ */
a.sc-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.sc-card .sc-bottom-links {
    pointer-events: none;
}
a.sc-card .sc-bottom-links span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    padding-right: 14px;
}

/* ============ SCORE DETAIL PAGE ============ */
.score-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.sd-sport-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sd-match-info {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
    flex: 1;
    min-width: 0;
}
.sd-live-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    letter-spacing: 0.5px;
}
.sd-views {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.sd-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    padding: 20px 0;
}
.sd-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    text-align: center;
}
.sd-team-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-team-logo .team-logo-badge svg {
    width: 64px;
    height: 64px;
}
.sd-team-logo .team-logo-emoji {
    font-size: 48px;
}
.sd-flag {
    font-size: 40px;
}
.sd-team-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    max-width: 160px;
}
.sd-team-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.sd-team-score small {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}
.sd-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-vs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
}
.sd-status {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-radius: 6px;
    border: 1px solid #dcfce7;
    line-height: 1.5;
}
.sd-status-live {
    color: var(--accent);
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-color: #fecaca;
}

/* Score detail sidebar */
.sd-sidebar-match {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background 0.15s;
}
.sd-sidebar-match:hover, .sd-sidebar-match.active {
    background: #f8fafc;
}
.sd-sidebar-match:last-child { border-bottom: none; }
.sd-sidebar-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 3px;
    gap: 8px;
}
.sd-sidebar-team-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}
.sd-sidebar-team-info .team-logo-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.sd-sidebar-team-info .team-logo-emoji {
    font-size: 14px;
}
.sd-sidebar-score {
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
    font-size: 12px;
}
.sd-sidebar-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
    line-height: 1.3;
}

/* Footer logo image */
.footer-logo-img {
    height: 32px !important;
    width: auto !important;
    max-height: 32px;
    margin-bottom: 10px;
    object-fit: contain;
}
.footer-about {
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
    margin-top: 6px;
}

/* ============ MOBILE RESPONSIVE OVERRIDES ============ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        position: absolute;
        left: 8px;
    }
    .header-nav { display: none; }
    .header-search-form { display: none; }
    .header-right {
        position: absolute;
        right: 8px;
        gap: 6px;
    }
    .logo { margin-right: 0; }
    .logo-img { height: 32px !important; max-height: 32px; max-width: 160px; }
    .header-content {
        position: relative;
        justify-content: center;
        padding: 0 50px;
    }

    /* Hero */
    .hero-section { padding: 30px 0 24px; }
    .hero-logo { height: 45px; }
    .hero-tagline { font-size: 12px; padding: 0 16px; }
    .hero-nav { gap: 4px; padding: 0 10px; }
    .hero-nav-btn { padding: 5px 12px; font-size: 11px; }
    .hero-ball-bg { width: 200px; height: 200px; }

    /* Score detail */
    .score-detail-card { padding: 16px; border-radius: 0; border-left: none; border-right: none; }
    .sd-teams { gap: 20px; padding: 16px 0; }
    .sd-team { flex-direction: row; gap: 12px; min-width: auto; text-align: left; }
    .sd-team-logo { width: 44px; height: 44px; }
    .sd-team-logo .team-logo-badge svg { width: 44px; height: 44px; }
    .sd-team-logo .team-logo-emoji { font-size: 32px; }
    .sd-team-name { font-size: 14px; max-width: none; }
    .sd-team-score { font-size: 16px; }
    .sd-vs span { width: 32px; height: 32px; font-size: 11px; }
    .sd-header { margin-bottom: 16px; gap: 8px; padding-bottom: 12px; }
    .sd-match-info { font-size: 12px; }
    .sd-views { font-size: 11px; }
    .sd-status { font-size: 13px; padding: 10px; }
    .sd-tabs { top: 48px; }
    .sd-extra-info { font-size: 12px; padding: 8px 0; }
}

@media (max-width: 480px) {
    .hero-logo { height: 36px; }
    .hero-tagline { font-size: 11px; }
    .hero-nav-btn { padding: 4px 10px; font-size: 10px; }
    .logo-img { height: 28px !important; max-height: 28px; max-width: 130px; }
    .header-content { padding: 0 46px; }
    .lang-label { display: none; }
    .lang-toggle { padding: 4px 6px; }
}

/* ============ TEAM FLAG IMAGES ============ */
.team-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
}
.team-flag-default {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.sc-flag .team-flag-img {
    width: 24px;
    height: 16px;
}
.sd-team-logo .team-flag-img {
    width: 48px;
    height: 32px;
    border-radius: 3px;
}
.sd-innings-logo .team-flag-img {
    width: 24px;
    height: 16px;
}
.sd-sidebar-team-info .team-flag-img {
    width: 18px;
    height: 12px;
}
.score-tab-item .team-flag-img {
    width: 16px;
    height: 11px;
    margin-right: 2px;
}

/* ============ SCORE CARD SERIES & DESC ============ */
.sc-series-name {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.sc-match-desc {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* ============ REDESIGNED SCORE DETAIL PAGE ============ */

/* Info bar (series, venue, date) */
.sd-info-bar {
    background: #1e293b;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sd-info-bar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}
.sd-info-bar-inner::-webkit-scrollbar { display: none; }
.sd-info-item { flex-shrink: 0; }
.sd-info-item strong { color: #94a3b8; font-weight: 600; }
.sd-info-sep { color: #475569; flex-shrink: 0; }

/* Tabs bar - sticky below header */
.sd-tabs-bar {
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 48px;
    z-index: 50;
}
.sd-tabs-bar .sd-tabs {
    margin-top: 0;
    position: static;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: none;
}
.sd-tabs-bar .sd-tabs::-webkit-scrollbar { display: none; }
.sd-tabs-bar .sd-tab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.sd-tabs-bar .sd-tab:hover { color: #334155; background: #f8fafc; }
.sd-tabs-bar .sd-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* Score Summary Header */
.sd-score-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    margin-top: 16px;
}
.sd-result-status {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sd-result-live { color: var(--accent); }
.sd-live-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}
.sd-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 15px;
}
.sd-score-flag { flex-shrink: 0; display: flex; align-items: center; }
.sd-score-flag .team-logo-badge svg { width: 28px; height: 28px; }
.sd-score-flag .team-flag-img { width: 28px; height: 20px; }
.sd-score-team {
    font-weight: 800;
    color: var(--text-dark);
    min-width: 50px;
}
.sd-score-runs {
    font-weight: 800;
    font-size: 18px;
    color: #1a1a2e;
}
.sd-score-overs {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}
.sd-current-batters {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
}
.sd-batter { font-weight: 500; }
.sd-batter-strike { font-weight: 700; color: var(--text-dark); }

/* Commentary styles */
.sd-comm-list {
    max-height: none;
    overflow: visible;
}
.sd-comm-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}
.sd-comm-item:hover { background: #fafbfc; }
.sd-comm-item:last-child { border-bottom: none; }
.sd-comm-four { border-left-color: #2563eb; background: #eff6ff; }
.sd-comm-six { border-left-color: #7c3aed; background: #f5f3ff; }
.sd-comm-wicket { border-left-color: #dc2626; background: #fef2f2; }
.sd-comm-snippet {
    background: #f8fafc;
    border-left-color: #f59e0b;
}
.sd-comm-ball-num {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
    min-width: 36px;
    text-align: center;
}
.sd-comm-text {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    display: inline;
}
.sd-comm-text b { color: #1a1a2e; }
.sd-comm-headline {
    font-weight: 700;
    font-size: 13px;
    margin-top: 4px;
    color: var(--text-dark);
}

/* Over Summary Bar in Commentary */
.sd-over-summary-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}
.sd-over-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sd-over-num {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}
.sd-over-runs-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26,138,67,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}
.sd-over-balls {
    display: flex;
    gap: 4px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.sd-over-bar-score {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
    margin-left: auto;
}

/* Ball indicators */
.sd-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
}
.sd-ball-lg { width: 32px; height: 32px; font-size: 13px; }
.sd-ball-dot { background: #e2e8f0; color: #94a3b8; }
.sd-ball-four { background: #2563eb; color: #fff; }
.sd-ball-six { background: #7c3aed; color: #fff; }
.sd-ball-wicket { background: #dc2626; color: #fff; }

/* Innings Cards */
.sd-innings-card {
    margin-bottom: 12px;
}
.sd-innings-card .sd-innings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* Scorecard sections */
.sd-scorecard-section {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.sd-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}
.sd-batter-table, .sd-bowler-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sd-batter-table th, .sd-bowler-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.5px;
}
.sd-batter-table td, .sd-bowler-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
}
.sd-striker-row { background: #f0fdf4; }

/* Partnership display */
.sd-partnership-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
}
.sd-partnership-runs {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}
.sd-partnership-balls {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
}
.sd-partnership-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.sd-partnership-sep {
    color: #cbd5e1;
    font-size: 20px;
}
.sd-last-wicket-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    padding: 8px 12px;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    border-radius: 0 4px 4px 0;
}

/* Stats grid */
.sd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.sd-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.sd-stat-card.sd-stat-accent {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-color: #fecaca;
}
.sd-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.2;
}
.sd-stat-value small {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}
.sd-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.sd-stats-section {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.sd-perf-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.sd-perf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.sd-perf-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.sd-perf-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}
.sd-recent-overs-display {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.sd-recent-over-group {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Overs tab */
.sd-overs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sd-over-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    transition: box-shadow 0.2s;
}
.sd-over-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sd-over-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.sd-over-card-num {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}
.sd-over-card-runs {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(26,138,67,0.1);
    padding: 2px 10px;
    border-radius: 10px;
}
.sd-over-card-score {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-left: auto;
}
.sd-over-card-balls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.sd-over-card-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.sd-over-bowler, .sd-over-batter {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sd-over-bowler svg { flex-shrink: 0; }
.sd-over-card-details small {
    color: #94a3b8;
    font-weight: 500;
}

/* Players tab */
.sd-player-highlight {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.sd-player-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}
.sd-player-potm { padding: 16px; background: #f0fdf4; border-radius: 8px; border: 1px solid #dcfce7; }
.sd-player-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.sd-player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sd-player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}
.sd-player-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}
.sd-player-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(26,138,67,0.1);
    padding: 2px 10px;
    border-radius: 10px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.sd-badge-series { color: #7c3aed; background: rgba(124,58,237,0.1); }

/* Match Info tab */
.sd-info-list {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.sd-info-row {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    gap: 12px;
}
.sd-info-row:last-child { border-bottom: none; }
.sd-info-row:hover { background: #fafbfc; }
.sd-info-label {
    min-width: 100px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}
.sd-info-value {
    color: #1a1a2e;
    font-weight: 500;
    flex: 1;
}
.sd-info-result { color: var(--primary); font-weight: 700; }

/* Empty state */
.sd-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
}
.sd-empty-state svg {
    margin-bottom: 12px;
}
.sd-empty-state p {
    font-size: 13px;
    font-weight: 500;
}

/* Score detail responsive */
@media (max-width: 768px) {
    .sd-info-bar { font-size: 11px; }
    .sd-info-bar-inner { gap: 4px; }
    .sd-tabs-bar .sd-tab { padding: 10px 14px; font-size: 12px; }
    .sd-score-header { padding: 14px 16px; border-radius: 0; border-left: none; border-right: none; margin-top: 0; }
    .sd-score-runs { font-size: 16px; }
    .sd-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .sd-stat-value { font-size: 20px; }
    .sd-comm-item { padding: 10px 12px; }
    .sd-over-summary-bar { padding: 8px 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .sd-over-card { padding: 12px; }
    .sd-info-row { flex-direction: column; gap: 4px; }
    .sd-info-label { min-width: auto; }
    .sd-player-card.sd-player-potm { padding: 12px; }
    .sd-player-avatar { width: 44px; height: 44px; }
    .sd-player-name { font-size: 14px; }
    .sd-partnership-runs { font-size: 22px; }
    .sd-batter-table, .sd-bowler-table { font-size: 12px; }
    .sd-batter-table th, .sd-bowler-table th { padding: 6px 8px; }
    .sd-batter-table td, .sd-bowler-table td { padding: 8px; }
}
@media (max-width: 480px) {
    .sd-tabs-bar .sd-tab { padding: 8px 10px; font-size: 11px; }
    .sd-stats-grid { grid-template-columns: 1fr; }
    .sd-over-card-balls { gap: 4px; }
    .sd-ball { width: 24px; height: 24px; font-size: 10px; }
    .sd-ball-lg { width: 28px; height: 28px; font-size: 12px; }
}