/* =========================
   GLOBAL
========================= */
body {
    background: #0a0f1f;
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding-bottom: 90px;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    background: linear-gradient(to bottom, #2a6fd6, #0d47a1);
    border-bottom: 1px solid #2a6fd6;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(42,111,214,0.5);
}

.top-bar a {
    color: #ffffff;
    margin-left: 15px;
    text-decoration: none;
}

.top-bar a:hover {
    text-shadow: 0 0 8px #ffffff;
}

/* =========================
   HEADER
========================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to bottom, #2a6fd6, #0d47a1);
    border-bottom: 1px solid #2a6fd6;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 0 15px rgba(42,111,214,0.6);
}

.main-header a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.main-header a:hover {
    text-shadow: 0 0 10px #ffffff;
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* =========================
   TRACK CARD
========================= */
.track-card {
    background: #111a3a;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #1f3a7a;
    transition: 0.3s;
}

.track-card:hover {
    box-shadow: 0 0 15px #4db8ff;
}

.track-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.track-card h3 {
    color: #4db8ff;
    font-size: 16px;
    text-shadow: 0 0 6px #4db8ff;
}

/* =========================
   BUTTONS
========================= */
.track-card button,
.track-card .buy-btn,
.track-card .cart-btn {
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

/* PREVIEW */
.track-card button {
    background: #0d1b3d;
    color: #4db8ff;
}

.track-card button:hover {
    box-shadow: 0 0 10px #4db8ff;
}

/* VIEW */
.track-card .buy-btn {
    background: #1a7cff;
    color: #ffffff;
}

.track-card .buy-btn:hover {
    box-shadow: 0 0 12px #4db8ff;
}

/* ADD */
.track-card .cart-btn {
    background: #4db8ff;
    color: #000;
}

.track-card .cart-btn:hover {
    box-shadow: 0 0 12px #4db8ff;
}

/* =========================
   PLAYER
========================= */
.pro-player {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 95%;
    height: 55px;
    background: linear-gradient(to bottom, #0d1b3d, #050a1a);
    border: 1px solid #1f3a7a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 0 15px rgba(0,150,255,0.3);
    z-index: 999;
}

#player-title {
    color: #4db8ff;
    font-size: 13px;
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 0 6px #4db8ff;
}

#progress-bar {
    width: 150px;
}

.player-controls {
    display: flex;
}

.player-controls button {
    background: #0d1b3d;
    border: 1px solid #1f3a7a;
    padding: 4px 8px;
    margin-left: 5px;
    color: #4db8ff;
}

.player-controls button:hover {
    box-shadow: 0 0 8px #4db8ff;
}

#volume-control {
    width: 80px;
}

/* =========================
   FOOTER
========================= */
.main-footer {
    background: linear-gradient(to bottom, #2a6fd6, #0d47a1);
    padding: 30px;
    text-align: center;
    border-top: 1px solid #2a6fd6;
    box-shadow: 0 0 15px rgba(42,111,214,0.6);
}

.main-footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}

.main-footer a:hover {
    text-shadow: 0 0 10px #ffffff;
}

/* =========================
   ADMIN LAYOUT
========================= */
.ffp-admin {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.ffp-sidebar {
    width: 220px;
    background: linear-gradient(to bottom, #2a6fd6, #0d47a1);
    padding: 20px;
    box-shadow: 0 0 15px rgba(42,111,214,0.6);
}

.ffp-sidebar h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px #ffffff;
}

.ffp-sidebar a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.ffp-sidebar a:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 10px #4db8ff;
}

.ffp-sidebar a.active {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 15px #ffffff;
}

/* CONTENT */
.ffp-content {
    flex: 1;
    padding: 25px;
}

/* =========================
   ADMIN BREADCRUMB
========================= */
.admin-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.admin-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-breadcrumb span {
    margin: 0 6px;
}

.admin-breadcrumb .current {
    color: #e2e8f0;
    font-weight: 500;
}

/* =========================
   FRONTEND BREADCRUMB
========================= */
.container .breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #64748b;
}

.container .breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.container .breadcrumb a:hover {
    text-decoration: underline;
    color: #60a5fa;
}

.container .breadcrumb span {
    margin: 0 6px;
}

.container .breadcrumb .current {
    color: #0f172a;
    font-weight: 500;
}

/* =========================
   SPLASH SCREEN
========================= */
#splash-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
#splash-screen.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* =========================
   MOBILE OPTIMIZATION LAYER
========================= */

/* ---------- GLOBAL ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ---------- HEADER FIX ---------- */
@media (max-width: 768px) {

    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .main-header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .main-header a {
        margin: 5px;
        font-size: 13px;
    }
}

/* ---------- GRID FIX (CRITICAL) ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Tablet */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- TRACK CARD FIX ---------- */
@media (max-width: 768px) {

    .track-card {
        padding: 10px;
    }

    .track-card img {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    .track-card h3 {
        font-size: 14px;
    }

    .track-card p {
        font-size: 12px;
    }

    .track-card button,
    .track-card .buy-btn,
    .track-card .cart-btn {
        width: 100%;
        margin-top: 5px;
        padding: 10px;
        font-size: 13px;
    }

    .track-actions {
        display: flex;
        gap: 5px;
    }

    .track-actions a {
        flex: 1;
    }
}

/* ---------- TOUCH TARGETS ---------- */
button, a {
    min-height: 44px;
}

/* ---------- PLAYER MOBILE (VERY IMPORTANT) ---------- */
@media (max-width: 768px) {

    .pro-player {
        width: 100%;
        left: 0;
        transform: none;
        bottom: 0;
        border-radius: 0;
        height: 60px;
        padding: 5px;
    }

    #player-title {
        font-size: 12px;
        max-width: 90px;
    }

    #progress-bar {
        width: 80px;
    }

    #volume-control {
        display: none; /* remove clutter on mobile */
    }

    .player-controls button {
        padding: 6px;
        font-size: 12px;
    }
}

/* ---------- TYPOGRAPHY ---------- */
h2 {
    font-size: 22px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 18px;
        text-align: center;
    }
}

/* ---------- ADMIN MOBILE FIX ---------- */
@media (max-width: 768px) {

    .ffp-admin {
        flex-direction: column;
    }

    .ffp-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .ffp-sidebar a {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

/* =========================
   SPLASH MOBILE SAFETY
========================= */
#splash-video {
    object-fit: cover;
}


/* =========================
   MOBILE NAV (FIXED)
========================= */

.main-header {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    /* 🔥 FORCE NAV TO BE HIDDEN INITIALLY */
    .main-header nav.main-nav {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: #0d1b3d;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 10px 0;
        border-top: 1px solid #1f3a7a;
        z-index: 999;
    }

    /* 🔥 SHOW ONLY WHEN ACTIVE */
    .main-header nav.main-nav.active {
        display: flex !important;
    }

    .main-nav a {
        padding: 12px;
        border-bottom: 1px solid #1f3a7a;
        text-align: center;
    }
}

/* =========================
   NETFLIX STYLE RADIO CARDS
========================= */

.show-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transition: 0.3s;
}

.show-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(77,184,255,0.25);
}

.show-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* DARK OVERLAY */
.show-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* TITLE */
.show-overlay h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

/* DESCRIPTION */
.show-overlay p {
    font-size: 13px;
    color: #ccc;
    margin-top: 5px;
}

/* HOST AVATARS */
.host-avatars {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.host-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #111;
    object-fit: cover;
}

/* SECTION GRID */
.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}