:root {
    --bein-bg: #121212;
    --bein-hero-bg: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    --bein-white: #ffffff;
    --bein-text-dark: #333333;
    --bein-text-light: #eeeeee;
    --bein-primary: #bb86fc;
    --bein-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bein-schedule-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    direction: rtl;
}

/* Hero Section */
.bein-hero-section {
    background: var(--bein-hero-bg);
    color: white;
    padding: 40px 10px 60px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.bein-hero-top {
    text-align: center;
    margin-bottom: 25px;
}

.bein-hero-competition {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.bein-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    gap: 10px;
}

.bein-hero-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.bein-hero-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    margin-bottom: 12px;
}

.bein-hero-section, 
.bein-hero-section *,
.bein-hero-name,
.bein-hero-date,
.bein-hero-time,
.bein-hero-round {
    color: #ffffff !important;
}

.bein-hero-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    word-wrap: break-word;
    max-width: 100%;
}

.bein-hero-center {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.bein-hero-date {
    font-size: 0.9rem;
    white-space: nowrap;
}

.bein-hero-time {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin: 5px 0;
}

.bein-hero-round {
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Countdown Cards */
.bein-countdown-cards {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    justify-content: center;
}

.timer-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 6px;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-card span {
    font-size: 1.2rem;
    font-weight: bold;
}

.timer-card small {
    font-size: 0.65rem;
    color: #ccc;
}

/* White BG Sections */
.bein-section-white {
    background: var(--bein-white);
    color: var(--bein-text-dark);
    margin: -20px 15px 30px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--bein-shadow);
    position: relative;
    z-index: 3;
}

.bein-section-white h3, 
.bein-section-players h3 {
    margin: 0 0 25px;
    font-size: 1.25rem;
    text-align: center; /* Centered Headings */
    position: relative;
    padding-bottom: 10px;
}

.bein-section-white h3::after,
.bein-section-players h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--bein-primary);
    border-radius: 2px;
}

.bein-channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.bein-ch-link {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #222;
    border: 1px solid #ddd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.bein-ch-link:hover {
    background: #5e35b1;
    color: white;
    border-color: #5e35b1;
    transform: translateY(-2px);
}

.bein-ch-link span {
    color: #5e35b1;
}

.bein-ch-link:hover span {
    color: white;
}

/* Team Form Pills - Restored */
.bein-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bein-form-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-label {
    font-weight: bold;
    font-size: 1rem;
}

.bein-form-pills {
    display: flex;
    gap: 6px;
}

.bein-pill {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.bein-pill-w { background: #00c853; box-shadow: 0 2px 5px rgba(0,200,83,0.3); }
.bein-pill-d { background: #ffab00; box-shadow: 0 2px 5px rgba(255,171,0,0.3); }
.bein-pill-l { background: #d50000; box-shadow: 0 2px 5px rgba(213,0,0,0.3); }

/* Players Section */
.bein-section-players {
    padding: 25px;
    background: #fcfcfc;
    border-radius: 12px;
    margin: 0 15px 30px;
    box-shadow: var(--bein-shadow);
}

.bein-players-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bein-player-list-block h4 {
    text-align: center;
    margin-bottom: 15px;
}

.bein-player-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bein-player-row {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

/* Designed Table in Content */
.bein-seo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.bein-seo-table tr td {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
}

.bein-seo-table tr:last-child td {
    border-bottom: none;
}

.bein-seo-table td:first-child {
    background: #fcfcfc;
    font-weight: bold;
    color: #555;
    width: 30%;
    border-left: 1px solid #f5f5f5;
}

.bein-seo-table tr:hover td {
    background: #fafafa;
}

/* SEO Content Styling */
.bein-schedule-wrapper h1 {
    font-size: 2rem;
    margin: 0 0 25px;
    color: #222;
    text-align: center;
    line-height: 1.3;
}

/* Responsive Fixes */
@media (max-width: 600px) {
    .bein-hero-logo {
        width: 60px;
        height: 60px;
    }
    .bein-hero-name {
        font-size: 0.95rem;
    }
    .bein-hero-time {
        font-size: 2.2rem;
    }
    .bein-hero-date, .bein-hero-round {
        font-size: 0.8rem;
    }
    .timer-card {
        min-width: 40px;
    }
    .timer-card span {
        font-size: 1rem;
    }
    .bein-form-grid, .bein-players-flex {
        grid-template-columns: 1fr;
    }
    .bein-hero-content {
        gap: 5px;
    }
    .bein-seo-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-badge.live {
    background: #ff5252;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Match List Styles */
.bein-list-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    font-family: inherit;
    color: #fff;
}

.bein-league-group {
    margin-bottom: 30px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bein-league-header {
    background: linear-gradient(90deg, #b82105, #b82105);
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.bein-league-header span {
    border-right: 4px solid #fff;
    padding-right: 12px;
}

.bein-match-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    text-decoration: none !important;
    transition: background 0.3s ease;
    color: #fff !important;
}

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

.bein-match-row:hover {
    background: #252525;
}

.bein-row-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    text-align: center !important;
    font-weight: 600;
    font-size: 1.05rem;
    gap: 8px;
}

.bein-row-team.home {
    /* Styles handled by generic .bein-row-team now */
}

.bein-row-team.away {
    /* Styles handled by generic .bein-row-team now */
}

.bein-row-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 !important;
    order: 1;
}

.bein-row-team span {
    order: 2;
}

.bein-row-center {
    width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bein-row-time {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.bein-row-status {
    font-size: 0.8rem;
    background: #b82105;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 0 auto;
    text-transform: uppercase;
}

.bein-no-matches {
    text-align: center;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    color: #aaa;
}

/* Mobile Adjustments for List */
@media (max-width: 600px) {
    .bein-match-row {
        padding: 12px 10px;
    }
    .bein-row-team span {
        font-size: 0.9rem;
    }
    .bein-row-team img {
        width: 45px;
        height: 45px;
        margin: 0 !important;
    }
    .bein-row-center {
        width: 80px;
    }
    .bein-row-time {
        font-size: 1rem;
    }
}
.bein-row-status.is-live {
    background: #e60000;
    color: #fff;
    animation: blink-live 1s infinite;
}

@keyframes blink-live {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.bein-row-status.is-ended {
    background: #333;
    color: #fff;
}

.bein-row-status.is-upcoming {
    background: #111;
    color: #fff;
}