/* Landing estilo web app — escopo: .app-landing-page */

.app-landing-page {
    --app-landing-black: #0a0a0a;
    --app-landing-black-soft: #141414;
    /* Cor de marca vinda do JSON (color); fallback no body inline */
    --app-brand: var(--app-accent);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Cobre toda a altura da janela e evita “buraco” branco por baixo (fundo do body em styles.css) */
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #070707;
}

/* Sem retângulo azul no toque; mantém foco visível para teclado */
.app-landing-page :where(
        button,
        a[href],
        input,
        textarea,
        select,
        summary,
        [role='button'],
        [tabindex]:not([tabindex='-1'])
    ):focus {
    outline: none;
}

.app-landing-page :where(
        button,
        a[href],
        input,
        textarea,
        select,
        summary,
        [role='button'],
        [tabindex]:not([tabindex='-1'])
    ):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--app-brand) 75%, #ffffff);
    outline-offset: 3px;
}

.app-landing-page .app-landing-main {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: clamp(5rem, 12vw, 7rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
    overflow: hidden;
}

.app-landing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Base escura + brilho suave em tons neutros (--app-primary / --app-accent em app-landing.php: cinza escuro + cinza claro) */
.app-landing-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 48% at 78% 12%, color-mix(in srgb, var(--app-brand) 32%, transparent), transparent 55%),
        radial-gradient(ellipse 85% 55% at 15% -5%, color-mix(in srgb, var(--app-primary) 45%, transparent), transparent 58%),
        radial-gradient(ellipse 70% 45% at 92% 105%, color-mix(in srgb, #a3a3a3 22%, transparent), transparent 52%),
        linear-gradient(165deg, #070707 0%, #101010 42%, #0a0a0a 100%);
}

.app-landing-bg-blobs {
    position: absolute;
    inset: -35% -25%;
}

.app-landing-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.app-landing-bg-blob--1 {
    width: min(52vmin, 480px);
    height: min(52vmin, 480px);
    background: color-mix(in srgb, var(--app-primary) 85%, #ffffff 15%);
    top: 8%;
    left: -5%;
    animation: app-landing-blob-1 22s ease-in-out infinite;
}

.app-landing-bg-blob--2 {
    width: min(44vmin, 400px);
    height: min(44vmin, 400px);
    background: color-mix(in srgb, var(--app-brand) 42%, color-mix(in srgb, #737373 55%, var(--app-primary) 45%));
    bottom: 5%;
    right: -8%;
    animation: app-landing-blob-2 28s ease-in-out infinite;
}

.app-landing-bg-blob--3 {
    width: min(38vmin, 360px);
    height: min(38vmin, 360px);
    background: color-mix(in srgb, var(--app-primary) 45%, #ffffff 55%);
    top: 38%;
    right: 18%;
    opacity: 0.22;
    animation: app-landing-blob-3 32s ease-in-out infinite;
}

@keyframes app-landing-blob-1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    45% {
        transform: translate(12%, 8%) scale(1.08);
    }

    70% {
        transform: translate(-4%, 14%) scale(0.96);
    }
}

@keyframes app-landing-blob-2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-10%, -12%) scale(1.12);
    }

    65% {
        transform: translate(6%, -4%) scale(0.94);
    }
}

@keyframes app-landing-blob-3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-18%, 10%) scale(1.06);
    }
}

.app-landing-bg-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;
}

.app-landing-bg-wave-group--a {
    transform-origin: 50% 20%;
    animation: app-landing-wave-drift-a 18s ease-in-out infinite;
}

.app-landing-bg-wave-group--b {
    transform-origin: 50% 95%;
    animation: app-landing-wave-drift-b 24s ease-in-out infinite;
}

@keyframes app-landing-wave-drift-a {
    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-3%) translateY(2%) scale(1.02);
    }
}

@keyframes app-landing-wave-drift-b {
    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    50% {
        transform: translateX(4%) translateY(-2%) scale(1.03);
    }
}

.app-landing-bg-wave {
    fill: var(--app-primary);
}

.app-landing-bg-wave--a {
    fill-opacity: 0.2;
}

.app-landing-bg-wave--b {
    fill: #a3a3a3;
    fill-opacity: 0.1;
}

/* Legibilidade nas bordas + profundidade */
.app-landing-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

@supports not (color: color-mix(in srgb, black, white)) {
    .app-landing-bg-gradient {
        background: linear-gradient(165deg, #070707 0%, #151515 50%, #0a0a0a 100%);
    }

    .app-landing-bg-blob--1 {
        background: var(--app-primary);
        opacity: 0.35;
    }

    .app-landing-bg-blob--2 {
        background: #737373;
        opacity: 0.28;
    }

    .app-landing-bg-blob--3 {
        background: var(--app-primary);
        opacity: 0.14;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-bg-blob,
    .app-landing-bg-wave-group--a,
    .app-landing-bg-wave-group--b {
        animation: none !important;
    }

    .app-landing-bg-blob {
        opacity: 0.28;
    }

    .app-landing-bg-blob--3 {
        opacity: 0.12;
    }
}

.app-landing-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 992px) {
    .app-landing-inner {
        grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
    }
}

/* Mockup telefone */
.app-landing-mockup-col {
    display: flex;
    justify-content: center;
    order: 1;
}

/* Tablet / desktop (>767px): mockup mais largo que o base mobile (280px). */
@media (min-width: 768px) {
    .app-landing-phone-bezel {
        width: min(400px, 48vw);
        padding: 14px;
        border-radius: 42px;
    }

    .app-landing-phone-screen,
    .app-landing-phone-screen-img,
    .app-landing-phone-screen--fallback {
        border-radius: 32px;
    }
}

@media (min-width: 992px) {
    .app-landing-mockup-col {
        order: 0;
        justify-content: flex-end;
        align-items: center;
    }

    /* Mockup grande em desktop: altura + aspect-ratio mais “largo” (1/1.52). */
    .app-landing-phone-bezel {
        width: auto;
        min-width: min(420px, 38vw);
        height: clamp(580px, 84vh, 940px);
        aspect-ratio: 1 / 1.52;
        padding: 18px;
        border-radius: 52px;
    }

    .app-landing-phone-screen,
    .app-landing-phone-screen-img,
    .app-landing-phone-screen--fallback {
        border-radius: 38px;
    }

    /* O bezel agora tem altura fixa via clamp(vh), então o screen interno
       não precisa do aspect-ratio (caía em conflito com height: 100% do
       flex pai). Force height/width 100% para preencher o bezel. */
    .app-landing-phone-screen--fallback {
        height: 100%;
        aspect-ratio: auto;
    }
}

@keyframes app-landing-phone-float {
    0%,
    100% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(5px);
    }
}

.app-landing-phone {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18));
    animation: app-landing-phone-float 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-phone {
        animation: none;
    }
}

.app-landing-phone-bezel {
    width: min(350px, 78vw);
    border-radius: 36px;
    padding: 12px;
    background: linear-gradient(145deg, var(--app-landing-black), var(--app-landing-black-soft));
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-landing-phone-screen,
.app-landing-phone-screen-img {
    display: block;
    width: 100%;
    border-radius: 26px;
    aspect-ratio: 9 / 18;
    object-fit: cover;
    background: var(--app-landing-black);
}

.app-landing-phone-screen--fallback {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.app-landing-fallback-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 110% 85% at 50% 8%,
            color-mix(in srgb, var(--app-brand) 28%, transparent),
            transparent 52%
        ),
        radial-gradient(
            ellipse 100% 75% at 50% 0%,
            color-mix(in srgb, #525252 35%, transparent),
            transparent 55%
        );
    animation: app-landing-fallback-glow 5s ease-in-out infinite;
}

@keyframes app-landing-fallback-glow {
    0%,
    100% {
        opacity: 0.82;
    }

    50% {
        opacity: 1;
    }
}

.app-landing-fallback-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.app-landing-fallback-header {
    position: relative;
    z-index: 2;
    padding: 10px 10px 6px;
    text-align: center;
    background: var(--app-accent);
}

.app-landing-fallback-station-name {
    margin: 0;
    font-size: clamp(0.62rem, 2.6vw, 0.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--app-primary);
    text-transform: uppercase;
    line-height: 1.25;
}

.app-landing-fallback-wave-wrap {
    position: relative;
    z-index: 2;
    line-height: 0;
    margin-bottom: -1px;
}

.app-landing-fallback-wave-svg {
    display: block;
    width: 100%;
    height: clamp(26px, 7.5vw, 34px);
}

.app-landing-fallback-wave-path {
    fill: var(--app-primary);
}

.app-landing-fallback-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--app-primary);
    padding: 6px 8px 8px;
    min-height: 0;
    animation: app-landing-fallback-main-drift 7s ease-in-out infinite;
}

@keyframes app-landing-fallback-main-drift {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-fallback-main {
        animation: none;
    }
}

.app-landing-fallback-main .app-landing-fallback-circle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px 6px;
    margin-top: -14px;
    position: relative;
    z-index: 2;
}

.app-landing-fallback-main .app-landing-fallback-circle img {
    max-width: min(168px, 46vw);
    max-height: min(28vh, 176px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--app-accent) 80%, #ffffff 20%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.app-landing-fallback-initials {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    font-weight: 800;
    color: var(--app-accent);
    letter-spacing: -0.02em;
}

.app-landing-fallback-main .app-landing-fallback-tagline {
    margin: 0;
    padding: 6px 12px 10px;
    text-align: center;
    font-size: clamp(0.64rem, 2.5vw, 0.8rem);
    font-weight: 800;
    color: var(--app-accent);
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-landing-fallback-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 6px 10px 10px;
}

.app-landing-fallback-chip {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-accent);
    color: var(--app-primary);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.app-landing-fallback-chip:hover {
    transform: scale(1.06);
}

.app-landing-fallback-controls-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 10px;
    flex-shrink: 0;
}

.app-landing-fallback-controls-left {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.app-landing-fallback-controls-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.app-landing-fallback-controls-row .app-landing-mockup-play,
.app-landing-fallback-controls-row .app-landing-mockup-play-spacer {
    justify-self: center;
}

.app-landing-mockup-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--app-accent) 90%, #ffffff);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-landing-mockup-icon-btn:hover {
    opacity: 0.92;
    transform: scale(1.06);
}

.app-landing-mockup-icon-btn:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
}

.app-landing-mockup-play-spacer {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.app-landing-fallback-wa {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--app-accent);
    color: var(--app-primary);
    text-decoration: none;
    font-size: 0.72rem;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-landing-fallback-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.app-landing-fallback-wa-icon {
    font-size: 1.65rem;
    flex-shrink: 0;
    line-height: 1;
    color: #404040;
}

.app-landing-fallback-wa-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-landing-fallback-wa-text strong {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}

.app-landing-fallback-wa-text small {
    font-weight: 600;
    opacity: 0.95;
    font-size: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-fallback-ambient {
        animation: none;
        opacity: 0.9;
    }
}

.app-landing-mockup-play,
.app-landing-phone-screen--fallback .app-landing-mockup-share {
    appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-landing-mockup-play:not(.is-loading):hover,
.app-landing-phone-screen--fallback .app-landing-mockup-share:hover {
    transform: scale(1.06);
    opacity: 0.95;
}

.app-landing-mockup-play:focus-visible,
.app-landing-phone-screen--fallback .app-landing-mockup-share:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 3px;
}

.app-landing-mockup-play-visual {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--app-accent);
    border: 3px solid color-mix(in srgb, var(--app-accent) 65%, #000000 35%);
    box-shadow:
        0 8px 28px color-mix(in srgb, var(--app-accent) 40%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    font-size: 1.15rem;
    overflow: hidden;
    animation: app-landing-play-breathe 2.8s ease-in-out infinite;
}

@keyframes app-landing-play-breathe {
    0%,
    100% {
        box-shadow:
            0 8px 28px color-mix(in srgb, var(--app-accent) 40%, transparent),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
        transform: scale(1);
    }

    50% {
        box-shadow:
            0 10px 36px color-mix(in srgb, var(--app-accent) 55%, transparent),
            0 0 0 1px rgba(255, 255, 255, 0.18) inset;
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-mockup-play-visual {
        animation: none;
    }
}

.app-landing-mockup-play-visual .app-landing-mockup-play-icon-main.fa-play {
    margin-left: 3px;
}

.app-landing-mockup-play-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.app-landing-mockup-play.is-loading .app-landing-mockup-play-loading-overlay {
    opacity: 1;
    visibility: visible;
}

.app-landing-mockup-play.is-loading .app-landing-mockup-play-icon-main {
    opacity: 0.2;
}

.app-landing-mockup-play.is-loading {
    cursor: wait;
    pointer-events: none;
}

.app-landing-fallback-controls-row .app-landing-mockup-share.app-landing-mockup-icon-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: color-mix(in srgb, var(--app-accent) 88%, #ffffff);
}

/* Toast (player / partilhar) */
.app-landing-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    max-width: min(90vw, 360px);
    padding: 12px 18px;
    background: var(--app-landing-black);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    word-break: break-word;
}

.app-landing-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-landing-sr-audio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Coluna conteúdo */
.app-landing-content-col {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 992px) {
    .app-landing-content-col {
        order: 1;
    }
}

/* Card lateral — em vez de branco puro, recebe um leve toque da cor da rádio
   (mistura sutil de --app-brand) e uma borda/sombra coloridas para integrar
   visualmente o conteúdo à identidade da emissora. */
.app-landing-card {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--app-brand) 10%, #ffffff 90%) 0%,
            color-mix(in srgb, var(--app-brand) 4%, #ffffff 96%) 100%);
    border: 1px solid color-mix(in srgb, var(--app-brand) 22%, transparent);
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.10),
        0 0 0 1px color-mix(in srgb, var(--app-brand) 8%, transparent);
}

.app-landing-card-head {
    text-align: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--app-brand) 18%, transparent);
    padding-bottom: 1rem;
}

.app-landing-card-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--app-primary);
    letter-spacing: -0.02em;
}

.app-landing-card-tagline {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.app-landing-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* Tom da cor da rádio (em vez de cinza neutro) para integrar à identidade. */
    color: color-mix(in srgb, var(--app-brand) 60%, #64748b 40%);
}

.app-landing-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
}

.app-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.25rem;
    justify-content: center;
}

.app-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.app-landing-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Botões primário/accent agora puxam um gradiente sutil da cor da rádio
   (via color-mix com preto) para identidade consistente com o restante da página. */
.app-landing-btn--primary {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--app-brand) 70%, var(--app-landing-black) 30%) 0%,
            color-mix(in srgb, var(--app-brand) 35%, var(--app-landing-black) 65%) 100%);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--app-brand) 25%, rgba(0, 0, 0, 0.4));
}

.app-landing-btn--accent {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--app-brand) 70%, var(--app-landing-black) 30%) 0%,
            color-mix(in srgb, var(--app-brand) 35%, var(--app-landing-black) 65%) 100%);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--app-brand) 25%, rgba(0, 0, 0, 0.4));
}

.app-landing-btn--outline {
    border: 2px solid color-mix(in srgb, var(--app-brand) 60%, var(--app-landing-black) 40%);
    color: color-mix(in srgb, var(--app-brand) 50%, var(--app-landing-black) 50%);
    background: transparent;
}

.app-landing-btn--primary:hover,
.app-landing-btn--accent:hover {
    background: #1a1a1a;
}

.app-landing-btn--outline:hover {
    background: rgba(0, 0, 0, 0.06);
}

button.app-landing-btn {
    font: inherit;
    cursor: pointer;
    border: none;
}

/* Modal PWA — tema AppRadio (escuro + acentos da emissora) */
.app-landing-pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.app-landing-pwa-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-landing-pwa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-landing-pwa-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(92vh, 640px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--app-accent) 35%, rgba(255, 255, 255, 0.12));
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--app-primary) 18%, #0c0c10) 0%,
        #12121a 48%,
        #0a0a0f 100%
    );
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.app-landing-pwa-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--app-primary) 42%, transparent),
        color-mix(in srgb, var(--app-accent) 28%, transparent)
    );
}

.app-landing-pwa-modal__title {
    margin: 0;
    flex: 1;
    font-size: clamp(0.72rem, 2.2vw, 0.82rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8fafc;
    line-height: 1.35;
}

.app-landing-pwa-modal__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-landing-pwa-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
}

.app-landing-pwa-modal__body {
    display: grid;
    grid-template-columns: 1fr min(42%, 200px);
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 1.15rem 1.15rem 1rem;
    align-items: start;
}

@media (max-width: 520px) {
    .app-landing-pwa-modal__body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .app-landing-pwa-modal__steps {
        text-align: left;
    }
}

.app-landing-pwa-modal__how {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
}

.app-landing-pwa-modal__steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.app-landing-pwa-modal__steps li {
    margin-bottom: 0.5rem;
}

.app-landing-pwa-modal__steps li:last-child {
    margin-bottom: 0;
}

.app-landing-pwa-modal__step-install .app-landing-pwa-modal__platform-line {
    margin: 0.55rem 0 0;
    line-height: 1.55;
}

.app-landing-pwa-modal__step-install .app-landing-pwa-modal__platform-line:first-child {
    margin-top: 0;
}

.app-landing-pwa-modal__step-install .app-landing-pwa-modal__platform-line strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
}

.app-landing-pwa-modal__qr-wrap {
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.app-landing-pwa-modal__qr {
    display: block;
    width: 100%;
    height: auto;
    max-width: 240px;
    vertical-align: middle;
}

.app-landing-pwa-modal__footer {
    padding: 0.75rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: color-mix(in srgb, var(--app-accent) 22%, rgba(15, 23, 42, 0.92));
}

.app-landing-pwa-modal__url {
    font-size: 0.78rem;
    font-weight: 600;
    word-break: break-all;
    color: #f8fafc;
}

body.app-landing-pwa-modal-open {
    overflow: hidden;
}

/* Botão programação sem grade na API (presets / emissoras sem has_schedule) */
.app-mock-schedule-btn--muted {
    opacity: 0.52;
}

/* Modal programação diária (landing app) */
.app-landing-schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

@media (min-width: 540px) {
    .app-landing-schedule-modal {
        align-items: center;
        padding: clamp(0.75rem, 3vw, 1.5rem);
    }
}

.app-landing-schedule-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-landing-schedule-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.app-landing-schedule-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88vh, 520px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    border: 1px solid color-mix(in srgb, var(--app-accent) 30%, rgba(255, 255, 255, 0.1));
    border-bottom: none;
    background: linear-gradient(
        168deg,
        color-mix(in srgb, var(--app-primary) 22%, #0c0c10) 0%,
        #12121a 52%,
        #0a0a0f 100%
    );
    box-shadow:
        0 -12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

@media (min-width: 540px) {
    .app-landing-schedule-modal__panel {
        width: min(100%, 400px);
        max-height: min(85vh, 560px);
        border-radius: 18px;
        border-bottom: 1px solid color-mix(in srgb, var(--app-accent) 30%, rgba(255, 255, 255, 0.1));
    }
}

.app-landing-schedule-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1rem 1rem 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.app-landing-schedule-modal__head-text {
    min-width: 0;
    flex: 1;
}

.app-landing-schedule-modal__title {
    margin: 0;
    font-size: clamp(0.88rem, 2.8vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f8fafc;
    line-height: 1.3;
}

.app-landing-schedule-modal__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.35;
}

.app-landing-schedule-modal__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-landing-schedule-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
}

.app-landing-schedule-modal__body {
    flex: 1;
    overflow: auto;
    padding: 0.65rem 0.85rem 1.1rem;
    -webkit-overflow-scrolling: touch;
}

.app-landing-schedule-state {
    padding: 1.5rem 0.75rem;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.app-landing-schedule-state[data-state='loading'] {
    color: #94a3b8;
}

.app-landing-schedule-state[data-state='error'] {
    color: #fca5a5;
}

.app-landing-schedule-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-landing-schedule-item {
    display: grid;
    grid-template-columns: 5.1rem minmax(0, 1fr);
    gap: 0.65rem 0.75rem;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-landing-schedule-item:last-child {
    border-bottom: none;
}

.app-landing-schedule-item__time {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--app-brand) 85%, #e2e8f0);
    line-height: 1.35;
}

.app-landing-schedule-item__main {
    min-width: 0;
}

.app-landing-schedule-item__title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
}

.app-landing-schedule-item__detail {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #94a3b8;
}

body.app-landing-schedule-modal-open {
    overflow: hidden;
}

.app-landing-install {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.app-landing-install-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-primary);
}

.app-landing-install-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.app-landing-install-steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #334155;
}

.app-landing-install-steps li {
    margin-bottom: 0.5rem;
}

/* Mobile: conteúdo do mockup em ecrã inteiro (referência web app / hoost) */
@media (max-width: 767px) {
    /* Altura estável no mobile (barra de URL / iOS): 100vh + dvh/svh + -webkit-fill-available */
    html {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }

    .app-landing-desktop-only {
        display: none !important;
    }

    .app-landing-page {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        box-sizing: border-box;
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .app-landing-page .app-landing-main {
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        box-sizing: border-box;
    }

    .app-landing-bg {
        display: none;
    }

    /* Fallback full-screen: não cortar o brilho da logo */
    .app-landing-phone-screen--fallback {
        overflow: visible;
    }

    /* Cor da rádio (JSON color → --app-brand): mancha + rotação + pulso suave */
    .app-landing-fallback-main {
        overflow: visible;
        min-height: 0;
        background:
            radial-gradient(ellipse 92% 58% at 50% 32%, color-mix(in srgb, var(--app-brand) 22%, transparent), transparent 54%),
            radial-gradient(ellipse 92% 58% at 50% 34%, color-mix(in srgb, var(--app-accent) 12%, transparent), transparent 56%),
            var(--app-primary);
    }

    .app-landing-fallback-main::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: radial-gradient(ellipse 75% 55% at 50% 40%, color-mix(in srgb, var(--app-brand) 18%, transparent), transparent 65%);
        animation: app-landing-brand-pulse 7s ease-in-out infinite;
    }

    .app-landing-fallback-main > .app-landing-fallback-tagline,
    .app-landing-fallback-main > .app-landing-fallback-chips {
        position: relative;
        z-index: 1;
    }

    .app-landing-fallback-main .app-landing-fallback-circle {
        overflow: visible;
    }

    .app-landing-fallback-main .app-landing-fallback-circle::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 200%;
        height: 200%;
        margin-left: -100%;
        margin-top: -100%;
        z-index: 0;
        pointer-events: none;
        border-radius: 50%;
        background:
            radial-gradient(ellipse 44% 50% at 44% 46%, color-mix(in srgb, var(--app-brand) 52%, transparent) 0%, transparent 64%),
            radial-gradient(ellipse 50% 44% at 58% 54%, color-mix(in srgb, var(--app-accent) 48%, transparent) 0%, transparent 68%);
        filter: blur(20px);
        opacity: 0.92;
        animation: app-landing-logo-stain-rotate 22s linear infinite;
    }

    .app-landing-fallback-main .app-landing-fallback-circle img,
    .app-landing-fallback-main .app-landing-fallback-circle .app-landing-fallback-initials {
        position: relative;
        z-index: 1;
    }

    .app-landing-inner {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        max-width: none;
        margin: 0;
        gap: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .app-landing-mockup-col {
        display: flex;
        flex: 1;
        min-height: 0;
        width: 100%;
        align-items: stretch;
        box-sizing: border-box;
    }

    .app-landing-phone {
        animation: none;
        filter: none;
        width: 100%;
        max-width: none;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .app-landing-phone-bezel {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        border-radius: 0;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: transparent;
        box-shadow: none;
        box-sizing: border-box;
    }

    /* flex:1 + min-height:0 preenche o ecrã; sem min-height:100vh aqui (empurrava o conteúdo para o topo) */
    .app-landing-phone-screen,
    .app-landing-phone-screen--fallback {
        flex: 1;
        min-height: 0;
        width: 100%;
        border-radius: 0;
        aspect-ratio: auto;
        box-sizing: border-box;
    }

    .app-landing-phone-screen-img {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
        aspect-ratio: unset;
    }

    .app-landing-fallback-stack {
        flex: 1;
        min-height: 0;
    }

    .app-landing-fallback-wa {
        flex-shrink: 0;
    }

    .app-landing-fallback-header {
        padding: calc(12px + env(safe-area-inset-top, 0)) 14px 10px;
    }

    .app-landing-fallback-wave-svg {
        height: clamp(34px, 9vw, 46px);
    }

    .app-landing-fallback-station-name {
        font-size: clamp(0.88rem, 4.2vw, 1.12rem);
    }

    .app-landing-fallback-main .app-landing-fallback-circle img {
        max-width: min(260px, 64vw);
        max-height: min(38vh, 260px);
    }

    .app-landing-fallback-initials {
        font-size: clamp(3rem, 14vw, 4.25rem);
    }

    .app-landing-fallback-main .app-landing-fallback-tagline {
        font-size: clamp(0.85rem, 3.6vw, 1.08rem);
    }

    .app-landing-fallback-chip {
        width: 58px;
        height: 58px;
        font-size: 1.22rem;
    }

    .app-landing-fallback-controls-row {
        padding: 14px 16px 16px;
        gap: 12px;
    }

    .app-landing-fallback-controls-left {
        gap: 12px;
    }

    .app-landing-fallback-controls-row .app-landing-mockup-icon-btn,
    .app-landing-fallback-controls-row .app-landing-mockup-share.app-landing-mockup-icon-btn {
        width: 56px;
        height: 56px;
        font-size: 2.60rem;
    }

    .app-landing-phone-screen--fallback .app-landing-mockup-play-visual {
        width: 80px;
        height: 80px;
        font-size: 1.48rem;
    }

    .app-landing-phone-screen--fallback .app-landing-mockup-play-spacer {
        width: 80px;
        height: 80px;
    }

    .app-landing-fallback-wa {
        margin: 0 12px 14px;
        padding: 15px 16px;
        font-size: 0.88rem;
        border-radius: 18px;
    }

    .app-landing-fallback-wa-icon {
        font-size: 2.1rem;
    }

    .app-landing-fallback-wa-text strong {
        font-size: 0.88rem;
    }

    .app-landing-fallback-wa-text small {
        font-size: 0.8rem;
    }

    .app-landing-phone-screen--fallback .app-landing-mockup-play-loading-overlay {
        font-size: 1.2rem;
    }
}

@keyframes app-landing-logo-stain-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes app-landing-brand-pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 0.95;
        transform: scale(1.03);
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .app-landing-fallback-main .app-landing-fallback-circle::before {
        animation: none;
    }

    .app-landing-fallback-main::after {
        animation: none;
        opacity: 0.75;
    }
}

/* Fallback sem color-mix (navegadores antigos) */
@supports not (color: color-mix(in srgb, black, white)) {
    .app-landing-btn--primary,
    .app-landing-btn--accent {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    }
}

.footer{
    margin-top: 0 !important;
}

/* ==========================================================================
   Mockup mobile "web rádio simples" (.app-mock-*)
   --------------------------------------------------------------------------
   Espelha a versão usada em /crie_sua_radio/personalizacao.php (preview ao
   vivo do criador de rádios). Usa --app-brand do <body> da landing como cor
   tema (igual ao --pers-brand do criador).

   Convive com .app-landing-phone-screen--fallback que continua aplicando
   position:relative + flex column + overflow:hidden (compatível).
   ========================================================================== */

.app-mock-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, color-mix(in srgb, var(--app-brand) 35%, transparent), transparent 65%),
        radial-gradient(ellipse 80% 60% at 50% 100%, color-mix(in srgb, var(--app-brand) 22%, transparent), transparent 60%),
        linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 0 0;
    box-sizing: border-box;
    text-align: center;
    transition: background 0.4s ease;
}

.app-mock-station-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 4px 0 10px;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
    color: #fff;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Equalizador animado (substitui o wave SVG estático). */
.app-mock-equalizer {
    width: 100%;
    height: 28px;
    margin: 2px 0 12px;
    padding: 0 22%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
}

.app-mock-equalizer span {
    flex: 1 1 0;
    min-width: 3px;
    max-width: 7px;
    height: 30%;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--app-brand) 95%, #ffffff 5%) 0%,
        color-mix(in srgb, var(--app-brand) 60%, transparent) 100%
    );
    box-shadow: 0 0 8px color-mix(in srgb, var(--app-brand) 45%, transparent);
    transform-origin: bottom center;
    transform: scaleY(0.28);
    opacity: 0.7;
    animation: none;
    will-change: transform;
    transition: opacity 0.2s ease;
}

/* Fallback: animação só com playback ativo (data-eq-active) e sem Web Audio “live”. */
.app-mock-screen[data-eq-active='1'] .app-mock-equalizer:not(.app-mock-equalizer--live) span {
    animation: app-mock-equalizer-bounce 0.34s ease-in-out infinite;
    box-shadow: 0 0 14px color-mix(in srgb, var(--app-brand) 75%, transparent);
}

.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(1) { animation-delay: -0.20s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(2) { animation-delay: -0.45s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(3) { animation-delay: -0.05s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(4) { animation-delay: -0.30s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(5) { animation-delay: -0.15s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(6) { animation-delay: -0.50s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(7) { animation-delay: -0.25s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(8) { animation-delay: -0.40s; }
.app-mock-equalizer:not(.app-mock-equalizer--live) span:nth-child(9) { animation-delay: -0.10s; }

/* Pausado / idle: força barras baixas (não depende só da classe is-playing).
   !important nos transforms cobre o caso de o JS ter deixado styles inline
   residuais (apesar do removeProperty em stopEqLive) — defesa em profundidade. */
.app-mock-screen:not([data-eq-active='1']) .app-mock-equalizer span {
    animation: none !important;
    transform: scaleY(0.28) !important;
    opacity: 0.7 !important;
}

@keyframes app-mock-equalizer-bounce {
    0%, 100% { transform: scaleY(0.22); opacity: 0.65; }
    50%      { transform: scaleY(1);    opacity: 1; }
}

.app-mock-equalizer--live span {
    animation: none !important;
    transition: transform 0.05s ease-out, opacity 0.1s ease;
    opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
    .app-mock-equalizer span {
        animation: none !important;
        transform: scaleY(0.55);
        height: 65%;
        opacity: 0.85;
        transition: none;
    }
}

.app-mock-body {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 6px;
    overflow: hidden;
    position: relative;
}

/* Fallback (logo + descrição) — visível por padrão; trocado pelo .app-mock-track
   quando o Shazam identifica uma música via JS. */
.app-mock-fallback {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: app-mock-fade-in 0.32s ease;
}

.app-mock-fallback[hidden] {
    display: none !important;
}

/* Logo agora quadrada com cantos suaves (em vez de redonda). */
.app-mock-logo {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    background: #0a0a0a;
    border: 2px solid color-mix(in srgb, var(--app-brand) 65%, #ffffff 5%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 35px color-mix(in srgb, var(--app-brand) 55%, transparent);
    transition: border-color 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.app-mock-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-mock-logo-initials {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--app-brand) 75%, #fff 25%);
}

.app-mock-description {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
    max-width: 92%;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-align: center;
}

.app-mock-description[hidden] {
    display: none !important;
}

/* RDS — substitui visualmente a descrição quando o stream envia ICY
   metadata. Texto centrado, com eyebrow discreta. */
.app-mock-rds {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    max-width: 92%;
    text-align: center;
    animation: app-mock-fade-in 0.32s ease;
}

.app-mock-rds[hidden] {
    display: none !important;
}

.app-mock-rds__eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: color-mix(in srgb, var(--app-brand) 80%, #fff 20%);
}

.app-mock-rds__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fafafa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.app-mock-rds__artist {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.app-mock-rds__artist[hidden] {
    display: none !important;
}

/* Estado "música detectada" — capa grande quadrada + título + artista. */
.app-mock-track {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: app-mock-fade-in 0.32s ease;
}

.app-mock-track[hidden] {
    display: none !important;
}

.app-mock-track-cover {
    position: relative;
    width: min(230px, 70%);
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.55),
        0 0 22px color-mix(in srgb, var(--app-brand) 35%, transparent);
    transition:
        opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-mock-track-info {
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transicao na troca de musica: fade-out + slide-up + scale-down da capa,
   depois fade-in com bounce do novo conteudo (cubic-bezier "back-out" no
   transform da capa). */
.app-mock-track.is-changing .app-mock-track-cover {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
}

.app-mock-track.is-changing .app-mock-track-info {
    opacity: 0;
    transform: translateY(6px);
}

.app-mock-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Quando img sem src/erro, exibimos o fallback via classe no pai. */
}

.app-mock-track-cover-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 3rem;
}

.app-mock-track.is-no-cover .app-mock-track-cover img {
    display: none;
}

.app-mock-track.is-no-cover .app-mock-track-cover-fallback {
    display: flex;
}

.app-mock-track-info {
    width: 100%;
    text-align: center;
    padding: 0 8px;
}

.app-mock-track-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: color-mix(in srgb, var(--app-brand) 80%, #fff 20%);
}

.app-mock-track-title {
    margin: 0 0 0.18rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fafafa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.app-mock-track-artist {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

@keyframes app-mock-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .app-mock-fallback,
    .app-mock-track {
        animation: none;
    }
    .app-mock-track-cover,
    .app-mock-track-info {
        transition: none;
    }
}

/* Footer fixo no mockup. Usa grid 3 colunas (1fr auto 1fr) para garantir que
   o play central fica SEMPRE centralizado mesmo quando os grupos laterais
   tem larguras assimétricas (ex.: esquerda com 2 botões e direita com 1). */
.app-mock-footer {
    width: 100%;
    padding: 14px 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.7) 100%);
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Quando há WhatsApp + 2 botões na esquerda, ainda cabe; só ajustamos gap. */
.app-mock-footer--has-wa {
    column-gap: 8px;
}

/* Grupo lateral: usa o mesmo container para esquerda (menu + programação) e
   direita (whatsapp + share). Mantém alinhamento e gap consistentes. */
.app-mock-side-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-mock-side-group--left {
    justify-self: start;
}

/* Grupo da direita (share / whatsapp + share). */
.app-mock-footer > .app-mock-side-group:not(.app-mock-side-group--left) {
    justify-self: end;
}

/* Botão "share" solto (quando não há grupo direito agrupando) também alinha à direita. */
.app-mock-footer > .app-landing-mockup-share {
    justify-self: end;
}

/* Botões laterais ampliados (38px → 44px) com ícone proporcional maior. */
.app-mock-side-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
}

.app-mock-side-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.app-mock-side-btn:active {
    transform: translateY(0);
}

.app-mock-side-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--app-brand) 70%, #ffffff 30%);
    outline-offset: 2px;
}

/* Variante WhatsApp: mesmo formato/dimensão dos demais botões, só com tema verde. */
.app-mock-side-btn--wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(18, 140, 126, 0.35);
}

.app-mock-side-btn--wa:hover {
    background: linear-gradient(135deg, #2BE070 0%, #14998A 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 140, 126, 0.45);
}

.app-mock-side-btn--wa:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

.app-mock-side-btn--wa:focus-visible {
    outline-color: #25D366;
}

.app-mock-side-btn--wa i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Reaplica a estética unificada do .app-mock-side-btn em botões que herdam
   classes legadas (.app-landing-mockup-icon-btn / .app-landing-mockup-share)
   cujos seletores antigos (.app-landing-phone-screen--fallback ...) tinham
   especificidade maior e estavam zerando background/border do share. */
.app-landing-phone-screen--fallback .app-mock-side-btn,
.app-landing-phone-screen--fallback .app-mock-side-btn.app-landing-mockup-icon-btn,
.app-landing-phone-screen--fallback .app-mock-side-btn.app-landing-mockup-share {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    appearance: none;
    margin: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.app-landing-phone-screen--fallback .app-mock-side-btn:hover,
.app-landing-phone-screen--fallback .app-mock-side-btn.app-landing-mockup-icon-btn:hover,
.app-landing-phone-screen--fallback .app-mock-side-btn.app-landing-mockup-share:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
    opacity: 1;
}

.app-landing-phone-screen--fallback .app-mock-side-btn.app-landing-mockup-share:focus-visible,
.app-landing-phone-screen--fallback .app-mock-side-btn.app-landing-mockup-icon-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--app-brand) 70%, #ffffff 30%);
    outline-offset: 2px;
}

/* WhatsApp mantém sua identidade verde mesmo sob o seletor legado. */
.app-landing-phone-screen--fallback .app-mock-side-btn.app-mock-side-btn--wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(18, 140, 126, 0.35);
}

.app-landing-phone-screen--fallback .app-mock-side-btn.app-mock-side-btn--wa:hover {
    background: linear-gradient(135deg, #2BE070 0%, #14998A 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(18, 140, 126, 0.45);
}

/* Sobrescreve o estilo legado do .app-landing-mockup-play (que tinha posicionamento
   absoluto no mockup antigo) para que se adapte como botão central de 64px no
   nosso novo footer. */
.app-mock-screen .app-mock-play.app-landing-mockup-play {
    position: static;
    inset: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--app-brand);
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    padding: 0;
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--app-brand) 25%, transparent),
        0 10px 24px color-mix(in srgb, var(--app-brand) 45%, transparent);
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.app-mock-screen .app-mock-play.app-landing-mockup-play:hover {
    transform: scale(1.05);
}

.app-mock-screen .app-mock-play.app-landing-mockup-play:active {
    transform: scale(0.96);
}

.app-mock-screen .app-mock-play.app-landing-mockup-play .app-landing-mockup-play-icon-main {
    font-size: 1.8rem;
    line-height: 1;
}

/* "Halo" pulsando enquanto tocando, igual ao do criador de rádios. */
.app-mock-screen .app-mock-play.app-landing-mockup-play.is-playing {
    animation: app-mock-play-pulse 1.4s ease-in-out infinite;
}

@keyframes app-mock-play-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px color-mix(in srgb, var(--app-brand) 25%, transparent),
            0 10px 24px color-mix(in srgb, var(--app-brand) 45%, transparent);
    }
    50% {
        box-shadow:
            0 0 0 8px color-mix(in srgb, var(--app-brand) 12%, transparent),
            0 14px 30px color-mix(in srgb, var(--app-brand) 60%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-mock-screen .app-mock-play.app-landing-mockup-play.is-playing {
        animation: none;
    }
}

/* Mantém o overlay de loading (spinner) sobre o ícone play. */
.app-mock-screen .app-mock-play.app-landing-mockup-play .app-landing-mockup-play-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--app-brand) 80%, #000000 20%);
    color: #0a0a0a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.app-mock-screen .app-mock-play.app-landing-mockup-play .app-mock-play-visual,
.app-mock-screen .app-mock-play.app-landing-mockup-play .app-landing-mockup-play-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.app-mock-screen .app-mock-play.app-landing-mockup-play.is-loading .app-landing-mockup-play-loading-overlay {
    opacity: 1;
}

.app-mock-screen .app-mock-play.app-landing-mockup-play.is-loading .app-landing-mockup-play-icon-main {
    opacity: 0;
}

/* Spacer para manter o play centralizado quando não há stream. */
.app-mock-play-spacer {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

/* Botão do mockup “Menu e instalação do app”: oculto; fluxo principal no banner fixo. */
.app-landing-page .app-mock-side-btn.app-landing-js-pwa {
    display: none !important;
}

/* Banner superior — instalar PWA (desliza de cima; conteúdo recebe padding-top) */
@keyframes app-landing-install-banner-in {
    from {
        opacity: 0;
        transform: translateY(-110%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner in-flow: empurra o conteúdo do main para baixo em vez de flutuar
   sobre ele. Sem position: fixed, sem padding-top compensatório no main. */
.app-landing-install-banner {
    position: relative;
    width: 100%;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) clamp(0.75rem, 3vw, 1rem) 0.65rem;
    box-sizing: border-box;
    overflow: hidden;
    /* max-height grande o suficiente para qualquer conteúdo real do banner.
       Usado em conjunto com is-hiding para colapsar suavemente. */
    max-height: 14rem;
    /* Transição usada apenas no fechamento (is-hiding) — abertura continua
       via keyframes que parecem mais snappy. */
    transition:
        max-height 0.32s cubic-bezier(0.4, 0, 0.6, 1),
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.4, 0, 0.6, 1),
        padding 0.32s cubic-bezier(0.4, 0, 0.6, 1);
}

.app-landing-install-banner:not([hidden]) {
    display: block;
    animation: app-landing-install-banner-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Estado intermédio entre clicar no × e remover do DOM: colapsa altura
   + fade + slide-up. O JS espera transitionend antes de aplicar hidden,
   garantindo que o main suba suavemente para preencher o espaço liberado. */
.app-landing-install-banner.is-hiding {
    animation: none !important;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-30%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-install-banner:not([hidden]) {
        animation: none;
    }
    .app-landing-install-banner {
        transition: none;
    }
}

.app-landing-install-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 0.55rem 0.65rem;
    border-radius: 1rem;
    background: linear-gradient(165deg, #161616 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.38),
        0 2px 12px rgba(0, 0, 0, 0.22);
}

.app-landing-install-banner__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.app-landing-install-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.app-landing-install-banner__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fafafa;
    line-height: 1.25;
}

.app-landing-install-banner__sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(250, 250, 250, 0.72);
    line-height: 1.3;
}

.app-landing-install-banner__install {
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #0a0a0a;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.app-landing-install-banner__install:hover {
    background: #f0f0f0;
    color: #0a0a0a;
}

.app-landing-install-banner__install:active {
    transform: scale(0.97);
}

.app-landing-install-banner__dismiss {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.25rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, color 0.15s ease;
}

.app-landing-install-banner__dismiss:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-install-banner__install,
    .app-landing-install-banner__dismiss {
        transition: none;
    }

    .app-landing-install-banner__install:active {
        transform: none;
    }
}

/* Banner agora vive no fluxo normal do body (não é mais position: fixed),
   então empurra o .app-landing-main para baixo automaticamente — não
   precisa de padding-top compensatório. A classe é mantida no body como
   gancho lógico caso outros estilos queiram reagir à presença do banner. */

/* ===========================================================
   Drawer esquerdo — Notícias locais
   =========================================================== */

/* Botão de notícias no rodapé do mockup. Muted = sem notícias
   disponíveis (mesmo padrão visual do schedule-btn--muted). */
.app-mock-news-btn--muted {
    opacity: 0.45;
    cursor: not-allowed;
}

.app-landing-news-drawer {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: none;
    visibility: hidden;
    /* visibility tem delay igual a duração do slide para que ao FECHAR o
       drawer continue visível enquanto a panel desliza para fora; sem
       isso, o drawer some na hora e a transição da panel é cortada. */
    transition: visibility 0s linear 0.32s;
}

.app-landing-news-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    /* Ao abrir, visibility entra imediatamente para a transição da panel
       e do backdrop ser visível desde o frame 0. */
    transition: visibility 0s linear 0s;
}

.app-landing-news-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
}

.app-landing-news-drawer.is-open .app-landing-news-drawer__backdrop {
    opacity: 1;
}

.app-landing-news-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(420px, 92vw);
    max-width: 100%;
    background: linear-gradient(180deg, #161616 0%, #0c0c0c 100%);
    color: #fafafa;
    box-shadow:
        4px 0 24px rgba(0, 0, 0, 0.4),
        2px 0 10px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-landing-news-drawer.is-open .app-landing-news-drawer__panel {
    transform: translateX(0);
}

.app-landing-news-drawer__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.app-landing-news-drawer__title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fafafa;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.2;
}

.app-landing-news-drawer__title i {
    color: var(--app-brand, #e8e8e8);
    font-size: 1.05rem;
}

.app-landing-news-drawer__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.app-landing-news-drawer__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.app-landing-news-drawer__close:active {
    transform: scale(0.94);
}

.app-landing-news-drawer__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.app-landing-news-state {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}

.app-landing-news-state[data-state='loading']::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.55rem;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--app-brand, #e8e8e8);
    border-radius: 50%;
    animation: app-landing-news-spin 0.9s linear infinite;
}

.app-landing-news-state[data-state='error'] {
    color: #f87171;
}

@keyframes app-landing-news-spin {
    to { transform: rotate(360deg); }
}

.app-landing-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-landing-news-item {
    border-radius: 0.85rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.app-landing-news-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.app-landing-news-item:active {
    transform: scale(0.985);
}

.app-landing-news-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.app-landing-news-item__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
}

.app-landing-news-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-landing-news-item__body {
    padding: 0.75rem 0.85rem 0.85rem;
}

.app-landing-news-item__title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.32;
    color: #f5f5f5;
    /* Truncamento em 3 linhas mantém o layout previsível para títulos longos. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-landing-news-item__desc {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-landing-news-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    margin: 0 0 0.55rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.35;
}

.app-landing-news-item__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--app-brand, #e8e8e8);
    letter-spacing: 0.01em;
}

.app-landing-news-item__cta i {
    font-size: 0.68rem;
}

/* Bloqueia scroll do body quando o drawer está aberto — evita o "fundo
   rolando atrás" em mobile. */
body.app-landing-news-drawer-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-news-drawer__backdrop,
    .app-landing-news-drawer__panel {
        transition: none;
    }
    .app-landing-news-state[data-state='loading']::before {
        animation: none;
    }
}

@media (min-width: 720px) {
    /* Em desktop, o drawer pode ficar mais largo sem ocupar a tela toda. */
    .app-landing-news-drawer__panel {
        width: min(460px, 50vw);
    }
}

/* ===========================================================
   Sleep timer — botão no topo do mockup (barra com voltar) + modal central
   =========================================================== */

/* Barra superior do mockup: voltar (esq.) + sleep/clima (dir.), mesma linha. */
.app-mock-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    pointer-events: none;
}

.app-mock-top-bar > * {
    pointer-events: auto;
}

.app-mock-top-bar__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.app-mock-back-btn {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.app-mock-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.app-mock-back-btn:active {
    transform: scale(0.94);
}

.app-mock-back-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--app-brand) 75%, #ffffff);
    outline-offset: 3px;
}

/* PWA instalado: sem “voltar” (não há página anterior no app). */
@media (display-mode: standalone) {
    .app-mock-back-btn {
        display: none !important;
    }

    .app-mock-top-bar {
        justify-content: flex-end;
    }
}

.app-landing-page.app-landing-page--pwa-standalone .app-mock-back-btn {
    display: none !important;
}

.app-landing-page.app-landing-page--pwa-standalone .app-mock-top-bar {
    justify-content: flex-end;
}

.app-mock-sleep-btn {
    position: relative;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, border-color 0.18s ease, padding 0.2s ease;
}

.app-mock-sleep-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.app-mock-sleep-btn:active {
    transform: scale(0.94);
}

/* Estado ativo: vira pill com ícone + tempo restante. */
.app-mock-sleep-btn.is-active {
    background: color-mix(in srgb, var(--app-brand) 25%, rgba(255, 255, 255, 0.06));
    border-color: color-mix(in srgb, var(--app-brand) 55%, transparent);
    color: #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-brand) 30%, transparent);
    padding: 0 0.7rem 0 0.55rem;
}

.app-mock-sleep-btn__time {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    /* tabular-nums evita "saltinho" dos dígitos a cada segundo. */
}

.app-mock-sleep-btn__time[hidden] {
    display: none !important;
}

/* Modal central — compacto, dark mode, parecido com o sleep do Spotify. */
.app-landing-sleep-modal {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.28s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-landing-sleep-modal.is-open {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s linear 0s;
}

.app-landing-sleep-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.24s ease;
    cursor: pointer;
}

.app-landing-sleep-modal.is-open .app-landing-sleep-modal__backdrop {
    opacity: 1;
}

.app-landing-sleep-modal__panel {
    position: relative;
    width: min(320px, 92vw);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.25rem 1.1rem 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
    color: #fafafa;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(12px) scale(0.97);
    opacity: 0;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.app-landing-sleep-modal.is-open .app-landing-sleep-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.app-landing-sleep-modal__header {
    text-align: center;
    margin-bottom: 0.85rem;
}

.app-landing-sleep-modal__title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.01em;
}

.app-landing-sleep-modal__subtitle {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.app-landing-sleep-modal__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.app-landing-sleep-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    border: none;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.12s ease, color 0.16s ease;
}

.app-landing-sleep-option:hover {
    background: rgba(255, 255, 255, 0.11);
}

.app-landing-sleep-option:active {
    transform: scale(0.985);
}

.app-landing-sleep-option:focus-visible {
    outline: 2px solid var(--app-brand, #facc15);
    outline-offset: 2px;
}

.app-landing-sleep-option__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.8rem;
    color: var(--app-brand, #facc15);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.app-landing-sleep-option.is-selected {
    background: color-mix(in srgb, var(--app-brand) 18%, rgba(255, 255, 255, 0.06));
}

.app-landing-sleep-option.is-selected .app-landing-sleep-option__check {
    opacity: 1;
}

.app-landing-sleep-modal__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.app-landing-sleep-modal__cancel {
    width: 100%;
    border: none;
    background: transparent;
    color: #ef4444;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.app-landing-sleep-modal__cancel:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.app-landing-sleep-modal__cancel[hidden] {
    display: none !important;
}

.app-landing-sleep-modal__close-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem;
    cursor: pointer;
    transition: color 0.16s ease;
}

.app-landing-sleep-modal__close-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

body.app-landing-sleep-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-sleep-modal__backdrop,
    .app-landing-sleep-modal__panel {
        transition: none;
    }
}

/* ===========================================================
   Botão de clima + Drawer direito de Clima
   =========================================================== */

.app-mock-weather-btn {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.app-mock-weather-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.app-mock-weather-btn:active {
    transform: scale(0.94);
}

.app-landing-weather-drawer {
    position: fixed;
    inset: 0;
    z-index: 9994;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.32s;
}

.app-landing-weather-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s linear 0s;
}

.app-landing-weather-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
}

.app-landing-weather-drawer.is-open .app-landing-weather-drawer__backdrop {
    opacity: 1;
}

.app-landing-weather-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(420px, 92vw);
    max-width: 100%;
    background: linear-gradient(180deg, #161616 0%, #0c0c0c 100%);
    color: #fafafa;
    box-shadow:
        -4px 0 24px rgba(0, 0, 0, 0.4),
        -2px 0 10px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-landing-weather-drawer.is-open .app-landing-weather-drawer__panel {
    transform: translateX(0);
}

.app-landing-weather-drawer__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.app-landing-weather-drawer__title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fafafa;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.2;
}

.app-landing-weather-drawer__title i {
    color: var(--app-brand, #e8e8e8);
    font-size: 1.05rem;
}

.app-landing-weather-drawer__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.app-landing-weather-drawer__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.app-landing-weather-drawer__close:active {
    transform: scale(0.94);
}

.app-landing-weather-drawer__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.9rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.app-landing-weather-state {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}

.app-landing-weather-state[data-state='loading']::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.55rem;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--app-brand, #e8e8e8);
    border-radius: 50%;
    animation: app-landing-news-spin 0.9s linear infinite;
}

.app-landing-weather-state[data-state='error'] {
    color: #f87171;
}

/* Hero — temperatura grande + condição + ícone */
.app-landing-weather-hero {
    background: linear-gradient(135deg, rgba(56, 132, 255, 0.18) 0%, rgba(8, 64, 140, 0.12) 100%);
    border: 1px solid rgba(120, 180, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
}

/* Badge de localização: cidade/estado da estação. */
.app-landing-weather-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

.app-landing-weather-hero__location i {
    color: rgba(120, 180, 255, 0.95);
    font-size: 0.7rem;
}

.app-landing-weather-hero__head {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
}

.app-landing-weather-hero__day {
    font-weight: 600;
}

.app-landing-weather-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-landing-weather-hero__temp-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.app-landing-weather-hero__temp {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: #fafafa;
    letter-spacing: -0.02em;
}

.app-landing-weather-hero__cond {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.2;
}

.app-landing-weather-hero__icon {
    font-size: 3rem;
    flex-shrink: 0;
}

/* Cores por condição (Font Awesome — alinhado a radio-enrichment.php). */
.app-landing-weather-icon--tone-sun {
    color: rgba(250, 204, 21, 0.98);
}

.app-landing-weather-icon--tone-sun-cloud {
    color: rgba(250, 204, 21, 0.95);
}

.app-landing-weather-icon--tone-cloud {
    color: rgba(156, 163, 175, 0.95);
}

.app-landing-weather-icon--tone-rain {
    color: rgba(56, 189, 248, 0.95);
}

.app-landing-weather-icon--tone-rain-sun {
    color: rgba(56, 189, 248, 0.95);
}

.app-landing-weather-icon--tone-storm {
    color: rgba(168, 85, 247, 0.95);
}

.app-landing-weather-icon--tone-fog {
    color: rgba(156, 163, 175, 0.9);
}

.app-landing-weather-icon--tone-night {
    color: rgba(148, 163, 184, 0.95);
}

.app-landing-weather-icon--tone-night-rain {
    color: rgba(125, 211, 252, 0.95);
}

/* Grid de 2x2 com humidity/wind/pressure/feels-like */
.app-landing-weather-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.app-landing-weather-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 0.7rem 0.8rem;
}

.app-landing-weather-card__head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.app-landing-weather-card__head i {
    font-size: 0.78rem;
    color: rgba(120, 180, 255, 0.85);
}

.app-landing-weather-card__value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fafafa;
    line-height: 1.1;
}

.app-landing-weather-card__sub {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.1rem;
}

/* Switch fonte do clima (cidade da rádio vs localização do usuário). */
.app-landing-weather-source {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
}

.app-landing-weather-source__btn {
    flex: 1;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.55rem 0.5rem;
    border-radius: 0.55rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    transition: background 0.16s ease, color 0.16s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.app-landing-weather-source__btn i {
    font-size: 0.78rem;
    opacity: 0.85;
}

.app-landing-weather-source__btn:hover {
    color: rgba(255, 255, 255, 0.92);
}

.app-landing-weather-source__btn.is-active {
    background: color-mix(in srgb, var(--app-brand) 30%, rgba(255, 255, 255, 0.06));
    color: #fafafa;
}

/* Estado de erro/permissão da geolocalização. */
.app-landing-weather-geo-msg {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.app-landing-weather-geo-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid color-mix(in srgb, var(--app-brand) 50%, transparent);
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--app-brand) 20%, rgba(255, 255, 255, 0.06));
    color: #fafafa;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.12s ease;
}

.app-landing-weather-geo-retry:hover {
    background: color-mix(in srgb, var(--app-brand) 30%, rgba(255, 255, 255, 0.08));
}

.app-landing-weather-geo-retry:active {
    transform: scale(0.97);
}

.app-landing-weather-state[data-state='denied'],
.app-landing-weather-state[data-state='unsupported'] {
    color: rgba(255, 220, 130, 0.88);
}

/* Mini-strip horizontal abaixo do hero — preview rápido das próximas horas. */
.app-landing-weather-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.1rem 0.6rem;
    margin-bottom: 0.55rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.app-landing-weather-strip::-webkit-scrollbar { height: 4px; }
.app-landing-weather-strip::-webkit-scrollbar-track { background: transparent; }
.app-landing-weather-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.app-landing-weather-strip__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    padding: 0.55rem 0.6rem;
    min-width: 4rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    scroll-snap-align: start;
}

.app-landing-weather-strip__hour {
    font-size: 0.66rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
}

.app-landing-weather-strip__icon {
    font-size: 1rem;
}

.app-landing-weather-strip__temp {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fafafa;
    font-variant-numeric: tabular-nums;
}

/* Tabs Agora / Próximas horas / Próximos dias. */
.app-landing-weather-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
}

.app-landing-weather-tab {
    flex: 1;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.5rem 0.4rem;
    border-radius: 0.55rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    transition: background 0.16s ease, color 0.16s ease;
    letter-spacing: 0.01em;
    text-align: center;
}

.app-landing-weather-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.app-landing-weather-tab.is-active {
    background: color-mix(in srgb, var(--app-brand) 25%, rgba(255, 255, 255, 0.06));
    color: #fafafa;
}

.app-landing-weather-panel[hidden] {
    display: none !important;
}

/* Tab Próximas horas — uma linha por hora com hora, ícone, temp e chuva. */
.app-landing-weather-hour-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-landing-weather-hour-row {
    display: grid;
    grid-template-columns: 3rem 1.5rem 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.65rem;
}

.app-landing-weather-hour-row__hour {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}

.app-landing-weather-hour-row__icon {
    font-size: 1rem;
}

.app-landing-weather-hour-row__temp {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fafafa;
    font-variant-numeric: tabular-nums;
}

.app-landing-weather-hour-row__rain {
    font-size: 0.7rem;
    color: rgba(120, 180, 255, 0.85);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.app-landing-weather-hour-row__rain i {
    margin-right: 0.18rem;
    font-size: 0.62rem;
}

/* Tab Próximos dias — uma linha por dia com dia, ícone, frase, máx/mín, chuva. */
.app-landing-weather-day-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-landing-weather-day-row {
    display: grid;
    grid-template-columns: 3.4rem 1.6rem 1fr auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.7rem;
}

.app-landing-weather-day-row__head {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-landing-weather-day-row__day {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fafafa;
    text-transform: capitalize;
}

.app-landing-weather-day-row__num {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.app-landing-weather-day-row__icon {
    font-size: 1.1rem;
}

.app-landing-weather-day-row__phrase {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.app-landing-weather-day-row__temps {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.app-landing-weather-day-row__max {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fafafa;
}

.app-landing-weather-day-row__min {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}

.app-landing-weather-day-row__rain {
    font-size: 0.7rem;
    color: rgba(120, 180, 255, 0.85);
    font-weight: 600;
    min-width: 2.6rem;
    text-align: right;
    white-space: nowrap;
}

.app-landing-weather-day-row__rain i {
    margin-right: 0.18rem;
    font-size: 0.62rem;
}

.app-landing-weather-day-row__rain:empty {
    visibility: hidden;
}

body.app-landing-weather-drawer-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-weather-drawer__backdrop,
    .app-landing-weather-drawer__panel {
        transition: none;
    }
}

@media (min-width: 720px) {
    .app-landing-weather-drawer__panel {
        width: min(460px, 50vw);
    }
}

/* PWA instalado (mobile): altura = área visível real (--app-vh / innerHeight).
   Evita 100vh/100dvh empilhados que no Android, após reload, passam da barra de gestos. */
@media (max-width: 767px) {
    html.app-landing-vh-root.app-landing-pwa-root {
        height: var(--app-vh, 100svh);
        max-height: var(--app-vh, 100svh);
        overflow: hidden;
        overscroll-behavior: none;
    }

    html.app-landing-vh-root.app-landing-pwa-root body.app-landing-page {
        height: 100%;
        min-height: 0 !important;
        max-height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        box-sizing: border-box;
    }

    html.app-landing-vh-root.app-landing-pwa-root .app-landing-page {
        height: 100%;
        min-height: 0 !important;
        max-height: 100%;
        display: flex;
        flex-direction: column;
    }

    html.app-landing-vh-root.app-landing-pwa-root .app-landing-main {
        flex: 1;
        min-height: 0 !important;
        height: 100%;
        max-height: 100%;
    }

    html.app-landing-vh-root.app-landing-pwa-root .app-landing-inner,
    html.app-landing-vh-root.app-landing-pwa-root .app-landing-mockup-col,
    html.app-landing-vh-root.app-landing-pwa-root .app-landing-phone {
        flex: 1;
        min-height: 0 !important;
        max-height: 100%;
    }

    html.app-landing-vh-root.app-landing-pwa-root .app-landing-phone-bezel {
        flex: 1;
        min-height: 0 !important;
        height: 100%;
        max-height: 100%;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-sizing: border-box;
    }

    html.app-landing-vh-root.app-landing-pwa-root .app-landing-phone-screen,
    html.app-landing-vh-root.app-landing-pwa-root .app-landing-phone-screen--fallback,
    html.app-landing-vh-root.app-landing-pwa-root .app-landing-phone-screen-img {
        min-height: 0 !important;
        max-height: 100%;
    }
}
