/* notFM shared player styles — extracted from index.php.
   Loaded by index.php, playlist.php and artist.php together with inc/notfm-player-ui.php
   and js/notfm-player.js. Pages mark their body with class "fd-player-page". */

        :root {
            --fd-bg: #07090d;
            --fd-panel: #11141b;
            --fd-panel-soft: #171b24;
            --fd-text: #f5f7fb;
            --fd-muted: #9aa3b2;
            --fd-line: rgba(255, 255, 255, .09);
            --fd-accent: #36d6ff;
            --fd-accent-2: #7c5cff;
            --fd-danger: #ff3d69;
            --fd-player-height: 86px;
        }

:root {
    --fd-bottom-nav-height: 68px;
}

html.fd-overlay-open,
body.fd-player-page.fd-overlay-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

        .fd-search-overlay {
            position: fixed;
            inset: 0;
            z-index: 999999;
            display: none;
            overflow-x: hidden;
            overflow-y: auto;
            touch-action: pan-y;
            background: rgba(5,7,10,.97);
            backdrop-filter: blur(22px);
        }

        .fd-search-overlay.is-open { display: block; }

        .fd-search-shell {
            width: min(920px, calc(100% - 32px));
            margin: 0 auto;
            padding: 25px 0 60px;
        }

        .fd-search-top {
            display: grid;
            grid-template-columns: 1fr 46px;
            gap: 10px;
            align-items: center;
        }

        .fd-search-field {
            position: relative;
        }

        .fd-search-field > i {
            position: absolute;
            left: 19px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--fd-muted);
        }

        #fdSearchInput {
            width: 100%;
            height: 56px;
            padding: 0 18px 0 49px;
            border: 1px solid var(--fd-line);
            border-radius: 18px;
            outline: none;
            background: rgba(255,255,255,.06);
            color: white;
        }

        #fdSearchInput:focus { border-color: rgba(54,214,255,.55); }

        .fd-search-close {
            width: 46px;
            height: 46px;
            border: 1px solid var(--fd-line);
            border-radius: 50%;
            background: rgba(255,255,255,.05);
            color: white;
            cursor: pointer;
        }

        .fd-search-intro {
            padding: 42px 6px;
            color: var(--fd-muted);
            text-align: center;
        }

        .fd-search-browse-heading {
            margin: 0 0 12px;
            font-size: 12px;
            letter-spacing: .14em;
            text-transform: uppercase;
            color: var(--fd-muted);
        }

        .fd-search-recent {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .fd-search-recent-pill {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            height: 46px;
            padding: 0 10px 0 18px;
            border: 1px solid var(--fd-line);
            border-radius: 999px;
            background: rgba(255,255,255,.045);
            color: white;
            font-size: 15px;
            font-weight: 600;
        }

        .fd-search-recent-pill span {
            max-width: 46vw;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .fd-search-recent-remove {
            width: 30px;
            height: 30px;
            flex: none;
            border: 0;
            border-radius: 50%;
            background: rgba(255,255,255,.07);
            color: var(--fd-muted);
            cursor: pointer;
            display: grid;
            place-items: center;
            font-size: 12px;
        }

        .fd-search-recent-remove:hover {
            background: rgba(255,75,111,.18);
            color: #ff8fa8;
        }

        .fd-search-genres {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .fd-search-genre-chip {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
            min-width: 0;
            padding: 10px 6px 4px;
            border-radius: 18px;
            border: 1px solid var(--fd-line);
            color: white;
            text-decoration: none;
            text-align: center;
            overflow: hidden;
        }

        .fd-search-genre-chip:hover { border-color: rgba(54,214,255,.35); }

        .fd-search-genre-chip-art {
            width: 84px;
            height: 84px;
            flex: none;
            border-radius: 50%;
            object-fit: cover;
            background: rgba(255,255,255,.08);
        }

        .fd-search-genre-chip span {
            display: block;
            width: 100%;
            margin-top: 10px;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 700;
            font-size: 14.5px;
        }

        .fd-search-shelf {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: 156px;
            gap: 15px;
            overflow-x: auto;
            overflow-y: hidden;
            touch-action: pan-x;
            padding: 1px 2px 10px;
            scrollbar-width: none;
        }

        .fd-search-shelf::-webkit-scrollbar { display: none; }

        .fd-search-shelf-card {
            min-width: 0;
            display: block;
            border: 0;
            background: transparent;
            color: white;
            text-align: left;
            cursor: pointer;
            padding: 0;
        }

        .fd-search-shelf-card img {
            display: block;
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 15px;
            object-fit: cover;
            object-position: var(--fd-art-position, 50% 35%);
            background: var(--fd-panel-soft);
        }

        .fd-search-shelf-card strong,
        .fd-search-shelf-card small {
            display: block;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .fd-search-shelf-card strong {
            margin-top: 9px;
            font-size: 14.5px;
        }

        .fd-search-shelf-card small {
            margin-top: 3px;
            color: var(--fd-muted);
            font-size: 12.5px;
        }

        @media (max-width: 520px) {
            .fd-search-recent-pill span { max-width: 38vw; }
            .fd-search-shelf { grid-auto-columns: 132px; }
            .fd-search-genre-chip-art { width: 72px; height: 72px; }
        }

        .fd-search-group { margin-top: 31px; }

        .fd-search-group h3 {
            margin: 0 0 12px;
            font-size: 12px;
            letter-spacing: .14em;
            text-transform: uppercase;
            color: var(--fd-muted);
        }

        .fd-search-list {
            display: grid;
            gap: 8px;
        }

        .fd-search-result {
            width: 100%;
            min-height: 72px;
            display: grid;
            grid-template-columns: 54px 1fr auto;
            gap: 13px;
            align-items: center;
            padding: 8px;
            border: 1px solid var(--fd-line);
            border-radius: 15px;
            background: rgba(255,255,255,.035);
            color: white;
            text-align: left;
            text-decoration: none;
            cursor: pointer;
        }

        .fd-search-result:hover { border-color: rgba(54,214,255,.35); }

        .fd-search-result img,
        .fd-result-avatar {
            width: 54px;
            height: 54px;
            border-radius: 12px;
            object-fit: cover;
            object-position: var(--fd-art-position, 50% 35%);
            background: var(--fd-panel-soft);
        }

        .fd-result-avatar {
            display: grid;
            place-items: center;
            color: var(--fd-accent);
            font-weight: 800;
        }

        .fd-result-avatar-img {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--fd-panel-soft);
        }

        .fd-search-result-artist .fd-result-avatar {
            border-radius: 50%;
        }

        .fd-search-result strong,
        .fd-search-result small { display: block; }
        .fd-search-result small { margin-top: 3px; color: var(--fd-muted); }
        .fd-search-result > i { margin-right: 10px; color: var(--fd-muted); }

        .fd-player {
            position: fixed;
            z-index: 10000;
            left: 50%;
            bottom: 12px;
            transform: translateX(-50%) translateY(130%);
            width: min(980px, calc(100% - 24px));
            height: var(--fd-player-height);
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(170px, .55fr);
            align-items: center;
            gap: 18px;
            padding: 10px 16px 10px 10px;
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 21px;
            background: rgba(13,16,22,.92);
            box-shadow: 0 18px 65px rgba(0,0,0,.48);
            backdrop-filter: blur(22px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: transform .3s ease, opacity .22s ease, visibility .22s ease;
        }

        .fd-player.is-visible {
            display: grid !important;
            transform: translateX(-50%) translateY(0) !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        .fd-player-track {
            min-width: 0;
            display: grid;
            grid-template-columns: 64px minmax(0, 1fr);
            gap: 12px;
            align-items: center;
        }

        .fd-player-art {
            width: 64px;
            height: 64px;
            border-radius: 13px;
            object-fit: cover;
            object-position: var(--fd-art-position, 50% 35%);
            background: #0a0c10;
        }

        .fd-player-copy { min-width: 0; }
        .fd-player-copy strong,
        .fd-player-copy span {
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .fd-player-copy strong { font-size: 14px; }
        .fd-player-copy span { margin-top: 3px; color: var(--fd-muted); font-size: 12px; }

        .fd-player-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .fd-player-control {
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: white;
            cursor: pointer;
        }

        .fd-player-control.is-main {
            width: 50px;
            height: 50px;
            background: white;
            color: #090b0e;
        }

        .fd-player-progress-area {
            min-width: 0;
            display: grid;
            grid-template-columns: 38px minmax(80px, 1fr) 38px;
            gap: 8px;
            align-items: center;
            color: var(--fd-muted);
            font-size: 10px;
        }

        #fdProgress {
            width: 100%;
            accent-color: var(--fd-accent);
            cursor: pointer;
        }


        .fd-player-track {
            position: relative;
            padding-right: 26px;
            border-radius: 14px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .fd-player-track::after {
            content: "\f106";
            position: absolute;
            right: 3px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,.56);
            font: var(--fa-font-solid);
            font-size: 14px;
        }

        .fd-player-track:hover .fd-player-copy strong { color: var(--fd-accent); }

        .fd-main-player {
            position: fixed;
            inset: 0;
            z-index: 1000001;
            display: none;
            overflow: hidden;
            background: #07090d;
            color: white;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .fd-main-player.is-open {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        .fd-main-backdrop {
            position: absolute;
            inset: -35px;
            background-image: var(--fd-main-art, url('/images/notfm-eq-default-profile.png')), url('/images/notfm-eq-default-profile.png');
            background-position: var(--fd-art-position, center 35%);
            background-size: cover;
            filter: blur(42px) saturate(1.15);
            opacity: .34;
            transform: scale(1.08);
        }

        .fd-main-player::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(5,7,10,.34), rgba(5,7,10,.88) 64%, #07090d 100%),
                radial-gradient(circle at 50% 18%, rgba(255,255,255,.14), transparent 38%);
            pointer-events: none;
        }

        .fd-main-shell {
            position: relative;
            z-index: 2;
            width: min(560px, 100%);
            height: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            padding: max(14px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom));
        }

        .fd-main-header {
            flex: 0 0 auto;
            min-height: 48px;
            display: grid;
            grid-template-columns: 46px 1fr 46px;
            align-items: center;
        }

        .fd-main-header-label {
            text-align: center;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .2em;
            color: rgba(255,255,255,.68);
        }

        .fd-main-icon-button,
        .fd-main-utility-button,
        .fd-main-transport-button {
            border: 0;
            color: white;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .fd-main-icon-button {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(255,255,255,.08);
        }

        .fd-main-track-link {
            display: grid;
            place-items: center;
            text-decoration: none;
        }

        .fd-main-content {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: auto;
            padding: 8px 0 12px;
            scrollbar-width: none;
        }

        .fd-main-content::-webkit-scrollbar { display: none; }

        .fd-main-art-wrap {
            position: relative;
            width: min(100%, 430px);
            aspect-ratio: 1;
            margin: 0 auto;
            border-radius: clamp(22px, 5vw, 34px);
            overflow: hidden;
            background: #0b0e13;
            box-shadow: 0 28px 90px rgba(0,0,0,.48);
        }

        /* Hidden by default; shown only in live-radio mode (see the
           .is-live-mode override) so it's unmistakable the audio playing is
           a continuous broadcast, not an on-demand track. */
        .fd-main-live-badge {
            display: none;
            position: absolute;
            right: 14px;
            bottom: 14px;
            z-index: 2;
            align-items: center;
            gap: 6px;
            height: 26px;
            padding: 0 12px;
            border-radius: 999px;
            background: #e11d2e;
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .06em;
            box-shadow: 0 6px 18px rgba(225,29,46,.4);
        }

        .fd-main-live-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #fff;
            animation: fd-live-blink 1.4s ease-in-out infinite;
        }

        @keyframes fd-live-blink {
            0%, 100% { opacity: 1; }
            50% { opacity: .45; }
        }

        .fd-main-art {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: var(--fd-art-position, 50% 35%);
        }

        .fd-main-copy {
            margin-top: clamp(20px, 4vh, 32px);
            min-width: 0;
        }

        .fd-main-copy h2,
        .fd-main-copy p {
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .fd-main-copy h2 {
            font-size: clamp(22px, 5.5vw, 31px);
            line-height: 1.15;
            letter-spacing: -.025em;
        }

        .fd-main-copy p {
            margin-top: 5px;
            color: rgba(255,255,255,.62);
            font-size: 14px;
        }

        .fd-main-progress-block { margin-top: 21px; }

        .fd-range {
            --fd-range-progress: 0%;
            display: block;
            width: 100%;
            height: 20px;
            margin: 0;
            padding: 0;
            appearance: none;
            -webkit-appearance: none;
            background: transparent;
            cursor: pointer;
            touch-action: none;
        }

        .fd-range::-webkit-slider-runnable-track {
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(90deg, #fff 0 var(--fd-range-progress), rgba(255,255,255,.22) var(--fd-range-progress) 100%);
        }

        .fd-range::-moz-range-track {
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(90deg, #fff 0 var(--fd-range-progress), rgba(255,255,255,.22) var(--fd-range-progress) 100%);
        }

        .fd-range::-webkit-slider-thumb {
            width: 15px;
            height: 15px;
            margin-top: -5.5px;
            border: 0;
            border-radius: 50%;
            appearance: none;
            -webkit-appearance: none;
            background: #fff;
            box-shadow: 0 2px 12px rgba(0,0,0,.35);
        }

        .fd-range::-moz-range-thumb {
            width: 15px;
            height: 15px;
            border: 0;
            border-radius: 50%;
            background: #fff;
        }

        .fd-main-time-row {
            display: flex;
            justify-content: space-between;
            margin-top: -2px;
            color: rgba(255,255,255,.5);
            font-size: 10px;
            font-variant-numeric: tabular-nums;
        }

        .fd-main-transport {
            display: grid;
            grid-template-columns: 46px 46px 74px 46px 46px;
            justify-content: center;
            align-items: center;
            gap: clamp(6px, 3vw, 14px);
            margin-top: 14px;
        }

        /* Hidden by default; shown only in live-radio mode (see the
           .is-live-mode override), where prev/rewind/forward/next are
           hidden and this fills the otherwise-empty space around play/pause. */
        .fd-main-volume-row {
            display: none;
            align-items: center;
            gap: 12px;
            margin-top: 21px;
            color: rgba(255,255,255,.55);
            font-size: 13px;
        }

        .fd-main-volume-range {
            flex: 1;
        }

        .fd-main-transport-button {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: transparent;
            font-size: 18px;
        }

        .fd-main-transport-button.is-play {
            width: 70px;
            height: 70px;
            background: #fff;
            color: #07090d;
            font-size: 24px;
            box-shadow: 0 12px 36px rgba(0,0,0,.3);
        }

        .fd-seek-label {
            position: relative;
            display: inline-block;
            font-size: 10px;
            font-weight: 800;
        }

        .fd-seek-label i { font-size: 21px; }
        .fd-seek-label span {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            font-size: 8px;
        }

        .fd-main-utilities {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 17px;
        }

        .fd-main-utility-button {
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 16px;
            background: rgba(255,255,255,.055);
            font-size: 12px;
            font-weight: 600;
        }

        .fd-main-utility-button.is-active {
            border-color: rgba(54,214,255,.5);
            background: rgba(54,214,255,.13);
            color: var(--fd-accent);
        }

        .fd-main-utility-button.is-liked {
            border-color: rgba(255,75,111,.55);
            background: rgba(255,75,111,.13);
            color: var(--fd-danger);
        }

        .fd-lyrics-panel,
        .fd-artist-panel,
        .fd-insights-panel {
            position: absolute;
            z-index: 4;
            inset: 0;
            display: flex;
            flex-direction: column;
            padding: max(14px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
            background: rgba(6,8,12,.98);
            backdrop-filter: blur(24px);
            transform: translateY(105%);
            visibility: hidden;
            /* visibility:hidden alone doesn't reliably block hit-testing on an
               <iframe> child (fdInsightsFrame) in every browser — the hidden
               iframe kept swallowing clicks meant for controls behind/around
               it (e.g. the live-mode volume slider) even while closed. */
            pointer-events: none;
            transition: transform .34s cubic-bezier(.2,.8,.2,1), visibility .34s;
        }

        .fd-lyrics-panel.is-open,
        .fd-artist-panel.is-open,
        .fd-insights-panel.is-open {
            transform: translateY(0);
            visibility: visible;
            pointer-events: auto;
        }

        .fd-lyrics-header,
        .fd-panel-header {
            display: grid;
            grid-template-columns: 44px 1fr 44px;
            align-items: center;
            flex: 0 0 auto;
        }

        .fd-lyrics-heading,
        .fd-panel-heading {
            min-width: 0;
            text-align: center;
        }

        .fd-lyrics-heading strong,
        .fd-lyrics-heading span,
        .fd-panel-heading strong,
        .fd-panel-heading span {
            display: block;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .fd-lyrics-heading strong,
        .fd-panel-heading strong { font-size: 14px; }
        .fd-lyrics-heading span,
        .fd-panel-heading span { margin-top: 2px; color: var(--fd-muted); font-size: 11px; }

        .fd-lyrics-content {
            flex: 1 1 auto;
            overflow-y: auto;
            margin-top: 18px;
            padding: 20px 5px 70px;
            white-space: pre-wrap;
            font-size: clamp(19px, 4.8vw, 27px);
            line-height: 1.65;
            font-weight: 600;
            letter-spacing: -.015em;
            scrollbar-width: thin;
        }

        .fd-lyrics-content .fd-sync-line {
            display: block;
            width: fit-content;
            max-width: 100%;
            margin: 0 0 10px;
            padding: 2px 0 2px 13px;
            border-left: 3px solid transparent;
            color: rgba(255,255,255,.68);
            opacity: .78;
            transition: color .18s ease, opacity .18s ease, transform .18s ease, border-color .18s ease;
        }

        .fd-lyrics-content .fd-sync-line.is-past {
            color: rgba(255,255,255,.34);
            opacity: .58;
        }

        .fd-lyrics-content .fd-sync-line.is-future {
            color: rgba(255,255,255,.67);
            opacity: .76;
        }

        .fd-lyrics-content .fd-sync-line.is-active {
            border-left-color: var(--fd-accent);
            color: #fff;
            opacity: 1;
            transform: translateX(4px);
            font-weight: 700;
        }

        .fd-lyrics-content .fd-sync-spacer {
            height: .75em;
        }

        .fd-lyrics-content.is-synced {
            scroll-behavior: smooth;
        }

        .fd-lyrics-status {
            color: var(--fd-muted);
            font-size: 14px;
            font-weight: 400;
            text-align: center;
            padding-top: 20vh;
        }

        .fd-lyrics-status + .fd-credits-block {
            margin-top: 42px;
        }

        .fd-credits-block {
            position: relative;
            margin: 54px 0 18px;
            padding: 20px;
            border: 1px solid rgba(255,255,255,.11);
            border-radius: 22px;
            overflow: hidden;
            background:
                radial-gradient(circle at 100% 0, rgba(54,214,255,.12), transparent 42%),
                linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
            box-shadow: 0 20px 56px rgba(0,0,0,.22);
            font-size: 14px;
            font-weight: 400;
            line-height: 1.45;
            letter-spacing: normal;
            white-space: normal;
        }

        .fd-credits-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20px;
            width: 58px;
            height: 3px;
            border-radius: 0 0 999px 999px;
            background: var(--fd-accent);
            box-shadow: 0 0 18px rgba(54,214,255,.55);
        }

        .fd-credits-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 17px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,.09);
        }

        .fd-credits-heading strong {
            font-family: 'Anton', sans-serif;
            font-size: 20px;
            font-weight: 400;
            line-height: 1;
            letter-spacing: .075em;
        }

        .fd-credits-heading span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--fd-accent);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: .14em;
            text-transform: uppercase;
        }

        .fd-credits-signal {
            display: inline-flex;
            align-items: end;
            gap: 2px;
            height: 12px;
        }

        .fd-credits-signal i {
            display: block;
            width: 2px;
            border-radius: 99px;
            background: currentColor;
        }

        .fd-credits-signal i:nth-child(1) { height: 5px; }
        .fd-credits-signal i:nth-child(2) { height: 11px; }
        .fd-credits-signal i:nth-child(3) { height: 7px; }

        .fd-credits-list {
            display: grid;
            gap: 0;
            margin: 0;
        }

        .fd-credit-row {
            display: grid;
            grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
            gap: 14px;
            padding: 11px 0;
            border-bottom: 1px solid rgba(255,255,255,.065);
        }

        .fd-credit-row:last-child { border-bottom: 0; }

        .fd-credit-row dt,
        .fd-credit-row dd { margin: 0; }

        .fd-credit-row dt {
            color: rgba(255,255,255,.42);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: .13em;
            text-transform: uppercase;
        }

        .fd-credit-row dd {
            min-width: 0;
            color: rgba(255,255,255,.9);
            font-size: 13px;
            font-weight: 600;
            text-align: right;
            overflow-wrap: anywhere;
        }

        .fd-credits-legal {
            margin-top: 16px;
            padding-top: 15px;
            border-top: 1px solid rgba(255,255,255,.09);
            color: rgba(255,255,255,.38);
            font-size: 9px;
            font-weight: 500;
            line-height: 1.65;
            letter-spacing: .015em;
        }

        @media (max-width: 480px) {
            .fd-credits-block {
                margin-top: 42px;
                padding: 18px 16px;
                border-radius: 19px;
            }

            .fd-credit-row {
                grid-template-columns: 84px minmax(0,1fr);
                gap: 10px;
            }

            .fd-credit-row dd { font-size: 12.5px; }
        }


        .fd-artist-panel,
        .fd-insights-panel {
            position: absolute;
            z-index: 5;
            inset: 0;
            display: flex;
            flex-direction: column;
            padding: max(14px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
            background: rgba(6,8,12,.985);
            backdrop-filter: blur(24px);
            transform: translateY(105%);
            visibility: hidden;
            transition: transform .34s cubic-bezier(.2,.8,.2,1), visibility .34s;
        }

        .fd-panel-header {
            display: grid;
            grid-template-columns: 44px 1fr 44px;
            align-items: center;
            flex: 0 0 auto;
        }

        .fd-artist-content {
            width: min(100%, 760px);
            flex: 1 1 auto;
            min-height: 0;
            margin: 0 auto;
            overflow-y: auto;
            padding: 28px 4px 44px;
            scrollbar-width: thin;
        }

        .fd-artist-hero {
            display: grid;
            grid-template-columns: 112px minmax(0,1fr);
            gap: 22px;
            align-items: center;
            margin-bottom: 28px;
            padding-bottom: 26px;
            border-bottom: 1px solid rgba(255,255,255,.09);
        }

        .fd-artist-image {
            width: 112px;
            height: 112px;
            border: 2px solid rgba(255,255,255,.13);
            border-radius: 50%;
            object-fit: cover;
            background: #10141a;
            box-shadow: 0 18px 54px rgba(0,0,0,.46);
        }

        .fd-artist-hero-copy { min-width: 0; }
        .fd-artist-hero-copy h3 {
            margin: 0;
            font-size: clamp(28px, 5vw, 36px);
            font-weight: 750;
            line-height: 1.05;
            letter-spacing: -.035em;
        }
        .fd-artist-hero-copy p {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin: 10px 0 0;
            padding: 6px 9px;
            border: 1px solid rgba(146,255,85,.24);
            border-radius: 999px;
            background: rgba(146,255,85,.08);
            color: var(--fd-accent);
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: .09em;
        }
        .fd-artist-hero-copy p::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--fd-accent);
            box-shadow: 0 0 12px rgba(146,255,85,.75);
        }

        .fd-artist-profile-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            padding: 9px 13px;
            border: 1px solid rgba(255,255,255,.13);
            border-radius: 999px;
            background: rgba(255,255,255,.055);
            color: white;
            font-size: 13px;
            font-weight: 650;
            line-height: 1;
            text-decoration: none;
        }

        .fd-artist-profile-link:active { transform: scale(.98); }

        .fd-artist-section-title {
            margin: 34px 0 14px;
            color: rgba(255,255,255,.62);
            font-size: 12px;
            font-weight: 850;
            letter-spacing: .16em;
        }

        .fd-artist-section-title.is-about { margin-top: 0; }

        .fd-artist-bio-card {
            padding: 20px 21px;
            border: 1px solid rgba(255,255,255,.09);
            border-radius: 20px;
            background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.032));
            box-shadow: 0 16px 42px rgba(0,0,0,.16);
        }

        .fd-artist-bio {
            color: rgba(255,255,255,.88);
            font-size: 17px;
            font-weight: 400;
            line-height: 1.82;
            letter-spacing: .002em;
        }

        .fd-artist-track-list { display: grid; gap: 10px; }

        .fd-artist-track {
            width: 100%;
            display: grid;
            grid-template-columns: 60px minmax(0,1fr) 38px;
            gap: 13px;
            align-items: center;
            min-height: 80px;
            padding: 10px 11px;
            border: 1px solid rgba(255,255,255,.09);
            border-radius: 18px;
            background: rgba(255,255,255,.05);
            color: white;
            text-align: left;
            cursor: pointer;
            transition: transform .18s ease, background .18s ease, border-color .18s ease;
        }

        .fd-artist-track:hover {
            transform: translateY(-1px);
            border-color: rgba(255,255,255,.16);
            background: rgba(255,255,255,.075);
        }

        .fd-artist-track img {
            width: 60px;
            height: 60px;
            border-radius: 13px;
            object-fit: cover;
            object-position: var(--fd-art-position, 50% 35%);
            background: #10141a;
        }

        .fd-artist-track-copy { min-width: 0; }
        .fd-artist-track-copy strong,
        .fd-artist-track-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
        .fd-artist-track-copy strong { font-size: 15px; font-weight: 700; line-height: 1.25; }
        .fd-artist-track-copy span { margin-top: 5px; color: rgba(255,255,255,.55); font-size: 12px; }
        .fd-artist-track > i {
            display: grid;
            width: 36px;
            height: 36px;
            place-items: center;
            border-radius: 50%;
            background: rgba(255,255,255,.08);
            color: white;
            font-size: 12px;
        }

        .fd-insights-frame-wrap {
            flex: 1 1 auto;
            min-height: 0;
            margin-top: 12px;
            overflow: hidden;
            border-radius: 18px;
            background: white;
        }

        .fd-insights-frame {
            display: block;
            width: 100%;
            height: 100%;
            border: 0;
            background: white;
        }

        .fd-player-toast {
            position: fixed;
            z-index: 1000003;
            left: 50%;
            bottom: calc(24px + env(safe-area-inset-bottom));
            transform: translate(-50%, 24px);
            padding: 11px 16px;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 999px;
            background: rgba(10,13,18,.94);
            color: white;
            font-size: 12px;
            opacity: 0;
            visibility: hidden;
            transition: .22s ease;
        }

        .fd-player-toast.is-visible {
            transform: translate(-50%, 0);
            opacity: 1;
            visibility: visible;
        }

        @media (max-height: 760px) {
            .fd-main-shell { padding-top: 8px; }
            .fd-main-header { min-height: 42px; }
            .fd-main-content { justify-content: flex-start; }
            .fd-main-art-wrap { width: min(44vh, 330px); }
            .fd-main-copy { margin-top: 14px; }
            .fd-main-progress-block { margin-top: 13px; }
            .fd-main-transport { margin-top: 8px; }
            .fd-main-utilities { margin-top: 9px; }
        }

@media (max-width: 760px) {
    :root { --fd-player-height: 78px; }
            .fd-player {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 8px;
                padding-right: 10px;
            }
            .fd-player-art { width: 56px; height: 56px; }
            .fd-player-track { grid-template-columns: 56px minmax(0,1fr); gap: 9px; padding-right: 22px; }
            .fd-main-shell { padding-left: 18px; padding-right: 18px; }
            .fd-main-art-wrap { width: min(100%, 390px); }
            .fd-artist-content { padding: 24px 0 40px; }
            .fd-artist-hero { grid-template-columns: 96px minmax(0,1fr); gap: 17px; margin-bottom: 25px; padding-bottom: 23px; }
            .fd-artist-image { width: 96px; height: 96px; }
            .fd-artist-hero-copy h3 { font-size: clamp(26px, 8vw, 32px); }
            .fd-artist-bio-card { padding: 18px; border-radius: 18px; }
            .fd-artist-bio { font-size: 16.5px; line-height: 1.78; }
            .fd-artist-section-title { margin-top: 30px; font-size: 11px; }
            .fd-player-progress-area { display: none; }
            .fd-player-control { width: 34px; height: 34px; }
            .fd-player-control.is-main { width: 46px; height: 46px; }
            .fd-player-controls .js-prev { display: none; }
}

@media (max-width: 420px) {
            .fd-artist-hero { grid-template-columns: 82px minmax(0,1fr); gap: 14px; }
            .fd-artist-image { width: 82px; height: 82px; }
            .fd-artist-hero-copy h3 { font-size: 25px; }
            .fd-artist-profile-link { font-size: 12px; padding: 8px 11px; }
            .fd-artist-bio-card { padding: 17px 16px; }
            .fd-artist-bio { font-size: 16px; line-height: 1.74; }
            .fd-artist-track { grid-template-columns: 56px minmax(0,1fr) 34px; min-height: 74px; }
            .fd-artist-track img { width: 56px; height: 56px; }
            .fd-player-controls .js-next { display: none; }
}

.notfm-history-overlay{
    position:fixed;
    inset:0;
    z-index:1000003;
    display:none;
    overflow-x:hidden;
    overflow-y:auto;
    touch-action:pan-y;
    overscroll-behavior:contain;
    background:
        radial-gradient(circle at 10% -10%,rgba(54,214,255,.13),transparent 34%),
        radial-gradient(circle at 92% 16%,rgba(124,92,255,.14),transparent 31%),
        rgba(6,8,12,.985);
    color:#f5f7fb;
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
}
.notfm-history-overlay.is-open{display:block}
.notfm-history-shell{
    width:min(920px,100%);
    min-height:100%;
    margin:0 auto;
    padding:0 18px calc(126px + env(safe-area-inset-bottom));
}
.notfm-history-header{
    position:sticky;
    top:0;
    z-index:3;
    min-height:72px;
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 48px;
    align-items:center;
    margin:0 -18px;
    padding:9px 18px;
    background:linear-gradient(180deg,rgba(6,8,12,.99),rgba(6,8,12,.88),transparent);
}
.notfm-history-close,.notfm-history-refresh{
    width:44px;
    height:44px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:50%;
    background:rgba(255,255,255,.055);
    color:#fff;
}
.notfm-history-brand{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
}
.notfm-history-brand span{
    color:#36d6ff;
    font-size:7px;
    line-height:1;
    font-weight:850;
    letter-spacing:.19em;
}
.notfm-history-intro{padding:30px 1px 20px}
.notfm-history-intro>span{
    color:#36d6ff;
    font-size:10px;
    font-weight:850;
    letter-spacing:.15em;
    text-transform:uppercase;
}
.notfm-history-intro h2{
    margin:7px 0 5px;
    font-family:'Anton',sans-serif;
    font-size:clamp(45px,8vw,72px);
    line-height:1;
}
.notfm-history-intro p{
    margin:0;
    color:#9aa3b2;
    font-size:12px;
}
.notfm-history-group{margin-top:25px}
.notfm-history-group h3{
    margin:0 0 10px;
    color:#98a2b3;
    font-size:10px;
    font-weight:850;
    letter-spacing:.13em;
    text-transform:uppercase;
}
.notfm-history-list{display:grid;gap:8px}
.notfm-history-item{
    width:100%;
    min-height:72px;
    display:grid;
    grid-template-columns:56px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:8px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:16px;
    background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.024));
    color:#fff;
    text-align:left;
    cursor:pointer;
    transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.notfm-history-item:hover,.notfm-history-item:focus-visible{
    outline:none;
    transform:translateY(-2px);
    border-color:rgba(54,214,255,.42);
    background:linear-gradient(180deg,rgba(54,214,255,.08),rgba(255,255,255,.03));
}
.notfm-history-art-wrap{
    position:relative;
    width:56px;
    height:56px;
    overflow:hidden;
    border-radius:12px;
    background:#151922;
}
.notfm-history-art{width:100%;height:100%;display:block;object-fit:cover;object-position:var(--fd-art-position,50% 35%)}
.notfm-history-playing{
    position:absolute;
    inset:0;
    display:none;
    place-items:center;
    background:rgba(4,7,10,.58);
}
.notfm-history-item.is-current .notfm-history-playing{display:grid}
.notfm-history-eq{height:20px;display:flex;align-items:flex-end;gap:3px}
.notfm-history-eq i{
    display:block;
    width:3px;
    height:6px;
    border-radius:999px;
    background:#36d6ff;
    animation:notfmHistoryEq .68s ease-in-out infinite alternate;
}
.notfm-history-eq i:nth-child(2){height:13px;animation-delay:-.39s}
.notfm-history-eq i:nth-child(3){height:9px;animation-delay:-.18s}
.notfm-history-eq i:nth-child(4){height:16px;animation-delay:-.52s}
@keyframes notfmHistoryEq{from{transform:scaleY(.38)}to{transform:scaleY(1.14)}}
.notfm-history-copy{min-width:0}
.notfm-history-copy strong,.notfm-history-copy span{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.notfm-history-copy strong{font-size:13px}
.notfm-history-copy span{margin-top:3px;color:#9aa3b2;font-size:10.5px}
.notfm-history-time{text-align:right}
.notfm-history-time strong{display:block;font-size:11px}
.notfm-history-time span{display:block;margin-top:4px;color:#7f8998;font-size:9px}
.notfm-history-status{
    padding:54px 16px;
    border:1px dashed rgba(255,255,255,.13);
    border-radius:20px;
    color:#9aa3b2;
    text-align:center;
}
.notfm-history-status i{margin-right:6px;color:#36d6ff}
body.notfm-history-open,
html.notfm-history-open{overflow:hidden!important}
@media(max-width:520px){
    .notfm-history-shell{padding-left:12px;padding-right:12px}
    .notfm-history-header{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
    .notfm-history-item{grid-template-columns:52px minmax(0,1fr) auto}
    .notfm-history-art-wrap{width:52px;height:52px}
}

.notfm-atp-overlay{
    position:fixed;
    inset:0;
    z-index:1000010;
    display:none;
    align-items:flex-end;
    justify-content:center;
    background:rgba(4,6,10,.72);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}
.notfm-atp-overlay.is-open{display:flex}
.notfm-atp-shell{
    width:min(480px,100%);
    max-height:78vh;
    display:flex;
    flex-direction:column;
    background:#111319;
    border:1px solid rgba(255,255,255,.1);
    border-bottom:0;
    border-radius:22px 22px 0 0;
    padding:16px 18px calc(20px + env(safe-area-inset-bottom));
    box-shadow:0 -20px 60px rgba(0,0,0,.5);
}
.notfm-atp-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}
.notfm-atp-header strong{font-size:16px;font-weight:800}
.notfm-atp-content{overflow-x:hidden;overflow-y:auto;touch-action:pan-y;display:grid;gap:6px;padding-bottom:4px}
.notfm-atp-row{
    width:100%;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 24px;
    align-items:center;
    gap:12px;
    padding:8px;
    border:0;
    border-radius:13px;
    background:transparent;
    color:#fff;
    text-align:left;
    cursor:pointer;
}
.notfm-atp-row:hover{background:rgba(255,255,255,.055)}
.notfm-atp-row img{width:44px;height:44px;border-radius:9px;object-fit:cover;background:#171920}
.notfm-atp-row-copy{min-width:0}
.notfm-atp-row-copy strong,.notfm-atp-row-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notfm-atp-row-copy strong{font-size:13.5px}
.notfm-atp-row-copy small{margin-top:2px;color:#9aa3b2;font-size:11.5px}
.notfm-atp-row i{color:#9aa3b2;font-size:14px}
.notfm-atp-row.is-added i{color:#36d6ff}
.notfm-atp-create{
    margin-top:10px;
    height:48px;
    border:1px dashed rgba(255,255,255,.18);
    border-radius:13px;
    background:transparent;
    color:#8fe3ff;
    font-weight:800;
    font-size:13.5px;
    cursor:pointer;
}
.notfm-atp-create:hover{background:rgba(54,214,255,.08)}
.notfm-atp-create-form{margin-top:10px;display:flex;gap:8px}
.notfm-atp-create-form input{
    flex:1;
    min-width:0;
    height:48px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:13px;
    padding:0 14px;
    font-size:15px;
    color:#f5f7fb;
    background:rgba(255,255,255,.05);
    box-sizing:border-box;
}
.notfm-atp-create-form button{
    height:48px;
    padding:0 18px;
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,#36d6ff,#7c5cff);
    color:#07090d;
    font-weight:800;
    font-size:13.5px;
    cursor:pointer;
}

@media (max-width: 760px) {
    body.fd-player-page {
        padding-bottom: calc(var(--fd-bottom-nav-height) + env(safe-area-inset-bottom) + 28px);
        transition: padding-bottom .24s ease;
    }

    body.fd-player-page.fd-has-player {
        padding-bottom: calc(var(--fd-bottom-nav-height) + var(--fd-player-height) + env(safe-area-inset-bottom) + 28px);
    }

            .fd-player {
                left: 0 !important;
                right: 0 !important;
                bottom: calc(var(--fd-bottom-nav-height) + env(safe-area-inset-bottom)) !important;
                width: 100% !important;
                max-width: none !important;
                margin: 0 !important;
                border-right: 0 !important;
                border-bottom: 0 !important;
                border-left: 0 !important;
                border-radius: 0 !important;
                box-shadow: 0 -14px 38px rgba(0,0,0,.38) !important;
                transform: translateY(130%) !important;
            }

            .fd-player.is-visible {
                transform: translateY(0) !important;
            }

            .fd-player-track {
                border-radius: 0;
            }

    body.fd-no-bottom-nav .fd-player {
        bottom: env(safe-area-inset-bottom) !important;
    }

    body.fd-no-bottom-nav.fd-has-player {
        padding-bottom: calc(var(--fd-player-height) + env(safe-area-inset-bottom) + 28px);
    }
}

        #fdPlayerArtist,#fdMainArtist{color:inherit;text-decoration:none;cursor:pointer}
        #fdPlayerArtist:hover,#fdMainArtist:hover{color:var(--fd-accent,#6ce3ff)}

        /* Shared app-menu ('#myMenu') decoration — identical on every page. */
        #myMenu.notfm-app-menu {
            width: 0 !important;
            max-width: 370px;
            overflow-x: hidden;
            visibility: hidden;
            pointer-events: none;
            transition: width .28s ease, visibility .28s ease;
            background:
                radial-gradient(circle at 20% 0%, rgba(54,214,255,.13), transparent 30%),
                linear-gradient(180deg, #0a0d13 0%, #07090d 100%) !important;
            color: #f5f7fb;
            border-right: 1px solid rgba(255,255,255,.1);
            box-shadow: 28px 0 90px rgba(0,0,0,.48);
        }

        #myMenu.notfm-app-menu.is-open {
            width: min(84vw, 350px) !important;
            visibility: visible;
            pointer-events: auto;
        }

        #myMenu.notfm-app-menu .notfm-menu-lockup {
            position: relative;
            margin: 0 0 16px;
            padding: max(20px, env(safe-area-inset-top)) 20px 18px;
            border-bottom: 1px solid rgba(255,255,255,.085);
        }

        .notfm-menu-close {
            position: absolute;
            top: max(14px, env(safe-area-inset-top));
            right: 14px;
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(255,255,255,.11);
            border-radius: 50%;
            background: rgba(255,255,255,.045);
            color: white;
            cursor: pointer;
        }

        .notfm-menu-brandline {
            display: flex;
            align-items: center;
            gap: 11px;
            min-height: 37px;
            padding-right: 44px;
        }

        .notfm-menu-brandline img {
            display: block !important;
            width: auto;
            height: 34px;
            max-width: 190px;
            object-fit: contain;
        }

        .notfm-menu-signal {
            width: 30px;
            height: 30px;
            display: inline-flex;
            align-items: flex-end;
            justify-content: center;
            gap: 2px;
            padding: 6px;
            border: 1px solid rgba(54,214,255,.28);
            border-radius: 10px;
            background: rgba(54,214,255,.07);
        }

        .notfm-menu-signal i {
            width: 2px;
            border-radius: 999px;
            background: linear-gradient(180deg, #fff, var(--fd-accent));
            animation: fdHeatSignal .82s ease-in-out infinite alternate;
            animation-play-state: paused;
        }

        .notfm-menu-signal i:nth-child(1) { height: 7px; animation-delay: -.1s; }
        .notfm-menu-signal i:nth-child(2) { height: 16px; animation-delay: -.35s; }
        .notfm-menu-signal i:nth-child(3) { height: 10px; animation-delay: -.58s; }
        .notfm-menu-signal i:nth-child(4) { height: 14px; animation-delay: -.22s; }

        .notfm-menu-tagline {
            margin-top: 9px;
            color: rgba(255,255,255,.66);
            font-size: 9px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: .26em;
        }

        .notfm-menu-rule {
            height: 2px;
            margin-top: 17px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(255,255,255,.05);
        }

        .notfm-menu-rule span {
            display: block;
            width: 42%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--fd-accent), rgba(124,92,255,.8));
            box-shadow: 0 0 14px rgba(54,214,255,.5);
        }

        #myMenu.notfm-app-menu a {
            color: rgba(255,255,255,.82);
        }

        #myMenu.notfm-app-menu a:hover {
            color: white;
        }

        /* The original menu.php header is removed by JS; these rules are a safe fallback. */
        #myMenu.notfm-app-menu .fd-menu-close,
        #myMenu.notfm-app-menu .fd-menu-brand,
        #myMenu.notfm-app-menu .menu-logo,
        #myMenu.notfm-app-menu .menu-brand,
        #myMenu.notfm-app-menu .brand-name {
            display: none !important;
        }

        #myMenu.notfm-app-menu nav {
            display: grid;
            gap: 9px;
        }

        #myMenu.notfm-app-menu nav a,
        #myMenu.notfm-app-menu .menu-link,
        #myMenu.notfm-app-menu li > a {
            min-height: 56px;
            padding: 0 17px;
            border-radius: 16px;
            font-size: 17px !important;
            line-height: 1.25;
            font-weight: 650 !important;
            letter-spacing: -.01em;
        }

        #myMenu.notfm-app-menu nav a i,
        #myMenu.notfm-app-menu .menu-link i,
        #myMenu.notfm-app-menu li > a i {
            width: 25px;
            min-width: 25px;
            font-size: 18px;
            text-align: center;
            color: var(--fd-accent);
        }

        @media (max-width: 760px) {
            #myMenu.notfm-app-menu {
                max-width: 350px;
            }

            #myMenu.notfm-app-menu nav a,
            #myMenu.notfm-app-menu .menu-link,
            #myMenu.notfm-app-menu li > a {
                min-height: 58px;
                padding: 0 18px;
                font-size: 18px !important;
            }
        }

        body.fd-audio-active .notfm-menu-signal i {
            animation-play-state: running;
        }

        @keyframes fdHeatSignal {
            from { transform: scaleY(.42); opacity: .56; }
            to { transform: scaleY(1); opacity: 1; }
        }

        .fd-bottom-nav {
            display: none;
        }

        @media (max-width: 760px) {
            .fd-bottom-nav {
                position: fixed;
                z-index: 9999;
                left: 0;
                right: 0;
                bottom: 0;
                height: calc(var(--fd-bottom-nav-height) + env(safe-area-inset-bottom));
                display: grid;
                grid-template-columns: repeat(5, minmax(0, 1fr));
                align-items: start;
                padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
                border-top: 1px solid rgba(255,255,255,.1);
                background: rgba(8,10,14,.97);
                box-shadow: 0 -12px 34px rgba(0,0,0,.34);
                backdrop-filter: blur(22px);
                -webkit-backdrop-filter: blur(22px);
            }

            .fd-bottom-nav-item {
                min-width: 0;
                height: 54px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 5px;
                padding: 0;
                border: 0;
                border-radius: 13px;
                background: transparent;
                color: rgba(255,255,255,.51);
                text-decoration: none;
                cursor: pointer;
                -webkit-tap-highlight-color: transparent;
            }

            .fd-bottom-nav-item i {
                font-size: 18px;
                line-height: 1;
            }

            .fd-bottom-nav-item span {
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                color: inherit;
                font-size: 9.5px;
                line-height: 1;
                font-weight: 700;
                letter-spacing: .015em;
                white-space: nowrap;
            }

            .fd-bottom-nav-item.is-active,
            .fd-bottom-nav-item:active,
            .fd-bottom-nav-item:focus-visible {
                color: var(--fd-accent);
                background: rgba(54,214,255,.08);
                outline: none;
            }
        }

        /* Canonical topbar logo size — matches index.php's home-page wordmark exactly on every page. */
        .fd-topbar-logo {
            display: block;
            width: auto;
            min-width: 0;
            max-width: 100%;
            height: 32px;
            object-fit: contain;
        }
        @media (max-width: 760px) {
            .fd-topbar-logo { height: 26px; }
        }
        @media (max-width: 390px) {
            .fd-topbar-logo { height: 24px; }
        }

        /* Generic row wrapper for logo + equalizer signal, used by every page's topbar brand. */
        .fd-brand-line {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            max-width: 100%;
        }

        /* Shared "now playing" equalizer signal next to the topbar logo — same on every page. */
        .fd-heat-signal {
            width: 27px;
            height: 27px;
            display: inline-flex !important;
            align-items: flex-end;
            justify-content: center;
            gap: 2px;
            margin: 0 !important;
            padding: 6px 5px;
            border: 1px solid rgba(54,214,255,.26);
            border-radius: 9px;
            background:
                radial-gradient(circle at 50% 20%, rgba(54,214,255,.22), transparent 58%),
                rgba(54,214,255,.055);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 20px rgba(54,214,255,.07);
            flex: none;
        }

        .fd-heat-signal .fd-signal-bar {
            display: block;
            width: 2px;
            min-width: 2px;
            margin: 0;
            border-radius: 999px;
            background: linear-gradient(180deg, #fff, var(--fd-accent));
            transform-origin: bottom;
            animation: fdHeatSignal .82s ease-in-out infinite alternate;
            animation-play-state: paused;
        }

        .fd-heat-signal .fd-signal-bar:nth-child(1) { height: 6px; animation-delay: -.14s; }
        .fd-heat-signal .fd-signal-bar:nth-child(2) { height: 13px; animation-delay: -.38s; }
        .fd-heat-signal .fd-signal-bar:nth-child(3) { height: 9px; animation-delay: -.62s; }
        .fd-heat-signal .fd-signal-bar:nth-child(4) { height: 15px; animation-delay: -.25s; }

        body.fd-audio-active .fd-heat-signal .fd-signal-bar {
            animation-play-state: running;
        }

        @keyframes fdHeatSignal {
            from { transform: scaleY(.42); opacity: .56; }
            to { transform: scaleY(1); opacity: 1; }
        }

        @media (max-width: 760px) {
            .fd-heat-signal { width: 23px; height: 23px; padding: 5px 4px; }
        }
