/* Custom fonts */
.hero-title {
    font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

/* Glowing effect for VS */
.glowing {
    text-shadow: 0 0 20px rgba(251, 146, 60, 0.8),
                 0 0 40px rgba(251, 146, 60, 0.6),
                 0 0 60px rgba(251, 146, 60, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Animated background waves */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(251, 146, 60, 0.1) 50%, 
        transparent 70%);
    animation: wave 15s linear infinite;
}

.wave1 {
    animation-delay: 0s;
    opacity: 0.3;
}

.wave2 {
    animation-delay: 5s;
    opacity: 0.2;
}

.wave3 {
    animation-delay: 10s;
    opacity: 0.1;
}

/* Animations */
@keyframes wave {
    0% {
        transform: translateX(-100%) translateY(-50%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(-50%) rotate(45deg);
    }
}

@keyframes heroGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(251, 146, 60, 0.5));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 40px rgba(251, 146, 60, 0.8));
    }
}

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

/* Section styling */
.section-title {
    font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #fb923c, #ef4444);
    border-radius: 2px;
}

/* Match info card */
.match-info {
    border: 2px solid rgba(251, 146, 60, 0.3);
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.2),
                inset 0 0 30px rgba(251, 146, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.match-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fb923c, #ef4444, #3b82f6, #fb923c);
    border-radius: 8px;
    opacity: 0.5;
    animation: borderRotate 4s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Team logos animation */
.team-logo {
    transition: transform 0.3s ease;
}

.team-logo:hover {
    transform: translateY(-5px);
}

/* Story content */
.story-content {
    position: relative;
    overflow: hidden;
}

.story-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Player cards */
.player-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

/* Style for player photos */
.player-photo {
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.player-photo img {
    transition: transform 0.3s ease;
    display: block;
    max-height: 300px;
    width: auto;
    margin: 0 auto;
}

.player-card:hover .player-photo img {
    transform: scale(1.05);
}

.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(251, 146, 60, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card:hover::before {
    opacity: 1;
}

.player-number {
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Details card */
.details-card {
    border: 1px solid rgba(251, 146, 60, 0.2);
    position: relative;
}

.detail-item {
    position: relative;
    padding-left: 20px;
}

.detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, #fb923c, #ef4444);
    border-radius: 2px;
}

/* Hashtags */
.hashtag {
    border: 1px solid rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hashtag:hover {
    background: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Key visual container */
.key-visual-container {
    position: relative;
}

.key-visual-container img {
    object-fit: contain;
    max-height: 800px;
    width: 100%;
    height: auto;
}

.key-visual-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(251, 146, 60, 0.3);
    border-radius: 1rem;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .match-info {
        padding: 1.5rem;
    }
    
    .team-logo h2 {
        font-size: 1.5rem;
    }
}

/* Loading animation enhancement */
#loader {
    background: radial-gradient(circle at center, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(15, 23, 42, 1) 100%);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Player card hover effects */
.player-card {
    position: relative;
}

.player-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, transparent 70%, rgba(251, 146, 60, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player-card:hover::after {
    opacity: 1;
}

.player-card:hover {
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.3);
}

/* Modal animations */
#playerModal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #fb923c, #ef4444);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f97316, #dc2626);
}