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

:root {
    --bg: #09090d;
    --surface: #111117;
    --surface-2: #181822;
    --surface-3: #20202b;
    --text: #f6f3f8;
    --muted: #aaa4b7;
    --line: rgba(255, 255, 255, .1);
    --brand: #f12bad;
    --accent: #11c5c0;
    --lime: #c4f000;
    --amber: #ffb84d;
    --danger: #ff5b7d;
    --shadow: 0 18px 54px rgba(0, 0, 0, .38);
}

[data-bs-theme="light"] {
    --bg: #f5f2f8;
    --surface: #ffffff;
    --surface-2: #f0edf5;
    --surface-3: #e8e2ef;
    --text: #17131f;
    --muted: #6f687c;
    --line: rgba(23, 19, 31, .11);
    --shadow: 0 18px 44px rgba(51, 37, 72, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(140deg, rgba(241, 43, 173, .13), transparent 34%),
        linear-gradient(215deg, rgba(17, 197, 192, .12), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 118px;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.music-shell {
    display: grid;
    gap: 18px;
    grid-template-columns: 258px minmax(0, 1fr) 318px;
    min-height: 100vh;
    padding: 18px;
}

.music-sidebar,
.right-panel {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: calc(100vh - 36px);
    position: sticky;
    top: 18px;
}

.music-sidebar {
    align-self: start;
    display: grid;
    gap: 24px;
    grid-template-rows: auto auto 1fr;
    padding: 18px;
}

.brand-lockup {
    display: block;
    text-decoration: none;
}

.brand-lockup img {
    display: block;
    height: auto;
    max-width: 188px;
    width: 100%;
}

.brand-lockup .brand-logo-light {
    display: none;
}

[data-bs-theme="light"] .brand-lockup .brand-logo-dark {
    display: none;
}

[data-bs-theme="light"] .brand-lockup .brand-logo-light {
    display: block;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover,
.sidebar-nav .active {
    background: var(--surface-2);
    color: var(--text);
}

.sidebar-nav i {
    color: var(--accent);
    font-size: 1.05rem;
    width: 22px;
}

.sidebar-section {
    min-height: 0;
}

.sidebar-title {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.channel-rail {
    display: grid;
    gap: 8px;
}

.channel-rail a {
    align-items: center;
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 48px;
    padding: 5px 8px;
    text-decoration: none;
}

.channel-rail a:hover,
.channel-rail a.selected {
    background: color-mix(in srgb, var(--channel) 18%, var(--surface-2));
    color: var(--text);
}

.channel-rail span,
.queue-panel a > span {
    align-items: center;
    background: color-mix(in srgb, var(--channel) 22%, var(--surface-3));
    border: 1px solid color-mix(in srgb, var(--channel) 45%, var(--line));
    border-radius: 8px;
    color: var(--channel);
    display: grid;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.channel-rail strong {
    font-size: .87rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-frame {
    min-width: 0;
}

.music-topbar {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    margin-bottom: 18px;
}

.mobile-menu,
.icon-action,
.profile-pill,
.panel-head button,
.panel-head a {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.mobile-menu {
    display: none;
}

.search-box {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    height: 48px;
    margin: 0;
    padding: 0 14px;
}

.search-box i {
    color: var(--muted);
}

.search-box input {
    background: transparent;
    border: 0;
    color: var(--text);
    min-width: 0;
    outline: 0;
    width: 100%;
}

.search-box input::placeholder {
    color: color-mix(in srgb, var(--muted) 76%, transparent);
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.trial-chip {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 8px;
    min-height: 44px;
    max-width: 320px;
    padding: 8px 12px;
    text-decoration: none;
}

.trial-chip i {
    color: var(--lime);
    flex-shrink: 0;
}

.trial-chip span {
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
}

.profile-pill {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: 0;
    color: #fff;
    font-weight: 900;
    overflow: hidden;
    padding: 0;
}

.profile-pill img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.music-main {
    display: grid;
    gap: 18px;
}

.now-stage {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--current-channel) 34%, transparent), transparent 56%),
        linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--current-channel) 36%, var(--line));
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
    min-height: 430px;
    overflow: hidden;
    padding: 34px;
}

.stage-copy {
    align-content: end;
    display: grid;
    gap: 18px;
}

.live-kicker {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: .75rem;
    font-weight: 900;
    gap: 8px;
    text-transform: uppercase;
}

.live-kicker i,
.status-pill i {
    background: var(--lime);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(196, 240, 0, .12);
    display: inline-block;
    height: 8px;
    width: 8px;
}

.stage-copy h1 {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.stage-copy p {
    color: var(--muted);
    font-size: 1.12rem;
    margin: 0;
    max-width: 610px;
}

.stage-actions {
    align-items: center;
    display: flex;
    gap: 16px;
}

.play-hero,
.dock-play {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: grid;
    justify-content: center;
}

.play-hero {
    box-shadow: 0 0 0 10px rgba(241, 43, 173, .12);
    font-size: 2.15rem;
    height: 78px;
    width: 78px;
}

.stage-actions div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.stage-actions strong {
    font-size: 1rem;
}

.stage-actions span,
.quick-controls a {
    color: var(--muted);
    font-size: .86rem;
}

.quick-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-controls a {
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    text-decoration: none;
}

.stage-art {
    align-content: center;
    display: grid;
    gap: 22px;
    justify-items: center;
}

.cover-art {
    aspect-ratio: 1;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--channel) 76%, #101015), #101015 64%),
        var(--surface-2);
    border: 1px solid color-mix(in srgb, var(--channel) 44%, var(--line));
    border-radius: 8px;
    box-shadow: 0 34px 70px color-mix(in srgb, var(--channel) 20%, rgba(0, 0, 0, .45));
    display: block;
    max-width: 355px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cover-art-media {
    background: #101015;
    inset: 0;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.cover-art-media > script {
    display: none;
}

.cover-art-media > *:not(script),
.cover-art-media a,
.cover-art-media div,
.cover-art-media span,
.cover-art-media picture {
    display: block !important;
    height: 100% !important;
    inset: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    padding: 0 !important;
    position: absolute !important;
    width: 100% !important;
}

.cover-art-media img,
.cover-art-media iframe,
.cover-art-media canvas,
.cover-art-media svg,
.cover-art-media object,
.cover-art-media embed,
.cover-art-media video {
    border: 0 !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    inset: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    padding: 0 !important;
    position: absolute !important;
    width: 100% !important;
}

.cover-channel-icon {
    align-items: center;
    background: rgba(9, 9, 13, .62);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    bottom: 18px;
    color: #fff;
    display: grid;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    width: 42px;
    z-index: 2;
}

.live-bars,
.mini-wave {
    align-items: center;
    color: var(--channel);
    display: flex;
    gap: 4px;
    height: 54px;
    justify-content: center;
    width: 100%;
}

.live-bars span,
.mini-wave span {
    animation: livePulse 1.2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -60ms);
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: var(--h);
    opacity: .84;
    width: 5px;
}

.mini-wave {
    height: 34px;
    justify-content: flex-start;
}

.mini-wave span {
    width: 4px;
}

@keyframes livePulse {
    from { transform: scaleY(.42); }
    to { transform: scaleY(1); }
}

.insight-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.insight-strip article {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 86px;
    padding: 16px;
}

.insight-strip span {
    color: var(--accent);
    font-size: 1.7rem;
    font-weight: 900;
}

.insight-strip strong {
    font-size: .9rem;
}

.library-section,
.plans-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.section-bar {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-bar span,
.plans-copy span,
.panel-head span,
.app-modal .modal-header span {
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-bar h2,
.plans-copy h2,
.app-modal h2 {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 4px 0 0;
}

.section-bar a {
    color: var(--brand);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.channel-library {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.channel-card {
    background: linear-gradient(160deg, color-mix(in srgb, var(--channel) 11%, var(--surface-2)), var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--channel) 34%, var(--line));
    border-radius: 8px;
    display: grid;
    gap: 12px;
    min-height: 282px;
    overflow: hidden;
    padding: 14px;
    position: relative;
}

.channel-card:hover:not(.disabled),
.channel-card.selected {
    border-color: var(--channel);
    transform: translateY(-2px);
}

.channel-card.disabled {
    opacity: .55;
}

.channel-card[hidden] {
    display: none;
}

.channel-card-head {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.status-pill {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: .67rem;
    font-weight: 900;
    gap: 7px;
}

.featured-badge {
    align-items: center;
    color: #ffb020;
    display: inline-flex;
    font-size: .8rem;
    margin-left: auto;
    margin-right: 4px;
}

.channel-card.featured {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--channel) 45%, transparent);
}

.favorite {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.1rem;
    height: 34px;
    width: 34px;
}

.favorite.active {
    color: var(--channel);
}

.channel-symbol {
    align-items: center;
    background: color-mix(in srgb, var(--channel) 18%, transparent);
    border-radius: 8px;
    color: var(--channel);
    display: grid;
    font-size: 2.4rem;
    height: 76px;
    justify-content: center;
    margin-top: 8px;
    width: 76px;
}

.channel-card h3 {
    font-size: 1.13rem;
    font-weight: 900;
    margin: 0;
}

.channel-card p {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
    margin: 0;
    min-height: 62px;
}

.card-play {
    align-items: center;
    background: color-mix(in srgb, var(--channel) 18%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--channel) 62%, var(--line));
    border-radius: 999px;
    bottom: 13px;
    color: var(--channel);
    display: grid;
    font-size: 1.15rem;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 13px;
    text-decoration: none;
    width: 42px;
}

.plans-section {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(220px, .8fr));
}

.plans-copy {
    align-content: center;
    display: grid;
    gap: 12px;
}

.plans-copy p,
.account-panel p,
.cash-panel p,
.app-modal p {
    color: var(--muted);
    margin: 0;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-methods span {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: .76rem;
    min-height: 30px;
    padding: 6px 10px;
    text-transform: none;
}

.plan-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.plan-card.featured {
    border-color: color-mix(in srgb, var(--lime) 58%, var(--line));
}

.plan-card small {
    color: var(--lime);
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
}

.plan-card strong {
    font-size: 2rem;
    line-height: 1;
}

.plan-card > span {
    color: var(--muted);
    font-size: .82rem;
}

.btn-brand {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    filter: brightness(1.06);
}

.right-panel {
    align-self: start;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.account-panel,
.queue-panel,
.cash-panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
}

.panel-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-head button,
.panel-head a {
    background: var(--surface-3);
    height: 34px;
    width: 34px;
}

.account-panel {
    display: grid;
    gap: 10px;
}

.account-panel strong,
.cash-panel strong {
    font-size: 1.1rem;
    font-weight: 900;
}

.account-panel a,
.cash-panel button {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-size: .86rem;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    text-decoration: none;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    align-items: center;
    background: color-mix(in srgb, var(--danger) 18%, var(--surface-2));
    border: 0;
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 48px;
    padding: 5px 8px;
    text-align: left;
    width: 100%;
}

.logout-btn:hover,
.logout-btn:focus {
    filter: brightness(1.12);
}

.logout-btn .logout-icon {
    align-items: center;
    background: color-mix(in srgb, var(--danger) 22%, var(--surface-3));
    border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line));
    border-radius: 8px;
    color: var(--danger);
    display: grid;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.logout-btn strong {
    font-size: .87rem;
    font-weight: 800;
}

.queue-panel {
    display: grid;
    gap: 10px;
}

.queue-panel a {
    align-items: center;
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 52px;
    text-decoration: none;
}

.queue-panel strong,
.queue-panel small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-panel small {
    color: var(--muted);
    font-size: .74rem;
}

.cash-panel {
    display: grid;
    gap: 10px;
}

.cash-panel > i {
    color: var(--amber);
    font-size: 1.8rem;
}

.cash-panel button {
    width: 100%;
}

.player-dock {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -18px 52px rgba(0, 0, 0, .32);
    left: 0;
    position: fixed;
    right: 0;
    z-index: 1040;
}

.dock-inner {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1fr) minmax(180px, .7fr);
    min-height: 96px;
    padding: 12px 24px;
}

.dock-now {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.dock-cover {
    align-items: center;
    background: linear-gradient(135deg, var(--channel), #111117);
    border-radius: 8px;
    color: #fff;
    display: grid;
    flex: none;
    font-size: 1.45rem;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.dock-now div {
    min-width: 0;
}

.dock-now div small,
.dock-now div span {
    color: var(--muted);
    display: block;
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dock-now div small {
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dock-now strong {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dock-controls {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 42px 56px 42px;
    justify-content: center;
}

.dock-controls a {
    align-items: center;
    color: var(--muted);
    display: grid;
    font-size: 1.3rem;
    height: 42px;
    justify-content: center;
    text-decoration: none;
}

.dock-play {
    font-size: 1.45rem;
    height: 56px;
    width: 56px;
}

.live-progress {
    background: var(--surface-3);
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 5px;
    overflow: hidden;
}

.live-progress span {
    animation: liveProgress 2.2s linear infinite;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--lime));
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 42%;
}

@keyframes liveProgress {
    from { transform: translateX(-100%); }
    to { transform: translateX(240%); }
}

.dock-volume {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: end;
}

.dock-volume i {
    color: var(--muted);
}

.dock-volume input {
    accent-color: var(--brand);
    max-width: 156px;
    width: 100%;
}

.app-modal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text);
}

.app-modal .modal-header {
    border-bottom: 1px solid var(--line);
}

.account-modal .modal-body {
    display: grid;
    gap: 16px;
}

.account-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(241, 43, 173, .16), rgba(17, 197, 192, .1));
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 14px;
}

.account-hero img,
.avatar-field img {
    aspect-ratio: 1;
    border-radius: 999px;
    object-fit: cover;
}

.account-hero img {
    border: 2px solid color-mix(in srgb, var(--accent) 52%, var(--line));
    height: 72px;
    width: 72px;
}

.account-hero strong,
.account-hero span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-hero > div strong {
    font-size: 1.2rem;
    font-weight: 900;
}

.account-hero > div span {
    color: var(--muted);
    font-size: .86rem;
}

.account-state {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
}

.account-state.active {
    color: var(--lime);
}

.account-tabs {
    gap: 8px;
}

.account-tabs .nav-link {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
}

.account-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-color: transparent;
}

.account-tab-content {
    padding-top: 4px;
}

.account-grid {
    display: grid;
    gap: 14px;
}

.account-grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.account-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.account-card-title {
    align-items: center;
    display: flex;
    gap: 10px;
}

.account-card-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

.account-card-title strong {
    font-weight: 900;
}

.avatar-field {
    align-items: center;
    display: flex;
    gap: 12px;
}

.avatar-field img {
    background: var(--surface);
    border: 1px solid var(--line);
    height: 78px;
    width: 78px;
}

.btn-soft {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 12px;
}

.btn-soft:hover,
.btn-soft:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.account-check {
    align-items: flex-start;
    color: var(--muted);
    display: flex;
    font-size: .86rem;
    gap: 8px;
}

.account-check input {
    accent-color: var(--accent);
    margin-top: 4px;
}

.mini-label {
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.membership-status {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.account-list {
    display: grid;
    gap: 8px;
    max-height: 330px;
    overflow: auto;
}

.account-list div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 2px;
    padding: 10px;
}

.account-list strong,
.account-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-list strong {
    font-size: .9rem;
}

.account-list span,
.account-list p {
    color: var(--muted);
    font-size: .8rem;
    margin: 0;
}

.referral-code {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.referral-code span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .08em;
    min-height: 48px;
    overflow: hidden;
    padding: 8px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-progress {
    background: var(--surface);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.referral-progress span {
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--lime));
    border-radius: inherit;
    display: block;
    height: 100%;
    width: var(--progress);
}

.app-modal .btn-close,
.offcanvas .btn-close {
    filter: invert(1) grayscale(1);
}

[data-bs-theme="light"] .app-modal .btn-close,
[data-bs-theme="light"] .offcanvas .btn-close {
    filter: none;
}

.form-control {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
}

.form-control:focus {
    background: var(--surface-2);
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(17, 197, 192, .16);
    color: var(--text);
}

.form-message {
    color: var(--accent);
    font-size: .84rem;
    min-height: 24px;
    padding-top: 8px;
}

.device-note {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
}

.device-note i {
    color: var(--accent);
    font-size: 1.35rem;
}

.checkout-summary {
    background: linear-gradient(135deg, rgba(241, 43, 173, .18), rgba(17, 197, 192, .12));
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 3px;
    margin-bottom: 14px;
    padding: 15px;
}

.checkout-summary span,
.checkout-summary small {
    color: var(--muted);
}

.checkout-summary strong {
    font-size: 2rem;
    line-height: 1;
}

.checkout-methods {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 14px;
}

.checkout-methods button {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
}

.checkout-methods button.selected {
    border-color: var(--accent);
    color: var(--accent);
}

.code-input {
    font-weight: 900;
    text-transform: uppercase;
}

.paywall-body {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 28px;
}

.paywall-body > i {
    color: var(--brand);
    font-size: 3rem;
}

.offcanvas {
    background: var(--surface);
    color: var(--text);
}

.offcanvas h2 {
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0;
}

.mobile-offcanvas-actions {
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.mobile-offcanvas-actions .trial-chip {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 1360px) {
    .music-shell {
        grid-template-columns: 238px minmax(0, 1fr);
    }

    .right-panel {
        display: none;
    }

    .channel-library {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .music-shell {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .music-sidebar {
        display: none;
    }

    .mobile-menu {
        display: grid;
    }

    .music-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .now-stage {
        grid-template-columns: 1fr;
    }

    .stage-art {
        order: -1;
    }

    .cover-art {
        max-width: 280px;
    }

    .channel-library {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plans-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 156px;
    }

    .music-shell {
        padding: 8px;
    }

    .music-topbar {
        grid-template-columns: auto 1fr;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .trial-chip {
        flex: 1;
    }

    .now-stage,
    .library-section,
    .plans-section {
        padding: 16px;
    }

    .stage-copy h1 {
        font-size: 3.05rem;
    }

    .stage-copy p {
        font-size: 1rem;
    }

    .stage-actions {
        align-items: flex-start;
    }

    .play-hero {
        flex: none;
        height: 66px;
        width: 66px;
    }

    .insight-strip {
        grid-template-columns: 1fr;
    }

    .section-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .channel-library {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        overflow-x: auto;
        padding: 0 16px 8px;
        scroll-snap-type: x mandatory;
    }

    .channel-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .checkout-methods {
        grid-template-columns: 1fr;
    }

    .dock-inner {
        gap: 10px;
        grid-template-columns: 1fr auto;
        min-height: 136px;
        padding: 10px 12px;
    }

    .dock-controls {
        grid-column: 2;
        grid-row: 1;
    }

    .dock-volume {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .dock-now div span {
        max-width: 220px;
    }
}

@media (max-width: 420px) {
    .stage-copy h1 {
        font-size: 2.55rem;
    }

    .channel-card {
        flex-basis: 88%;
    }

    .dock-cover {
        height: 50px;
        width: 50px;
    }
}

/* Mobile-first experience overrides */
@media (max-width: 860px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background:
            linear-gradient(160deg, color-mix(in srgb, var(--current-channel) 16%, transparent), transparent 310px),
            var(--bg);
        padding-bottom: 94px;
    }

    .music-shell {
        display: block;
        min-height: auto;
        padding: 8px;
        width: 100%;
    }

    .content-frame,
    .music-main {
        min-width: 0;
        width: 100%;
    }

    .music-sidebar,
    .right-panel {
        display: none;
    }

    .music-topbar {
        align-items: center;
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        backdrop-filter: blur(18px);
        display: grid;
        gap: 8px;
        grid-template-columns: 44px minmax(0, 1fr);
        margin: -8px -8px 10px;
        padding: 8px;
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .mobile-menu {
        display: grid;
        grid-column: 1;
        grid-row: 1;
        height: 42px;
        width: 42px;
    }

    .topbar-actions {
        display: flex;
        gap: 6px;
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        min-width: 0;
    }

    .trial-chip {
        flex: 0 1 auto;
        height: 42px;
        max-width: 148px;
        min-width: 0;
        padding: 0 9px;
    }

    .trial-chip span {
        display: block;
        font-size: .72rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .icon-action,
    .profile-pill {
        flex: none;
        height: 42px;
        width: 42px;
    }

    .search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 44px;
        padding: 0 12px;
        width: 100%;
    }

    .search-box input {
        font-size: .92rem;
    }

    .now-stage {
        display: grid;
        gap: 14px;
        grid-template-columns: 1fr;
        margin: 0;
        min-height: auto;
        overflow: hidden;
        padding: 14px;
        width: 100%;
    }

    .stage-art {
        gap: 10px;
        order: -1;
    }

    .cover-art {
        max-width: 250px;
        width: min(78vw, 250px);
    }

    .cover-channel-icon {
        bottom: 10px;
        font-size: 1rem;
        height: 34px;
        right: 10px;
        width: 34px;
    }

    .live-bars {
        gap: 3px;
        height: 32px;
        max-width: 270px;
    }

    .live-bars span {
        width: 4px;
    }

    .stage-copy {
        align-content: start;
        gap: 12px;
    }

    .live-kicker {
        font-size: .68rem;
    }

    .stage-copy h1 {
        font-size: 2.35rem;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .stage-copy p {
        font-size: .96rem;
        line-height: 1.45;
    }

    .stage-actions {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .play-hero {
        box-shadow: 0 0 0 7px rgba(241, 43, 173, .12);
        font-size: 1.65rem;
        height: 58px;
        width: 58px;
    }

    .stage-actions strong,
    .stage-actions span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .quick-controls {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 -14px;
        overflow-x: auto;
        padding: 0 14px 2px;
        scrollbar-width: none;
    }

    .quick-controls::-webkit-scrollbar {
        display: none;
    }

    .quick-controls a {
        flex: 0 0 auto;
        font-size: .8rem;
        white-space: nowrap;
    }

    .insight-strip {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .insight-strip article {
        align-items: flex-start;
        display: grid;
        gap: 4px;
        min-height: 74px;
        padding: 10px;
    }

    .insight-strip span {
        font-size: 1.35rem;
        line-height: 1;
    }

    .insight-strip strong {
        font-size: .7rem;
        line-height: 1.25;
    }

    .library-section,
    .plans-section {
        padding: 14px;
    }

    .section-bar {
        align-items: flex-start;
        display: grid;
        gap: 8px;
        margin-bottom: 14px;
    }

    .section-bar h2,
    .plans-copy h2,
    .app-modal h2 {
        font-size: 1.35rem;
    }

    .channel-library {
        display: flex;
        gap: 10px;
        margin: 0 -14px;
        overflow-x: auto;
        padding: 0 14px 6px;
        scroll-padding-left: 14px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .channel-library::-webkit-scrollbar {
        display: none;
    }

    .channel-card {
        flex: 0 0 76%;
        min-height: 250px;
        min-width: 230px;
        scroll-snap-align: start;
    }

    .channel-symbol {
        font-size: 2rem;
        height: 62px;
        width: 62px;
    }

    .channel-card p {
        min-height: 54px;
    }

    .plans-section {
        display: grid;
        grid-template-columns: 1fr;
    }

    .plans-copy {
        gap: 10px;
    }

    .payment-methods {
        gap: 6px;
    }

    .payment-methods span {
        font-size: .72rem;
        min-height: 28px;
        padding: 5px 8px;
    }

    .plan-card {
        padding: 14px;
    }

    .plan-card strong {
        font-size: 1.75rem;
    }

    .btn-brand {
        min-height: 46px;
        width: 100%;
    }

    .player-dock {
        background: color-mix(in srgb, var(--surface) 96%, transparent);
    }

    .dock-inner {
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) 52px;
        min-height: 84px;
        padding: 8px 10px;
    }

    .dock-now {
        gap: 9px;
        min-width: 0;
    }

    .dock-cover {
        height: 48px;
        width: 48px;
    }

    .dock-now strong {
        font-size: .92rem;
    }

    .dock-now div small {
        font-size: .56rem;
    }

    .dock-now div span {
        font-size: .68rem;
        max-width: 190px;
    }

    .dock-controls {
        align-self: center;
        display: grid;
        gap: 0;
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: 52px;
        justify-self: end;
    }

    .dock-controls a,
    .live-progress,
    .dock-volume {
        display: none;
    }

    .dock-play {
        font-size: 1.3rem;
        height: 52px;
        width: 52px;
    }

    .offcanvas {
        width: min(88vw, 340px) !important;
    }

    .channel-rail.mobile {
        gap: 10px;
    }

    .channel-rail.mobile a {
        min-height: 54px;
    }

    .modal-dialog {
        margin: .75rem;
    }

    .account-hero {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .account-hero img {
        height: 56px;
        width: 56px;
    }

    .account-state {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .account-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .account-tabs::-webkit-scrollbar {
        display: none;
    }

    .account-tabs .nav-link {
        flex: 0 0 auto;
        font-size: .84rem;
        white-space: nowrap;
    }

    .account-grid.two {
        grid-template-columns: 1fr;
    }

    .avatar-field {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .trial-chip {
        max-width: 126px;
    }

    .stage-copy h1 {
        font-size: 2rem;
    }

    .cover-art {
        max-width: 218px;
        width: min(76vw, 218px);
    }

    .channel-card {
        flex-basis: 86%;
    }

    .dock-now div span {
        max-width: 148px;
    }
}

@media (min-width: 1081px) {
    .music-sidebar {
        display: grid;
    }
}

@media (min-width: 1361px) {
    .right-panel {
        display: grid;
    }
}

.track-artwork {
    background: #101015;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    body {
        padding-bottom: 96px;
    }

    .music-shell {
        padding: 8px;
    }

    .music-main {
        gap: 10px;
    }

    .music-topbar {
        gap: 8px;
        margin-bottom: 10px;
    }

    .now-stage {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        padding: 12px;
    }

    .stage-art {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        order: 0;
    }

    .cover-art {
        flex: none;
        margin: 0 auto;
        max-width: none;
        min-height: 0;
        width: min(62vw, 220px);
    }

    .cover-art-media,
    .cover-art-media > *:not(script),
    .cover-art-media a,
    .cover-art-media div,
    .cover-art-media span,
    .cover-art-media picture,
    .cover-art-media img {
        height: 100% !important;
        max-height: none !important;
        max-width: none !important;
        width: 100% !important;
    }

    .cover-art-media img,
    .track-artwork {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .live-bars {
        height: 26px;
        max-width: 220px;
    }

    .stage-copy {
        gap: 10px;
        order: 1;
    }

    .live-kicker {
        font-size: .64rem;
    }

    .stage-copy h1 {
        font-size: 2.15rem;
        line-height: 1.06;
    }

    .stage-copy p {
        font-size: .92rem;
    }

    .stage-actions {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .play-hero {
        font-size: 1.45rem;
        height: 52px;
        width: 52px;
    }

    .stage-actions strong,
    .stage-actions span {
        white-space: normal;
    }

    .quick-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        overflow: visible;
        padding: 0;
    }

    .quick-controls a {
        justify-content: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .insight-strip {
        grid-template-columns: 1fr;
    }

    .insight-strip article {
        min-height: 58px;
    }

    .insight-strip article:nth-child(n+2) {
        display: none;
    }

    .library-section,
    .plans-section {
        padding: 12px;
    }

    .section-bar,
    .plans-copy {
        max-width: 100%;
        overflow: hidden;
    }

    .section-bar h2,
    .plans-copy h2 {
        font-size: 1.28rem;
        overflow-wrap: anywhere;
    }

    .plans-copy p {
        font-size: .92rem;
        overflow-wrap: anywhere;
    }

    .channel-library {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        margin: 0;
        overflow: visible;
        padding: 0;
    }

    .channel-card {
        display: grid;
        flex: none;
        min-height: 208px;
        min-width: 0;
        padding: 12px 12px 54px;
        width: 100%;
    }

    .channel-symbol {
        height: 52px;
        width: 52px;
    }

    .mini-wave {
        height: 28px;
    }

    .plans-section {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .payment-methods {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .payment-methods span {
        font-size: .66rem;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plan-card {
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .plan-card .btn-brand {
        color: #fff !important;
        display: inline-flex !important;
        font-size: .88rem;
        line-height: 1.2;
        min-width: 0;
        overflow: visible;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    .plan-card .btn-brand i {
        display: inline-block !important;
        flex: none;
    }

    .player-dock {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
    }

    .dock-inner {
        min-height: 72px;
        padding: 8px;
    }

    .dock-cover {
        height: 44px;
        width: 44px;
    }

    .dock-now div span {
        max-width: 170px;
    }

    .dock-play {
        height: 46px;
        width: 46px;
    }
}

@media (max-width: 360px) {
    .trial-chip {
        max-width: 112px;
    }

    .cover-art {
        width: min(58vw, 188px);
    }

    .payment-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dock-now div span {
        max-width: 130px;
    }
}

@media (max-width: 640px) {
    .library-section {
        overflow: hidden;
    }

    .channel-library {
        display: flex;
        gap: 8px;
        margin: 0 -12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 12px 6px;
        scroll-padding-left: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .channel-library::-webkit-scrollbar {
        display: none;
    }

    .channel-card {
        align-content: start;
        display: grid;
        flex: 0 0 132px;
        gap: 7px;
        grid-template-rows: auto auto auto;
        min-height: 132px;
        min-width: 132px;
        overflow: hidden;
        padding: 10px;
        scroll-snap-align: start;
        width: 132px;
    }

    .channel-card-head {
        min-height: 22px;
    }

    .status-pill {
        font-size: 0;
        gap: 0;
    }

    .status-pill i {
        height: 9px;
        width: 9px;
    }

    .favorite {
        font-size: .95rem;
        height: 24px;
        width: 24px;
    }

    .channel-symbol {
        font-size: 1.45rem;
        height: 42px;
        margin: 0;
        width: 42px;
    }

    .channel-card h3 {
        font-size: .86rem;
        line-height: 1.15;
        min-height: 32px;
        overflow: hidden;
    }

    .channel-card p,
    .channel-card .mini-wave {
        display: none;
    }

    .card-play {
        bottom: 9px;
        font-size: .95rem;
        height: 32px;
        right: 9px;
        width: 32px;
    }
}
