/* Typography - High Performance Local Fonts */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #f8fafc;
    --nav-bg: #302c84;
    --bein-purple: #581c87;
    --bein-gradient: linear-gradient(135deg, #302c84 0%, #581c87 100%);
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-blue: #38bdf8;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --ticker-speed: 100s;
}

/* Dark Mode Variables Overlay */
[data-theme='dark'] {
    --bg-color: #0f172a;
    --nav-bg: #1e1b4b;
    --bein-purple: #4c1d95;
    --bein-gradient: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ticker Animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(10%);
    }

    100% {
        transform: translateX(100%);
    }
}

.news-ticker-container {
    background: #fff;
    border-bottom: 2px solid var(--accent-blue);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 99;
}

[data-theme='dark'] .news-ticker-container {
    background: #1e293b;
    border-bottom-color: var(--bein-purple);
}

.ticker-label {
    background: var(--accent-red);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 2;
    position: relative;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    padding-right: 20px;
    animation: ticker-scroll var(--ticker-speed) linear infinite;
}

.ticker-item {
    padding: 0 2rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item i {
    color: var(--accent-blue);
    font-size: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
header {
    background: var(--bein-gradient);
    padding: 0.75rem 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    justify-self: start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    /* Slightly smaller logo text */
    font-weight: 800;
    color: #fff;
}

.logo i {
    font-size: 1.1rem;
    /* Smaller football icon */
    color: var(--accent-blue);
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -2px 0 var(--accent-blue);
    border-radius: 4px;
}

.nav-icons {
    display: flex;
    gap: 1rem;
    color: #fff;
    font-size: 1.1rem;
}

.team-slider {
    background: #fff;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 40px;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--nav-bg);
    transition: 0.3s;
}

.slider-control:hover {
    background: var(--nav-bg);
    color: #fff;
}

.slider-control.prev {
    right: 10px;
}

.slider-control.next {
    left: 10px;
}

.slider-container {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
}

.team-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s;
    cursor: pointer;
    text-align: center;
}

.team-item span {
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 8px;
    color: #1e293b;
    white-space: normal;
    display: block;
    width: 100%;
}

.team-item:hover {
    transform: scale(1.1);
}

.team-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f8fafc;
    padding: 6px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    background: var(--bein-gradient);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--accent-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.widget-header h3 i {
    font-size: 0.9rem;
    vertical-align: middle;
}

.league-list {
    list-style: none;
}

.league-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}

.league-item:hover {
    background: #f1f5f9;
    color: var(--accent-blue);
}

/* Main Layout */
.main-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1300px;
    margin: 1rem auto;
    padding: 0 2%;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* League Grouping */
.league-group {
    margin-bottom: 1.25rem;
}

.league-header {
    padding: 0.5rem 1rem;
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--accent-blue);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.league-header i {
    color: #eab308;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* Match Sections */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-right: 5px solid var(--accent-blue);
    padding-right: 1rem;
    color: var(--nav-bg);
}

.date-nav,
.bein-date-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.date-pill {
    padding: 0.7rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.date-pill:hover {
    border-color: var(--accent-blue);
    color: var(--nav-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.date-pill.active {
    background: var(--bein-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(48, 44, 132, 0.3);
    transform: scale(1.05);
}

.date-pill i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Match Widget Loading State */
#match-widget {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Match Cards - Compact Style */
.match-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

.match-card:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-md);
}

.match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team:hover img {
    transform: translateY(-5px) scale(1.1);
}

.team-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--nav-bg);
    margin-top: 0.25rem;
}

.match-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 110px;
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    gap: 0.1rem;
}

.match-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nav-bg);
}

.match-status {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
}

.match-status.live {
    color: #fff;
    background: var(--accent-red);
    animation: pulse 2s infinite;
}

.match-meta {
    background: var(--nav-bg);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-blue);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.match-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-meta i {
    color: var(--accent-blue);
    font-size: 0.7rem;
    vertical-align: middle;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.2rem;
}

.news-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--nav-bg);
}

.news-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    height: 3.6rem;
    overflow: hidden;
}

/* Dashboard Styles */
.admin-header {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bein-gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(20px) scale(0.8);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(48, 44, 132, 0.4);
}

.back-to-top i {
    transition: 0.3s;
}

.back-to-top:active {
    transform: scale(0.9);
}

/* Responsive */
@media (max-width: 1000px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .team-info span {
        display: none;
    }

    .match-score {
        font-size: 1.2rem;
    }

    .match-center {
        min-width: 80px;
    }
}


/* PREMIUM BEIN FOOTER */
.site-footer {
    background: #302c84 !important;
    color: white !important;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    clear: both;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    direction: rtl;
}

.footer-column h3 {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white !important;
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: white !important;
    display: block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-brand .logo span {
    color: #38bdf8 !important;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: white !important;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8 !important;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    header {
        grid-template-columns: 1fr auto;
        padding: 0.75rem 3%;
    }

    .nav-links {
        display: none;
    }

    .slider-control {
        display: none;
    }

    .slider-wrapper {
        padding: 0 1rem;
    }
}

/* PREMIUM BEIN MATCH GRID SYSTEM */
.bein-matches-container {
    padding: 1rem 0;
}

.bein-league-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.bein-league-header {
    background: var(--nav-bg);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--bein-gradient);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bein-league-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    transform: skewX(-20deg);
}

.bein-league-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.bein-league-info img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bein-league-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.bein-league-header i.chevron {
    font-size: 1.2rem;
    opacity: 0.8;
}

.bein-match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #f1f5f9;
    /* Border effect between items */
}

.bein-match-item {
    background: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    text-decoration: none !important;
}

.bein-match-item:hover {
    background: #fafafa;
}

.bein-match-teams {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.bein-team-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.bein-team-row img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    order: 2;
    /* Logo on the right in RTL */
}

.bein-team-row span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--nav-bg);
}

.bein-match-time-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 1.5rem;
    border-right: 1px solid #f1f5f9;
    min-width: 100px;
}

.bein-match-time {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--nav-bg);
    font-family: 'Outfit', sans-serif;
}

.bein-match-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 2px;
}

.bein-match-league-name {
    font-size: 0.75rem;
    color: var(--bein-purple);
    font-weight: 600;
    margin-bottom: 4px;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .bein-match-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bein-match-item {
        padding: 1.25rem 1rem;
    }

    .bein-league-header {
        padding: 0.75rem 1rem;
    }

    .bein-league-info h3 {
        font-size: 1rem;
    }
}

/* PREMIUM RELATED ARTICLES GRID */
.related-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nav-bg);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.related-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: #f97316;
    /* Orange accentuate from screenshot */
    border-radius: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.related-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.related-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.related-card:hover .related-card-img {
    transform: scale(1.1);
}

.related-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.related-card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    color: #fff;
    text-align: right;
}

.related-card-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.9;
    font-family: 'Outfit', sans-serif;
}

.related-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}


/* --- PREMIER WIDGET STYLES (FOUC FIX) --- */

.poll-btn:not(:disabled):hover {
    border-color: var(--accent-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.poll-btn:disabled {
    border-color: #f1f5f9 !important;
    background: #fafafa !important;
}

/* --- EXPECTED LINEUPS (MOBILE OPTIMIZATION) --- */
.lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    font-size: 0.95rem;
}

.lineup-team-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid var(--accent-blue);
    transition: transform 0.3s ease;
}

.lineup-team-card.away {
    border-right-color: #94a3b8;
}

.lineup-team-card strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1.15rem;
    color: var(--nav-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.lineup-players {
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .lineup-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .lineup-team-card {
        padding: 1.25rem !important;
    }
}

/* --- MATCH HERO REFINED --- */
.match-hero-new {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.hero-league-info {
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    font-size: 1.15rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-team img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.hero-team span {
    font-size: 1rem;
    font-weight: 800;
    color: var(--nav-bg);
}

.hero-score-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-score-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--nav-bg);
    letter-spacing: -1px;
}

.hero-status-tag {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-score-wrapper {
        order: -1;
    }

    .hero-score-val {
        font-size: 2rem;
    }
}