/* MusicTree modern skin. Layered over browse.css so rollback is one stylesheet link. */
:root {
    --color-background: #07090b;
    --color-surface: #11151a;
    --color-primary: #37f2a6;
    --color-secondary: #4db6ff;
    --color-text: #f6f8fb;
    --color-text-secondary: #a7b0bd;
    --gradient-primary: linear-gradient(135deg, #37f2a6 0%, #4db6ff 100%);
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 18px 50px rgba(55, 242, 166, 0.14);
}

/* Future player */
.theme-modern {
    --player-height: clamp(176px, 18vh, 204px);
}

.theme-modern .container {
    padding-bottom: calc(var(--player-height) + 34px);
}

.theme-modern .bottom-player {
    height: var(--player-height);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    align-items: stretch;
    justify-content: center;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(8, 11, 14, 0.80), rgba(4, 6, 8, 0.98)),
        linear-gradient(90deg, rgba(55, 242, 166, 0.10), rgba(77, 182, 255, 0.08) 50%, rgba(255, 75, 126, 0.06));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px) saturate(1.2);
}

.theme-modern .custom-player {
    position: relative !important;
    inset: auto !important;
    z-index: auto;
    width: min(1540px, 100%);
    height: 100% !important;
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(420px, 1fr) minmax(220px, 300px);
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    padding: 14px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        rgba(7, 10, 13, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 22px 70px rgba(0, 0, 0, 0.35);
}

.theme-modern .player-left,
.theme-modern .player-center,
.theme-modern .player-right {
    min-width: 0 !important;
}

.theme-modern .player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

.theme-modern .player-artwork-frame {
    position: relative;
    flex: 0 0 clamp(72px, 7vw, 94px);
    width: clamp(72px, 7vw, 94px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(55, 242, 166, 0.20), rgba(77, 182, 255, 0.14)),
        #121820;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.theme-modern .player-artwork {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 0;
    object-fit: cover;
}

.theme-modern .player-artwork-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 2rem;
    font-weight: 900;
}

.theme-modern .track-info {
    min-width: 0;
    gap: 2px;
}

.theme-modern .player-kicker {
    color: #67f4b8;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-modern .track-title {
    max-width: 100%;
    color: #f8fbff;
    font-size: clamp(0.98rem, 1.3vw, 1.18rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-modern .track-artist {
    max-width: 100%;
    color: #aeb8c6;
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-modern .player-center {
    display: grid;
    grid-template-rows: auto minmax(46px, 1fr) auto;
    align-content: center;
    justify-content: stretch;
    justify-items: stretch;
    gap: 9px;
    height: 100%;
}

.theme-modern .player-controls,
.theme-modern .player-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.theme-modern .player-controls {
    justify-content: center;
    justify-self: center;
}

.theme-modern .player-center .btn,
.theme-modern .player-right .btn {
    display: inline-grid;
    place-items: center;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.075);
    color: #f4f8ff;
    font-size: 1rem !important;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.theme-modern .player-center .btn:hover,
.theme-modern .player-right .btn:hover,
.theme-modern .player-center .btn:focus-visible,
.theme-modern .player-right .btn:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(103, 244, 184, 0.60);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 10px 24px rgba(55, 242, 166, 0.12);
    outline: none;
}

.theme-modern .player-center .btn.play {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    color: #04130d;
    font-size: 1.15rem !important;
    background:
        linear-gradient(135deg, #70ffc1, #65c8ff 70%, #ff6f9b);
    border-color: transparent;
    box-shadow:
        0 16px 34px rgba(55, 242, 166, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.theme-modern .player-center .btn.play:hover,
.theme-modern .player-center .btn.play:focus-visible {
    color: #04130d;
    transform: translateY(-1px) scale(1.02);
}

.theme-modern .play-state-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid currentColor;
}

.theme-modern .btn.play[data-icon="pause"] .play-state-icon {
    width: 17px;
    height: 18px;
    margin-left: 0;
    border: 0;
    background:
        linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}

.theme-modern #btn-repeat.active,
.theme-modern #btn-shuffle.active {
    color: #04130d;
    text-shadow: none;
    border-color: transparent;
    background: linear-gradient(135deg, #70ffc1, #65c8ff);
}

.theme-modern .player-waveform {
    --progress: 0%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(72, minmax(2px, 1fr));
    align-items: center;
    gap: 3px;
    height: 100%;
    min-height: 46px;
    width: 100%;
    padding: 8px 11px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(103, 244, 184, 0.07), rgba(101, 200, 255, 0.05), rgba(255, 111, 155, 0.04)),
        rgba(255, 255, 255, 0.045);
}

.theme-modern .player-waveform:focus-visible {
    outline: 2px solid rgba(103, 244, 184, 0.80);
    outline-offset: 2px;
}

.theme-modern .player-waveform::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 7px;
    height: 2px;
    border-radius: 99px;
    background:
        linear-gradient(90deg, #70ffc1 0 var(--progress), rgba(255, 255, 255, 0.18) var(--progress) 100%);
    pointer-events: none;
}

.theme-modern .waveform-bar {
    display: block;
    width: 100%;
    height: var(--bar-height, 40%);
    min-height: 4px;
    border-radius: 99px;
    background: rgba(176, 189, 204, 0.32);
    transition: height 180ms ease, background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.theme-modern .waveform-bar.played {
    background: linear-gradient(180deg, #88ffd0, #67c7ff);
    box-shadow: 0 0 14px rgba(55, 242, 166, 0.22);
}

.theme-modern .seek-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
}

.theme-modern .current-time,
.theme-modern .total-time {
    color: #b5c0ce;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.theme-modern .seek-slider,
.theme-modern .volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
    accent-color: #67f4b8;
}

.theme-modern .seek-slider::-webkit-slider-thumb,
.theme-modern .volume-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(7, 10, 13, 0.96);
    border-radius: 50%;
    background: #77ffd0;
    box-shadow: 0 0 0 4px rgba(103, 244, 184, 0.15);
}

.theme-modern .seek-slider::-moz-range-thumb,
.theme-modern .volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(7, 10, 13, 0.96);
    border-radius: 50%;
    background: #77ffd0;
    box-shadow: 0 0 0 4px rgba(103, 244, 184, 0.15);
}

.theme-modern .player-right {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: end;
    gap: 14px;
}

.theme-modern .player-actions {
    justify-content: flex-end;
}

.theme-modern .player-right .btn.like {
    width: auto !important;
    min-width: 62px !important;
    grid-auto-flow: column;
    gap: 6px;
    padding: 0 12px !important;
    border-radius: 999px;
}

.theme-modern .player-right .btn.like.voted {
    color: #ff8aad;
    border-color: rgba(255, 138, 173, 0.55);
    background: rgba(255, 111, 155, 0.12);
}

.theme-modern .vote-count {
    color: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.theme-modern .volume-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    width: min(100%, 210px);
}

.theme-modern .volume-icon {
    color: #9faaba;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.theme-modern .volume-slider {
    min-width: 118px;
}

@media (max-width: 1120px) {
    .theme-modern {
        --player-height: 178px;
    }

    .theme-modern .custom-player {
        grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 12px 16px;
    }

    .theme-modern .player-right {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
        grid-template-rows: auto;
        align-items: center;
        justify-items: stretch;
    }

    .theme-modern .player-actions {
        justify-content: flex-start;
    }

    .theme-modern .volume-control {
        justify-self: end;
    }
}

@media (max-width: 720px) {
    .theme-modern {
        --player-height: 270px;
    }

    .theme-modern .container {
        padding-bottom: calc(var(--player-height) + 22px);
    }

    .theme-modern .bottom-player {
        padding: 8px;
    }

    .theme-modern .custom-player {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 10px;
    }

    .theme-modern .player-left,
    .theme-modern .player-center,
    .theme-modern .player-right {
        width: 100%;
        flex: auto !important;
        min-width: 0 !important;
        justify-content: initial;
    }

    .theme-modern .player-left {
        height: auto;
    }

    .theme-modern .player-artwork-frame {
        flex-basis: 58px;
        width: 58px;
    }

    .theme-modern .player-center {
        grid-template-rows: auto 42px auto;
        gap: 8px;
        height: auto;
    }

    .theme-modern .player-controls {
        gap: 8px;
    }

    .theme-modern .player-center .btn,
    .theme-modern .player-right .btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .theme-modern .player-center .btn.play {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .theme-modern .player-waveform {
        min-height: 42px;
        gap: 2px;
        padding: 7px 8px;
    }

    .theme-modern .player-waveform::after {
        left: 8px;
        right: 8px;
    }

    .theme-modern .seek-bar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 7px;
    }

    .theme-modern .player-right {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 8px;
        justify-items: stretch;
    }

    .theme-modern .player-actions {
        justify-content: space-between;
        width: 100%;
    }

    .theme-modern .volume-control {
        display: none;
    }
}

@media (max-width: 420px) {
    .theme-modern {
        --player-height: 286px;
    }

    .theme-modern .custom-player {
        padding: 9px;
    }

    .theme-modern .player-kicker {
        font-size: 0.62rem;
    }

    .theme-modern .track-title {
        font-size: 0.92rem;
    }

    .theme-modern .track-artist {
        font-size: 0.78rem;
    }

    .theme-modern .waveform-bar:nth-child(n+57) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-modern .player-center .btn,
    .theme-modern .player-right .btn,
    .theme-modern .waveform-bar {
        transition: none;
    }
}

.theme-modern {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(55, 242, 166, 0.10), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(77, 182, 255, 0.11), transparent 32rem),
        linear-gradient(180deg, #07090b 0%, #0b1015 42%, #07090b 100%);
    color: var(--color-text);
    padding-top: 86px;
}

.theme-modern *,
.theme-modern *::before,
.theme-modern *::after {
    box-sizing: border-box;
}

.theme-modern .site-header {
    height: 72px;
    padding: 10px 22px;
    background: rgba(7, 9, 11, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.theme-modern .logo {
    color: #fff;
    font-size: 1.04rem;
    letter-spacing: 0;
    text-shadow: none;
}

.theme-modern .logo::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 24px rgba(55, 242, 166, 0.65);
    vertical-align: -1px;
}

.theme-modern .hamburger {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.theme-modern .bar1,
.theme-modern .bar2,
.theme-modern .bar3 {
    width: 20px;
    height: 2px;
    margin: 4px 0;
    border-radius: 99px;
    background: #dfe6ef;
}

.theme-modern header .filter-section {
    width: min(680px, 52vw);
    min-height: 50px;
    gap: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    box-shadow: none;
}

.theme-modern header .filter-section input[type="text"] {
    width: 100%;
    min-width: 180px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
    color: #fff;
    font-size: 0.96rem;
}

.theme-modern header .filter-section input[type="text"]:focus {
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(55, 242, 166, 0.7);
}

.theme-modern header .filter-section button#apply-filter-button,
.theme-modern .mt-primary-action,
.theme-modern .mt-secondary-action,
.theme-modern #genre-pagination button,
.theme-modern .btn {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

.theme-modern header .filter-section button#apply-filter-button,
.theme-modern .mt-primary-action {
    background: var(--gradient-primary);
    color: #03100b;
}

.theme-modern .mt-secondary-action,
.theme-modern #genre-pagination button,
.theme-modern .btn {
    background: rgba(255, 255, 255, 0.08);
    color: #f7fbff;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.theme-modern header .filter-section label {
    white-space: nowrap;
    color: #c5ceda;
    font-size: 0.85rem;
}

.theme-modern .switch {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.theme-modern .switch .label-text {
    color: #c8d2dd;
    font-size: 0.82rem;
}

.theme-modern .container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 28px 110px;
}

.theme-modern .mt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 26px;
    align-items: stretch;
    min-height: 340px;
    margin: 10px 0 26px;
}

.theme-modern .mt-hero-copy {
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
        linear-gradient(120deg, rgba(55, 242, 166, 0.10), rgba(77, 182, 255, 0.06));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.theme-modern .mt-kicker {
    margin: 0 0 12px;
    color: #37f2a6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-modern .mt-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.45rem, 5.2vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: 0;
    text-shadow: none;
}

.theme-modern .mt-subhead {
    max-width: 720px;
    margin: 20px 0 0;
    color: #c4ced9;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.theme-modern .mt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.theme-modern .mt-primary-action,
.theme-modern .mt-secondary-action {
    padding: 0 18px;
    cursor: pointer;
}

.theme-modern .mt-discovery-panel,
.theme-modern .mt-time-browser,
.theme-modern .playlist-section,
.theme-modern #genre-graph-wrapper,
.theme-modern .related-genres-section,
.theme-modern .results-summary {
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 8px !important;
    background: rgba(14, 19, 24, 0.78) !important;
    box-shadow: var(--shadow-soft);
}

.theme-modern .mt-discovery-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
}

.theme-modern .mt-panel-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #9ca8b5;
    font-size: 0.88rem;
}

.theme-modern .mt-panel-topline strong {
    color: #fff;
}

.theme-modern .mt-vibe-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.theme-modern .mt-vibe-grid button {
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f6f9fc;
    font-weight: 700;
    cursor: pointer;
}

.theme-modern .mt-vibe-grid button:hover,
.theme-modern .genre-block:hover,
.theme-modern tr:hover {
    transform: translateY(-2px);
    border-color: rgba(55, 242, 166, 0.62) !important;
    box-shadow: var(--shadow-glow);
}

.theme-modern .mt-panel-note {
    color: #9ca8b5;
    font-size: 0.9rem;
}

.theme-modern .mt-time-browser {
    margin: 0 0 22px;
    padding: 18px;
}

.theme-modern .mt-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 14px;
}

.theme-modern .mt-section-heading span {
    color: #37f2a6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-modern .mt-section-heading strong {
    color: #fff;
    font-size: 1rem;
}

.theme-modern .mt-decade-grid,
.theme-modern .mt-style-grid,
.theme-modern .mt-time-actions {
    display: grid;
    gap: 10px;
}

.theme-modern .mt-decade-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.theme-modern .mt-style-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    margin-top: 10px;
}

.theme-modern .mt-time-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.theme-modern .mt-decade-grid button,
.theme-modern .mt-style-grid button,
.theme-modern .mt-time-actions button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: #eef5fb;
    font-weight: 800;
    cursor: pointer;
}

.theme-modern .mt-decade-grid button.active,
.theme-modern .mt-style-grid button.active,
.theme-modern .mt-time-actions button:hover,
.theme-modern .mt-decade-grid button:hover,
.theme-modern .mt-style-grid button:hover {
    background: rgba(55, 242, 166, 0.14);
    border-color: rgba(55, 242, 166, 0.55);
    box-shadow: var(--shadow-glow);
}

.theme-modern .results-summary {
    margin: 18px 0 12px;
    padding: 12px 16px;
    color: #c8d2dd;
}

.theme-modern .related-genres-section {
    padding: 12px !important;
}

.theme-modern #genre-graph-wrapper {
    margin: 1.2rem 0 !important;
    padding: 18px !important;
}

.theme-modern #genre-graph-wrapper h3 {
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: 1rem;
}

.theme-modern #genre-blocks {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 0;
}

.theme-modern .genre-block {
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #dce5ee;
    font-size: 0.84rem;
}

.theme-modern #track-list {
    border-spacing: 0 7px;
    font-size: 0.92rem;
}

.theme-modern th,
.theme-modern td {
    background: rgba(15, 20, 25, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.theme-modern th {
    color: #8f9ba8;
    background: rgba(255, 255, 255, 0.045);
    letter-spacing: 0.04em;
}

.theme-modern th:first-child,
.theme-modern td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px 0 0 8px;
}

.theme-modern th:last-child,
.theme-modern td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 0 8px 8px 0;
}

.theme-modern tr {
    box-shadow: none;
}

.theme-modern tr.playing td {
    background: rgba(55, 242, 166, 0.12);
    border-color: rgba(55, 242, 166, 0.34);
}

.theme-modern .artwork-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.theme-modern .genre-link,
.theme-modern .genre-pill {
    border-radius: 999px !important;
    padding: 5px 9px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

.theme-modern .menu {
    top: 72px;
    left: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(12, 16, 20, 0.96);
    backdrop-filter: blur(16px);
}

.theme-modern .bottom-player,
.theme-modern .custom-player {
    height: 82px;
    background: rgba(7, 9, 11, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
}

.theme-modern .player-artwork {
    width: 58px;
    height: 58px;
    border-radius: 8px;
}

.theme-modern .player-center .btn,
.theme-modern .player-right .btn {
    min-width: 42px;
    padding: 8px 10px;
}

.theme-modern .seek-slider,
.theme-modern .volume-slider {
    accent-color: #37f2a6;
}

@media (max-width: 980px) {
    .theme-modern {
        padding-top: 132px;
    }

    .theme-modern .site-header {
        gap: 10px;
        height: auto;
    }

    .theme-modern header .filter-section {
        order: 3;
        width: 100%;
        flex: 1 0 100%;
    }

    .theme-modern .mt-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .theme-modern {
        padding-top: 204px;
    }

    .theme-modern .container {
        padding: 12px 12px 118px;
        overflow-x: hidden;
    }

    .theme-modern .site-header {
        overflow: hidden;
    }

    .theme-modern .header-center {
        flex: 1 0 100%;
        order: 3;
    }

    .theme-modern .header-left {
        flex: 1 1 auto;
    }

    .theme-modern header .filter-section {
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
        padding: 6px;
    }

    .theme-modern header .filter-section input[type="text"] {
        flex: 1 1 100%;
        min-width: 0;
    }

    .theme-modern header .filter-section label {
        flex: 1 1 auto;
    }

    .theme-modern header .filter-section button#apply-filter-button {
        flex: 1 1 100%;
        padding-inline: 14px;
    }

    .theme-modern .mt-hero-copy,
    .theme-modern .mt-discovery-panel {
        padding: 18px;
    }

    .theme-modern .mt-hero h1 {
        font-size: 2.16rem;
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .theme-modern .mt-kicker {
        display: none;
    }

    .theme-modern .mt-subhead {
        font-size: 0.98rem;
    }

    .theme-modern .mt-panel-topline {
        flex-wrap: wrap;
    }

    .theme-modern .mt-panel-topline strong {
        width: 100%;
    }

    .theme-modern .mt-vibe-grid {
        grid-template-columns: 1fr;
    }

    .theme-modern .mt-section-heading {
        display: block;
    }

    .theme-modern .mt-section-heading strong {
        display: block;
        margin-top: 6px;
    }

    .theme-modern .mt-decade-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .theme-modern .mt-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-modern .mt-time-actions {
        grid-template-columns: 1fr;
    }

    .theme-modern #genre-blocks {
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    }

    .theme-modern .header-right {
        display: none;
    }

    .theme-modern .custom-player {
        height: 112px;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
    }

    .theme-modern .player-left,
    .theme-modern .player-center,
    .theme-modern .player-right {
        width: 100%;
        justify-content: center;
    }

    .theme-modern .player-artwork {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .theme-modern .mt-hero h1 {
        font-size: 2rem;
    }

    .theme-modern .mt-hero-copy,
    .theme-modern .mt-discovery-panel {
        padding: 16px;
    }

    .theme-modern .mt-primary-action,
    .theme-modern .mt-secondary-action {
        flex: 1 1 100%;
    }
}

/* 2026 graph-first redesign overrides */
.theme-modern {
    --ink: #f8fafc;
    --muted: #aeb8c7;
    --panel: rgba(12, 16, 22, 0.82);
    --panel-strong: rgba(18, 24, 33, 0.94);
    --line: rgba(255, 255, 255, 0.12);
    --acid: #b7ff5a;
    --cyan: #51d6ff;
    --rose: #ff5fa2;
    --amber: #ffc857;
    background:
        linear-gradient(120deg, rgba(183, 255, 90, 0.10), transparent 32rem),
        linear-gradient(240deg, rgba(255, 95, 162, 0.10), transparent 36rem),
        linear-gradient(180deg, #05070a 0%, #10141b 48%, #07090d 100%);
}

.theme-modern .site-header {
    height: 78px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 7, 10, 0.76);
}

.theme-modern .mt-top-nav {
    justify-content: center;
    gap: 8px;
}

.theme-modern .mt-nav-button,
.theme-modern .mt-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.theme-modern .mt-nav-button {
    color: #06110d;
    background: linear-gradient(135deg, var(--acid), var(--cyan));
    border: 0;
    cursor: pointer;
}

.theme-modern .logo::before {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: conic-gradient(from 180deg, var(--acid), var(--cyan), var(--rose), var(--amber), var(--acid));
    box-shadow: 0 0 26px rgba(81, 214, 255, 0.45);
}

.theme-modern header .filter-section {
    width: auto;
}

.theme-modern header .filter-section::before {
    content: none;
}

.theme-modern header .filter-section input[type="text"] {
    height: 42px;
    background: rgba(0, 0, 0, 0.34);
    font-size: 1rem;
}

.theme-modern #search-suggestions,
.theme-modern .suggestions-box {
    top: calc(100% + 10px);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.theme-modern .mt-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 430px;
    position: relative;
    isolation: isolate;
}

.theme-modern .mt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 55% 44%, black, transparent 72%);
    z-index: -1;
}

.theme-modern .mt-hero-copy {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 200, 87, 0.18), transparent 18rem),
        radial-gradient(circle at 72% 70%, rgba(81, 214, 255, 0.17), transparent 21rem),
        linear-gradient(135deg, rgba(20, 25, 34, 0.95), rgba(8, 11, 16, 0.88));
}

.theme-modern .mt-hero-copy::after {
    content: "";
    position: absolute;
    right: min(7vw, 90px);
    top: 86px;
    width: min(34vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(183, 255, 90, 0.78) 0 5px, transparent 6px),
        radial-gradient(circle at 30% 28%, rgba(81, 214, 255, 0.8) 0 7px, transparent 8px),
        radial-gradient(circle at 72% 42%, rgba(255, 95, 162, 0.78) 0 6px, transparent 7px),
        radial-gradient(circle at 48% 78%, rgba(255, 200, 87, 0.82) 0 8px, transparent 9px),
        conic-gradient(from 80deg, transparent, rgba(81, 214, 255, 0.28), transparent, rgba(255, 95, 162, 0.24), transparent);
    opacity: 0.9;
    filter: drop-shadow(0 26px 60px rgba(0,0,0,0.5));
    pointer-events: none;
}

.theme-modern .mt-hero h1 {
    max-width: 780px;
    font-size: clamp(2.8rem, 6vw, 6.7rem);
}

.theme-modern .mt-discovery-panel {
    display: none;
}

.theme-modern .mt-command-center {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(183, 255, 90, 0.09), rgba(81, 214, 255, 0.05)),
        rgba(12, 16, 22, 0.9);
    box-shadow: 0 22px 80px rgba(0,0,0,0.32);
}

.theme-modern .mt-command-copy strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 1.16rem;
    line-height: 1.25;
}

.theme-modern .mt-search-command {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
}

.theme-modern .mt-search-command input[type="text"] {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    color: var(--ink);
    font-size: 1.06rem;
    padding: 0 16px;
}

.theme-modern .mt-search-command input[type="text"]:focus {
    outline: 0;
    box-shadow: inset 0 0 0 1px rgba(183, 255, 90, 0.65);
}

.theme-modern .mt-search-command button#apply-filter-button {
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--acid), var(--cyan));
    color: #06110d;
    font-weight: 900;
    cursor: pointer;
}

.theme-modern .mt-search-command #mt-create-radio-from-search {
    min-height: 54px;
    white-space: nowrap;
}

.theme-modern .mt-search-command #mt-create-radio-from-search:disabled {
    opacity: 0.72;
    cursor: progress;
}

.theme-modern .mt-long-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 54px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    white-space: nowrap;
}

.theme-modern .mt-page-dock {
    max-width: 1480px;
    margin: 0 auto 108px;
    padding: 0 28px;
}

.theme-modern .mt-page-dock[hidden] {
    display: none;
}

.theme-modern .mt-page-dock-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: rgba(10, 14, 20, 0.96);
}

.theme-modern .mt-page-dock-kicker {
    display: block;
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-modern .mt-page-dock-bar strong {
    color: var(--ink);
}

.theme-modern .mt-page-dock-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-modern .mt-page-open-new,
.theme-modern #mt-page-dock-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.theme-modern #mt-page-dock-close {
    width: 38px;
    padding: 0;
    font-size: 1.4rem;
    cursor: pointer;
}

.theme-modern #mt-page-frame {
    display: block;
    width: 100%;
    min-height: 72vh;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0 0 8px 8px;
    background: #080b10;
}

.theme-modern .modal {
    background:
        radial-gradient(circle at 50% 35%, rgba(81,214,255,0.16), transparent 26rem),
        rgba(0,0,0,0.76);
    backdrop-filter: blur(18px);
}

.theme-modern .playlist-modal-content {
    width: min(560px, calc(100vw - 32px));
    margin: max(72px, 9vh) auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(183,255,90,0.10), rgba(81,214,255,0.06)),
        rgba(12, 16, 22, 0.98);
    box-shadow: 0 30px 120px rgba(0,0,0,0.62);
}

.theme-modern .playlist-modal-header {
    margin: 0;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.045);
}

.theme-modern .playlist-modal-header h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 1.7rem;
}

.theme-modern .playlist-modal-kicker {
    color: var(--acid);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-modern .playlist-modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
}

.theme-modern #create-playlist-form {
    padding: 22px 24px 24px;
}

.theme-modern .form-group label {
    color: var(--ink);
    font-weight: 800;
}

.theme-modern .form-group input,
.theme-modern .form-group textarea {
    min-height: 48px;
    border-color: rgba(255,255,255,0.13);
    border-radius: 8px;
    background: rgba(0,0,0,0.28);
    color: var(--ink);
    font-size: 1rem;
}

.theme-modern .form-group textarea {
    resize: vertical;
    min-height: 112px;
}

.theme-modern .playlist-toggle {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
}

.theme-modern .playlist-toggle input {
    position: absolute;
    opacity: 0;
}

.theme-modern .playlist-toggle-ui {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
}

.theme-modern .playlist-toggle-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}

.theme-modern .playlist-toggle input:checked + .playlist-toggle-ui {
    background: linear-gradient(135deg, var(--acid), var(--cyan));
}

.theme-modern .playlist-toggle input:checked + .playlist-toggle-ui::after {
    transform: translateX(20px);
}

.theme-modern .playlist-toggle strong,
.theme-modern .playlist-toggle small {
    display: block;
}

.theme-modern .playlist-toggle small {
    margin-top: 3px;
    color: var(--muted);
}

.theme-modern .playlist-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.theme-modern .playlist-modal-actions .btn {
    min-height: 46px;
    padding: 0 18px;
}

.theme-modern .mt-node-lab {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14, 18, 25, 0.94), rgba(9, 12, 18, 0.92));
    box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

.theme-modern .mt-live-radio {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,95,162,0.10), rgba(81,214,255,0.06)),
        rgba(12, 16, 22, 0.91);
    box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.theme-modern .mt-live-radio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.theme-modern .mt-live-radio-header h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
}

.theme-modern .mt-live-radio-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) minmax(320px, 1fr);
    gap: 14px;
}

.theme-modern .mt-live-radio-room {
    grid-column: 1 / -1;
}

.theme-modern .mt-live-radio-form,
.theme-modern .mt-live-radio-rooms,
.theme-modern .mt-live-radio-room {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
}

.theme-modern .mt-live-radio-form {
    display: grid;
    gap: 10px;
}

.theme-modern .mt-live-radio-form input,
.theme-modern .mt-live-radio-form textarea,
.theme-modern .mt-live-comment-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
    background: rgba(0,0,0,0.28);
    color: var(--ink);
    padding: 12px;
}

.theme-modern .mt-live-room-list,
.theme-modern .mt-live-queue,
.theme-modern .mt-live-comments {
    display: grid;
    gap: 9px;
}

.theme-modern .mt-live-room-card,
.theme-modern .mt-live-queue-row {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
    color: var(--ink);
    text-align: left;
}

.theme-modern .mt-live-room-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.theme-modern .mt-live-room-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(72px, auto));
    gap: 8px;
}

.theme-modern .mt-live-room-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    cursor: pointer;
}

.theme-modern .mt-live-room-card span,
.theme-modern .mt-live-room-card small,
.theme-modern .mt-live-queue-row small {
    color: var(--muted);
}

.theme-modern .mt-live-room-card:hover {
    border-color: rgba(183,255,90,0.5);
}

.theme-modern .mt-live-room-mini-action,
.theme-modern .mt-live-delete-room {
    min-width: 82px;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
}

.theme-modern .mt-live-room-mini-action:hover {
    border-color: rgba(103,244,184,0.55);
    background: rgba(103,244,184,0.10);
}

.theme-modern .mt-live-delete-room {
    border: 1px solid rgba(255, 109, 109, 0.45);
    background: rgba(255, 109, 109, 0.10);
    color: #ffd4d4;
    grid-column: 1 / -1;
}

.theme-modern .mt-live-delete-room:hover {
    background: rgba(255, 109, 109, 0.18);
}

.theme-modern .mt-live-delete-room:disabled {
    opacity: 0.65;
    cursor: progress;
}

.theme-modern .mt-live-room-detail {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
}

.theme-modern .mt-live-room-detail[hidden] {
    display: none;
}

.theme-modern .mt-live-room-actions,
.theme-modern .mt-live-comment-form {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
}

.theme-modern .mt-live-queue-row {
    display: grid;
    grid-template-columns: 24px 42px minmax(0, 1fr) auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.theme-modern .mt-live-queue-row img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.theme-modern .mt-live-queue-row strong,
.theme-modern .mt-live-queue-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-modern .mt-live-queue-row small {
    grid-column: 3;
    margin-top: 20px;
}

.theme-modern .mt-live-queue-row button {
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.theme-modern .mt-live-comment {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.theme-modern .mt-live-comment span {
    color: var(--muted);
}

.theme-modern .music-tree-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.theme-modern .music-tree-heading h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.theme-modern .music-tree-toolbar,
.theme-modern .music-tree-node-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.theme-modern .music-tree-toolbar button,
.theme-modern .music-tree-node-actions button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.theme-modern .music-tree-toolbar button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.theme-modern .music-tree-stage {
    min-height: 360px;
    margin-bottom: 14px;
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.03)),
        rgba(255,255,255,0.04);
}

.theme-modern .music-tree-map {
    display: grid;
    grid-template-rows: auto 38px auto;
    gap: 0;
    min-width: 0;
    min-height: 310px;
}

.theme-modern .music-tree-map.loading {
    opacity: 0.72;
}

.theme-modern .music-tree-level {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.theme-modern .music-tree-parent {
    align-items: center;
    flex-direction: column;
}

.theme-modern .music-tree-children {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: start;
    width: 100%;
}

.theme-modern .music-tree-connectors {
    position: relative;
}

.theme-modern .music-tree-connectors::before,
.theme-modern .music-tree-connectors::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(183,255,90,0.34);
}

.theme-modern .music-tree-connectors::before {
    top: 0;
    width: 2px;
    height: 38px;
}

.theme-modern .music-tree-connectors::after {
    bottom: 0;
    width: min(760px, 78%);
    height: 1px;
}

.theme-modern .music-tree-branch-card {
    position: relative;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
    padding-top: 18px;
}

.theme-modern .music-tree-branch-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 18px;
    background: rgba(183,255,90,0.30);
}

.theme-modern .music-tree-root,
.theme-modern .music-tree-branch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: rgba(14,20,28,0.92);
    color: var(--ink);
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
}

.theme-modern .music-tree-root {
    max-width: 320px;
    min-height: 66px;
    padding: 12px 16px;
    border-color: rgba(183,255,90,0.56);
}

.theme-modern .music-tree-root:not(button) {
    max-width: none;
    min-height: 100%;
    color: var(--muted);
}

.theme-modern .music-tree-branch {
    min-height: 58px;
    padding: 10px 12px;
    cursor: pointer;
    word-break: normal;
    overflow-wrap: anywhere;
}

.theme-modern .music-tree-branch-card:nth-child(6n+1) .music-tree-branch { border-color: rgba(81,214,255,0.45); }
.theme-modern .music-tree-branch-card:nth-child(6n+2) .music-tree-branch { border-color: rgba(255,95,162,0.45); }
.theme-modern .music-tree-branch-card:nth-child(6n+3) .music-tree-branch { border-color: rgba(255,200,87,0.45); }
.theme-modern .music-tree-branch-card:nth-child(6n+4) .music-tree-branch { border-color: rgba(81,214,255,0.45); }
.theme-modern .music-tree-branch-card:nth-child(6n+5) .music-tree-branch { border-color: rgba(255,95,162,0.45); }
.theme-modern .music-tree-branch-card:nth-child(6n) .music-tree-branch { border-color: rgba(183,255,90,0.45); }

.theme-modern .music-tree-loading {
    align-self: center;
    justify-self: center;
    margin: auto;
    color: var(--muted);
}

.theme-modern .mt-node-header,
.theme-modern .mt-node-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.theme-modern .mt-node-header h2 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
}

.theme-modern .mt-node-header p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.theme-modern .mt-node-stage {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.7fr);
    gap: 18px;
    margin-top: 18px;
}

.theme-modern .mt-node-orbit {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(183,255,90,0.12), transparent 10rem),
        radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(255,255,255,0.08) 22.2% 22.5%, transparent 22.7% 38%, rgba(255,255,255,0.06) 38.2% 38.5%, transparent 38.8% 54%, rgba(255,255,255,0.045) 54.2% 54.5%, transparent 54.8%),
        rgba(255, 255, 255, 0.035);
}

.theme-modern .mt-node-orbit.loading {
    opacity: 0.72;
}

.theme-modern .mt-node {
    position: absolute;
    width: 132px;
    min-height: 66px;
    transform: translate(-50%, -50%);
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(17, 23, 31, 0.92);
    box-shadow: 0 18px 50px rgba(0,0,0,0.34);
    cursor: pointer;
}

.theme-modern .mt-node span,
.theme-modern .mt-node small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-modern .mt-node span {
    font-weight: 900;
    white-space: nowrap;
}

.theme-modern .mt-node small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}

.theme-modern .mt-node-self {
    left: 50%;
    top: 50%;
    width: 160px;
    min-height: 82px;
    background: linear-gradient(135deg, rgba(183, 255, 90, 0.22), rgba(81, 214, 255, 0.18));
    border-color: rgba(183, 255, 90, 0.5);
}

.theme-modern .mt-node-user { border-color: rgba(81, 214, 255, 0.44); }
.theme-modern .mt-node-genre { border-color: rgba(183, 255, 90, 0.46); }
.theme-modern .mt-node-track { border-color: rgba(255, 95, 162, 0.48); }

.theme-modern .mt-node:hover,
.theme-modern .mt-rec-row:hover {
    transform: translate(-50%, -50%) scale(1.04);
    z-index: 3;
}

.theme-modern .mt-rec-row:hover {
    transform: translateY(-2px);
}

.theme-modern .mt-node-queue {
    min-height: 500px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.theme-modern .mt-node-recs {
    display: grid;
    gap: 10px;
}

.theme-modern .mt-rec-row {
    display: grid;
    grid-template-columns: 28px 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 10px;
    width: 100%;
    min-height: 64px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.theme-modern .mt-rec-row span {
    grid-row: 1 / span 2;
    color: var(--acid);
    font-weight: 900;
}

.theme-modern .mt-rec-row img {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.theme-modern .mt-rec-row strong,
.theme-modern .mt-rec-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-modern .mt-rec-row small,
.theme-modern .mt-node-empty {
    color: var(--muted);
}

.theme-modern .mt-time-browser {
    background: rgba(255, 255, 255, 0.045) !important;
}

.theme-modern #genre-graph-wrapper {
    background: transparent !important;
}

.theme-modern #genre-graph-wrapper h3 {
    color: var(--ink) !important;
}

.theme-modern #track-list {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.theme-modern #track-list thead {
    display: none;
}

.theme-modern #tracks-tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 12px;
}

.theme-modern #tracks-tbody tr.clickable-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2px 12px;
    min-height: 112px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
    cursor: pointer;
}

.theme-modern #tracks-tbody tr.clickable-row:hover {
    border-color: rgba(183, 255, 90, 0.5);
    box-shadow: 0 18px 52px rgba(0,0,0,0.3);
}

.theme-modern #tracks-tbody tr.clickable-row.playing {
    border-color: rgba(255, 95, 162, 0.72);
    background: linear-gradient(135deg, rgba(255,95,162,0.14), rgba(81,214,255,0.08));
}

.theme-modern #tracks-tbody td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

.theme-modern #tracks-tbody td:first-child {
    grid-row: 1 / span 3;
}

.theme-modern #tracks-tbody td:nth-child(2) {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 900;
}

.theme-modern #tracks-tbody td:nth-child(3),
.theme-modern #tracks-tbody td:nth-child(6) {
    color: var(--muted);
}

.theme-modern #tracks-tbody td:nth-child(4),
.theme-modern #tracks-tbody td:nth-child(5),
.theme-modern #tracks-tbody td:nth-child(7) {
    display: inline-flex;
    width: fit-content;
    margin-right: 7px;
    color: #d7dee9;
    font-size: 0.78rem;
}

.theme-modern #tracks-tbody .artwork-img {
    width: 58px;
    height: 58px;
}

.theme-modern .bottom-player {
    height: 94px;
}

.theme-modern .custom-player {
    height: 94px;
    border-top: 1px solid rgba(255,255,255,0.16);
    background: rgba(5, 7, 10, 0.92);
}

@media (max-width: 980px) {
    .theme-modern .mt-hero-copy::after {
        opacity: 0.28;
        right: 20px;
        top: 120px;
        width: 280px;
    }

    .theme-modern .mt-node-stage {
        grid-template-columns: 1fr;
    }

    .theme-modern .mt-node-orbit,
    .theme-modern .mt-node-queue {
        min-height: 420px;
    }
}

@media (max-width: 680px) {
    html,
    body,
    .theme-modern {
        max-width: 100%;
        overflow-x: hidden;
    }

    .theme-modern .site-header {
        height: auto;
        max-width: 100vw;
        padding: 10px 12px;
    }

    .theme-modern .mt-top-nav {
        order: 3;
        flex: 1 0 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-modern .mt-nav-button,
    .theme-modern .mt-nav-link {
        min-width: 0;
        padding: 0 8px;
    }

    .theme-modern .mt-command-center {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .theme-modern .mt-search-command {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .theme-modern .mt-search-command input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    .theme-modern .mt-search-command button#apply-filter-button,
    .theme-modern .mt-search-command #mt-create-radio-from-search {
        width: 100%;
    }

    .theme-modern .mt-hero,
    .theme-modern .mt-hero-copy,
    .theme-modern .mt-node-lab,
    .theme-modern .mt-time-browser {
        max-width: 100%;
        overflow: hidden;
    }

    .theme-modern .mt-hero-copy::after {
        right: -96px;
        top: 190px;
        width: 260px;
    }

    .theme-modern .mt-hero h1 {
        max-width: 320px;
        font-size: 2.05rem;
        line-height: 1.05;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .theme-modern .mt-subhead {
        max-width: 320px;
    }

    .theme-modern .mt-node-header,
    .theme-modern .mt-node-actions,
    .theme-modern .mt-live-radio-header {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-modern .mt-live-radio-grid {
        grid-template-columns: 1fr;
    }

    .theme-modern .mt-live-room-actions,
    .theme-modern .mt-live-comment-form {
        flex-direction: column;
    }

    .theme-modern .mt-live-room-entry {
        grid-template-columns: 1fr;
    }

    .theme-modern .mt-live-room-entry-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-modern .mt-live-delete-room {
        min-height: 38px;
    }

    .theme-modern .mt-live-queue-row {
        grid-template-columns: 24px 42px minmax(0, 1fr);
    }

    .theme-modern .mt-live-queue-row button {
        grid-column: span 3;
        width: 100%;
    }

    .theme-modern .music-tree-stage {
        min-height: 430px;
        padding: 12px;
    }

    .theme-modern .music-tree-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-modern .music-tree-toolbar {
        justify-content: stretch;
    }

    .theme-modern .music-tree-toolbar button {
        flex: 1 1 0;
    }

    .theme-modern .music-tree-children {
        grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
        gap: 10px;
    }

    .theme-modern .music-tree-branch {
        font-size: 0.78rem;
    }

    .theme-modern .mt-node-orbit {
        min-height: 470px;
    }

    .theme-modern .mt-node {
        width: 112px;
        min-height: 60px;
        font-size: 0.82rem;
    }

    .theme-modern .mt-node-self {
        width: 134px;
    }

    .theme-modern #tracks-tbody {
        grid-template-columns: 1fr;
    }

    .theme-modern .bottom-player,
    .theme-modern .custom-player {
        max-width: 100vw;
        overflow: hidden;
    }

    .theme-modern .player-center,
    .theme-modern .player-right {
        min-width: 0;
    }

    .theme-modern .seek-bar {
        max-width: 150px;
        min-width: 0;
    }

    .theme-modern .volume-slider {
        display: none;
    }

    .theme-modern .mt-page-dock {
        padding: 0 12px;
        margin-bottom: 104px;
    }

    .theme-modern .mt-page-dock-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-modern #mt-page-frame {
        min-height: 70vh;
    }

    .theme-modern .playlist-modal-content {
        margin: 74px auto 112px;
    }

    .theme-modern .playlist-modal-actions {
        flex-direction: column-reverse;
    }

    .theme-modern .playlist-modal-actions .btn {
        width: 100%;
    }
}

/* Future player cascade overrides */
.theme-modern {
    --player-height: clamp(176px, 18vh, 204px);
}

.theme-modern .container {
    padding-bottom: calc(var(--player-height) + 34px);
}

.theme-modern .bottom-player {
    height: var(--player-height);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    align-items: stretch;
    justify-content: center;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(8, 11, 14, 0.80), rgba(4, 6, 8, 0.98)),
        linear-gradient(90deg, rgba(55, 242, 166, 0.10), rgba(77, 182, 255, 0.08) 50%, rgba(255, 75, 126, 0.06));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px) saturate(1.2);
}

.theme-modern .custom-player {
    position: relative !important;
    inset: auto !important;
    width: min(1540px, 100%);
    height: 100% !important;
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(420px, 1fr) minmax(220px, 300px);
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    padding: 14px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        rgba(7, 10, 13, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 22px 70px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1120px) {
    .theme-modern {
        --player-height: 178px;
    }

    .theme-modern .custom-player {
        grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 12px 16px;
    }

    .theme-modern .player-right {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
        grid-template-rows: auto;
    }
}

@media (max-width: 720px) {
    .theme-modern {
        --player-height: 270px;
    }

    .theme-modern .container {
        padding-bottom: calc(var(--player-height) + 22px);
    }

    .theme-modern .bottom-player {
        padding: 8px;
    }

    .theme-modern .custom-player {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 10px;
    }

    .theme-modern .player-left,
    .theme-modern .player-center,
    .theme-modern .player-right {
        width: 100%;
        flex: auto !important;
        min-width: 0 !important;
    }

    .theme-modern .player-center {
        grid-template-rows: auto 42px auto;
        height: auto;
    }

    .theme-modern .player-right {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 420px) {
    .theme-modern {
        --player-height: 286px;
    }
}

/* Top songs leaderboard */
.theme-modern.top-tracks-page .social-page {
    width: min(1180px, calc(100% - 32px));
    margin-top: 0;
}

.theme-modern.top-tracks-page .top-tracks-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 24px;
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
        linear-gradient(90deg, rgba(103, 244, 184, 0.11), rgba(101, 200, 255, 0.075) 58%, rgba(255, 111, 155, 0.055)),
        rgba(8, 12, 16, 0.88);
}

.theme-modern.top-tracks-page .top-tracks-hero-copy {
    min-width: 0;
}

.theme-modern.top-tracks-page .top-tracks-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(2.15rem, 6vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: 0;
    text-shadow: none;
}

.theme-modern.top-tracks-page .top-tracks-hero .muted {
    max-width: 620px;
    font-size: 1rem;
}

.theme-modern.top-tracks-page .top-tracks-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.theme-modern.top-tracks-page .top-tracks-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #c5cfdb;
    font-size: 0.84rem;
    white-space: nowrap;
}

.theme-modern.top-tracks-page .top-tracks-stats strong {
    color: #f8fbff;
    font-size: 0.98rem;
}

.theme-modern.top-tracks-page .top-tracks-hero-art {
    display: grid;
    grid-template-columns: repeat(3, 54px);
    grid-auto-rows: 54px;
    gap: 8px;
    align-self: stretch;
    place-content: center;
}

.theme-modern.top-tracks-page .top-tracks-hero-art img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.theme-modern.top-tracks-page .top-tracks-hero-art img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    width: 116px;
    height: 116px;
}

.theme-modern.top-tracks-page .top-track-list {
    display: grid;
    gap: 10px;
}

.theme-modern.top-tracks-page .top-track-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 54px 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 106px;
    padding: 14px 16px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
        rgba(9, 13, 17, 0.88);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.theme-modern.top-tracks-page .top-track-card:hover,
.theme-modern.top-tracks-page .top-track-card:focus-within {
    transform: translateY(-1px);
    border-color: rgba(103, 244, 184, 0.45);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.theme-modern.top-tracks-page .top-track-card.playing {
    border-color: rgba(103, 244, 184, 0.68);
    background:
        linear-gradient(135deg, rgba(103, 244, 184, 0.145), rgba(101, 200, 255, 0.075)),
        rgba(9, 13, 17, 0.94);
}

.theme-modern.top-tracks-page .top-track-card.playing::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #70ffc1, #65c8ff, #ff6f9b);
}

.theme-modern.top-tracks-page .rank-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #dce5f0;
    font-size: 0.92rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.theme-modern.top-tracks-page .track-play-button,
.theme-modern.top-tracks-page .track-action {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.075);
    color: #f6f9ff;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.theme-modern.top-tracks-page .track-play-button:hover,
.theme-modern.top-tracks-page .track-action:hover,
.theme-modern.top-tracks-page .track-play-button:focus-visible,
.theme-modern.top-tracks-page .track-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(103, 244, 184, 0.60);
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    outline: none;
}

.theme-modern.top-tracks-page .track-play-button {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.theme-modern.top-tracks-page .track-play-button.is-playing {
    color: #04130d;
    border-color: transparent;
    background: linear-gradient(135deg, #70ffc1, #65c8ff 70%, #ff6f9b);
    box-shadow: 0 12px 26px rgba(55, 242, 166, 0.18);
}

.theme-modern.top-tracks-page .play-symbol {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
}

.theme-modern.top-tracks-page .track-play-button.is-playing .play-symbol {
    width: 15px;
    height: 17px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66% 100%);
}

.theme-modern.top-tracks-page .track-artwork-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(103, 244, 184, 0.16), rgba(101, 200, 255, 0.10)),
        #121820;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.7rem;
    font-weight: 900;
}

.theme-modern.top-tracks-page .top-track-card .track-artwork-frame img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.theme-modern.top-tracks-page .top-track-copy {
    min-width: 0;
}

.theme-modern.top-tracks-page .top-track-copy h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: #f8fbff;
    font-size: clamp(0.98rem, 1.3vw, 1.16rem);
    line-height: 1.22;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-modern.top-tracks-page .top-track-copy .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-modern.top-tracks-page .track-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.theme-modern.top-tracks-page .track-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #aeb9c6;
    font-size: 0.74rem;
    line-height: 1;
    white-space: nowrap;
}

.theme-modern.top-tracks-page .top-track-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: 0;
}

.theme-modern.top-tracks-page .track-action {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 900;
}

.theme-modern.top-tracks-page .like-action {
    grid-auto-flow: column;
    gap: 7px;
    min-width: 76px;
}

.theme-modern.top-tracks-page .like-action.voted {
    color: #ff8aad;
    border-color: rgba(255, 138, 173, 0.55);
    background: rgba(255, 111, 155, 0.12);
}

.theme-modern.top-tracks-page .track-action-count {
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.theme-modern.top-tracks-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .theme-modern.top-tracks-page .top-tracks-hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .theme-modern.top-tracks-page .top-tracks-hero .btn-primary {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .theme-modern.top-tracks-page .top-track-card {
        grid-template-columns: 42px 52px 70px minmax(0, 1fr);
    }

    .theme-modern.top-tracks-page .top-track-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .theme-modern.top-tracks-page .social-page {
        width: min(100% - 20px, 1180px);
    }

    .theme-modern.top-tracks-page .top-tracks-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 14px;
    }

    .theme-modern.top-tracks-page .top-tracks-hero-art {
        grid-template-columns: repeat(5, minmax(42px, 1fr));
        grid-auto-rows: auto;
        width: 100%;
    }

    .theme-modern.top-tracks-page .top-tracks-hero-art img,
    .theme-modern.top-tracks-page .top-tracks-hero-art img:first-child {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .theme-modern.top-tracks-page .top-track-card {
        grid-template-columns: 38px 48px minmax(0, 1fr);
        gap: 11px;
        min-height: 96px;
        padding: 12px;
    }

    .theme-modern.top-tracks-page .track-artwork-frame {
        display: none;
    }

    .theme-modern.top-tracks-page .track-play-button {
        width: 48px;
        height: 48px;
    }

    .theme-modern.top-tracks-page .rank-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .theme-modern.top-tracks-page .top-track-actions {
        justify-content: stretch;
    }

    .theme-modern.top-tracks-page .like-action {
        flex: 1;
    }
}

@media (max-width: 430px) {
    .theme-modern.top-tracks-page .top-track-card {
        grid-template-columns: 34px 44px minmax(0, 1fr);
        gap: 9px;
    }

    .theme-modern.top-tracks-page .track-play-button {
        width: 44px;
        height: 44px;
    }

    .theme-modern.top-tracks-page .track-meta-row span {
        max-width: 100%;
    }
}
