:root {
    --primary-color: #F10E91;
    --secondary-color: #08CED3;
    --background-dark: #000;
    --background-panel: rgba(0,0,0,0.9);
    --text-light: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
    --card-background: rgba(255,255,255,0.05);
    --nav-height: 56px;
    --ambient-reactive: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, rgba(12, 12, 16, 0.92), rgba(12, 12, 16, 0.92)),
                linear-gradient(135deg, rgba(241, 14, 145, 0.65), rgba(8, 206, 211, 0.65));
    background-blend-mode: overlay;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    position: relative;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.track-title,
.panel-track-title h2,
.playlist-info-title,
.empty-title,
.overlay-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(0.8rem, 2.2vw, 1.2rem);
}

.nav-logo {
    width: clamp(72px, 8vw, 108px);
    max-height: calc(var(--nav-height) - 12px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3));
    opacity: 0.95;
}

.live-banner {
    margin-top: var(--nav-height);
    padding: clamp(0.5rem, 1.4vw, 0.8rem) clamp(1.4rem, 4vw, 2.8rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.8rem, 2.5vw, 2rem);
    width: 100%;
    background: rgba(0,0,0,0.28);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: visible;
}

.live-banner[hidden] {
    display: none;
}

.live-banner-row {
    display: flex;
    align-items: center;
    gap: clamp(0.45rem, 1vw, 0.8rem);
}

.live-banner-row.secondary {
    justify-content: flex-end;
    text-align: right;
}

.live-banner-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.live-banner-title {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.85px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.live-banner-time {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.live-banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

.live-banner-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s linear;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    gap: clamp(0.6rem, 1.8vw, 1rem);
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.05);
}

.now-playing {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(90px, 10vh, 140px) clamp(1.5rem, 3.5vw, 3rem) clamp(40px, 10vh, 80px);
    position: relative;
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
    max-height: 100vh; /* Keep within viewport */
    gap: clamp(1.8rem, 5vw, 3.5rem);
    max-width: min(960px, 100%);
    margin: 0 auto;
}

.artwork {
    width: 80vmin;
    max-width: 500px;
    height: 80vmin;
    max-height: 500px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

.track-info {
    max-width: 600px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.track-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.track-artist {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.track-details {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 2.5vw, 1.5rem);
    margin: 0;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: clamp(0.35rem, 1vw, 0.75rem);
}

.track-badge {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.track-badge i {
    opacity: 0.7;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.75rem);
    width: 100%;
    margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.info-btn {
    background-color: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.info-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(100px) brightness(0.5);
    z-index: -1;
    opacity: 0.55;
    overflow: hidden;
}

.background-overlay::after {
    content: "";
    position: absolute;
    inset: -30%;
    pointer-events: none;
    background: linear-gradient(120deg,
            rgba(241, 14, 145, 0.85) 0%,
            rgba(8, 206, 211, 0.75) 30%,
            rgba(133, 102, 255, 0.85) 65%,
            rgba(241, 14, 145, 0.9) 100%);
    background-size: 320% 320%;
    opacity: calc(0.6 + var(--ambient-reactive, 0) * 0.4);
    animation: ambientGradientTravel 22s linear infinite;
    will-change: transform, background-position;
    mix-blend-mode: screen;
}

.background-overlay::before {
    content: "";
    position: absolute;
    inset: -45%;
    pointer-events: none;
    background: radial-gradient(circle at 25% 25%, rgba(241, 14, 145, 0.4), transparent 45%),
                radial-gradient(circle at 70% 30%, rgba(8, 206, 211, 0.35), transparent 50%),
                radial-gradient(circle at 40% 75%, rgba(133, 102, 255, 0.32), transparent 55%);
    opacity: calc(0.35 + var(--ambient-reactive, 0) * 0.35);
    animation: ambientGlowOrbit 28s linear infinite;
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.audio-visualizer {
    position: fixed;
    z-index: 0;
    left: 0;
    right: 0;
    top: 60%;
    height: 12vh;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: clamp(0.15, calc(0.2 + var(--ambient-reactive, 0) * 0.4), 0.55);
    mix-blend-mode: screen;
    filter: blur(0.6px);
}

@keyframes ambientGradientTravel {
    0% {
        background-position: -60% 10%;
        transform: translate3d(-25%, -18%, 0) scale(1.12) rotate(-8deg);
    }
    25% {
        background-position: 80% 0%;
        transform: translate3d(20%, -26%, 0) scale(1.16) rotate(4deg);
    }
    50% {
        background-position: 160% 70%;
        transform: translate3d(32%, 24%, 0) scale(1.22) rotate(10deg);
    }
    75% {
        background-position: 40% 110%;
        transform: translate3d(-22%, 28%, 0) scale(1.18) rotate(-6deg);
    }
    100% {
        background-position: -60% 10%;
        transform: translate3d(-25%, -18%, 0) scale(1.12) rotate(-8deg);
    }
}

@keyframes ambientGlowOrbit {
    0% {
        transform: translate3d(-10%, -6%, 0) rotate(-6deg) scale(1.05);
        opacity: 0.5;
    }
    25% {
        transform: translate3d(16%, -16%, 0) rotate(8deg) scale(1.12);
        opacity: 0.63;
    }
    50% {
        transform: translate3d(-14%, 22%, 0) rotate(-10deg) scale(1.08);
        opacity: 0.56;
    }
    75% {
        transform: translate3d(22%, 12%, 0) rotate(14deg) scale(1.16);
        opacity: 0.68;
    }
    100% {
        transform: translate3d(-10%, -6%, 0) rotate(-6deg) scale(1.05);
        opacity: 0.5;
    }
}

/* New Panel Styles */
.track-info-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 50;
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.track-info-panel.open {
    right: 0;
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.panel-track-title {
    text-align: center;
    margin-bottom: 30px;
}

.panel-track-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artists-section {
    margin-bottom: 30px;
}

.artist-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artist-card {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 12px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    padding: 12px;
}

.artist-card:hover {
    transform: translateX(10px);
    background-color: rgba(255,255,255,0.1);
}

.artist-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    margin-right: 18px;
}

.artist-details {
    padding: 15px;
    flex-grow: 1;
}

.artist-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.artist-genre {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.track-info-section {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 20px;
}

.track-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.track-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-info-item-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.track-info-item-value {
    font-weight: 500;
}

.track-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.track-tag {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .track-info-panel {
        width: 100%;
        right: -100%;
    }

    .track-info-list {
        grid-template-columns: 1fr;
    }

    /* Ensure player fits on mobile without scrolling */
    .now-playing {
        padding: 40px 18px 20px;
        justify-content: center;
        gap: 18px;
        height: calc(100vh - var(--nav-height));
        max-height: calc(100vh - var(--nav-height));
        overflow: hidden;
    }

    .artwork {
        width: 52vmin;
        max-width: 280px;
        height: 52vmin;
        max-height: 280px;
    }

    .track-info {
        gap: 16px;
    }

    .track-title {
        font-size: 1.5rem;
    }

    .track-artist {
        font-size: 1.05rem;
    }

    .track-details {
        flex-wrap: wrap;
        gap: 10px;
        row-gap: 8px;
    }

    .track-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-btn {
        width: 45px;
        height: 45px;
    }

    .player-controls {
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .now-playing {
        padding: 35px 12px 16px;
        gap: 14px;
    }

    .artwork {
        width: 50vmin;
        max-width: 220px;
        height: 50vmin;
        max-height: 220px;
    }

    .track-info {
        gap: 12px;
    }

    .track-title {
        font-size: 1.3rem;
    }

    .track-artist {
        font-size: 1rem;
    }

    .player-controls {
        gap: 15px;
    }

    .play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .info-btn {
        width: 40px;
        height: 40px;
    }
}

/* Offcanvas Styles - Replaces Overlay */
.overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 600px;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.overlay.open {
    right: 0;
}

/* Backdrop for offcanvas */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.overlay-header-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overlay-back {
    background: none;
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.overlay-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}

.overlay-back[hidden] {
    display: none;
}

.overlay-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.overlay-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Playlist Overlay Specific */
.playlist-selector {
    background: linear-gradient(135deg, rgba(241, 14, 145, 0.1), rgba(8, 206, 211, 0.1));
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.date-time-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.picker-group {
    display: flex;
    flex-direction: column;
}

.picker-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255,255,255,0.15);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(241, 14, 145, 0.2);
    transform: translateY(-2px);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(241, 14, 145, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 14, 145, 0.5);
}

.search-btn:active {
    transform: translateY(-1px);
}

.playlist-results {
    min-height: 300px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.empty-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 10px;
}

.empty-text {
    color: rgba(255,255,255,0.7);
    max-width: 450px;
    margin: 0 auto;
}

.playlist-header {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(241, 14, 145, 0.15), rgba(8, 206, 211, 0.15));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.playlist-info-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.playlist-info-text {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.track-list {
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.track-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.track-item:last-child {
    border-bottom: none;
}

.track-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.track-item:hover {
    background: linear-gradient(90deg, rgba(241, 14, 145, 0.1), rgba(8, 206, 211, 0.05));
    padding-left: 24px;
}

.track-item:hover::before {
    transform: scaleY(1);
}

.track-number {
    width: 35px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    flex-shrink: 0;
}

.track-time {
    width: 80px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
    text-align: left;
}

.track-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.track-item:hover .track-cover {
    transform: scale(1.05);
}

.track-info-main {
    flex: 1;
    min-width: 0;
}

.track-title-item {
    font-size: 1.05rem;
    margin: 0 0 4px 0;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-genre {
    background: linear-gradient(135deg, rgba(241, 14, 145, 0.2), rgba(8, 206, 211, 0.2));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.track-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.track-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.export-playlist {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.export-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 206, 211, 0.4);
}

.export-btn:active {
    transform: translateY(0);
}

/* Schedule Overlay Specific */
.schedule-day-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 10px 4px 14px;
    position: sticky;
    top: -30px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(15px);
    z-index: 10;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
    padding-left: 30px;
    padding-right: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-day-tabs::-webkit-scrollbar {
    height: 4px;
}

.schedule-day-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.day-tab {
    background: rgba(255,255,255,0.06);
    border: 1px solid transparent;
    color: rgba(255,255,255,0.7);
    padding: 9px 20px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.day-tab:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.day-tab.active {
    background: linear-gradient(135deg, rgba(241, 14, 145, 0.25), rgba(8, 206, 211, 0.25));
    border-color: rgba(255,255,255,0.18);
    color: white;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.schedule-item {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.schedule-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.12);
}

.schedule-item.active {
    background: linear-gradient(135deg, rgba(241, 14, 145, 0.18), rgba(8, 206, 211, 0.18));
    border-color: rgba(241, 14, 145, 0.35);
}

.schedule-item--focused {
    box-shadow: 0 0 0 3px rgba(241, 14, 145, 0.25);
    border-color: rgba(241, 14, 145, 0.45);
}

.schedule-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.75);
}

.schedule-time {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.schedule-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.schedule-status--live {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.schedule-status--live i {
    font-size: 0.75rem;
}

.schedule-main {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 18px;
    align-items: center;
}

.schedule-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    position: relative;
}

.schedule-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.schedule-avatar--fallback {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.schedule-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-show-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.schedule-host {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.schedule-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-tag {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.08);
}

.schedule-tag.on-air-tag {
    background: linear-gradient(135deg, rgba(241, 14, 145, 0.35), rgba(8, 206, 211, 0.35));
    animation: pulse 2s infinite;
    font-weight: 700;
}

.show-name-link {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.show-name-link:hover {
    color: var(--secondary-color);
}

.dj-name-link {
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s;
}

.dj-name-link:hover {
    color: var(--secondary-color);
}

.dj-type-icon {
    margin-left: 6px;
    font-size: 0.85em;
    display: inline-block;
    vertical-align: middle;
}

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

/* Mobile Responsiveness for Offcanvas */
@media (max-width: 768px) {
    html {
        overflow: hidden;
        height: 100%;
        width: 100%;
    }

    body {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        position: relative;
    }

    body.overlay-open {
        overflow: hidden;
    }

    .overlay {
        width: 100%;
        max-width: 100%;
        right: -100%;
        box-shadow: none;
    }

    .overlay.open {
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    }

    .live-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: var(--nav-height) 0 0 0;
        padding: 12px 18px;
        transition: opacity 0.5s ease-in-out;
    }

    .live-banner.fade-out {
        opacity: 0;
    }

    .live-banner-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        padding: 0;
        transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
    }

    .live-banner-row.mobile-hidden {
        display: none;
    }

    .live-banner-row.secondary {
        justify-content: flex-start;
        text-align: left;
    }

    .live-banner-label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .live-banner-title {
        font-size: 1rem;
        width: 100%;
    }

    .live-banner-time {
        font-size: 0.82rem;
        text-align: left;
        margin-left: 0;
    }

    .overlay.open {
        right: 0;
    }

    .overlay-header {
        padding: 15px 20px;
    }

    .overlay-title {
        font-size: 1.5rem;
    }

    .overlay-body {
        padding: 20px;
    }

    .date-time-picker {
        grid-template-columns: 1fr;
    }

    .track-time {
        display: none;
    }

    .track-genre {
        display: none;
    }

    .schedule-list {
        gap: 16px;
    }

    .schedule-item {
        padding: 18px;
    }

    .schedule-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .schedule-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .schedule-avatar {
        margin: 0 auto;
        width: 66px;
        height: 66px;
        border-radius: 50%;
    }

    .schedule-details {
        align-items: center;
        text-align: center;
    }

    .schedule-tags {
        justify-content: center;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .schedule-day-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -20px;
        padding-left: 20px;
        padding-right: 20px;
        top: -20px;
    }
}

@media (max-width: 480px) {
    .overlay-header {
        padding: 12px 15px;
    }

    .overlay-title {
        font-size: 1.3rem;
    }

    .overlay-body {
        padding: 15px;
    }

    .schedule-item {
        padding: 16px;
    }

    .schedule-main {
        gap: 16px;
    }

    .schedule-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .live-banner {
        margin: var(--nav-height) 0 0 0;
        padding: 10px 16px;
    }

    .live-banner-row {
        gap: 4px;
        padding: 0;
    }

    .live-banner-time {
        text-align: left;
    }

    .live-banner-title {
        font-size: 0.95rem;
        letter-spacing: 0.4px;
    }
}
