/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #ba1c21;
    --red-dark: #8a1519;
    --dark: #1a1a1a;
    --darker: #111111;
    --gray: #2a2a2a;
    --gray-light: #888;
    --white: #ffffff;
    --text: #e0e0e0;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 90px; /* space for sticky player */
}

a {
    color: var(--white);
    text-decoration: none;
}

h1, h2, h3 {
    color: var(--white);
}

/* === Header === */
.header {
    background: var(--dark);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
}

.logo-text strong {
    color: var(--white);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-light);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--gray);
}

/* === Hero === */
.hero {
    background: var(--dark);
    padding: 80px 24px;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--gray-light);
}

/* === Stations === */
.stations {
    padding: 48px 24px;
}

.stations-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.station-card {
    background: var(--gray);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.station-card.active {
    border-color: var(--red);
}

.station-freq {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 1.2em;
}

.station-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin: 8px 0 4px;
}

.station-title {
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* === Player Bar === */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    border-top: 1px solid var(--gray);
    z-index: 200;
    backdrop-filter: blur(20px);
}

.player-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.player-station {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    background: var(--red);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    display: none;
    animation: pulse 1.5s infinite;
}

.live-badge.active {
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.player-detail {
    font-size: 0.8rem;
    color: var(--gray-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1em;
}

.player-controls {
    flex-shrink: 0;
}

.btn-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-play:hover {
    background: var(--red-dark);
    transform: scale(1.05);
}

.btn-play:active {
    transform: scale(0.95);
}

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

.btn-mute {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.btn-mute:hover {
    color: var(--white);
}

.btn-mute.muted {
    color: var(--red);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: var(--gray);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    border: none;
}

/* === Sections === */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
}

/* === Apps === */
.apps {
    background: var(--dark);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 700px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--darker);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.app-card:not(.disabled):hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.app-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-icon-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
    border-radius: 50%;
    flex-shrink: 0;
}

.app-icon-circle svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

.app-platform {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.app-sub {
    font-size: 0.9rem;
    color: var(--gray-light);
}

.apps-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* === Podcasts === */
.podcasts {
    background: var(--dark);
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.podcast-card {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 24px;
}

.podcast-card h3 {
    margin-bottom: 8px;
}

.podcast-card p {
    color: var(--gray-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* === About === */
.about {
    background: var(--darker);
}

.about p {
    max-width: 700px;
    font-size: 1.1rem;
}

/* === Contact === */
.contact {
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 20px;
}

.contact-item h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.social-links a {
    padding: 8px 16px;
    background: var(--gray);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--red);
}

.contact-email {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* === Footer === */
.footer {
    padding: 32px 24px;
    text-align: center;
    color: var(--gray-light);
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-inner {
        gap: 8px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 26px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 48px 24px;
    }

    .nav {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .player-inner {
        padding: 12px 16px;
    }

    .player-volume {
        display: none;
    }

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

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

@media (max-width: 480px) {
    .stations-inner {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 1rem;
    }
}
