/**
 * VeloRemote Matches - Frontend Styles
 * Professional Match Cards with RTL Support
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --vrm-primary: #e53e3e;
    --vrm-primary-hover: #c53030;
    --vrm-primary-gradient: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    --vrm-dark: #1a202c;
    --vrm-gray-100: #f7fafc;
    --vrm-gray-200: #edf2f7;
    --vrm-gray-300: #e2e8f0;
    --vrm-gray-500: #a0aec0;
    --vrm-gray-600: #718096;
    --vrm-gray-700: #4a5568;
    --vrm-white: #ffffff;
    --vrm-success: #38a169;
    --vrm-info: #3182ce;
    --vrm-warning: #d69e2e;
    --vrm-radius: 12px;
    --vrm-radius-sm: 8px;
    --vrm-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --vrm-shadow-hover: 0 8px 25px rgba(229, 62, 62, 0.15);
    --vrm-transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] .vrm-matches-container {
    --vrm-dark: #f7fafc;
    --vrm-gray-100: #1a202c;
    --vrm-gray-200: #2d3748;
    --vrm-gray-300: #4a5568;
    --vrm-gray-500: #a0aec0;
    --vrm-gray-600: #cbd5e0;
    --vrm-gray-700: #e2e8f0;
    --vrm-white: #1e2433;
}

/* ========================================
   CONTAINER
======================================== */
.vrm-matches-container {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   TABS
======================================== */
.vrm-match-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vrm-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--vrm-white);
    border: 2px solid var(--vrm-gray-200);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vrm-gray-600);
    cursor: pointer;
    transition: var(--vrm-transition);
    box-shadow: var(--vrm-shadow);
}

.vrm-tab-btn:hover {
    border-color: var(--vrm-primary);
    color: var(--vrm-primary);
    transform: translateY(-2px);
}

.vrm-tab-btn.active {
    background: var(--vrm-primary-gradient);
    border-color: transparent;
    color: var(--vrm-white);
    box-shadow: var(--vrm-shadow-hover);
}

.vrm-tab-icon {
    font-size: 18px;
}

/* ========================================
   MATCHES GRID
======================================== */
.vrm-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ========================================
   MATCH CARD
======================================== */
.vrm-match-card {
    background: var(--vrm-white);
    border-radius: var(--vrm-radius);
    overflow: hidden;
    box-shadow: var(--vrm-shadow);
    transition: var(--vrm-transition);
    position: relative;
    border: 1px solid var(--vrm-gray-200);
}

.vrm-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--vrm-gray-300);
    transition: var(--vrm-transition);
}

.vrm-match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--vrm-shadow-hover);
    border-color: var(--vrm-primary);
}

.vrm-match-card:hover::before {
    background: var(--vrm-primary-gradient);
}

/* Live Status */
.vrm-match-card.vrm-status-live::before {
    background: var(--vrm-primary);
    animation: vrm-pulse 2s infinite;
}

@keyframes vrm-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.vrm-match-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

/* ========================================
   MATCH HEADER
======================================== */
.vrm-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vrm-league-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--vrm-gray-100);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vrm-gray-600);
}

.vrm-league-icon {
    font-size: 14px;
}

/* ========================================
   STATUS BADGE
======================================== */
.vrm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vrm-status-badge.vrm-status-live {
    background: var(--vrm-primary);
    color: var(--vrm-white);
}

.vrm-status-badge.vrm-status-upcoming {
    background: var(--vrm-info);
    color: var(--vrm-white);
}

.vrm-status-badge.vrm-status-halftime {
    background: var(--vrm-warning);
    color: var(--vrm-white);
}

.vrm-status-badge.vrm-status-finished {
    background: var(--vrm-gray-500);
    color: var(--vrm-white);
}

.vrm-status-badge.vrm-status-postponed,
.vrm-status-badge.vrm-status-cancelled {
    background: var(--vrm-gray-300);
    color: var(--vrm-gray-700);
}

.vrm-live-dot {
    width: 8px;
    height: 8px;
    background: var(--vrm-white);
    border-radius: 50%;
    animation: vrm-blink 1s infinite;
}

@keyframes vrm-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ========================================
   TEAMS ROW
======================================== */
.vrm-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vrm-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.vrm-team-home {
    justify-content: flex-start;
}

.vrm-team-away {
    justify-content: flex-end;
}

.vrm-team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vrm-match-card:hover .vrm-team-logo {
    transform: scale(1.1);
}

.vrm-team-logo-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vrm-gray-100);
    border-radius: 50%;
    font-size: 24px;
}

.vrm-team-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vrm-dark);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   MATCH CENTER (Score/Time)
======================================== */
.vrm-match-center {
    flex: 0 0 auto;
    padding: 0 15px;
    text-align: center;
}

.vrm-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--vrm-dark);
}

.vrm-score-separator {
    color: var(--vrm-gray-500);
    font-weight: 400;
}

.vrm-match-time-display {
    background: var(--vrm-gray-100);
    padding: 8px 16px;
    border-radius: var(--vrm-radius-sm);
}

.vrm-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--vrm-dark);
}

/* ========================================
   MATCH FOOTER
======================================== */
.vrm-match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--vrm-gray-200);
}

.vrm-channel {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--vrm-gray-600);
}

.vrm-channel-icon {
    font-size: 14px;
}

.vrm-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--vrm-primary-gradient);
    color: var(--vrm-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--vrm-transition);
}

.vrm-match-card:hover .vrm-watch-btn {
    transform: translateX(-4px);
}

.vrm-arrow {
    transition: transform 0.3s ease;
}

.vrm-match-card:hover .vrm-arrow {
    transform: translateX(-4px);
}

/* ========================================
   NO MATCHES
======================================== */
.vrm-no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--vrm-white);
    border-radius: var(--vrm-radius);
    box-shadow: var(--vrm-shadow);
}

.vrm-no-matches-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.vrm-no-matches p {
    font-size: 16px;
    color: var(--vrm-gray-500);
    margin: 0;
}

/* ========================================
   LOADING
======================================== */
.vrm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 15px;
}

.vrm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--vrm-gray-200);
    border-top-color: var(--vrm-primary);
    border-radius: 50%;
    animation: vrm-spin 1s linear infinite;
}

@keyframes vrm-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vrm-loading span {
    color: var(--vrm-gray-600);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .vrm-matches-container {
        padding: 15px;
    }

    .vrm-match-tabs {
        flex-direction: column;
    }

    .vrm-tab-btn {
        width: 100%;
        justify-content: center;
    }

    .vrm-matches-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vrm-team-name {
        font-size: 13px;
        max-width: 80px;
    }

    .vrm-team-logo {
        width: 40px;
        height: 40px;
    }

    .vrm-score {
        font-size: 22px;
    }
}

/* ========================================
   SINGLE MATCH PAGE
======================================== */
.vrm-single-match {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.vrm-match-hero {
    background: var(--vrm-white);
    border-radius: var(--vrm-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--vrm-shadow);
    text-align: center;
}

.vrm-hero-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.vrm-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vrm-hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.vrm-hero-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--vrm-dark);
}

.vrm-hero-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--vrm-primary);
}

.vrm-hero-vs {
    color: var(--vrm-gray-500);
    font-size: 24px;
    font-weight: 400;
}

/* Video Player */
.vrm-video-container {
    background: #000;
    border-radius: var(--vrm-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.vrm-video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.vrm-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Stream Tabs */
.vrm-stream-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vrm-stream-tab {
    padding: 10px 20px;
    background: var(--vrm-gray-100);
    border: 2px solid var(--vrm-gray-200);
    border-radius: var(--vrm-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--vrm-gray-600);
    cursor: pointer;
    transition: var(--vrm-transition);
}

.vrm-stream-tab:hover {
    border-color: var(--vrm-primary);
    color: var(--vrm-primary);
}

.vrm-stream-tab.active {
    background: var(--vrm-primary);
    border-color: var(--vrm-primary);
    color: var(--vrm-white);
}

/* Match Details */
.vrm-match-details {
    background: var(--vrm-white);
    border-radius: var(--vrm-radius);
    padding: 25px;
    box-shadow: var(--vrm-shadow);
}

.vrm-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.vrm-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vrm-detail-label {
    font-size: 13px;
    color: var(--vrm-gray-500);
    font-weight: 500;
}

.vrm-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--vrm-dark);
}

/* ========================================
   DATE-AWARE DISPLAY (Yesterday/Tomorrow)
======================================== */

/* Result Label for Yesterday matches */
.vrm-result-label {
    font-size: 11px;
    color: var(--vrm-gray-600);
    margin-top: 4px;
    font-weight: 500;
}

/* Date Label for Tomorrow matches */
.vrm-date-label {
    display: block;
    font-size: 11px;
    color: var(--vrm-gray-500);
    margin-top: 2px;
    font-weight: 500;
}

/* No-stream card styling for yesterday/tomorrow */
.vrm-no-stream {
    cursor: default;
}

.vrm-match-card[data-date-category="yesterday"],
.vrm-match-card[data-date-category="tomorrow"] {
    opacity: 0.95;
}

.vrm-match-card[data-date-category="yesterday"]:hover,
.vrm-match-card[data-date-category="tomorrow"]:hover {
    transform: translateY(0);
    box-shadow: var(--vrm-shadow);
}

/* Timing badge for tomorrow */
.vrm-timing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--vrm-info);
    color: var(--vrm-white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vrm-clock-icon {
    font-size: 14px;
}

/* Result badge for yesterday */
.vrm-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--vrm-gray-500);
    color: var(--vrm-white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vrm-check-icon {
    font-size: 14px;
}

/* Logo Wrapper with error handling */
.vrm-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.vrm-logo-wrapper .vrm-team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vrm-logo-wrapper .vrm-team-logo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
}

/* ========================================
   STATUS INDICATOR IMPROVEMENTS
======================================== */
.vrm-status-live .vrm-live-dot {
    animation: vrm-blink 1s infinite;
}

/* Postponed and Cancelled status */
.vrm-status-postponed::before,
.vrm-status-cancelled::before {
    background: var(--vrm-gray-400) !important;
}

/* ========================================
   MATCH COUNT DISPLAY
======================================== */
.vrm-matches-count {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--vrm-gray-600);
    margin-top: 20px;
}

.vrm-tab-count {
    display: inline-block;
    min-width: 22px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    margin-right: 4px;
}

.vrm-tab-btn.active .vrm-tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 480px) {
    .vrm-logo-wrapper {
        width: 40px;
        height: 40px;
    }

    .vrm-timing-badge,
    .vrm-result-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ========================================
   NEW HORIZONTAL MATCH ROW DESIGN
======================================== */
.vrm-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    direction: rtl;
}

.vrm-match-row:hover {
    background: #fff;
    border-color: #3182ce;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.1);
}

.vrm-match-row-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
    direction: rtl;
}

/* Teams */
.vrm-match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.vrm-team-right {
    justify-content: flex-start;
}

.vrm-team-left {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}

.vrm-team-logo-wrap {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vrm-match-team .vrm-team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vrm-match-team .vrm-team-logo-placeholder {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 20px;
}

.vrm-match-team .vrm-team-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Center Block - Score/Time */
.vrm-match-center-block {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    min-width: 120px;
}

/* Score Display */
.vrm-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vrm-score-num {
    font-size: 26px;
    font-weight: 700;
    color: #e53e3e;
    min-width: 35px;
    text-align: center;
}

.vrm-score-sep {
    font-size: 22px;
    color: #a0aec0;
    font-weight: 400;
}

/* Time Display */
.vrm-time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vrm-time-zone {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
}

.vrm-time-value {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
}

/* Status Badge */
.vrm-status-badge-wrap {
    margin-top: 4px;
}

.vrm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vrm-badge-live {
    background: #e53e3e;
    color: #fff;
}

.vrm-badge-upcoming {
    background: #3182ce;
    color: #fff;
}

.vrm-badge-halftime {
    background: #d69e2e;
    color: #fff;
}

.vrm-badge-finished {
    background: #a0aec0;
    color: #fff;
}

.vrm-badge-starting_soon {
    background: #ed8936;
    color: #fff;
    animation: vrm-starting-pulse 2s infinite;
}

.vrm-badge-second_half {
    background: #e53e3e;
    color: #fff;
}

.vrm-badge-postponed,
.vrm-badge-cancelled {
    background: #e2e8f0;
    color: #718096;
}

/* Live Indicator */
.vrm-live-indicator {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: vrm-live-blink 1s infinite;
}

@keyframes vrm-live-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Match Row Status Styles */
.vrm-match-row.vrm-badge-live {
    border-right: 3px solid #e53e3e;
    background: linear-gradient(90deg, rgba(229, 62, 62, 0.05) 0%, #f8fafc 100%);
}

.vrm-match-row.vrm-badge-live:hover {
    border-right-color: #e53e3e;
}

.vrm-match-row.vrm-badge-starting_soon {
    border-right: 3px solid #ed8936;
    background: linear-gradient(90deg, rgba(237, 137, 54, 0.05) 0%, #f8fafc 100%);
}

.vrm-match-row.vrm-badge-second_half {
    border-right: 3px solid #e53e3e;
    background: linear-gradient(90deg, rgba(229, 62, 62, 0.05) 0%, #f8fafc 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .vrm-match-row {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .vrm-match-team {
        flex: 0 0 40%;
    }

    .vrm-match-center-block {
        flex: 1 0 100%;
        order: 3;
        padding: 10px 0 0;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .vrm-match-team .vrm-team-name {
        font-size: 13px;
        max-width: 100px;
    }

    .vrm-team-logo-wrap {
        width: 35px;
        height: 35px;
    }

    .vrm-score-num {
        font-size: 20px;
    }

    .vrm-time-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .vrm-match-team .vrm-team-name {
        font-size: 12px;
        max-width: 70px;
    }

    .vrm-match-center-block {
        min-width: auto;
    }
}

/* ========================================
   AI ARTICLE SECTION
======================================== */
.vrm-ai-article {
    margin-top: 30px;
    background: var(--vrm-white);
    border-radius: var(--vrm-radius);
    padding: 25px 30px;
    border: 1px solid var(--vrm-gray-200);
    box-shadow: var(--vrm-shadow);
}

.vrm-article-content {
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    color: var(--vrm-gray-700);
}

.vrm-article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--vrm-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vrm-primary);
}

.vrm-article-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--vrm-dark);
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vrm-article-content p {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--vrm-gray-600);
}

.vrm-article-content p:last-child {
    margin-bottom: 0;
}

/* SEO Keywords highlight */
.vrm-article-content strong,
.vrm-article-content b {
    color: var(--vrm-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .vrm-ai-article {
        padding: 20px;
        margin-top: 20px;
    }

    .vrm-article-content h3 {
        font-size: 18px;
    }

    .vrm-article-content h4 {
        font-size: 15px;
    }

    .vrm-article-content p {
        font-size: 14px;
    }
}

/* ========================================
   HORIZONTAL MATCH ROW - New Design
======================================== */
.vrm-matches-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vrm-match-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--vrm-white);
    border: 1px solid var(--vrm-gray-200);
    border-radius: var(--vrm-radius);
    padding: 16px 24px;
    box-shadow: var(--vrm-shadow);
    transition: var(--vrm-transition);
    direction: rtl;
}

.vrm-match-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--vrm-shadow-hover);
    border-color: var(--vrm-primary);
}

.vrm-match-row-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Team containers */
.vrm-match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Right team - home in RTL */
.vrm-team-right {
    flex-direction: row;
    justify-content: flex-start;
}

/* Left team - away in RTL */
.vrm-team-left {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Team logo wrapper */
.vrm-team-logo-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vrm-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--vrm-gray-100);
    padding: 4px;
}

.vrm-team-logo-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vrm-gray-200);
    border-radius: 50%;
    font-size: 24px;
}

.vrm-team-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vrm-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center block - time or score */
.vrm-match-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 120px;
    padding: 0 20px;
}

/* Score display */
.vrm-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vrm-score-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--vrm-dark);
    min-width: 30px;
    text-align: center;
}

.vrm-score-sep {
    font-size: 20px;
    color: var(--vrm-gray-500);
    font-weight: 700;
}

/* Time display */
.vrm-time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vrm-time-zone {
    font-size: 10px;
    color: var(--vrm-gray-500);
    font-weight: 500;
}

.vrm-time-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--vrm-dark);
    direction: ltr;
}

/* Status Badge Wrapper */
.vrm-status-badge-wrap {
    margin-top: 4px;
}

.vrm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Badge colors */
.vrm-badge-live,
.vrm-status-badge.vrm-badge-live {
    background: #fee2e2;
    color: #dc2626;
}

.vrm-badge-upcoming,
.vrm-status-badge.vrm-badge-upcoming {
    background: #dbeafe;
    color: #2563eb;
}

.vrm-badge-finished,
.vrm-status-badge.vrm-badge-finished {
    background: #d1fae5;
    color: #059669;
}

.vrm-badge-halftime,
.vrm-status-badge.vrm-badge-halftime {
    background: #fef3c7;
    color: #d97706;
}

.vrm-badge-starting_soon,
.vrm-status-badge.vrm-badge-starting_soon {
    background: #ffedd5;
    color: #c2410c;
    animation: vrm-starting-pulse 2s infinite;
}

.vrm-badge-second_half,
.vrm-status-badge.vrm-badge-second_half {
    background: #fee2e2;
    color: #dc2626;
}

@keyframes vrm-starting-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.vrm-badge-postponed,
.vrm-badge-cancelled,
.vrm-status-badge.vrm-badge-postponed,
.vrm-status-badge.vrm-badge-cancelled {
    background: var(--vrm-gray-200);
    color: var(--vrm-gray-600);
}

/* Live indicator */
.vrm-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: vrm-blink 1s infinite;
}

@keyframes vrm-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Responsive - Match Row */
@media (max-width: 768px) {
    .vrm-match-row {
        padding: 12px 16px;
    }

    .vrm-match-row-link {
        flex-wrap: nowrap;
    }

    .vrm-team-logo-wrap,
    .vrm-team-logo,
    .vrm-team-logo-placeholder {
        width: 36px;
        height: 36px;
    }

    .vrm-team-logo-placeholder {
        font-size: 18px;
    }

    .vrm-team-name {
        font-size: 13px;
    }

    .vrm-match-center-block {
        min-width: 80px;
        padding: 0 10px;
    }

    .vrm-score-num {
        font-size: 18px;
    }

    .vrm-time-value {
        font-size: 16px;
    }

    .vrm-time-zone {
        font-size: 9px;
    }

    .vrm-status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .vrm-match-row {
        padding: 10px 12px;
    }

    .vrm-match-team {
        gap: 8px;
    }

    .vrm-team-logo-wrap,
    .vrm-team-logo,
    .vrm-team-logo-placeholder {
        width: 32px;
        height: 32px;
    }

    .vrm-team-name {
        font-size: 12px;
        max-width: 80px;
    }

    .vrm-match-center-block {
        min-width: 60px;
        padding: 0 6px;
    }

    .vrm-score-num {
        font-size: 16px;
        min-width: 20px;
    }

    .vrm-time-value {
        font-size: 14px;
    }
}

/* ========================================
   MATCH INFO FOOTER (League, Channel, Commentator)
======================================== */
.vrm-match-info-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--vrm-gray-200);
}

.vrm-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--vrm-transition);
}

.vrm-info-league {
    background: #ede9fe;
    color: #7c3aed;
}

.vrm-info-channel {
    background: #dbeafe;
    color: #2563eb;
}

.vrm-info-commentator {
    background: #fef3c7;
    color: #d97706;
}

.vrm-info-date {
    background: #d1fae5;
    color: #059669;
}

/* Match row needs flex-wrap when footer is present */
.vrm-match-row {
    flex-wrap: wrap;
}

/* Responsive footer */
@media (max-width: 768px) {
    .vrm-match-info-footer {
        gap: 6px;
        padding-top: 8px;
        margin-top: 8px;
    }

    .vrm-info-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .vrm-info-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}