/* ============================================
   Kerala School Games - Live Scores Stylesheet
   Modern, responsive design with sport-specific themes
   ============================================ */

/* === GENERAL STYLES === */
.ksg-page {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

.ksg-main-container {
    padding-top: 100px;
    padding-bottom: 70px;
}

/* === HEADER SECTION === */
.ksg-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.ksg-title-section {
    background: linear-gradient(135deg, #0ca7d5 0%, #223A9E 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(34, 58, 158, 0.2);
    margin-bottom: 1.5rem;
}

.ksg-main-title {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ksg-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* === FILTERS SECTION === */
.ksg-filters-container {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.ksg-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ksg-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #223A9E;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ksg-filter-label .material-icons {
    font-size: 1.2rem;
}

.ksg-filter-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #223A9E;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23223A9E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.ksg-filter-select:hover {
    border-color: #0ca7d5;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 167, 213, 0.15);
}

.ksg-filter-select:focus {
    outline: none;
    border-color: #0ca7d5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(12, 167, 213, 0.1);
}

.ksg-filter-select option {
    padding: 0.5rem;
    font-weight: 600;
}

/* Filter Buttons */
.ksg-refresh-btn,
.ksg-clear-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ksg-refresh-btn {
    background: linear-gradient(135deg, #0ca7d5 0%, #0982ab 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(12, 167, 213, 0.3);
}

.ksg-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 167, 213, 0.4);
}

.ksg-refresh-btn:active {
    transform: translateY(0);
}

.ksg-clear-btn {
    background: #f8fafc;
    color: #223A9E;
    border: 2px solid #e0e6ed;
}

.ksg-clear-btn:hover {
    background: #ffffff;
    border-color: #223A9E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 58, 158, 0.15);
}

/* Active Filters */
.ksg-active-filters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e6ed;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ksg-active-filters-label {
    font-weight: 700;
    color: #223A9E;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ksg-filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ksg-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0ca7d5 0%, #223A9E 100%);
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
}

.ksg-filter-tag .material-icons {
    font-size: 1rem;
}

.ksg-remove-tag {
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 0.3rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.ksg-remove-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === STATUS BAR === */
.ksg-status-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.ksg-status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ksg-status-icon {
    color: #0ca7d5;
    font-size: 1.5rem;
}

.ksg-status-text {
    font-size: 1rem;
    color: #5e6e7d;
    font-weight: 500;
}

.ksg-status-text strong {
    color: #223A9E;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Live Pulse Animation */
.live-pulse {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* === LOADING SPINNER === */
.ksg-loading {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.3s ease-out;
}

.ksg-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e0e6ed;
    border-top-color: #0ca7d5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ksg-loading-text {
    color: #5e6e7d;
    font-size: 1.1rem;
    font-weight: 600;
}

/* === NO MATCHES MESSAGE === */
.ksg-no-matches {
    text-align: center;
    padding: 4rem 2rem;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-out;
}

.ksg-no-matches-icon {
    font-size: 5rem;
    color: #e0e6ed;
    margin-bottom: 1rem;
}

.ksg-no-matches-title {
    color: #223A9E;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ksg-no-matches-text {
    color: #5e6e7d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ksg-view-all-btn {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #0ca7d5 0%, #223A9E 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ksg-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 167, 213, 0.4);
}

/* === SCORES GRID === */
.ksg-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* === SCORE CARDS === */
.ksg-score-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: scaleIn 0.4s ease-out;
}

.ksg-score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.ksg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e8ecf1 100%);
    border-bottom: 2px solid #e0e6ed;
}

.ksg-sport-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ksg-sport-badge .material-icons {
    font-size: 1.1rem;
}

/* Sport-specific badge colors */
.basketball-badge {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    color: #FFFFFF;
}

.badminton-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #FFFFFF;
}

.football-badge {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #FFFFFF;
}

.volleyball-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #FFFFFF;
}

.kabaddi-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
}

.wrestling-badge {
    background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%);
    color: #FFFFFF;
}

.cricket-badge {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #FFFFFF;
}

.tennis-badge {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: #FFFFFF;
}

.hockey-badge {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #FFFFFF;
}

.handball-badge {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #FFFFFF;
}

.khokho-badge {
    background: linear-gradient(135deg, #f953c6 0%, #b91d73 100%);
    color: #FFFFFF;
}

.taekwondo-badge {
    background: linear-gradient(135deg, #e53935 0%, #e35d5b 100%);
    color: #FFFFFF;
}

.karate-badge {
    background: linear-gradient(135deg, #ff6f00 0%, #ffa726 100%);
    color: #FFFFFF;
}

.judo-badge {
    background: linear-gradient(135deg, #283593 0%, #5c6bc0 100%);
    color: #FFFFFF;
}

.powerlifting-badge {
    background: linear-gradient(135deg, #212121 0%, #616161 100%);
    color: #FFFFFF;
}

.ksg-event-name {
    font-size: 0.9rem;
    color: #223A9E;
    font-weight: 700;
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
}

.ksg-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #ff4444;
    color: #FFFFFF;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ksg-live-dot {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Card Body */
.ksg-card-body {
    padding: 1.5rem 1.25rem;
}

/* Team Rows (Basketball, Football) */
.ksg-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ksg-team-row.leading {
    background: rgba(12, 167, 213, 0.08);
    font-weight: 700;
}

.ksg-team-name {
    font-size: 1.1rem;
    color: #2e3d62;
    font-weight: 600;
    flex: 1;
}

.ksg-team-score {
    font-size: 2rem;
    color: #223A9E;
    font-weight: 800;
    font-family: 'Rockwell', 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

.ksg-match-status {
    text-align: center;
    padding: 0.75rem 0;
    color: #0ca7d5;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Player Rows (Badminton, Table Tennis) */
.ksg-player-row {
    margin-bottom: 0.75rem;
}

.ksg-player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ksg-team-code {
    background: #223A9E;
    color: #FFFFFF;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
}

.ksg-player-name {
    font-size: 1.05rem;
    color: #2e3d62;
    font-weight: 700;
}

.ksg-sets-container {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.ksg-set {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: #f8fafc;
    border-radius: 8px;
    font-family: 'Rockwell', monospace;
}

.ksg-set.current-set {
    background: linear-gradient(135deg, #0ca7d5 0%, #223A9E 100%);
    color: #FFFFFF;
}

.ksg-set-score {
    font-weight: 700;
    font-size: 1rem;
}

.ksg-set-score.winner {
    color: #0ca7d5;
}

.ksg-set.current-set .ksg-set-score.winner {
    color: #FFFFFF;
}

.ksg-set-separator {
    color: #5e6e7d;
    font-weight: 400;
}

.ksg-vs-divider {
    text-align: center;
    color: #5e6e7d;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    letter-spacing: 1px;
}

/* Kabaddi Specific */
.ksg-raiding-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #FFFFFF;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: pulse-raid 2s infinite;
}

.ksg-raiding-team .material-icons {
    font-size: 1.2rem;
    animation: run-animation 1.5s infinite;
}

@keyframes pulse-raid {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    }
}

@keyframes run-animation {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Combat Sports Specific (Taekwondo, Karate, Judo) */
.ksg-combat-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ksg-fighter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ksg-fighter.leading {
    background: rgba(12, 167, 213, 0.1);
    border-left: 4px solid #0ca7d5;
}

.ksg-fighter-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.ksg-combat-score {
    font-size: 2rem;
    color: #223A9E;
    font-weight: 800;
    font-family: 'Rockwell', 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

.ksg-combat-vs {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e8ecf1 100%);
    border-radius: 10px;
}

.ksg-round-display {
    font-size: 1rem;
    color: #223A9E;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ksg-combat-time {
    font-size: 1.5rem;
    color: #0ca7d5;
    font-weight: 800;
    font-family: 'Rockwell', monospace;
}

/* Powerlifting Specific */
.ksg-powerlifting-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ksg-lifter {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    text-align: center;
}

.ksg-lift-weight {
    font-size: 2rem;
    color: #223A9E;
    font-weight: 800;
    font-family: 'Rockwell', monospace;
    margin: 0.5rem 0;
}

.ksg-lift-status {
    font-size: 0.9rem;
    color: #0ca7d5;
    font-weight: 700;
}

/* Volleyball Specific */
.ksg-vb-teams {
    display: grid;
    gap: 0.5rem;
}

.ksg-vb-team {
    font-size: 1.05rem;
    color: #2e3d62;
    font-weight: 700;
    padding: 0.5rem;
}

.ksg-vb-sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
}

.ksg-vb-set {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e6ed;
}

.ksg-vb-set.current-set {
    border-color: #0ca7d5;
}

.ksg-vb-score {
    text-align: center;
    padding: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #223A9E;
    font-family: 'Rockwell', monospace;
}

.ksg-vb-score.winner {
    background: linear-gradient(135deg, #0ca7d5 0%, #223A9E 100%);
    color: #FFFFFF;
}

/* Card Footer */
.ksg-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    background: #f8fafc;
    border-top: 2px solid #e0e6ed;
    color: #5e6e7d;
    font-size: 0.9rem;
    font-weight: 500;
}

.ksg-card-footer .material-icons {
    font-size: 1rem;
    color: #0ca7d5;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RESPONSIVE DESIGN === */

/* Large Devices (Desktops) */
@media only screen and (max-width: 1200px) {
    .ksg-scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop Devices */
@media only screen and (max-width: 992px) {
    .ksg-main-title {
        font-size: 2rem;
    }

    .ksg-subtitle {
        font-size: 1rem;
    }

    .ksg-scores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .ksg-status-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .ksg-status-item {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet Devices */
@media only screen and (max-width: 768px) {
    .ksg-main-container {
        padding-top: 80px;
    }

    .ksg-title-section {
        padding: 1.5rem;
    }

    .ksg-main-title {
        font-size: 1.75rem;
    }

    .ksg-filters-container {
        padding: 1.5rem 1rem;
    }

    .ksg-scores-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ksg-refresh-btn,
    .ksg-clear-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .ksg-active-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .ksg-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ksg-event-name {
        flex-basis: 100%;
        text-align: left;
        padding-top: 0.5rem;
    }
}

/* Mobile Devices */
@media only screen and (max-width: 600px) {
    .ksg-main-container {
        padding-top: 70px;
        padding-bottom: 50px;
    }

    .ksg-title-section {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .ksg-main-title {
        font-size: 1.5rem;
    }

    .ksg-subtitle {
        font-size: 0.9rem;
    }

    .ksg-filters-container {
        padding: 1.25rem 0.75rem;
        border-radius: 15px;
    }

    .ksg-filter-select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .ksg-refresh-btn,
    .ksg-clear-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .ksg-status-bar {
        padding: 1rem;
        border-radius: 12px;
    }

    .ksg-status-text {
        font-size: 0.9rem;
    }

    .ksg-status-text strong {
        font-size: 1.1rem;
    }

    .ksg-score-card {
        border-radius: 12px;
    }

    .ksg-team-score {
        font-size: 1.75rem;
        min-width: 50px;
    }

    .ksg-player-name {
        font-size: 0.95rem;
    }

    .ksg-sets-container {
        flex-wrap: wrap;
    }

    .ksg-no-matches {
        padding: 3rem 1.5rem;
    }

    .ksg-no-matches-icon {
        font-size: 4rem;
    }

    .ksg-no-matches-title {
        font-size: 1.5rem;
    }

    .ksg-no-matches-text {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media only screen and (max-width: 400px) {
    .ksg-main-title {
        font-size: 1.3rem;
    }

    .ksg-team-name {
        font-size: 1rem;
    }

    .ksg-team-score {
        font-size: 1.5rem;
    }

    .ksg-sport-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    .ksg-live-indicator {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Print Styles */
@media print {
    .ksg-filters-container,
    .ksg-refresh-btn,
    .ksg-clear-btn,
    .ksg-live-indicator {
        display: none;
    }

    .ksg-score-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e0e6ed;
    }
}

/* Wrestling & Boxing (Red vs Blue, Split Screen) - REDESIGNED */
.split-screen-layout {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.player-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.player-side.red {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.player-side.blue {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

/* Combat sports player names - 6rem (reduced to prevent overlap) */
.player-name {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1;
    max-width: 90%;
    color: #fff;
}

/* Combat sports team/club names - 1.5x bigger */
.player-club {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: center;
    max-width: 90%;
    color: #fff;
}

/* Combat sports scores - 20rem */
.player-score {
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.6);
    line-height: 1;
    color: #fff;
}

/* Centered timer overlay - PROMINENT (reduced to prevent overlap) */
.combat-timer-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    max-width: 40%;
}

.combat-timer {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    margin: 5px 0;
    line-height: 1;
}

.combat-round {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    opacity: 0.95;
}

.quarter-scores {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.quarter-box {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}

.quarter-label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 600;
}

.quarter-score {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 5px;
}

/* Racket Sports (Badminton, Tennis, Table Tennis) */
.racket-layout {
    flex-direction: column;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 20px;
    justify-content: center;
    border-radius: 10px;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 5px solid transparent;
}

.player-row.serving {
    border-left-color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.player-row.player1 {
    border-left-color: #e74c3c;
}

.player-row.player2 {
    border-left-color: #3498db;
}

.player-info {
    flex: 2;
}

.player-info .name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.player-info .country {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #fff;
}

.sets-display {
    flex: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.set-score {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
    color: #fff;
}

.set-score.won {
    background: #27ae60;
    font-weight: bold;
}

.current-score {
    font-size: 2rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    color: #fff;
}

.match-status {
    text-align: center;
    font-size: 1rem;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: #fff;
}

/* Team Sports (Football, Cricket, etc.) */
.team-layout {
    flex-direction: column;
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
    padding: 20px;
    justify-content: space-evenly;
    border-radius: 10px;
    color: #fff;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 5px 0;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
    margin-left: 15px;
}

.team-score-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    min-width: 70px;
    text-align: center;
}

.game-time {
    text-align: center;
    font-size: 1rem;
    margin: 10px 0;
    background: rgba(255, 215, 0, 0.15);
    padding: 10px;
    border-radius: 10px;
}

/* ========== BASKETBALL STYLES ========== */
.basketball-layout {
    flex-direction: column;
    padding: 40px;
    justify-content: space-evenly;
}

.basketball-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 10px 0;
}

/* ========== VOLLEYBALL STYLES - STADIUM LED DISPLAY ========== */
.volleyball-layout {
    flex-direction: row;
    background: #000000; /* Pure black for LED walls */
    padding: 40px;
    justify-content: center;
    align-items: center;
}

.volleyball-stadium-container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.volleyball-team-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.volleyball-team-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #00FF00; /* Bright green border for visibility */
    margin-bottom: 25px;
}

.volleyball-team-name {
    font-size: 5.5rem;
    font-weight: 900;
    color: #00FF00; /* Bright green - highly visible on LED */
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    line-height: 1.1;
}

.volleyball-center-section {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

/* Current Set - VERY LARGE for stadium visibility */
.volleyball-current-set-container {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.volleyball-current-set-label {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFF00; /* Bright yellow */
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
}

.volleyball-current-scores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.volleyball-current-score {
    font-size: 20rem; /* MASSIVE for long distance viewing */
    font-weight: 900;
    color: #FF0000; /* Bright red - most visible color */
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
    font-family: 'Arial Black', sans-serif;
    min-width: 280px;
    text-align: center;
}

.volleyball-home-current {
    color: #00FF00; /* Bright green for home */
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
}

.volleyball-away-current {
    color: #FF6600; /* Bright orange for away */
    text-shadow: 0 0 30px rgba(255, 102, 0, 0.9);
}

.volleyball-current-separator {
    font-size: 12rem;
    font-weight: 900;
    color: #FFFFFF; /* White separator */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Past Sets - Small but readable */
.volleyball-past-sets {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.volleyball-past-set {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.volleyball-past-label {
    font-size: 2.2rem;
    font-weight: 700;
    color: #AAAAAA;
    letter-spacing: 1px;
}

.volleyball-past-score {
    font-size: 3rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    min-width: 50px;
    text-align: center;
}

.volleyball-past-dash {
    font-size: 2.5rem;
    color: #888888;
    font-weight: bold;
}

/* Team Sports (Football, Cricket, etc.) */
.team-layout {
    flex-direction: column;
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
    padding: 40px;
    justify-content: space-evenly;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin: 15px 0;
}

.team-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

.team-name {
    font-size: 4rem;
    font-weight: bold;
    flex: 1;
    margin-left: 40px;
}

.team-score-display {
    font-size: 8rem;
    font-weight: bold;
    color: #FFD700;
    min-width: 200px;
    text-align: center;
}

.game-time {
    text-align: center;
    font-size: 3rem;
    margin-top: 20px;
    background: rgba(255, 215, 0, 0.15);
    padding: 20px;
    border-radius: 15px;
}

/* Hockey Horizontal Layout */
.hockey-horizontal-layout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a2342 0%, #1a4d7a 100%);
    padding: 25px 50px;
    gap: 20px;
    transition: all 0.3s ease;
}

.hockey-horizontal-layout.active {
    display: flex !important;
}

.hockey-header-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.hockey-timer-box {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 18px 55px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    border: 3px solid #fff;
}

.hockey-period-label {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.hockey-timer {
    font-size: 6rem;
    font-weight: 900;
    color: #000;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hockey-main-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hockey-team-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 35px 40px;
    border-radius: 25px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hockey-team-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

.hockey-team-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hockey-team-name {
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    transition: font-size 0.3s ease;
}

.hockey-total-score {
    font-size: 11rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    line-height: 1;
    transition: font-size 0.3s ease;
}

/* Larger sizes when no shootout is active */
.hockey-horizontal-layout:not(.has-shootout) .hockey-team-name {
    font-size: 4.5rem;
}

.hockey-horizontal-layout:not(.has-shootout) .hockey-total-score {
    font-size: 14rem;
}

.hockey-horizontal-layout:not(.has-shootout) .hockey-team-container {
    padding: 45px 50px;
}

.hockey-quarter-scores {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.hockey-quarter-box {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.hockey-quarter-box.active {
    background: rgba(255, 215, 0, 0.3);
    border: 3px solid #FFD700;
    transform: scale(1.05);
}

.hockey-quarter-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hockey-quarter-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
}

.hockey-vs-divider {
    font-size: 4rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 3px 3px 6px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: 20px;
    border: 3px solid rgba(255, 215, 0, 0.5);
}

.hockey-shootout-section {
    width: 100%;
    background: linear-gradient(135deg, #7c7413 0%, #ffd700 100%);
    padding: 15px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.hockey-shootout-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hockey-shootout-scores {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.shootout-separator {
    opacity: 0.7;
    font-size: 2.8rem;
}

/* Handball Horizontal Layout (similar to Hockey) */
/* ========== HANDBALL HORIZONTAL STADIUM LAYOUT ========== */
.handball-horizontal-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000; /* Pure black for stadium LED walls */
    padding: 30px 60px;
    gap: 30px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.handball-horizontal-layout.active {
    display: flex !important;
}

.handball-header-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.handball-timer-box {
    background: #1a1a1a;
    padding: 25px 70px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    border: 4px solid #FFD700;
}

.handball-period-label {
    font-size: 4rem;
    font-weight: 900;
    color: #FFFF00; /* Bright yellow */
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
}

.handball-timer {
    font-size: 9rem;
    font-weight: 900;
    color: #00FF00; /* Bright green */
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    text-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
}

.handball-timer.timer-paused {
    color: #FF0000; /* Bright red when paused */
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

.handball-main-section {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 60px;
}

.handball-team-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(26, 26, 26, 0.8);
    padding: 50px 60px;
    border-radius: 30px;
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.handball-team-container.home-team {
    border-color: #00FF00; /* Bright green for home */
}

.handball-team-container.away-team {
    border-color: #FF6600; /* Bright orange for away */
}

.handball-team-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    width: 100%;
    justify-content: center;
}

.handball-team-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.handball-team-name {
    font-size: 6rem;
    font-weight: 900;
    color: #00FF00; /* Bright green */
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.handball-team-container.away-team .handball-team-name {
    color: #FF6600; /* Bright orange for away team */
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
}

.handball-total-score {
    font-size: 18rem;
    font-weight: 900;
    color: #00FF00; /* Bright green */
    text-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
    margin: 25px 0;
    line-height: 1;
}

.handball-team-container.away-team .handball-total-score {
    color: #FF6600; /* Bright orange for away score */
    text-shadow: 0 0 40px rgba(255, 102, 0, 0.8);
}

.handball-vs-divider {
    font-size: 6rem;
    font-weight: 900;
    color: #FFFF00; /* Bright yellow */
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
    padding: 0 40px;
    letter-spacing: 6px;
}

.handball-stats-section {
    width: 100%;
    text-align: center;
    color: #00FF00;
    font-size: 2rem;
}