* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
}

.ticker-container {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #020617 0%, #1e3a8a 50%, #581c87 100%);
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Configuration Overlay */
.config-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.config-panel {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 48rem;
    width: 100%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .config-header h2 {
        font-size: 1.875rem;
        font-weight: bold;
    }

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: rgba(55, 65, 81, 1);
    }

.config-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 0.875rem;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
    }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111827;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

    .form-control:focus {
        outline: none;
        border-color: #3b82f6;
    }

.sports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.sport-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: #374151;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

    .sport-btn:hover {
        background: #4b5563;
    }

    .sport-btn.active {
        background: #2563eb;
        box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.slider {
    width: 100%;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: #374151;
    outline: none;
    cursor: pointer;
}

/* Header */
.header {
    background: linear-gradient(90deg, #2563eb 0%, #9333ea 50%, #ec4899 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.header-content {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-activity {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.branding h1 {
    font-size: 2.25rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    line-height: 1;
}

.branding p {
    font-size: 0.875rem;
    color: rgba(191, 219, 254, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.time-display {
    text-align: right;
}

.time {
    font-size: 1.875rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.date {
    font-size: 0.75rem;
    color: rgba(191, 219, 254, 1);
    text-transform: uppercase;
}

.settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

    .settings-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Stats Bar */
.stats-bar {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-left {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

    .stat-item .label {
        color: #d1d5db;
    }

    .stat-item .value {
        font-weight: bold;
        color: white;
    }

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Featured Section */
.featured-section {
    height: 50%;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.header-accent {
    width: 0.25rem;
    height: 2rem;
    background: linear-gradient(180deg, #3b82f6 0%, #a855f7 100%);
    border-radius: 9999px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    height: calc(100% - 3rem);
}

.featured-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(55, 65, 81, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.league-badge {
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.league-nfl {
    background: #2563eb;
}

.league-nba {
    background: #ea580c;
}

.league-mlb {
    background: #dc2626;
}

.league-nhl {
    background: #374151;
}

.league-ncaaf {
    background: #16a34a;
}

.league-ncaab {
    background: #9333ea;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    color: #fca5a5;
}

.live-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.game-scores {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

    .score.away {
        color: #60a5fa;
    }

    .score.home {
        color: #c084fc;
    }

.score-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4b5563 50%, transparent 100%);
}

.game-status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
    margin-top: 1rem;
}

    .game-status.live {
        background: rgba(127, 29, 29, 0.4);
        color: #fca5a5;
        border: 2px solid rgba(185, 28, 28, 0.5);
    }

/* Ticker Section */
.ticker-section {
    height: 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(4px);
}

.ticker-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .ticker-header h2 {
        font-size: 1.25rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.loading-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.spinner-large {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-scroll {
    height: 50%;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

.ticker-track {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
   /* transition: transform 0.05s linear;*/
    animation: scrollTicker 50s linear infinite;
}

.ticker-card {
    flex-shrink: 0;
    width: 16rem;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 2px solid rgba(55, 65, 81, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.ticker-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.league-badge-small {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-badge-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fca5a5;
}

.live-dot-small {
    width: 0.5rem;
    height: 0.5rem;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ticker-scores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ticker-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker-team {
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-score {
    font-size: 1.5rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    margin-left: 0.5rem;
}

.ticker-status {
    text-align: center;
    padding: 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
}

    .ticker-status.live {
        background: rgba(127, 29, 29, 0.4);
        color: #fca5a5;
    }

/* Footer */
.footer {
    background: linear-gradient(90deg, #111827 0%, #0f172a 50%, #111827 100%);
    padding: 0.5rem 2rem;
    border-top: 2px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .footer span {
        font-size: 0.75rem;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
