.font-modern { font-family: 'Plus Jakarta Sans', sans-serif; }

.rp-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rp-player-shell {
    width: min(100%, 35rem);
}

.rp-top-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.rp-cover-col {
    flex: 4 1 0%;
    min-width: 0;
    max-width: clamp(180px, 56vw, 420px);
    max-height: clamp(180px, 56vw, 420px);
}

.rp-cover-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rp-stats-col {
    flex: 1 1 0%;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.rp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-stat-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    text-align: center;
    line-height: 1.1;
    font-size: 10px;
    font-weight: 900;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.rp-stat-circle:hover {
    transform: scale(0.95);
}

.rp-stat-circle--blue {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.rp-stat-circle--blue:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
}

.rp-stat-circle--cyan {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.rp-stat-circle--cyan:hover {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
}

.rp-stat-circle--yellow {
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
}

.rp-stat-circle--yellow:hover {
    background: rgba(234, 179, 8, 0.2);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.8);
}

.rp-stat-label {
    margin-top: 0.25rem;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

@media (min-width: 768px) {
    .rp-stat-circle {
        width: 4rem;
        height: 4rem;
        font-size: 13px;
    }

    .rp-cover-col {
        height: 420px;
        max-width: clamp(250px, 48vw, 400px);
        max-height: clamp(250px, 48vw, 450px);
    }
}

@media (max-width: 767px) {
    .rp-top-row {
        align-items: stretch;
    }

    .rp-cover-col {
        max-width: calc(100% - 88px - 0.25rem);
        max-height: calc(100vw - 7rem);
    }
}

:root[data-theme='dark'] {
    --rp-page-bg: #0b0f1a;
    --rp-glass-bg: rgba(255, 255, 255, 0.1);
    --rp-glass-border: rgba(255, 255, 255, 0.2);
    --rp-title: #ffffff;
    --rp-text: #e5e7eb;
    --rp-muted: #93c5fd;
    --rp-soft-panel: rgba(255, 255, 255, 0.08);
}

:root[data-theme='light'] {
    --rp-page-bg: #f7f8fb;
    --rp-glass-bg: #ffffff;
    --rp-glass-border: rgba(15, 23, 42, 0.16);
    --rp-title: #0f172a;
    --rp-text: #1e293b;
    --rp-muted: #334155;
    --rp-soft-panel: rgba(15, 23, 42, 0.05);
}

:root[data-theme='soft'] {
    --rp-page-bg: #1e293b;
    --rp-glass-bg: rgba(255, 255, 255, 0.1);
    --rp-glass-border: rgba(255, 255, 255, 0.2);
    --rp-title: #ffffff;
    --rp-text: #ffffff;
    --rp-muted: #e5e7eb;
    --rp-soft-panel: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dim'] {
    --rp-page-bg: #131d32;
    --rp-glass-bg: #162138;
    --rp-glass-border: rgba(148, 163, 184, 0.24);
    --rp-title: #e5e7eb;
    --rp-text: #d1d5db;
    --rp-muted: #cbd5e1;
    --rp-soft-panel: rgba(148, 163, 184, 0.12);
}

:root[data-theme='neon'] {
    --rp-page-bg: #020817;
    --rp-glass-bg: #06142b;
    --rp-glass-border: rgba(0, 217, 255, 0.58);
    --rp-title: #effbff;
    --rp-text: #d9f5ff;
    --rp-muted: #93c5fd;
    --rp-soft-panel: rgba(0, 217, 255, 0.12);
}

body {
    transition: background-color .25s ease, color .25s ease;
    background: var(--rp-page-bg) !important;
    color: var(--rp-text);
}

html[data-theme='neon'] body {
    background-color: var(--rp-page-bg) !important;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(0, 217, 255, 0.18), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(29, 78, 216, 0.2), transparent 42%),
        linear-gradient(rgba(2, 8, 23, 0.72), rgba(6, 20, 43, 0.76)) !important;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.rp-theme-shell {
    background: var(--rp-glass-bg);
    border: 1px solid var(--rp-glass-border);
    transition: background-color .25s ease, border-color .25s ease;
}

.rp-theme-btn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: transform .18s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.rp-theme-btn:hover { transform: scale(1.05); }

html[data-theme='light'] .rp-theme-btn,
html[data-theme='soft'] .rp-theme-btn {
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}

.rp-theme-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.rp-play-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #0ab5f2 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform .2s ease, background-color .25s ease, box-shadow .25s ease;
}

.rp-play-btn:hover {
    background: #0079ff !important;
    color: #ffffff !important;
    box-shadow: none;
}

.rp-play-btn:active {
    transform: scale(0.95);
}

.rp-play-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.125rem;
    color: inherit !important;
}

.rp-player-signature {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rp-muted);
    opacity: 0.7;
    line-height: 1;
    margin-top: 22px;
}

@media (max-width: 767px) {
    .rp-volume-col {
        align-items: flex-end;
    }

    .rp-player-signature {
        font-size: 8px;
        margin-top: 33px;
    }
}

/* Inner content tones follow active theme */
html[data-theme] h3,
html[data-theme] #trackTitle,
html[data-theme] .text-slate-400,
html[data-theme] .text-slate-500,
html[data-theme] .text-xs,
html[data-theme] .text-\[9px\],
html[data-theme] .text-\[8px\] {
    color: var(--rp-muted) !important;
}

html[data-theme] .font-semibold,
html[data-theme] .font-bold,
html[data-theme] .font-black,
html[data-theme] .truncate,
html[data-theme] .text-white {
    color: var(--rp-text) !important;
}

html[data-theme] .bg-white\/5,
html[data-theme] .bg-black\/40 {
    background: var(--rp-soft-panel) !important;
}

html[data-theme='soft'] #trackTitle,
html[data-theme='soft'] .text-slate-400,
html[data-theme='soft'] .text-slate-500,
html[data-theme='soft'] .text-xs,
html[data-theme='soft'] .text-\[9px\],
html[data-theme='soft'] .text-\[8px\] {
    color: #ffffff !important;
}

.rp-info-dual-card {
    min-width: 0;
}

.rp-info-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.rp-info-dual-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
