.back-button {
    display: inline-block;
    color: #ffdf00;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 223, 0, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

.back-button:hover {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(255, 107, 107, 0.6);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(255, 223, 0, 0.3);
}

header {
    text-align: center;
    padding: 40px 20px 60px;
    margin-bottom: 20px;
}

.battle-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin: 0 20px 40px;
    align-items: center;
}

.team {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team:hover::before {
    transform: scaleX(1);
}

.team:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 223, 0, 0.4);
}

.team-nintendo {
    border: 2px solid rgba(230, 0, 18, 0.6);
}

.team-nintendo::before {
    background: linear-gradient(90deg, #e60012 0%, #ff6b6b 100%);
}

.team-sega {
    border: 2px solid rgba(0, 137, 207, 0.6);
}

.team-sega::before {
    background: linear-gradient(90deg, #0089cf 0%, #4ecdc4 100%);
}

.team-header h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.channel-info {
    margin-bottom: 30px;
}

.channel-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid rgba(255, 223, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 223, 0, 0.4);
    transition: all 0.3s ease;
}

.team:hover .channel-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 223, 0, 0.6);
}

.channel-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffdf00;
    text-shadow: 0 2px 8px rgba(255, 223, 0, 0.3);
}

.sub-count {
    margin-bottom: 30px;
}

.sub-count .count {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.sub-count .label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.vs-circle {
    width: 100px;
    height: 100px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    border: 3px solid rgba(255, 223, 0, 0.5);
    animation: rotate 10s linear infinite;
    box-shadow: 0 0 30px rgba(255, 223, 0, 0.4);
    background: linear-gradient(135deg, #ffdf00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.difference {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    border: 1px solid rgba(255, 223, 0, 0.3);
}

.diff-label {
    display: block;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diff-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffdf00;
    text-shadow: 0 2px 8px rgba(255, 223, 0, 0.3);
}

.info-box {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 0 20px;
    border: 1px solid rgba(255, 223, 0, 0.3);
}

.info-box p {
    margin: 5px 0;
    font-size: 1rem;
    color: #d1d5db;
}

.note {
    color: #9ca3af;
    font-size: 0.9rem !important;
}

body.light-mode .team,
body.light-mode .difference,
body.light-mode .info-box,
body.light-mode .back-button {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 223, 0, 0.4);
}

body.light-mode .channel-info h3,
body.light-mode .diff-value {
    color: #ff6b6b;
}

body.light-mode .info-box p {
    color: #1d1d1f;
}

body.light-mode .note,
body.light-mode .stat-label,
body.light-mode .diff-label {
    color: #4a4a4a;
}

body.light-mode .back-button {
    color: #ff6b6b;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 968px) {
    .battle-arena {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vs-divider {
        flex-direction: row;
        justify-content: center;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .sub-count .count {
        font-size: 2.5rem;
    }
}
