/* Live Page Container Styles */
.live-container {
    background-color: #ffffff;
    min-height: 100vh;
    padding: 1rem;
}

.watch-live-section {
    background-color: #ffffff;
    margin-bottom: 2rem;
}

.popular-tours-section {
    background-color: #ffffff;
}

/* Title and Navigation Styles */
.title-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.watch-live-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.orange-bar {
    width: 4px;
    height: 24px;
    background-color: #1571e2;
    margin-right: 0.75rem;
    border-radius: 2px;
}

/* Live Matches Grid */
.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    background-color: #ffffff;
}

.no-matches {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    padding: 2rem;
    background-color: #ffffff;
}

/* Live Match Card Styles */
.live-match-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.live-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.match-image {
    position: relative;
    height: 120px;
    background-color: #f3f4f6;
}

.match-background {
    display: flex;
    height: 100%;
}

.team-side {
    flex: 1;
}

.left-team {
    border-top-left-radius: 0.5rem;
}

.right-team {
    border-top-right-radius: 0.5rem;
}

.live-badge, .watch-timer {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.watch-timer {
    background-color: #1571e2;
    color: white;
    font-weight: 600;
    bottom: auto;
    margin-bottom: 0;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    margin-right: 0.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.match-details {
    padding: 1rem;
    background-color: #ffffff;
}

.tournament-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.sport-type {
    font-weight: 500;
    color: #1571e2;
}

.tournament-name {
    color: #6b7280;
}

.team-info {
    margin-bottom: 0.75rem;
}

.match-time {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* Team Flag Styles - Responsive */
.team-flag {
    width: 1.5rem; /* 24px on desktop */
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 1px solid #e5e7eb;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Team container styles */
.team {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.team-name {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

/* Team info container */
.team-info {
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-flag {
        width: 1.25rem; /* 20px on tablets */
        height: 1.25rem;
        margin-right: 0.375rem;
    }
    
    .team-name {
        font-size: 0.8125rem; /* 13px */
    }
}

@media (max-width: 480px) {
    .team-flag {
        width: 1rem; /* 16px on mobile */
        height: 1rem;
        margin-right: 0.25rem;
    }
    
    .team-name {
        font-size: 0.75rem; /* 12px */
        line-height: 1.1;
    }
    
    .team-info {
        margin-top: 0.375rem;
    }
    
    .team {
        margin-bottom: 0.125rem;
    }
}

/* Popular Tours Section Styles */
.tours-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.popular-tours-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.subtitle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.live-streaming-subtitle {
    font-size: 0.875rem;
    color: #1571e2;
    font-weight: 500;
}

.tours-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Tours Scroll Container */
.tours-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    background-color: #ffffff;
}

.tours-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.tours-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.tours-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tours-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tour Card Styles */
.tour-card {
    flex: 0 0 300px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tournament-logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.tournament-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.tour-info {
    background-color: #ffffff;
}

.tour-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.tour-organizer {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.tour-dates {
    font-size: 0.875rem;
    color: #1571e2;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.tournament-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Navigation Buttons */
.right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-nav {
    display: flex;
    gap: 0.5rem;
}

.scroll-btn {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.scroll-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-btn svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.see-all-link, .see-full-schedule-btn {
    font-size: 0.875rem;
    color: #1571e2;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.see-all-link:hover, .see-full-schedule-btn:hover {
    color: #0f5bb5;
}

.see-full-schedule-btn svg {
    width: 14px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-container {
        padding: 0.5rem;
    }
    
    .title-nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .watch-live-title {
        font-size: 1.125rem;
    }
    
    .orange-bar {
        width: 3px;
        height: 20px;
        margin-right: 0.5rem;
    }
    
    .right-section {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .scroll-btn {
        padding: 0.375rem;
    }
    
    .scroll-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .see-all-link {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .live-matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .tour-card {
        flex: 0 0 250px;
    }
    
    .popular-tours-title {
        font-size: 1.25rem;
    }
    
    .tours-subtitle {
        font-size: 1rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .title-nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
    }
    
    .watch-live-title {
        font-size: 1rem;
    }
    
    .orange-bar {
        width: 2px;
        height: 16px;
        margin-right: 0.375rem;
    }
    
    .right-section {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.375rem;
    }
    
    .scroll-btn {
        padding: 0.25rem;
        border-radius: 0.25rem;
    }
    
    .scroll-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .see-all-link {
        font-size: 0.6875rem;
        line-height: 1.4;
    }
}



/* Finished badge styles */
.finished-badge {
    background-color: #6b7280 !important;
    color: white !important;
    transition: all 0.3s ease;
}

/* Live pulsing animation */
.live-pulsing {
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

/* Match status transitions */
.match-card-finished .live-badge,
.match-card-finished .live-badge-banner,
.match-card-finished .live-badge-gradient {
    background-color: #6b7280 !important;
    transition: background-color 0.3s ease;
}

.match-card-finished .match-time {
    color: #6b7280 !important;
    transition: color 0.3s ease;
}

/* Timer countdown styles */
.timer-countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Timer and Status Conversion Styles */
.watch-timer-center {
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: #1571e2;
    border-radius: 0.375rem;
    border: 1px solid #1571e2;
    transition: all 0.3s ease;
}

.timer-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive timer adjustments */
@media (max-width: 768px) {
    .watch-timer-center {
        margin: 0.375rem 0;
        padding: 0.375rem;
    }
    
    .timer-text {
        font-size: 0.8125rem;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    /* Timer badge adjustments for tablets */
    .live-badge, .watch-timer {
        padding: 0.4rem 0.6rem;
        min-height: 1.75rem;
        font-size: 0.75rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .watch-timer-center {
        margin: 0.25rem 0;
        padding: 0.25rem;
        border-radius: 0.25rem;
    }
    
    .timer-text {
        font-size: 0.75rem;
        color: white;
        font-weight: 700;
        letter-spacing: 0.025em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    /* Timer badge adjustments for mobile */
    .live-badge, .watch-timer {
        padding: 0.3rem 0.5rem;
        min-height: 1.5rem;
        font-size: 0.6875rem;
        border-radius: 0.25rem;
    }
}

/* Extra small devices (very small phones, 360px and down) */
@media (max-width: 360px) {
    .watch-timer-center {
        margin: 0.125rem 0;
        padding: 0.1875rem;
        border-radius: 0.1875rem;
    }
    
    .timer-text {
        font-size: 0.6875rem;
        color: white;
        font-weight: 700;
        letter-spacing: 0.05em;
        line-height: 1.2;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    /* Timer badge adjustments for very small mobile */
    .live-badge, .watch-timer {
        padding: 0.25rem 0.375rem;
        min-height: 1.25rem;
        font-size: 0.625rem;
        border-radius: 0.1875rem;
    }
    
    .live-matches-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

