/* ==========================================================
           Homepage album player modal
           Inline so the main theme CSS stays untouched.
           ========================================================== */
        .gr-home-listen-btn {
            border: 0;
            font: inherit;
        }

        .gr-album-player-modal,
        .gr-album-player-modal * {
            box-sizing: border-box;
        }

        .gr-album-player-modal {
            position: fixed;
            inset: 0;
            z-index: 5200;
            display: none;
            align-items: center;
            justify-content: center;
            padding: clamp(10px, 2vw, 22px);
            color: var(--home-text-color);
            background:
                radial-gradient(circle at 16% 18%, rgba(var(--home-ember-rgb), .24), transparent 34vw),
                radial-gradient(circle at 82% 4%, rgba(var(--home-tx-about-rgb), .17), transparent 36vw),
                rgba(0, 0, 0, .82);
            backdrop-filter: blur(14px) saturate(125%);
        }

        .gr-album-player-modal.is-open {
            display: flex;
        }

        body.gr-album-player-open {
            overflow: hidden;
        }

        .gr-ap-card {
            position: relative;
            width: min(1180px, 100%);
            max-height: min(90vh, 920px);
            display: grid;
            grid-template-rows: auto minmax(0, 1fr) auto;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,.13);
            border-radius: 30px;
            background:
                linear-gradient(145deg, rgba(18, 15, 22, .96), rgba(25, 18, 26, .92)),
                var(--home-card-solid);
            box-shadow: 0 36px 110px rgba(0,0,0,.58);
        }

        .gr-ap-card:before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(120deg, rgba(var(--home-ember-rgb), .13), transparent 40%),
                radial-gradient(circle at 90% 12%, rgba(var(--home-tx-about-rgb), .12), transparent 34%);
        }

        .gr-ap-card > * {
            position: relative;
        }

        .gr-ap-head,
        .gr-ap-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 15px 17px;
            border-bottom: 1px solid rgba(255,255,255,.11);
            background: rgba(15, 13, 19, .72);
        }

        .gr-ap-foot {
            border-top: 1px solid rgba(255,255,255,.11);
            border-bottom: 0;
            flex-wrap: wrap;
        }

        .gr-ap-title {
            margin: 0;
            color: #fff;
            font-size: clamp(1.25rem, 2.4vw, 1.75rem);
            line-height: 1.08;
            font-weight: 950;
            letter-spacing: -.04em;
        }

        .gr-ap-subtitle,
        .gr-ap-foot-note {
            display: block;
            margin-top: 4px;
            color: rgba(255,255,255,.52);
            font-size: .78rem;
            font-weight: 850;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .gr-ap-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .gr-ap-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 39px;
            border: 1px solid rgba(255,255,255,.15);
            border-radius: 999px;
            padding: 8px 14px;
            color: rgba(255,255,255,.92);
            background: rgba(255,255,255,.06);
            cursor: pointer;
            text-decoration: none;
            font-weight: 900;
            transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
        }

        .gr-ap-btn:hover:not(:disabled),
        .gr-ap-btn:focus-visible {
            transform: translateY(-1px);
            border-color: rgba(var(--home-tx-about-rgb), .45);
            background: rgba(var(--home-tx-about-rgb), .12);
            outline: none;
        }

        .gr-ap-btn:disabled {
            cursor: not-allowed;
            opacity: .42;
        }

        .gr-ap-btn-primary {
            color: #071016;
            border-color: transparent;
            background: linear-gradient(135deg, var(--home-neon-light), #72e7ff 58%, var(--home-ember));
            box-shadow: 0 14px 34px rgba(var(--home-tx-about-rgb), .22);
        }

        .gr-ap-body {
            display: grid;
            grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
            gap: 14px;
            min-height: 0;
            overflow: auto;
            padding: 16px;
        }

        .gr-ap-deck,
        .gr-ap-queue {
            min-height: 0;
            border: 1px solid rgba(255,255,255,.11);
            border-radius: 24px;
            background: rgba(255,255,255,.045);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
        }

        .gr-ap-deck {
            display: grid;
            align-content: start;
            gap: 16px;
            padding: 16px;
        }

        .gr-ap-cover-wrap {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1 / 1;
            border: 1px solid rgba(255,255,255,.15);
            border-radius: 24px;
            background: #111;
            box-shadow: 0 22px 62px rgba(0,0,0,.38);
        }

        .gr-ap-cover-wrap:after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.78));
            pointer-events: none;
        }

        .gr-ap-cover-wrap img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center top;
        }

        .gr-ap-cover-badge {
            position: absolute;
            left: 13px;
            bottom: 13px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            max-width: calc(100% - 26px);
            min-height: 31px;
            padding: 7px 11px;
            border: 1px solid rgba(255,255,255,.18);
            border-radius: 999px;
            color: #fff;
            background: rgba(0,0,0,.56);
            backdrop-filter: blur(12px);
            font-size: .78rem;
            font-weight: 900;
        }

        .gr-ap-now small {
            display: block;
            color: var(--home-neon-light);
            font-size: .76rem;
            font-weight: 950;
            letter-spacing: .11em;
            text-transform: uppercase;
        }

        .gr-ap-now strong {
            display: block;
            margin-top: 6px;
            color: #fff;
            font-size: clamp(1.35rem, 3vw, 2.25rem);
            line-height: 1;
            letter-spacing: -.055em;
        }

        .gr-ap-now span {
            display: block;
            margin-top: 8px;
            color: rgba(255,255,255,.6);
            line-height: 1.45;
        }

        .gr-ap-progress {
            display: grid;
            gap: 8px;
        }

        .gr-ap-progress input[type="range"],
        .gr-ap-volume input[type="range"] {
            width: 100%;
            accent-color: var(--home-neon-light);
        }

        .gr-ap-time {
            display: flex;
            justify-content: space-between;
            color: rgba(255,255,255,.56);
            font-size: .82rem;
            font-weight: 850;
            font-variant-numeric: tabular-nums;
        }

        .gr-ap-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            flex-wrap: wrap;
        }

        .gr-ap-control {
            width: 44px;
            height: 44px;
            display: inline-grid;
            place-items: center;
            border: 1px solid rgba(255,255,255,.15);
            border-radius: 999px;
            color: #fff;
            background: rgba(255,255,255,.07);
            cursor: pointer;
            transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
        }

        .gr-ap-control:hover:not(:disabled) {
            transform: translateY(-2px) scale(1.04);
            border-color: rgba(var(--home-tx-about-rgb), .45);
            background: rgba(var(--home-tx-about-rgb), .12);
        }

        .gr-ap-control:disabled {
            opacity: .35;
            cursor: not-allowed;
        }

        .gr-ap-play {
            width: 58px;
            height: 58px;
            color: #071016;
            border: 0;
            background: linear-gradient(135deg, var(--home-neon-light), #7ceaff 58%, var(--home-ember));
            box-shadow: 0 16px 35px rgba(var(--home-tx-about-rgb), .25);
            font-size: 1.45rem;
        }

        .gr-ap-control.is-on {
            color: #071016;
            border-color: transparent;
            background: linear-gradient(135deg, var(--home-neon-light), #78eaff);
        }

        .gr-ap-volume {
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255,255,255,.72);
        }

        .gr-ap-queue {
            display: grid;
            grid-template-rows: auto minmax(0,1fr);
            overflow: hidden;
        }

        .gr-ap-queue-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 15px;
            border-bottom: 1px solid rgba(255,255,255,.11);
            background: rgba(255,255,255,.035);
        }

        .gr-ap-queue-head strong {
            color: #fff;
            font-size: .88rem;
            font-weight: 950;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .gr-ap-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 28px;
            padding: 5px 10px;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 999px;
            color: rgba(255,255,255,.66);
            background: rgba(255,255,255,.05);
            font-size: .76rem;
            font-weight: 850;
        }

        .gr-ap-list {
            display: grid;
            gap: 8px;
            align-content: start;
            min-height: 0;
            overflow: auto;
            padding: 12px;
            scrollbar-width: thin;
            scrollbar-color: var(--home-neon-light) rgba(255,255,255,.08);
        }

        .gr-ap-track {
            display: grid;
            grid-template-columns: 42px minmax(0,1fr) auto;
            gap: 11px;
            align-items: center;
            width: 100%;
            min-height: 66px;
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 18px;
            padding: 10px;
            color: inherit;
            background: rgba(255,255,255,.045);
            text-align: left;
            cursor: pointer;
            transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
        }

        .gr-ap-track:hover {
            transform: translateY(-1px);
            border-color: rgba(var(--home-tx-about-rgb), .28);
            background: rgba(var(--home-tx-about-rgb), .08);
        }

        .gr-ap-track.is-active {
            border-color: rgba(var(--home-tx-about-rgb), .48);
            background: linear-gradient(135deg, rgba(var(--home-tx-about-rgb), .15), rgba(var(--home-ember-rgb), .08));
        }

        .gr-ap-track.is-disabled {
            cursor: not-allowed;
            opacity: .56;
        }

        .gr-ap-track-num {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            color: rgba(255,255,255,.58);
            background: rgba(255,255,255,.075);
            font-size: .78rem;
            font-weight: 950;
        }

        .gr-ap-track.is-active .gr-ap-track-num {
            color: #071016;
            background: var(--home-neon-light);
        }

        .gr-ap-track-main {
            min-width: 0;
        }

        .gr-ap-track-main strong {
            display: block;
            overflow: hidden;
            color: #fff;
            font-size: .93rem;
            line-height: 1.18;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .gr-ap-track-main span {
            display: block;
            margin-top: 4px;
            overflow: hidden;
            color: rgba(255,255,255,.52);
            font-size: .78rem;
            line-height: 1.25;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .gr-ap-track-actions {
            display: inline-flex;
            gap: 6px;
            align-items: center;
        }

        .gr-ap-mini-btn {
            width: 35px;
            height: 35px;
            display: inline-grid;
            place-items: center;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 13px;
            color: rgba(255,255,255,.82);
            background: rgba(255,255,255,.06);
            transition: transform .16s ease, border-color .16s ease, background .16s ease;
        }

        .gr-ap-mini-btn:hover:not(.is-muted) {
            transform: translateY(-1px);
            border-color: rgba(var(--home-tx-about-rgb), .42);
            background: rgba(var(--home-tx-about-rgb), .12);
        }

        .gr-ap-empty {
            margin: 0;
            color: rgba(255,255,255,.58);
            line-height: 1.5;
        }

        .gr-ap-loader {
            display: grid;
            place-items: center;
            min-height: 220px;
            color: rgba(255,255,255,.64);
            font-weight: 850;
        }

        .gr-ap-loader i {
            margin-right: 8px;
            animation: grApSpin .8s linear infinite;
        }

        @keyframes grApSpin { to { transform: rotate(360deg); } }

        @media (max-width: 860px) {
            .gr-ap-body {
                grid-template-columns: 1fr;
            }
            .gr-ap-cover-wrap {
                max-width: 250px;
                justify-self: center;
                border-radius: 20px;
            }
            .gr-ap-now {
                text-align: center;
            }
            .gr-ap-card {
                max-height: calc(100vh - 20px);
                border-radius: 22px;
            }
            .gr-ap-head,
            .gr-ap-foot,
            .gr-ap-body {
                padding: 12px;
            }
        }

        @media (max-width: 560px) {
            .gr-album-player-modal {
                padding: 8px;
                align-items: stretch;
            }
            .gr-ap-track {
                grid-template-columns: 36px minmax(0,1fr) auto;
                gap: 8px;
            }
            .gr-ap-track-num {
                width: 36px;
                height: 36px;
            }
            .gr-ap-mini-btn {
                width: 32px;
                height: 32px;
            }
            .gr-ap-actions {
                width: 100%;
            }
            .gr-ap-actions .gr-ap-btn {
                flex: 1 1 auto;
            }
        }


        /* ==========================================================
           Homepage album player patch: mobile layout, lyrics layering,
           disabled dossier buttons and floating top button conflict.
           ========================================================== */
        #lyricsModal.show,
        #lyricsModal.gr-lyrics-over-player.show {
            z-index: 7600 !important;
        }

        body.gr-album-player-open .scroll-to-top,
        body.gr-album-player-open .scroll-top,
        body.gr-album-player-open .scroll-top-btn,
        body.gr-album-player-open .back-to-top,
        body.gr-album-player-open .to-top,
        body.gr-album-player-open .go-top,
        body.gr-album-player-open #scrollTopBtn,
        body.gr-album-player-open #toTopBtn,
        body.gr-album-player-open [data-scroll-top] {
            opacity: 0 !important;
            pointer-events: none !important;
            visibility: hidden !important;
        }

        .gr-ap-mini-btn.is-muted,
        .gr-ap-mini-btn:disabled {
            opacity: .34;
            cursor: not-allowed;
            color: rgba(255,255,255,.36);
            border-color: rgba(255,255,255,.08);
            background: rgba(255,255,255,.035);
            filter: grayscale(1);
        }

        .gr-ap-mini-btn.is-muted:hover,
        .gr-ap-mini-btn:disabled:hover {
            transform: none;
            border-color: rgba(255,255,255,.08);
            background: rgba(255,255,255,.035);
        }

        .gr-ap-track-actions button.gr-ap-mini-btn {
            padding: 0;
            font: inherit;
        }

        @media (max-width: 860px) {
            .gr-ap-card {
                width: min(100%, 760px);
                max-height: calc(100dvh - 16px);
            }

            .gr-ap-body {
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .gr-ap-deck {
                align-content: start;
            }

            .gr-ap-cover-wrap {
                width: min(250px, 72vw);
                max-width: min(250px, 72vw);
                justify-self: center;
            }
        }

        @media (max-width: 560px) {
            .gr-album-player-modal {
                padding: 6px;
                align-items: stretch;
                justify-content: stretch;
            }

            .gr-ap-card {
                width: 100%;
                height: calc(100dvh - 12px);
                max-height: calc(100dvh - 12px);
                border-radius: 22px;
            }

            .gr-ap-head {
                align-items: flex-start;
                padding: 13px 14px;
            }

            .gr-ap-title {
                font-size: clamp(1.18rem, 7vw, 1.72rem);
                line-height: 1.02;
            }

            .gr-ap-subtitle {
                max-width: calc(100vw - 112px);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .gr-ap-body {
                display: block;
                padding: 10px;
                overflow-y: auto;
            }

            .gr-ap-deck,
            .gr-ap-queue {
                border-radius: 22px;
            }

            .gr-ap-deck {
                gap: 11px;
                padding: 12px;
                margin-bottom: 12px;
            }

            .gr-ap-cover-wrap {
                width: min(225px, 68vw);
                max-width: min(225px, 68vw);
                border-radius: 20px;
            }

            .gr-ap-now {
                text-align: center;
            }

            .gr-ap-now strong {
                font-size: clamp(1.34rem, 7.2vw, 1.85rem);
            }

            .gr-ap-now span {
                font-size: .94rem;
                line-height: 1.35;
            }

            .gr-ap-controls {
                gap: 8px;
            }

            .gr-ap-control {
                width: 43px;
                height: 43px;
            }

            .gr-ap-play {
                width: 58px;
                height: 58px;
            }

            .gr-ap-volume input[type="range"] {
                min-width: 0;
            }

            .gr-ap-queue {
                max-height: 42vh;
                min-height: 220px;
            }

            .gr-ap-queue-head {
                padding: 12px;
            }

            .gr-ap-list {
                padding: 10px;
            }

            .gr-ap-track {
                min-height: 64px;
                border-radius: 17px;
            }

            .gr-ap-foot {
                padding: 11px 12px;
            }

            .gr-ap-foot-note {
                width: 100%;
                margin: 0 0 5px;
                font-size: .7rem;
            }

            .gr-ap-actions {
                display: grid;
                grid-template-columns: 1fr 1fr;
                width: 100%;
            }

            .gr-ap-actions .gr-ap-btn {
                width: 100%;
                min-height: 44px;
            }
        }



        /* ==========================================================
           HOTFIX v2 — real mobile album player, correct pause/resume,
           disabled lyrics buttons and lyrics modal above the player.
           ========================================================== */
        #lyricsModal.show,
        #lyricsModal.gr-lyrics-over-player.show,
        body.gr-album-player-open #lyricsModal.show {
            position: fixed !important;
            inset: 0 !important;
            z-index: 99999 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: rgba(0,0,0,.82) !important;
            backdrop-filter: blur(12px) saturate(120%) !important;
        }

        #lyricsModal.gr-lyrics-over-player .modal-dialog,
        body.gr-album-player-open #lyricsModal.show .modal-dialog {
            position: relative !important;
            z-index: 100000 !important;
            width: min(1120px, calc(100vw - 18px)) !important;
            max-height: min(88dvh, 980px) !important;
        }

        body.gr-album-player-open .scroll-to-top,
        body.gr-album-player-open .scroll-top,
        body.gr-album-player-open .scroll-top-btn,
        body.gr-album-player-open .back-to-top,
        body.gr-album-player-open .back-to-top-button,
        body.gr-album-player-open .to-top,
        body.gr-album-player-open .go-top,
        body.gr-album-player-open .btn-top,
        body.gr-album-player-open .top-button,
        body.gr-album-player-open .up-button,
        body.gr-album-player-open .floating-top-button,
        body.gr-album-player-open .fixed-action-btn,
        body.gr-album-player-open #scrollTopBtn,
        body.gr-album-player-open #toTopBtn,
        body.gr-album-player-open [data-scroll-top],
        body.gr-album-player-open [href="#top"],
        body.gr-album-player-open [aria-label="Top"],
        body.gr-album-player-open [aria-label="Back to top"],
        body.gr-album-player-open [title="Top"],
        body.gr-album-player-open [title="Back to top"] {
            opacity: 0 !important;
            pointer-events: none !important;
            visibility: hidden !important;
        }

        .gr-ap-btn.is-muted,
        .gr-ap-btn:disabled,
        .gr-ap-mini-btn.is-muted,
        .gr-ap-mini-btn:disabled {
            opacity: .32 !important;
            cursor: not-allowed !important;
            color: rgba(255,255,255,.34) !important;
            border-color: rgba(255,255,255,.08) !important;
            background: rgba(255,255,255,.035) !important;
            box-shadow: none !important;
            filter: grayscale(1) !important;
            transform: none !important;
        }

        .gr-ap-btn.is-muted:hover,
        .gr-ap-btn:disabled:hover,
        .gr-ap-mini-btn.is-muted:hover,
        .gr-ap-mini-btn:disabled:hover {
            transform: none !important;
            color: rgba(255,255,255,.34) !important;
            border-color: rgba(255,255,255,.08) !important;
            background: rgba(255,255,255,.035) !important;
        }

        .gr-ap-track-actions button.gr-ap-mini-btn {
            padding: 0;
            font: inherit;
            flex: 0 0 auto;
        }

        @media (max-width: 560px) {
            .gr-album-player-modal {
                padding: 0 !important;
                align-items: stretch !important;
                justify-content: stretch !important;
            }

            .gr-ap-card {
                width: 100vw !important;
                height: 100dvh !important;
                max-height: 100dvh !important;
                border-radius: 0 !important;
                border-left: 0 !important;
                border-right: 0 !important;
                display: grid !important;
                grid-template-rows: auto minmax(0, 1fr) auto !important;
            }

            .gr-ap-head {
                min-height: 74px !important;
                padding: 12px 14px !important;
                align-items: flex-start !important;
                flex-wrap: nowrap !important;
            }

            .gr-ap-head > div:first-child {
                min-width: 0 !important;
            }

            .gr-ap-title {
                max-width: calc(100vw - 90px) !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                font-size: clamp(1.2rem, 6.2vw, 1.55rem) !important;
                line-height: 1.08 !important;
            }

            .gr-ap-subtitle {
                max-width: calc(100vw - 90px) !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                font-size: .72rem !important;
            }

            .gr-ap-head .gr-ap-btn {
                width: 48px !important;
                height: 48px !important;
                min-height: 48px !important;
                flex: 0 0 48px !important;
                padding: 0 !important;
                font-size: 1.1rem !important;
            }

            .gr-ap-body {
                display: flex !important;
                flex-direction: column !important;
                gap: 10px !important;
                min-height: 0 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                padding: 10px !important;
            }

            .gr-ap-deck {
                flex: 0 0 auto !important;
                display: grid !important;
                gap: 9px !important;
                padding: 10px !important;
                border-radius: 20px !important;
            }

            .gr-ap-cover-wrap {
                width: min(188px, 52vw) !important;
                max-width: min(188px, 52vw) !important;
                justify-self: center !important;
                border-radius: 18px !important;
            }

            .gr-ap-cover-badge {
                left: 8px !important;
                bottom: 8px !important;
                min-height: 27px !important;
                max-width: calc(100% - 16px) !important;
                padding: 5px 8px !important;
                font-size: .68rem !important;
            }

            .gr-ap-now {
                text-align: center !important;
                gap: 2px !important;
            }

            .gr-ap-now small {
                font-size: .68rem !important;
            }

            .gr-ap-now strong {
                font-size: clamp(1.18rem, 6.2vw, 1.55rem) !important;
                line-height: 1.1 !important;
            }

            .gr-ap-now span {
                font-size: .82rem !important;
                line-height: 1.28 !important;
            }

            .gr-ap-progress {
                gap: 4px !important;
            }

            .gr-ap-time {
                font-size: .76rem !important;
            }

            .gr-ap-controls {
                gap: 7px !important;
            }

            .gr-ap-control {
                width: 40px !important;
                height: 40px !important;
            }

            .gr-ap-play {
                width: 52px !important;
                height: 52px !important;
            }

            .gr-ap-volume {
                min-height: 36px !important;
                padding: 6px 10px !important;
            }

            .gr-ap-queue {
                flex: 1 1 auto !important;
                min-height: 190px !important;
                max-height: none !important;
                display: grid !important;
                grid-template-rows: auto minmax(0, 1fr) !important;
                border-radius: 20px !important;
            }

            .gr-ap-queue-head {
                padding: 10px !important;
            }

            .gr-ap-queue-head strong {
                font-size: .8rem !important;
            }

            .gr-ap-list {
                min-height: 0 !important;
                max-height: none !important;
                overflow-y: auto !important;
                padding: 8px !important;
                gap: 7px !important;
            }

            .gr-ap-track {
                min-height: 58px !important;
                grid-template-columns: 36px minmax(0,1fr) auto !important;
                gap: 8px !important;
                padding: 8px !important;
                border-radius: 16px !important;
            }

            .gr-ap-track-num {
                width: 36px !important;
                height: 36px !important;
                border-radius: 13px !important;
            }

            .gr-ap-track-main strong {
                font-size: .94rem !important;
            }

            .gr-ap-track-main span {
                font-size: .76rem !important;
            }

            .gr-ap-track-actions {
                gap: 5px !important;
            }

            .gr-ap-mini-btn {
                width: 34px !important;
                height: 34px !important;
                border-radius: 13px !important;
            }

            .gr-ap-foot {
                padding: 9px 10px max(9px, env(safe-area-inset-bottom)) !important;
            }

            .gr-ap-foot-note {
                width: 100% !important;
                margin: 0 0 5px !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                font-size: .68rem !important;
            }

            .gr-ap-actions {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
                width: 100% !important;
            }

            .gr-ap-actions .gr-ap-btn {
                width: 100% !important;
                min-height: 42px !important;
                padding: 8px 10px !important;
            }

            #lyricsModal.gr-lyrics-over-player .modal-dialog,
            body.gr-album-player-open #lyricsModal.show .modal-dialog {
                width: calc(100vw - 12px) !important;
                max-height: calc(100dvh - 12px) !important;
                border-radius: 18px !important;
            }

            #lyricsModal.gr-lyrics-over-player .lyrics-text-container,
            body.gr-album-player-open #lyricsModal.show .lyrics-text-container {
                grid-template-columns: 1fr !important;
            }
        }


        /* Light theme adaptation for the homepage album player. */
        html[data-theme="light"] .gr-album-player-modal {
            color: rgba(28, 18, 24, .94);
            background:
                radial-gradient(circle at 14% 18%, rgba(190, 49, 78, .18), transparent 34vw),
                radial-gradient(circle at 82% 4%, rgba(12, 120, 154, .14), transparent 36vw),
                rgba(247, 242, 244, .82);
            backdrop-filter: blur(16px) saturate(125%);
        }

        html[data-theme="light"] .gr-ap-card {
            border-color: rgba(85, 35, 52, .16);
            background:
                linear-gradient(145deg, rgba(255, 249, 252, .98), rgba(246, 236, 241, .94)),
                #fff8fb;
            box-shadow: 0 34px 95px rgba(75, 31, 48, .22);
        }

        html[data-theme="light"] .gr-ap-card:before {
            background:
                linear-gradient(120deg, rgba(190, 49, 78, .09), transparent 42%),
                radial-gradient(circle at 90% 12%, rgba(12, 120, 154, .10), transparent 34%);
        }

        html[data-theme="light"] .gr-ap-head,
        html[data-theme="light"] .gr-ap-foot {
            border-color: rgba(85, 35, 52, .14);
            background: rgba(255, 248, 251, .78);
        }

        html[data-theme="light"] .gr-ap-title,
        html[data-theme="light"] .gr-ap-queue-head strong,
        html[data-theme="light"] .gr-ap-track-main strong,
        html[data-theme="light"] .gr-ap-now strong {
            color: rgba(28, 18, 24, .96);
        }

        html[data-theme="light"] .gr-ap-subtitle,
        html[data-theme="light"] .gr-ap-foot-note,
        html[data-theme="light"] .gr-ap-now span,
        html[data-theme="light"] .gr-ap-time,
        html[data-theme="light"] .gr-ap-track-main span,
        html[data-theme="light"] .gr-ap-pill,
        html[data-theme="light"] .gr-ap-empty,
        html[data-theme="light"] .gr-ap-loader {
            color: rgba(28, 18, 24, .58);
        }

        html[data-theme="light"] .gr-ap-now small,
        html[data-theme="light"] .gr-ap-volume i {
            color: #0c789a;
        }

        html[data-theme="light"] .gr-ap-deck,
        html[data-theme="light"] .gr-ap-queue {
            border-color: rgba(85, 35, 52, .14);
            background: rgba(255, 255, 255, .48);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
        }

        html[data-theme="light"] .gr-ap-queue-head {
            border-color: rgba(85, 35, 52, .14);
            background: rgba(245, 235, 240, .64);
        }

        html[data-theme="light"] .gr-ap-btn,
        html[data-theme="light"] .gr-ap-control,
        html[data-theme="light"] .gr-ap-mini-btn,
        html[data-theme="light"] .gr-ap-pill {
            border-color: rgba(85, 35, 52, .16);
            color: rgba(28, 18, 24, .78);
            background: rgba(255, 255, 255, .58);
        }

        html[data-theme="light"] .gr-ap-btn:hover:not(:disabled),
        html[data-theme="light"] .gr-ap-btn:focus-visible,
        html[data-theme="light"] .gr-ap-control:hover:not(:disabled),
        html[data-theme="light"] .gr-ap-mini-btn:hover:not(.is-muted):not(:disabled) {
            border-color: rgba(190, 49, 78, .34);
            background: rgba(190, 49, 78, .08);
            color: rgba(28, 18, 24, .94);
        }

        html[data-theme="light"] .gr-ap-btn-primary,
        html[data-theme="light"] .gr-ap-play,
        html[data-theme="light"] .gr-ap-control.is-on {
            color: #071016;
            border-color: transparent;
            background: linear-gradient(135deg, #67d9ff, #98ecff 58%, #e24463);
            box-shadow: 0 14px 34px rgba(12, 120, 154, .18);
        }

        html[data-theme="light"] .gr-ap-track {
            border-color: rgba(85, 35, 52, .13);
            background: rgba(255, 255, 255, .52);
            color: rgba(28, 18, 24, .92);
        }

        html[data-theme="light"] .gr-ap-track:hover {
            border-color: rgba(190, 49, 78, .28);
            background: rgba(190, 49, 78, .07);
        }

        html[data-theme="light"] .gr-ap-track.is-active {
            border-color: rgba(12, 120, 154, .44);
            background: linear-gradient(135deg, rgba(103, 217, 255, .22), rgba(190, 49, 78, .08));
        }

        html[data-theme="light"] .gr-ap-track-num {
            color: rgba(28, 18, 24, .58);
            background: rgba(85, 35, 52, .08);
        }

        html[data-theme="light"] .gr-ap-track.is-active .gr-ap-track-num {
            color: #071016;
            background: #67d9ff;
        }

        html[data-theme="light"] .gr-ap-list {
            scrollbar-color: #0c789a rgba(85, 35, 52, .08);
        }

        html[data-theme="light"] .gr-ap-progress input[type="range"],
        html[data-theme="light"] .gr-ap-volume input[type="range"] {
            accent-color: #0c789a;
        }

        html[data-theme="light"] .gr-ap-cover-wrap {
            border-color: rgba(85, 35, 52, .18);
            background: #f5ebef;
            box-shadow: 0 22px 54px rgba(75, 31, 48, .16);
        }

        html[data-theme="light"] .gr-ap-mini-btn.is-muted,
        html[data-theme="light"] .gr-ap-mini-btn:disabled,
        html[data-theme="light"] .gr-ap-btn.is-muted,
        html[data-theme="light"] .gr-ap-btn:disabled {
            color: rgba(28, 18, 24, .30) !important;
            background: rgba(85, 35, 52, .055) !important;
            border-color: rgba(85, 35, 52, .10) !important;
            opacity: 1;
        }



        /* ==========================================================
           Album player: stable play button + compact minimized mode.
           ========================================================== */
        .gr-ap-head-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
        }

        .gr-ap-play,
        .gr-ap-play:hover:not(:disabled),
        .gr-ap-play:focus-visible,
        .gr-ap-play:active {
            color: #071016 !important;
            border-color: transparent !important;
            background: linear-gradient(135deg, var(--home-neon-light), #7ceaff 58%, var(--home-ember)) !important;
            box-shadow: 0 16px 35px rgba(var(--home-tx-about-rgb), .25) !important;
        }

        .gr-ap-play:hover:not(:disabled),
        .gr-ap-play:focus-visible {
            transform: translateY(-2px) scale(1.04) !important;
        }

        .gr-ap-play:active {
            transform: translateY(0) scale(.97) !important;
        }

        html[data-theme="light"] .gr-ap-play,
        html[data-theme="light"] .gr-ap-play:hover:not(:disabled),
        html[data-theme="light"] .gr-ap-play:focus-visible,
        html[data-theme="light"] .gr-ap-play:active {
            color: #071016 !important;
            border-color: transparent !important;
            background: linear-gradient(135deg, #67d9ff, #98ecff 58%, #e24463) !important;
            box-shadow: 0 14px 34px rgba(12, 120, 154, .20) !important;
        }

        .gr-ap-mini-player {
            position: fixed;
            left: 50%;
            bottom: max(14px, env(safe-area-inset-bottom));
            z-index: 5190;
            width: min(720px, calc(100vw - 24px));
            min-height: 74px;
            display: none;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border: 1px solid rgba(255,255,255,.16);
            border-radius: 24px;
            color: rgba(255,255,255,.94);
            background:
                linear-gradient(135deg, rgba(18,15,22,.96), rgba(25,18,26,.92)),
                rgba(0,0,0,.72);
            box-shadow: 0 24px 80px rgba(0,0,0,.42);
            backdrop-filter: blur(18px) saturate(130%);
            transform: translateX(-50%) translateY(18px);
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s ease, transform .18s ease;
        }

        .gr-ap-mini-player.is-visible {
            display: grid;
            opacity: 1;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }

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

        .gr-ap-mini-main img {
            width: 54px;
            height: 54px;
            object-fit: cover;
            object-position: center top;
            border-radius: 16px;
            background: #141018;
            border: 1px solid rgba(255,255,255,.13);
        }

        .gr-ap-mini-copy {
            min-width: 0;
            display: block;
        }

        .gr-ap-mini-copy strong,
        .gr-ap-mini-copy span {
            display: block;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .gr-ap-mini-copy strong {
            color: rgba(255,255,255,.96);
            font-weight: 950;
            font-size: .98rem;
            line-height: 1.15;
        }

        .gr-ap-mini-copy span {
            margin-top: 4px;
            color: rgba(255,255,255,.58);
            font-size: .78rem;
            font-weight: 800;
        }

        .gr-ap-mini-controls {
            display: inline-flex;
            gap: 7px;
            align-items: center;
            flex: 0 0 auto;
        }

        .gr-ap-mini-action {
            width: 40px;
            height: 40px;
            display: inline-grid;
            place-items: center;
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 999px;
            color: rgba(255,255,255,.88);
            background: rgba(255,255,255,.07);
            cursor: pointer;
            transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
        }

        .gr-ap-mini-action:hover:not(:disabled),
        .gr-ap-mini-action:focus-visible {
            transform: translateY(-1px);
            border-color: rgba(var(--home-tx-about-rgb), .42);
            background: rgba(var(--home-tx-about-rgb), .12);
            outline: none;
        }

        .gr-ap-mini-play,
        .gr-ap-mini-play:hover:not(:disabled),
        .gr-ap-mini-play:focus-visible,
        .gr-ap-mini-play:active {
            color: #071016 !important;
            border-color: transparent !important;
            background: linear-gradient(135deg, var(--home-neon-light), #7ceaff 58%, var(--home-ember)) !important;
            box-shadow: 0 12px 28px rgba(var(--home-tx-about-rgb), .22) !important;
        }

        .gr-ap-mini-play:active {
            transform: scale(.96) !important;
        }

        html[data-theme="light"] .gr-ap-mini-player {
            color: rgba(28,18,24,.94);
            border-color: rgba(85,35,52,.16);
            background: linear-gradient(135deg, rgba(255,249,252,.96), rgba(246,236,241,.92));
            box-shadow: 0 22px 72px rgba(75,31,48,.20);
        }

        html[data-theme="light"] .gr-ap-mini-main img {
            border-color: rgba(85,35,52,.14);
            background: #f5ebef;
        }

        html[data-theme="light"] .gr-ap-mini-copy strong {
            color: rgba(28,18,24,.96);
        }

        html[data-theme="light"] .gr-ap-mini-copy span {
            color: rgba(28,18,24,.58);
        }

        html[data-theme="light"] .gr-ap-mini-action {
            border-color: rgba(85,35,52,.16);
            color: rgba(28,18,24,.78);
            background: rgba(255,255,255,.60);
        }

        html[data-theme="light"] .gr-ap-mini-action:hover:not(:disabled),
        html[data-theme="light"] .gr-ap-mini-action:focus-visible {
            border-color: rgba(190,49,78,.34);
            background: rgba(190,49,78,.08);
            color: rgba(28,18,24,.94);
        }

        html[data-theme="light"] .gr-ap-mini-play,
        html[data-theme="light"] .gr-ap-mini-play:hover:not(:disabled),
        html[data-theme="light"] .gr-ap-mini-play:focus-visible,
        html[data-theme="light"] .gr-ap-mini-play:active {
            color: #071016 !important;
            border-color: transparent !important;
            background: linear-gradient(135deg, #67d9ff, #98ecff 58%, #e24463) !important;
            box-shadow: 0 12px 28px rgba(12, 120, 154, .20) !important;
        }

        @media (max-width: 560px) {
            .gr-ap-head-actions {
                gap: 6px;
            }

            .gr-ap-head .gr-ap-head-actions .gr-ap-btn {
                width: 44px !important;
                height: 44px !important;
                min-height: 44px !important;
                flex: 0 0 44px !important;
            }

            .gr-ap-mini-player {
                width: calc(100vw - 16px);
                min-height: 68px;
                grid-template-columns: minmax(0, 1fr) auto;
                border-radius: 20px;
                padding: 8px;
            }

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

            .gr-ap-mini-main img {
                width: 48px;
                height: 48px;
                border-radius: 14px;
            }

            .gr-ap-mini-copy strong {
                font-size: .92rem;
            }

            .gr-ap-mini-copy span {
                font-size: .72rem;
            }

            .gr-ap-mini-controls {
                gap: 5px;
            }

            .gr-ap-mini-action {
                width: 36px;
                height: 36px;
            }
        }



        /* ==========================================================
           FINAL MOBILE FOOTER TWEAK — hide player footer on phones.
           Lyrics is available in the track row, Close/Minimize are available
           in the top-right header, so the tracklist gets maximum height.
           ========================================================== */
        @media (max-width: 560px) {
            .gr-ap-foot {
                display: none !important;
            }

            .gr-ap-card {
                grid-template-rows: auto minmax(0, 1fr) !important;
            }

            .gr-ap-body {
                min-height: 0 !important;
            }

            .gr-ap-queue,
            .gr-ap-list {
                min-height: 0 !important;
            }
        }

    

        /* ==========================================================
           FINAL MOBILE PLAYER FIX — home page
           Keeps the album player inside the phone viewport and lifts
           the back-to-top button above the compact player.
           ========================================================== */
        @media (max-width: 640px) {
            html,
            body {
                max-width: 100% !important;
                overflow-x: hidden !important;
            }

            .gr-album-player-modal.is-open {
                width: 100svw !important;
                height: 100svh !important;
                max-width: 100svw !important;
                max-height: 100svh !important;
                padding: 0 !important;
                overflow: hidden !important;
                align-items: stretch !important;
                justify-content: stretch !important;
            }

            @supports (height: 100dvh) {
                .gr-album-player-modal.is-open {
                    height: 100dvh !important;
                    max-height: 100dvh !important;
                }
            }

            .gr-album-player-modal.is-open .gr-ap-card {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                height: 100svh !important;
                max-height: 100svh !important;
                border-radius: 0 !important;
                border-left: 0 !important;
                border-right: 0 !important;
                overflow: hidden !important;
            }

            @supports (height: 100dvh) {
                .gr-album-player-modal.is-open .gr-ap-card {
                    height: 100dvh !important;
                    max-height: 100dvh !important;
                }
            }

            .gr-album-player-modal.is-open .gr-ap-head {
                min-width: 0 !important;
                padding-top: max(10px, env(safe-area-inset-top)) !important;
            }

            .gr-album-player-modal.is-open .gr-ap-body {
                min-width: 0 !important;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                overscroll-behavior: contain !important;
            }

            .gr-album-player-modal.is-open .gr-ap-deck,
            .gr-album-player-modal.is-open .gr-ap-queue,
            .gr-album-player-modal.is-open .gr-ap-list,
            .gr-album-player-modal.is-open .gr-ap-track,
            .gr-album-player-modal.is-open .gr-ap-track-main {
                min-width: 0 !important;
                max-width: 100% !important;
            }

            .gr-album-player-modal.is-open .gr-ap-cover-wrap {
                width: min(176px, 50vw) !important;
                max-width: min(176px, 50vw) !important;
            }

            .gr-album-player-modal.is-open .gr-ap-queue {
                flex: 1 1 auto !important;
                min-height: 210px !important;
            }

            .gr-album-player-modal.is-open .gr-ap-foot {
                display: none !important;
            }

            .gr-album-player-modal.is-open .gr-ap-track {
                grid-template-columns: 36px minmax(0, 1fr) auto !important;
                width: 100% !important;
            }

            .gr-album-player-modal.is-open .gr-ap-track-actions {
                flex: 0 0 auto !important;
                max-width: 78px !important;
                overflow: hidden !important;
            }

            .gr-ap-mini-player {
                bottom: max(10px, env(safe-area-inset-bottom)) !important;
                width: calc(100svw - 14px) !important;
                max-width: calc(100svw - 14px) !important;
                border-radius: 18px !important;
            }

            body.gr-album-player-compact #glrvBackToTopV3 {
                --glrv-backtop-bottom: 94px !important;
                right: 10px !important;
                z-index: 7100 !important;
            }
        }


        /* ==========================================================
           Homepage // Living Creative Map / ERA MATRIX
           ========================================================== */
        .gr-roadmap-matrix {
            --rm-cyan: var(--home-tx-about-rgb);
            --rm-ember: var(--home-ember-rgb);
            position: relative;
            isolation: isolate;
            display: block;
            width: 100%;
            margin-top: 24px;
            overflow: hidden;
            border: 1px solid var(--home-border);
            border-radius: 28px;
            padding: clamp(22px, 3vw, 34px);
            color: var(--home-text-color);
            background:
                radial-gradient(circle at 84% -15%, rgba(var(--rm-cyan), .12), transparent 34%),
                radial-gradient(circle at -5% 120%, rgba(var(--rm-ember), .10), transparent 32%),
                linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018) 48%, rgba(255,255,255,.028)),
                var(--home-card-bg);
            box-shadow: var(--home-shadow);
            backdrop-filter: var(--home-glass);
            -webkit-backdrop-filter: var(--home-glass);
            transition: border-color .22s ease, box-shadow .22s ease;
        }

        .gr-roadmap-matrix::before {
            content: "";
            position: absolute;
            z-index: -1;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(90deg, transparent, rgba(var(--rm-cyan),.08), transparent) 0 0 / 100% 1px no-repeat,
                linear-gradient(135deg, rgba(255,255,255,.035), transparent 38%);
        }

        .gr-roadmap-matrix::after {
            content: "100";
            position: absolute;
            z-index: 0;
            right: -.04em;
            top: -.03em;
            color: rgba(255,255,255,.028);
            font-size: clamp(8rem, 15vw, 14rem);
            line-height: .8;
            letter-spacing: -.11em;
            font-weight: 1000;
            pointer-events: none;
        }

        .gr-rm-head {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(0,1.25fr) auto;
            gap: 20px;
            align-items: start;
            margin-bottom: 16px;
        }

        .gr-rm-copy { min-width: 0; }
        .gr-rm-kicker-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }

        .gr-rm-kicker,
        .gr-rm-status {
            display:inline-flex;
            align-items:center;
            min-height: 28px;
            padding: 6px 11px;
            border-radius: 999px;
            font-size: .62rem;
            font-weight: 1000;
            line-height: 1;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .gr-rm-kicker {
            color: var(--home-neon-light);
            border: 1px solid rgba(var(--rm-cyan),.24);
            background: rgba(var(--rm-cyan),.065);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
        }

        .gr-rm-kicker::before {
            content: "";
            width: 11px;
            height: 2px;
            margin-right: 7px;
            border-radius: 999px;
            background: currentColor;
            box-shadow: 0 0 12px rgba(var(--rm-cyan),.62);
        }

        .gr-rm-status {
            color: var(--home-muted);
            border: 1px solid var(--home-border);
            background: rgba(255,255,255,.035);
        }

        .gr-rm-title {
            display: block;
            max-width: none;
            margin: 0;
            white-space: nowrap;
            font-size: clamp(2.65rem, 5.15vw, 4.9rem);
            line-height: .88;
            letter-spacing: -.07em;
            font-weight: 1000;
        }

        .gr-rm-lead {
            display: block;
            max-width: 720px;
            margin: 9px 0 0;
            color: var(--home-muted);
            font-size: clamp(.94rem, 1.35vw, 1.08rem);
            line-height: 1.55;
            font-weight: 650;
        }

        .gr-rm-summary {
            display:flex;
            align-items:center;
            justify-content:flex-end;
            gap:8px;
            padding-top:1px;
        }

        .gr-rm-summary > span {
            display: grid;
            place-items: center;
            min-width: 98px;
            min-height: 70px;
            padding: 10px 12px;
            border: 1px solid var(--home-border);
            border-radius: 18px;
            background: rgba(255,255,255,.035);
            text-align: center;
        }

        .gr-rm-summary strong {
            display:block;
            font-size:1.36rem;
            line-height:1;
            letter-spacing:-.045em;
            font-weight:1000;
        }

        .gr-rm-summary small {
            display:block;
            margin-top:5px;
            color:var(--home-muted);
            font-size:.56rem;
            line-height:1.2;
            font-weight:900;
            letter-spacing:.09em;
            text-transform:uppercase;
        }

        .gr-rm-grid {
            position:relative;
            z-index:1;
            display:grid;
            grid-template-columns:repeat(3,minmax(0,1fr));
            gap:10px;
        }

        .gr-rm-era {
            --era-rgb: var(--rm-cyan);
            position: relative;
            display: block;
            min-width: 0;
            color: var(--home-text-color);
            text-decoration: none;
            min-height: 138px;
            overflow: hidden;
            border: 1px solid rgba(var(--era-rgb), .20);
            border-radius: 20px;
            padding: 17px 18px 16px;
            background: linear-gradient(180deg, rgba(var(--era-rgb),.085), transparent 46%), rgba(255,255,255,.028);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
            transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
        }

        /* Same era accents as /archive/ navigation. */
        .gr-rm-era--core      { --era-rgb: 111,230,255; }
        .gr-rm-era--myth      { --era-rgb: 169,140,255; }
        .gr-rm-era--hardline  { --era-rgb: 255,93,105; }
        .gr-rm-era--close     { --era-rgb: 103,219,198; }
        .gr-rm-era--after     { --era-rgb: 105,186,255; }
        .gr-rm-era--synthetic { --era-rgb: 183,156,255; }

        .gr-rm-era::before {
            content: "";
            position: absolute;
            top: -1px;
            left: 16px;
            right: 16px;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(var(--era-rgb), .96), rgba(var(--era-rgb), .24), transparent);
            box-shadow: 0 0 18px rgba(var(--era-rgb), .20);
        }

        .gr-rm-era::after {
            content: "";
            position: absolute;
            left: 18px;
            top: 34px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: rgb(var(--era-rgb));
            box-shadow: 0 0 0 4px rgba(var(--era-rgb), .10), 0 0 16px rgba(var(--era-rgb), .32);
        }

        .gr-rm-range {
            position:relative;
            z-index:2;
            display:block;
            padding-left:16px;
            color:rgb(var(--era-rgb));
            font-size:.66rem;
            font-weight:950;
            letter-spacing:.055em;
        }

        .gr-rm-era-name {
            position:relative;
            z-index:2;
            display:block;
            max-width:82%;
            margin-top:25px;
            font-size:clamp(.94rem,1.35vw,1.18rem);
            line-height:.9;
            letter-spacing:-.04em;
            font-weight:1000;
        }

        .gr-rm-era-note {
            position:relative;
            z-index:2;
            display:block;
            margin-top:8px;
            color:rgba(247,242,238,.70);
            font-size:.59rem;
            font-weight:850;
            letter-spacing:.085em;
            text-transform:uppercase;
        }

        .gr-rm-ghost {
            position:absolute;
            right:-.06em;
            bottom:-.22em;
            color:rgba(var(--era-rgb), .09);
            font-size:clamp(5.2rem,8vw,8.6rem);
            line-height:.8;
            letter-spacing:-.095em;
            font-style:normal;
            font-weight:1000;
            pointer-events:none;
        }

        @media (hover: hover) and (pointer: fine) {
            .gr-rm-era:hover {
                transform: translateY(-3px);
                border-color: rgba(var(--era-rgb),.42);
                background: linear-gradient(180deg,rgba(var(--era-rgb),.14),transparent 46%),rgba(255,255,255,.04);
                box-shadow: inset 0 1px 0 rgba(255,255,255,.055),0 15px 32px rgba(0,0,0,.17), 0 0 0 1px rgba(var(--era-rgb), .08);
            }
        }

        .gr-rm-foot {
            position:relative;
            z-index:1;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:18px;
            margin-top:18px;
            padding-top:17px;
            border-top:1px solid var(--home-border);
        }

        .gr-rm-foot-note {
            display:flex;
            align-items:center;
            gap:9px;
            min-width:0;
            color:var(--home-muted);
            font-size:.66rem;
            font-weight:900;
            letter-spacing:.075em;
            text-transform:uppercase;
        }

        .gr-rm-foot-note::before {
            content:"";
            width:28px;
            height:1px;
            flex:0 0 auto;
            background:linear-gradient(90deg,var(--home-ember),var(--home-neon-light));
        }

        .gr-rm-enter {
            display: grid;
            text-decoration: none;
            grid-template-columns: minmax(0,1fr) auto;
            align-items: center;
            gap: 12px;
            min-width: 220px;
            min-height: 48px;
            padding: 8px 8px 8px 18px;
            border: 1px solid rgba(var(--rm-cyan),.28);
            border-radius: 18px;
            color: var(--home-text-color);
            background: linear-gradient(135deg, rgba(var(--rm-cyan), .10), rgba(255,255,255,.028));
            box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
            font-size: .75rem;
            font-weight: 950;
            letter-spacing: .065em;
            text-transform: uppercase;
            transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
        }

        .gr-rm-enter-label {
            display:block;
            min-width:0;
            line-height:1.05;
        }

        .gr-rm-enter i {
            display:grid;
            place-items:center;
            width:30px;
            height:30px;
            border-radius:50%;
            color:#071016;
            background:linear-gradient(135deg,var(--home-neon-light),#76e9ff);
            font-style:normal;
            font-size:1rem;
            transition:transform .22s ease;
        }

        @media (hover: hover) and (pointer: fine) {
            .gr-rm-enter:hover {
                border-color:rgba(var(--rm-cyan),.48);
                background:rgba(var(--rm-cyan),.11);
                box-shadow:0 0 0 4px rgba(var(--rm-cyan),.045);
            }
            .gr-rm-enter:hover i { transform:translate(2px,-2px); }
        }

        .gr-rm-era:focus-visible,
        .gr-rm-enter:focus-visible {
            outline: 2px solid rgb(var(--era-rgb, var(--rm-cyan)));
            outline-offset: 3px;
        }

        @media (max-width: 900px) {
            .gr-rm-head { grid-template-columns:1fr; margin-bottom:14px; }
            .gr-rm-summary { justify-content:flex-start; }
            .gr-rm-summary > span { min-width:0; flex:0 1 112px; min-height:62px; }
            .gr-rm-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
            .gr-rm-foot { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
        }

        @media (max-width: 640px) {
            .gr-rm-foot { grid-template-columns:1fr; gap:10px; }
            .gr-rm-enter { width:100%; min-width:0; }
        }

        @media (max-width: 560px) {
            .gr-roadmap-matrix {
                margin-top:18px;
                padding:17px 14px 14px;
                border-radius:22px;
            }
            .gr-roadmap-matrix::after { right:-.12em; top:.02em; font-size:9rem; opacity:.58; }
            .gr-rm-head { gap:12px; margin-bottom:12px; }
            .gr-rm-kicker-row { gap:6px; margin-bottom:8px; }
            .gr-rm-kicker, .gr-rm-status { min-height:24px; padding:5px 8px; font-size:.54rem; letter-spacing:.085em; }
            .gr-rm-status { display:none; }
            .gr-rm-title { max-width:none; white-space:nowrap; font-size:clamp(1.72rem,8.7vw,2.25rem); line-height:.9; letter-spacing:-.06em; }
            .gr-rm-lead { max-width:340px; margin-top:8px; font-size:.81rem; line-height:1.42; }
            .gr-rm-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
            .gr-rm-summary > span { min-width:0; min-height:52px; padding:8px 5px; border-radius:14px; }
            .gr-rm-summary strong { font-size:1.05rem; }
            .gr-rm-summary small { margin-top:4px; font-size:.47rem; letter-spacing:.055em; }
            .gr-rm-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
            .gr-rm-era { min-height:111px; padding:13px 11px 11px; border-radius:15px; }
            .gr-rm-era::before { left:10px; right:10px; }
            .gr-rm-era::after { left:12px; top:30px; width:8px; height:8px; }
            .gr-rm-range { padding-left:14px; font-size:.57rem; }
            .gr-rm-era-name { max-width:86%; margin-top:24px; font-size:.78rem; line-height:.92; letter-spacing:-.025em; }
            .gr-rm-era-note { margin-top:6px; font-size:.48rem; letter-spacing:.055em; }
            .gr-rm-ghost { font-size:4.9rem; right:-.08em; bottom:-.18em; }
            .gr-rm-foot { display:grid; gap:10px; margin-top:12px; padding-top:12px; }
            .gr-rm-foot-note { margin:0 2px; font-size:.52rem; line-height:1.3; letter-spacing:.055em; }
            .gr-rm-foot-note::before { width:18px; }
            .gr-rm-enter {
                width:100%;
                min-width:0;
                min-height:52px;
                padding:9px 9px 9px 14px;
                border-radius:16px;
                font-size:.66rem;
                letter-spacing:.055em;
            }
            .gr-rm-enter-label { white-space:nowrap; }
        }

        @media (prefers-reduced-motion: reduce) {
            .gr-rm-era, .gr-rm-enter, .gr-rm-enter i { transition:none; }
        }