:root {
    --bg: #0f1218;
    --bg-deep: #0b0e13;
    --panel: rgba(18, 22, 30, 0.9);
    --panel-strong: #141a24;
    --panel-soft: rgba(255, 255, 255, 0.04);
    --text: #f4f6fb;
    --text-muted: #aeb7c7;
    --accent: #ff6b35;
    --accent-2: #22d3a6;
    --accent-3: #f9c74f;
    --thai-gold: #f3c266;
    --thai-teal: #26d3b2;
    --thai-ink: #10141d;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --glow: 0 0 25px rgba(255, 107, 53, 0.35);
    --radius: 18px;
    --font-base: "Sora", "Chakra Petch", sans-serif;
    --font-display: "Chakra Petch", "Sora", sans-serif;
    --split-left: 60%;
    --player-safe: 260px;
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
    --accent-live: #26d3b2;
    --scale-factor: 1.08;
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

@media (min-width: 1280px) {
    body {
        font-size: calc(16px * var(--scale-factor));
    }
}

body {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(86, 203, 255, 0.22), transparent 48%),
        radial-gradient(circle at 82% 10%, rgba(97, 132, 255, 0.18), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(40, 97, 214, 0.14), transparent 55%),
        linear-gradient(135deg, #0b1019 0%, #101a2b 45%, #121b2a 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Link hover color aligned with site palette */
a {
    color: inherit;
    text-decoration-color: rgba(226, 232, 244, 0.35);
}

a:hover,
a:focus {
    color: var(--accent-2);
    text-decoration-color: rgba(38, 211, 178, 0.6);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(243, 194, 102, 0.05) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(-45deg, rgba(38, 211, 178, 0.04) 0 1px, transparent 1px 12px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 12% 22%, rgba(7, 10, 16, 0.75), transparent 55%),
        linear-gradient(120deg, rgba(7, 10, 16, 0.7) 0%, rgba(7, 10, 16, 0.2) 55%, rgba(7, 10, 16, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.container-fluid {
    position: relative;
    min-height: 100vh;
    padding: 0;
    z-index: 1;
}

.row {
    margin: 0;
}

#left-panel,
#right-panel {
    height: 100vh;
    transition: width 0.35s ease, opacity 0.35s ease;
}

#left-panel {
    background-image: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 30%;
    background-color: #0b0e13;
    padding: 32px 32px 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--split-left);
    z-index: 0;
    image-rendering: auto;
    box-shadow: var(--shadow);
}

#left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cover-image, none);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 30%;
    filter: saturate(1.05);
    transform: scale(1.02);
    opacity: var(--cover-opacity, 0.95);
    transition: opacity 0.7s ease;
    z-index: 0;
}

#left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(7, 10, 16, 0.88) 0%,
        rgba(7, 10, 16, 0.65) 40%,
        rgba(7, 10, 16, 0.35) 70%,
        rgba(7, 10, 16, 0.08) 100%
    ),
    linear-gradient(
        180deg,
        rgba(7, 10, 16, 0.25) 0%,
        rgba(7, 10, 16, 0.15) 45%,
        rgba(7, 10, 16, 0.4) 100%
    );
    z-index: 1;
}

#left-panel > * {
    position: relative;
    z-index: 2;
}

#left-panel.full-width {
    width: 100%;
    background-position: 50% 22%;
}

#right-panel {
    background: linear-gradient(180deg, #111521 0%, #151a24 100%);
    color: var(--text);
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    width: calc(100% - var(--split-left));
    position: absolute;
    top: 0;
    right: 0;
    border-left: none;
    padding: 28px 28px calc(var(--player-safe) + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(var(--player-safe) + env(safe-area-inset-bottom));
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    z-index: 1;
}

.content {
    max-width: 820px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    #right-panel {
        padding: 36px 40px calc(var(--player-safe) + env(safe-area-inset-bottom));
    }

    .content {
        max-width: 980px;
    }
}

#right-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(243, 194, 102, 0.06), transparent 45%),
        radial-gradient(circle at 10% 10%, rgba(38, 211, 178, 0.08), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}


#right-panel::-webkit-scrollbar {
    width: 8px;
}

#right-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(38, 211, 178, 0.6), rgba(243, 194, 102, 0.6));
    border-radius: 999px;
}

#right-panel::-webkit-scrollbar-track {
    background: transparent;
}

#right-panel.hidden {
    width: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    border: 0;
    overflow: hidden;
    scrollbar-gutter: auto;
}

#toggle-bar {
    width: 36px;
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.95), rgba(10, 12, 18, 0.9));
    cursor: pointer;
    z-index: 2;
    position: absolute;
    top: 50%;
    height: 140px;
    left: calc(var(--split-left) - 18px);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--ease-soft), left 0.35s ease, box-shadow 0.2s var(--ease-soft);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

#toggle-bar:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

#toggle-bar.collapsed {
    left: calc(100% - 32px);
    transform: translateY(-50%);
}

#toggle-arrow {
    font-size: 20px;
    color: #d9e6ff;
    transition: transform 0.35s ease;
}

#toggle-bar.collapsed #toggle-arrow {
    transform: rotate(180deg);
}

#toggle-bar:focus-visible {
    outline: 2px solid rgba(38, 211, 178, 0.6);
    outline-offset: 4px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    z-index: 1;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    opacity: 1;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
    border: none;
    animation: none;
    background: rgba(12, 15, 22, 0.18);
    padding: 4px;
}


@keyframes logoGlow {
    0% {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 10px rgba(34, 211, 166, 0.25);
    }
    50% {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 107, 53, 0.35);
    }
    100% {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 14px rgba(34, 211, 166, 0.35);
    }
}

@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 166, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(34, 211, 166, 0.12);
    }
}

@keyframes onAirPulse {
    0%,
    100% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
        color: rgba(245, 247, 251, 0.78);
    }
    50% {
        text-shadow: 0 2px 14px rgba(38, 211, 178, 0.35);
        color: rgba(245, 247, 251, 0.9);
    }
}

.waveform {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    margin-bottom: 10px;
}

.waveform span {
    display: block;
    width: 3px;
    border-radius: 999px;
    background: var(--thai-teal);
    animation: wavePulse 1.4s ease-in-out infinite;
    transform-origin: bottom;
}

.waveform span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.waveform span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.waveform span:nth-child(3) { height: 18px; animation-delay: 0.4s; }
.waveform span:nth-child(4) { height: 14px; animation-delay: 0.2s; }
.waveform span:nth-child(5) { height: 6px;  animation-delay: 0s; }

@keyframes wavePulse {
    0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
    50%       { transform: scaleY(1);    opacity: 1; }
}

.slogan {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: rgba(245, 247, 251, 0.6);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    max-width: min(520px, 78%);
    color: var(--text);
    z-index: 1;
    animation: fadeRise 0.8s ease both;
    align-items: stretch;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    position: relative;
}

.text-content::before {
    content: "● ON AIR · สด";
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(245, 247, 251, 0.78);
    border: none;
    box-shadow: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    animation: onAirPulse 2.4s ease-in-out infinite;
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

#now_artist,
#now_title,
#timer_txt {
    color: var(--text);
    text-shadow: none;
    border-radius: 0;
    display: block;
    align-items: center;
    width: 100%;
    font-weight: 600;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
}

#now_artist {
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    letter-spacing: 0.02em;
    font-family: var(--font-base);
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(245, 247, 251, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

#now_title {
    font-size: clamp(1.4rem, 3.8vw, 2.8rem);
    font-family: var(--font-display);
    padding: 0;
    background: linear-gradient(135deg, var(--thai-gold) 0%, #f4f6fb 55%, var(--thai-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

#timer_txt {
    display: inline-flex;
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 2px 0 0;
    border-radius: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: none;
}

.now-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.now-vote-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 1.05rem;
    transition: transform 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft);
}

.now-vote-btn:hover {
    transform: translateY(-1px);
    background: rgba(38, 211, 178, 0.14);
    border-color: rgba(38, 211, 178, 0.35);
}

.now-vote-score {
    min-width: 34px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
}

.now-vote-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.offline-banner {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 90, 90, 0.16);
    border: 1px solid rgba(255, 90, 90, 0.35);
    color: #ffd2d2;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.offline-banner.is-visible {
    display: inline-flex;
}

.offline-banner i {
    font-size: 0.85rem;
}

.now-vote-toast {
    font-size: 0.86rem;
    color: #b9fff1;
    margin-left: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(38, 211, 178, 0.18);
    border: 1px solid rgba(38, 211, 178, 0.35);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
    transform: translateY(4px);
}

.now-vote-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 12, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1060;
}

.copy-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.copy-modal-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 18, 26, 0.92);
    border: 1px solid rgba(38, 211, 178, 0.35);
    color: #b9fff1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
    font-weight: 600;
}

.copy-modal-card i {
    font-size: 1.05rem;
}

.now-recent-votes {
    margin-top: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.now-recent-votes .nr-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 100%;
    min-width: 0;
}

.now-recent-votes .nr-flag {
    font-size: 0.9rem;
}


.now-recent-votes .nr-text,
.now-recent-votes .nr-track {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.now-recent-votes .nr-item.show {
    opacity: 1;
    transform: translateY(0);
}

.now-recent-votes .nr-item.cta {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #b9fff1;
    background: rgba(38, 211, 178, 0.16);
    border-color: rgba(38, 211, 178, 0.35);
}

#now_artist::before,
#now_title::before {
    content: none;
}

.content {
    width: 100%;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 1;
    min-height: max-content;
}

.panel-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 16px 10px;
    box-shadow: none;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

.panel-section:hover {
    box-shadow: none;
    transform: none;
}

.panel-section--history {
    background: rgba(12, 15, 22, 0.6);
}

.panel-section--queue {
    background: rgba(15, 18, 26, 0.7);
}

.panel-section::before {
    content: none;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header > div {
    min-width: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 600;
    color: var(--text);
}

.panel-section--history .section-title {
    color: var(--thai-gold);
}

.panel-section--queue .section-title {
    color: var(--thai-teal);
}

.section-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.section-chip {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.section-chip--muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.15);
}

.section-chip--live {
    animation: livePulse 2.6s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(38, 211, 178, 0.14);
    color: #b9fff1;
    border-color: rgba(38, 211, 178, 0.35);
}

.section-chip--live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--thai-teal);
    box-shadow: 0 0 8px rgba(38, 211, 178, 0.6);
}

.timeline-item--now .meta::before {
    color: var(--accent-live);
}

.timeline-item--queue .meta {
    color: color-mix(in srgb, var(--accent-live) 85%, #ffffff 15%);
}
.timeline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
    flex-wrap: wrap;
}

.favorites-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
    flex-wrap: wrap;
}

.favorites-sort {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.06);
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.85) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 28px 6px 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.favorites-sort:focus-visible {
    outline: 2px solid rgba(38, 211, 178, 0.6);
    outline-offset: 2px;
    border-color: rgba(38, 211, 178, 0.45);
}

.favorites-sort option {
    background: #121722;
    color: #f5f7fb;
}

.favorites-count {
    min-width: 30px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.76rem;
}

#favoritesList .list-group-item {
    grid-template-columns: 1fr auto;
    align-items: center;
}

#favoritesList .fav-row-main {
    min-width: 0;
}

#favoritesList .fav-row-main .artiste,
#favoritesList .fav-row-main .titre {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#favoritesList .fav-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#favoritesList .item-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
}

.timeline-search-wrap {
    position: relative;
    flex: 1 1 240px;
    min-width: 180px;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn .quick-badge {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: #0f5132;
    color: #d1f7c4;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.favorites-transfer {
    margin-top: 8px;
    display: none;
    gap: 8px;
    flex-wrap: wrap;
}

.share-editor {
    margin-bottom: 14px;
}

.share-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(226, 232, 244, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.share-input {
    width: 100%;
    min-height: 84px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 26, 0.55);
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.92rem;
}

.share-input:focus {
    outline: none;
    border-color: rgba(38, 211, 178, 0.45);
    box-shadow: 0 0 0 2px rgba(38, 211, 178, 0.15);
    background: rgba(15, 18, 26, 0.55);
    color: var(--text);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.modal--premium .modal-content {
    background:
        radial-gradient(circle at 20% 0%, rgba(214, 179, 119, 0.22), transparent 52%),
        radial-gradient(circle at 80% 100%, rgba(214, 179, 119, 0.12), transparent 55%),
        linear-gradient(165deg, rgba(9, 12, 18, 0.98), rgba(12, 14, 20, 0.96));
    border: 1px solid rgba(214, 179, 119, 0.25);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.modal--premium .modal-header {
    border-bottom: 1px solid rgba(214, 179, 119, 0.18);
}

.modal-hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(214, 179, 119, 0.18);
    color: #e8d3a4;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.modal-subtitle {
    color: rgba(226, 232, 244, 0.75);
    font-size: 0.95rem;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.stream-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(214, 179, 119, 0.2);
    background: rgba(15, 18, 26, 0.82);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stream-card:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 179, 119, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.stream-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #0b0d12;
    font-size: 1rem;
    background: linear-gradient(135deg, #f0d79d, #c8a45f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.stream-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stream-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stream-desc {
    font-size: 0.85rem;
    color: rgba(226, 232, 244, 0.7);
}

.stream-pill {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(214, 179, 119, 0.14);
    color: #e8d3a4;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(214, 179, 119, 0.2);
    background: rgba(15, 18, 26, 0.78);
    color: rgba(226, 232, 244, 0.82);
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 179, 119, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.partner-card .partner-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

@media (max-width: 520px) {
    .stream-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

.track-modal-body {
    display: flex;
    gap: 16px;
    align-items: center;
}

.track-modal-cover {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.track-modal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.track-modal-artist {
    font-size: 0.95rem;
    color: rgba(226, 232, 244, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.track-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.track-modal-meta {
    font-size: 0.85rem;
    color: rgba(226, 232, 244, 0.6);
}

.track-modal-stats {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.track-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: rgba(226, 232, 244, 0.85);
}

.track-stat i {
    font-size: 0.8rem;
}

.track-modal-actions {
    margin-top: 18px;
}

.track-modal-label {
    margin-bottom: 10px;
    color: rgba(226, 232, 244, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

@media (max-width: 520px) {
    .track-modal-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

.share-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 26, 0.65);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.share-item i {
    font-size: 1.05rem;
}

.share-item:hover {
    transform: translateY(-1px);
    border-color: rgba(38, 211, 178, 0.45);
    box-shadow: 0 6px 18px rgba(15, 18, 26, 0.35);
}

.favorites-transfer.is-visible {
    display: flex;
}

.quick-btn--secondary {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
}

.install-banner {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.quick-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}

.quick-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-btn[aria-pressed="true"] {
    background: rgba(38, 211, 178, 0.16);
    border-color: rgba(38, 211, 178, 0.3);
    color: #b9fff1;
}

.timeline-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 32px 6px 12px;
    color: var(--text);
    font-size: 0.95rem;
}

.timeline-search::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.timeline-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 999px;
}

.timeline-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 10px;
    transition: background-color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}

.timeline-btn[aria-pressed="true"] {
    background: rgba(38, 211, 178, 0.16);
    border-color: rgba(38, 211, 178, 0.3);
    color: #b9fff1;
}


.timeline-item {
    position: relative;
}

.timeline-item .item-actions {
    display: inline-flex;
    gap: 6px;
    justify-self: end;
    grid-column: 3;
    opacity: 0.65;
}

.vote-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    justify-self: end;
    grid-column: 2;
    margin-top: 4px;
}

.vote-metrics {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 34px;
    line-height: 1.1;
}

.vote-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 999px;
    padding: 4px 6px;
    font-size: 0.7rem;
}

.vote-score {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 700;
}

.vote-count {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
}

.vote-box.voted {
    transform: scale(1.02);
    box-shadow: 0 0 0 2px rgba(38, 211, 178, 0.2);
    border-radius: 999px;
}

.now-vote-btn.voted {
    background: rgba(38, 211, 178, 0.18);
    border-color: rgba(38, 211, 178, 0.45);
}

.timeline-item .item-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 4px;
}

.timeline-item .item-btn.is-fav {
    color: #f9c74f;
}

.timeline-item .item-btn:focus-visible,
.timeline-btn:focus-visible,
.quick-btn:focus-visible,
.timeline-clear:focus-visible {
    outline: 2px solid rgba(38, 211, 178, 0.6);
    outline-offset: 2px;
    border-radius: 999px;
}

.vote-btn:focus-visible {
    outline: 2px solid rgba(38, 211, 178, 0.6);
    outline-offset: 2px;
    border-radius: 999px;
}

#timeline {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    list-style: none;
    position: relative;
}



.list-group-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 96px;
    column-gap: 8px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    padding: 8px 4px;
    margin-bottom: 0;
    color: var(--text);
    position: relative;
    border-radius: 6px;
    row-gap: 4px;
    align-items: center;
    box-shadow: none;
    transition: background-color 0.2s var(--ease-soft);
    position: relative;
}

.list-group-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.list-group-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.timeline-item--now.active {
    background: rgba(38, 211, 178, 0.08);
    border-left: 3px solid rgba(38, 211, 178, 0.65);
    padding-left: 5px;
    border-radius: 0 8px 8px 0;
}

.timeline-item .meta {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.timeline-item--now .meta {
    color: rgba(245, 247, 251, 0.92);
}

.timeline-item--now .meta::before {
    content: "•";
    display: inline-block;
    margin-right: 6px;
    color: rgba(38, 211, 178, 0.9);
}

.timeline-item--queue .meta {
    color: color-mix(in srgb, var(--accent-live) 85%, #ffffff 15%);
}

.timeline-item--history .meta {
    color: rgba(243, 194, 102, 0.85);
}

.recent-votes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.recent-votes li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}


.recent-votes .rv-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.recent-votes .rv-text {
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.2;
}

.recent-votes .rv-track {
    font-size: 0.82rem;
    color: rgba(226, 232, 244, 0.7);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(226, 232, 244, 0.4);
}

.now-recent-votes .nr-track {
    opacity: 0.85;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(226, 232, 244, 0.4);
}

.recent-votes .rv-vote {
    font-size: 0.9rem;
    color: var(--text);
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .recent-votes li {
        align-items: flex-start;
    }
    .recent-votes .rv-vote {
        margin-left: auto;
    }
    .now-recent-votes .nr-item {
        border-radius: 14px;
        font-size: 0.72rem;
    }
}

.panel-section--history .list-group-item {
    padding-right: 14px;
    background-color: rgba(255, 255, 255, 0.015);
}

.panel-section--timeline .list-group-item {
    padding-right: 10px;
}

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

.artiste {
    font-weight: 600;
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.titre {
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.duree,
.time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    background: transparent;
    margin-top: 2px;
    justify-self: end;
    text-align: right;
    min-width: 0;
    grid-column: 3;
}

.panel-section--history .time {
    background: transparent;
    color: #f0c7b8;
}

.panel-section--queue .duree {
    background: transparent;
    color: #b9fff1;
}

.pochette {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    aspect-ratio: 1 / 1;
    flex: 0 0 40px;
    border-radius: 5px;
    background: #1b1f2a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    cursor: zoom-in;
}


.pochette:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
}

.pochette::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.pochette:hover::before {
    opacity: 1;
}

.pochette .loupe {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pochette:hover .loupe {
    opacity: 1;
}

.next-song-text {
    display: none;
}

.player-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    --player-pad-x: 14px;
    --player-pad-top: 8px;
    --player-pad-bottom: calc(8px + env(safe-area-inset-bottom));
    background: transparent;
    border: none;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.32);
    backdrop-filter: none;
    padding: var(--player-pad-top) var(--player-pad-x) var(--player-pad-bottom);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: hidden;
}

.player-controls::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--player-pad-top));
    right: calc(-1 * var(--player-pad-x));
    bottom: calc(-1 * var(--player-pad-bottom));
    left: calc(-1 * var(--player-pad-x));
    border-radius: 0;
    background: linear-gradient(
        120deg,
        rgba(12, 14, 18, 0.78) 0%,
        rgba(12, 14, 18, 0.6) 45%,
        rgba(12, 14, 18, 0.45) 100%
    );
    z-index: 1;
}

.player-controls > * {
    position: relative;
    z-index: 2;
}

.progress {
    position: absolute;
    top: calc(-1 * var(--player-pad-top));
    right: calc(-1 * var(--player-pad-x));
    bottom: calc(-1 * var(--player-pad-bottom));
    left: calc(-1 * var(--player-pad-x));
    margin: 0 !important;
    height: auto;
    padding: 0;
    background-color: rgba(20, 22, 26, 0.98);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    width: auto;
    pointer-events: none;
    z-index: 0;
}

.player-status {
    min-width: 120px;
    color: rgba(226, 232, 244, 0.75);
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#progress_bar {
    background: linear-gradient(90deg, #1db954 0%, #f6c945 70%, #ff4d4d 100%);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.12);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
    height: 100%;
    opacity: 1;
}

.player-controls .btn:focus-visible {
    outline: 2px solid rgba(38, 211, 178, 0.6);
    outline-offset: 2px;
}

.btn-play {
    border-radius: 999px;
    background: #1db954;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: grid;
    place-items: center;
    border: none;
    color: white;
    transition: transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}

.btn-play.is-loading,
.quick-btn.is-loading {
    position: relative;
}

.btn-play.is-loading i,
.quick-btn.is-loading i {
    opacity: 0;
}

.btn-play.is-loading::after,
.quick-btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

.btn-play.is-loading::after {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(11, 14, 19, 0.2);
    border-top-color: #0b0e13;
    border-right-color: #0b0e13;
}

.quick-btn.is-loading::after {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
}

.btn-play i {
    color: #0b0e13;
    font-size: 1rem;
}

.player-controls .btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 5px 12px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s var(--ease-soft), background 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}

.player-controls .btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.player-controls .btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px rgba(0, 0, 0, 0.34);
}

.player-controls .btn i {
    font-size: 0.92rem;
}

.player-controls .btn-gradient-dark,
.player-controls .btn-gradient-primary,
.player-controls .btn-gradient-primary2 {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.player-controls .btn-play {
    background: #1db954;
    border: none;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

#sourceChangeBtn {
    font-size: 0.76rem;
    padding: 6px 10px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    min-height: 32px;
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#sourceChangeBtn i {
    font-size: 0.88em;
}

#sourceChangeBtn.quality-low i {
    color: #f6c945;
}

#sourceChangeBtn.quality-med i {
    color: #f5f7fb;
}

#sourceChangeBtn.quality-high i {
    color: #22d3a6;
}

@media (min-width: 900px) {
    #sourceChangeBtn {
        font-size: 0.86rem;
        padding: 7px 12px;
        min-height: 36px;
        min-width: 96px;
    }
}

@media (min-width: 1280px) {
    #sourceChangeBtn {
        font-size: 0.95rem;
        padding: 8px 14px;
        min-height: 38px;
        min-width: 108px;
    }
}

.volume-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    justify-content: flex-start;
    line-height: 1;
}

.volume-btn #volumeIcon,
.volume-btn svg[data-icon^="volume"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volume-value {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    min-width: 38px;
    text-align: right;
}

.volume-control {
    width: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    overflow: hidden;
    margin-left: 0;
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
    transition: width 0.2s ease, margin-left 0.2s ease, opacity 0.2s ease;
}

.volume-btn:hover .volume-control,
.volume-btn:focus-within .volume-control,
.volume-btn.is-open .volume-control {
    width: 128px;
    margin-left: 4px;
    opacity: 1;
}

#volumeControl {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    --volume-pct: 50%;
    --volume-fill: #ffffff;
    --volume-empty: rgba(255, 255, 255, 0.26);
    background: linear-gradient(
        90deg,
        var(--volume-fill) 0%,
        var(--volume-fill) var(--volume-pct),
        var(--volume-empty) var(--volume-pct),
        var(--volume-empty) 100%
    );
    cursor: pointer;
}


#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    margin-top: -3px;
}

#volumeControl::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

#volumeControl::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 999px;
}

#volumeControl::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--volume-empty);
    border-radius: 999px;
}

#volumeControl::-moz-range-progress {
    height: 6px;
    background: var(--volume-fill);
    border-radius: 999px;
}

.btn-gradient-primary,
.btn-gradient-primary2,
.btn-gradient-dark {
    border: none;
    color: white;
    border-radius: 12px;
    transition: transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient-primary2 {
    background: linear-gradient(135deg, #ff8f1f, #ff5f4c);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient-dark {
    background: linear-gradient(135deg, #1b1f2a, #0f1218);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}


.btn-play:hover,
.btn-gradient-primary:hover,
.btn-gradient-primary2:hover,
.btn-gradient-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.playlist-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

.playlist-link:hover .audio-quality-title {
    color: var(--accent-2);
}

.playlist-link:hover .audio-quality-description {
    color: var(--text-muted);
}

.list-group-item .audio-quality-title {
    font-weight: 600;
    margin: 0;
}

.audio-quality-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow: hidden;
    padding-bottom: 10px;
}

.modal-content {
    background:
        linear-gradient(160deg, rgba(28, 34, 46, 0.98), rgba(16, 20, 30, 0.92) 60%),
        radial-gradient(circle at top right, rgba(34, 211, 166, 0.12), transparent 45%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    color: var(--text);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.modal-title {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.modal-body {
    color: var(--text-muted);
}

.btn-close {
    filter: invert(1) opacity(0.9);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    padding: 6px;
    transition: background-color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.16);
    transform: rotate(6deg);
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.cr-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(245, 247, 251, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 15, 22, 0.25);
    align-self: flex-start;
}

/* Mobile now-playing strip in player bar */
.mobile-now-info {
    display: none;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0 6px;
    position: relative;
    z-index: 2;
}

.mobile-now-info .m-artist {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mobile-now-info .m-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

@media (max-width: 992px) {
    :root {
        --player-safe: 220px;
    }
    #left-panel,
    #right-panel {
        position: relative;
        width: 100%;
        height: auto;
    }

    #left-panel {
        min-height: 100vh;
    }

    #left-panel::before,
    #left-panel::after {
        position: fixed;
        width: 100%;
        height: 100vh;
        left: 0;
        top: 0;
    }

    #right-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        overflow: visible;
        padding: 20px 20px calc(var(--player-safe) + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(var(--player-safe) + env(safe-area-inset-bottom));
    }

    #right-panel.hidden {
        width: 100%;
        opacity: 1;
        pointer-events: auto;
    }

    #left-panel.full-width {
        width: 100%;
    }

    #toggle-bar {
        display: none;
    }

    .player-controls {
        width: 100%;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    #left-panel {
        padding: 24px 20px 140px;
    }

    .logo {
        max-height: 90px;
    }

    .logo-container {
        padding: 4px 8px;
        border-radius: 10px;
    }

    .slogan {
        font-size: 0.95rem;
    }

    .player-controls {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        min-width: 0;
        --player-pad-x: 10px;
        --player-pad-top: 10px;
        --player-pad-bottom: calc(10px + env(safe-area-inset-bottom));
        padding: var(--player-pad-top) var(--player-pad-x) var(--player-pad-bottom);
    }

    .player-controls > * {
        display: none !important;
    }

    #playPauseBtn {
        display: grid !important;
        width: 44px;
        height: 44px;
        margin: 0;
        place-items: center;
    }

    .player-controls .progress {
        display: block !important;
        width: auto;
        margin: 0;
    }

    #mobileNowInfo {
        display: flex !important;
    }

    .list-group-item {
        padding: 12px;
    }

    .panel-section {
        padding: 12px 14px 8px;
    }

    .panel-section--queue .list-group-item {
        padding-right: 10px;
    }

    .panel-section--history .list-group-item {
        padding-right: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pochette {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex: 0 0 36px;
    }

    .panel-section--history .pochette {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex: 0 0 34px;
    }

    .panel-section,
    .player-controls,
    .logo-container,
    #now_artist,
    #now_title,
    #timer_txt {
        backdrop-filter: none;
    }

    .text-content {
        max-width: 100%;
        padding: 10px 12px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    #right-panel {
        padding: 16px 14px calc(var(--player-safe) + env(safe-area-inset-bottom));
    }

    .logo {
        max-height: 70px;
    }

    .logo-container {
        padding: 4px 8px;
        border-radius: 10px;
    }

    .slogan {
        font-size: 0.8rem;
    }

    #now_title {
        font-size: clamp(1.1rem, 6vw, 1.9rem);
    }

    .player-controls {
        gap: 6px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        --player-pad-x: 12px;
        --player-pad-top: 10px;
        --player-pad-bottom: calc(10px + env(safe-area-inset-bottom));
        padding: var(--player-pad-top) var(--player-pad-x) var(--player-pad-bottom);
    }

    .player-controls .d-sm-block {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .player-controls .btn-gradient-dark,
    .player-controls .btn-gradient-primary,
    .player-controls .btn-gradient-primary2 {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 0;
        border-radius: 12px;
    }

    .player-controls .progress {
        display: block !important;
        order: 0;
        flex: none;
        margin: 0;
    }

    #playPauseBtn {
        width: 40px;
        height: 40px;
        display: grid !important;
        place-items: center;
        border-radius: 12px;
    }

    .volume-btn {
        min-width: 38px;
        width: 38px;
        padding: 0;
        justify-content: center;
        overflow: visible;
    }

    .volume-btn .volume-value {
        display: none;
    }

    .volume-btn .volume-control {
        width: 0;
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        padding: 8px 10px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: rgba(11, 14, 20, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
    }

    .volume-btn:hover .volume-control,
    .volume-btn:focus-within .volume-control,
    .volume-btn.is-open .volume-control {
        width: 136px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .timeline-actions {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        align-items: center;
    }

    .quick-actions {
        gap: 8px;
    }

    .favorites-actions {
        gap: 8px;
    }

    .favorites-sort {
        width: 100%;
    }

    .favorites-transfer {
        gap: 6px;
    }

    .timeline-search-wrap {
        width: 100%;
        grid-column: 1 / -1;
    }


    .panel-section--queue .list-group-item {
        padding-right: 8px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .list-group-item {
        grid-template-columns: 44px minmax(0, 1fr) 96px;
        row-gap: 4px;
    }

    .duree,
    .time {
        justify-self: start;
        text-align: left;
        grid-column: 3;
    }

    .timeline-item .item-actions {
        grid-column: 3;
        justify-self: end;
        margin-top: 0;
    }

    .vote-box {
        grid-column: 3;
        justify-self: end;
        margin-top: 0;
    }

    .section-title {
        letter-spacing: 0.04em;
    }

    .section-subtitle {
        display: none;
    }

    .next-song-text {
        margin-left: 0;
        margin-top: 6px;
        width: 100%;
        justify-content: flex-start;
    }

    .section-header {
        gap: 6px;
    }

    .section-chip {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        padding: 3px 8px;
    }

    #timeline .track-info {
        width: 100%;
    }

    .text-content {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}
