:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #6b7280;
    --primary: #0d6efd;
    --primary-dark: #084298;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-icon {
    font-size: 28px;
}

.logo span span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.main-nav a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

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

.header-search {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    width: 180px;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    font-size: 14px;
}

.header-search button {
    border: 0;
    background: #fff;
    padding: 0 12px;
    cursor: pointer;
}

/* HERO */

.hero {
    padding: 58px 0 45px;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 28px;
}

.hero-search {
    display: flex;
    max-width: 620px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 13px 15px;
    font-size: 16px;
}

.hero-search button {
    border: 0;
    border-radius: 9px;
    padding: 0 22px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* SECTIONS */

.section {
    padding: 42px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0;
    font-size: 25px;
}

.section-header a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* RADIO CARDS */

.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.radio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: transform .2s, box-shadow .2s;
}

.radio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .07);
}

.radio-card-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

.radio-logo {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.radio-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.radio-logo-placeholder {
    font-size: 32px;
}

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

.radio-name {
    margin: 0 0 7px;
    font-size: 18px;
}

.radio-location {
    color: var(--muted);
    font-size: 13px;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
}

.live-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.live-status.unknown {
    color: #9ca3af;
}

.live-status.offline {
    color: var(--danger);
}

.now-playing {
    margin-top: 17px;
    padding: 11px 12px;
    background: #f8fafc;
    border-radius: 9px;
    font-size: 13px;
    color: #4b5563;
    min-height: 40px;
}

.radio-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-play {
    flex: 1;
    border: 0;
    border-radius: 9px;
    padding: 11px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.btn-play:hover {
    background: var(--primary-dark);
}

.btn-favorite {
    width: 45px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    font-size: 19px;
}

/* CATEGORIES */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    transition: .2s;
}

.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* EMPTY */

.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

/* FOOTER */

.site-footer {
    margin-top: 40px;
    background: #111827;
    color: #fff;
}

.footer-inner {
    padding: 35px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #d1d5db;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* RESPONSIVE */

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

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

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .header-inner {
        gap: 10px;
    }

    .header-search {
        margin-left: auto;
    }

    .header-search input {
        width: 110px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-search {
        flex-direction: column;
        gap: 5px;
    }

    .hero-search button {
        padding: 12px;
    }

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

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

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


/* ============================================================
   GLOBAL PLAYER
   ============================================================ */

.global-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 10px 22px;

    background: rgba(17, 24, 39, .97);
    color: #fff;

    box-shadow: 0 -5px 25px rgba(0, 0, 0, .18);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #374151;
    border-radius: 10px;

    overflow: hidden;
    flex-shrink: 0;
}

.player-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-details strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-details span {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.player-main-button,
.player-stop-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.player-main-button {
    background: #fff;
    color: #111827;
    font-size: 17px;
}

.player-stop-button {
    background: #374151;
    color: #fff;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.player-volume input {
    width: 90px;
}

body {
    padding-bottom: 90px;
}

@media (max-width: 600px) {

    .global-player {
        min-height: 70px;
        padding: 8px 12px;
        gap: 10px;
    }

    .player-logo {
        width: 44px;
        height: 44px;
    }

    .player-details strong {
        max-width: 130px;
    }

    .player-details span {
        max-width: 130px;
    }

    .player-stop-button,
    .player-volume {
        display: none;
    }

    .player-main-button {
        width: 46px;
        height: 46px;
    }
}
