
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    margin-top: 0;
    animation: heroEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg,
            var(--dark-primary) 0%,
            rgba(13, 13, 30, 0.98) 25%,
            rgba(16, 16, 35, 0.95) 50%,
            rgba(13, 13, 30, 0.98) 75%,
            var(--dark-primary) 100%
            ),
            radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: 0;
    opacity: 0.95;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 2px,
                    rgba(255, 255, 255, 0.01) 2px,
                    rgba(255, 255, 255, 0.01) 4px
            );
    z-index: 1;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 15;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    animation: contentSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 15;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--karmine-blue), var(--accent-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1 1 auto;
    min-width: 0;
    animation: titleShift 8s ease-in-out infinite;
}

@keyframes titleShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--karmine-blue);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-badge:hover {
    transform: translateY(-2px);
    border-color: var(--karmine-blue);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

.next-match-container {
    position: relative;
    z-index: 15;
    width: 100%;
}

.next-match-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.next-match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.refresh-btn:hover {
    background: var(--karmine-blue);
    color: white;
    border-color: var(--karmine-blue);
    transform: translateY(-2px);
}

.match-countdown {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 15;
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-time {
    color: var(--karmine-blue);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--karmine-blue), var(--accent-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countdownShift 6s ease-in-out infinite;
}

@keyframes countdownShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.countdown-urgent {
    animation: countdownUrgent 1s ease-in-out infinite;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold)) !important;
    background-size: 200% 100% !important;
}

@keyframes countdownUrgent {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.match-game-badge {
    background: linear-gradient(135deg, var(--karmine-blue), #0066cc);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.match-game-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.teams-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 3rem;
    animation: teamsSlideIn 1s ease 0.4s both;
}

@keyframes teamsSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teams-showcase .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    transition: all 0.3s ease;
}

.teams-showcase .team:hover {
    transform: translateY(-8px);
}

.team-logo-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--karmine-blue);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.team-logo-large:hover {
    border-color: var(--accent-gold);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

.team-logo-placeholder-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark-tertiary), var(--dark-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-logo-placeholder-large:hover {
    transform: scale(1.1);
    border-color: var(--karmine-blue);
}

.team-name-large {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    transition: all 0.3s ease;
}

.karmine-team .team-name-large {
    background: linear-gradient(135deg, var(--karmine-blue), var(--accent-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    animation: karmineShift 6s ease-in-out infinite;
}

@keyframes karmineShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vs-large {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 2rem;
    margin: 0 2rem;
    background: linear-gradient(135deg, var(--text-muted), var(--karmine-blue));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vsShift 8s ease-in-out infinite;
}

@keyframes vsShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.match-details-hero {
    text-align: center;
    margin: 2.5rem 0;
    color: var(--text-secondary);
    animation: detailsFadeIn 1s ease 0.6s both;
}

@keyframes detailsFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tournament-info-hero {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tournament-info-hero::before {
    content: '🏆';
    font-size: 1.4rem;
}

.match-datetime-hero {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.match-datetime-hero::before {
    content: '📅';
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    animation: actionsSlideUp 1s ease 0.8s both;
}

@keyframes actionsSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.stream-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stream-btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
}

.view-all-matches-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--karmine-blue);
    text-decoration: none;
    border: 2px solid var(--karmine-blue);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-all-matches-btn:hover {
    background: var(--karmine-blue);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.no-next-match {
    text-align: center;
    padding: 3rem;
    color: var(--text-primary);
    animation: noMatchFadeIn 1s ease;
}

@keyframes noMatchFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.no-match-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .teams-showcase { gap: 2rem; }
    .hero-content { padding: 1.5rem; }
    .next-match-card { padding: 2rem; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 50vh; }
    .hero-header { flex-direction: column; gap: 1.5rem; text-align: center; }
    .teams-showcase { flex-direction: column; gap: 2rem; }
    .vs-large { margin: 1rem 0; font-size: 1.5rem; transform: rotate(90deg); }
    .hero-actions { flex-direction: column; gap: 1rem; }
    .team-logo-large, .team-logo-placeholder-large { width: 80px; height: 80px; }
    .stream-btn-hero, .view-all-matches-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-content { padding: 1rem; }
    .next-match-card { padding: 1.5rem; }
    .team-logo-large, .team-logo-placeholder-large { width: 70px; height: 70px; }
    .team-name-large { font-size: 1.1rem; }
}

.stream-btn-hero:focus,
.view-all-matches-btn:focus,
.refresh-btn:focus {
    outline: 2px solid var(--karmine-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
