@media (max-width: 991px) {
    .match-header {
        display: none !important;
    }

    .live-match-summary {
        background: linear-gradient(135deg, #1e88e5d1 0%, #1565c0e0 100%), url(../images/bg.jpg);
        margin-bottom: 20px;
        background-position: 55% 5%;
        background-size: cover;
    }
}

/* ==========================================
   CRICADO - Cricket Score Application Styles
   Mobile-First Responsive Design
   ========================================== */

/* CSS Variables for Theme */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #43a047;
    --accent-color: #ff6f00;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ffc107;
    --dark-bg: #1a1a2e;
    --card-bg: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --live-color: #ff1744;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 5px 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2) saturate(20.5);
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    list-style: none;
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
}

.nav-menu.active {
    display: block;
}

.nav-item {
    padding: 0;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        gap: 8px;
        padding: 0;
    }

    .nav-link {
        padding: 8px 16px;
        border-radius: 4px;
    }
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 0px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: white;
    padding: 32px 0;
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }
}

/* Quick Navigation Tabs */
.quick-nav {
    background-color: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    background-color: white;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-button:hover {
    background-color: #f5f5f5;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.match-count {
    font-size: 14px;
    color: var(--text-secondary);
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    color: #1565c0;
}

/* Live Indicator Animation */
.live-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--live-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ==========================================
   MATCH CARDS
   ========================================== */

.matches-section {
    padding: 20px 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Match Card Base */
.match-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.match-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Live Match Card */
.live-match-card {
    border-left: 4px solid var(--live-color);
    animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {

    0%,
    100% {
        box-shadow: var(--shadow-sm);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 23, 68, 0.2);
    }
}

/* ==========================================
   NEWS LIST / MAGAZINE STYLE
   ========================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
    border: 1px solid #f0f0f0;
}

.thumb-wrap {
    position: static;
    flex: 0 0 320px;
}

.news-thumb {
    width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    box-shadow: none;
}

.news-card-link {
    display: contents;
    gap: 1.25rem;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.news-card-link:focus {
    outline: 3px solid rgba(0, 123, 255, 0.12);
    outline-offset: 3px;
    border-radius: 8px;
}

.news-content {
    flex: 1 1 auto;
}

h1.news-page-title,
h1 {
    text-align: left;
    margin-bottom: 1.25rem;
}

.news-title {
    margin: 0 0 6px 0;
    font-size: 1.18rem;
    color: #111;
    line-height: 1.2;
}

.byline {
    color: #f6a800;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.news-excerpt {
    margin: 0.25rem 0 0.8rem 0;
    color: #4d4d4d;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.meta-left {
    color: #777;
    font-size: 0.9rem;
}

.meta-right {
    display: flex;
    align-items: center;
}

.read-more {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive rules */
@media (max-width: 1024px) {
    .thumb-wrap {
        flex: 0 0 260px;
    }

    .news-thumb {
        width: 260px;
        height: 150px;
    }

    .news-title {
        font-size: 1.12rem;
    }
}

@media (max-width: 760px) {
    .news-card {
        flex-direction: column;
        align-items: stretch;
    }

    .thumb-wrap {
        flex: 0 0 auto;
        width: 100%;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }

    .news-card-link {
        flex-direction: column;
    }

    .news-content {
        padding: 0.5rem 0;
    }

    .news-title {
        font-size: 1.05rem;
    }

    .news-excerpt {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .news-list {
        padding: 0 0.6rem;
    }

    .news-thumb {
        height: 180px;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-excerpt {
        font-size: 0.92rem;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Two-column magazine grid wrapper */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
}

@media (min-width: 760px) {
    .news-grid {
        grid-template-columns: repeat(1, 1fr);
        align-items: start;
    }

    /* Ensure each card uses left-thumb / right-content layout inside the grid cell */
    .news-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .news-card .thumb-wrap {
        flex: 0 0 240px;
    }

    .news-thumb {
        width: 240px;
        height: 140px;
    }
}

@media (min-width: 1024px) {
    .news-card .thumb-wrap {
        flex: 0 0 320px;
    }

    .news-thumb {
        width: 320px;
        height: 180px;
    }
}

/* Match Header */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-test {
    background-color: #e3f2fd;
    color: #1565c0;
}

.badge-odi {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-t20 {
    background-color: #fff3e0;
    color: #e65100;
}

.badge-t10 {
    background-color: #ff8181;
    color: #646464;
}

.live-badge {
    background-color: var(--live-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    animation: blink 1.5s ease-in-out infinite;
}

.live-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.completed-badge {
    background-color: #9e9e9e;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.match-time {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Match Series Info */
.series-details-container {
    padding: 20px 8px;
}

.match-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.match-series {
    margin-bottom: 16px;
}

.series-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.match-venue {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Match Teams & Scores */
.match-teams {
    margin: 16px 0;
}

.team-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    border-bottom: 1px solid var(--border-color);
}

.team-score:last-child {
    border-bottom: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-flag {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    min-width: 40px;
}

.team-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.runs {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.overs {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Winner Styling */
.team-score.winner {
    background-color: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--success-color);
}

.winner-badge {
    background-color: var(--success-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 8px;
}

/* VS Divider */
.vs-divider {
    text-align: center;
    padding: 8px 0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

/* Team Upcoming (No Scores) */
.team-upcoming {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

/* Match Status */
.match-status {
    margin: 16px 0;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* .status-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
} */

.match-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* .match-result {
    margin: 16px 0;
    padding: 12px;
    background-color: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
} */

.result-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Match Schedule */
.match-schedule {
    margin: 16px 0;
}

.schedule-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.schedule-icon {
    font-size: 18px;
}

.schedule-time {
    font-weight: 600;
    color: var(--text-primary);
}

/* Match Actions */
.match-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    margin-top: 12px;
}

/* ==========================================
   SERIES SECTION
   ========================================== */

.series-section {
    padding: 40px 0;
    background-color: white;
    margin-top: 40px;
}

.series-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.series-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.series-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.series-header {
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.series-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.series-dates {
    font-size: 13px;
    color: var(--text-secondary);
}

.series-info {
    display: flex;
    justify-content: space-between;
    margin: 0px 0;
    color: #fff;
}

.series-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================
   MATCH DETAILS PAGE
   ========================================== */

.match-details-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    color: white;
    padding: 24px 0;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.current {
    color: white;
}

.match-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.series-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.venue-icon {
    font-size: 16px;
}

.match-date {
    margin-left: auto;
}

/* Score Summary */
.score-summary-section {
    padding: 32px 0;
}

.score-summary-card {
    background-color: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.team-score-detail {
    padding: 20px 0;
}

.team-score-detail:first-child {
    border-bottom: 2px solid var(--border-color);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.team-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-flag-large {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 8px;
}

.team-name-large {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.winner-crown {
    font-size: 32px;
}

.score-large {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.runs-large {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
}

.overs-large {
    font-size: 18px;
    color: var(--text-secondary);
}

.vs-divider-large {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 16px 0;
}

.match-result-banner {
    background: linear-gradient(135deg, var(--success-color) 0%, #388e3c 100%);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.match-result-banner h3 {
    font-size: 20px;
    font-weight: 600;
}

.match-status-banner {
    background-color: #fff3e0;
    border-left: 4px solid var(--warning-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.match-status-banner p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.toss-info {
    background-color: #f5f5f5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
}

.info-value {
    color: var(--text-primary);
}

/* Match Tabs */
.match-tabs-section {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 60px;
    z-index: 100;
}

.tab-navigation {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.match-tab {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.match-tab:hover {
    background-color: #f5f5f5;
}

.match-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 32px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SCORECARD TABLES
   ========================================== */

.scorecard-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

/* Live Match Summary Styles */
.live-match-summary {
    background: linear-gradient(135deg, #3180d5 0%, #1465bb 100%);
    color: #ffffff !important;
    padding: 5px 10px !important;
    margin-bottom: 24px;
    border-radius: 8px;
}

.live-match-summary * {
    color: #ffffff !important;
}

.live-team-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: none;
    color: #ffffff;
}

.live-team-score:last-of-type {
    border-bottom: none;
}

.live-team-score.current-batting {
    background-color: transparent;
    padding: 2px 0;
    border-radius: 0;
    margin: 0;
}

.live-team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.live-team-flag {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.live-team-name {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    white-space: nowrap;
}

.live-indicator {
    color: #ff1744;
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.live-score-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #ffffff;
    flex-shrink: 0;
}

.live-score {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.live-overs {
    font-size: 13px;
    opacity: 0.85;
    color: #ffffff;
    font-weight: 400;
}

.live-result-info {
    background: none;
    padding: 4px;
    border-radius: 6px;
    text-align: left;
    margin-top: 2px;
    font-weight: 500;
    border-left: none;
    color: #ffffff;
    font-size: 13px;
}

/* Innings Break Message */
.innings-break-message {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    padding: 0px;
    border-radius: 0px;
    text-align: left;
    margin-top: 12px;
    /* box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite; */
}

.innings-break-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 2px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }
}

.live-requirement-info {
    background: none;
    padding: 4px;
    border-radius: 6px;
    text-align: left;
    margin-top: 0px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.scorecard-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.bowling-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
}

.scorecard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.scorecard-table thead {
    background-color: #f5f5f5;
}

/* .scorecard-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.scorecard-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
} */

.scorecard-table tbody tr:hover {
    background-color: #f9f9f9;
}

.batsman-col,
.bowler-col {
    min-width: 200px;
}

.batsman-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.dismissal-info {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.not-out-badge {
    background-color: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 8px;
    font-weight: 600;
}

/* .text-center {
    text-align: center;
} */

.total-row {
    background-color: #f5f5f5;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid var(--border-color);
}

/* ==========================================
   PARTNERSHIPS
   ========================================== */

.partnerships-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .partnerships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.partnership-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.partnership-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.partnership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wicket-number {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.team-badge {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.partnership-runs {
    text-align: center;
    margin: 20px 0;
}

.runs-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.runs-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.partnership-players {
    margin: 16px 0;
}

.player-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.player-icon {
    font-size: 20px;
}

.player-name {
    font-weight: 500;
    color: var(--text-primary);
}

.partnership-divider {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 4px 0;
}

.partnership-stats {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================
   LIVE COMMENTARY
   ========================================== */

.commentary-feed {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.commentary-item {
    display: flex;
    gap: 2px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.commentary-item:last-child {
    border-bottom: none;
}

.commentary-item:hover {
    background-color: #f9f9f9;
}

/* .commentary-item.wicket {
    background-color: #ffebee;
    border-left: 4px solid var(--danger-color);
}

.commentary-item.boundary {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
} */

.commentary-over {
    min-width: 60px;
    text-align: center;
}

.over-number {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.wicket-icon,
.boundary-icon {
    font-size: 20px;
}

.commentary-content {
    flex: 1;
}

.commentary-text {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 0px;
    /* line-height: 1.5; */
}

/* Red text for wicket commentary */
.commentary-item.wicket .commentary-text {
    color: #d32f2f;
    font-weight: 500;
}

.commentary-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Innings Commentary Sections */
.innings-commentary-section {
    margin-bottom: 40px;
}

.innings-commentary-section:last-child {
    margin-bottom: 0;
}

.innings-commentary-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
}

.innings-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.innings-team {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

.innings-commentary-section .commentary-list {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: white;
}

.commentary-batsman {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Innings Sub-Tabs */
.innings-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.innings-tab-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    bottom: -2px;
}

.innings-tab-button:hover {
    background: rgba(0, 91, 187, 0.05);
}

.innings-tab-button.active {
    border-bottom-color: var(--primary-color);
    background: rgba(0, 91, 187, 0.05);
}

.innings-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.innings-score {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.innings-tab-button.active .innings-label {
    color: var(--primary-color);
}

.innings-tab-button.active .innings-score {
    color: var(--primary-color);
}

.innings-content {
    display: none;
}

.innings-content.active {
    display: block;
}

.runs-scored {
    font-size: 13px;
    color: var(--text-secondary);
}

.commentary-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==========================================
   STATISTICS
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card .stat-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 12px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

}

.footer-section h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */

@media (max-width: 767px) {
    .page-header {
        padding: 20px 0;
    }

    .score-summary-card {
        padding: 20px;
    }

    .runs-large {
        font-size: 32px;
    }

    .team-name-large {
        font-size: 18px;
    }

    .footer-section ul li {
        font-size: 14px;
    }

    .live-match-summary {
        background: linear-gradient(135deg, #1e88e5d1 0%, #1565c0e0 100%), url(../images/bg.jpg);
        margin-bottom: 20px;
        background-position: 55% 5%;
        background-size: cover;
        margin-top: 10px;
    }

    .scorecard-section {
        padding: 16px;
    }

    .scorecard-table {
        font-size: 13px;
    }

    .scorecard-table th,
    .scorecard-table td {
        padding: 8px 4px;
    }

    .highlight p {
        font-size: 16px;
    }
}

/* ==========================================
   LOADING & ANIMATIONS
   ========================================== */

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   BADGE BOX STYLES
   ========================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e88e5d1 0%, #1565c0e0 100%), url(../images/bg.jpg);
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 20px;
    background-position: 55% 5%;
    background-size: cover;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Quick Navigation Tabs */
.quick-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.tab-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: #f5f5f5;
    color: var(--text-primary);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-icon {
    font-size: 18px;
}

/* Matches Section */
.matches-section {
    display: none;
    padding: 20px 8px;
}

.matches-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-count {
    font-size: 14px;
    color: var(--text-secondary);
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Live Pulse Animation */
.live-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--live-color);
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Badge Grid */
.badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .badge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Match Badge */
.match-badge {
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.match-badge:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.live-badge-box {
    border-left: 4px solid var(--live-color);
}

.upcoming-badge-box {
    border-left: 4px solid var(--warning-color);
}

.completed-badge-box {
    border-left: 4px solid var(--success-color);
}

/* Badge Header */
.badge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.series-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.series-grid a {
    text-decoration: none;
}

.series-stats {
    display: flex;
    justify-content: space-between;
}

.series-date-range .icon {
    width: 25px;
}

.series-date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #ff1744;
}

.series-matches-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.series-live {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.series-upcoming {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.series-completed {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-t20 {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.series-type-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}



.series-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.format-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.badge-test {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.badge-odi {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.badge-t20 {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.badge-t20i {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
}

/* Badge Status */
.badge-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 2px 5px;
    /* background: #fef5f5; */
    border-radius: 2px;
}

.live-indicator-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--live-color);
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite;
}

.live-status {
    justify-content: space-between;
}

.status-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--live-color);
    letter-spacing: 0.5px;
}

.upcoming-status {
    background: #fffbf0;
    justify-content: space-between;
}

.upcoming-status .status-text {
    color: var(--text-primary);
    font-weight: 600;
}

.time-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.completed-status {
    background: #f1f8f4;
}

.completed-status .status-text {
    color: var(--success-color);
}

/* Teams Container */
.teams-container {
    margin-bottom: 16px;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #f5f5f5;
    flex-shrink: 0;
}

.team-logo-placeholder {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.team-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

.score {
    font-size: 18px;
    color: var(--text-primary);
}

.overs {
    font-size: 13px;
    color: var(--text-secondary);
}

.score-na {
    font-size: 16px;
    color: var(--text-secondary);
}

/* VS Divider */
.vs-divider {
    text-align: center;
    margin: 4px 0;
    position: relative;
    display: none;
}

.vs-divider span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* Badge Result */
.badge-result {
    margin-bottom: 5px;
    padding: 1px 6px;
    background: #ffffff;
    border-radius: 2px;
}

.result-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
    text-align: left;
    display: block;
}

/* Badge Footer */
.badge-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.venue-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.venue-info .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* No Matches State */
.no-matches {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.no-matches-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-matches h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-matches p {
    font-size: 15px;
    color: var(--text-secondary);
}

.view-full-commentary-btn {
    padding: 8px 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Responsive Adjustments for Badge Boxes */
@media (min-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .team-logo,
    .team-logo-placeholder {
        width: 40px;
        height: 40px;
    }

    .match-badge {
        padding: 10px;
    }

    .team-name {
        font-size: 16px;
    }

    .score {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 28px;
    }
}

/* Additional Badge Polish */
.match-badge {
    overflow: hidden;
    position: relative;
}

.match-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.match-badge:hover::before {
    opacity: 1;
}

/* .live-badge-box .badge-status {
    animation: live-glow 2s infinite;
} */

@keyframes live-glow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 23, 68, 0);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
    }
}

/* Tab button improvements */
.tab-button {
    white-space: nowrap;
}

.tab-button:active {
    transform: scale(0.98);
}

/* Smooth transitions */
.matches-section {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team score highlighting */
.team-row:hover .team-score {
    color: var(--primary-color);
}

/* Format badge glow effects */
.format-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.match-badge:hover .format-badge {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* Empty state animations */
.no-matches {
    animation: fadeIn 0.6s ease-in-out;
}

.no-matches-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .quick-nav,
    .match-tabs-section,
    .match-actions,
    .btn {
        display: none !important;
    }

    .match-card,
    .scorecard-section,
    .match-badge {
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ==========================================
   MATCH DETAILS PAGE STYLES
   ========================================== */

/* Match Header */
.match-header {
    background: linear-gradient(135deg, #1e88e5d1 0%, #1565c0e0 100%), url(../images/bg.jpg);
    color: white;
    padding: 12px 0;
    margin-bottom: 20px;
    background-position: 55% 5%;
    background-size: cover;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.match-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0px;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    margin-bottom: 12px;
}

.series-info,
.venue-info {
    opacity: 0.95;
}

.match-type-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.match-result {
    margin-top: 12px;
    padding: 0px;
    /* background: rgba(255, 255, 255, 0.15); */
    border-radius: 8px;
    font-size: 15px;
    /* border-left: 4px solid var(--success-color) */
}

.toss-info {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
}

/* Live Score Banner */
.live-score-banner {
    background: linear-gradient(135deg, #ff1744 0%, #c41335 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 20px;
    animation: live-glow 2s infinite;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite;
}

.live-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.score-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.batting-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
}

.team-score {
    font-size: 32px;
    font-weight: 700;
}

.live-status {
    font-size: 14px;
    opacity: 0.95;
}

/* Match Tabs */
.match-tabs-section {
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.match-tab-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.match-tab-button {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.match-tab-button:hover {
    background: #f5f5f5;
    color: var(--text-primary);
}

.match-tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* Tab Content */
.match-content {
    padding-bottom: 0px;
}

.match-tab-content {
    display: none;
}

.match-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Scorecard Section */
.scorecard-section {
    /* background: white; */
    border-radius: 0px;
    padding: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.section-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0px;
    padding: 5px 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
    margin-bottom: 5px;
    font-style: italic;
    padding: 0 8px;
}

.subsection-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0 10px;
    padding: 0 10px;
}

/* Scorecard Table */
.scorecard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.scorecard-table thead {
    background: #f5f5f5;
}

.scorecard-table th {
    padding: 8px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.scorecard-table td {
    padding: 8px 8px;
    border-bottom: 1px solid var(--border-color);
}

.scorecard-table tbody tr:hover {
    background: #f9f9f9;
}

.scorecard-table .player-name {
    font-weight: 500;
    color: var(--text-primary);
}

.scorecard-table .runs {
    font-weight: 700;
    color: var(--primary-color);
}

.scorecard-table .wickets {
    font-weight: 700;
    color: var(--danger-color);
}

.active-player {
    background: #e3f2fd !important;
}

.batting-indicator {
    color: var(--success-color);
    font-weight: 700;
    margin-left: 4px;
}

.not-out {
    color: var(--success-color);
    font-weight: 700;
    margin-left: 4px;
}

.dismissal-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.extras-row {
    background: #fafafa;
    font-style: italic;
}

.total-row {
    background: #e8f5e9;
    font-weight: 700;
}

/* Partnership Info */
.partnership-info,
.last-wicket-info {
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.partnerships-list {
    display: grid;
    gap: 12px;
}

.partnership-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.partnership-players {
    font-size: 14px;
}

.partnership-stats {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Fall of Wickets */
.fall-of-wickets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 0 10px;
}

.wicket-fall-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-left: 3px solid var(--danger-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.wicket-fall-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.wicket-number {
    font-weight: 700;
    color: var(--danger-color);
    font-size: 15px;
}

.wicket-player {
    color: var(--text-secondary);
    font-size: 13px;
}

@media (max-width: 768px) {
    .fall-of-wickets {
        flex-direction: column;
    }

    .wicket-fall-item {
        width: 100%;
    }
}

/* Partnerships Container (Scoreboard Tab) */
.partnerships-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.partnership-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: var(--transition);
}

.partnership-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.partnership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.partnership-players-names {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.partnership-separator {
    color: var(--text-secondary);
    font-weight: 400;
}

.partnership-total {
    font-size: 14px;
    color: var(--primary-color);
}

.partnership-total strong {
    font-size: 16px;
    font-weight: 700;
}

.partnership-details {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.partnership-run-rate strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .partnership-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .partnership-players-names {
        font-size: 14px;
    }
}

/* Commentary */
.commentary-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.commentary-item {
    padding: 6px 4px;
    background: white;
    /* border-left: 4px solid var(--border-color); */
    border-radius: 0px;
    transition: var(--transition);
}

.commentary-item:hover {
    background: #f9f9f9;
    box-shadow: var(--shadow-sm);
}

/* .commentary-item.wicket {
    border-left-color: var(--danger-color);
    background: #ffebee;
} */

/* .commentary-item.boundary {
    border-left-color: var(--success-color); 
    background: #e8f5e9;
} */

.commentary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0px;
    flex-wrap: wrap;
}

.commentary-over {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.commentary-bowler {
    font-size: 13px;
    color: var(--text-secondary);
}

.commentary-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.commentary-text {
    flex: 1;
    font-size: 14px;
    /* line-height: 2.6; */
}

.event-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 5%;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.wicket-badge {
    background: var(--danger-color);
    color: white;
}

.boundary-badge {
    background: var(--success-color);
    color: white;
}

.runs-badge {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 5%;
    font-size: 12px;
    font-weight: 700;
}

.dot-badge {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 5%;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

/* Match Info Grid */
.match-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 10px;
}

@media (min-width: 640px) {
    .match-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-item {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
}

/* Error Message */
.error-message {
    background: #ffebee;
    border: 1px solid var(--danger-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.error-message h3 {
    color: var(--danger-color);
    margin-bottom: 12px;
}

.error-message p {
    margin-bottom: 16px;
}

/* Responsive Adjustments for Match Details */
@media (min-width: 768px) {
    .match-title {
        font-size: 36px;
    }

    .team-score {
        font-size: 42px;
    }

    .scorecard-section {
        padding: 0px;
        margin-bottom: 24px;
    }

    .scorecard-table {
        font-size: 15px;
    }
}

/* Over Summary Styles */
.over-summary {
    background: linear-gradient(180deg, #1670c3, #1670c3, #0054af9c, #0054af9c);
    color: white;
    border-radius: 0px;
    padding: 5px 10px;
    margin-bottom: 0px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.over-summary-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.over-summary-left {
    flex: 1;
}

.over-summary-right {
    text-align: right;
}

.over-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.over-summary-details {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 8px;
}

.over-runs {
    color: white;
}

.over-separator {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.over-wickets {
    color: #ffeb3b;
    font-weight: 700;
}

.over-team-score {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.over-crr {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.over-summary-players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.over-batsmen,
.over-bowlers {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.over-player {
    background: none;
    border-radius: 8px;
    padding: 2px 0px;
    display: flex;
    gap: 12px;
}

.over-player-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.over-player-stats {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .over-summary {
        padding: 5px 6px;
    }

    .over-summary-header-row {
        /* flex-direction: column; */
        gap: 12px;
    }

    .over-summary-right {
        text-align: left;
    }

    .over-summary-players {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .over-batsmen,
    .over-bowlers {
        display: flex;
        flex-direction: row;
        gap: 1px;
        justify-content: space-between;
    }

    .over-player {
        padding: 2px 8px;
        display: flex;
        gap: 5px;
    }

    .over-team-score {
        font-size: 20px;
    }
}

/* ==========================================
   NEWS DETAILS
   ========================================== */
.news-detail {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
    border: 1px solid #f0f0f0;
}

.news-hero {
    margin-bottom: 12px;
    float: left;
    padding-right: 15px;
}

.hero-image {
    width: 100%;
    height: auto;
    /* height: 420px; */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

.news-header {
    margin: 12px 0 20px;
}

.news-title {
    font-size: 26px;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    line-height: 1.15;
}

.pub-date {
    display: block;
    font-size: 0.95rem;
    color: #ff6b2d;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-body {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-top: 12px;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.original-link {
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .hero-image {
        height: 360px;
    }

    .news-hero {
        margin-bottom: 12px;
        float: left;
        padding-right: 0px;
        width: 100%;
    }

    .news-title {
        font-size: 24px;
    }
}

@media (max-width: 760px) {
    .hero-image {
        height: 260px;
    }

    .news-title {
        font-size: 20px;
    }


}

@media (max-width: 480px) {
    .hero-image {
        height: 200px;
    }

    .news-title {
        font-size: 24px;
    }

    .news-header {
        margin: 0px 0 3px;
    }


}

/* Commentary Filter Dropdown */
.commentary-item[data-filter-hidden='true'],
.over-summary[data-filter-hidden='true'] {
    display: none !important;
}


.commentary-filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-label-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

.commentary-filter-dropdown {
    flex: 1;
    max-width: 180px;
    padding: 5px 4px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.commentary-filter-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

.commentary-filter-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Hide filtered items */
.commentary-item[data-filter-hidden='true'],
.over-summary[data-filter-hidden='true'] {
    display: none !important;
}




.no-live-matches-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
    padding: 48px 24px 32px 24px;
    margin: 48px auto 0 auto;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-live-matches-icon {
    margin-bottom: 24px;
    opacity: 0.7;
}

.no-live-matches-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.no-live-matches-subtext {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 24px;
}

.btn.btn-primary {
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn.btn-primary:hover {
    background: #1769aa;
}

/* About Page Styles */
/* .match-banner img{
    width: 100%;
} */
.cricado-banner {
    background: linear-gradient(135deg, #1e88e5d1 0%, #1565c0e0 100%), url(../images/about1.jpg);
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 20px;
    background-position: 55% 5%;
    background-size: cover;
}

.highlight {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e63946;
}

.mission {
    font-style: italic;
    color: #4a5568;
    font-size: 1.1em;
    padding: 20px;
    background-color: #edf2f7;
    border-radius: 8px;
    margin: 30px 0;
}

.note {
    font-size: 0.95em;
    color: #666;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.highlight h2 {
    color: #2c5282;
    margin-top: 10px;
    margin-bottom: 10px;
}

.highlight ul {
    padding-left: 38px;

}

.highlight ul li {
    margin-bottom: 0.6em;
    font-size: 18px
}

.highlight p {
    margin-bottom: 10px;
    font-size: 18px
}

p.light {
    font-weight: 600;
    color: #c53030;
}

.last-section {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #ddd;
}

/* privacy page styles */


.contact-box {
    background-color: #f0faff;
    border: 2px solid #bee3f8;
    border-radius: 10px;
    padding: 12px;
    margin: 1.5em 0;
    text-align: left;
}

.contact-box h3 {
    color: #2c5282;
    margin-top: 0;
    margin-bottom: 0.2em;
}

.email-link,
.website-link {
    font-size: 18px;
    font-weight: 600;
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s;
}

.email-link:hover,
.website-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

span.soon {
    color: #e53e3e;
    font-weight: 600;
}

.response-note {
    font-style: italic;
    color: #4a5568;
    text-align: center;
    margin-top: 2.5em;
    padding: 20px;
    background-color: #fefcbf;
    border-radius: 8px;
    border: 1px solid #f6e05e;
}