/* ==========================================================================
   Radio Platform Public
   ========================================================================== */

:root {
    --public-primary: #5b4df5;
    --public-primary-dark: #4032d8;
    --public-secondary: #8b5cf6;
    --public-accent: #22c55e;

    --public-bg: #f5f7fb;
    --public-surface: #ffffff;
    --public-surface-soft: #eef2f8;

    --public-text: #182033;
    --public-text-soft: #667085;
    --public-border: #e4e8f0;

    --public-shadow-sm:
        0 8px 24px rgba(15, 23, 42, 0.06);

    --public-shadow-lg:
        0 24px 60px rgba(15, 23, 42, 0.12);

    --public-radius-sm: 12px;
    --public-radius-md: 18px;
    --public-radius-lg: 28px;

    --public-container: 1240px;
}


/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--public-bg);
    color: var(--public-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

body.player-visible {
    padding-bottom: 98px;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--public-container)
    );
    margin-inline: auto;
}

.public-main {
    min-height: 70vh;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(228, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

.site-header .container {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            var(--public-primary),
            var(--public-secondary)
        );
    box-shadow:
        0 12px 28px rgba(91, 77, 245, 0.28);
    font-size: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 16px;
    line-height: 1.2;
}

.logo-text span {
    margin-top: 2px;
    color: var(--public-text-soft);
    font-size: 11px;
}

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

.main-nav a {
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--public-text-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.main-nav a:hover {
    background: rgba(91, 77, 245, 0.08);
    color: var(--public-primary);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(91, 77, 245, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(139, 92, 246, 0.16),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8f9ff,
            var(--public-bg)
        );
}

.hero-section::before {
    position: absolute;
    top: -120px;
    left: 45%;
    width: 360px;
    height: 360px;
    content: "";
    border-radius: 50%;
    background: rgba(91, 77, 245, 0.07);
    filter: blur(12px);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(360px, 0.9fr);
    align-items: center;
    gap: 54px;
}

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

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    color: var(--public-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-content > p {
    max-width: 690px;
    margin: 0;
    color: var(--public-text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin-top: 30px;
    padding: 9px;
    border: 1px solid var(--public-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--public-shadow-lg);
}

.hero-search-icon {
    margin-left: 8px;
    color: var(--public-text-soft);
    font-size: 18px;
}

.hero-search input {
    min-width: 0;
    flex: 1;
    padding: 13px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--public-text);
}

.hero-search input::placeholder {
    color: #98a2b3;
}

.hero-search button {
    flex-shrink: 0;
    padding: 13px 22px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--public-primary),
            var(--public-secondary)
        );
    color: #ffffff;
    font-weight: 800;
    box-shadow:
        0 10px 24px rgba(91, 77, 245, 0.24);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--public-text-soft);
    font-size: 12px;
}

.hero-tags a {
    padding: 6px 10px;
    border: 1px solid rgba(91, 77, 245, 0.14);
    border-radius: 999px;
    background: rgba(91, 77, 245, 0.06);
    color: var(--public-primary);
    font-weight: 700;
    text-decoration: none;
}

.hero-tag-muted {
    color: var(--public-text-soft);
}


/* ==========================================================================
   Hero Feature Station
   ========================================================================== */

.hero-feature-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--public-radius-lg);
    background:
        linear-gradient(
            150deg,
            rgba(33, 41, 70, 0.98),
            rgba(58, 45, 114, 0.96)
        );
    box-shadow:
        0 32px 80px rgba(34, 28, 84, 0.28);
    color: #ffffff;
}

.hero-feature-card::after {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    content: "";
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.28);
    filter: blur(8px);
}

.hero-feature-glow {
    position: absolute;
    top: -90px;
    left: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(91, 77, 245, 0.22);
    filter: blur(18px);
}

.hero-feature-top,
.hero-station-logo,
.hero-station-info,
.hero-player,
.hero-station-link,
.hero-empty-station {
    position: relative;
    z-index: 1;
}

.hero-feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-live-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.hero-station-logo {
    display: flex;
    width: 150px;
    height: 150px;
    margin: 30px auto 22px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.05)
        );
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.24);
}

.hero-station-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-station-logo > span {
    font-size: 56px;
}

.hero-station-info {
    text-align: center;
}

.hero-station-info > span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-station-info h2 {
    margin: 7px 0 4px;
    font-size: 30px;
    line-height: 1.18;
}

.hero-station-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.hero-player {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-play-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--public-primary);
    font-size: 18px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-player-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.hero-player-info strong {
    font-size: 13px;
}

.hero-player-info span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.hero-wave {
    display: flex;
    height: 34px;
    align-items: center;
    gap: 4px;
}

.hero-wave span {
    display: block;
    width: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    animation: publicWave 1.1s ease-in-out infinite;
}

.hero-wave span:nth-child(1) {
    height: 12px;
}

.hero-wave span:nth-child(2) {
    height: 24px;
    animation-delay: 0.12s;
}

.hero-wave span:nth-child(3) {
    height: 32px;
    animation-delay: 0.24s;
}

.hero-wave span:nth-child(4) {
    height: 20px;
    animation-delay: 0.36s;
}

.hero-wave span:nth-child(5) {
    height: 14px;
    animation-delay: 0.48s;
}

@keyframes publicWave {
    0%,
    100% {
        transform: scaleY(0.55);
        opacity: 0.55;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.hero-station-link {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.hero-station-link:hover {
    color: #ffffff;
}

.hero-empty-station {
    padding: 80px 20px;
    text-align: center;
}

.hero-empty-station > span {
    font-size: 52px;
}

.hero-empty-station h2 {
    margin: 16px 0 6px;
}

.hero-empty-station p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}


/* ==========================================================================
   Status
   ========================================================================== */

.station-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.station-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.station-status.is-online {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.station-status.is-offline {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
}

.station-status.is-unknown {
    background: rgba(148, 163, 184, 0.16);
    color: #94a3b8;
}


/* ==========================================================================
   Platform Stats
   ========================================================================== */

.platform-stats {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 18px 0;
}

.platform-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--public-border);
    border-radius: 20px;
    background: var(--public-surface);
    box-shadow: var(--public-shadow-sm);
}

.platform-stats article {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--public-border);
}

.platform-stats article:last-child {
    border-right: 0;
}

.platform-stats strong {
    font-size: 30px;
    line-height: 1;
}

.platform-stats span {
    margin-top: 8px;
    color: var(--public-text-soft);
    font-size: 12px;
}


/* ==========================================================================
   Public Sections
   ========================================================================== */

.public-section {
    padding: 74px 0;
}

.public-section-soft {
    background: var(--public-surface-soft);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 8px 0 4px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 0;
    color: var(--public-text-soft);
}

.section-link {
    flex-shrink: 0;
    color: var(--public-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.public-empty-state {
    padding: 54px 24px;
    border: 1px dashed var(--public-border);
    border-radius: var(--public-radius-md);
    background: var(--public-surface);
    text-align: center;
}

.public-empty-state > span {
    font-size: 46px;
}

.public-empty-state h3 {
    margin: 14px 0 6px;
}

.public-empty-state p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--public-text-soft);
}


/* ==========================================================================
   Station Cards
   ========================================================================== */

.station-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.station-card {
    overflow: hidden;
    border: 1px solid var(--public-border);
    border-radius: 20px;
    background: var(--public-surface);
    box-shadow: var(--public-shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.station-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 77, 245, 0.2);
    box-shadow: var(--public-shadow-lg);
}

.station-card-image {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 0.78;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #eef0ff,
            #f7f4ff
        );
    text-decoration: none;
}

.station-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-card-placeholder {
    font-size: 56px;
}

.station-card-image .station-status {
    position: absolute;
    top: 14px;
    right: 14px;
    backdrop-filter: blur(8px);
}

.station-card-body {
    padding: 18px;
}

.station-card-genre {
    color: var(--public-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.station-card h3 {
    margin: 7px 0 4px;
    font-size: 20px;
    line-height: 1.25;
}

.station-card h3 a {
    text-decoration: none;
}

.station-card p {
    margin: 0;
    color: var(--public-text-soft);
    font-size: 12px;
}

.station-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.station-play-button {
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    background: rgba(91, 77, 245, 0.1);
    color: var(--public-primary);
    font-size: 12px;
    font-weight: 800;
}

.station-card-footer > span {
    color: var(--public-text-soft);
    font-size: 11px;
}


/* ==========================================================================
   Latest Stations
   ========================================================================== */

.latest-station-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.latest-station-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--public-border);
    border-radius: 16px;
    background: var(--public-surface);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.latest-station-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--public-shadow-sm);
}

.latest-station-logo {
    display: flex;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(91, 77, 245, 0.1),
            rgba(139, 92, 246, 0.1)
        );
}

.latest-station-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-station-logo span {
    font-size: 25px;
}

.latest-station-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.latest-station-info > span {
    color: var(--public-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.latest-station-info h3 {
    margin: 3px 0 1px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-station-info small {
    color: var(--public-text-soft);
    font-size: 10px;
}

.latest-station-item > .station-status {
    padding: 0;
    background: transparent;
}

.latest-play-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border: 0;
    border-radius: 50%;
    background: var(--public-primary);
    color: #ffffff;
}


/* ==========================================================================
   Discovery
   ========================================================================== */

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.discovery-card {
    padding: 28px;
    border: 1px solid var(--public-border);
    border-radius: 22px;
    background: var(--public-surface);
    box-shadow: var(--public-shadow-sm);
}

.discovery-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.discovery-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--public-border);
    border-radius: 12px;
    color: var(--public-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.discovery-links a:hover {
    border-color: rgba(91, 77, 245, 0.24);
    background: rgba(91, 77, 245, 0.05);
    color: var(--public-primary);
}

.discovery-links p {
    margin: 0;
    color: var(--public-text-soft);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 64px 0 24px;
    background: #182033;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.5fr)
        repeat(3, minmax(150px, 0.7fr));
    gap: 44px;
}

.footer-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.7;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.footer-logo-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--public-primary),
            var(--public-secondary)
        );
    font-size: 21px;
}

.footer-logo > span:last-child {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    font-size: 15px;
}

.footer-logo small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 7px;
    font-size: 13px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}


/* ==========================================================================
   Global Player
   ========================================================================== */

.global-player {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            135deg,
            rgba(24, 32, 51, 0.98),
            rgba(51, 37, 98, 0.98)
        );
    color: #ffffff;
    box-shadow:
        0 -16px 36px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

.global-player-content {
    display: flex;
    width: min(100%, var(--public-container));
    margin-inline: auto;
    align-items: center;
    gap: 16px;
}

.global-player-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--public-primary);
    font-weight: 900;
}

.global-player-station {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.global-player-station span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.global-player-station strong {
    margin-top: 2px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-player-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #86efac;
    font-size: 11px;
    font-weight: 800;
}

.global-player-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 12px rgba(34, 197, 94, 0.82);
}

.global-player input[type="range"] {
    width: 150px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-feature-card {
        max-width: 620px;
    }

    .station-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }

    .platform-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-stats article:nth-child(2) {
        border-right: 0;
    }

    .platform-stats article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--public-border);
    }

    .latest-station-list,
    .discovery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.player-visible {
        padding-bottom: 128px;
    }

    .container {
        width: min(
            calc(100% - 28px),
            var(--public-container)
        );
    }

    .site-header .container {
        min-height: 68px;
    }

    .logo-text span {
        display: none;
    }

    .hero-section {
        padding: 48px 0 36px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-search {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .hero-search-icon {
        display: none;
    }

    .hero-search input {
        width: 100%;
        padding: 11px 4px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-feature-card {
        padding: 20px;
    }

    .hero-feature-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-station-logo {
        width: 125px;
        height: 125px;
    }

    .platform-stats-grid,
    .station-grid {
        grid-template-columns: 1fr;
    }

    .platform-stats article {
        border-right: 0;
        border-bottom: 1px solid var(--public-border);
    }

    .platform-stats article:last-child {
        border-bottom: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .discovery-links {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .global-player {
        padding: 10px 14px;
    }

    .global-player-content {
        flex-wrap: wrap;
    }

    .global-player-status {
        margin-left: auto;
    }

    .global-player input[type="range"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/*
|--------------------------------------------------------------------------
| Radio Platform – Global Player
|--------------------------------------------------------------------------
*/

.global-player {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.global-player[hidden] {
    display: none;
}

.global-player-content {
    display: grid;
    grid-template-columns:
        auto
        minmax(180px, 1fr)
        auto
        auto
        auto
        minmax(120px, 180px)
        auto;
    gap: 18px;
    align-items: center;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 16px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(16, 24, 40, 0.98),
            rgba(26, 36, 58, 0.98)
        );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.global-player-cover {
    position: relative;
    width: 64px;
    height: 64px;
    overflow: hidden;
    flex: 0 0 64px;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.global-player-cover img,
.global-player-cover-placeholder {
    width: 100%;
    height: 100%;
}

.global-player-cover img {
    display: block;
    object-fit: cover;
}

.global-player-cover-placeholder {
    display: grid;
    place-items: center;
    font-size: 28px;
}

.global-player-station {
    min-width: 0;
}

.global-player-label {
    display: block;
    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.global-player-station strong {
    display: block;
    overflow: hidden;

    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-player-station small {
    display: block;
    overflow: hidden;
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-player-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.global-player-control,
.global-player-toggle,
.global-player-close {
    display: inline-grid;
    place-items: center;

    padding: 0;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    outline: 0;
}

.global-player-control {
    width: 38px;
    height: 38px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 18px;
}

.global-player-control:hover {
    background: rgba(255, 255, 255, 0.14);
}

.global-player-toggle {
    width: 50px;
    height: 50px;

    color: #102032;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    font-size: 18px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.global-player-toggle:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.global-player-live {
    display: flex;
    gap: 8px;
    align-items: center;

    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.global-player-live-dot {
    width: 9px;
    height: 9px;

    background: #32d583;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(50, 213, 131, 0.13);
}

.global-player-wave {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.global-player-wave span {
    width: 3px;
    height: 10px;

    background: rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    transform-origin: center;
}

.global-player.is-playing .global-player-wave span {
    animation: globalPlayerWave 0.9s ease-in-out infinite;
}

.global-player.is-playing .global-player-wave span:nth-child(2) {
    animation-delay: 0.12s;
}

.global-player.is-playing .global-player-wave span:nth-child(3) {
    animation-delay: 0.24s;
}

.global-player.is-playing .global-player-wave span:nth-child(4) {
    animation-delay: 0.36s;
}

.global-player.is-playing .global-player-wave span:nth-child(5) {
    animation-delay: 0.48s;
}

@keyframes globalPlayerWave {
    0%,
    100% {
        height: 8px;
        opacity: 0.45;
    }

    50% {
        height: 28px;
        opacity: 1;
    }
}

.global-player-volume-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.global-player-volume-icon {
    font-size: 15px;
}

.global-player-volume {
    width: 100%;
    accent-color: #ffffff;
    cursor: pointer;
}

.global-player-close {
    width: 36px;
    height: 36px;

    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border-radius: 10px;
    font-size: 26px;
    line-height: 1;
}

.global-player-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.global-player.is-buffering .global-player-toggle {
    opacity: 0.72;
    cursor: progress;
}

.global-player.has-error .global-player-content {
    border-color: rgba(240, 68, 56, 0.48);
}

.global-player.has-error .global-player-live-dot {
    background: #f04438;
    box-shadow: 0 0 0 5px rgba(240, 68, 56, 0.12);
}

body.player-visible {
    padding-bottom: 120px;
}

/*
|--------------------------------------------------------------------------
| Radio Platform – Station Detail
|--------------------------------------------------------------------------
*/

.station-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(12, 20, 35, 0.98),
            rgba(31, 47, 75, 0.96)
        );
}

.station-detail-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.station-detail-background::after {
    position: absolute;
    inset: 0;

    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(10, 18, 31, 0.95),
            rgba(10, 18, 31, 0.68)
        );
}

.station-detail-background img {
    width: 100%;
    height: 100%;

    opacity: 0.24;
    filter: blur(34px) saturate(1.15);
    object-fit: cover;
    transform: scale(1.14);
}

.station-detail-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.station-detail-logo {
    display: grid;
    place-items: center;
    overflow: hidden;

    width: 250px;
    aspect-ratio: 1;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.station-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-detail-logo span {
    font-size: 72px;
}

.station-detail-topline {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.station-detail-eyebrow {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.station-detail-content h1 {
    margin: 0 0 16px;

    color: #ffffff;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.04;
}

.station-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.station-detail-meta span {
    padding: 8px 12px;

    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
}

.station-detail-intro {
    max-width: 760px;
    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.75;
}

.station-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.station-main-play,
.station-secondary-button,
.station-back-button,
.station-sidebar-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 18px;

    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 13px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.station-main-play {
    color: #102032;
    background: #ffffff;
    border: 0;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.station-main-play:hover {
    transform: translateY(-1px);
}

.station-main-play:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.station-secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.station-secondary-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.station-content-section {
    background: #f6f8fb;
}

.station-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.station-main-content {
    display: grid;
    gap: 24px;
}

.station-content-card,
.station-sidebar-card {
    padding: 26px;

    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(20, 32, 50, 0.05);
}

.station-card-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.station-card-heading h2,
.station-sidebar-card h2 {
    margin: 4px 0 0;
}

.now-playing-live {
    display: inline-flex;
    gap: 7px;
    align-items: center;

    color: #16794b;
    font-size: 12px;
    font-weight: 800;
}

.now-playing-live span {
    width: 8px;
    height: 8px;

    background: #32d583;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(50, 213, 131, 0.12);
}

.now-playing-content {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.now-playing-cover {
    display: grid;
    place-items: center;
    overflow: hidden;

    width: 82px;
    height: 82px;

    background: #eef2f7;
    border-radius: 16px;
}

.now-playing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-cover span {
    font-size: 30px;
}

.now-playing-info {
    min-width: 0;
}

.now-playing-info span,
.now-playing-info small {
    display: block;
    color: #7d8796;
}

.now-playing-info strong {
    display: block;
    margin: 4px 0;

    overflow: hidden;
    color: #1c2737;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing-button {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    color: #ffffff;
    background: #172338;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
}

.station-description {
    color: #5f6c7d;
    line-height: 1.8;
}

.station-description p {
    margin: 0;
}

.station-history-empty {
    padding: 34px 20px;

    color: #7b8796;
    text-align: center;
    background: #f7f9fc;
    border: 1px dashed #d9e0e9;
    border-radius: 16px;
}

.station-history-empty span {
    display: block;
    margin-bottom: 10px;
    font-size: 34px;
}

.station-sidebar {
    display: grid;
    gap: 24px;
}

.station-information-list {
    margin: 20px 0 0;
}

.station-information-list > div {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;

    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.station-information-list > div:last-child {
    border-bottom: 0;
}

.station-information-list dt {
    color: #7d8794;
}

.station-information-list dd {
    margin: 0;
    color: #263244;
    font-weight: 700;
    text-align: right;
}

.station-sidebar-card p {
    color: #6f7b8a;
    line-height: 1.65;
}

.station-sidebar-button {
    width: 100%;

    color: #ffffff;
    background: #172338;
    border: 0;
}

.station-error-section {
    min-height: 520px;
    display: grid;
    align-items: center;
}

.station-back-button {
    margin-top: 10px;
    color: #ffffff;
    background: #172338;
}

/*
|--------------------------------------------------------------------------
| Responsive – Station Page i Player
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .global-player-content {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto
            auto;
    }

    .global-player-live,
    .global-player-wave,
    .global-player-volume-wrap {
        display: none;
    }

    .station-detail-grid {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 30px;
    }

    .station-detail-logo {
        width: 190px;
    }

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

    .station-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .global-player {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .global-player-content {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 16px;
    }

    .global-player-cover {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .global-player-controls {
        gap: 6px;
    }

    .global-player-control {
        display: none;
    }

    .global-player-toggle {
        width: 44px;
        height: 44px;
    }

    .global-player-close {
        position: absolute;
        top: -10px;
        right: -6px;

        width: 28px;
        height: 28px;

        color: #ffffff;
        background: #172338;
        border-radius: 50%;
        font-size: 20px;
    }

    body.player-visible {
        padding-bottom: 95px;
    }

    .station-detail-hero {
        padding: 48px 0;
    }

    .station-detail-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .station-detail-logo {
        width: min(210px, 70vw);
        margin: 0 auto;
    }

    .station-detail-topline,
    .station-detail-actions,
    .station-detail-meta {
        justify-content: center;
    }

    .station-detail-intro {
        margin-right: auto;
        margin-left: auto;
    }

    .station-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .station-main-play,
    .station-secondary-button {
        width: 100%;
    }

    .now-playing-content {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .now-playing-cover {
        width: 64px;
        height: 64px;
    }

    .now-playing-info strong {
        font-size: 15px;
    }

    .station-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .station-content-card,
    .station-sidebar-card {
        padding: 20px;
        border-radius: 16px;
    }

    .station-card-heading {
        align-items: flex-start;
    }

    .now-playing-live {
        display: none;
    }

    .station-information-list > div {
        align-items: flex-start;
    }

    .station-information-list dd {
        max-width: 55%;
    }

    .global-player-label {
        display: none;
    }

    .global-player-station strong {
        font-size: 14px;
    }

    .global-player-station small {
        font-size: 11px;
    }
}
.station-history-card{

    margin-top:30px;

    background:#1b1b1b;

    border-radius:14px;

    padding:20px;

}

.station-song-history{

    margin-top:15px;

}

.history-item{

    display:flex;

    gap:15px;

    padding:10px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.history-item:last-child{

    border-bottom:none;

}

.history-time{

    width:60px;

    color:#888;

    font-size:13px;

}

.history-info{

    flex:1;

}

.history-artist{

    color:#fff;

    font-weight:600;

}

.history-title{

    color:#bfbfbf;

    font-size:14px;

}

.history-loading,
.history-empty{

    color:#999;

}
/* ==========================================================================
   PLAYER I PLAY DUGMAD – završna ispravka
   ========================================================================== */

/*
 * Globalni player – logo mora imati stabilnu veličinu.
 */
.global-player-cover {
    position: relative;
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}

.global-player-cover img,
.global-player-cover-placeholder {
    width: 100%;
    height: 100%;
}

.global-player-cover img {
    display: block;
    object-fit: contain;
    padding: 4px;
    border-radius: inherit;
    background: #ffffff;
}

.global-player-cover-placeholder {
    display: grid;
    place-items: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.08);
}

.global-player-cover img[hidden],
.global-player-cover-placeholder[hidden] {
    display: none !important;
}

/*
 * Dugmad na karticama moraju imati vidljiv tekst i širinu
 * i prije pokretanja streama.
 */
.station-play-button,
.latest-play-button {
    min-width: 88px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: #f0edff;
    color: #5b3df5;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

/*
 * Sprječava da dugme na početku izgleda kao prazan oval.
 */

/*
 * Aktivno stanje.
 */
.station-play-button.is-playing,
.latest-play-button.is-playing {
    background: #ebe8ff;
    color: #4f35e8;
}

/*
 * Loading stanje.
 */
.station-play-button.is-loading,
.latest-play-button.is-loading {
    opacity: 0.75;
    cursor: wait;
}

/*
 * Najnovije stanice – stabilan raspored.
 */
.latest-station-item {
    display: grid;
    grid-template-columns:
        56px
        minmax(0, 1fr)
        auto
        auto;
    align-items: center;
    gap: 14px;
}

.latest-station-logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #f2efff;
}

.latest-station-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 4px;
}

.latest-station-info {
    min-width: 0;
}

/*
 * Mobilni prikaz.
 */
@media (max-width: 700px) {
    .global-player-cover {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        flex-basis: 48px;
    }

    .latest-station-item {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            auto;
    }

    .latest-station-item > .station-status {
        display: none;
    }

    .station-play-button,
    .latest-play-button {
        min-width: 74px;
        padding: 8px 10px;
        font-size: 12px;
    }
}
/* ==========================================================================
   PLAY DUGMAD NA KARTICAMA – konačna ispravka
   ========================================================================== */

.station-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

/*
 * Play dugme uvijek mora biti vidljivo.
 */
.station-card-footer .station-play-button {
    position: static;
    inset: auto;

    width: auto;
    min-width: 100px;
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    padding: 9px 14px;

    border: 0;
    border-radius: 12px;

    background: #f0edff;
    color: #5b3df5;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    cursor: pointer;
}

/*
 * Codec i bitrate ostaju desno.
 */
.station-card-footer > span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;

    padding: 9px 12px;

    border-radius: 11px;

    background: #f0edff;
    color: #5b3df5;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/*
 * Aktivni stream.
 */
.station-card-footer .station-play-button.is-playing {
    background: #e6e1ff;
    color: #4326d9;
}

/*
 * Učitavanje streama.
 */
.station-card-footer .station-play-button.is-loading {
    opacity: 0.7;
    cursor: wait;
}

/*
 * Dugme ne smije prekrivati druge elemente.
 */
.station-card-footer .station-play-button::before,
.station-card-footer .station-play-button::after {
    position: static;
}

/* Mobilni prikaz */

@media (max-width: 600px) {
    .station-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .station-card-footer .station-play-button,
    .station-card-footer > span {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   LOGO STANICE – VEĆI PRIKAZ U OKVIRU
   ========================================================= */

/* Veliki logo na stranici stanice */
.station-detail-logo {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.station-detail-logo img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: contain;

    /*
     * Vizuelno povećava mali logo unutar okvira.
     * Ne mijenja stvarnu datoteku.
     */
    transform: scale(1.35);
    transform-origin: center;

    padding: 0;
}

/* Logo u Now Playing kartici */
.station-now-playing-cover,
.station-now-playing-cover img {
    overflow: hidden;
}

.station-now-playing-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.30);
    transform-origin: center;
}

/* Logo u donjem globalnom playeru */
.global-player-cover {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.global-player-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;

    transform: scale(1.8);
    transform-origin: center;

    padding: 0;
}