:root { --topbar-height: 72px; --interface-footer-height: 54px; }
html:has(.interface-header) { min-width: 0; }
.topbar.interface-header {
    min-height: var(--topbar-height); gap: 24px; padding: 0 24px;
    background: linear-gradient(115deg, #202b3a 0%, #141e2c 58%, #101927 100%);
    border-bottom: 2px solid #347aff;
    box-shadow: 0 1px 0 #70b9ff55, 0 9px 24px #11284730;
}
.interface-header .navigation-toggle {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 11px;
    background: #ffffff03; border: 1px solid #465267; box-shadow: inset 0 1px 0 #ffffff08;
}
.interface-header .navigation-toggle:hover, .interface-header .navigation-toggle[aria-expanded="true"] { background: #ffffff0d; border-color: #6882a5; }
.interface-header .navigation-toggle span { width: 22px; height: 2px; background: #f0f5ff; }
.interface-header .brand { min-width: 0; gap: 14px; }
.interface-brand-badge, .interface-footer-badge {
    display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff;
    background: linear-gradient(155deg, #1983ff 0%, #1759f1 48%, #4734be 100%);
    box-shadow: inset 0 1px 1px #abdfff55, 0 4px 12px #123caf35;
    font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 800; line-height: 1;
}
.interface-brand-badge { width: 44px; height: 44px; font-size: 29px; }
.interface-header .brand strong { font-size: 27px; font-weight: 750; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interface-header .brand-logo { width: auto; height: 42px; max-width: 230px; object-fit: contain; }
.interface-header .topbar-actions { gap: 20px; flex-shrink: 0; }
.interface-header .playlist-button {
    width: 46px; height: 46px; border-radius: 11px;
    border: 1px solid #3970ff; background: linear-gradient(145deg, #155eff, #3433ec);
    box-shadow: 0 0 17px #235aff66, inset 0 1px 0 #ffffff12;
}
.interface-header .playlist-button .lucide-icon { width: 25px; height: 25px; }
.interface-header .playlist-button:disabled { opacity: 1; }
.interface-header .user-menu > summary {
    min-height: 54px; padding: 6px 12px 6px 8px; gap: 12px;
    background: #ffffff02; border: 1px solid #3a4658; border-radius: 13px; box-shadow: inset 0 1px 0 #ffffff05;
}
.interface-header .user-menu > summary:hover, .interface-header .user-menu[open] > summary { border-color: #617ca3; background: #ffffff06; }
.interface-header .user-avatar {
    width: 40px; height: 40px; flex-shrink: 0; font-size: 17px; font-weight: 750;
    background: linear-gradient(145deg, #7655ff, #4930eb); box-shadow: inset 0 1px 1px #beabff55;
}
.interface-header .user-identity strong { font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interface-header .user-identity small { margin-top: 1px; color: #bed0e7; font-size: 12px; }
.interface-header .user-chevron { margin-left: 5px; color: #e4edff; }
.interface-header .user-menu-panel { top: calc(100% + 10px); }
.interface-header .radio-label { color: #c3d3e9; }
.footer.interface-footer {
    min-height: var(--interface-footer-height); padding: 12px 24px; gap: 24px;
    justify-content: space-between; text-align: left; color: #c7d8ef;
    background: linear-gradient(110deg, #1e2a3a 0%, #131d2b 64%, #172333 100%);
    border-top: 1px solid #365472; box-shadow: 0 -2px 9px #24496b12;
    font-size: 12px; line-height: 1.6;
}
.interface-credit { min-width: 0; display: flex; align-items: center; gap: 14px; }
.interface-footer-badge { width: 25px; height: 25px; font-size: 17px; }
.interface-credit strong { font-weight: 700; color: #e0ecff; }
.interface-credit-signature { white-space: nowrap; }
.interface-pixel-heart { display: inline-block; width: 16px; height: 16px; margin-left: 3px; vertical-align: -3px; }
.interface-footer-radio { margin-left: auto; max-width: 40%; overflow-wrap: anywhere; text-align: right; color: #a9bfdc; }
body:has(.interface-footer) .mpmascot-mascot-launcher { bottom: calc(var(--interface-footer-height) + 12px); }
body:has(.interface-header) .app-shell, body:has(.interface-header) .login-main { min-height: calc(100dvh - var(--topbar-height) - var(--interface-footer-height)); }
@media (max-width: 950px) {
    .topbar.interface-header { gap: 16px; padding-inline: 18px; }
    .interface-header .topbar-actions { gap: 12px; }
    .interface-header .brand strong { font-size: 23px; }
    .interface-header .user-identity strong { max-width: 115px; }
}
@media (max-width: 700px) {
    :root { --topbar-height: 64px; --interface-footer-height: 72px; }
    .topbar.interface-header { gap: 10px; padding-inline: 12px; }
    .interface-header .navigation-toggle { width: 40px; height: 40px; flex-basis: 40px; }
    .interface-header .brand { gap: 9px; }
    .interface-brand-badge { width: 35px; height: 35px; font-size: 24px; }
    .interface-header .brand strong { font-size: 20px; }
    .interface-header .brand-logo { height: 35px; max-width: 155px; }
    .interface-header .topbar-actions { gap: 8px; }
    .interface-header .playlist-button { width: 38px; height: 38px; border-radius: 10px; }
    .interface-header .playlist-button .lucide-icon { width: 22px; height: 22px; }
    .interface-header .user-menu > summary { min-height: 42px; padding: 4px; gap: 7px; border-radius: 11px; }
    .interface-header .user-avatar { width: 32px; height: 32px; font-size: 14px; }
    .interface-header .user-identity, .interface-header .user-chevron { display: none; }
    .footer.interface-footer { padding: 11px 16px; gap: 14px; font-size: 11px; }
    .interface-credit { gap: 10px; }
    .interface-footer-radio { max-width: 30%; }
}
@media (max-width: 430px) {
    .topbar.interface-header { padding-inline: 10px; gap: 9px; }
    .interface-header .brand { gap: 0; }
    .interface-header .brand .interface-brand-badge { display: none; }
    .interface-header .brand strong { font-size: 19px; }
    .interface-header .topbar-actions { gap: 6px; }
    .interface-header .brand-logo { max-width: 110px; }
    .interface-header .radio-label { font-size: 11px; }
    .interface-footer-badge { width: 22px; height: 22px; font-size: 15px; }
    .interface-credit { gap: 8px; }
    .footer.interface-footer { padding-inline: 12px; }
}
