:root {
    --blue-950: #020817;
    --blue-900: #051641;
    --blue-800: #08276d;
    --blue-600: #1265f0;
    --blue-400: #48a4ff;
    --white: #ffffff;
    --muted: #aebbd5;
    --line: rgba(255, 255, 255, 0.14);
    --glass: rgba(255, 255, 255, 0.08);
    --black: #03050b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 12%, rgba(18, 101, 240, 0.38), transparent 32rem),
        radial-gradient(circle at 86% 26%, rgba(72, 164, 255, 0.2), transparent 28rem),
        linear-gradient(145deg, var(--black), var(--blue-950) 45%, #000 100%);
    min-height: 100vh;
    padding-bottom: 64px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(2, 8, 23, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.28);
}

.brand span {
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a,
.header-action,
.secondary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 0.94rem;
    font-weight: 800;
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--white);
    background: var(--glass);
}

.header-action,
.primary-button {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(18, 101, 240, 0.32);
}

.secondary-button {
    border: 1px solid var(--line);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

main {
    overflow: hidden;
}

.hero-banner {
    position: relative;
    width: min(1920px, 100%);
    min-height: clamp(560px, 32.3vw, 620px);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 44px) clamp(18px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 5, 11, 0.92) 0%, rgba(5, 22, 65, 0.84) 42%, rgba(5, 22, 65, 0.22) 100%),
        radial-gradient(circle at 78% 42%, rgba(72, 164, 255, 0.36), transparent 22rem),
        url("radio-vila-veloso.png") right center / auto 104% no-repeat,
        linear-gradient(135deg, var(--blue-950), var(--blue-800));
    border-bottom: 1px solid var(--line);
}

.hero-banner::before,
.hero-banner::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-banner::before {
    inset: 0;
    background-image:
        linear-gradient(rgba(72, 164, 255, 0.13) 1px, transparent 1px),
        repeating-linear-gradient(115deg, transparent 0 42px, rgba(255, 255, 255, 0.035) 43px 44px);
    background-size: 100% 40px, 220px 220px;
    opacity: 0.22;
    animation: banner-grid 14s linear infinite;
}

.hero-banner::after {
    right: -120px;
    bottom: -130px;
    width: 520px;
    height: 520px;
    border: 42px solid rgba(72, 164, 255, 0.16);
    border-radius: 50%;
    animation: banner-ring 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
}

.hero-copy {
    min-width: 0;
}

.hero-logo {
    justify-self: end;
    width: min(34vw, 410px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    animation: logo-float 4.8s ease-in-out infinite, logo-glow 3.6s ease-in-out infinite alternate;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue-400);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(2.7rem, 5.2vw, 5.4rem);
    line-height: 0.92;
    font-weight: 900;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.slim-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 44px minmax(220px, 1fr) minmax(150px, 230px) minmax(110px, 170px) minmax(130px, 220px);
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    margin-top: 0;
    padding: 8px clamp(18px, 5vw, 76px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(3, 5, 11, 0.82);
    box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(18px);
}

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

.player-label,
.status,
.now-playing {
    color: var(--muted);
    font-size: 0.82rem;
}

.now-playing {
    margin-bottom: 0;
    color: var(--white);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-label,
.status {
    margin-bottom: 2px;
}

.status {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visualizer {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    align-items: end;
    gap: 4px;
    height: 30px;
}

.visualizer span {
    min-height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--white), var(--blue-400), var(--blue-600));
    opacity: 0.72;
    transform-origin: bottom;
}

.visualizer span:nth-child(1) { height: 24%; }
.visualizer span:nth-child(2) { height: 62%; }
.visualizer span:nth-child(3) { height: 38%; }
.visualizer span:nth-child(4) { height: 78%; }
.visualizer span:nth-child(5) { height: 44%; }
.visualizer span:nth-child(6) { height: 90%; }
.visualizer span:nth-child(7) { height: 54%; }
.visualizer span:nth-child(8) { height: 72%; }
.visualizer span:nth-child(9) { height: 36%; }
.visualizer span:nth-child(10) { height: 66%; }

.is-playing .visualizer span,
.slim-player.is-playing .visualizer span {
    animation: pulse 0.9s ease-in-out infinite alternate;
}

.is-playing .visualizer span:nth-child(2n),
.slim-player.is-playing .visualizer span:nth-child(2n) {
    animation-duration: 0.65s;
}

.play-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: var(--white);
    color: var(--blue-900);
    box-shadow: 0 20px 34px rgba(255, 255, 255, 0.16);
}

.play-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
}

.is-playing .play-icon {
    width: 16px;
    height: 18px;
    margin-left: 0;
    border: 0;
    border-left: 6px solid currentColor;
    border-right: 6px solid currentColor;
}

.volume-control {
    display: grid;
    gap: 6px;
}

.volume-control label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--blue-400);
}

.info-grid,
.speakers,
.schedule,
.contact {
    margin: 0 auto;
    width: min(1120px, calc(100% - 36px));
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 28px 0 86px;
}

.info-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.info-grid span {
    color: var(--blue-400);
    font-weight: 900;
}

.info-grid h2 {
    margin: 18px 0 10px;
    font-size: 1.25rem;
}

.info-grid p,
.contact p {
    color: var(--muted);
    line-height: 1.7;
}

.speakers {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.speaker-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.speaker-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.speaker-card div {
    padding: 20px;
}

.speaker-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.speaker-card strong,
.speaker-card span {
    display: block;
}

.speaker-card strong {
    color: var(--blue-400);
}

.speaker-card span,
.speaker-card p {
    color: var(--muted);
}

.speaker-card p {
    margin: 14px 0 0;
    line-height: 1.6;
}

.schedule {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.section-heading h2,
.contact h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.schedule-item strong {
    color: var(--blue-400);
    font-size: 1.4rem;
}

.schedule-item span {
    font-size: 1.12rem;
    font-weight: 800;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 54px;
    margin-bottom: 72px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(18, 101, 240, 0.2), rgba(255, 255, 255, 0.06));
}

.site-footer {
    padding: 28px 18px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

@keyframes pulse {
    from {
        transform: scaleY(0.45);
        opacity: 0.5;
    }
    to {
        transform: scaleY(1.05);
        opacity: 1;
    }
}

@keyframes banner-grid {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 0 40px, 220px 0;
    }
}

@keyframes banner-ring {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.58;
    }
    50% {
        transform: translate3d(-18px, -12px, 0) scale(1.06);
        opacity: 0.88;
    }
}

@keyframes logo-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.2deg);
    }
}

@keyframes logo-glow {
    from {
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 0 rgba(72, 164, 255, 0);
    }
    to {
        box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48), 0 0 46px rgba(72, 164, 255, 0.42);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner::before,
    .hero-banner::after,
    .hero-logo,
    .is-playing .visualizer span,
    .slim-player.is-playing .visualizer span {
        animation: none;
    }
}

@media (max-width: 880px) {
    .site-header {
        position: static;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .hero-banner {
        min-height: 620px;
        justify-content: flex-start;
        background:
            linear-gradient(180deg, rgba(3, 5, 11, 0.9) 0%, rgba(5, 22, 65, 0.72) 56%, rgba(3, 5, 11, 0.9) 100%),
            url("radio-vila-veloso.png") center 42% / min(78vw, 440px) auto no-repeat,
            linear-gradient(135deg, var(--blue-950), var(--blue-800));
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        display: none;
    }

    .slim-player {
        grid-template-columns: 42px minmax(0, 1fr) minmax(72px, 96px) minmax(64px, 86px);
        gap: 10px;
        min-height: 62px;
        padding: 8px 14px;
    }

    .visualizer {
        display: grid;
        height: 26px;
        gap: 3px;
    }

    .volume-control {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .speaker-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .brand span {
        max-width: 170px;
        white-space: normal;
        line-height: 1.1;
    }

    .header-action {
        padding: 0 12px;
    }

    .main-nav a {
        padding: 0 10px;
        font-size: 0.84rem;
    }

    .hero-banner {
        min-height: 640px;
        padding-top: 30px;
    }

    .schedule-item {
        grid-template-columns: 1fr;
    }

    .play-button {
        width: 42px;
        height: 42px;
    }

    .player-label,
    .status,
    .now-playing {
        font-size: 0.72rem;
    }
}
