@charset 'utf-8';

@font-face {
    font-family: 'Akira';
    src: url('../fonts/akira.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Autonomous';
    src: url('../fonts/Autonomous.ttf') format('truetype');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Autonomous';
    src: url('../fonts/AutonomousExtraBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

/* =========================================================
   Radio Player — conceito "now playing app"
   Uma única linguagem visual: capa da música desfocada como
   fundo, superfícies translúcidas consistentes, um acento
   dourado e tipografia Poppins. Sem Bootstrap.
   ========================================================= */

:root {
    --accent: #d99a48;
    --accent-strong: #a65f24;
    --accent-ink: #1a100a;
    --brand-yellow: #fff0bd;
    --bg: #0a0810;
    --text: #fff5d6;
    --text-muted: rgba(255, 245, 214, 0.68);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(217, 154, 72, 0.22);
    --radius: 20px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
.hidden { display: none; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

/* ---- splash de apertura de la app instalada (solo móvil) ---- */

.mobile-splash { display: none; }

@media (max-width: 767px) {
    html.pwa-standalone .mobile-splash {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: grid;
        place-items: center;
        overflow: hidden;
        padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, rgba(10, 8, 16, 0.06), rgba(10, 8, 16, 0.34)),
            #0a0810 url('../img/mobile-splash-bg.png') center / cover no-repeat;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    html.pwa-standalone .mobile-splash::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(217, 154, 72, 0.04), rgba(10, 8, 16, 0.24) 72%);
        pointer-events: none;
    }

    html.pwa-standalone .mobile-splash.is-leaving {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-splash-logo {
        position: relative;
        z-index: 1;
        width: min(68vw, 320px);
        height: auto;
        object-fit: contain;
        filter:
            drop-shadow(0 22px 34px rgba(0, 0, 0, 0.72))
            drop-shadow(0 0 22px rgba(217, 154, 72, 0.28));
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    html.pwa-standalone .mobile-splash { transition: none; }
}

/* ---- fundo: capa da música desfocada + gradiente ---- */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

#bgCover {
    position: absolute;
    inset: 0;
    background: url('../img/cover.png') center / cover no-repeat;
    filter: blur(64px) saturate(140%);
    transform: scale(1.4);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.5) 0%, rgba(8, 10, 15, 0.75) 55%, var(--bg) 100%);
}

/* ---- estrutura ---- */

.app {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(20px + env(safe-area-inset-top)) 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 6%, rgba(217, 154, 72, 0.3), transparent 38%),
        radial-gradient(circle at 8% 100%, rgba(255, 240, 189, 0.1), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(10, 8, 16, 0.78));
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(217, 154, 72, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(217, 154, 72, 0.14);
    color: var(--text);
}

.masthead::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 48%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -10px 24px rgba(0, 8, 24, 0.14);
    pointer-events: none;
}

.masthead::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 18%;
    z-index: 1;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
}

.station-logo {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter:
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 10px rgba(217, 154, 72, 0.2));
}

.station-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#radioName {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#radioSlogan {
    color: var(--brand-yellow);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ---- player ---- */

.player {
    width: 100%;
    max-width: 420px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cover-album {
    --cover-line-angle: 0deg;
    position: relative;
    isolation: isolate;
    width: min(68vw, 300px);
    aspect-ratio: 1 / 1;
    flex: none;
    padding: 8px;
    border: 1px solid rgba(217, 154, 72, 0.42);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(217, 154, 72, 0.28), transparent 48%),
        linear-gradient(145deg, rgba(18, 14, 20, 0.97), rgba(42, 24, 10, 0.94)),
        url('../img/cover.png') center / cover no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 0 34px rgba(217, 154, 72, 0.16);
}

/* Una línea delgada recorre continuamente todo el marco del cover. */
.cover-album::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: 2;
    padding: 3px;
    border-radius: 32px;
    background: conic-gradient(
        from var(--cover-line-angle),
        transparent 0deg 278deg,
        rgba(217, 154, 72, 0.16) 292deg,
        rgba(217, 154, 72, 1) 315deg,
        rgba(255, 240, 189, 0.98) 336deg,
        rgba(230, 171, 91, 1) 352deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 6px rgba(217, 154, 72, 0.72));
    pointer-events: none;
}

.cover-album::after {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: 0;
    border: 1px solid rgba(217, 154, 72, 0.28);
    border-radius: 33px;
    box-shadow: 0 0 16px rgba(217, 154, 72, 0.22), 0 0 26px rgba(255, 240, 189, 0.08);
    pointer-events: none;
}

#currentCoverArt {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.player-info {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

.live-status,
.live-listeners {
    display: inline-flex;
    align-items: center;
}

.live-status { gap: 8px; }

.live-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.live-listeners {
    gap: 6px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.live-listeners .fa {
    color: var(--accent);
    font-size: 13px;
}

#listenerCount {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a5f;
    box-shadow: 0 0 10px #ff5a5f;
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

#currentSong {
    margin: 16px 0 4px;
    font-family: 'Autonomous', 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(26px, 6vw, 36px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#currentArtist {
    margin: 0;
    font-family: 'Autonomous', 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(15px, 3vw, 19px);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* ---- controles ---- */

.controls {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.control-cluster {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* botões utilitários circulares, mesma família visual do play */
.ctrl-btn {
    width: 52px;
    height: 52px;
    flex: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.3s ease;
}

.ctrl-btn:hover { background: var(--surface-strong); }
.ctrl-btn:active { transform: scale(0.94); }
.ctrl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.play-btn {
    width: 76px;
    height: 76px;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text);
    background: var(--surface-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
}

.play-btn:active { transform: scale(0.96); }
.play-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.play-btn .fa-play { margin-left: 5px; }

/* estado do player (#buttonPlay): o script.js atualiza o texto
   (PLAY/PAUSAR/...), mas ele fica só para leitores de tela — o ícone
   do botão já comunica o estado visualmente */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- volumen: botón circular + control desplegable en PC y móvil ---- */

.volume-wrap {
    display: flex;
    position: relative;
}

.volume-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(11, 14, 19, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.vol-value {
    flex: none;
    min-width: 42px;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-strong);
    cursor: pointer;
}

input[type=range]:focus { outline: none; }
input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 225, 231, 0.2);
}

input[type=range]::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--surface-strong);
}

input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 225, 231, 0.2);
}

/* o botão da letra herda .ctrl-btn; o script.js controla opacity/data-toggle */

/* ---- próxima música da fila (AzuraCast, index_azura.html) ---- */

.up-next {
    margin-top: 24px;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.up-next.hidden { display: none; }

.up-next-label {
    flex: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.up-next-cover {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: url('../img/cover.png') center / cover no-repeat;
}

.up-next-info { min-width: 0; }

.up-next-song {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-next-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- histórico ---- */

.historic {
    width: 100%;
    max-width: 880px;
    margin-top: 56px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* minmax(0, 1fr) trava a coluna na largura do container — sem isso a track
   "auto" cresce até o max-content de títulos longos (nowrap) e estoura a
   tela no celular em vez de deixar o ellipsis agir */
.history-list {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .history-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.apps-promo {
    width: 100%;
    margin: 38px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(217, 154, 72, 0.28);
    text-align: center;
}

.apps-intro {
    margin-bottom: 16px;
}

.apps-intro .section-title {
    margin-bottom: 8px;
    color: var(--brand-yellow);
}

.apps-intro p {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.app-badges {
    width: min(100%, 640px);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(217, 154, 72, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 0%, rgba(217, 154, 72, 0.18), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(10, 8, 16, 0.74));
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 12px 28px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(217, 154, 72, 0.07);
}

.app-badge {
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    min-height: 94px;
    display: grid;
    place-items: center;
    padding: 10px 16px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: background 0.2s ease, filter 0.2s ease;
}

.app-badge + .app-badge {
    border-left: 1px solid rgba(217, 154, 72, 0.24);
}

a.app-badge:hover,
a.app-badge:focus-visible {
    background: rgba(217, 154, 72, 0.09);
    filter: drop-shadow(0 10px 18px rgba(217, 154, 72, 0.28));
    outline: none;
}

.app-badge img {
    display: block;
    width: 100%;
    max-height: 74px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 640px) {
    .apps-promo {
        margin-top: 32px;
        padding-top: 26px;
    }
    .apps-intro { margin-bottom: 16px; }
    .apps-intro p {
        max-width: 300px;
        padding: 0 8px;
        font-size: 11px;
        line-height: 1.55;
    }
    .app-badges {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 7px;
        border-radius: 16px;
        align-items: stretch;
    }
    .app-badge {
        width: 100%;
        min-width: 0;
        min-height: 66px;
        padding: 8px 10px;
        border-radius: 8px;
    }
    .app-badge img { max-height: 52px; }
}

#historicSong article {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(217, 154, 72, 0.18), transparent 48%),
        linear-gradient(135deg, rgba(24, 20, 24, 0.92), rgba(38, 24, 13, 0.82));
    border: 1px solid rgba(217, 154, 72, 0.28);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 0 rgba(217, 154, 72, 0);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#historicSong article:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 154, 72, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 38px rgba(0, 0, 0, 0.4),
        0 0 22px rgba(217, 154, 72, 0.12);
}

.history-cover-frame {
    width: 68px;
    height: 68px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 4px;
    border: 1px solid rgba(217, 154, 72, 0.45);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(217, 154, 72, 0.14));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.36),
        0 0 16px rgba(217, 154, 72, 0.14);
}

.cover-historic {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.05);
}

.music-info {
    flex: 1 1 auto;
    min-width: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.music-info .song {
    font-family: 'Autonomous', 'Poppins', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-info .artist {
    font-family: 'Autonomous', 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 420px) {
    #historicSong article {
        gap: 10px;
        padding: 10px;
    }

    .history-cover-frame {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

}

/* ---- modal de letra ---- */

#modalLyrics {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 12, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-card {
    width: min(560px, 100%);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #12161d;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.modal-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

#lyricsSong {
    margin: 0;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close {
    flex: none;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: var(--surface-strong);
    color: var(--text);
}

#lyric {
    padding: 20px 22px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
}

body.modal-open { overflow: hidden; }

@media (max-width: 575px) {
    .volume-popover {
        left: 0;
        width: min(220px, calc(100vw - 40px));
        transform: none;
    }

}

/* ---- desktop: capa à esquerda, informações à direita ---- */

@media (min-width: 900px) {
    .player {
        max-width: 880px;
        margin-top: 56px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 64px;
    }

    .cover-album { width: 340px; }

    .player-info {
        max-width: 440px;
        align-items: flex-start;
        text-align: left;
    }

    .controls {
        flex-direction: row;
        gap: 18px;
    }
}

/* ---- modo clipe: o vídeo da música assume o lugar da capa ---- */

.cover-album { position: relative; }

.cover-album.is-clip {
    aspect-ratio: 16 / 9;
    width: min(100%, 480px);
}

.cover-album.is-clip #currentCoverArt { visibility: hidden; }

.cover-album iframe.clip-frame {
    position: absolute;
    inset: 8px;
    z-index: 3;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 0;
    border-radius: 20px;
}

.clip-toggle.is-active {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---- histórico com clipe: card clicável para assistir o vídeo ---- */

#historicSong article.has-clip {
    cursor: pointer;
    position: relative;
    padding-right: 12px;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.historic article.has-clip:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 154, 72, 0.62);
}

/* Sello pequeño sobre la esquina de la portada cuando hay video disponible. */
.historic article.has-clip::after {
    content: "";
    position: absolute;
    left: 58px;
    bottom: 8px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="m8 5 12 7-12 7z"/></svg>') center / 11px no-repeat,
        #ff0033;
    border: 2px solid rgba(8, 22, 14, 0.94);
    opacity: 0.92;
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.2s ease;
}

.historic article.has-clip:hover::after {
    opacity: 1;
    transform: scale(1.08);
    background-color: #ff174a;
}

@media (max-width: 420px) {
    #historicSong article.has-clip { padding-right: 10px; }
    .historic article.has-clip::after {
        left: 48px;
        bottom: 6px;
    }
}

/* ---- copyright no rodapé ---- */

.partner {
    width: 100%;
    max-width: 880px;
    margin-top: 86px;
    text-align: center;
    padding: 28px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 18px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 154, 72, 0.32);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(10, 8, 16, 0.72));
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    color: var(--brand-yellow);
    font-size: 18px;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 240, 189, 0.72);
    background: linear-gradient(145deg, rgba(217, 154, 72, 0.28), rgba(10, 8, 16, 0.78));
    color: #fff0bd;
    outline: none;
}

.social-links svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

@media (max-width: 767px) {
    .section-title {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .partner {
        width: 100%;
        margin-top: 72px;
        padding: 24px 0 calc(20px + env(safe-area-inset-bottom));
        font-size: clamp(7.5px, 2.5vw, 11px);
        line-height: 1.2;
        text-align: center;
        overflow: hidden;
    }

    .partner > span {
        display: block;
        width: max-content;
        max-width: 100%;
        margin: 0 auto;
        white-space: nowrap;
        letter-spacing: 0;
    }

    .social-links {
        gap: 8px;
        margin-bottom: 16px;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .social-links svg {
        width: 16px;
        height: 16px;
    }
}
