@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

/* =====================================================================
   RD AUDIO — RichieDesigns custom visual layer
   Keeps the original component classes/behaviour, changes presentation.
   ===================================================================== */

:root {
    --rd-bg: #f5f7fb;
    --rd-surface: #ffffff;
    --rd-surface-2: #eef2f8;
    --rd-text: #101828;
    --rd-muted: #667085;
    --rd-border: #d9e1ec;
    --rd-primary: #6d5dfc;
    --rd-secondary: #16b8f3;
    --rd-accent: #35d6a2;
    --rd-gradient: linear-gradient(135deg, #6d5dfc 0%, #735cff 42%, #16b8f3 100%);
    --rd-shadow: 0 18px 50px rgba(22, 34, 55, .10);
    --rd-shadow-soft: 0 8px 24px rgba(22, 34, 55, .08);
}

body[data-theme='dark'] {
    --background-color: #07111f !important;
    --background-color-nav: rgba(7, 17, 31, .90) !important;
    --background-color-artist-header: #0d1a2d !important;
    --background-secondary: #0d1a2d !important;
    --background-secondary-opacity: rgba(13, 26, 45, .65) !important;
    --background-secondary-opacity-second: rgba(8, 18, 32, .94) !important;
    --background-color-third: #15263e !important;
    --background-hover-list: #142741 !important;
    --background-color-artist-footer: #0a1627 !important;
    --background-color-artist-footer-second: #0e1c30 !important;
    --bg-btn-music: #13233a !important;

    --text-color: #f8fafc !important;
    --text-color-default: #edf3fb !important;
    --text-color-default-info: #91a4bd !important;
    --border-color: rgba(131, 158, 194, .25) !important;
    --border-color-secondary: rgba(131, 158, 194, .15) !important;
    --border-color-third: #263b58 !important;

    --primary-color: #7c68ff !important;
    --switch-background-color: #7c68ff !important;
    --label-color: #7c68ff !important;
    --label-checked-color: #ffffff !important;
}

body:not([data-theme='dark']) {
    --background-color: #f5f7fb !important;
    --background-color-nav: rgba(245, 247, 251, .92) !important;
    --background-secondary: #ffffff !important;
    --background-color-third: #e9eef5 !important;
    --background-hover-list: #eef2ff !important;
    --text-color-default: #162033 !important;
    --text-color-default-info: #667085 !important;
    --border-color-secondary: #dfe6f0 !important;
    --primary-color: #6655eb !important;
    --switch-background-color: #6655eb !important;
    --label-color: #6655eb !important;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background:
        radial-gradient(circle at 82% 0%, rgba(109, 93, 252, .14), transparent 28%),
        radial-gradient(circle at 8% 85%, rgba(22, 184, 243, .08), transparent 26%),
        var(--background-color) !important;
}

body[data-theme='dark'] {
    background:
        radial-gradient(circle at 82% -5%, rgba(109, 93, 252, .18), transparent 30%),
        radial-gradient(circle at 10% 100%, rgba(22, 184, 243, .09), transparent 28%),
        #07111f !important;
}

.main-content,
.brand-container,
.navbar,
.inner-footer {
    max-width: 1180px !important;
}

.brand {
    font-family: 'Sora', sans-serif !important;
    font-size: 24px !important;
    margin: 0 20px 26px !important;
    padding-top: 22px !important;
    gap: 12px;
}

.rd-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 9px 24px rgba(109, 93, 252, .25);
}

.rd-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-brand-name {
    background: var(--rd-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    line-height: 1.05;
}

.rd-brand-tagline {
    color: var(--text-color-default-info);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.header-home {
    margin-top: 24px !important;
    padding: 0 20px;
}

.page {
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Sora', sans-serif !important;
    font-size: 34px !important;
    letter-spacing: -.04em;
}

.page small {
    font-family: 'Manrope', sans-serif;
    color: var(--text-color-default-info);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.inner-search-bar {
    min-height: 46px;
    margin-top: 22px !important;
    border: 1px solid var(--border-color-secondary);
    border-radius: 16px;
    box-shadow: var(--rd-shadow-soft);
    backdrop-filter: blur(14px);
}

.input-search {
    font-family: 'Manrope', sans-serif !important;
    font-size: 15px !important;
    caret-color: var(--primary-color) !important;
    border-left: 0 !important;
}

.input-search:focus,
.input-search:active {
    border-left: 0 !important;
    caret-color: var(--primary-color) !important;
}

.nav-container {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--background-color-nav);
    backdrop-filter: blur(18px) saturate(145%);
}

.nav-border {
    border-color: var(--border-color-secondary) !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

.center {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: var(--rd-shadow-soft);
}

.songs {
    font-family: 'Sora', sans-serif !important;
    letter-spacing: -.02em;
}

.container-slide {
    border-radius: 18px;
    padding: 10px;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.container-slide:hover {
    transform: translateY(-5px);
    background: var(--background-secondary);
    box-shadow: var(--rd-shadow-soft);
}

.album-img,
.artist-img {
    box-shadow: 0 13px 32px rgba(0, 8, 25, .16);
}

.album-img {
    border-radius: 16px !important;
}

.artist-img {
    box-shadow: 0 12px 30px rgba(0, 8, 25, .16);
}

.nome-album,
.nav-song-name,
.footer-brand,
.footer-center {
    font-family: 'Manrope', sans-serif !important;
}

.footer {
    border-top: 1px solid var(--border-color-secondary);
    background: var(--background-color-nav);
    backdrop-filter: blur(16px);
}

.footer-brand,
.footer-center {
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

.toggle-container {
    border-radius: 999px !important;
}

button,
input {
    font-family: 'Manrope', sans-serif !important;
}

.icon-active,
.bi-play-fill,
.bi-pause-fill {
    filter: drop-shadow(0 4px 10px rgba(109, 93, 252, .24));
}

::selection {
    color: white;
    background: #6d5dfc;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(116, 133, 157, .35);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 93, 252, .55);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Mobile polish */
@media (max-width: 700px) {
    .brand {
        margin-bottom: 16px !important;
    }

    .rd-brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .page {
        font-size: 28px !important;
    }

    .header-home {
        padding: 0 14px;
    }

    .inner-search-bar {
        margin-left: 14px !important;
        margin-right: 14px !important;
        border-radius: 14px;
    }
}


/* ===== RD AUDIO PREMIUM POLISH ===== */
:root { --rd-shell-max:1220px; --rd-radius-xl:22px; }
.brand-container,.navbar,.main-content,.inner-footer{width:min(calc(100% - 32px),var(--rd-shell-max))!important;margin-left:auto!important;margin-right:auto!important}
.rd-brand-link{text-decoration:none!important;color:inherit!important;width:fit-content;border-radius:16px;transition:transform .2s ease,filter .2s ease}
.rd-brand-link:hover{transform:translateY(-2px);filter:brightness(1.05)}
.rd-brand-link:focus-visible{outline:3px solid rgba(22,184,243,.25);outline-offset:4px}
.rd-brand-logo{transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease}
.rd-brand-link:hover .rd-brand-logo{transform:rotate(-3deg) scale(1.055);box-shadow:0 14px 32px rgba(109,93,252,.32)}
.nav-container{box-shadow:0 8px 28px rgba(3,12,25,.08)}
body[data-theme='dark'] .nav-container{box-shadow:0 10px 34px rgba(0,4,15,.22)}
.header-home{position:relative;margin-top:34px!important;padding:26px 26px 10px!important;border-radius:var(--rd-radius-xl);border:1px solid var(--border-color-secondary);background:linear-gradient(135deg,rgba(109,93,252,.08),rgba(22,184,243,.035)),var(--background-secondary);box-shadow:0 14px 36px rgba(0,8,25,.09);overflow:hidden}
.header-home::after{content:"";position:absolute;width:240px;height:240px;right:-90px;top:-120px;border-radius:50%;background:radial-gradient(circle,rgba(109,93,252,.15),transparent 68%);pointer-events:none}
.inner-search-bar{position:relative;z-index:2;border-color:rgba(109,93,252,.22)!important;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
.inner-search-bar:focus-within{transform:translateY(-1px);border-color:rgba(109,93,252,.5)!important;box-shadow:0 12px 30px rgba(73,72,172,.14)!important}
.container-slide{position:relative;transform-style:preserve-3d;will-change:transform;border:1px solid transparent}
.container-slide.rd-tilting{transform:perspective(900px) rotateX(var(--rd-tilt-x,0deg)) rotateY(var(--rd-tilt-y,0deg)) translateY(-5px)}
.container-slide:hover{border-color:rgba(109,93,252,.18);background:linear-gradient(180deg,rgba(109,93,252,.055),transparent 55%),var(--background-secondary)!important}
.album-img,.artist-img{transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .28s ease,box-shadow .28s ease}
.container-slide:hover .album-img,.container-slide:hover .artist-img{transform:scale(1.025);filter:saturate(1.06) contrast(1.02)}
.songs{margin-top:32px!important;margin-bottom:14px!important;font-size:20px!important}
.songs::after{content:"";display:inline-block;width:26px;height:3px;margin-left:10px;vertical-align:middle;border-radius:99px;background:var(--rd-gradient)}
.toggle-container{display:inline-flex!important;align-items:center;gap:4px!important;padding:4px!important;border:1px solid var(--border-color-secondary);border-radius:999px!important;background:var(--background-color-third)!important;box-shadow:0 8px 20px rgba(0,6,20,.07)}
.toggle-container input[type="radio"]{position:absolute!important;opacity:0!important;pointer-events:none}
.toggle-container label,.rd-theme-option{min-height:34px;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:7px 12px!important;border-radius:999px!important;cursor:pointer;font-size:12px!important;font-weight:700!important;color:var(--text-color-default-info)!important;transition:color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
.toggle-container label:hover{color:var(--text-color-default)!important;transform:translateY(-1px)}
.toggle-container input[type="radio"]:checked + label,.toggle-container label:has(+ input[type="radio"]:checked){color:#fff!important;background:var(--rd-gradient)!important;box-shadow:0 7px 16px rgba(109,93,252,.22)}
.rd-theme-icon{font-size:13px;line-height:1}
@media(max-width:760px){.brand-container,.navbar,.main-content,.inner-footer{width:min(calc(100% - 20px),var(--rd-shell-max))!important}.header-home{margin-top:20px!important;padding:20px 16px 8px!important;border-radius:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.container-slide.rd-tilting{transform:none!important}}


/* =====================================================================
   RD AUDIO — RESPONSIVE / MOBILE PASS
   ===================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, svg, video, canvas {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .brand-container,
    .navbar,
    .main-content,
    .inner-footer {
        width: min(calc(100% - 28px), var(--rd-shell-max)) !important;
    }

    .header-home {
        margin-top: 24px !important;
        padding: 22px 20px 10px !important;
    }

    .container-slide {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .brand-container,
    .navbar,
    .main-content,
    .inner-footer {
        width: calc(100% - 20px) !important;
    }

    .brand-container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .rd-brand-logo {
        width: 42px !important;
        height: 42px !important;
    }

    .rd-brand-name {
        font-size: 20px !important;
    }

    .rd-brand-tagline {
        font-size: 9px !important;
        letter-spacing: .08em;
    }

    .navbar {
        gap: 8px !important;
        flex-wrap: wrap;
    }

    .header-home {
        margin-top: 18px !important;
        padding: 18px 16px 8px !important;
        border-radius: 18px;
    }

    .header-home .page {
        font-size: clamp(27px, 8vw, 36px) !important;
        line-height: 1.05;
    }

    .inner-search-bar {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .inner-search-bar input {
        min-width: 0 !important;
        width: 100% !important;
    }

    .songs {
        margin-top: 24px !important;
        font-size: 18px !important;
    }

    .container-slide.rd-tilting {
        transform: none !important;
    }

    .toggle-container {
        max-width: 100%;
    }

    .toggle-container label,
    .rd-theme-option {
        padding: 7px 10px !important;
    }
}

@media (max-width: 560px) {
    .brand-container,
    .navbar,
    .main-content,
    .inner-footer {
        width: calc(100% - 16px) !important;
    }

    .rd-brand-link {
        max-width: 100%;
    }

    .header-home {
        padding: 16px 14px 7px !important;
    }

    .header-home::after {
        width: 170px;
        height: 170px;
        right: -70px;
        top: -90px;
    }

    .inner-search-bar {
        min-height: 48px !important;
    }

    .container-slide {
        border-radius: 16px !important;
    }

    .album-img,
    .artist-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .inner-footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .toggle-container {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .toggle-container label,
    .rd-theme-option {
        flex: 1 1 0;
    }
}

@media (max-width: 380px) {
    .rd-brand-tagline {
        display: none;
    }

    .rd-brand-name {
        font-size: 18px !important;
    }

    .header-home .page {
        font-size: 26px !important;
    }

    .rd-theme-option span:not(.rd-theme-icon) {
        font-size: 11px;
    }
}


/* =====================================================================
   RD AUDIO — REAL MUSIC FRONTEND SECTION
   ===================================================================== */
.rd-my-music-section {
    position: relative;
    margin-top: 28px;
    margin-bottom: 30px;
    padding: 20px 18px 18px;
    border: 1px solid rgba(109,93,252,.22);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(22,184,243,.11), transparent 30%),
        linear-gradient(135deg, rgba(109,93,252,.09), rgba(22,184,243,.025)),
        var(--background-secondary);
    box-shadow: 0 14px 38px rgba(0,8,25,.08);
}

.rd-my-music-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.rd-my-music-title {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

.rd-my-music-subtitle {
    color: var(--text-color-default-info);
    font-size: 12px;
    font-weight: 600;
}

.rd-track-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(109,93,252,.20);
    border-radius: 999px;
    background: rgba(109,93,252,.10);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
}

#container-local-album-slider {
    margin-top: 12px;
}

@media (max-width: 560px) {
    .rd-my-music-section {
        margin-top: 20px;
        padding: 16px 12px 14px;
        border-radius: 17px;
    }

    .rd-my-music-heading {
        align-items: center;
    }

    .rd-my-music-subtitle {
        max-width: 220px;
        font-size: 11px;
    }

    .rd-track-count {
        padding: 6px 9px;
        font-size: 10px;
    }
}


/* =====================================================================
   RD AUDIO — FINAL PLAYER / BRAND POLISH
   ===================================================================== */

body { padding-bottom: 112px !important; }

.outer-nav {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rd-master-logo,
.rd-footer-logo,
.rd-sheet-logo {
    display: block;
    object-fit: contain;
    background: #fff;
}

.rd-master-logo {
    width: 46px !important;
    height: 46px !important;
    padding: 3px;
    border-radius: 50% !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

/* Floating mini player */
.rd-mini-player {
    position: fixed;
    z-index: 5000;
    left: 50%;
    bottom: 18px;
    width: min(760px, calc(100vw - 36px));
    min-height: 74px;
    transform: translate(-50%, 130px);
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(120px,180px) 38px;
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(151,175,211,.20);
    border-radius: 16px;
    background: rgba(8,18,33,.96);
    color: #f8fbff;
    box-shadow: 0 22px 60px rgba(0,5,18,.48);
    backdrop-filter: blur(24px) saturate(150%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}

.rd-mini-player.is-visible {
    transform: translate(-50%,0);
    opacity: 1;
    pointer-events: auto;
}

.rd-mini-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.rd-mini-art-shell {
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.26);
}

.rd-mini-art { width:100%; height:100%; display:block; object-fit:cover; }

.rd-mini-copy {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.rd-mini-copy strong,
.rd-mini-copy span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.rd-mini-copy strong {
    font-family:'Sora','Manrope',sans-serif;
    font-size:14px;
    color:#fff;
}

.rd-mini-copy span { font-size:11px; color:#8fa2bd; }

.rd-mini-controls {
    display:flex;
    align-items:center;
    gap:8px;
}

.rd-mini-icon,
.rd-mini-play,
.rd-mini-expand {
    display:grid;
    place-items:center;
    border:0;
    color:#fff;
    cursor:pointer;
    transition:transform .17s ease, background .17s ease;
}

.rd-mini-icon {
    width:34px;
    height:34px;
    border-radius:50%;
    background:transparent;
    font-size:14px;
}

.rd-mini-icon:hover,
.rd-mini-expand:hover {
    background:rgba(255,255,255,.09);
    transform:scale(1.04);
}

.rd-mini-play {
    width:42px;
    height:42px;
    border-radius:50%;
    background:linear-gradient(135deg,#7c68ff,#16b8f3);
    box-shadow:0 8px 20px rgba(92,92,255,.28);
    font-size:15px;
}

.rd-mini-play:hover { transform:scale(1.055); }

.rd-mini-volume {
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    gap:8px;
    align-items:center;
    font-size:11px;
    color:#91a4bd;
}

.rd-mini-volume input,
.rd-sheet-seek-wrap input,
.rd-sheet-volume input {
    width:100%;
    accent-color:#7c68ff;
    cursor:pointer;
}

.rd-mini-expand {
    width:34px;
    height:34px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
    font-size:18px;
}

.rd-mini-progress-track {
    position:absolute;
    left:10px;
    right:10px;
    bottom:0;
    height:3px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.10);
}

.rd-mini-progress-fill {
    width:0;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#7c68ff,#16b8f3);
    transition:width .15s linear;
}

/* Expanded Now Playing */
.rd-player-sheet {
    position:fixed;
    z-index:6000;
    inset:0;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    overflow:hidden;
    background:#06101e;
    color:#f8fbff;
    transition:opacity .25s ease, visibility .25s ease;
}

.rd-player-sheet.is-open {
    visibility:visible;
    opacity:1;
    pointer-events:auto;
}

.rd-player-sheet-bg {
    position:absolute;
    inset:-60px;
    background-position:center;
    background-size:cover;
    filter:blur(80px) saturate(120%);
    opacity:.16;
    transform:scale(1.12);
}

.rd-player-sheet::after {
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 10%,rgba(124,104,255,.24),transparent 34%),
        linear-gradient(180deg,rgba(4,12,25,.72),#06101e 72%);
}

.rd-player-sheet-inner {
    position:relative;
    z-index:2;
    width:min(1180px,100%);
    height:100%;
    margin:0 auto;
    padding:18px 32px 30px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
}

.rd-player-sheet-header {
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    min-height:56px;
}

.rd-sheet-close {
    justify-self:start;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.12);
    border-radius:50%;
    background:rgba(255,255,255,.07);
    color:#fff;
    font-size:25px;
    cursor:pointer;
}

.rd-sheet-brand {
    display:flex;
    align-items:center;
    gap:9px;
    font-family:'Sora',sans-serif;
    font-weight:800;
    color:#fff;
}

.rd-sheet-logo-shell {
    width:34px;
    height:34px;
    overflow:hidden;
    border-radius:50%;
    background:#fff;
}

.rd-sheet-logo { width:100%; height:100%; }

.rd-player-sheet-content {
    flex:1;
    min-height:0;
    display:grid;
    grid-template-columns:minmax(300px,1fr) minmax(320px,.82fr);
    align-items:center;
    gap:clamp(44px,7vw,96px);
    padding:20px 32px 46px;
}

.rd-sheet-art-column { display:flex; justify-content:center; }

.rd-sheet-art-frame {
    width:min(55vh,520px);
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:24px;
    background:#fff;
    box-shadow:0 34px 90px rgba(0,0,0,.48);
}

.rd-sheet-art {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.rd-sheet-control-column {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:25px;
}

.rd-sheet-eyebrow {
    margin-bottom:9px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.17em;
    color:#8296b2;
}

.rd-sheet-copy h2 {
    margin:0;
    font-family:'Sora',sans-serif;
    font-size:clamp(28px,4vw,50px);
    line-height:1.06;
    letter-spacing:-.045em;
    overflow-wrap:anywhere;
    color:#fff;
}

.rd-sheet-artist {
    margin-top:11px;
    font-size:17px;
    font-weight:700;
    color:#c3d0e3;
}

.rd-sheet-album {
    margin-top:4px;
    font-size:12px;
    color:#7890ae;
}

.rd-sheet-times {
    display:flex;
    justify-content:space-between;
    margin-top:7px;
    font-size:11px;
    color:#8498b4;
    font-variant-numeric:tabular-nums;
}

.rd-sheet-controls {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
}

.rd-sheet-skip,
.rd-sheet-play {
    border:0;
    color:#fff;
    cursor:pointer;
    transition:transform .17s ease, background .17s ease;
}

.rd-sheet-skip {
    width:52px;
    height:52px;
    border-radius:50%;
    background:rgba(255,255,255,.07);
    font-size:18px;
}

.rd-sheet-play {
    width:76px;
    height:76px;
    border-radius:50%;
    background:linear-gradient(135deg,#7c68ff,#16b8f3);
    box-shadow:0 15px 36px rgba(92,92,255,.34);
    font-size:23px;
}

.rd-sheet-skip:hover,
.rd-sheet-play:hover { transform:scale(1.05); }

.rd-sheet-volume {
    display:grid;
    grid-template-columns:22px minmax(0,1fr) 22px;
    gap:11px;
    align-items:center;
    font-size:13px;
    color:#91a4bd;
}

.rd-sheet-help {
    margin:0;
    text-align:center;
    font-size:11px;
    color:#657d9d;
}

.rd-player-sheet-open { overflow:hidden !important; }

/* Header/footer branding */
.rd-brand-copy { justify-content:center; }

.rd-footer {
    margin-top:42px;
    border-top:1px solid var(--border-color-secondary);
    background:var(--background-secondary);
}

.rd-footer-inner {
    min-height:88px;
    display:grid !important;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:20px;
}

.rd-footer-brand {
    justify-self:start;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--text-color-default);
    cursor:pointer;
}

.rd-footer-logo-shell {
    width:42px;
    height:42px;
    overflow:hidden;
    border-radius:50%;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.rd-footer-logo { width:100%; height:100%; }

.rd-footer-brand-copy {
    display:flex;
    flex-direction:column;
    text-align:left;
    line-height:1.15;
}

.rd-footer-brand-copy strong {
    font-family:'Sora',sans-serif;
    font-size:13px;
    color:var(--text-color-default);
}

.rd-footer-brand-copy small {
    margin-top:3px;
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.09em;
    color:var(--text-color-default-info);
}

.rd-footer-copy {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-size:10px;
    color:var(--text-color-default-info);
}

.rd-footer-dot { opacity:.55; }

/* Clean segmented theme control */
.rd-theme-wrap { justify-self:end; }

.rd-theme-switch {
    position:relative;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:3px;
    padding:4px;
    border:1px solid var(--border-color-secondary);
    border-radius:999px;
    background:var(--background-color-third);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.rd-theme-switch input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.rd-theme-option {
    min-width:78px;
    height:34px;
    box-sizing:border-box;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 12px !important;
    border-radius:999px !important;
    color:var(--text-color-default-info) !important;
    font-size:11px !important;
    font-weight:800 !important;
    cursor:pointer;
    transition:color .18s ease,background .18s ease,box-shadow .18s ease;
}

.rd-theme-symbol { font-size:14px; line-height:1; }

.rd-theme-switch input:checked + .rd-theme-option {
    color:#fff !important;
    background:linear-gradient(135deg,#7c68ff,#5c7cff);
    box-shadow:0 6px 14px rgba(92,92,255,.22);
}

@media (max-width:900px) {
    body { padding-bottom:104px !important; }

    .rd-mini-player {
        width:min(680px,calc(100vw - 28px));
        grid-template-columns:minmax(0,1fr) auto 36px;
    }

    .rd-mini-volume { display:none; }

    .rd-player-sheet-inner { padding:12px 18px 22px; }

    .rd-player-sheet-content {
        grid-template-columns:1fr;
        gap:24px;
        overflow-y:auto;
        padding:10px 20px 34px;
    }

    .rd-sheet-art-frame { width:min(45vh,420px); }

    .rd-sheet-control-column {
        width:min(620px,100%);
        margin:0 auto;
    }

    .rd-sheet-copy { text-align:center; }

    .rd-footer-inner { grid-template-columns:1fr auto; }
    .rd-footer-copy { display:none; }
}

@media (max-width:560px) {
    body { padding-bottom:90px !important; }

    .rd-master-logo {
        width:40px !important;
        height:40px !important;
    }

    .rd-mini-player {
        bottom:10px;
        width:calc(100vw - 16px);
        min-height:66px;
        grid-template-columns:minmax(0,1fr) auto;
        gap:8px;
        padding:7px 9px;
        border-radius:13px;
    }

    .rd-mini-main {
        grid-template-columns:48px minmax(0,1fr);
        gap:9px;
    }

    .rd-mini-art-shell {
        width:48px;
        height:48px;
        border-radius:8px;
    }

    .rd-mini-copy strong { font-size:12px; }
    .rd-mini-copy span { font-size:10px; }

    .rd-mini-controls { gap:3px; }
    .rd-mini-icon { display:none; }

    .rd-mini-play {
        width:42px;
        height:42px;
    }

    .rd-mini-expand,
    .rd-mini-volume { display:none; }

    .rd-player-sheet-inner { padding:8px 12px 18px; }

    .rd-player-sheet-header {
        grid-template-columns:44px 1fr 44px;
    }

    .rd-sheet-brand {
        justify-self:center;
        font-size:12px;
    }

    .rd-sheet-logo-shell {
        width:30px;
        height:30px;
    }

    .rd-player-sheet-content {
        display:flex;
        flex-direction:column;
        justify-content:center;
        gap:22px;
        padding:8px 10px 20px;
    }

    .rd-sheet-art-frame {
        width:min(78vw,360px);
        border-radius:18px;
    }

    .rd-sheet-control-column {
        gap:19px;
        width:100%;
    }

    .rd-sheet-copy h2 {
        font-size:clamp(24px,7.5vw,32px);
    }

    .rd-sheet-artist { font-size:14px; }

    .rd-sheet-play {
        width:66px;
        height:66px;
    }

    .rd-sheet-skip {
        width:46px;
        height:46px;
    }

    .rd-sheet-help { display:none; }

    .rd-footer-inner {
        min-height:124px;
        grid-template-columns:1fr;
        justify-items:center;
        gap:12px;
        padding:18px 0;
    }

    .rd-footer-brand,
    .rd-theme-wrap { justify-self:center; }
}

@media (prefers-reduced-motion:reduce) {
    .rd-mini-player,
    .rd-player-sheet,
    .rd-mini-progress-fill {
        transition:none !important;
    }
}


/* =====================================================================
   RD AUDIO — CROSS-DEVICE COVER / CARD RESPONSIVE FIX
   Ensures cover art never crops/truncates on narrow screens.
   ===================================================================== */

:root {
    --rd-card-gap: 16px;
    --rd-mobile-card-width: min(44vw, 180px);
}

/* Never allow cover containers or images to inherit clipped fixed widths. */
.container-slide,
.swiper-slide,
.album-img,
.artist-img,
#container-local-album-slider .container-slide,
#container-local-album-slider .album-img {
    box-sizing: border-box;
}

.album-img,
.artist-img,
#container-local-album-slider .album-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}

/* Album cards should size from their slide, not from desktop fixed dimensions. */
.container-slide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.swiper-slide {
    min-width: 0 !important;
}

/* Keep artwork/title fully inside local My Music panel. */
.rd-my-music-section,
.slides-container,
.swiper-container,
.swiper-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
}

.rd-my-music-section {
    overflow: hidden;
}

#container-local-album-slider {
    overflow: visible !important;
}

#container-local-album-slider .swiper-wrapper {
    align-items: flex-start !important;
}

#container-local-album-slider .swiper-slide {
    width: 190px !important;
    max-width: 190px !important;
    flex: 0 0 190px !important;
}

#container-local-album-slider .container-slide {
    width: 100% !important;
    max-width: 190px !important;
}

#container-local-album-slider .album-img {
    width: 100% !important;
    max-width: 190px !important;
    aspect-ratio: 1 / 1 !important;
}

#container-local-album-slider .container-info,
#container-local-album-slider .nome-album,
#container-local-album-slider .genere-album {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
}

/* General featured-release cards: stable square covers. */
#container-album-slider .swiper-slide,
#container-artist-slider .swiper-slide {
    width: 190px !important;
    max-width: 190px !important;
    flex: 0 0 190px !important;
}

#container-album-slider .container-slide,
#container-artist-slider .container-slide {
    max-width: 190px !important;
}

@media (max-width: 900px) {
    :root {
        --rd-mobile-card-width: min(38vw, 170px);
    }

    #container-local-album-slider .swiper-slide,
    #container-album-slider .swiper-slide,
    #container-artist-slider .swiper-slide {
        width: var(--rd-mobile-card-width) !important;
        max-width: var(--rd-mobile-card-width) !important;
        flex-basis: var(--rd-mobile-card-width) !important;
    }

    #container-local-album-slider .container-slide,
    #container-album-slider .container-slide,
    #container-artist-slider .container-slide {
        max-width: var(--rd-mobile-card-width) !important;
    }

    #container-local-album-slider .album-img,
    #container-album-slider .album-img,
    #container-artist-slider .artist-img {
        max-width: var(--rd-mobile-card-width) !important;
        aspect-ratio: 1 / 1 !important;
    }
}

@media (max-width: 640px) {
    .rd-my-music-section {
        padding: 14px 12px 16px !important;
        border-radius: 16px !important;
    }

    .rd-my-music-heading {
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .rd-track-count {
        white-space: nowrap;
        margin-top: 2px;
    }

    .slides-container {
        width: 100% !important;
        overflow: hidden !important;
    }

    .swiper-container {
        width: 100% !important;
        overflow: visible !important;
    }

    .swiper-wrapper {
        width: auto !important;
    }

    #container-local-album-slider .swiper-slide,
    #container-album-slider .swiper-slide,
    #container-artist-slider .swiper-slide {
        width: min(42vw, 156px) !important;
        max-width: min(42vw, 156px) !important;
        flex: 0 0 min(42vw, 156px) !important;
    }

    #container-local-album-slider .container-slide,
    #container-album-slider .container-slide,
    #container-artist-slider .container-slide {
        max-width: min(42vw, 156px) !important;
        padding: 7px !important;
    }

    #container-local-album-slider .album-img,
    #container-album-slider .album-img,
    #container-artist-slider .artist-img {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 13px !important;
    }

    .nome-album,
    .nome-artista {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin-top: 8px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .genere-album,
    .genere-artista {
        font-size: 11px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }
}

@media (max-width: 420px) {
    #container-local-album-slider .swiper-slide,
    #container-album-slider .swiper-slide,
    #container-artist-slider .swiper-slide {
        width: min(45vw, 148px) !important;
        max-width: min(45vw, 148px) !important;
        flex: 0 0 min(45vw, 148px) !important;
    }

    #container-local-album-slider .container-slide,
    #container-album-slider .container-slide,
    #container-artist-slider .container-slide {
        max-width: min(45vw, 148px) !important;
    }

    .rd-my-music-subtitle {
        max-width: 190px !important;
    }
}

@media (max-width: 360px) {
    #container-local-album-slider .swiper-slide,
    #container-album-slider .swiper-slide,
    #container-artist-slider .swiper-slide {
        width: 140px !important;
        max-width: 140px !important;
        flex: 0 0 140px !important;
    }

    #container-local-album-slider .container-slide,
    #container-album-slider .container-slide,
    #container-artist-slider .container-slide {
        max-width: 140px !important;
    }

    .rd-track-count {
        font-size: 9px !important;
        padding: 5px 8px !important;
    }
}

/* Landscape phones / small tablets */
@media (max-height: 520px) and (orientation: landscape) {
    #container-local-album-slider .swiper-slide,
    #container-album-slider .swiper-slide,
    #container-artist-slider .swiper-slide {
        width: 150px !important;
        max-width: 150px !important;
        flex: 0 0 150px !important;
    }

    #container-local-album-slider .container-slide,
    #container-album-slider .container-slide,
    #container-artist-slider .container-slide {
        max-width: 150px !important;
    }
}


/* =====================================================================
   RD AUDIO — LIBRARY SIDEBAR + THEME CONTROL REFINEMENT
   ===================================================================== */

/* ---------- Theme toggle: fixed proportions / no malformed dark label ---------- */
.rd-theme-switch {
    width: 190px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.rd-theme-option {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    font-size: 11px !important;
}

.rd-theme-symbol {
    width: 15px;
    flex: 0 0 15px;
    display: inline-grid !important;
    place-items: center;
    font-size: 13px !important;
    line-height: 1 !important;
}

.rd-theme-switch input:checked + .rd-theme-option {
    background: linear-gradient(135deg, #765dff, #5378ff) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(83, 90, 255, .28) !important;
}

/* ---------- Desktop sidebar ---------- */
.rd-app-sidebar {
    position: fixed;
    z-index: 4200;
    left: 0;
    top: 0;
    bottom: 0;
    width: 224px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 18px 13px 16px;
    border-right: 1px solid rgba(117, 140, 174, .16);
    background: rgba(6, 16, 30, .98);
    color: #f7faff;
    box-shadow: 12px 0 34px rgba(0, 5, 18, .10);
}

.rd-sidebar-brand {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 32px;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 22px;
}

.rd-sidebar-logo {
    width: 40px;
    height: 40px;
    padding: 2px;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.rd-sidebar-brand > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-sidebar-brand strong {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: #fff;
}

.rd-sidebar-brand span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7288a7;
}

.rd-sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #93a6c0;
    font-size: 22px;
    cursor: pointer;
}

.rd-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rd-sidebar-item {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #9eb0c8;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.rd-sidebar-item:hover {
    background: rgba(255,255,255,.055);
    color: #fff;
    transform: translateX(2px);
}

.rd-sidebar-item.is-active {
    background: linear-gradient(135deg, rgba(118,93,255,.20), rgba(22,184,243,.08));
    color: #fff;
    box-shadow: inset 3px 0 #765dff;
}

.rd-sidebar-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #9f8eff;
    font-size: 16px;
}

.rd-sidebar-section-label {
    margin: 20px 11px 6px;
    color: #586f8d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.rd-sidebar-bottom {
    margin-top: auto;
    padding: 14px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid rgba(117,140,174,.12);
    color: #6e82a0;
}

.rd-sidebar-bottom span {
    font-size: 10px;
    font-weight: 800;
}

.rd-sidebar-bottom small {
    font-size: 8px;
}

.rd-sidebar-mobile-toggle,
.rd-sidebar-backdrop {
    display: none;
}

/* Make room for fixed sidebar without changing internal app logic. */
@media (min-width: 1101px) {
    body {
        padding-left: 224px !important;
    }

    .rd-mini-player {
        margin-left: 112px;
        max-width: calc(100vw - 270px);
    }
}

/* ---------- Library drawer ---------- */
.rd-library-panel {
    position: fixed;
    z-index: 5600;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 92vw);
    box-sizing: border-box;
    transform: translateX(104%);
    display: flex;
    flex-direction: column;
    padding: 20px 18px;
    border-left: 1px solid rgba(125,151,188,.18);
    background: rgba(7, 17, 31, .985);
    color: #f8fbff;
    box-shadow: -24px 0 70px rgba(0,5,18,.42);
    backdrop-filter: blur(24px);
    transition: transform .26s cubic-bezier(.2,.8,.2,1);
}

.rd-library-panel.is-open {
    transform: translateX(0);
}

.rd-library-panel-header {
    min-height: 66px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 4px 18px;
    border-bottom: 1px solid rgba(125,151,188,.14);
}

.rd-library-eyebrow {
    color: #765dff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
}

.rd-library-panel h2 {
    margin: 5px 0 0;
    font-family: 'Sora', sans-serif;
    font-size: 25px;
    color: #fff;
}

.rd-library-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    color: #a6b6ca;
    font-size: 23px;
    cursor: pointer;
}

.rd-library-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 1px 30px;
}

.rd-library-row {
    width: 100%;
    min-height: 67px;
    display: grid;
    grid-template-columns: 50px minmax(0,1fr) 24px;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.rd-library-row:hover {
    background: rgba(255,255,255,.055);
}

.rd-library-row-art {
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #765dff, #16b8f3);
    color: #fff;
    font-size: 20px;
}

.rd-library-row-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-library-row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rd-library-row-copy strong,
.rd-library-row-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-library-row-copy strong {
    color: #f8fbff;
    font-size: 12px;
}

.rd-library-row-copy span {
    color: #7f94b0;
    font-size: 10px;
}

.rd-library-row-arrow {
    justify-self: end;
    color: #607795;
    font-size: 22px;
}

.rd-library-empty {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 30px;
    text-align: center;
    color: #748aa7;
}

.rd-library-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 7px;
    border-radius: 18px;
    background: rgba(118,93,255,.12);
    color: #8c78ff;
    font-size: 26px;
}

.rd-library-empty strong {
    color: #d8e2ef;
    font-size: 13px;
}

.rd-library-empty span {
    max-width: 260px;
    font-size: 10px;
    line-height: 1.6;
}

/* ---------- Mini-player library actions ---------- */
.rd-mini-player {
    grid-template-columns: minmax(0,1fr) auto minmax(120px,180px) 36px 36px !important;
}

.rd-mini-favorite {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8da0ba;
    font-size: 20px;
    cursor: pointer;
}

.rd-mini-favorite:hover,
.rd-mini-favorite.is-active {
    color: #8f76ff;
    background: rgba(118,93,255,.10);
}

.rd-sheet-library-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.rd-sheet-library-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #dce6f3;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.rd-sheet-library-button:hover,
.rd-sheet-library-button.is-active {
    border-color: rgba(118,93,255,.36);
    background: rgba(118,93,255,.13);
    color: #a994ff;
}

/* ---------- Tablet/mobile navigation becomes off-canvas ---------- */
@media (max-width: 1100px) {
    .rd-app-sidebar {
        width: min(280px, 84vw);
        transform: translateX(-105%);
        box-shadow: 20px 0 55px rgba(0,5,18,.45);
        transition: transform .24s cubic-bezier(.2,.8,.2,1);
    }

    .rd-app-sidebar.is-open {
        transform: translateX(0);
    }

    .rd-sidebar-close {
        display: grid;
        place-items: center;
    }

    .rd-sidebar-mobile-toggle {
        position: fixed;
        z-index: 4100;
        left: 12px;
        bottom: 94px;
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 5px 11px 5px 6px;
        border: 1px solid rgba(118,93,255,.22);
        border-radius: 999px;
        background: rgba(7,17,31,.94);
        color: #dce6f3;
        box-shadow: 0 10px 26px rgba(0,5,18,.28);
        backdrop-filter: blur(16px);
        font-size: 10px;
        font-weight: 800;
        cursor: pointer;
    }

    .rd-sidebar-mobile-toggle img {
        width: 30px;
        height: 30px;
        padding: 1px;
        box-sizing: border-box;
        object-fit: contain;
        border-radius: 50%;
        background: #fff;
    }

    .rd-sidebar-backdrop {
        position: fixed;
        z-index: 4150;
        inset: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(0,5,16,.58);
        backdrop-filter: blur(3px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .rd-sidebar-backdrop.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .rd-app-sidebar {
        z-index: 4200;
    }

    .rd-mini-player {
        grid-template-columns: minmax(0,1fr) auto 36px 36px !important;
    }

    .rd-mini-volume {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .rd-theme-switch {
        width: 176px !important;
        height: 42px !important;
    }

    .rd-theme-option {
        height: 34px !important;
        font-size: 10px !important;
    }

    .rd-sidebar-mobile-toggle {
        left: 8px;
        bottom: 84px;
    }

    .rd-mini-player {
        grid-template-columns: minmax(0,1fr) auto 32px !important;
    }

    .rd-mini-favorite {
        width: 32px;
        height: 32px;
    }

    .rd-mini-expand {
        display: none !important;
    }

    .rd-library-panel {
        width: 100vw;
        padding: 14px 12px;
    }
}


/* =====================================================================
   RD AUDIO — FINAL NAV THEME / LIBRARY TOGGLE POLISH
   ===================================================================== */

/* Theme control now lives in the top navigation/header. */
.rd-topbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

.rd-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.rd-top-theme {
    display: flex;
    align-items: center;
}

.rd-top-theme-button {
    min-width: 92px;
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(113, 139, 178, .18);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    color: var(--text-color-default);
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(0, 6, 18, .08);
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

body[data-theme='dark'] .rd-top-theme-button {
    border-color: rgba(132, 153, 189, .17);
    background: rgba(255,255,255,.055);
    color: #dbe6f5;
}

body:not([data-theme='dark']) .rd-top-theme-button {
    background: #ffffff;
    color: #344054;
    border-color: #d7dfeb;
    box-shadow: 0 7px 18px rgba(16, 24, 40, .08);
}

.rd-top-theme-button:hover {
    transform: translateY(-1px);
    border-color: rgba(118,93,255,.38);
    box-shadow: 0 10px 24px rgba(92,92,255,.13);
}

.rd-top-theme-button.is-dark {
    background:
        linear-gradient(135deg, rgba(118,93,255,.16), rgba(22,184,243,.08)),
        rgba(255,255,255,.045);
}

.rd-top-theme-icon {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 16px;
    font-size: 13px;
    line-height: 1;
}

.rd-top-theme-text {
    min-width: 30px;
    text-align: left;
}

/* Footer no longer owns the theme switch, keeping its three columns balanced. */
.rd-footer-inner {
    grid-template-columns: 1fr auto !important;
}

.rd-footer-copy {
    justify-self: end;
}

/* Right library drawer toggle feels deliberate. */
.rd-sidebar-item {
    position: relative;
}

.rd-sidebar-item.is-active::after {
    content: '';
    position: absolute;
    right: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #765dff;
    box-shadow: 0 0 0 4px rgba(118,93,255,.10);
}

/* On desktop the header sits to the right of the fixed sidebar cleanly. */
@media (min-width: 1101px) {
    .rd-topbar-inner {
        width: min(calc(100% - 38px), var(--rd-shell-max)) !important;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .rd-top-theme-button {
        min-width: 84px;
        height: 36px;
        padding: 0 11px;
    }

    .rd-footer-inner {
        grid-template-columns: 1fr !important;
        justify-items: center;
        gap: 10px;
    }

    .rd-footer-copy {
        justify-self: center;
        display: flex !important;
    }
}

/* Phone */
@media (max-width: 560px) {
    .rd-topbar-inner {
        width: calc(100% - 16px) !important;
        gap: 10px !important;
    }

    .rd-brand-link {
        min-width: 0;
        flex: 1 1 auto;
    }

    .rd-brand-copy {
        min-width: 0;
    }

    .rd-brand-name {
        font-size: 17px !important;
    }

    .rd-brand-tagline {
        display: none !important;
    }

    .rd-top-theme-button {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 12px;
    }

    .rd-top-theme-text {
        display: none;
    }

    .rd-top-theme-icon {
        width: 18px;
        height: 18px;
        font-size: 16px;
    }

    .rd-library-panel {
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-left: 0;
    }

    .rd-sidebar-item {
        min-height: 48px;
        font-size: 13px;
    }

    .rd-footer-copy {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .rd-brand-name {
        font-size: 15px !important;
    }

    .rd-master-logo {
        width: 36px !important;
        height: 36px !important;
    }

    .rd-top-theme-button {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }
}
