/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: rgb(245, 241, 235);
    color: #222;
    text-align: center;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    overflow-x: hidden;
}

/* ── Header ── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgb(252, 220, 160);
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.header__logo {
    height: 4rem;
    transition: transform 0.2s;
}

.header__logo:hover {
    transform: scale(1.05);
}

/* ── Account pill ── */
.account__placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.account__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.account__name {
    font-weight: 600;
    font-size: 1rem;
}

.Logout__btn {
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: #f04f32;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.1s;
}

.Logout__btn:hover {
    background-color: #d94329;
}

.Logout__btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ── Main ── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem 3rem;
}

/* ── Hero ── */
.hero {
    margin-bottom: 2rem;
}

.hero__title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.hero__accent {
    color: #f04f32;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* ── Content layout ── */
.content-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
}

/* ── Video ── */
.video-figure {
    margin: 0;
}

.teaser-video {
    width: 580px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s, box-shadow 0.3s;
}

.teaser-video:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

figcaption {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

/* ── Button panel ── */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.control-header {
    margin: 0 0 4px 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #222;
}

.control-desc {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #777;
    text-align: left;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.btn--primary {
    background-color: #f04f32;
}

.btn--primary:hover {
    background-color: #d94329;
}

.btn--secondary {
    background-color: #555;
}

.btn--secondary:hover {
    background-color: #444;
}

.btn--twitch {
    background-color: #6441a5;
}

.btn--twitch:hover {
    background-color: #503484;
}

/* Legacy fallback for unclassed buttons */
button {
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    background-color: #f04f32;
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1rem 2rem;
    background: rgb(252, 220, 160);
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

footer p {
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .content-container {
        flex-direction: column;
        gap: 32px;
        padding: 0 1rem;
    }

    main {
        padding: 1.5rem 1rem 2rem;
    }

    .hero__title {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .teaser-video {
        width: 100%;
        max-width: 90vw;
    }

    .button-container {
        align-items: center;
    }

    .control-desc {
        text-align: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 20px;
    }

    button {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        padding: 12px 16px;
    }
}
