@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500;700&family=Barlow+Condensed:wght@700;800;900&display=swap');

/* =====================================================
   Sports Stream Pro — Frontend Styles
   ===================================================== */

/* ---- CSS Variables ---- */
.ssp-wrapper {
    --ssp-primary:    #00c87a;
    --ssp-primary-h:  #00a866;
    --ssp-accent:     #00c87a;
    --ssp-bg:         #f4f6f8;
    --ssp-card-bg:    #ffffff;
    --ssp-text:       #1a1a2e;
    --ssp-text-muted: #6b7280;
    --ssp-border:     #e5e7eb;
    --ssp-radius:     12px;
    --ssp-shadow:     0 4px 20px rgba(0,0,0,0.08);
    --ssp-shadow-h:   0 8px 30px rgba(0,0,0,0.14);
    --ssp-transition: all 0.2s ease;
    --ssp-live-color: #e84d4d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    box-sizing: border-box;
    width: 100%;
}

/* Dark Mode */
.ssp-wrapper.ssp-dark {
    --ssp-bg:         #0f0f1a;
    --ssp-card-bg:    #1a1a2e;
    --ssp-text:       #e2e8f0;
    --ssp-text-muted: #94a3b8;
    --ssp-border:     #2d3748;
    --ssp-shadow:     0 4px 20px rgba(0,0,0,0.4);
    --ssp-shadow-h:   0 8px 30px rgba(0,0,0,0.6);
}

.ssp-wrapper * {
    box-sizing: border-box;
}

/* ---- Alert ---- */
.ssp-alert {
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    color: var(--ssp-text-muted);
    padding: 20px 24px;
    text-align: center;
    font-size: 15px;
}
.ssp-alert-error {
    border-color: var(--ssp-live-color);
    color: var(--ssp-live-color);
    background: rgba(232,77,77,0.08);
}

/* ---- Sport Filters ---- */
.ssp-sport-filters {
    margin-bottom: 20px;
    overflow: hidden;
}
.ssp-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--ssp-border) transparent;
}
.ssp-filter-scroll::-webkit-scrollbar {
    height: 4px;
}
.ssp-filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.ssp-filter-scroll::-webkit-scrollbar-thumb {
    background: var(--ssp-border);
    border-radius: 2px;
}
.ssp-filter-btn {
    flex-shrink: 0;
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: 50px;
    color: var(--ssp-text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    transition: var(--ssp-transition);
    white-space: nowrap;
}
.ssp-filter-btn:hover {
    border-color: var(--ssp-primary);
    color: var(--ssp-primary);
}
.ssp-filter-btn.ssp-active {
    background: var(--ssp-primary);
    border-color: var(--ssp-primary);
    color: #fff;
    font-weight: 600;
}
.ssp-filter-divider {
    align-self: center;
    background: var(--ssp-border);
    display: inline-block;
    height: 20px;
    width: 1px;
    flex-shrink: 0;
}

/* ---- Toolbar ---- */
.ssp-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ssp-match-count {
    color: var(--ssp-text-muted);
    font-size: 13px;
}
.ssp-count-num {
    color: var(--ssp-text);
    font-size: 20px;
    font-weight: 700;
    margin-right: 4px;
}
.ssp-refresh-btn {
    align-items: center;
    background: transparent;
    border: 1px solid var(--ssp-border);
    border-radius: 6px;
    color: var(--ssp-text-muted);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    gap: 5px;
    padding: 6px 12px;
    transition: var(--ssp-transition);
}
.ssp-refresh-btn:hover {
    border-color: var(--ssp-primary);
    color: var(--ssp-primary);
}
.ssp-refresh-btn.ssp-spinning svg {
    animation: ssp-spin 0.7s linear infinite;
}

/* ---- Grid Layout ---- */
.ssp-matches-grid {
    display: grid;
    gap: 20px;
    position: relative;
}
.ssp-cols-1 { grid-template-columns: 1fr; }
.ssp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ssp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ssp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .ssp-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ssp-cols-3, .ssp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ssp-cols-2, .ssp-cols-3, .ssp-cols-4 { grid-template-columns: 1fr; }
}

/* ---- Match Card ---- */
.ssp-match-card {
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    box-shadow: var(--ssp-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--ssp-transition);
}
.ssp-match-card:hover {
    box-shadow: var(--ssp-shadow-h);
    transform: translateY(-3px);
}
.ssp-live-card {
    border-color: var(--ssp-live-color);
    box-shadow: 0 0 0 2px rgba(232,77,77,0.2), var(--ssp-shadow);
}

/* Card Poster */
.ssp-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.ssp-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ssp-match-card:hover .ssp-poster-img {
    transform: scale(1.04);
}
.ssp-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ssp-sport-icon {
    font-size: 48px;
    opacity: 0.4;
}
.ssp-live-badge {
    background: var(--ssp-live-color);
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    left: 10px;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    position: absolute;
    top: 10px;
    animation: ssp-pulse 1.5s infinite;
}
.ssp-category-badge {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    position: absolute;
    right: 10px;
    top: 10px;
}

/* Card Body */
.ssp-card-body {
    flex: 1;
    padding: 16px;
}
.ssp-teams {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}
.ssp-team {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    text-align: center;
}
.ssp-home-team { align-items: flex-start; }
.ssp-away-team { align-items: flex-end; }
.ssp-team-badge {
    border-radius: 50%;
    height: 44px;
    object-fit: contain;
    width: 44px;
}
.ssp-badge-placeholder {
    align-items: center;
    background: linear-gradient(135deg, var(--ssp-primary), var(--ssp-accent));
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.ssp-team-name {
    color: var(--ssp-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ssp-vs-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ssp-vs-text {
    color: var(--ssp-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.ssp-match-time {
    background: var(--ssp-primary);
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
}
.ssp-match-title {
    color: var(--ssp-text);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    text-align: center;
}
.ssp-match-meta {
    margin-top: 10px;
    text-align: center;
}
.ssp-meta-date {
    color: var(--ssp-text-muted);
    font-size: 11px;
}

/* Card Footer */
.ssp-card-footer {
    align-items: center;
    border-top: 1px solid var(--ssp-border);
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}
.ssp-watch-btn {
    align-items: center;
    background: var(--ssp-primary);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    padding: 8px 16px;
    transition: var(--ssp-transition);
}
.ssp-watch-btn:hover {
    background: var(--ssp-primary-h);
    transform: scale(1.03);
}
.ssp-no-stream-label {
    color: var(--ssp-text-muted);
    font-size: 12px;
    font-style: italic;
}
.ssp-sources-count {
    color: var(--ssp-text-muted);
    font-size: 11px;
}

/* ---- No Matches State ---- */
.ssp-no-matches {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--ssp-text-muted);
}
.ssp-empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

/* ---- Loading ---- */
.ssp-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: 60px;
    text-align: center;
    color: var(--ssp-text-muted);
}
.ssp-spinner {
    animation: ssp-spin 0.8s linear infinite;
    border: 3px solid var(--ssp-border);
    border-top-color: var(--ssp-primary);
    border-radius: 50%;
    height: 36px;
    width: 36px;
}

/* ---- Modal ---- */
.ssp-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 999999;
}
.ssp-modal-overlay {
    background: rgba(0,0,0,0.85);
    inset: 0;
    position: absolute;
    cursor: pointer;
}
.ssp-modal-content {
    background: var(--ssp-card-bg);
    border-radius: var(--ssp-radius);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    max-height: 92vh;
    max-width: 900px;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
    width: 95%;
    z-index: 1;
}
.ssp-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--ssp-border);
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}
.ssp-modal-title {
    color: var(--ssp-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.ssp-modal-close {
    background: transparent;
    border: none;
    color: var(--ssp-text-muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--ssp-transition);
}
.ssp-modal-close:hover {
    background: var(--ssp-border);
    color: var(--ssp-text);
}
.ssp-modal-body {
    padding: 20px;
}

/* Player Container */
.ssp-player-container {
    background: #000;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}
.ssp-player-placeholder {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
}
.ssp-player-iframe {
    border: none;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

/* Stream Source Buttons */
.ssp-stream-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ssp-source-btn {
    align-items: center;
    background: var(--ssp-bg, #f4f6f8);
    border: 2px solid var(--ssp-border);
    border-radius: 8px;
    color: var(--ssp-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
    min-width: 80px;
    padding: 10px 16px;
    transition: var(--ssp-transition);
    text-align: center;
}
.ssp-source-btn:hover {
    border-color: var(--ssp-primary);
    color: var(--ssp-primary);
}
.ssp-source-btn.ssp-active {
    background: var(--ssp-primary);
    border-color: var(--ssp-primary);
    color: #fff;
}
.ssp-source-lang {
    color: inherit;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* ---- Standalone Player ---- */
.ssp-standalone-player {
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    box-shadow: var(--ssp-shadow);
    overflow: hidden;
}
.ssp-player-title-bar {
    border-bottom: 1px solid var(--ssp-border);
    padding: 12px 16px;
}
.ssp-player-title {
    color: var(--ssp-text);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.ssp-player-wrap {
    position: relative;
    width: 100%;
}
.ssp-player-wrap .ssp-player-iframe {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
}
.ssp-stream-selector {
    align-items: center;
    border-top: 1px solid var(--ssp-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
}
.ssp-selector-label {
    color: var(--ssp-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ssp-stream-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ssp-stream-btn {
    align-items: center;
    background: transparent;
    border: 1px solid var(--ssp-border);
    border-radius: 6px;
    color: var(--ssp-text-muted);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    gap: 5px;
    padding: 5px 12px;
    transition: var(--ssp-transition);
}
.ssp-stream-btn:hover { border-color: var(--ssp-primary); color: var(--ssp-primary); }
.ssp-stream-btn.ssp-active { background: var(--ssp-primary); border-color: var(--ssp-primary); color: #fff; }
.ssp-hd-badge {
    background: var(--ssp-accent);
    border-radius: 3px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
}
.ssp-stream-num { opacity: 0.7; font-size: 11px; }
.ssp-stream-info {
    align-items: center;
    border-top: 1px solid var(--ssp-border);
    display: flex;
    gap: 8px;
    padding: 10px 16px;
}
.ssp-lang { color: var(--ssp-text-muted); font-size: 12px; }

/* ---- Schedule ---- */
.ssp-schedule-header {
    margin-bottom: 16px;
}
.ssp-schedule-title {
    color: var(--ssp-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.ssp-schedule-group {
    margin-bottom: 24px;
}
.ssp-schedule-group-title {
    border-bottom: 2px solid var(--ssp-primary);
    color: var(--ssp-text);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
}
.ssp-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ssp-schedule-item {
    align-items: center;
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    transition: var(--ssp-transition);
}
.ssp-schedule-item.ssp-live {
    border-color: var(--ssp-live-color);
    background: rgba(232,77,77,0.05);
}
.ssp-schedule-item:hover { box-shadow: var(--ssp-shadow); }
.ssp-schedule-time {
    align-items: center;
    color: var(--ssp-text);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 5px;
    min-width: 56px;
}
.ssp-live-dot {
    animation: ssp-pulse 1s infinite;
    background: var(--ssp-live-color);
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    width: 8px;
}
.ssp-live-text {
    color: var(--ssp-live-color);
    font-size: 11px;
    font-weight: 800;
}
.ssp-schedule-teams {
    align-items: center;
    color: var(--ssp-text);
    display: flex;
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    overflow: hidden;
}
.ssp-team-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ssp-vs-tiny { color: var(--ssp-text-muted); flex-shrink: 0; font-size: 11px; }
.ssp-schedule-actions { flex-shrink: 0; }
.ssp-watch-sm {
    background: var(--ssp-primary);
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    transition: var(--ssp-transition);
}
.ssp-watch-sm:hover { background: var(--ssp-primary-h); }

/* ---- Animations ---- */
@keyframes ssp-spin {
    to { transform: rotate(360deg); }
}
@keyframes ssp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes ssp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ssp-match-card {
    animation: ssp-fade-in 0.3s ease both;
}

/* =====================================================
   Single Match SEO Landing Page Styles
   ===================================================== */
.ssp-single-match-page {
    padding: 30px 16px;
    background: var(--ssp-bg);
    min-height: 80vh;
}
.ssp-match-container {
    max-width: 1140px;
    margin: 0 auto;
}
.ssp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ssp-text-muted);
    margin-bottom: 20px;
}
.ssp-breadcrumbs a {
    color: var(--ssp-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.ssp-breadcrumbs a:hover {
    color: var(--ssp-primary);
}
.ssp-breadcrumbs .ssp-sep {
    opacity: 0.5;
}
.ssp-breadcrumbs .ssp-current {
    color: var(--ssp-text);
    font-weight: 600;
}

/* Match Hero */
.ssp-match-hero {
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--ssp-shadow);
}
.ssp-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.ssp-sport-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--ssp-border);
    color: var(--ssp-text);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.ssp-live-badge-hero {
    background: var(--ssp-live-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: ssp-pulse 1.5s infinite;
}
.ssp-upcoming-badge {
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}
.ssp-ended-badge {
    background: #6b7280;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}
.ssp-match-h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--ssp-text);
    margin: 0 0 20px 0;
    line-height: 1.3;
}
.ssp-h1-sub {
    color: var(--ssp-primary);
    margin-left: 6px;
}

/* Teams Showcase */
.ssp-teams-showcase {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
    gap: 16px;
}
.ssp-showcase-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}
.ssp-showcase-badge {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.ssp-showcase-badge-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ssp-primary), var(--ssp-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}
.ssp-showcase-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ssp-text);
    margin: 0;
}
.ssp-showcase-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ssp-center-vs {
    font-size: 24px;
    font-weight: 900;
    color: var(--ssp-primary);
    letter-spacing: 2px;
}
.ssp-countdown-timer {
    font-size: 13px;
    color: var(--ssp-text-muted);
}
.ssp-kickoff-time {
    font-weight: 700;
    color: var(--ssp-text);
}

@media (max-width: 600px) {
    .ssp-teams-showcase {
        flex-direction: column;
        padding: 16px 12px;
        gap: 12px;
    }
    .ssp-showcase-badge {
        width: 48px;
        height: 48px;
    }
    .ssp-showcase-name {
        font-size: 14px;
    }
    .ssp-center-vs {
        font-size: 18px;
    }
}

/* Video Player Section */
.ssp-player-section {
    background: #000;
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.ssp-player-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
    gap: 10px;
}
.ssp-player-channel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.ssp-player-channel-title svg {
    color: var(--ssp-primary);
}
.ssp-server-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ssp-server-btn {
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ssp-server-btn:hover {
    background: #333;
    color: #fff;
}
.ssp-server-btn.active {
    background: var(--ssp-primary);
    border-color: var(--ssp-primary);
    color: #fff;
}
.ssp-screen-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #050508;
}
.ssp-screen-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.ssp-no-stream-box {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    text-align: center;
}
.ssp-player-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #111;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #888;
}
.ssp-reload-stream-btn {
    background: transparent;
    color: #aaa;
    border: 1px solid #333;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}
.ssp-reload-stream-btn:hover {
    color: #fff;
    border-color: #555;
}

/* Content Grid & SEO Articles */
.ssp-match-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
@media (max-width: 860px) {
    .ssp-match-content-grid {
        grid-template-columns: 1fr;
    }
}
.ssp-seo-card {
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--ssp-shadow);
}
.ssp-card-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--ssp-text);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ssp-primary);
}
.ssp-entry-content {
    color: var(--ssp-text);
    font-size: 14px;
    line-height: 1.7;
}
.ssp-entry-content h3 {
    margin: 20px 0 10px;
    font-size: 16px;
    color: var(--ssp-text);
}
.ssp-entry-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

/* FAQ Accordion */
.ssp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ssp-faq-item {
    background: rgba(0,0,0,0.1);
    border: 1px solid var(--ssp-border);
    border-radius: 8px;
    overflow: hidden;
}
.ssp-faq-question {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ssp-text);
    cursor: pointer;
    user-select: none;
}
.ssp-faq-answer {
    padding: 0 16px 14px 16px;
    font-size: 13px;
    color: var(--ssp-text-muted);
    line-height: 1.6;
}

/* Sidebar Cards */
.ssp-side-card {
    background: var(--ssp-card-bg);
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--ssp-shadow);
}
.ssp-side-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ssp-text);
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ssp-border);
}
.ssp-info-table {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ssp-info-table li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.ssp-info-table .ssp-lbl {
    color: var(--ssp-text-muted);
}
.ssp-info-table .ssp-val {
    font-weight: 600;
    color: var(--ssp-text);
}
.ssp-info-table .status-live {
    color: var(--ssp-live-color);
}
.ssp-info-table .status-upcoming {
    color: #10b981;
}

.ssp-related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ssp-related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0,0,0,0.08);
    border-radius: 6px;
    text-decoration: none;
    color: var(--ssp-text);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.ssp-related-item:hover {
    background: var(--ssp-primary);
    color: #fff;
}
.ssp-rel-live {
    background: var(--ssp-live-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

/* =====================================================
   Sportsurge.pro Design System (Exact Theme & Schedule)
   Protected against any WordPress theme overrides
   ===================================================== */

/* Root Containers */
.ssp-sportsurge-container,
.ssp-sportsurge-homepage,
.ssp-standalone-player-page,
div.ssp-sportsurge-container,
div.ssp-sportsurge-homepage,
div.ssp-standalone-player-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background: #111111 !important;
    color: #ffffff !important;
    padding: 24px 20px 48px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1240px !important;
    box-sizing: border-box !important;
    display: block !important;
    line-height: 1.5 !important;
    border-radius: 10px !important;
}

/* Prevent double padding when schedule is inside homepage */
.ssp-sportsurge-homepage .ssp-sportsurge-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.ssp-sportsurge-container *,
.ssp-sportsurge-homepage *,
.ssp-standalone-player-page * {
    box-sizing: border-box !important;
}

/* SVG Vector Icons System */
.ssp-svg-ico {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

/* Headings Protection against Theme CSS */
.ssp-sportsurge-container h1, .ssp-sportsurge-homepage h1, .ssp-standalone-player-page h1,
.ssp-sportsurge-container h2, .ssp-sportsurge-homepage h2, .ssp-standalone-player-page h2,
.ssp-sportsurge-container h3, .ssp-sportsurge-homepage h3, .ssp-standalone-player-page h3,
.ssp-sportsurge-container h4, .ssp-sportsurge-homepage h4, .ssp-standalone-player-page h4 {
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    text-shadow: none !important;
    margin-top: 0 !important;
    letter-spacing: normal !important;
}

/* ====== SPORTSURGE HERO (Homepage) ====== */
.hero,
div.hero {
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: 55px 16px 45px !important;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 200, 122, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 55% at 85% 10%, rgba(255, 71, 71, 0.22), transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 120%, rgba(0, 200, 122, 0.16), transparent 60%),
        linear-gradient(180deg, #0d0d0f 0%, #151518 55%, #111111 100%) !important;
    border-bottom: 1px solid rgba(0, 200, 122, 0.45) !important;
}
.hero-inner {
    position: relative !important;
    z-index: 1 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}
.hero h1 {
    font-size: clamp(24px, 4.5vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
    color: #ffffff !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
}
.hero-intro {
    max-width: 680px !important;
    margin: 0 auto 24px !important;
    font-size: clamp(14px, 2vw, 17px) !important;
    line-height: 1.6 !important;
    color: #c8c8c8 !important;
}
.hero-cta,
a.hero-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 10px 26px !important;
    background: #00c87a !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 15px rgba(0, 200, 122, 0.45) !important;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
.hero-cta:hover,
a.hero-cta:hover {
    background: #00e58c !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0, 200, 122, 0.65) !important;
}

/* ====== SPORTS CATEGORIES DIRECTORY (Homepage) ====== */
/* ====== SPORTS CATEGORIES DIRECTORY (Homepage) ====== */
.categories-container {
    width: 95% !important;
    max-width: 1200px !important;
    margin: 1.5rem auto !important;
}
.categories-container section {
    margin-bottom: 2rem !important;
}
.categories-container section h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: #00c87a !important;
    border-left: 4px solid #00c87a !important;
    padding-left: 10px !important;
}
.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 0.85rem !important;
}
.categories-grid a,
.categories-grid .ssp-filter-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0.8rem 1rem !important;
    background: #1c1c1c !important;
    border: 1px solid #282828 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
}
.categories-grid a svg,
.categories-grid .ssp-filter-tag svg {
    color: #00c87a !important;
    transition: color 0.2s ease !important;
}
.categories-grid a:hover,
.categories-grid .ssp-filter-tag:hover {
    background: #00c87a !important;
    color: #111111 !important;
    border-color: #00c87a !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}
.categories-grid a:hover svg,
.categories-grid .ssp-filter-tag:hover svg {
    color: #111111 !important;
}

/* Schedule Section Heading Container */
.schedule-btn-container,
#schedule-section {
    max-width: 1200px !important;
    width: 95% !important;
    margin: 1.5rem auto 1rem !important;
    box-sizing: border-box !important;
}

/* ====== SPORTSURGE FULL SCHEDULE (Fullschedule/) ====== */

/* Horizontal League Scroll Bar */
.ssp-league-nav {
    background: #151518 !important;
    border-bottom: 1px solid #27272a !important;
    padding: 10px 16px !important;
    margin-bottom: 20px !important;
}
.ssp-league-scroll {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #00c87a transparent !important;
}
.ssp-league-scroll::-webkit-scrollbar {
    height: 4px !important;
}
.ssp-league-scroll::-webkit-scrollbar-thumb {
    background: #00c87a !important;
    border-radius: 2px !important;
}
.ssp-league-pill,
button.ssp-league-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #202024 !important;
    color: #e4e4e7 !important;
    border: 1px solid #333333 !important;
    padding: 7px 16px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    line-height: normal !important;
    outline: none !important;
}
.ssp-league-pill svg,
button.ssp-league-pill svg {
    color: #00c87a !important;
    transition: color 0.2s ease !important;
}
.ssp-league-pill:hover,
.ssp-league-pill.active,
button.ssp-league-pill:hover,
button.ssp-league-pill.active {
    background: #00c87a !important;
    color: #ffffff !important;
    border-color: #00c87a !important;
    box-shadow: 0 0 10px rgba(0,200,122,0.5) !important;
}
.ssp-league-pill:hover svg,
.ssp-league-pill.active svg,
button.ssp-league-pill:hover svg,
button.ssp-league-pill.active svg {
    color: #ffffff !important;
}

/* Schedule Toolbar (Filter Pills + Search) */
.ssp-schedule-toolbar {
    max-width: 1200px !important;
    width: 95% !important;
    margin: 0 auto 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}
.filter-buttons {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
.filter-btn,
button.filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #222222 !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    border: 1px solid #00c87a !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: 0.25s ease !important;
    line-height: normal !important;
    outline: none !important;
}
.filter-btn:hover,
button.filter-btn:hover {
    background: #333333 !important;
    border-color: #00e58c !important;
}
.filter-btn.active,
button.filter-btn.active {
    background: #00c87a !important;
    border-color: #00c87a !important;
    box-shadow: 0 0 12px rgba(0, 200, 122, 0.8) !important;
    color: #ffffff !important;
}
.filter-btn.live,
button.filter-btn.live {
    background: #e84d4d !important;
    border-color: #e84d4d !important;
    color: #ffffff !important;
    animation: ssp-pulseLive 1.5s infinite !important;
}
.filter-btn.live.active,
button.filter-btn.live.active {
    box-shadow: 0 0 14px rgba(232, 77, 77, 0.8) !important;
}
@keyframes ssp-pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}
.ssp-badge-count {
    background: rgba(0,0,0,0.4) !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    margin-left: 4px !important;
    color: #ffffff !important;
}
.ssp-search-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}
.ssp-search-wrapper .ssp-search-icon {
    position: absolute !important;
    left: 14px !important;
    color: #a1a1aa !important;
    pointer-events: none !important;
}
.ssp-search-wrapper input {
    background: #1a1a1e !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 20px !important;
    padding: 8px 18px 8px 38px !important;
    font-size: 13px !important;
    outline: none !important;
    width: 240px !important;
    transition: border-color 0.2s !important;
    line-height: normal !important;
}
.ssp-search-wrapper input:focus {
    border-color: #00c87a !important;
    box-shadow: 0 0 8px rgba(0, 200, 122, 0.4) !important;
}

/* ====== SPORTSURGE MATCHES TABLE (Theme-Proof) ====== */
.ssp-sportsurge-container .table-container,
.ssp-sportsurge-homepage .table-container,
.table-container {
    width: 95% !important;
    max-width: 1200px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: 1px solid #222222 !important;
    background: #111111 !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.ssp-sportsurge-container table#matches-table,
.ssp-sportsurge-homepage table#matches-table,
table#matches-table,
#matches-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #111111 !important;
    box-shadow: none !important;
    table-layout: fixed !important;
    border: none !important;
    margin: 0 !important;
    animation: ssp-fadeIn 0.5s ease-in-out forwards !important;
}
@keyframes ssp-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ssp-sportsurge-container table#matches-table thead,
.ssp-sportsurge-homepage table#matches-table thead,
#matches-table thead {
    background: #000000 !important;
    border: none !important;
}
.ssp-sportsurge-container table#matches-table th,
.ssp-sportsurge-homepage table#matches-table th,
#matches-table th {
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 12px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 2px solid #00c87a !important;
    line-height: 1.3 !important;
}
.ssp-sportsurge-container table#matches-table td,
.ssp-sportsurge-homepage table#matches-table td,
#matches-table td {
    padding: 13px 12px !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 1px solid #1e1e1e !important;
    font-size: 13px !important;
    vertical-align: middle !important;
    background: transparent !important;
    color: #e4e4e7 !important;
    line-height: 1.4 !important;
}
.ssp-sportsurge-container table#matches-table tbody tr,
.ssp-sportsurge-homepage table#matches-table tbody tr,
#matches-table tbody tr {
    background: #111111 !important;
    border: none !important;
    transition: background 0.15s ease !important;
}
.ssp-sportsurge-container table#matches-table tbody tr:nth-child(even),
.ssp-sportsurge-homepage table#matches-table tbody tr:nth-child(even),
#matches-table tbody tr:nth-child(even) {
    background: #18181c !important;
}
.ssp-sportsurge-container table#matches-table tbody tr:hover,
.ssp-sportsurge-homepage table#matches-table tbody tr:hover,
#matches-table tbody tr:hover {
    background: #252528 !important;
}

/* Columns */
th.th-time, td.col-time   { width: 14% !important; }
th.th-sport, td.col-sport { width: 14% !important; }
th.th-tourn, td.col-tourn { width: 20% !important; }
th.th-match, td.col-match { width: 36% !important; }
th.th-watch, td.col-watch { width: 16% !important; }

.col-time .ssp-date-time-box {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
}
.col-time .date-txt {
    color: #00c87a !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    margin-bottom: 2px !important;
}
.col-time .time-txt {
    color: #e4e4e7 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.badge.live-badge-anim {
    background: #e84d4d !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    animation: ssp-pulseLive 1.2s infinite !important;
}
.badge.ended-badge {
    background: #52525b !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

.col-sport .sport-name {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #00c87a !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.col-sport .sport-name svg {
    color: #00c87a !important;
}

.col-tourn .tourn-txt {
    color: #a1a1aa !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Matchup Box with local team badges */
.matchup-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
}
.team-home {
    justify-content: flex-end !important;
    text-align: right !important;
}
.team-home .team-ico {
    order: 2 !important;
    margin-left: 6px !important;
    margin-right: 0 !important;
}
.team-home .team-name {
    order: 1 !important;
}
.team-away {
    justify-content: flex-start !important;
    text-align: left !important;
}
.team-away .team-ico {
    order: 1 !important;
    margin-right: 6px !important;
    margin-left: 0 !important;
}
.team-away .team-name {
    order: 2 !important;
}
.team-ico {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.team-ico-empty {
    width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    visibility: hidden !important;
}
.team-name {
    color: #ffffff !important;
    font-size: 13px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 140px !important;
}
.vs-divider {
    color: #00c87a !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    padding: 0 4px !important;
}

/* Hide mobile sport tag on desktop */
.ssp-mobile-sport-tag {
    display: none !important;
}

/* Desktop: hide the mobile-only card cell */
td.ssp-mobile-card-cell {
    display: none !important;
}

/* Desktop: show ssp-desktop-only cells normally */
td.ssp-desktop-only {
    display: table-cell !important;
}

/* Single Title Events Desktop */
.matchup-box.single-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.matchup-box.single-title .single-event-sub {
    display: none !important;
}
.matchup-box.single-title .team-home .team-name {
    max-width: 100% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Sportsurge Orange Watch Button */
.ssp-sportsurge-container a.watch-btn,
.ssp-sportsurge-homepage a.watch-btn,
a.watch-btn,
.watch-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #00c87a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 7px 16px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 200, 122, 0.4) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}
.watch-btn .btn-text,
.watch-btn .btn-text-short {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.watch-btn .btn-icon {
    display: inline-block !important;
    font-size: 11px !important;
    line-height: 1 !important;
}
.ssp-mobile-sport-tag {
    display: none !important;
}
.ssp-sportsurge-container a.watch-btn:hover,
.ssp-sportsurge-homepage a.watch-btn:hover,
a.watch-btn:hover,
.watch-btn:hover {
    background: #00e58c !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(0, 200, 122, 0.7) !important;
    transform: scale(1.04) !important;
}
.countdown {
    color: #ffcc00 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Disclaimer Box */
.disclaimer-box {
    background: #141416 !important;
    color: #c4c4c8 !important;
    padding: 16px 22px !important;
    margin: 20px auto !important;
    border: 1px solid #2a2a30 !important;
    border-left: 4px solid #00c87a !important;
    border-radius: 8px !important;
    max-width: 1200px !important;
    width: 95% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}
.disclaimer-box h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #00c87a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.disclaimer-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SYSTEM
   Optimized for Phones, Tablets & Touch Devices
   ===================================================== */

/* Tablet & Medium Screens (<= 900px) */
@media (max-width: 900px) {
    .ssp-sportsurge-container .table-container,
    .ssp-sportsurge-homepage .table-container,
    .table-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 1rem 0 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
    }

    /* Hide Tournament Column on Tablets to give room */
    th.th-tourn, td.col-tourn,
    #matches-table th:nth-child(3) {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
    }
    th.th-time, td.col-time   { width: 16% !important; }
    th.th-sport, td.col-sport { width: 18% !important; }
    th.th-match, td.col-match { width: 46% !important; }
    th.th-watch, td.col-watch { width: 20% !important; }

    .team-name {
        max-width: 110px !important;
    }
}

/* Smartphone & Compact Screens (<= 768px) */
@media (max-width: 768px) {
    /* Prevent page horizontal scroll entirely */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .ssp-sportsurge-container,
    .ssp-sportsurge-homepage {
        max-width: 100% !important;
        width: 100% !important;
        padding: 16px 12px 30px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    .ssp-sportsurge-homepage .ssp-sportsurge-container {
        padding: 0 !important;
    }

    .categories-container,
    .table-container,
    .ssp-schedule-toolbar {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Hero Banner Mobile */
    .hero, div.hero {
        padding: 28px 14px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .hero h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }
    .hero-intro {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    .hero-cta, a.hero-cta {
        width: 100% !important;
        max-width: 260px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    /* League Navigation Bar Mobile */
    .ssp-league-nav {
        padding: 8px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .ssp-league-scroll {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding: 2px 0 4px 0 !important;
        box-sizing: border-box !important;
    }
    .ssp-league-scroll::-webkit-scrollbar {
        display: none !important;
    }
    .ssp-league-pill, button.ssp-league-pill {
        padding: 5px 12px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Schedule Toolbar Mobile */
    .ssp-schedule-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 8px !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .filter-buttons {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding: 2px 0 4px 0 !important;
        box-sizing: border-box !important;
    }
    .filter-buttons::-webkit-scrollbar {
        display: none !important;
    }
    .filter-btn, button.filter-btn {
        padding: 6px 11px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        border-radius: 16px !important;
        white-space: nowrap !important;
    }
    .ssp-badge-count {
        font-size: 10px !important;
        padding: 1px 5px !important;
    }
    .ssp-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ssp-search-wrapper input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 13px !important;
        padding: 9px 14px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    /* =====================================================
       MOBILE 2-ROW CARD DESIGN TRANSFORMATION
       ===================================================== */
    .ssp-sportsurge-container .table-container,
    .ssp-sportsurge-homepage .table-container,
    .table-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 8px !important;
    }

    table#matches-table,
    #matches-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    #matches-table thead {
        display: none !important;
    }

    #matches-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* ============================================================
       DESKTOP COLUMNS: hidden on mobile, visible on desktop via
       the .ssp-desktop-only class. Mobile uses ssp-mobile-card-cell.
       ============================================================ */

    /* Hide desktop-only columns on mobile */
    td.ssp-desktop-only,
    th.ssp-desktop-only {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    /* Also hide old-style col-* if present without ssp-desktop-only (safety) */
    td.col-time, td.col-sport, td.col-tourn, td.col-match, td.col-watch {
        display: none !important;
    }

    /* =====================================================
       MOBILE 2-ROW CARD: ssp-mobile-card-cell
       ===================================================== */

    /* Each row (tr) becomes a simple block — the card is entirely
       inside the single .ssp-mobile-card-cell <td>               */
    #matches-table tbody tr.ssp-row {
        display: block !important;
        background: #18181c !important;
        border: 1px solid #282834 !important;
        border-left: 4px solid #00c87a !important;
        border-radius: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        transition: border-color 0.2s ease !important;
    }

    #matches-table tbody tr.ssp-row:hover {
        background: #202026 !important;
        border-color: #00c87a !important;
    }

    #matches-table tbody tr.ssp-row.status-live {
        border-left-color: #e84d4d !important;
        background: #191418 !important;
        box-shadow: 0 3px 12px rgba(232,77,77,0.2) !important;
    }

    /* Hidden / filtered rows */
    #matches-table tbody tr.ssp-row.ssp-hidden,
    #matches-table tbody tr.ssp-row[style*="display: none"],
    #matches-table tbody tr.ssp-row[style*="display:none"] {
        display: none !important;
    }

    /* THE FULL-WIDTH CARD CELL */
    td.ssp-mobile-card-cell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        border: none !important;
        background: transparent !important;
    }

    /* Each row inside the card: flex row, space-between */
    .ssp-card-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 8px !important;
        min-height: 28px !important;
    }

    .ssp-card-row-top {
        margin-bottom: 6px !important;
    }

    /* LEFT: team (badge + name) */
    .ssp-card-team {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 7px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .ssp-card-team .team-ico {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
        display: block !important;
    }

    .ssp-card-team .team-ico-empty {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
        display: block !important;
        visibility: hidden !important;
    }

    .ssp-card-team .team-name {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.3 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ssp-card-team .single-sub-txt {
        font-size: 11px !important;
        color: #94a3b8 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        min-width: 0 !important;
    }

    /* RIGHT TOP: sport tag + live/time badge */
    .ssp-card-meta {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .ssp-card-meta .ssp-mobile-sport-tag {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #00c87a !important;
        background: rgba(0,200,122,0.12) !important;
        border: 1px solid rgba(0,200,122,0.3) !important;
        padding: 2px 7px !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        line-height: normal !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .ssp-card-meta .ssp-mobile-datetime {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        background: #23232c !important;
        padding: 3px 8px !important;
        border-radius: 4px !important;
        border: 1px solid #33333e !important;
        line-height: normal !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .ssp-card-meta .date-txt {
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #00c87a !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
    }

    .ssp-card-meta .time-txt {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        line-height: normal !important;
        white-space: nowrap !important;
    }

    .ssp-card-meta .badge.live-badge-anim {
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 3px 7px !important;
        border-radius: 4px !important;
        letter-spacing: 0.5px !important;
        display: inline-block !important;
        line-height: normal !important;
        white-space: nowrap !important;
    }

    /* RIGHT BOTTOM: watch button */
    .ssp-card-action {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .ssp-card-action .watch-btn,
    .ssp-card-action a.watch-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 6px 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 5px !important;
        min-height: 28px !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(0,200,122,0.45) !important;
        box-sizing: border-box !important;
        line-height: normal !important;
    }

    /* Ensure text label inside mobile card's Watch button ALWAYS displays */
    .ssp-card-action .watch-btn .btn-text,
    .ssp-card-action .watch-btn .btn-text-short,
    .ssp-card-action a.watch-btn .btn-text,
    .ssp-card-action a.watch-btn .btn-text-short {
        display: inline !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        line-height: 1 !important;
    }

    .ssp-card-action .watch-btn .btn-icon,
    .ssp-card-action a.watch-btn .btn-icon {
        display: inline-block !important;
        font-size: 11px !important;
        line-height: 1 !important;
    }

    .ssp-card-action .countdown {
        font-size: 11px !important;
        color: #00c87a !important;
        white-space: nowrap !important;
    }

    /* Special Events Grid Mobile */
    .ssp-special-events-wrapper {
        margin-top: 24px !important;
        margin-bottom: 20px !important;
        padding: 0 8px !important;
    }
    .ssp-special-events-container {
        padding: 14px 10px !important;
        border-radius: 8px !important;
    }
    .ssp-events-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    .ssp-events-heading {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }
    .ssp-events-subheading {
        font-size: 12px !important;
    }
    .ssp-events-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .ssp-event-card {
        padding: 12px !important;
    }
    .ssp-event-poster-wrap {
        height: 130px !important;
        margin-bottom: 10px !important;
    }
    .ssp-event-title {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
    .ssp-event-watch-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }

    /* Categories Directory Section Mobile */
    .categories-container {
        width: 100% !important;
        padding: 0 8px !important;
        margin: 1.5rem auto !important;
    }
    .categories-container section h2 {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .categories-grid a, .categories-grid .ssp-filter-tag {
        padding: 9px 8px !important;
        font-size: 12px !important;
    }

    /* Disclaimer Box Mobile */
    .disclaimer-box {
        width: 100% !important;
        margin: 12px 0 !important;
        padding: 12px 14px !important;
        border-radius: 4px !important;
    }
    .disclaimer-box h3 {
        font-size: 13px !important;
    }
    .disclaimer-box p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* Matches Grid Shortcode ([sports_matches]) Mobile */
    .ssp-matches-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .ssp-match-card {
        border-radius: 8px !important;
    }
    .ssp-card-poster {
        height: 140px !important;
    }

    /* Standalone Player Page Mobile (/watch/{slug}/) */
    .ssp-standalone-player-page {
        padding: 10px 6px 30px !important;
    }
    .ssp-broadcast-header {
        padding: 14px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }
    .ssp-bcast-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    .ssp-bcast-teams-bar {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px !important;
        border-radius: 6px !important;
    }
    .ssp-bcast-teams-bar .team-col {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .ssp-bcast-teams-bar .team-badge-lg {
        width: 32px !important;
        height: 32px !important;
    }
    .ssp-bcast-teams-bar .team-label {
        font-size: 14px !important;
    }
    .ssp-bcast-teams-bar .vs-col {
        font-size: 13px !important;
        margin: 2px 0 !important;
    }
    .ssp-server-bar {
        padding: 8px 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .ssp-server-left {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .ssp-server-buttons {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
        gap: 6px !important;
    }
    .ssp-server-buttons::-webkit-scrollbar {
        display: none !important;
    }
    .ssp-stream-server-btn {
        flex-shrink: 0 !important;
        padding: 7px 12px !important;
        font-size: 12px !important;
        min-height: 38px !important;
    }
    .ssp-server-tools {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }
    .ssp-tool-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 7px 4px !important;
        font-size: 11px !important;
        min-height: 36px !important;
    }
    .ssp-player-viewport {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 200px !important;
    }
    .ssp-player-info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .ssp-info-box {
        padding: 14px !important;
    }
}

/* Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
    th.th-time, td.col-time   { width: 24% !important; }
    th.th-match, td.col-match { width: 50% !important; }
    th.th-watch, td.col-watch { width: 26% !important; }

    .team-ico {
        width: 16px !important;
        height: 16px !important;
    }
    .team-name {
        font-size: 11px !important;
    }
    .watch-btn, a.watch-btn {
        padding: 5px 6px !important;
        font-size: 10px !important;
    }
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   Standalone Player Page (Broadcast Room with Theme Header/Footer)
   ===================================================== */
.ssp-standalone-player-page {
    background: #0d0d10;
    color: #ffffff;
    min-height: 85vh;
    padding: 30px 16px 60px;
    position: relative;
    z-index: 10;
}
.ssp-player-shell {
    max-width: 1140px;
    margin: 0 auto;
}

/* Cinema Overlay */
.ssp-cinema-curtain {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    cursor: pointer;
}
.ssp-cinema-curtain.active {
    opacity: 1;
    visibility: visible;
}
.ssp-player-viewport.cinema-active {
    position: relative;
    z-index: 99999 !important;
    box-shadow: 0 0 50px rgba(0, 200, 122, 0.4);
}

/* Top Nav & Noindex Notice */
.ssp-player-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.ssp-player-breadcrumbs {
    font-size: 13px;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ssp-player-breadcrumbs a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s;
}
.ssp-player-breadcrumbs a:hover {
    color: #00c87a;
}
.ssp-player-breadcrumbs .sep {
    opacity: 0.5;
}
.ssp-player-breadcrumbs .current {
    color: #ffffff;
    font-weight: 600;
}
.ssp-noindex-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Broadcast Header */
.ssp-broadcast-header {
    background: #141418;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.ssp-bcast-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ssp-bcast-sport {
    background: #202026;
    border: 1px solid #333;
    color: #00c87a;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.ssp-bcast-live-badge {
    background: #e84d4d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    animation: ssp-pulseLive 1.3s infinite;
}
.ssp-bcast-time {
    color: #a1a1aa;
    font-size: 12px;
}
.ssp-bcast-title {
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
    color: #ffffff;
}
.ssp-bcast-title .vs-txt {
    color: #00c87a;
    margin: 0 6px;
}
.ssp-bcast-title .sub-txt {
    color: #a1a1aa;
    font-size: 18px;
    font-weight: 500;
    margin-left: 6px;
}

/* Teams Badges Bar */
.ssp-bcast-teams-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #0c0c0e;
    border: 1px solid #222;
    padding: 16px 24px;
    border-radius: 8px;
}
.team-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.team-home {
    justify-content: flex-end;
    text-align: right;
}
.team-away {
    justify-content: flex-start;
    text-align: left;
}
.team-badge-lg {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.team-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.vs-col {
    color: #00c87a;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Master Player Wrap */
.ssp-master-player-wrap {
    background: #000000;
    border: 1px solid #27272a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    margin-bottom: 24px;
}

/* Server Bar */
.ssp-server-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111114;
    border-bottom: 1px solid #222;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.ssp-server-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ssp-feed-label {
    color: #e4e4e7;
    font-size: 13px;
    font-weight: 700;
}
.ssp-server-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ssp-stream-server-btn {
    background: #1e1e24;
    color: #ffffff;
    border: 1px solid #33333e;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.ssp-stream-server-btn .hd-tag {
    background: #00c87a;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
}
.ssp-stream-server-btn:hover {
    background: #2a2a35;
    border-color: #00c87a;
}
.ssp-stream-server-btn.active {
    background: #00c87a;
    border-color: #00c87a;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 200, 122, 0.6);
}
.ssp-stream-server-btn.active .hd-tag {
    background: rgba(255,255,255,0.3);
}
.ssp-stream-server-btn .viewer-count {
    font-size: 9px;
    font-weight: 600;
    color: #a1a1aa;
    background: rgba(255,255,255,0.07);
    padding: 1px 5px;
    border-radius: 10px;
    white-space: nowrap;
}
.ssp-stream-server-btn.active .viewer-count {
    color: rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.2);
}
.ssp-server-tools {
    display: flex;
    gap: 8px;
}
.ssp-tool-btn {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid #2c2c34;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ssp-tool-btn:hover {
    color: #ffffff;
    border-color: #00c87a;
    background: #1c1c22;
}

/* Screen Viewport */
.ssp-player-viewport {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 widescreen */
    background: #050508;
    transition: box-shadow 0.3s ease;
}
.ssp-player-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.ssp-player-offline {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: #ffffff;
}
.ssp-player-offline h3 {
    margin: 12px 0 6px;
    font-size: 18px;
}
.ssp-player-offline p {
    color: #a1a1aa;
    font-size: 13px;
    max-width: 440px;
}

/* Player Status Bar */
.ssp-player-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111114;
    border-top: 1px solid #222;
    padding: 10px 16px;
    font-size: 12px;
    color: #888892;
    flex-wrap: wrap;
    gap: 10px;
}
.ssp-tip-text strong {
    color: #00c87a;
}
.ssp-ssl-secure {
    color: #10b981;
    font-weight: 600;
}

/* Information Grid */
.ssp-player-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .ssp-player-info-grid {
        grid-template-columns: 1fr;
    }
}
.ssp-info-box {
    background: #141418;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 20px;
}
.ssp-info-box h3 {
    font-size: 16px;
    color: #00c87a;
    margin: 0 0 12px;
    border-bottom: 2px solid #00c87a;
    padding-bottom: 8px;
}
.ssp-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #c4c4c8;
}
.ssp-meta-list strong {
    color: #ffffff;
}

/* ==========================================================================
   Special Events, Grand Prix & Tournaments Showcase
   ========================================================================== */
.ssp-special-events-wrapper {
    margin-top: 40px;
    margin-bottom: 30px;
}
.ssp-special-events-container {
    background: #141419;
    border: 1px solid #282830;
    border-radius: 12px;
    padding: 24px;
}
.ssp-events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid #23232b;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.ssp-events-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00c87a, #ff8800);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.ssp-events-heading {
    font-size: 22px;
    font-weight: 800;
    color: #f4f4f5;
    margin: 0 0 6px 0;
}
.ssp-events-subheading {
    font-size: 13px;
    color: #a1a1aa;
    margin: 0;
}
.ssp-events-count-pill {
    background: #1e1e26;
    border: 1px solid #333340;
    color: #e4e4e7;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}
.ssp-events-count-pill .count-num {
    color: #00c87a;
    font-weight: 900;
}
.ssp-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.ssp-event-card {
    background: #1a1a22;
    border: 1px solid #2b2b36;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}
.ssp-event-card:hover {
    border-color: #00c87a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.ssp-event-card.status-live {
    border-color: #e84d4d;
    box-shadow: 0 0 12px rgba(232, 77, 77, 0.25);
}
.ssp-event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ssp-event-cat-tag {
    background: #242430;
    color: #d4d4d8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.ssp-event-live-pill {
    background: #e84d4d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    animation: sspPulse 1.5s infinite;
}
.ssp-event-time-pill {
    background: #242430;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}
.ssp-event-poster-wrap {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    height: 120px;
    background: #101014;
}
.ssp-event-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ssp-event-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.ssp-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #a1a1aa;
    margin-bottom: 14px;
}
.ssp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ssp-meta-item.ssp-servers-count {
    color: #00c87a;
    font-weight: 700;
}
.ssp-event-footer {
    margin-top: auto;
}
.ssp-event-watch-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #00c87a, #ff8800);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.ssp-event-watch-btn:hover {
    background: linear-gradient(135deg, #e65c00, #00c87a);
    box-shadow: 0 0 10px rgba(0, 200, 122, 0.5);
}
.ssp-event-standby-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #242430;
    color: #71717a;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.ssp-no-events-box {
    text-align: center;
    padding: 40px 20px;
    color: #a1a1aa;
}
.ssp-no-events-box .ssp-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.ssp-no-events-box h3 {
    color: #f4f4f5;
    font-size: 17px;
    margin-bottom: 6px;
}
.ssp-no-events-box p {
    font-size: 13px;
    max-width: 480px;
    margin: 0 auto;
}

/* Event Showcase in Single Match page */
.ssp-single-event-showcase {
    background: #1a1a24;
    border: 1px solid #2d2d38;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-top: 18px;
}
.ssp-event-info-pill {
    display: inline-block;
    background: #00c87a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.ssp-event-hero-poster {
    max-width: 480px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
}
.ssp-event-hero-poster img {
    width: 100%;
    height: auto;
    display: block;
}
.ssp-event-kickoff-bar {
    font-size: 14px;
    color: #d4d4d8;
}

/* Events Button in Schedule Toolbar */
.filter-btn.events-btn {
    background: #242430 !important;
    border-color: #3b3b48 !important;
    color: #f4f4f5 !important;
}
.filter-btn.events-btn:hover {
    border-color: #00c87a !important;
    color: #00c87a !important;
}





/* =====================================================
   SPORTSUPA DESIGN SYSTEM EXTENSION & OVERRIDES
   Exact replica of https://sportsupa.org/ theme
   ===================================================== */

:root, [data-theme="dark"], .ssp-wrapper.ssp-dark, .ssp-sportsurge-container, .ssp-sportsurge-homepage {
    --bg: #0a0a0f !important;
    --bg2: #111118 !important;
    --bg3: #18181f !important;
    --bg4: #1e1e28 !important;
    --bg5: #242432 !important;
    --border: rgba(255,255,255,.07) !important;
    --border2: rgba(255,255,255,.13) !important;
    --accent: #00c87a !important;
    --accent-d: rgba(0,200,122,.12) !important;
    --accent-glow: 0 0 18px rgba(0,200,122,.22) !important;
    --red: #e84d4d !important;
    --red-d: rgba(232,77,77,.12) !important;
    --text: #f0f0f8 !important;
    --text2: #a8aac8 !important;
    --text3: #6a6d90 !important;
    --muted: #3a3c58 !important;
    --card-shadow: 0 8px 32px rgba(0,0,0,.7) !important;
}

/* Base typography matching SportSupa */
.ssp-wrapper, .ssp-sportsurge-container, .ssp-sportsurge-homepage, div.ssp-sportsurge-container, div.ssp-sportsurge-homepage {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #0a0a0f !important;
    color: #f0f0f8 !important;
}

/* Card layout enhancements (SportSupa pcard) */
.ssp-matches-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
}

@media(max-width: 1024px) {
    .ssp-matches-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media(max-width: 768px) {
    .ssp-matches-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media(max-width: 480px) {
    .ssp-matches-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.ssp-match-card {
    background: #111118 !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: border-color .15s, transform .15s, box-shadow .15s !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
}

.ssp-match-card:hover {
    border-color: rgba(0,200,122,.3) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.7) !important;
}

.ssp-match-card.ssp-live-card {
    border-color: rgba(232,77,77,.35) !important;
    animation: ssp-lv-border 2.8s ease infinite !important;
}

@keyframes ssp-lv-border {
    0%,100% { border-color: rgba(232,77,77,.35); box-shadow: none; }
    50%     { border-color: rgba(232,77,77,.65); box-shadow: 0 0 10px rgba(232,77,77,.18); }
}

.ssp-card-poster {
    height: 106px !important;
    aspect-ratio: unset !important;
    background: #18181f !important;
    position: relative !important;
}

.ssp-card-poster img.ssp-poster-img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.ssp-poster-placeholder {
    background: linear-gradient(135deg, #18181f, #1e1e28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ssp-live-badge {
    background: #e84d4d !important;
    border-radius: 4px !important;
    padding: 2px 7px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    font-family: 'Geist Mono', monospace !important;
    animation: ssp-chip-breathe 2s ease infinite !important;
}

@keyframes ssp-chip-breathe {
    0%,100% { background: #e84d4d; }
    50%     { background: #c03030; }
}

.ssp-category-badge {
    background: rgba(0,0,0,.7) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 4px !important;
    font-size: 9px !important;
    font-family: 'Geist Mono', monospace !important;
    color: #f0f0f8 !important;
}

/* Filter pills (SportSupa style) */
.ssp-league-nav, .ssp-sport-filters {
    background: rgba(10,10,15,.96) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.ssp-league-pill, button.ssp-league-pill, .ssp-filter-btn {
    border-radius: 100px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #a8aac8 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 5px 14px !important;
    transition: all .14s !important;
}

.ssp-league-pill:hover, button.ssp-league-pill:hover, .ssp-filter-btn:hover {
    background: #18181f !important;
    color: #f0f0f8 !important;
    border-color: rgba(255,255,255,.13) !important;
    box-shadow: none !important;
}

.ssp-league-pill.active, button.ssp-league-pill.active, .ssp-filter-btn.ssp-active, .filter-btn.active {
    background: rgba(0,200,122,.12) !important;
    color: #00c87a !important;
    border-color: rgba(0,200,122,.3) !important;
    box-shadow: 0 0 12px rgba(0,200,122,.2) !important;
}

/* Action button (Watch Now) */
.ssp-watch-btn, a.watch-btn, .watch-btn {
    background: #00c87a !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    transition: opacity .14s, transform .14s !important;
    box-shadow: 0 2px 10px rgba(0,200,122,.3) !important;
}

.ssp-watch-btn:hover, a.watch-btn:hover, .watch-btn:hover {
    background: #00e58c !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0,200,122,.5) !important;
}

/* Schedule table (SportSupa theme) */
.ssp-sportsurge-container .table-container,
.ssp-sportsurge-homepage .table-container,
.table-container {
    background: #111118 !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.6) !important;
}

table#matches-table th {
    background: #0a0a0f !important;
    border-bottom: 2px solid #00c87a !important;
    color: #a8aac8 !important;
    font-family: 'Geist Mono', monospace !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
}

table#matches-table tbody tr {
    background: #111118 !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
}

table#matches-table tbody tr:nth-child(even) {
    background: #14141c !important;
}

table#matches-table tbody tr:hover {
    background: #1a1a24 !important;
}

.col-sport .sport-name, .sport-name {
    color: #00c87a !important;
}

.vs-divider {
    color: #00c87a !important;
    font-family: 'Geist Mono', monospace !important;
}

.col-time .date-txt {
    color: #00c87a !important;
    font-family: 'Geist Mono', monospace !important;
}

.col-time .time-txt {
    color: #f0f0f8 !important;
    font-family: 'Geist Mono', monospace !important;
}

/* Search Box (SportSupa style) */
.ssp-search-wrapper input, input#ssp-match-search {
    background: #18181f !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 8px !important;
    color: #f0f0f8 !important;
    font-size: 12.5px !important;
}

.ssp-search-wrapper input:focus, input#ssp-match-search:focus {
    border-color: rgba(0,200,122,.4) !important;
    background: rgba(0,200,122,.08) !important;
    box-shadow: 0 0 12px rgba(0,200,122,.2) !important;
}

/* Modals & Popups matching SportSupa */
.ssp-modal-content {
    background: #111118 !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.8) !important;
}

.ssp-modal-header {
    background: #18181f !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.ssp-source-btn {
    background: #18181f !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: #f0f0f8 !important;
    border-radius: 7px !important;
}

.ssp-source-btn:hover {
    border-color: rgba(0,200,122,.3) !important;
    background: rgba(0,200,122,.08) !important;
    color: #00c87a !important;
}

.ssp-source-btn.ssp-active {
    background: #00c87a !important;
    border-color: #00c87a !important;
    color: #000000 !important;
    font-weight: 700 !important;
}
