:root {
    --bg: #170201;
    --header: rgba(18, 2, 1, 0.96);
    --cream: #fff1cf;
    --orange: #ef6a18;
    --orange-dark: #c8490b;
    --line: rgba(255, 241, 207, 0.12);
    --shadow: rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(107, 21, 7, 0.55), transparent 38%),
        var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cream);
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(100%, 1055px);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    height: 62px;
    width: auto;
    max-width: min(390px, 32vw);
}

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.actions a,
.audio-shortcut {
    min-height: 42px;
    padding: 11px 15px;
    border-radius: 999px;
    color: var(--cream);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 900;
    background: rgba(255, 241, 207, 0.06);
    border: 1px solid rgba(255, 241, 207, 0.12);
    cursor: pointer;
}

.audio-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(180deg, #ff7d22, #d24b0c);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

/* POSTER */
.poster-section {
    width: min(100%, 1055px);
    margin: 10px auto 110px;
    background: #240402;
    box-shadow: 0 28px 90px var(--shadow);
}

.poster-image {
    width: 100%;
    height: auto;
    user-select: none;
}

/* AUDIO DOCK */
.audio-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 110;
    width: min(460px, calc(100% - 40px));
    padding: 13px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 26px;
    color: var(--cream);
    background:
        linear-gradient(180deg, rgba(255, 125, 34, 0.08), transparent),
        rgba(35, 4, 2, 0.9);
    border: 1px solid rgba(255, 242, 207, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.dock-play {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #ff7c22, #cf430a);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.dock-play:active {
    transform: scale(0.97);
}

.dock-info {
    min-width: 0;
}

.dock-info strong,
.dock-info span {
    display: block;
}

.dock-info strong {
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.dock-info span {
    margin-bottom: 10px;
    color: #f5c18f;
    font-size: 0.85rem;
}

.dock-subtitle {
    color: #fff1cf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.audio-status {
    color: #f5c18f;
}

#progressBar {
    width: 100%;
    accent-color: var(--orange);
}

/* MOBILE */
@media (max-width: 760px) {
    .site-header {
        padding: 8px 10px;
    }

    .header-inner {
        min-height: 58px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .brand {
        width: auto;
        justify-content: flex-start;
        flex: 0 0 auto;
    }

    .brand img {
        width: 132px;
        height: auto;
        max-height: 50px;
        object-fit: contain;
    }

    .actions {
        width: auto;
        display: flex;
        flex-direction: row;
        gap: 7px;
        justify-content: flex-end;
        align-items: center;
        margin: 0;
        flex: 1 1 auto;
    }

    .actions a,
    .audio-shortcut {
        width: auto;
        min-height: 38px;
        padding: 9px 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.62rem;
        line-height: 1;
        letter-spacing: 0.035em;
        white-space: nowrap;
    }

    .audio-shortcut {
        gap: 5px;
    }

    .poster-section {
        width: 100%;
        margin-top: 0;
        margin-bottom: 18px;
        box-shadow: none;
    }

    /* No mobile o player deixa de ser fixo para não cobrir o conteúdo */
    .audio-dock {
        position: static;
        width: calc(100% - 24px);
        margin: 18px auto 28px;
        padding: 16px 14px;
        grid-template-columns: 64px 1fr;
        border-radius: 24px;
    }

    .dock-play {
        width: 64px;
        height: 64px;
        font-size: 1.55rem;
    }

    /* Remove a mensagem de status no mobile */
    .dock-info .audio-status {
        display: none;
    }

    .dock-info strong {
        margin-bottom: 5px;
    }

    .dock-subtitle {
        display: block;
        margin-bottom: 14px;
        color: #f5c18f;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.98rem;
        font-weight: 700;
    }
}

@media (max-width: 430px) {
    .site-header {
        padding: 7px 8px;
    }

    .header-inner {
        gap: 6px;
    }

    .brand img {
        width: 122px;
        max-height: 46px;
    }

    .actions {
        gap: 6px;
    }

    .actions a,
    .audio-shortcut {
        min-height: 36px;
        padding: 8px 8px;
        font-size: 0.56rem;
        letter-spacing: 0.025em;
    }

    .audio-dock {
        grid-template-columns: 1fr;
        text-align: center;
        width: calc(100% - 20px);
        margin-top: 14px;
    }

    .dock-play {
        margin: 0 auto;
    }

    .dock-info strong {
        margin-bottom: 5px;
        font-size: 1.35rem;
    }

    .dock-subtitle {
        margin-bottom: 12px;
        font-size: 1rem;
    }
}
