/* CSS Variables and Design Tokens */
:root {
    --bg-dark: hsl(225, 40%, 6%);
    --bg-sidebar: hsl(225, 45%, 8%);
    --bg-card: hsla(225, 30%, 15%, 0.35);
    --bg-card-hover: hsla(225, 30%, 20%, 0.55);
    --border-color: hsla(225, 20%, 30%, 0.25);
    --border-glow: hsla(225, 40%, 50%, 0.15);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 25%, 72%);
    --text-muted: hsl(217, 18%, 54%);
    
    --primary: hsl(210, 100%, 50%);
    --primary-glow: rgba(0, 149, 255, 0.2);
    
    /* Sport/Category Colors */
    --accent-nhl: hsl(190, 100%, 48%);
    --accent-nhl-glow: rgba(0, 217, 255, 0.2);
    
    --accent-mlb: hsl(145, 80%, 48%);
    --accent-mlb-glow: rgba(16, 185, 129, 0.2);
    
    --accent-revenge: hsl(358, 85%, 60%);
    --accent-revenge-glow: rgba(239, 68, 68, 0.2);
    
    --accent-birthday: hsl(45, 100%, 50%);
    --accent-birthday-glow: rgba(245, 158, 11, 0.2);
    
    --accent-hometown: hsl(270, 85%, 65%);
    --accent-hometown-glow: rgba(168, 85, 247, 0.2);
    
    --accent-newdad: hsl(325, 95%, 60%);
    --accent-newdad-glow: rgba(236, 72, 153, 0.2);
    
    --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* News Ticker Tape Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 40px;
    background-color: hsl(225, 45%, 4%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.ticker-title {
    background: var(--accent-revenge);
    color: black;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 0.75rem;
    height: 100%;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
    box-shadow: 4px 0 15px rgba(239, 68, 68, 0.4);
    z-index: 2;
    position: relative;
}

.ticker {
    display: flex;
    width: 100%;
    white-space: nowrap;
}

.ticker__item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: ticker 40s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translate3d(5%, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* App Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-nhl), var(--accent-mlb));
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background-color: var(--bg-sidebar);
    border-radius: 4px;
}

.brand h1 {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-section h3 {
    font-family: var(--font-header);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Form Controls & Inputs */
.date-picker-wrapper, .search-wrapper {
    position: relative;
    width: 100%;
}

.date-input, .search-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.search-input {
    padding-right: 2.5rem;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.date-input:focus, .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Interactive Filter Buttons */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: hsla(225, 20%, 45%, 0.4);
    transform: translateX(4px);
}

.filter-btn.active {
    background: rgba(0, 149, 255, 0.12);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mlb-dot { background-color: var(--accent-mlb); box-shadow: 0 0 8px var(--accent-mlb); }
.nhl-dot { background-color: var(--accent-nhl); box-shadow: 0 0 8px var(--accent-nhl); }

/* Buttons & Sync Block */
.sync-panel {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--accent-mlb);
    box-shadow: 0 0 8px var(--accent-mlb);
}

.btn {
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: var(--font-header);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(210, 100%, 55%), hsl(210, 100%, 40%));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 149, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 149, 255, 0.45);
}

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

.btn-block {
    width: 100%;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.hidden {
    display: none !important;
}

/* Main Dashboard Area */
.main-content {
    flex: 1;
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow-y: auto;
    height: 100vh;
}

/* Content Header & Quick Stats */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.content-header h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 800;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.quick-stats {
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 0 15px rgba(0, 149, 255, 0.05);
    backdrop-filter: blur(10px);
    align-items: center;
}

.stat-card {
    background: transparent;
    border: none;
    padding: 0.4rem 1rem;
    min-width: 110px;
    text-align: center;
    position: relative;
    backdrop-filter: none;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border-color);
}

.stat-value {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.15rem;
}

.text-red { color: var(--accent-revenge); }

/* Narratives Dashboard Grid */
.narratives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

/* Glassmorphism Card Style */
.narrative-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* Subtle glow overlay depending on the category */
.narrative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.narrative-card.milestone::before { background: var(--accent-mlb); }
.narrative-card.nhl.milestone::before { background: var(--accent-nhl); }
.narrative-card.revenge_game::before { background: var(--accent-revenge); }
.narrative-card.birthday::before { background: var(--accent-birthday); }
.narrative-card.hometown_return::before { background: var(--accent-hometown); }
.narrative-card.new_dad::before { background: var(--accent-newdad); }

.narrative-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 255, 255, 0.03);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.player-meta h4 {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
}

.player-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.badge {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-header);
}

.badge.milestone { background: rgba(16, 185, 129, 0.1); color: var(--accent-mlb); border: 1px solid hsla(145, 80%, 48%, 0.2); }
.badge.nhl.milestone { background: rgba(0, 217, 255, 0.1); color: var(--accent-nhl); border: 1px solid hsla(190, 100%, 48%, 0.2); }
.badge.revenge_game { background: rgba(239, 68, 68, 0.1); color: var(--accent-revenge); border: 1px solid hsla(358, 85%, 60%, 0.2); }
.badge.birthday { background: rgba(245, 158, 11, 0.1); color: var(--accent-birthday); border: 1px solid hsla(45, 100%, 50%, 0.2); }
.badge.hometown_return { background: rgba(168, 85, 247, 0.1); color: var(--accent-hometown); border: 1px solid hsla(270, 85%, 65%, 0.2); }
.badge.new_dad { background: rgba(236, 72, 153, 0.1); color: var(--accent-newdad); border: 1px solid hsla(325, 95%, 60%, 0.2); }

.card-content h3 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Progress bar inside card */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.milestone .progress-bar-fill { background-color: var(--accent-mlb); }
.nhl.milestone .progress-bar-fill { background-color: var(--accent-nhl); }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sport-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.impact-badge {
    font-weight: 600;
}

.impact-high { color: var(--accent-revenge); }
.impact-med { color: var(--accent-birthday); }

/* Loading, Error and Empty States */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.pulse-loader {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 20px var(--primary); }
    100% { transform: scale(0.6); opacity: 0.4; }
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Modal Overlay & Card Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: hsl(225, 40%, 10%);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    width: 90%;
    max-width: 580px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 149, 255, 0.1);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-primary);
}

.modal-body {
    padding: 2.5rem;
}

.modal-player-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-player-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.modal-player-header img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--border-glow);
}

.modal-headline {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.modal-detail-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin: 0.5rem 0;
}

.modal-stat-box h5 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.modal-stat-box p {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .filter-btn {
        width: auto;
    }
    .main-content {
        padding: 1.5rem;
        height: auto;
    }
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .quick-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   Hero Carousel Styles (Layout Option 3)
   ========================================== */
.carousel-container {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, hsla(225, 40%, 10%, 0.6), hsla(225, 40%, 6%, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 149, 255, 0.05);
    backdrop-filter: blur(12px) saturate(180%);
}

.carousel-container.hidden {
    display: none !important;
}

.carousel-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding: 2rem 5rem 3.5rem 5rem;
    position: relative;
    min-height: 430px;
}

/* Base Ambient Glow Background */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translate(50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* Category Glow Variants */
.carousel-slide.milestone::after { background-color: var(--accent-mlb); }
.carousel-slide.nhl.milestone::after { background-color: var(--accent-nhl); }
.carousel-slide.revenge_game::after { background-color: var(--accent-revenge); opacity: 0.2; }
.carousel-slide.birthday::after { background-color: var(--accent-birthday); }
.carousel-slide.hometown_return::after { background-color: var(--accent-hometown); }
.carousel-slide.new_dad::after { background-color: var(--accent-newdad); }

.slide-content {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    z-index: 2;
}

.slide-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slide-featured-tag {
    background: linear-gradient(135deg, hsl(45, 100%, 55%), hsl(45, 100%, 40%));
    color: black;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-header);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.slide-title {
    font-family: var(--font-header);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.slide-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
}

.slide-stats-banner {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
    width: 100%;
}

.slide-stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.slide-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slide-stat-value {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.slide-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Visual Glow Ring behind player headshot */
.avatar-ring-wrapper {
    position: relative;
    padding: 8px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--border-color), transparent);
    margin-top: -55px; /* Shift higher in the carousel container */
}

.carousel-slide.milestone .avatar-ring-wrapper { background: linear-gradient(135deg, var(--accent-mlb), transparent); }
.carousel-slide.nhl.milestone .avatar-ring-wrapper { background: linear-gradient(135deg, var(--accent-nhl), transparent); }
.carousel-slide.revenge_game .avatar-ring-wrapper { background: linear-gradient(135deg, var(--accent-revenge), transparent); }
.carousel-slide.birthday .avatar-ring-wrapper { background: linear-gradient(135deg, var(--accent-birthday), transparent); }
.carousel-slide.hometown_return .avatar-ring-wrapper { background: linear-gradient(135deg, var(--accent-hometown), transparent); }
.carousel-slide.new_dad .avatar-ring-wrapper { background: linear-gradient(135deg, var(--accent-newdad), transparent); }

.slide-avatar {
    width: 145px;
    height: 145px;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    backdrop-filter: blur(8px);
}

.carousel-control:hover {
    background: rgba(0, 149, 255, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev { left: 1.5rem; }
.carousel-control.next { right: 1.5rem; }

/* Indicators / Dots */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

.carousel-dot {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
    background: var(--primary);
    width: 44px;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Grid Section Header */
.grid-section-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.grid-section-header h3 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Highlighted Grid Card */
.narrative-card.featured-highlight {
    border: 1px solid var(--primary-glow);
    box-shadow: var(--shadow-md), 0 0 10px rgba(0, 149, 255, 0.08);
}

/* Adjustments for Layout Option 3 in media queries */
@media (max-width: 1024px) {
    .carousel-slide {
        padding: 3rem 4rem;
        gap: 2.5rem;
    }
    .slide-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 900px) {
    .carousel-container {
        border-radius: 20px;
    }
    .carousel-slide {
        flex-direction: column-reverse;
        padding: 2.5rem 2rem 4rem 2rem;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }
    .carousel-slide .avatar-ring-wrapper {
        margin-top: 0;
    }
    .carousel-slide::after {
        top: 25%;
        right: 50%;
        transform: translate(50%, -50%);
        width: 250px;
        height: 250px;
    }
    .slide-content {
        align-items: center;
    }
    .slide-description {
        max-width: 100%;
    }
    .slide-stats-banner {
        justify-content: center;
    }
    .slide-avatar {
        width: 140px;
        height: 140px;
    }
    .carousel-control {
        display: none; /* Hide arrows on mobile, rely on dots & auto-rotate */
    }
    
    /* Responsive overrides already in file */
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .filter-btn {
        width: auto;
    }
    .main-content {
        padding: 1.5rem;
        height: auto;
    }
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .quick-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   Split Card Layout & Sub-headers (Refinements)
   ========================================== */
.card-main-body {
    display: flex;
    gap: 1.25rem;
    width: 100%;
    flex: 1;
}

.card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.card-player-info h4 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-player-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.card-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.card-stories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.card-story-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-story-item:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.card-story-title {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-story-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

/* Sport Grid & Subheaders */
.sport-section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sport-section-header.mlb {
    color: var(--accent-mlb);
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.sport-section-header.nhl {
    color: var(--accent-nhl);
    border-bottom-color: rgba(0, 217, 255, 0.3);
}

@media (max-width: 480px) {
    .card-main-body {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .card-right {
        align-self: center;
    }
}

