/* sports.css - Timeline List Redesign */

:root {
    --bg-dark: #0f172a;
    --bg-darker: #0b1120;
    --accent-orange: #f97316;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
}

/* Page Header */
.schedule-header {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

/* Pills Container */
.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pill {
    background: transparent;
    border: 1px solid var(--border-light);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pill.active {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

/* Search Bar Area */
.search-bar-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input {
    flex-grow: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

.search-input:focus {
    border-color: var(--accent-orange);
}

.search-input::placeholder {
    color: #64748b;
}

.timezone-select {
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

/* Timeline Date Header */
.timeline-date-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

/* Timeline Accordion Header */
.timeline-category-header {
    background: var(--bg-dark);
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
    border: 1px solid var(--border-subtle);
    border-bottom: none;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    margin-bottom: 25px;
}

/* Timeline Row */
.timeline-row {
    display: flex;
    align-items: center;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.2s ease;
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-row:hover {
    background: #1e293b;
}

.timeline-time {
    background: var(--accent-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    width: 70px;
    padding: 12px 0;
    text-align: center;
    flex-shrink: 0;
}

.timeline-event-title {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    flex-grow: 1;
    line-height: 1.4;
}

.timeline-chevron {
    color: #64748b;
    padding: 0 20px;
    font-size: 0.9rem;
}

.timeline-row:hover .timeline-chevron {
    color: var(--accent-orange);
}

/* Modal styles (Keep existing sleek dark look) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-darker);
    width: 100%;
    max-width: 1000px;
    max-height: 95vh; /* Keep within desktop viewport */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--accent-orange);
}

.stream-sources {
    padding: 15px 30px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
}

.source-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.source-btn img {
    width: 20px; height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.source-btn:hover {
    background: rgba(255,255,255,0.1);
}

.source-btn.active, .source-select.active {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
}

.source-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.source-select option {
    background: var(--bg-darker);
    color: #fff;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Native modern ratio */
    max-height: 70vh; /* Prevent overflowing off the bottom of the screen */
    margin: 0 auto;
    background: #000;
    flex-shrink: 0;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .modal-content { 
        max-width: 100%; 
        max-height: 100vh;
        border-radius: 12px; 
        border-bottom-left-radius: 0; 
        border-bottom-right-radius: 0; 
    }
    .modal-overlay { padding: 0; align-items: flex-end; }
    .stream-sources { padding: 15px 15px; }
    .search-bar-container { flex-direction: column; }
    
    .video-container {
        max-height: none; /* Let width dictate height on mobile */
        aspect-ratio: 16 / 9;
    }
}
