@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-main: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-card: #FFFFFF;
    --accent: #FF4D00;
    --accent-soft: rgba(255, 77, 0, 0.1);
    --accent-gradient: linear-gradient(135deg, #FF4D00 0%, #FF8A00 100%);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.brand i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 5% 3rem;
    background: radial-gradient(circle at 100% 0%, var(--accent-soft) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(49, 130, 206, 0.05) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(255, 77, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(255, 77, 0, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
}

/* --- Bento Grid --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--accent-soft);
}

.card-1 { grid-column: span 8; grid-row: span 2; }
.card-2 { grid-column: span 4; grid-row: span 2; }
.card-3 { grid-column: span 4; grid-row: span 2; }
.card-4 { grid-column: span 8; grid-row: span 2; }

.bento-card i {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   RADIO PANEL  -  3-column layout
   ═══════════════════════════════════════════════════════════════ */

/* Range slider reset */
input[type=range] { -webkit-appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track {
    height: 4px; background: var(--border); border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px; width: 14px; border-radius: 50%;
    background: var(--accent); margin-top: -5px;
    box-shadow: 0 2px 6px rgba(255,77,0,0.4);
}

.radio-panel-section {
    padding: 0 5% 5rem;
    background: var(--bg-main);
    margin-top: -1px; /* flush under hero border */
}

.radio-panel {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* ── Column header strip ── */
.rp-col-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent-gradient);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
}

/* ── Column base ── */
.rp-col {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
}
.rp-col:last-child { border-right: none; }

/* Live dot */
.live-dot {
    display: inline-block;
    width: 9px; height: 9px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.3); }
}

/* ────────────────────────────────────────────
   Column 1 - LIVE PLAYER
──────────────────────────────────────────── */
.rp-player-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    flex: 1;
}

/* Album Art */
.rp-album-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-subtle);
    cursor: pointer;
}
.rp-album-art img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.rp-album-art:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* ── Standalone Play / Pause Button ── */
.rp-play-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    background: var(--text-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(15,23,42,0.25);
}
.rp-play-button:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,23,42,0.35);
}
.rp-play-button.playing {
    background: var(--accent-gradient);
    box-shadow: 0 8px 24px rgba(255,77,0,0.4);
}
.rp-play-button.playing:hover {
    box-shadow: 0 12px 32px rgba(255,77,0,0.55);
    transform: translateY(-2px);
}
.rp-play-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.rp-play-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Spinner (loading overlay on album art) ── */
.rp-spinner {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: rgba(0,0,0,0.5);
    pointer-events: none;
}
.rp-spinner::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin: -20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Track Info */
.rp-track-info { text-align: center; width: 100%; }
.rp-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: opacity 0.3s;
    margin-bottom: 0.25rem;
}
.rp-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
}

/* Volume row */
.rp-controls { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; }
.rp-vol-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.rp-vol-row input[type=range] { flex: 1; }

/* Listeners badge */
.rp-listeners {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Request button */
.rp-request-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: var(--transition);
}
.rp-request-btn:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,77,0,0.25);
}

/* ────────────────────────────────────────────
   Column 2 - RECENTLY PLAYED LIST
──────────────────────────────────────────── */
.rp-track-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.rp-track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    position: relative;
}
.rp-track-item:last-child { border-bottom: none; }
.rp-track-item:hover { background: var(--bg-subtle); }
.rp-track-item.rp-track-active {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}

.rp-track-thumb {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--bg-subtle);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
/* ── Track thumbnail colour tiles ── */
.rp-thumb-inner {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 10px;
    user-select: none;
}

.rp-track-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.rp-track-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rp-track-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-track-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border);
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
    line-height: 1;
}
.rp-track-item.rp-track-active .rp-track-num { color: var(--accent); }

/* Skeleton loading */
.rp-skeleton .skeleton-box {
    background: linear-gradient(90deg, var(--bg-subtle) 25%, #e8ecf0 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
    width: 44px; height: 44px;
}
.skeleton-line {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg-subtle) 25%, #e8ecf0 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 0.4rem;
    width: 100%;
}
.skeleton-line.short { width: 60%; }
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ────────────────────────────────────────────
   Column 3 - LIVE PROGRAMME
──────────────────────────────────────────── */
.rp-programme-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.rp-studio-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}
.rp-studio-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.rp-on-air-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(255,77,0,0.4);
}

.rp-show-info {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex: 1;
}
.rp-show-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.rp-show-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .radio-panel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .rp-programme-col {
        grid-column: 1 / -1;
    }
    .rp-album-art { max-height: 280px; }
}
@media (max-width: 640px) {
    .radio-panel {
        grid-template-columns: 1fr;
    }
    .radio-panel-section { padding: 0 0 4rem; }
    .radio-panel { border-radius: 0; }
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(1, 1fr); }
    .card-1, .card-2, .card-3, .card-4 { grid-column: span 1; grid-row: auto; }
}

@media (max-width: 768px) {
    #menu-toggle { display: flex !important; }
    .nav-login-btn { display: none !important; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .hero { padding-top: 100px; padding-bottom: 2rem; min-height: auto; }
    .hero h1 { font-size: 2.4rem; }
    .player-container { bottom: 1rem; padding: 1rem; }
    .volume-controls { display: none; }
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.social-icon.facebook:hover { background: #1877F2; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-icon.twitter:hover { background: #1DA1F2; }
.social-icon.youtube:hover { background: #FF0000; }

/* --- Footer --- */
.main-footer {
    padding: 100px 5% 180px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.footer-logo {
    width: 10vw;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 5% 180px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-logo {
        width: 20vw;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}
