/* ======================
   Twitch
   ====================== */
.twitch-page {
    padding: 60px 0;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background-color: var(--darker);
    color: var(--lighter);
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--accent);
    color: var(--background);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.twitch-player-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.tagline {
    text-align: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.twitch-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.twitch-player,
.twitch-chat {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.twitch-player iframe,
.twitch-chat iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .twitch-flex {
        flex-direction: row;
    }

    .twitch-player {
        flex: 2;
    }

    .twitch-chat {
        flex: 1;
    }
}
