/* ============================================
   SpoilMeNot.com — Complete Stylesheet
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --bg: #0d1117;
    --secondary: #161b22;
    --card-bg: #21262d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #e94560;
    --accent-hover: #d63851;
    --safe-bg: #2ea043;
    --safe-text: #ffffff;
    --spoiler-bg: #da3633;
    --border: #30363d;
    --link: #58a6ff;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === HEADER === */
header {
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--accent);
}

.tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === AUTH AREA === */
.auth-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-greeting {
    color: var(--text);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* === BUTTONS === */
.btn-primary, .btn-login, .btn-signup, .btn-logout {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-login {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-login:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-signup {
    background: var(--accent);
    color: white;
}
.btn-signup:hover {
    background: var(--accent-hover);
}

.btn-logout {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-logout:hover {
    border-color: var(--spoiler-bg);
    color: var(--spoiler-bg);
}

/* === NAVIGATION === */
nav {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    margin: 0 -2rem;
    padding: 0 2rem;
}

.nav-link {
    padding: 0.8rem 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-link.disabled {
    color: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* === MAIN CONTENT === */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.section-content {
    animation: fadeIn 0.3s ease;
}

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

/* === SEARCH === */
.search-container {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    max-width: 600px;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

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

.search-container button {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.search-container button:hover {
    background: var(--accent-hover);
}

/* === RESULTS GRID === */
.results-grid, .shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

/* === SHOW CARD === */
.show-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.show-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.show-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 0.8rem;
}

.card-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--secondary);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

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

/* === AUTH MODAL === */
.auth-modal {
    max-width: 420px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
}

.auth-error {
    background: rgba(218, 54, 51, 0.15);
    color: var(--spoiler-bg);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border-left: 3px solid var(--spoiler-bg);
}

.auth-switch {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === SHOW DETAIL === */
.show-detail-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.show-detail-header .detail-poster {
    width: 200px;
    border-radius: 8px;
    flex-shrink: 0;
}

.show-detail-header .detail-info {
    flex: 1;
    min-width: 250px;
}

.show-detail-header .detail-info h2 {
    margin-bottom: 0.5rem;
}

.show-summary {
    margin-top: 0.8rem;
    line-height: 1.7;
}

.show-summary p {
    margin-bottom: 0.5rem;
}

/* === PROGRESS CONTROL === */
.progress-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.8rem;
    background: var(--card-bg);
    border-radius: 8px;
}

.progress-control label {
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-control select {
    padding: 0.4rem 0.6rem;
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* === EPISODES === */
.episodes-section {
    margin-top: 2rem;
}

.season-tabs {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.season-tab {
    padding: 0.4rem 0.8rem;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.season-tab.active {
    background: var(--accent);
    color: white;
}

.season-tab:hover:not(.active) {
    border-color: var(--accent);
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.episode-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--border);
}

.episode-item.safe {
    border-left-color: var(--safe-bg);
}

.episode-item.spoiler-blocked {
    border-left-color: var(--spoiler-bg);
    background: rgba(218, 54, 51, 0.05);
}

.episode-number {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 60px;
}

.episode-info {
    flex: 1;
}

.episode-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.episode-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.episode-summary p {
    margin: 0;
}

.ep-status {
    font-size: 1.2rem;
}

/* === SCHEDULE WIDGET === */
.schedule-widget {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.schedule-header {
    margin-bottom: 1rem;
}

.schedule-header h2 {
    margin-bottom: 0.3rem;
}

.schedule-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.schedule-controls select {
    padding: 0.4rem 0.6rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.schedule-list {
    max-height: 400px;
    overflow-y: auto;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.schedule-item:hover {
    background: var(--card-bg);
}

.schedule-item.tracked {
    background: rgba(46, 204, 113, 0.05);
    border-left: 3px solid var(--safe-bg);
}

.schedule-item.spoiler-danger {
    border-left: 3px solid var(--spoiler-bg);
}

.schedule-time {
    font-weight: bold;
    font-size: 0.85rem;
    min-width: 70px;
    color: var(--accent);
}

.schedule-thumb {
    width: 45px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.schedule-info {
    flex: 1;
}

.schedule-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.spoiler-badge {
    background: var(--spoiler-bg);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* === SPOILER ELEMENTS === */
.spoiler-hidden {
    background: rgba(233, 69, 96, 0.1);
    border: 1px dashed var(--accent);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--accent);
    font-style: italic;
}

.spoiler-text-hidden {
    color: var(--accent);
    font-style: italic;
    font-size: 0.8rem;
}

/* ============================================
   MOVIES SECTION
   ============================================ */

#moviesContent {
    padding: 0 1rem;
}

/* Movie Rows */
.movie-row {
    margin: 2rem 0;
    padding: 0 1rem;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Movie Carousel */
.movie-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.movie-carousel::-webkit-scrollbar {
    height: 6px;
}

.movie-carousel::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 3px;
}

.movie-carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Movie Card (Carousel) */
.movie-card {
    flex-shrink: 0;
    width: 160px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.movie-status-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-number {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.movie-card-info {
    padding: 0.5rem 0.2rem;
}

.movie-card-info h4 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-status-msg {
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

/* Movie Detail Modal */
.movie-detail-header {
    position: relative;
    margin: -2rem -2rem 1.5rem -2rem;
}

.movie-backdrop {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.movie-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backdrop-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, var(--secondary));
}

.movie-detail-main {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.detail-poster {
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.detail-info {
    flex: 1;
    min-width: 250px;
    padding-top: 60px;
}

.movie-tagline {
    color: var(--text-muted);
    font-style: italic;
    margin: 0.3rem 0 0.5rem 0;
}

/* Genre Tags */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.8rem 0;
}

.genre-tag {
    background: var(--card-bg);
    color: var(--text);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #444;
}

/* Status Banner */
.movie-status-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: bold;
}

.movie-status-banner.watched {
    background: rgba(46, 204, 113, 0.15);
    border-left: 4px solid var(--safe-bg);
}

.movie-status-banner.available {
    background: rgba(233, 69, 96, 0.15);
    border-left: 4px solid var(--accent);
}

.movie-status-banner.soon {
    background: rgba(255, 165, 0, 0.15);
    border-left: 4px solid orange;
}

.movie-status-banner.upcoming {
    background: rgba(52, 152, 219, 0.15);
    border-left: 4px solid #3498db;
}

.movie-status-banner.future {
    background: rgba(155, 89, 182, 0.15);
    border-left: 4px solid #9b59b6;
}

.movie-status-banner.released {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
}

.movie-status-banner.unknown {
    background: rgba(139, 148, 158, 0.1);
    border-left: 4px solid var(--text-muted);
}

/* Movie Actions */
.movie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

/* Spoiler Control */
.spoiler-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.spoiler-control label {
    font-weight: bold;
    font-size: 0.9rem;
}

.spoiler-control select {
    padding: 0.4rem 0.6rem;
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--accent);
    border-radius: 4px;
    flex: 1;
    min-width: 200px;
}

/* Movie Sections */
.movie-section {
    margin: 2rem 0;
    padding: 0 2rem;
}

.movie-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-bg);
}

/* Cast Grid */
.cast-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.cast-card {
    flex-shrink: 0;
    width: 90px;
    text-align: center;
}

.cast-card img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.cast-name {
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.3rem;
}

.cast-character {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Trailers Grid */
.trailers-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.trailer-card {
    flex-shrink: 0;
    width: 280px;
    position: relative;
}

.trailer-card a {
    display: block;
    position: relative;
}

.trailer-card img {
    width: 100%;
    border-radius: 6px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.trailer-card .meta {
    margin-top: 0.3rem;
    font-size: 0.8rem;
}

/* Watchlist Filters */
.watchlist-filters {
    display: flex;
    gap: 0.3rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
}

.filter-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--text);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--link);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem 0;
    }

    nav {
        margin: 0 -1rem;
        padding: 0 1rem;
        overflow-x: auto;
    }

    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    main {
        padding: 1rem;
    }

    .results-grid, .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .show-card img {
        height: 200px;
    }

    .show-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .show-detail-header .detail-poster {
        width: 150px;
    }

    .progress-control {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-detail-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-poster {
        width: 150px;
    }

    .detail-info {
        padding-top: 1rem;
    }

    .movie-actions {
        justify-content: center;
    }

    .genre-tags {
        justify-content: center;
    }

    .movie-card {
        width: 130px;
    }

    .movie-poster img {
        height: 195px;
    }

    .movie-section {
        padding: 0 1rem;
    }

    .schedule-item {
        flex-wrap: wrap;
    }

    .schedule-thumb {
        width: 35px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container button {
        width: 100%;
    }

    .results-grid, .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .movie-card {
        width: 110px;
    }

    .movie-poster img {
        height: 165px;
    }
}

/* ============================================
   SPORTS SECTION
   ============================================ */

/* Sports Controls */
.sports-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.sport-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sport-selector select,
.sport-selector input[type="date"] {
    padding: 0.5rem 0.8rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.sport-selector input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

.sports-actions {
    display: flex;
    gap: 0.5rem;
}

/* Sports Tabs */
.sports-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.sports-tab {
    padding: 0.7rem 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.sports-tab:hover {
    color: var(--text);
}

.sports-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Games Header */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.games-header h2 {
    font-size: 1.2rem;
}

.games-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Game Card */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateX(3px);
}

.game-card.tracked-game {
    border-left: 4px solid var(--accent);
}

.game-card.spoiler-shielded {
    border-left: 4px solid var(--spoiler-bg);
}

.game-card.game-live {
    border-left: 4px solid #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.game-card.game-finished {
    opacity: 0.85;
}

/* Shield Banner */
.shield-banner {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--spoiler-bg);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 0 10px 0 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Game Status */
.game-status {
    margin-bottom: 0.5rem;
}

.live-badge {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.finished-badge {
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.scheduled-badge {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Game Matchup */
.game-matchup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-team.home {
    justify-content: flex-start;
}

.game-team.away {
    justify-content: flex-end;
    text-align: right;
}

.game-team.followed .team-name {
    font-weight: bold;
    color: var(--accent);
}

.game-vs {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.team-name {
    font-size: 0.95rem;
}

.team-score {
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.team-score.hidden-score {
    color: var(--spoiler-bg);
    font-size: 1.6rem;
}

/* Team Logos */
.team-logo-xs {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

.team-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.team-logo-md {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Game Venue */
.game-venue {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Reveal Button */
.game-reveal {
    margin-top: 0.8rem;
    text-align: center;
}

.reveal-score-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* My Teams */
.my-teams-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.my-teams-sport-group h3 {
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.my-teams-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.my-team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.my-team-card .team-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.my-team-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.my-team-actions button {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

/* Teams Browser */
.teams-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.team-browser-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.team-browser-card.followed {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.team-browser-info {
    flex: 1;
}

.team-browser-info h4 {
    font-size: 0.9rem;
}

.follow-team-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
}

.follow-team-btn.following {
    background: var(--safe-bg);
}

/* Catch-up Control */
.catchup-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.catchup-control label {
    font-weight: bold;
    font-size: 0.9rem;
}

.catchup-control input[type="date"] {
    padding: 0.4rem 0.6rem;
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.catchup-control input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

.team-schedule-list {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Standings */
.standings-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.standings-warning p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.standings-group {
    margin-bottom: 1.5rem;
}

.standings-group h4 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.standings-table th {
    text-align: left;
    padding: 0.5rem 0.8rem;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.standings-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

.standings-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.standings-table tr.followed-row {
    background: rgba(233, 69, 96, 0.08);
}

.standings-table tr.followed-row td {
    font-weight: bold;
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Sports */
@media (max-width: 768px) {
    .sports-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sport-selector {
        flex-direction: column;
    }

    .game-matchup {
        flex-direction: column;
        gap: 0.3rem;
    }

    .game-team {
        justify-content: center !important;
        text-align: center !important;
    }

    .game-vs {
        font-size: 0.75rem;
    }

    .my-teams-row {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .teams-browser-grid {
        grid-template-columns: 1fr;
    }

    .standings-table {
        font-size: 0.8rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .sports-tabs {
        overflow-x: auto;
    }

    .sports-tab {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}
