/* Custom CSS for Livestream Page */
.livestream-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.livestream-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.livestream-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.livestream-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.live-badge {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

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

    50% {
        transform: scale(1.02);
    }
}

.tournament-section {
    margin-bottom: 3rem;
}

.tournament-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding-left: 1rem;
    border-left: 5px solid #ffd700;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.match-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.match-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 1rem;
    color: white;
    text-align: center;
}

.match-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

.match-round {
    font-size: 0.85rem;
    opacity: 0.85;
}

.players-section {
    padding: 1.5rem;
    background: #f8f9fa;
}

.players-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.player {
    flex: 1;
    text-align: center;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.vs-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-matches {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.no-matches-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-matches h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-matches p {
    font-size: 1.2rem;
    opacity: 0.8;
}

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

    .livestream-header h1 {
        font-size: 2rem;
    }

    .tournament-title {
        font-size: 1.5rem;
    }

    .player-name {
        font-size: 1rem;
    }

    .vs-badge {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}
