:root {
    --color-bg: #121212;
    --color-bg-glass: rgba(75, 0, 130, 0.07);
    --color-text: #ffffff;
    --color-text-soft: #cccccc;
    --color-accent: #a020f0;
    --color-accent-light: #ba55d3;
    --color-accent-soft: rgba(142, 32, 189, 0.18);
    --color-accent-faint: rgba(146, 3, 168, 0.10);
    --color-border: rgba(255, 255, 255, 0.15);
    --color-glow-1: #8e20bd;
    --color-glow-2: #9203A8;
    --color-rainbow-gradient: linear-gradient(90deg, #ff4d5d, #ff9f1c, #ffe45e, #42d96b, #00c2ff, #b76cff);
    --color-pride-red: #ff4d5d;
    --color-pride-orange: #ff9f1c;
    --color-pride-yellow: #ffe45e;
    --color-pride-green: #42d96b;
    --color-pride-blue: #00c2ff;
    --color-pride-violet: #b76cff;
    --bg-overlay-opacity: 1;

    --font-family: 'Nunito', sans-serif;
    --font-size-base: 16px;
    --font-weight-bold: 700;

    --transition-speed: 0.3s;
    --transition-fast: 0.15s;
    --border-radius: 15px;
    --blur-amount: 10px;

    --sidebar-width: 260px;
    --playback-height: 90px;
    --app-viewport-height: 100vh;
}

@supports (height: 100dvh) {
    :root {
        --app-viewport-height: 100dvh;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

/* Home Dashboard */
.home-dashboard {
    margin-bottom: 12px;
    display: grid;
    gap: 10px;
}

.home-panel-head h2 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 0.98rem;
    line-height: 1.1;
}

.home-panel-head p {
    margin: 4px 0 0;
    color: var(--color-text-soft);
    font-size: 0.8rem;
}

.home-mood-title {
    display: none;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    flex-wrap: wrap;
}

.home-mood-title .home-panel-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.home-mood-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    align-self: center;
}

.home-mood-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-soft);
    font-family: 'Kanit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast) ease, color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
.home-mood-tab:hover {
    color: var(--color-text);
    transform: translateY(-1px);
}
}

.home-mood-tab.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
    color: var(--color-text);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.content-controls.has-home-tabs {
    flex-wrap: wrap;
    align-items: flex-start;
}

.content-controls.has-home-tabs .search-bar {
    flex-basis: 100%;
}

/* Home dashboard */
body.home-dashboard-active .main-content {
    background:
        radial-gradient(circle at 48% -10%, var(--color-accent-soft), transparent 36%),
        transparent;
}

.home-dashboard {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 2px 0 28px;
    gap: 30px;
}

.home-dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    align-items: end;
    gap: 28px;
}

.home-dashboard-heading {
    min-width: 0;
}

.home-dashboard-heading h1 {
    margin: 0;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(2rem, 3.3vw, 3.7rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.home-dashboard-search {
    box-sizing: border-box;
    min-height: 52px;
    padding: 5px 8px 5px 15px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.085), rgba(255,255,255,0.055));
    box-shadow: 0 14px 35px rgba(0,0,0,0.14);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-dashboard-search:focus-within {
    border-color: var(--color-accent-light);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px var(--color-accent-faint), 0 16px 38px rgba(0,0,0,0.18);
}

.home-dashboard-search > .material-symbols-outlined {
    color: var(--color-text-soft);
    font-size: 22px;
}

.home-dashboard-search input {
    min-width: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-weight: 700;
    user-select: text;
    -webkit-user-select: text;
}

.home-dashboard-search input::placeholder {
    color: var(--color-text-soft);
    opacity: 0.85;
}

.home-dashboard-search button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-dashboard-search button:hover {
    transform: scale(1.04);
    filter: brightness(1.12);
}
}

.home-feature {
    position: relative;
    isolation: isolate;
    min-height: 350px;
    padding: clamp(24px, 3vw, 42px) clamp(28px, 4vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    align-items: center;
    gap: clamp(32px, 6vw, 92px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: clamp(24px, 2.6vw, 36px);
    background:
        linear-gradient(118deg, rgba(20,12,27,0.97), rgba(78,18,96,0.86) 58%, rgba(22,13,31,0.94)),
        var(--color-bg-glass);
    box-shadow: 0 26px 70px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.home-feature::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 78% 50%, rgba(200,63,255,0.2), transparent 32%),
        linear-gradient(110deg, rgba(0,0,0,0.16), transparent 54%, var(--color-accent-faint));
    pointer-events: none;
}

.home-feature-backdrop {
    position: absolute;
    z-index: -2;
    inset: -45px;
    background-position: center;
    background-size: cover;
    filter: blur(54px) saturate(1.35);
    opacity: 0.3;
    transform: scale(1.08);
    transition: background-image 260ms ease;
}

.home-feed-promo-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.home-feed-promo-copy h2 {
    max-width: 720px;
    margin: 0;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(2.35rem, 4.5vw, 4.8rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.home-feed-promo-text > p {
    max-width: 690px;
    margin: 18px 0 0;
    color: rgba(255,255,255,0.76);
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    line-height: 1.55;
}

.home-feed-cta {
    min-height: 52px;
    margin-top: 24px;
    padding: 0 18px 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #b128ff, #7b15e8);
    color: #fff;
    box-shadow: 0 16px 36px rgba(142,32,189,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-feed-cta:hover {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(1.1);
    box-shadow: 0 20px 42px rgba(142,32,189,0.42), inset 0 1px 0 rgba(255,255,255,0.24);
}
}

.home-feed-cta > .material-symbols-outlined:first-child {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    font-size: 19px;
}

.home-feed-cta-arrow {
    margin-left: 4px;
    font-size: 19px;
    transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-feed-cta:hover .home-feed-cta-arrow {
    transform: translateX(3px);
}
}

.home-feed-preview {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    aspect-ratio: 4 / 5;
    justify-self: end;
    perspective: 900px;
}

.home-feed-preview::before,
.home-feed-preview::after {
    content: '';
    position: absolute;
    inset: 5% 4%;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    background: rgba(255,255,255,0.07);
    box-shadow: 0 22px 46px rgba(0,0,0,0.24);
}

.home-feed-preview::before {
    transform: translate(-26px, 5px) rotate(-6deg);
    opacity: 0.55;
}

.home-feed-preview::after {
    transform: translate(25px, 8px) rotate(6deg);
    opacity: 0.38;
}

.home-feed-preview-card {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 30px;
    background: #211629;
    box-shadow: 0 32px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.14);
    transform: rotate(1.5deg);
}

.home-feature-artwork {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-feed-preview-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,3,8,0.08) 28%, rgba(5,3,8,0.18) 48%, rgba(5,3,8,0.94) 100%);
}

.home-feed-preview-actions {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 78px;
    display: grid;
    gap: 10px;
}

.home-feed-preview-actions .material-symbols-outlined {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(10,7,14,0.55);
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(10px);
}

.home-feed-preview-copy {
    position: absolute;
    z-index: 3;
    right: 58px;
    bottom: 22px;
    left: 18px;
    min-width: 0;
    display: grid;
    gap: 3px;
}

.home-feed-preview-copy strong,
.home-feed-preview-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-preview-copy strong {
    font-family: 'Kanit', var(--font-family);
    font-size: 1.15rem;
    line-height: 1.1;
}

.home-feed-preview-copy span {
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
}

.home-dashboard-section {
    min-width: 0;
}

.home-dashboard-section-head {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home-dashboard-section-head h2,
.home-guest-cta h2 {
    margin: 0;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.home-section-link .material-symbols-outlined {
    font-size: 18px;
}

.home-mood-rail-controls {
    display: none;
}

.home-mood-rail-controls button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: var(--color-text);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-mood-rail-controls button:hover:not(:disabled) {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-light);
    transform: translateY(-1px);
}
}

.home-mood-rail-controls button:disabled {
    opacity: 0.32;
    cursor: default;
}

.home-mood-rail-controls .material-symbols-outlined {
    font-size: 20px;
}

@media (min-width: 901px) {
    .home-mood-rail-controls {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
}

.home-section-link {
    padding: 7px 4px;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-section-link:hover {
    color: var(--color-accent-light);
    transform: translateX(2px);
}
}

.home-mood-rail,
.home-song-rail {
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-soft) transparent;
    -webkit-overflow-scrolling: touch;
}

.home-mood-rail {
    grid-auto-columns: clamp(170px, 16vw, 210px);
    gap: 12px;
    padding: 2px 2px 10px;
}

.home-song-rail {
    grid-auto-columns: clamp(170px, 16vw, 210px);
    gap: 14px;
    padding: 2px 2px 12px;
}

.home-mood-card,
.home-song-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    color: var(--color-text);
    text-align: left;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 190ms cubic-bezier(0.2,0.8,0.2,1), border-color 160ms ease, background 160ms ease, box-shadow 190ms ease;
}

.home-mood-card {
    border-radius: 18px;
}

.home-song-card {
    border-radius: 20px;
}

@media (hover: hover) and (pointer: fine) {
.home-mood-card:hover,
.home-song-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.23);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.05));
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}
}

.home-mood-card:focus-visible,
.home-song-card:focus-visible,
.home-feed-cta:focus-visible,
.home-section-link:focus-visible,
.home-guest-cta button:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 3px;
}

.home-mood-card > .artist-card-image,
.home-mood-card > .artist-card-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 240ms ease, filter 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-mood-card:hover > .artist-card-image {
    transform: scale(1.04);
    filter: saturate(1.08);
}
}

.home-mood-card-info {
    min-width: 0;
    padding: 11px 12px 13px;
}

.home-mood-card-title {
    overflow: hidden;
    font-family: 'Kanit', var(--font-family);
    font-size: 0.98rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-mood-card-count {
    margin-top: 1px;
    color: var(--color-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
}

.home-song-card-artwork {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.home-song-card-artwork img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
.home-song-card:hover .home-song-card-artwork img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.02);
}
}

.home-song-card-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(5px) scale(0.92);
    transition: opacity 160ms ease, transform 190ms ease;
}

.home-song-card:focus-visible .home-song-card-play {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
.home-song-card:hover .home-song-card-play {
    opacity: 1;
    transform: translateY(0) scale(1);
}
}

.home-song-rank {
    position: absolute;
    top: 9px;
    left: 9px;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    background: rgba(10,10,15,0.75);
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: 0.85rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.home-song-rank-1 { background: rgba(176,126,18,0.88); }
.home-song-rank-2 { background: rgba(104,113,130,0.9); }
.home-song-rank-3 { background: rgba(132,72,36,0.9); }

.home-song-card-copy {
    min-width: 0;
    padding: 12px 13px 14px;
    display: flex;
    flex-direction: column;
}

.home-song-card-copy strong,
.home-song-card-copy > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-song-card-copy strong {
    font-family: 'Kanit', var(--font-family);
    font-size: 0.94rem;
    line-height: 1.2;
}

.home-song-card-copy > span {
    margin-top: 3px;
    color: var(--color-text-soft);
    font-size: 0.76rem;
}

.home-song-card-copy small {
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-accent-faint);
    color: var(--color-accent-light);
    font-size: 0.66rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-dashboard-empty {
    grid-column: 1 / -1;
    min-width: min(460px, 80vw);
    padding: 22px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 18px;
    color: var(--color-text-soft);
    text-align: center;
}

.home-mood-rail.is-loading:empty,
.home-song-rail.is-loading:empty {
    min-height: 190px;
    border-radius: 20px;
    background: linear-gradient(100deg, rgba(255,255,255,0.035) 20%, rgba(255,255,255,0.09) 40%, rgba(255,255,255,0.035) 60%);
    background-size: 220% 100%;
    animation: homeDashboardShimmer 1.4s linear infinite;
}

.home-guest-cta {
    box-sizing: border-box;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 22px;
    background: linear-gradient(120deg, var(--color-accent-soft), rgba(255,255,255,0.035));
}

.home-guest-cta[hidden] {
    display: none;
}

.home-guest-cta-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255,255,255,0.1);
    color: var(--color-accent-light);
    font-size: 28px;
}

.home-guest-cta p {
    margin: 5px 0 0;
    color: var(--color-text-soft);
    font-size: 0.86rem;
}

.home-guest-cta button {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-bg);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@keyframes homeDashboardShimmer {
    to { background-position: -220% 0; }
}

@media (max-width: 1180px) {
    .home-feature {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
        gap: clamp(28px, 4vw, 52px);
    }
}

@media (max-width: 900px) {
    .home-dashboard {
        gap: 24px;
        padding-bottom: 12px;
    }

    .home-dashboard-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .home-dashboard-heading h1 {
        font-size: clamp(2rem, 8.5vw, 3rem);
    }

    .home-feature {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
        gap: 28px;
        border-radius: 26px;
    }

    .home-feed-promo-copy h2 {
        font-size: clamp(2.15rem, 6vw, 3.6rem);
    }

    .home-song-card-play {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .home-dashboard-header {
        padding-inline: 2px;
    }

    .home-dashboard-search {
        min-height: 48px;
    }

    .home-dashboard-search button {
        width: 38px;
        height: 38px;
    }

    .home-feature {
        padding: 26px 20px 30px;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        border-radius: 22px;
    }

    .home-feed-promo-copy {
        display: contents;
    }

    .home-feed-promo-text {
        display: contents;
        order: 1;
        text-align: left;
    }

    .home-feed-promo-copy h2 {
        order: 1;
        font-size: clamp(2.1rem, 11vw, 3.15rem);
    }

    .home-feed-promo-text > p {
        order: 3;
        margin-top: 0;
        font-size: 0.9rem;
    }

    .home-feed-cta {
        order: 4;
        width: 100%;
        margin-top: 0;
    }

    .home-feed-preview {
        order: 2;
        width: min(82vw, 300px);
        justify-self: center;
    }

    .home-feed-preview-card {
        border-radius: 26px;
    }

    .home-dashboard-section-head {
        align-items: center;
    }

    .home-dashboard-section-head h2,
    .home-guest-cta h2 {
        font-size: 1.35rem;
    }

    .home-section-link {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .home-mood-rail {
        grid-auto-columns: minmax(162px, 48vw);
        margin-inline: -12px;
        padding-inline: 12px;
        scroll-padding-inline: 12px;
    }

    .home-song-rail {
        grid-auto-columns: minmax(162px, 48vw);
        margin-inline: -12px;
        padding-inline: 12px;
        scroll-padding-inline: 12px;
    }

    .home-mood-card-info {
        padding: 9px 10px 11px;
    }

    .home-guest-cta {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 16px;
    }

    .home-guest-cta-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 24px;
    }

    .home-guest-cta button {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
}

body.app-route-booting #playlistHeader,
body.app-route-booting #contentControls,
body.app-route-booting #songTable,
body.app-route-booting #songGrid,
body.app-route-booting #paginationControls,
body.app-route-booting #noPermission {
    visibility: hidden;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body.auth-tab-active,
body.auth-tab-active .main-content,
body.auth-tab-active #authTabContainer {
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

/* Profile is an isolated overlay route. Keep the current library view intact
   underneath it so returning never depends on another API response or on a
   loader re-applying the previous page layout. */
body.auth-tab-active .main-content > :not(#authTabContainer) {
    display: none !important;
}

/* A route is revealed only after its complete layout has been committed.
   This prevents stale sections and competing entrance animations from being
   visible during asynchronous page switches. */
body.library-route-switching .main-content > :not(#authTabContainer):not(#settingsView) {
    visibility: hidden !important;
    pointer-events: none !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 25% 50%, var(--color-glow-1), transparent 50%),
                radial-gradient(circle at 70% 50%, var(--color-glow-2), transparent 50%);
    background-blend-mode: screen;
    filter: blur(50px) brightness(1.0);
    opacity: var(--bg-overlay-opacity);
    z-index: -999;
}

* {
    scrollbar-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.glass {
    backdrop-filter: blur(var(--blur-amount));
    background: var(--color-bg-glass);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    border: 1px solid var(--color-border);
}

/* ========================
   SIDEBAR
   ======================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    border-right: 1px solid var(--color-border);
    border-radius: 1em;
    background: rgba(18, 18, 18, 0.20);
    background: color-mix(in srgb, var(--color-bg) 20%, transparent);
    box-shadow: 12px 0 34px rgba(0,0,0,0.24), inset -1px 0 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    overflow-y: auto;
    animation: sidebarReveal 180ms ease-out;
    opacity: 1;
}

@keyframes sidebarReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 20px;
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-section {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-label {
    font-family: 'Kanit', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-soft);
    padding: 8px 10px 4px;
    opacity: 0.6;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast) ease,
                background-color var(--transition-fast) ease,
                box-shadow var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
}
}

.sidebar-link.active {
    background: linear-gradient(90deg, var(--color-accent-soft), var(--color-accent-faint));
    box-shadow: inset 0 0 0 1px var(--color-accent-faint);
    color: var(--color-text);
}

.sidebar-link .material-symbols-outlined {
    font-size: 1.3rem;
}

.sidebar-account-avatar-shell {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 24px;
}

.sidebar-account-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 10px;
}

.sidebar-bottom::before {
    content: "";
    display: block;
    border-top: 1px solid var(--color-border);
    margin-bottom: 12px;
}

/* ========================
   MOBILE HEADER & OVERLAY
   ======================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
}

.mobile-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.22);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 0s linear 260ms;
    will-change: opacity;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* ========================
   MAIN CONTENT
   ======================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 24px 30px;
    padding-bottom: calc(var(--playback-height) + 40px);
    min-height: 100vh;
    opacity: 0;
    animation: fadeIn var(--transition-speed) 0.3s forwards;
}

.app-native-dropdown {
    position: relative;
    width: 100%;
    z-index: 1;
}

.app-native-dropdown.is-open {
    z-index: 6500;
}

.app-native-dropdown-source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.app-native-dropdown-toggle {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    outline: none;
}

.app-native-dropdown-toggle:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(160,32,240,0.16);
}

.app-native-dropdown-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-native-dropdown-arrow {
    font-size: 1.1rem;
    transition: transform 0.18s ease;
}

.app-native-dropdown.is-open .app-native-dropdown-arrow {
    transform: rotate(180deg);
}

.app-native-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 6510;
    display: none;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: rgba(16,16,16,0.95);
    box-shadow: 0 12px 30px rgba(0,0,0,0.36);
}

.app-native-dropdown.is-open .app-native-dropdown-menu {
    display: flex;
}

.app-native-dropdown-menu.is-portal-open {
    position: fixed;
    left: 0;
    right: auto;
    top: 0;
    display: flex;
    z-index: 12500;
}

.app-native-dropdown-option {
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-soft);
    font-family: var(--font-family);
    font-size: 0.9rem;
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
.app-native-dropdown-option:hover:not(.is-disabled) {
    background: rgba(255,255,255,0.1);
    color: var(--color-text);
}
}

.app-native-dropdown-option.is-active {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    color: #fff;
}

.app-native-dropdown-option.is-disabled {
    opacity: 0.5;
    cursor: default;
}

.auth-tab-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    min-height: 60vh;
    overflow-x: clip;
}

.auth-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
    overflow-x: clip;
}

@media (min-width: 1100px) {
    .auth-cards-row {
        grid-template-columns: minmax(0, 680px) minmax(0, 680px);
        justify-content: flex-start;
    }
}

.auth-native-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 20px;
    background:
        linear-gradient(165deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.06)),
        rgba(8, 10, 18, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 18px 48px rgba(0,0,0,0.30);
    display: grid;
    gap: 16px;
    max-width: 680px;
    min-width: 0;
    overflow-x: clip;
}

.auth-native-card .hidden {
    display: none !important;
}

.auth-native-card.hidden {
    display: none !important;
}


.auth-native-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-soft);
    line-height: 1.45;
}

.auth-native-mode {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    gap: 6px;
}

.auth-native-mode button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-soft);
    background: transparent;
    cursor: pointer;
}

.auth-native-mode button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.auth-native-form {
    display: grid;
    gap: 12px;
}

.auth-native-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-native-field {
    display: grid;
    gap: 6px;
}

.auth-native-field label {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    font-weight: 700;
}

.auth-native-field input[type="text"],
.auth-native-field input[type="password"],
.auth-native-field input[type="file"],
.auth-native-field textarea,
.auth-native-field input[type="range"] {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.9rem;
    outline: none;
}

.auth-native-field input[type="file"] {
    padding: 8px 10px;
}

.auth-native-field textarea {
    min-height: 92px;
    resize: vertical;
}

.auth-native-field input[type="range"] {
    padding: 8px 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.auth-native-field input[type="text"]:focus,
.auth-native-field input[type="password"]:focus,
.auth-native-field input[type="file"]:focus,
.auth-native-field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(160,32,240,0.16);
}

.auth-native-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-text-soft);
    font-size: 0.88rem;
}

.auth-native-checkbox input {
    margin-top: 3px;
}

.auth-native-checkbox a {
    color: var(--color-accent-light);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
.auth-native-checkbox a:hover {
    text-decoration: underline;
}
}

.auth-native-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-profile-actions-row {
    justify-content: center;
    flex-wrap: wrap;
}

.auth-profile-actions-row button {
    width: auto;
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
}

.auth-native-actions button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    padding: 11px 18px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.auth-native-actions button.secondary {
    background: rgba(255,255,255,0.10);
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
.auth-native-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.34);
    filter: brightness(1.02);
}
}

@media (hover: hover) and (pointer: fine) {
.auth-native-actions button.secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
}

.auth-native-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.35);
}

.auth-native-status {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.22);
    color: var(--color-text-soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-native-status.error {
    border-color: rgba(255, 96, 96, 0.35);
    color: #ffd7d7;
}

.auth-native-status.success {
    border-color: rgba(86, 255, 169, 0.35);
    color: #d4ffe8;
}

.auth-native-profile {
    display: grid;
    gap: 12px;
}

.auth-native-profile-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}


.auth-native-user {
    font-family: 'Kanit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.auth-profile-overview-media {
    display: grid;
    gap: 8px;
    width: 132px;
    flex: 0 0 132px;
    min-width: 0;
}

.auth-profile-overview-preview {
    width: 132px;
    height: 132px;
}

.auth-profile-overview-image-actions button {
    width: 100%;
}

.auth-profile-overview-image-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 132px;
    max-width: 100%;
    min-width: 0;
    justify-self: center;
    margin-inline: auto;
}

.auth-profile-overview-image-actions .auth-public-file-btn {
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    gap: 6px;
    font-size: 0.82rem;
    line-height: 1.1;
}

.auth-profile-overview-image-actions .auth-public-file-btn > span:last-child {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.auth-profile-overview-image-actions .auth-public-file-btn .material-symbols-outlined {
    font-size: 1rem;
}

.auth-profile-overview-main {
    display: grid;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.auth-profile-overview-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.auth-profile-handle {
    color: var(--color-accent-light);
    font-size: 0.9rem;
    line-height: 1.2;
    margin-top: -4px;
}

.auth-public-profile {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding-top: 12px;
    min-width: 0;
}

.auth-public-profile-subtitle {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.88rem;
    line-height: 1.4;
}

.auth-public-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.auth-public-status-badge .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.auth-public-status-badge[data-status="draft"] {
    border-color: rgba(80,160,255,0.35);
    color: #d7ebff;
    background: rgba(80,160,255,0.12);
}

.auth-public-status-badge[data-status="public"] {
    border-color: rgba(86,255,169,0.35);
    color: #cffff0;
    background: rgba(86,255,169,0.12);
}

.auth-public-status-badge[data-status="pending"] {
    border-color: rgba(255,208,86,0.35);
    color: #fff1c7;
    background: rgba(255,208,86,0.12);
}

.auth-public-status-badge[data-status="rejected"] {
    border-color: rgba(255,96,96,0.35);
    color: #ffd7d7;
    background: rgba(255,96,96,0.12);
}

.auth-public-desc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auth-public-desc-label .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-text-soft);
}

.auth-public-desc-label strong {
    font-weight: 800;
    color: var(--color-text);
}

.auth-public-desc-counter {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-text-soft);
}

.auth-public-description-input {
    resize: none !important;
}

.auth-public-profile-preview-wrap {
    width: 132px;
    height: 132px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

.auth-public-profile-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-public-profile-inline-actions {
    justify-content: stretch;
}

.auth-public-profile-inline-actions button {
    flex: 1;
    justify-content: center;
}

.auth-public-file-input {
    display: none !important;
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.auth-public-file-btn {
    flex: 0 0 auto;
    min-width: min(150px, 100%);
    max-width: 100%;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    padding: 10px 16px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    background: rgba(255,255,255,0.10);
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-public-file-btn .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
.auth-public-file-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}
}

.auth-public-file-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.35);
}

.auth-public-crop-hint {
    width: min(220px, 100%);
    height: 1px;
    margin: 2px auto 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
    opacity: 0.95;
    pointer-events: none;
}

.auth-public-profile-main-actions {
    align-items: center;
    justify-content: center !important;
    width: 100%;
}

.auth-public-profile-main-actions button {
    width: auto !important;
    min-width: 190px;
    flex: 0 1 auto;
    justify-content: center;
    margin-inline: auto;
}

/* Action-specific button colors for clearer grouping */
.auth-profile-actions-row button[type="submit"] {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    border-color: rgba(196,132,252,0.45);
}

#authLogoutBtn {
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
    color: #fff !important;
    border-color: rgba(96,165,250,0.5) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

#authDeleteBtn {
    background: linear-gradient(135deg, #dc2626, #fb7185) !important;
    color: #fff !important;
    border-color: rgba(251,113,133,0.48) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

#authPublicSaveBtn {
    background: linear-gradient(135deg, #d97706, #fbbf24) !important;
    color: #fff !important;
    border-color: rgba(251,191,36,0.5) !important;
}

#authPublicTakeDownBtn {
    background: linear-gradient(135deg, #d97706, #fbbf24) !important;
    color: #fff !important;
    border-color: rgba(251,191,36,0.5) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.auth-public-lock-note {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--color-text-soft);
    background: rgba(255,255,255,0.03);
    font-size: 0.88rem;
    line-height: 1.4;
}

.auth-public-profile.hidden {
    display: none !important;
}

.account-playlist-card .artist-card-status-badge {
    min-width: 70px;
    justify-content: center;
}

body.auth-tab-active #noPermission,
body.auth-tab-active #favoritesViewToggle,
body.auth-tab-active #playlistHeader,
body.auth-tab-active #contentControls,
body.auth-tab-active #songTable,
body.auth-tab-active #songGrid,
body.auth-tab-active #homeDashboard,
body.auth-tab-active #mySongsDashboardHeader,
body.auth-tab-active .my-songs-manager,
body.auth-tab-active #paginationControls,
body.auth-tab-active #scrollSentinel {
    display: none !important;
}

/* ========================
   HERO SECTION
   ======================== */
.hero-section {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 48px 30px 32px;
    background: transparent;
    border: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.hero-section.is-public-account-profile .hero-inner {
    align-items: flex-start;
}


.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.play-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    color: white;
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
.play-all-btn:hover {
    box-shadow: 0 4px 20px rgba(160,32,240,0.4);
    filter: brightness(1.04);
}
}

.shuffle-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
.shuffle-all-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
}

#sharePlaylist,
#favoriteAlbumBtn,
#reportAccountProfileBtn,
#editPlaylistStyleBtn,
#followPlaylistBtn,
#playlistActionsBtn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hero-actions .profile-follow-btn {
    min-height: 46px;
    padding: 0 16px;
    gap: 7px;
    border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}

.hero-actions .profile-follow-btn.is-following {
    background: color-mix(in srgb, var(--color-accent) 20%, rgba(255,255,255,0.08));
    border-color: color-mix(in srgb, var(--color-accent) 72%, white 8%);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.profile-follow-count {
    min-width: 1.45em;
    padding-left: 7px;
    border-left: 1px solid color-mix(in srgb, currentColor 26%, transparent);
    color: var(--color-text-soft);
    font-size: 0.82em;
    font-variant-numeric: tabular-nums;
}

.profile-follow-btn:disabled {
    cursor: wait;
    opacity: 0.62;
}

#addSongsToPlaylistBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#addSongsToPlaylistBtn .material-symbols-outlined {
    font-size: 1.2rem;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
#addSongsToPlaylistBtn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
}

#followPlaylistBtn.active {
    background: linear-gradient(90deg, rgba(160,32,240,0.22), rgba(186,85,211,0.16));
    border-color: rgba(186,85,211,0.45);
    color: var(--color-accent-light);
}

#followPlaylistBtn.active .material-symbols-outlined {
    color: var(--color-accent-light);
}

#addSongsToPlaylistBtn:disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* ========================
   PLAYLIST COVER
   ======================== */
.playlist-cover {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: none;
    flex-shrink: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-title {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.playlist-title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    vertical-align: top;
}

.playlist-title-label {
    min-width: 0;
}

.playlist-desc {
    font-size: 0.95rem;
    color: var(--color-text-soft);
    line-height: 1.5;
    max-width: 600px;
    opacity: 0.8;
    white-space: pre-line;
}

.playlist-desc-main {
    white-space: pre-line;
}

.playlist-desc-meta-row {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.playlist-desc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text);
}

.playlist-desc-meta-icon {
    font-size: 1.02em;
    line-height: 1;
    opacity: 0.9;
}

.playlist-desc-meta-value {
    font-weight: 700;
}

.playlist-desc-meta-separator {
    opacity: 0.5;
    font-weight: 600;
}

.playlist-desc-owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--color-text);
}

.playlist-desc-owner-icon {
    font-size: 1.05em;
    line-height: 1;
    opacity: 0.9;
}

.account-public-discord {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(100%, 360px);
    margin-top: 10px;
    padding: 7px 11px 7px 8px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(88,101,242,0.18);
    color: var(--color-text);
    text-decoration: none;
    vertical-align: top;
    white-space: normal;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-actions .account-public-discord {
    min-height: 46px;
    margin-top: 0;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
a.account-public-discord:hover {
    background: rgba(88,101,242,0.28);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
}

.account-public-discord-avatar,
.account-public-discord-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
}

.account-public-discord-avatar {
    display: block;
    object-fit: cover;
    background: rgba(255,255,255,0.12);
}

.account-public-discord-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88,101,242,0.35);
    font-size: 1.05rem;
}

.account-public-discord-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.account-public-discord-handle {
    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.account-public-discord-copy strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 800;
}

/* ========================
   CONTENT CONTROLS BAR
   ======================== */
.content-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.content-controls.artist-discovery-controls-active {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.content-controls.artist-discovery-controls-active .search-bar {
    order: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.content-controls.artist-discovery-controls-active .search-bar input {
    min-width: 0;
}

.content-controls.album-discovery-controls-active {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.content-controls.album-discovery-controls-active .search-bar {
    order: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.content-controls.album-discovery-controls-active .search-bar input {
    min-width: 0;
}

.content-controls.charts-controls-active,
.content-controls.my-songs-controls-active {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.content-controls.charts-controls-active .charts-filter,
.content-controls.my-songs-controls-active .my-songs-filter {
    order: 0;
    margin: 0 auto;
}

.content-controls.charts-controls-active .charts-filter-wrap,
.content-controls.my-songs-controls-active .my-songs-filter-wrap {
    order: 0;
}

.content-controls.charts-controls-active .search-bar,
.content-controls.my-songs-controls-active .search-bar {
    order: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.content-controls.charts-controls-active .search-bar input,
.content-controls.my-songs-controls-active .search-bar input {
    min-width: 0;
}


/* ========================
   SEARCH BAR
   ======================== */
.search-bar {
    position: relative;
    min-height: 46px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    border-color: rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 3px rgba(255,255,255,0.045);
}

.search-bar .material-symbols-outlined {
    font-size: 22px;
    color: var(--color-text-soft);
    flex: 0 0 auto;
}

.search-bar input {
    min-width: 0;
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--color-text-soft);
}

.charts-filter-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.charts-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 46px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.charts-filter-btn {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    padding: 0 13px;
    background: transparent;
    color: var(--color-text-soft);
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    transition: background var(--transition-fast) ease, color var(--transition-fast) ease, transform var(--transition-fast) ease, opacity var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
.charts-filter-btn:hover:not(:disabled) {
    color: var(--color-text);
    transform: translateY(-1px);
}
}

.charts-filter-btn.active {
    color: var(--color-text);
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.charts-filter-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* ========================
   SONG TABLE
   ======================== */
.song-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.song-table th,
.song-table td {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.song-table th:nth-child(1),
.song-table td:nth-child(1) {
    width: 40px;
    text-align: center;
    color: var(--color-text-soft);
}

.song-table th:nth-child(2),
.song-table td:nth-child(2) {
    width: auto;
}

.song-table th:nth-child(3),
.song-table td:nth-child(3) {
    width: 16%;
    text-align: center;
}

.song-table th:nth-child(4),
.song-table td:nth-child(4) {
    width: 12%;
    text-align: center;
    font-weight: 700;
}

.song-table th:nth-child(5),
.song-table td:nth-child(5) {
    width: 92px;
    min-width: 92px;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
}

/* Last visible td gets right radius */
.song-row td:first-child {
    border-radius: 12px 0 0 12px;
}

.song-row td:last-child {
    border-radius: 0 12px 12px 0;
}

.song-actions-cell {
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.song-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.song-actions-cell .favorite-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
}

@media (hover: hover) and (pointer: fine) {
.song-actions-cell .favorite-button:hover {
    transform: scale(1.05);
}
}

.song-actions-cell .favorite-button svg,
.song-actions-cell .favorite-button .material-symbols-outlined {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    display: block;
}

.song-actions-cell .favorite-button.active svg {
    filter: none;
}

.song-table th {
    color: var(--color-text-soft);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.song-row {
    transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
    cursor: pointer;
}

.song-table.playlist-song-sort-mode .song-row {
    cursor: grab;
    user-select: none;
}

.song-table.playlist-song-sort-mode .song-row:active {
    cursor: grabbing;
}

.song-row td {
    background: rgba(255,255,255,0.02);
    transition: background var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
.song-row:hover td {
    background: rgba(255,255,255,0.07);
}
}

@media (hover: hover) and (pointer: fine) {
.song-row:hover td:first-child {
    color: var(--color-accent-light);
}
}

.song-row.playing td {
    background: rgba(160,32,240,0.12);
}

.song-row.playing td:first-child {
    color: var(--color-accent-light);
}

.song-row-drag-ghost td {
    opacity: 0.45;
}

.song-row-drag-chosen td {
    box-shadow: inset 0 0 0 1px var(--color-accent-faint);
}

.song-row-dragging td {
    opacity: 0.92;
}

.song-row-drag-fallback {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.sortable-fallback {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

#editPlaylistStyleBtn.playlist-song-sort-active {
    background: linear-gradient(90deg, var(--color-accent-soft), var(--color-accent-faint));
    box-shadow: inset 0 0 0 1px var(--color-accent-faint);
}

#editPlaylistStyleBtn.playlist-song-sort-active .material-symbols-outlined {
    color: var(--color-text);
}

.playlist-edit-action-card {
    max-width: 420px;
}

.playlist-follow-report-action-card {
    max-width: 420px;
}

.app-dialog-actions.playlist-edit-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
}

.app-dialog-actions.playlist-edit-action-grid .app-dialog-btn {
    width: 100%;
    min-width: 0;
}

.playlist-edit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.playlist-edit-action-btn.playlist-edit-action-btn-details {
    border-color: rgba(153, 224, 255, 0.42);
    background: linear-gradient(135deg, rgba(13, 126, 221, 0.98), rgba(54, 167, 248, 0.95));
    box-shadow: 0 10px 22px rgba(18, 92, 177, 0.34);
}

@media (hover: hover) and (pointer: fine) {
.playlist-edit-action-btn.playlist-edit-action-btn-details:hover {
    box-shadow: 0 12px 24px rgba(24, 109, 206, 0.4);
}
}

.playlist-edit-action-btn.playlist-edit-action-btn-sort {
    border-color: rgba(161, 242, 191, 0.42);
    background: linear-gradient(135deg, rgba(30, 145, 74, 0.96), rgba(67, 193, 113, 0.95));
    box-shadow: 0 10px 22px rgba(20, 108, 62, 0.34);
}

@media (hover: hover) and (pointer: fine) {
.playlist-edit-action-btn.playlist-edit-action-btn-sort:hover {
    box-shadow: 0 12px 24px rgba(24, 130, 74, 0.4);
}
}

.playlist-edit-action-btn.playlist-edit-action-btn-collaborators {
    border-color: rgba(255, 213, 153, 0.42);
    background: linear-gradient(135deg, rgba(223, 124, 26, 0.96), rgba(247, 167, 73, 0.95));
    box-shadow: 0 10px 22px rgba(160, 95, 24, 0.34);
}

@media (hover: hover) and (pointer: fine) {
.playlist-edit-action-btn.playlist-edit-action-btn-collaborators:hover {
    box-shadow: 0 12px 24px rgba(176, 107, 27, 0.4);
}
}

.playlist-edit-action-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.playlist-edit-action-note {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.playlist-collaborators-manager-card {
    max-width: 520px;
}

.playlist-collaborators-manager-body {
    gap: 10px;
}

.playlist-collaborators-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.playlist-collaborators-count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.playlist-collaborators-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.playlist-collaborator-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.04);
}

.playlist-collaborator-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.playlist-collaborator-name {
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-collaborator-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.playlist-collaborator-status.is-participant {
    color: #cfffe1;
    background: rgba(43, 176, 99, 0.25);
    border: 1px solid rgba(116, 246, 168, 0.3);
}

.playlist-collaborator-status.is-pending {
    color: #ffe6bf;
    background: rgba(190, 112, 32, 0.25);
    border: 1px solid rgba(255, 201, 125, 0.3);
}

.playlist-collaborator-remove-btn {
    flex: 0 0 28px;
    min-width: 28px;
    max-width: 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
.playlist-collaborator-remove-btn:hover {
    transform: none;
}
}

.playlist-collaborator-remove-btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.playlist-collaborators-empty {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: var(--color-text-soft);
    text-align: center;
    font-size: 0.86rem;
}

.playlist-collaborators-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-collaborators-add-row .playlist-collaborators-input {
    min-height: 40px;
}

.playlist-collaborators-add-btn {
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.playlist-collaborators-add-btn .material-symbols-outlined {
    font-size: 18px;
}

.playlist-collaborators-hint {
    min-height: 1.1em;
    font-size: 0.78rem;
    color: var(--color-text-soft);
}

.playlist-collaborators-hint.is-error {
    color: #ffb8c8;
}

.playlist-invite-requests-card {
    max-width: 560px;
}

.playlist-invite-requests-body {
    gap: 10px;
}

.playlist-invite-requests-list {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow: auto;
}

.playlist-invite-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.playlist-invite-request-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.playlist-invite-request-title {
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-invite-request-meta {
    color: var(--color-text-soft);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-invite-request-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.playlist-invite-request-btn {
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.82rem;
}

.playlist-invite-request-empty {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    color: var(--color-text-soft);
}

@media (max-width: 640px) {
    .playlist-collaborators-add-row {
        flex-direction: column;
        align-items: stretch;
    }

    .playlist-collaborators-add-btn {
        width: 100%;
    }

    .playlist-invite-request-item {
        flex-direction: column;
        align-items: stretch;
    }

    .playlist-invite-request-actions {
        justify-content: flex-end;
    }

}

.song-row img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-row img.loaded {
    opacity: 1;
}

.song-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.song-name {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 400;
}

.song-title-text-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.song-chart-meta {
    color: var(--color-text-soft);
    font-family: 'Kanit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.chart-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 48px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: var(--color-text-soft);
    background: rgba(255,255,255,0.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.chart-rank-icon {
    font-size: 18px;
    line-height: 1;
}

.chart-rank-number {
    font-family: 'Kanit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.chart-rank-1 {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.72);
    background: rgba(250, 204, 21, 0.12);
}

.chart-rank-2 {
    color: #d1d5db;
    border-color: rgba(209, 213, 219, 0.72);
    background: rgba(209, 213, 219, 0.12);
}

.chart-rank-3 {
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.72);
    background: rgba(217, 119, 6, 0.12);
}


.artist-button {
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color var(--transition-fast) ease;
    cursor: pointer;
}

.song-artist-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.song-artist-avatar {
    display: inline-block;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
}

.song-artist-avatar {
    width: 20px;
    height: 20px;
}

.artist-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kanit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-soft);
    line-height: 1;
}

.song-table td:nth-child(3) .artist-button {
    display: inline-block;
    text-align: center;
}

.song-table td:nth-child(3) .song-artist-cell {
    justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
.artist-button:hover {
    color: var(--color-text);
}
}

/* ========================
   PLAYBACK BAR
   ======================== */
.playback-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--sidebar-width) - 36px);
    max-width: 1200px;
    min-height: 78px;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 16px;
    overflow: visible;
    opacity: 0;
    animation: fadeIn3 var(--transition-speed) 0.5s forwards;
}

.playback-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 640px) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    gap: 10px;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.song-info img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (hover: hover) and (pointer: fine) {
.song-info:hover img {
    transform: scale(1.05);
}
}

.song-info-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1px;
    overflow: hidden;
}

.song-info .title {
    font-weight: var(--font-weight-bold);
    font-size: 1.05rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-info .artist {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playback Center */
.playback-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 8px;
}

.main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.main-controls #shuffleButton,
.main-controls #loopButton {
    margin: 0 4px;
}

.main-controls button,
#shuffleButton,
#loopButton {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
    outline: none;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


@media (hover: hover) and (pointer: fine) {
.main-controls button:hover,
#shuffleButton:hover,
#loopButton:hover {
    color: var(--color-accent-light);
    transform: scale(1.05);
}
}

.main-controls button.active,
#shuffleButton.active,
#loopButton.active {
    color: var(--color-accent-light);
}

.main-controls svg,
#shuffleButton svg,
#loopButton svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    line-height: 1;
}

.play-pause-main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14) !important;
    color: var(--color-text) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.play-pause-main:hover {
    transform: scale(1.05) !important;
    background: rgba(255,255,255,0.2) !important;
    box-shadow: 0 5px 14px rgba(0,0,0,0.28);
}
}

.play-pause-main svg {
    fill: var(--color-text) !important;
}

/* Progress Row */
.progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% + 2px);
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    padding: 0;
}

.time-display {
    font-size: 0.82rem;
    color: var(--color-text-soft);
    min-width: 38px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-family);
    display: none;
}

.progress-bar {
    flex: 1;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.progress-bar:hover {
    height: 4px;
}
}

.progress-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transition: width 0.1s linear;
    border-radius: 999px;
}

/* Playback Right */
.playback-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-icon-btn {
    background: none;
    border: none;
    color: var(--color-text-soft);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

@media (hover: hover) and (pointer: fine) {
.volume-icon-btn:hover {
    color: var(--color-text);
}
}

.volume-icon-btn svg {
    fill: currentColor;
}

#volumeSlider {
    -webkit-appearance: none;
    background: rgba(255,255,255,0.12);
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    width: 92px;
    transition: background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
#volumeSlider:hover {
    background: rgba(255,255,255,0.2);
}
}

.playback-queue-panel {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(var(--playback-height) + 30px);
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 26px));
    max-height: min(58vh, 520px);
    z-index: 1120;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(14, 16, 26, 0.92);
    box-shadow: 0 16px 38px rgba(0,0,0,0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.playback-queue-panel.is-open {
    display: flex;
    animation: playbackQueuePanelFadeIn 0.16s ease-out forwards;
}

@keyframes playbackQueuePanelFadeIn {
    0% { opacity: 0; transform: translateX(-50%) scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

.playback-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.playback-queue-title-wrap h3 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    line-height: 1.1;
}

.playback-queue-count-text {
    margin: 3px 0 0;
    color: var(--color-text-soft);
    font-size: 0.74rem;
}

.playback-queue-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.playback-queue-clear-btn {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    color: var(--color-text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 32px;
    padding: 0 10px;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
.playback-queue-clear-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.24);
}
}

.playback-queue-clear-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.playback-queue-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: var(--color-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
.playback-queue-close-btn:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.24);
}
}

.playback-queue-close-btn .material-symbols-outlined {
    font-size: 1.1rem;
}

.playback-queue-list {
    display: grid;
    gap: 6px;
    overflow: auto;
    padding: 8px 10px 10px;
}

.playback-queue-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px;
    padding: 7px;
    background: rgba(255,255,255,0.04);
}

.playback-queue-item-cover {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
}

.playback-queue-item-main {
    min-width: 0;
}

.playback-queue-item-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playback-queue-item-artist {
    margin-top: 1px;
    font-size: 0.74rem;
    color: var(--color-text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playback-queue-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.playback-queue-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
.playback-queue-action-btn:hover:not(:disabled) {
    color: var(--color-text);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.24);
}
}

.playback-queue-action-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.playback-queue-action-btn .material-symbols-outlined {
    font-size: 1rem;
}

.playback-queue-empty {
    padding: 12px;
    color: var(--color-text-soft);
    font-size: 0.82rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.playback-queue-empty[hidden] {
    display: none !important;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--color-accent-light);
    cursor: pointer;
    transition: transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
#volumeSlider:hover::-webkit-slider-thumb {
    transform: scale(1.3);
}
}

/* ========================
   OPTION CONTROLS & BUTTONS
   ======================== */
.option-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 6px 10px;
    cursor: pointer;
    transition: background var(--transition-fast) ease;
    color: var(--color-text-soft);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 0.85rem;
}

@media (hover: hover) and (pointer: fine) {
.option-controls:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-text);
}
}

.option-controls.active {
    color: var(--color-accent-light);
}

.play-button {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    padding: 10px 15px;
    cursor: pointer;
    transition: background var(--transition-fast) ease, transform var(--transition-speed) ease;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.share-button {
    background: linear-gradient(90deg, #4F58FF, #55C0FF);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    padding: 10px 15px;
    cursor: pointer;
    transition: background var(--transition-fast) ease, transform var(--transition-speed) ease;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.favorite-button {
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    color: var(--color-text-soft);
    border-radius: 50%;
    box-shadow: none !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.favorite-button svg {
    fill: var(--color-text-soft);
    transition: fill 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
.favorite-button:hover svg {
    fill: var(--color-accent);
}
}

@media (hover: hover) and (pointer: fine) {
.favorite-button:hover {
    background: none !important;
    transform: scale(1.15);
}
}

.favorite-button.active {
    color: var(--color-accent-light);
}

.favorite-button.active svg {
    fill: var(--color-accent-light);
    filter: drop-shadow(0 0 5px var(--color-accent-light));
    transition: fill 0.3s ease, filter 0.3s ease;
}

.song-actions-cell .song-favorite-btn {
    --song-like-main: var(--color-accent-light);
    --song-like-alt: var(--color-accent);
    --song-like-soft: var(--color-accent-soft);
    --song-like-faint: var(--color-accent-faint);
    position: relative;
    overflow: visible;
    isolation: isolate;
    border-radius: 999px;
    background: rgba(255,255,255,0.04) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 6px 12px rgba(0,0,0,0.14) !important;
    transition: box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease, color 0.2s ease;
}

.song-actions-cell .song-favorite-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 20px;
    color: rgba(255,255,255,0.78);
    transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
.song-actions-cell .song-favorite-btn:hover {
    transform: none;
    background: rgba(255,255,255,0.04) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 6px 12px rgba(0,0,0,0.14) !important;
}
}

@media (hover: hover) and (pointer: fine) {
.song-actions-cell .song-favorite-btn:hover .material-symbols-outlined {
    color: rgba(255,255,255,0.78);
}
}

.song-actions-cell .song-favorite-btn.active {
    background: radial-gradient(circle at 30% 30%, var(--song-like-soft), var(--song-like-faint)) !important;
    box-shadow: 0 0 0 1px var(--song-like-soft), 0 10px 20px var(--song-like-faint) !important;
}

.song-actions-cell .song-favorite-btn.active .material-symbols-outlined {
    color: var(--song-like-main);
    filter: drop-shadow(0 0 8px var(--song-like-soft));
}

.song-actions-cell .song-favorite-btn::before,
.song-actions-cell .song-favorite-btn::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.song-actions-cell .song-favorite-btn::before {
    inset: -4px;
    border-radius: 999px;
    border: 1.5px solid var(--song-like-main);
    transform: scale(0.65);
}

.song-actions-cell .song-favorite-btn::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 -14px 0 var(--song-like-main),
        10px -10px 0 var(--song-like-main),
        14px 0 0 var(--song-like-alt),
        10px 10px 0 var(--song-like-alt),
        0 14px 0 var(--song-like-main),
        -10px 10px 0 var(--song-like-main),
        -14px 0 0 var(--song-like-alt),
        -10px -10px 0 var(--song-like-alt);
}

.song-actions-cell .song-favorite-btn.like-pop.like-pop-active {
    animation: songFavoritePopIn 0.46s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.song-actions-cell .song-favorite-btn.like-pop.like-pop-active .material-symbols-outlined {
    animation: songFavoriteHeartIn 0.46s cubic-bezier(0.18, 0.85, 0.22, 1) both;
}

.song-actions-cell .song-favorite-btn.like-pop.like-pop-active::before {
    animation: songFavoriteRing 0.44s ease-out both;
}

.song-actions-cell .song-favorite-btn.like-pop.like-pop-active::after {
    animation: songFavoriteBurst 0.42s ease-out both;
}

.song-actions-cell .song-favorite-btn.like-pop.like-pop-inactive {
    animation: songFavoritePopOut 0.3s ease both;
}

.song-actions-cell .song-favorite-btn.like-pop.like-pop-inactive .material-symbols-outlined {
    animation: songFavoriteHeartOut 0.3s ease both;
}

.hero-actions .hero-favorite-btn {
    --song-like-main: var(--color-accent-light);
    --song-like-alt: var(--color-accent);
    --song-like-soft: var(--color-accent-soft);
    --song-like-faint: var(--color-accent-faint);
    position: relative;
    overflow: visible;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.08) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22) !important;
    color: rgba(255,255,255,0.82);
    transition: box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-actions .hero-favorite-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 20px;
    color: currentColor;
    transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
.hero-actions .hero-favorite-btn:hover {
    transform: none;
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.24);
    box-shadow: 0 8px 18px rgba(0,0,0,0.26) !important;
}
}

@media (hover: hover) and (pointer: fine) {
.hero-actions .hero-favorite-btn:hover .material-symbols-outlined {
    color: currentColor;
}
}

.hero-actions .hero-favorite-btn.active {
    background: radial-gradient(circle at 30% 30%, var(--song-like-soft), var(--song-like-faint)) !important;
    border-color: var(--song-like-soft);
    box-shadow: 0 0 0 1px var(--song-like-soft), 0 10px 20px var(--song-like-faint) !important;
    color: var(--song-like-main);
}

.hero-actions .hero-favorite-btn.active .material-symbols-outlined {
    color: var(--song-like-main);
    filter: drop-shadow(0 0 8px var(--song-like-soft));
}

.hero-actions .hero-favorite-btn::before,
.hero-actions .hero-favorite-btn::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.hero-actions .hero-favorite-btn::before {
    inset: -4px;
    border-radius: 999px;
    border: 1.5px solid var(--song-like-main);
    transform: scale(0.65);
}

.hero-actions .hero-favorite-btn::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 -14px 0 var(--song-like-main),
        10px -10px 0 var(--song-like-main),
        14px 0 0 var(--song-like-alt),
        10px 10px 0 var(--song-like-alt),
        0 14px 0 var(--song-like-main),
        -10px 10px 0 var(--song-like-main),
        -14px 0 0 var(--song-like-alt),
        -10px -10px 0 var(--song-like-alt);
}

.hero-actions .hero-favorite-btn.like-pop.like-pop-active {
    animation: songFavoritePopIn 0.46s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-actions .hero-favorite-btn.like-pop.like-pop-active .material-symbols-outlined {
    animation: songFavoriteHeartIn 0.46s cubic-bezier(0.18, 0.85, 0.22, 1) both;
}

.hero-actions .hero-favorite-btn.like-pop.like-pop-active::before {
    animation: songFavoriteRing 0.44s ease-out both;
}

.hero-actions .hero-favorite-btn.like-pop.like-pop-active::after {
    animation: songFavoriteBurst 0.42s ease-out both;
}

.hero-actions .hero-favorite-btn.like-pop.like-pop-inactive {
    animation: songFavoritePopOut 0.3s ease both;
}

.hero-actions .hero-favorite-btn.like-pop.like-pop-inactive .material-symbols-outlined {
    animation: songFavoriteHeartOut 0.3s ease both;
}

.song-actions-cell .song-queue-btn {
    position: relative;
    overflow: visible;
    border-radius: 10px;
    background: none !important;
    box-shadow: none !important;
    transition: color 0.18s ease, transform 0.16s ease;
}

.song-actions-cell .song-queue-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 20px;
    color: rgba(255,255,255,0.78);
    transition: color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
.song-actions-cell .song-queue-btn:hover {
    background: none !important;
    box-shadow: none !important;
}
}

@media (hover: hover) and (pointer: fine) {
.song-actions-cell .song-queue-btn:hover .material-symbols-outlined {
    color: var(--color-text);
}
}

.song-actions-cell .song-queue-btn.is-added {
    animation: queueBtnPulse 0.24s ease;
}

@keyframes queueBtnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

@keyframes songFavoritePopIn {
    0% { transform: scale(0.9); }
    40% { transform: scale(1.16); }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

@keyframes songFavoriteHeartIn {
    0% { transform: scale(0.7); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes songFavoriteRing {
    0% { opacity: 0.85; transform: scale(0.65); }
    100% { opacity: 0; transform: scale(1.55); }
}

@keyframes songFavoriteBurst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
    20% { opacity: 0.95; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes songFavoritePopOut {
    0% { transform: scale(1); }
    40% { transform: scale(0.86); }
    100% { transform: scale(1); }
}

@keyframes songFavoriteHeartOut {
    0% { transform: scale(1); }
    50% { transform: scale(0.72); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .song-actions-cell .song-favorite-btn,
    .song-actions-cell .song-favorite-btn .material-symbols-outlined {
        transition: none !important;
        animation: none !important;
    }

    .song-actions-cell .song-favorite-btn::before,
    .song-actions-cell .song-favorite-btn::after {
        display: none !important;
        animation: none !important;
    }

    .hero-actions .hero-favorite-btn,
    .hero-actions .hero-favorite-btn .material-symbols-outlined {
        transition: none !important;
        animation: none !important;
    }

    .hero-actions .hero-favorite-btn::before,
    .hero-actions .hero-favorite-btn::after {
        display: none !important;
        animation: none !important;
    }

    .album-card-favorite,
    .album-card-favorite .material-symbols-outlined {
        transition: none !important;
        animation: none !important;
    }

    .album-card-favorite::before,
    .album-card-favorite::after {
        display: none !important;
        animation: none !important;
    }
}

/* ========================
   MOOD FILTER
   ======================== */
.mood-filter {
    position: relative;
    display: flex;
    align-items: stretch;
}

.mood-filter .app-native-dropdown {
    min-width: 108px;
    width: 108px;
}

.mood-filter .app-native-dropdown-toggle {
    height: 38px;
    border-radius: 999px;
    padding: 8px 12px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.85rem;
}

.mood-filter .app-native-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 170px;
}

.mood-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease, color var(--transition-fast) ease;
    white-space: nowrap;
    height: 38px;
}

@media (hover: hover) and (pointer: fine) {
.mood-filter-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent);
    color: var(--color-accent-light);
}
}

.mood-filter-toggle .material-symbols-outlined {
    font-size: 1rem;
}






/* ========================
   PAGINATION
   ======================== */
.pagination-controls {
    display: none;
}

.page-switcher {
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 24px auto 0;
}

.page-switcher--static,
.page-switcher--inline {
    display: flex;
}

.page-switcher--inline {
    margin: 0;
}

.admin-pager.page-switcher,
.admin-pager-group.page-switcher {
    justify-content: center;
    gap: 14px;
}

.admin-page .page-switcher {
    flex-wrap: wrap;
}

.pagination-btn,
.page-switcher-btn {
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.pagination-btn:hover,
.page-switcher-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
}

.pagination-btn:focus-visible,
.page-switcher-btn:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 3px;
}

.pagination-label,
.page-switcher-label {
    min-width: 82px;
    text-align: center;
    font-family: 'Kanit', sans-serif;
    font-size: 0.86rem;
    color: var(--color-text-soft);
}

.page-switcher-btn:disabled,
.pagination-btn.disabled,
.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ========================
   POPUPS
   ======================== */
#addSongPopupBackdrop,
#addToPlPickerBackdrop,
.theme-picker-backdrop,
#legalPopupBackdrop {
    background: rgba(8, 10, 20, 0.42) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#legalPopupBackdrop {
    z-index: 27000 !important;
    padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)) !important;
    background:
        radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--color-accent-light) 24%, transparent), transparent 34%),
        radial-gradient(circle at 82% 80%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 38%),
        rgba(5, 7, 14, 0.64) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
    animation: legalPopupBackdropIn 0.22s ease-out both;
}

#legalPopupBackdrop.is-closing {
    pointer-events: none;
    animation: legalPopupBackdropOut 0.2s ease-in both;
}

#legalPopupBackdrop.is-closing #legalPopup {
    animation: legalPopupFadeOut 0.2s ease-in both !important;
}

.theme-picker-backdrop {
    background:
        radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--color-accent-light) 24%, transparent), transparent 34%),
        radial-gradient(circle at 82% 80%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 38%),
        rgba(5, 7, 14, 0.64) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

#addSongPopup,
#addToPlPicker,
.theme-picker,
#legalPopup {
    background: var(--color-bg-glass) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

#legalPopup .option-controls,
#legalPopup .legal-link {
    font-weight: 700;
}

#legalPopup {
    width: min(92vw, 560px) !important;
    max-width: 560px !important;
    max-height: min(82svh, 760px) !important;
    padding: 24px !important;
    border-radius: 26px !important;
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, rgba(255,255,255,0.22)) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
        color-mix(in srgb, var(--color-bg) 78%, var(--color-accent) 22%) !important;
    box-shadow: 0 28px 90px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(28px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
}

.theme-picker,
.custom-theme-creator {
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, rgba(255,255,255,0.22)) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
        color-mix(in srgb, var(--color-bg) 78%, var(--color-accent) 22%) !important;
    box-shadow: 0 28px 90px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(28px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
}

.theme-picker,
.custom-theme-creator,
.custom-theme-preview-panel,
.custom-theme-step {
    border-radius: 26px !important;
}

.custom-theme-creator-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
    border-bottom-color: rgba(255,255,255,0.11) !important;
}

.theme-card,
.custom-theme-preview-panel,
.custom-theme-step {
    border-color: rgba(255,255,255,0.13) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.theme-card {
    background: rgba(255,255,255,0.055) !important;
}

.custom-theme-preview-panel,
.custom-theme-step {
    background: rgba(255,255,255,0.055) !important;
}

.theme-dot {
    opacity: 1 !important;
    filter: none !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.18),
        0 4px 10px rgba(0,0,0,0.16);
}

@media (hover: hover) and (pointer: fine) {
.theme-card:hover,
.custom-theme-preset-row button:hover {
    background: rgba(255,255,255,0.095) !important;
    border-color: rgba(255,255,255,0.22) !important;
}
}

.theme-card.active {
    border-color: color-mix(in srgb, var(--color-accent-light) 72%, rgba(255,255,255,0.28)) !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 20%, transparent), rgba(255,255,255,0.055)) !important;
}

.custom-theme-actions {
    background: transparent !important;
}

.custom-theme-reset {
    background: rgba(255,255,255,0.13) !important;
}

#legalPopup > div {
    padding: 4px 2px 0 !important;
}

#legalPopup h2 {
    margin: 0 42px 8px !important;
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--color-text);
}

#legalPopup p {
    color: var(--color-text-soft);
    font-size: 0.98rem;
    line-height: 1.45;
}

#legalPopup .close-legal-popup {
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.1) !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#legalPopup .legal-link {
    width: 100% !important;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 16px !important;
    justify-content: flex-start !important;
    padding: 13px 16px !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 58%, rgba(255,255,255,0.1)), color-mix(in srgb, var(--color-accent-light) 54%, rgba(255,255,255,0.08))) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18) !important;
    transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}

#legalPopup .legal-link:nth-of-type(1) {
    background:
        linear-gradient(135deg, #8e2ec4, #a14fae) !important;
}

#legalPopup .legal-link:nth-of-type(2) {
    background:
        linear-gradient(135deg, #356fe0, #53acd0) !important;
}

#legalPopup .legal-link:nth-of-type(3) {
    background:
        linear-gradient(135deg, #278f78, #78ad72) !important;
}

#legalPopup .legal-link:nth-of-type(4) {
    background:
        linear-gradient(135deg, #e53935 0%, #ef6c00 52%, #fdd835 100%) !important;
    color: #211800 !important;
}

#legalPopup .legal-link:nth-of-type(5) {
    background:
        linear-gradient(135deg, #e04f5f, #f08a6c) !important;
    color: #fff !important;
}

#legalPopup .legal-link:nth-of-type(6) {
    background:
        linear-gradient(135deg, #f9a825, #fdd835) !important;
    color: #211800 !important;
}

@media (hover: hover) and (pointer: fine) {
#legalPopup .legal-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    border-color: rgba(255,255,255,0.24) !important;
}
}

@media (max-width: 640px) {
    #legalPopup {
        width: min(94vw, 520px) !important;
        max-height: calc(100svh - 36px) !important;
        padding: 20px !important;
        border-radius: 24px !important;
    }

    #legalPopup h2 {
        margin-left: 34px !important;
        margin-right: 34px !important;
    }
}

.playlist-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Kanit', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
}

@media (hover: hover) and (pointer: fine) {
.playlist-item:hover {
    background: linear-gradient(90deg, rgba(160,32,240,0.2), rgba(186,85,211,0.15));
    border-color: var(--color-accent);
    transform: translateY(-2px);
}
}

.close-playlist-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--color-text-soft);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.close-playlist-popup:hover {
    background: rgba(255,255,255,0.15);
}
}

/* createPlaylistBtn uses .sidebar-link styles */

/* Add Song Popup */
#addSongPopupBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(8, 10, 20, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 18px;
    animation: backdropFadeIn 0.15s ease-out;
}

#addSongPopup {
    width: min(92vw, 560px) !important;
    max-height: 82vh !important;
    overflow: hidden;
}

.add-song-popup-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.add-song-popup-body {
    display: grid;
    gap: 10px;
    padding: 14px 16px 14px;
}

.close-add-song-popup {
    font-size: 1.35rem;
}

#addSongPopup h2 {
    margin: 0;
}

#addSongSearchInput {
    width: 100%;
    min-height: 42px;
    font-size: 0.92rem;
    font-weight: 600;
}

#addSongSearchInput::placeholder {
    color: var(--color-text-soft);
    opacity: 0.85;
}

#addSongSearchResults {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding-right: 1px;
    display: grid;
    gap: 8px;
}

#addSongSearchResults .add-song-status {
    padding: 10px 8px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

#addSongSearchResults .add-song-status.error {
    color: #ffb3c1;
    border-color: rgba(255, 112, 146, 0.35);
    background: rgba(255, 112, 146, 0.08);
}

#addSongSearchResults .add-song-result {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 9px 10px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.16s ease, border-color 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
#addSongSearchResults .add-song-result:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
}

.add-song-result-main {
    min-width: 0;
}

.add-song-result-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-song-result-artist {
    margin-top: 1px;
    color: var(--color-text-soft);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#addSongSearchResults .add-song-result-add-btn {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    min-width: 38px;
    min-height: 36px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

#addSongSearchResults .add-song-result-add-btn .material-symbols-outlined {
    font-size: 1.2rem;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
#addSongSearchResults .add-song-result-add-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.32);
}
}

#addSongSearchResults .add-song-result-add-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.song-popup-progress-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.94rem;
    color: var(--color-text-soft);
    font-variant-numeric: tabular-nums;
}

.song-popup-progress-slider {
    --song-popup-progress: 0%;
    width: 100%;
    height: 22px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    touch-action: pan-y;
}

.song-popup-progress-slider:disabled {
    cursor: default;
    opacity: 0.65;
}

.song-popup-progress-slider:focus-visible {
    outline: none;
}

.song-popup-progress-slider::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background:
        var(--song-popup-progress-bg) 0 / var(--song-popup-progress) 100% no-repeat,
        color-mix(in srgb, var(--color-text-soft) 18%, transparent);
}

.song-popup-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    margin-top: -6px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--color-text) 86%, transparent);
    background: var(--song-popup-button-bg);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-accent) 32%, transparent);
}

.song-popup-progress-slider::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-text-soft) 18%, transparent);
}

.song-popup-progress-slider::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: var(--song-popup-progress-bg);
}

.song-popup-progress-slider::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--color-text) 86%, transparent);
    background: var(--song-popup-button-bg);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-accent) 32%, transparent);
}

.song-popup-copy-lyrics-btn {
    min-height: 40px;
    padding: 0 13px;
    gap: 7px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--song-popup-surface) 70%, transparent);
    color: var(--color-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.84rem;
    font-weight: 700;
    pointer-events: auto;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.song-popup-copy-lyrics-btn:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--color-accent) 24%, var(--song-popup-surface));
    border-color: color-mix(in srgb, var(--color-accent-light) 36%, var(--color-border));
    color: var(--color-text);
}
}

.song-popup-copy-lyrics-btn .material-symbols-outlined {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.song-row img.song-artist-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 1;
}

.song-popup-copy-lyrics-btn.copied {
    animation: songPopupCopyPulse 0.55s ease;
}

.song-popup-copy-lyrics-btn.copied .material-symbols-outlined {
    color: #7CFFD1;
    animation: songPopupCopySpin 0.55s ease;
}

.song-popup-lyrics-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.song-popup-lyrics-inner :is(p, ul, ol, blockquote) {
    margin: 0 0 0.72em;
    font-weight: 500;
}

.song-popup-lyrics-inner p {
    white-space: pre-wrap;
}

.song-popup-lyrics-inner :is(h1, h2, h3) {
    margin: 0.82em 0 0.48em;
    line-height: 1.15;
    font-weight: 800;
    text-wrap: balance;
}

.song-popup-lyrics-inner h1 {
    font-size: 1.45em;
}

.song-popup-lyrics-inner h2 {
    font-size: 1.24em;
}

.song-popup-lyrics-inner h3 {
    font-size: 1.08em;
}

.song-popup-lyrics-inner :is(strong, b) {
    font-weight: 800;
    color: var(--color-text);
}

.song-popup-lyrics-inner em {
    font-style: italic;
    font-weight: inherit;
}

.song-popup-lyrics-inner :is(ul, ol) {
    display: inline-block;
    padding-left: 1.2em;
    text-align: left;
}

.song-popup-lyrics-inner blockquote {
    display: inline-block;
    max-width: 100%;
    padding: 0.08em 0 0.08em 0.8em;
    border-left: 3px solid color-mix(in srgb, var(--color-accent-light) 64%, transparent);
    color: var(--color-text-soft);
    text-align: left;
}

.song-popup-lyrics-inner > :first-child {
    margin-top: 0;
}

.song-popup-lyrics-inner > :last-child {
    margin-bottom: 0;
}

@keyframes songPopupCopyPulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.18); }
    65% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

@keyframes songPopupCopySpin {
    0% { transform: rotate(0deg) scale(1); }
    60% { transform: rotate(16deg) scale(1.08); }
    100% { transform: rotate(0deg) scale(1); }
}

/* App Dialogs (replaces browser alert/confirm/prompt on website) */
html.account-ban-locked,
body.account-ban-locked {
    overflow: hidden !important;
}

body.account-ban-locked > *:not(#accountBanLockOverlay) {
    pointer-events: none !important;
    user-select: none;
}

#accountBanLockOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 12000;
    background: rgba(8, 11, 18, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    isolation: isolate;
}

#accountBanLockOverlay::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 92, 92, 0.08), rgba(255, 92, 92, 0) 34%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 42%);
}

#accountBanLockOverlay.is-visible {
    display: flex;
}

.account-ban-lock-card {
    width: min(92vw, 560px);
    border-radius: 18px;
    border: 1px solid rgba(255, 125, 125, 0.38);
    background: rgba(18, 14, 18, 0.9) !important;
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.48) !important;
    padding: 24px 22px;
    text-align: center;
}

.account-ban-lock-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    color: #ffe2e2;
    letter-spacing: 0.01em;
}

.account-ban-lock-text {
    margin-top: 12px;
    color: #ffd6d6;
    font-size: 1rem;
    line-height: 1.55;
}

.account-ban-lock-meta {
    margin-top: 10px;
    color: var(--color-text-soft);
    font-size: 0.88rem;
}

.request-rate-limit-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 16, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 9300;
}

.request-rate-limit-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.request-rate-limit-card {
    width: min(92vw, 430px);
    padding: 24px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 14, 18, 0.92) !important;
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.48) !important;
    text-align: center;
}

.request-rate-limit-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.95rem);
    color: #ffe8cb;
    letter-spacing: 0.01em;
}

.request-rate-limit-text {
    margin-top: 12px;
    color: #fff2df;
    font-size: 0.98rem;
    line-height: 1.55;
}

.request-rate-limit-meta {
    margin-top: 10px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.app-mini-toast {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    transform: translate(-50%, 10px);
    max-width: min(82vw, 420px);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10, 10, 16, 0.84);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    z-index: 13200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    transition: opacity 0.16s ease, transform 0.18s ease;
}

.app-mini-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .app-mini-toast {
        transition: opacity 0.01s linear, transform 0.01s linear;
    }
}

.app-dialog-root {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 26000;
}

.app-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 10, 20, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
    animation: backdropFadeIn 0.15s ease-out;
}

.app-dialog-backdrop.closing {
    animation: backdropFadeOut 0.12s ease-in forwards;
}

.app-dialog-card {
    width: min(92vw, 540px);
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: rgba(18, 18, 18, 0.92) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.38) !important;
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    animation: popupFadeIn 0.2s ease-out forwards;
    overflow: hidden;
}

.app-dialog-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 8px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-dialog-header.has-close-button {
    padding-left: 46px;
    padding-right: 46px;
}

.app-dialog-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.05rem;
    color: var(--color-text);
    text-align: center;
    width: 100%;
}

.app-dialog-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--color-text-soft);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
.app-dialog-close:hover {
    background: rgba(255,255,255,0.16);
    color: var(--color-text);
}
}

.app-dialog-body {
    padding: 14px 16px 10px;
    display: grid;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-dialog-body > * {
    min-width: 0;
}

.app-dialog-message {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-align: center;
    max-width: 44ch;
    margin: 0 auto;
}

.app-dialog-card.app-dialog-kind-prompt .app-dialog-message {
    max-width: none;
}

.app-dialog-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.92rem;
    outline: none;
    resize: vertical;
    min-height: 42px;
}

textarea.app-dialog-input {
    min-height: 108px;
}

textarea.app-dialog-input[data-resize-mode="both"] {
    resize: both;
    overflow: auto;
}

textarea.app-dialog-input[data-resize-mode="vertical"] {
    resize: vertical;
    overflow: auto;
}

textarea.app-dialog-input[data-resize-mode="none"] {
    resize: none;
}

.app-dialog-char-counter {
    margin-top: -8px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-text-soft);
    opacity: 0.9;
    font-variant-numeric: tabular-nums;
}

.app-dialog-char-counter.is-limit {
    color: var(--color-accent-light);
    opacity: 1;
}

.app-dialog-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(160,32,240,0.16);
}

.app-dialog-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.app-dialog-actions.app-dialog-actions-two {
    gap: 18px;
}

.app-dialog-btn {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    min-width: 122px;
    max-width: 100%;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.app-dialog-btn:hover {
    transform: translateY(-1px);
}
}

.app-dialog-btn-primary {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.app-dialog-btn-secondary {
    color: var(--color-text);
    background: rgba(255,255,255,0.08);
}

@media (hover: hover) and (pointer: fine) {
.app-dialog-btn-secondary:hover {
    background: rgba(255,255,255,0.14);
}
}

.app-dialog-btn-danger {
    color: #ffe8ed;
    border-color: rgba(255, 110, 137, 0.42);
    background: linear-gradient(135deg, rgba(175, 26, 59, 0.9), rgba(224, 61, 102, 0.9));
}

@media (hover: hover) and (pointer: fine) {
.app-dialog-btn-danger:hover {
    box-shadow: 0 8px 20px rgba(150, 20, 50, 0.34);
}
}

.app-dialog-btn.playlist-collaborator-remove-btn {
    box-sizing: border-box;
    flex: 0 0 28px;
    min-width: 28px;
    max-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 9px;
}

@media (hover: hover) and (pointer: fine) {
.app-dialog-btn.playlist-collaborator-remove-btn:hover {
    transform: none;
}
}

.app-dialog-btn.playlist-collaborator-remove-btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.playlist-style-editor {
    width: min(94vw, 620px);
    max-width: calc(100vw - 36px);
    overflow: hidden;
}

.playlist-style-editor-body {
    gap: 10px;
}

.playlist-style-description-input {
    resize: none;
    min-height: 108px;
}

.playlist-style-char-counter {
    margin-top: -8px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-text-soft);
    opacity: 0.85;
}

.playlist-style-char-counter.is-limit {
    color: var(--color-accent-light);
    opacity: 1;
}

.playlist-style-cover-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.playlist-style-cover-preview {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.playlist-style-cover-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.playlist-style-cover-fallback {
    font-size: 1.8rem;
    color: var(--color-text-soft);
    opacity: 0.9;
}

.playlist-style-cover-controls {
    flex: 1 1 220px;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.playlist-style-cover-button-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

.playlist-style-cover-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.playlist-style-cover-select-btn {
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
    padding: 9px 12px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.playlist-style-cover-select-btn .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

.playlist-style-cover-file-name {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--color-text-soft);
    opacity: 0.9;
    overflow-wrap: anywhere;
}

.playlist-style-cover-remove-btn {
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
    padding: 9px 12px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.playlist-style-cover-remove-btn .material-symbols-outlined {
    font-size: 1.1rem;
    line-height: 1;
}

.playlist-style-cover-select-btn span:last-child,
.playlist-style-cover-remove-btn span:last-child,
.playlist-style-default-toggle span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.playlist-style-label {
    font-family: 'Kanit', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--color-text-soft);
    text-transform: uppercase;
}

.playlist-style-icon-dropdown {
    position: relative;
}

.playlist-style-icon-dropdown-toggle {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
}

.playlist-style-icon-dropdown-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.92rem;
}

.playlist-style-icon-dropdown-value span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-style-icon-dropdown-value .material-symbols-outlined,
.playlist-style-icon-dropdown-arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.playlist-style-icon-dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 6px);
    z-index: 40;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 6px;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(18, 18, 18, 0.95);
}

.playlist-style-icon-dropdown.is-open .playlist-style-icon-dropdown-menu {
    display: block;
}

.playlist-style-icon-dropdown-option {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--color-text);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.playlist-style-icon-dropdown-option .material-symbols-outlined {
    font-size: 1.12rem;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
.playlist-style-icon-dropdown-option:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}
}

.playlist-style-icon-dropdown-option.is-active {
    background: rgba(186, 85, 211, 0.18);
    border-color: rgba(198, 126, 255, 0.52);
}

.playlist-style-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.playlist-style-color-input {
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.playlist-style-color-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.playlist-style-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 9px;
}

.playlist-style-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 9px;
}

.playlist-style-default-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    color: var(--color-text-soft);
    cursor: pointer;
    user-select: none;
    padding: 2px 2px 2px 0;
    transition: color 0.18s ease;
}

.playlist-style-default-toggle input {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.07);
    display: inline-grid;
    place-items: center;
    position: relative;
    margin: 0;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.playlist-style-default-toggle input::before {
    content: "";
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -56%) rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
.playlist-style-default-toggle:hover input {
    border-color: rgba(198,126,255,0.62);
    background: rgba(186,85,211,0.14);
}
}

.playlist-style-default-toggle input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(160,32,240,0.22);
    border-color: rgba(198,126,255,0.75);
}

.playlist-style-default-toggle input:active {
    transform: translateY(1px);
}

.playlist-style-default-toggle input:checked {
    border-color: rgba(198,126,255,0.78);
    background: linear-gradient(135deg, rgba(160,32,240,0.88), rgba(186,85,211,0.86));
}

.playlist-style-default-toggle input:checked::before {
    transform: translate(-50%, -56%) rotate(45deg) scale(1);
}

.playlist-style-default-toggle.is-active {
    color: var(--color-text);
}

.playlist-style-editor-actions {
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px), (max-height: 760px) {
    .app-dialog-backdrop {
        padding: 12px;
    }

    .app-dialog-card,
    .playlist-style-editor {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .playlist-style-editor-actions .app-dialog-btn {
        flex: 1 1 100%;
    }
}

@keyframes backdropFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ========================
   MISC
   ======================== */
.no-permission {
    font-size: 1.5rem;
    color: var(--color-text-soft);
    text-align: center;
    margin-top: 60px;
}

#songGrid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

#songGrid.artist-discovery-active,
#songGrid[data-content-mode="albums"],
#songGrid[data-content-mode="favorite-albums"] {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    align-items: stretch;
}

#songGrid[data-content-mode="music-videos"] {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
    align-items: stretch;
}

#songGrid[data-content-mode="podcasts"],
#songGrid[data-content-mode="podcasts-detail"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

@media (max-width: 640px) {
    #songGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #songGrid.artist-discovery-active,
    #songGrid[data-content-mode="albums"],
    #songGrid[data-content-mode="favorite-albums"],
    #songGrid[data-content-mode="music-videos"],
    #songGrid[data-content-mode="podcasts"],
    #songGrid[data-content-mode="podcasts-detail"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    #songGrid[data-content-mode="music-videos"],
    #songGrid[data-content-mode="podcasts"],
    #songGrid[data-content-mode="podcasts-detail"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .music-video-quality {
        width: 100%;
    }
}

.artist-discovery-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    width: fit-content;
}

.artist-discovery-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: none;
    background: transparent;
    color: var(--color-text-soft);
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    transition: background var(--transition-fast) ease, color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
.artist-discovery-switch-btn:hover {
    color: var(--color-text);
    transform: translateY(-1px);
}
}

.artist-discovery-switch-btn.active {
    color: var(--color-text);
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.favorites-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 18px;
    padding: 0;
    border: none;
    background: transparent;
}

.playlists-hub {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 2px 0 0;
}

.playlists-hub-actions,
.playlists-hub-group-head {
    display: flex;
    align-items: center;
}

.playlists-hub h1,
.playlists-hub h2 {
    font-family: 'Kanit', sans-serif;
    color: var(--color-text);
}

.playlists-hub h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.05;
}

.playlists-hub-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.playlists-public-browser {
    margin: 0;
}

.playlists-public-browser-head {
    display: flex;
    position: relative;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 3px 14px;
}

.playlists-public-browser-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.8rem);
}

/* Alte Hub-DOMs können bei einer SPA-Navigation noch im Dokument hängen. */
.playlists-public-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 210px);
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 17px;
}

.playlists-hub-global-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.playlists-hub-view-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
}

.playlists-hub-view-switcher .charts-filter {
    width: auto;
}

.playlists-hub-view-btn {
    min-width: 96px;
    white-space: nowrap;
}

.playlists-hub-search-actions {
    flex-wrap: nowrap;
    gap: 8px;
}

.playlists-hub-search-actions > button {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    flex: 0 0 46px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
}

.playlists-hub-search-actions > button > .material-symbols-outlined {
    font-size: 1.35rem;
}

.playlists-hub-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--color-bg);
    border-radius: 999px;
    color: #fff;
    font: 800 0.66rem/1 'Nunito', sans-serif;
    background: var(--color-accent);
    box-sizing: border-box;
}

.playlists-hub-action-badge:empty {
    display: none;
}

/* Hält eine bereits geöffnete SPA-Ansicht bis zum nächsten Reload kompatibel. */
.playlists-hub:has(> .playlists-hub-toolbar) {
    position: relative;
}

.playlists-hub:has(> .playlists-hub-toolbar) > .playlists-hub-toolbar {
    display: flex;
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 4;
    margin: 0;
}

.playlists-hub:has(> .playlists-hub-toolbar) > .playlists-hub-global-search {
    padding-right: 120px;
}

.playlists-hub-toolbar .playlists-hub-sort-label,
.playlists-hub-toolbar #playlistInviteRequestsBtnLabel {
    display: none !important;
}

.playlists-hub-toolbar .playlists-hub-actions {
    flex-wrap: nowrap;
    gap: 8px;
}

.playlists-hub-toolbar .playlists-hub-actions > button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    flex: 0 0 46px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
}

.playlists-hub-toolbar .playlists-hub-actions > button > .material-symbols-outlined {
    font-size: 1.35rem;
}

.playlists-public-browser-head .playlists-public-sort {
    width: min(210px, 100%);
    flex: 0 0 min(210px, 42%);
}

/* Richtet auch eine bereits geöffnete SPA-Ansicht mit altem Wrapper korrekt aus. */
.playlists-public-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.playlists-public-search:focus-within {
    border-color: rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 3px rgba(255,255,255,0.045);
}

.playlists-public-search > .material-symbols-outlined {
    flex: 0 0 auto;
    color: var(--color-text-soft);
    font-size: 22px;
}

.playlists-public-search input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    background: transparent;
}

.playlists-public-search input::placeholder {
    color: var(--color-text-soft);
}

.playlists-public-sort {
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.playlists-public-sort .app-native-dropdown-toggle {
    height: 46px;
    padding: 0 12px;
    border-color: rgba(255,255,255,0.14);
    border-radius: 14px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.playlists-public-sort .app-native-dropdown-toggle:focus,
.playlists-public-sort.is-open .app-native-dropdown-toggle {
    border-color: rgba(255,255,255,0.27);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 3px rgba(255,255,255,0.045);
}

@media (hover: hover) and (pointer: fine) {
.playlists-public-sort .app-native-dropdown-toggle:hover {
    border-color: rgba(255,255,255,0.27);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 3px rgba(255,255,255,0.045);
}
}

.playlists-public-sort-icon {
    flex: 0 0 auto;
    color: var(--color-text-soft);
    font-size: 1.25rem;
}

.playlists-public-sort .app-native-dropdown-label {
    color: var(--color-text);
}

.playlists-public-sort .app-native-dropdown-menu {
    min-width: 100%;
}

.playlists-public-sort .app-native-dropdown-menu,
.playlists-public-sort-menu {
    border-color: rgba(255,255,255,0.14);
    border-radius: 14px;
    background: color-mix(in srgb, var(--color-bg) 94%, #08070a);
    box-shadow: 0 18px 42px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.playlists-public-sort .app-native-dropdown-option,
.playlists-public-sort-menu .app-native-dropdown-option {
    min-height: 38px;
    display: flex;
    align-items: center;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

.playlists-public-list {
    position: relative;
    z-index: 1;
    min-height: 0;
}

.playlists-public-card {
    position: relative;
}

.playlists-public-card .playlists-hub-item-media,
.playlists-public-card .playlists-hub-item-name {
    color: inherit;
    text-decoration: none;
}

.playlists-public-card .playlists-hub-item-text {
    flex: 1 1 auto;
}

.playlists-public-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--color-text-soft);
    font-size: 0.76rem;
    line-height: 1.25;
}

.playlists-public-card-meta-dot {
    opacity: 0.55;
}

.playlists-public-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-top: auto;
    padding: 1px 4px 0;
}

.playlists-public-owner {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
.playlists-public-owner:hover {
    color: var(--color-text);
}
}

.playlists-public-owner-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--playlist-card-accent), rgba(255,255,255,0.12));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

img.playlists-public-owner-avatar {
    object-fit: cover;
}

.playlists-public-owner-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlists-public-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-soft);
    cursor: pointer;
    background: rgba(255,255,255,0.055);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.playlists-public-follow.is-followed {
    color: #fff;
    border-color: var(--color-accent-faint);
    background: var(--color-accent-soft);
    transform: scale(1.06);
}

@media (hover: hover) and (pointer: fine) {
.playlists-public-follow:hover {
    color: #fff;
    border-color: var(--color-accent-faint);
    background: var(--color-accent-soft);
    transform: scale(1.06);
}
}

.playlists-public-follow:disabled {
    cursor: wait;
    opacity: 0.55;
}

.playlists-public-follow .material-symbols-outlined {
    font-size: 1.1rem;
}

.playlists-public-pagination {
    display: flex;
}

.playlists-public-pagination .page-switcher-btn:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.playlists-hub-sort-toggle.is-active {
    color: var(--color-text);
    border-color: var(--color-accent-faint);
    background: linear-gradient(90deg, var(--color-accent-soft), var(--color-accent-faint));
}

.playlists-hub-sort-toggle.is-animating {
    animation: playlistsHubSortIconPulse 0.32s ease;
}

@keyframes playlistsHubSortIconPulse {
    0% { transform: scale(0.94) rotate(-4deg); }
    50% { transform: scale(1.04) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.playlists-hub-group {
    margin-bottom: 30px;
}

.playlists-hub-group-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
    padding: 0 3px;
}

.playlists-hub-group h2 {
    margin: 0;
    font-size: 1.35rem;
}

.playlists-hub-group-head p {
    margin: 3px 0 0;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.playlists-hub-list {
    display: grid;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    padding: 10px;
}

.playlists-hub-item {
    --playlist-card-hue: 286;
    --playlist-card-accent: hsl(var(--playlist-card-hue) 86% 64%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    min-width: 0;
    padding: 10px 10px 13px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
    text-decoration: none;
    background: linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.24s ease;
}

.playlists-hub-item.active {
    transform: translateY(-5px);
    border-color: var(--color-accent-faint);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.045));
    box-shadow: 0 20px 40px rgba(0,0,0,0.24);
}

@media (hover: hover) and (pointer: fine) {
.playlists-hub-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-faint);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.045));
    box-shadow: 0 20px 40px rgba(0,0,0,0.24);
}
}

.playlists-hub-item-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #19151e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), 0 9px 22px rgba(0,0,0,0.2);
}

.playlists-hub-item-artwork {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 21% 18%, color-mix(in srgb, var(--playlist-card-accent) 82%, white 8%) 0, transparent 35%),
        radial-gradient(circle at 85% 86%, color-mix(in srgb, var(--playlist-card-accent) 66%, #08050c) 0, transparent 43%),
        linear-gradient(145deg, color-mix(in srgb, var(--playlist-card-accent) 35%, #17111d), color-mix(in srgb, var(--playlist-card-accent) 11%, #08060b));
}

.playlists-hub-item-artwork::before {
    content: '';
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    right: -19%;
    bottom: -20%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,0.035), 0 0 0 38px rgba(255,255,255,0.025);
}

.playlists-hub-item-artwork::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(255,255,255,0.13), transparent 34%, rgba(0,0,0,0.18));
}

.playlists-hub-item-icon {
    position: relative;
    z-index: 1;
    font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--playlist-card-accent);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.38));
    transform: rotate(-4deg);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
}

.playlists-hub-item-cover {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease;
}

.playlists-hub-item-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.28), transparent 48%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
.playlists-hub-item:hover .playlists-hub-item-icon {
    transform: rotate(0deg) scale(1.08);
    filter: drop-shadow(0 11px 22px rgba(0,0,0,0.48));
}
}

@media (hover: hover) and (pointer: fine) {
.playlists-hub-item:hover .playlists-hub-item-cover {
    transform: scale(1.055);
}
}

.playlists-hub-item.active .playlists-hub-item-media::after {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
.playlists-hub-item:hover .playlists-hub-item-media::after {
    opacity: 1;
}
}

.playlists-hub-item-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px 1px;
}

.playlists-hub-item-name,
.playlists-hub-item-description {
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlists-hub-item-name {
    font-family: 'Kanit', sans-serif;
    font-size: 1.04rem;
    line-height: 1.25;
    white-space: nowrap;
}

.playlists-hub-item-description {
    color: var(--color-text-soft);
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.playlists-hub-item-arrow,
.playlists-hub-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    background: color-mix(in srgb, var(--playlist-card-accent) 78%, #15111a);
    box-shadow: 0 8px 20px rgba(0,0,0,0.34);
}

.playlists-hub-item-arrow {
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(7px) scale(0.82);
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.playlists-hub-item.active .playlists-hub-item-arrow {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
.playlists-hub-item:hover .playlists-hub-item-arrow {
    opacity: 1;
    transform: translateY(0) scale(1);
}
}

.playlists-hub.playlist-sort-mode .playlists-hub-item.is-sort-item {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.playlists-hub-drag-handle {
    cursor: grab;
    font-size: 1.35rem;
    touch-action: none;
    top: 10px;
    bottom: auto;
}

.playlists-hub-drag-ghost {
    opacity: 0.35;
}

.playlists-hub-drag-chosen {
    border-color: var(--color-accent-faint);
    box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.playlists-hub-dragging {
    opacity: 0.92;
}

.playlists-hub-drag-fallback {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.playlists-hub-empty {
    grid-column: 1 / -1;
    padding: 25px;
    border: 1px dashed var(--color-border);
    border-radius: 17px;
    color: var(--color-text-soft);
    text-align: center;
    background: rgba(255,255,255,0.025);
}

@media (max-width: 900px) {
    .playlists-hub {
        padding-top: 6px;
    }

    .playlists-hub-actions {
        justify-content: stretch;
    }

    .playlists-hub-actions > button {
        flex: 0 0 46px;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .playlists-hub-sort-label {
        display: none;
    }

    .playlists-public-browser-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .playlists-public-browser-head .playlists-public-sort {
        width: 100%;
        flex: 0 0 auto;
    }

    .playlists-public-controls {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .playlists-hub-global-search {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .playlists-hub-view-switcher .charts-filter {
        width: 100%;
    }

    .playlists-hub-view-btn {
        min-width: 0;
        flex: 1 1 0;
        padding-inline: 10px;
    }

    .playlists-public-search {
        min-height: 44px;
        padding: 0 12px;
    }

    .playlists-public-search input {
        font-size: 0.9rem;
    }

    .playlists-public-sort {
        height: auto;
    }

    .playlists-public-sort .app-native-dropdown-toggle {
        height: 43px;
    }

    .playlists-hub-search-actions > button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .playlists-hub-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .playlists-hub-item {
        gap: 9px;
        padding: 8px 8px 11px;
        border-radius: 17px;
    }

    .playlists-hub-item-media {
        border-radius: 12px;
    }

    .playlists-hub-item-name {
        font-size: 0.94rem;
    }

    .playlists-hub-item-description {
        font-size: 0.76rem;
    }

    .playlists-hub-item-arrow,
    .playlists-hub-drag-handle {
        width: 34px;
        height: 34px;
        right: 8px;
        bottom: 8px;
    }

    .playlists-hub-drag-handle {
        top: 8px;
        bottom: auto;
    }

    .playlists-public-card-meta {
        font-size: 0.7rem;
    }

    .playlists-public-owner-name {
        max-width: 72px;
    }

    .playlists-public-pagination {
        gap: 8px;
    }

    .page-switcher .page-switcher-btn {
        min-width: 0;
        padding-inline: 12px;
    }
}

.my-songs-manager {
    width: min(1120px, 100%);
    margin: 0 auto 120px;
    padding: 18px;
}

.my-songs-manager-filter {
    justify-content: center;
    margin: 0 0 18px;
}

.my-songs-manager.is-opening {
    animation: mySongsManagerOpen 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mySongsManagerOpen {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.my-songs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.my-songs-head h2 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 1.55rem;
    font-weight: var(--font-weight-bold);
}

.my-songs-head p {
    margin: 5px 0 0;
    color: var(--color-text-soft);
    font-size: 0.94rem;
}

.my-songs-quota-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    margin-bottom: 18px;
}

.my-songs-quota-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transition: width 0.2s ease;
}

.my-songs-form {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.my-songs-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.my-songs-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--color-text-soft);
    font-size: 0.88rem;
}

.my-songs-form input[type="text"],
.my-songs-form select,
.my-songs-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: var(--color-text);
    padding: 11px 12px;
    font: inherit;
}

.my-songs-form select {
    -webkit-appearance: none;
    appearance: none;
    min-height: 46px;
    padding-right: 42px;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.72)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 14px center;
    background-size: auto, 16px 16px;
    cursor: pointer;
}

.my-songs-form input[type="text"]:focus,
.my-songs-form select:focus,
.my-songs-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-light);
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px var(--color-accent-faint);
}

.my-songs-form select option {
    color: #111;
}

.my-songs-form .app-native-dropdown {
    min-height: 46px;
}

.my-songs-form .app-native-dropdown-toggle {
    min-height: 46px;
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(255,255,255,0.07);
    font: inherit;
}

.my-songs-form .app-native-dropdown-toggle:focus {
    border-color: var(--color-accent-light);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px var(--color-accent-faint);
}

@media (hover: hover) and (pointer: fine) {
.my-songs-form .app-native-dropdown-toggle:hover {
    border-color: var(--color-accent-light);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px var(--color-accent-faint);
}
}

.my-songs-form .app-native-dropdown-menu {
    border-radius: 8px;
    background: rgba(18,18,22,0.98);
}

.my-songs-form .app-native-dropdown-option {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.my-songs-file-control {
    position: relative;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    padding: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.my-songs-file-control:focus-within {
    border-color: var(--color-accent-light);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px var(--color-accent-faint);
}

@media (hover: hover) and (pointer: fine) {
.my-songs-file-control:hover {
    border-color: var(--color-accent-light);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px var(--color-accent-faint);
}
}

.my-songs-file-control input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.my-songs-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.my-songs-file-button .material-symbols-outlined {
    font-size: 19px;
}

.my-songs-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
    font-weight: 600;
    pointer-events: none;
}

.my-songs-form textarea {
    min-height: 132px;
    resize: none;
}

.my-songs-lyrics-field {
    grid-column: 1 / -1;
}

.my-songs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.my-songs-form-message {
    min-height: 20px;
    margin-top: 10px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.my-songs-form-message.is-error {
    color: #ff8f8f;
}

.my-songs-manager .my-songs-list {
    display: grid;
    gap: 10px;
}

.my-songs-manager .my-songs-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.065);
    border: 1px solid var(--color-border);
}

.my-songs-cover {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
}

.my-songs-title {
    color: var(--color-text);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-songs-meta {
    color: var(--color-text-soft);
    font-size: 0.88rem;
    margin-top: 4px;
}

.my-songs-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-songs-empty {
    padding: 24px;
    text-align: center;
    color: var(--color-text-soft);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .my-songs-manager.is-opening {
        animation: none !important;
    }
}

@media (max-width: 760px) {
    .my-songs-manager {
        padding: 12px;
        margin-bottom: 100px;
    }

    .my-songs-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-songs-form-grid,
    .my-songs-item {
        grid-template-columns: 1fr;
    }

    .my-songs-item {
        align-items: stretch;
    }

    .my-songs-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* My Songs Manager Redesign */
.my-songs-manager {
    width: min(1080px, 100%);
    padding: 0 10px 128px;
}

.my-songs-manager-filter {
    margin: 0 0 16px;
}

.my-songs-head {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px 18px 0 0;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
        rgba(8, 10, 22, 0.34);
    box-shadow: 0 18px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.my-songs-head-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    font-size: 27px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.my-songs-head > div {
    min-width: 0;
}

.my-songs-head h2 {
    font-size: 1.35rem;
    line-height: 1.05;
}

.my-songs-head p {
    margin-top: 7px;
    font-size: 0.88rem;
}

.my-songs-head #mySongsUploadToggle {
    min-height: 42px;
    padding: 0 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.my-songs-quota-track {
    height: 10px;
    margin: 0 0 16px;
    border: 1px solid rgba(255,255,255,0.13);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.my-songs-quota-fill {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), rgba(255,255,255,0.72));
    box-shadow: 0 0 18px var(--color-accent-faint);
}

.my-songs-form {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    margin: 0 0 16px;
    border: 1px solid rgba(255,255,255,0.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
        rgba(8, 10, 22, 0.34);
    box-shadow: 0 18px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.my-songs-form-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(190px, 0.72fr) minmax(0, 1fr);
    gap: 12px;
}

.my-songs-form label {
    gap: 8px;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 700;
}

.my-songs-form label > span:first-child {
    color: var(--color-text-soft);
    font-weight: 700;
}

.my-songs-form input[type="text"],
.my-songs-form select,
.my-songs-form textarea,
.my-songs-file-control {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.my-songs-form input[type="text"],
.my-songs-form select,
.my-songs-form textarea {
    padding: 12px 13px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.my-songs-form input[type="text"]:focus,
.my-songs-form select:focus,
.my-songs-form textarea:focus,
.my-songs-file-control:focus-within {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 3px rgba(255,255,255,0.045);
}

@media (hover: hover) and (pointer: fine) {
.my-songs-file-control:hover {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 3px rgba(255,255,255,0.045);
}
}

.my-songs-form .app-native-dropdown-toggle {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.my-songs-form .app-native-dropdown-toggle:focus {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 3px rgba(255,255,255,0.045);
}

@media (hover: hover) and (pointer: fine) {
.my-songs-form .app-native-dropdown-toggle:hover {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 3px rgba(255,255,255,0.045);
}
}

.my-songs-file-control {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 6px;
}

.my-songs-file-button {
    min-height: 34px;
    border-radius: 11px;
    background: rgba(255,255,255,0.095);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--color-text);
}

.my-songs-file-name {
    font-size: 0.9rem;
}

.my-songs-form textarea {
    min-height: 120px;
}

.my-songs-form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.my-songs-form-actions .shuffle-all-btn,
.my-songs-form-actions .play-all-btn {
    min-height: 42px;
    min-width: 150px;
    padding: 0 18px;
    justify-content: center;
    text-align: center;
    gap: 7px;
}

.my-songs-form-actions .shuffle-all-btn .material-symbols-outlined,
.my-songs-form-actions .play-all-btn .material-symbols-outlined {
    font-size: 20px;
    flex: 0 0 auto;
}

.my-songs-manager.is-saving .my-songs-form,
.my-songs-manager.is-saving .my-songs-list {
    cursor: progress;
}

.my-songs-form.is-saving input,
.my-songs-form.is-saving textarea,
.my-songs-form.is-saving select,
.my-songs-form.is-saving button,
.my-songs-list.is-saving button,
#mySongsUploadToggle:disabled {
    cursor: not-allowed;
}

.my-songs-form.is-saving input,
.my-songs-form.is-saving textarea,
.my-songs-form.is-saving select,
.my-songs-file-control:has(input:disabled) {
    opacity: 0.72;
}

.my-songs-list.is-saving {
    opacity: 0.72;
    pointer-events: none;
}

.my-songs-form-actions .play-all-btn:disabled,
.my-songs-form-actions .shuffle-all-btn:disabled,
#mySongsUploadToggle:disabled {
    opacity: 0.68;
    transform: none;
}

.my-songs-submit-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mySongsSubmitSpin 0.78s linear infinite;
}

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

.my-songs-form-message {
    min-height: 18px;
    margin-top: 8px;
    font-size: 0.84rem;
}

.my-songs-manager .my-songs-list {
    gap: 8px;
}

.my-songs-manager .my-songs-item {
    position: relative;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028)),
        rgba(8, 10, 22, 0.26);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
    transition: border-color var(--transition-fast) ease, background var(--transition-fast) ease, transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
.my-songs-manager .my-songs-item:hover {
    border-color: rgba(255,255,255,0.22);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.038)),
        rgba(8, 10, 22, 0.34);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
}

.my-songs-manager .my-songs-cover {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.my-songs-manager .my-songs-title {
    font-size: 0.96rem;
}

.my-songs-manager .my-songs-meta {
    font-size: 0.82rem;
}

.my-songs-manager .my-songs-actions {
    gap: 6px;
}

.my-songs-manager .my-songs-actions .favorite-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
}

@media (hover: hover) and (pointer: fine) {
.my-songs-manager .my-songs-actions .favorite-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.24);
}
}

.my-songs-manager .my-songs-empty {
    padding: 30px 18px;
    border-radius: 18px;
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.045);
}

@media (max-width: 760px) {
    .my-songs-manager {
        padding: 0 4px 108px;
    }

    .my-songs-filter-wrap {
        width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .my-songs-filter {
        width: min(100%, 320px);
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .my-songs-filter-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 8px;
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .my-songs-head {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 16px;
        border-radius: 16px 16px 0 0;
    }

    .my-songs-head-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 24px;
    }

    .my-songs-head #mySongsUploadToggle {
        grid-column: 1 / -1;
        width: 100%;
    }

    .my-songs-form {
        padding: 12px;
        border-radius: 16px;
    }

    .my-songs-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .my-songs-file-control {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .my-songs-file-button {
        width: 100%;
    }

    .my-songs-form-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .my-songs-form-actions .shuffle-all-btn,
    .my-songs-form-actions .play-all-btn {
        width: 100%;
        min-width: 0;
    }

    .my-songs-manager .my-songs-item {
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
    }

    .my-songs-manager .my-songs-cover {
        width: 48px;
        height: 48px;
    }

    .my-songs-manager .my-songs-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .my-songs-filter {
        gap: 3px;
        padding: 3px;
    }

    .my-songs-filter-btn {
        min-height: 32px;
        padding: 0 6px;
        font-size: 0.72rem;
    }
}

.album-discovery-toolbar {
    grid-column: 1 / -1;
    justify-self: center;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.album-discovery-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    flex-wrap: nowrap;
}

.artist-card {
    font-family: var(--font-family);
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    min-width: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
}

.artist-card.album-card {
    position: relative;
    box-sizing: border-box;
    gap: 11px;
    padding: 10px 10px 13px;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    isolation: isolate;
    height: 100%;
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.24s ease;
}

.album-card[role="button"] {
    outline: none;
}

.album-card-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #19151e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), 0 9px 22px rgba(0,0,0,0.2);
}

.album-card-favorite {
    --song-like-main: var(--color-accent-light);
    --song-like-alt: var(--color-accent);
    --song-like-soft: var(--color-accent-soft);
    --song-like-faint: var(--color-accent-faint);
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(14, 15, 23, 0.72) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.24) !important;
    overflow: visible;
    isolation: isolate;
    z-index: 6;
    transition: box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.album-card-favorite:hover {
    background: rgba(20, 21, 31, 0.92) !important;
}
}

.album-card-favorite .material-symbols-outlined {
    font-size: 20px;
    line-height: 20px;
    color: rgba(255,255,255,0.88);
    transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

.album-card-favorite.active {
    background: radial-gradient(circle at 30% 30%, var(--song-like-soft), var(--song-like-faint)) !important;
    box-shadow: 0 0 0 1px var(--song-like-soft), 0 10px 22px var(--song-like-faint) !important;
    color: var(--song-like-main);
}

.album-card-favorite.active .material-symbols-outlined {
    color: var(--song-like-main);
    filter: drop-shadow(0 0 8px var(--song-like-soft));
}

.album-card-favorite::before,
.album-card-favorite::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.album-card-favorite::before {
    inset: -4px;
    border-radius: 999px;
    border: 1.5px solid var(--song-like-main);
    transform: scale(0.65);
}

.album-card-favorite::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 -14px 0 var(--song-like-main),
        10px -10px 0 var(--song-like-main),
        14px 0 0 var(--song-like-alt),
        10px 10px 0 var(--song-like-alt),
        0 14px 0 var(--song-like-main),
        -10px 10px 0 var(--song-like-main),
        -14px 0 0 var(--song-like-alt),
        -10px -10px 0 var(--song-like-alt);
}

.album-card-favorite.like-pop.like-pop-active {
    animation: songFavoritePopIn 0.46s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.album-card-favorite.like-pop.like-pop-active .material-symbols-outlined {
    animation: songFavoriteHeartIn 0.46s cubic-bezier(0.18, 0.85, 0.22, 1) both;
}

.album-card-favorite.like-pop.like-pop-active::before {
    animation: songFavoriteRing 0.44s ease-out both;
}

.album-card-favorite.like-pop.like-pop-active::after {
    animation: songFavoriteBurst 0.42s ease-out both;
}

.album-card-favorite.like-pop.like-pop-inactive {
    animation: songFavoritePopOut 0.3s ease both;
}

.album-card-favorite.like-pop.like-pop-inactive .material-symbols-outlined {
    animation: songFavoriteHeartOut 0.3s ease both;
}

@media (min-width: 1100px) {
    #songGrid.artist-discovery-active,
    #songGrid[data-content-mode="albums"],
    #songGrid[data-content-mode="favorite-albums"] {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 20px;
    }

    .playlists-hub-list {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1440px) {
    #songGrid.artist-discovery-active,
    #songGrid[data-content-mode="albums"],
    #songGrid[data-content-mode="favorite-albums"] {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .playlists-hub-list {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
}

@media (hover: hover) and (pointer: fine) {
.artist-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.22);
}
}

@media (hover: hover) and (pointer: fine) {
.artist-card.album-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-faint);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.045));
    box-shadow: 0 20px 40px rgba(0,0,0,0.24);
}
}

.artist-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.artist-card-image,
.artist-card-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.26s ease, filter 0.26s ease;
}

@media (hover: hover) and (pointer: fine) {
.artist-card:hover .artist-card-image {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.03);
}
}

.album-card .artist-card-image {
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
.artist-card.album-card:hover .artist-card-image {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.03);
}
}

.artist-card-placeholder {
    display: grid;
    place-items: center;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: rgba(255,255,255,0.92);
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 50%),
        linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-faint));
}

.album-card-placeholder,
.channel-card-placeholder {
    position: relative;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 21% 18%, color-mix(in srgb, var(--playlist-card-accent) 72%, transparent) 0, transparent 34%),
        radial-gradient(circle at 85% 86%, hsl(calc(var(--playlist-card-hue) + 62) 78% 48% / 0.8) 0, transparent 42%),
        linear-gradient(145deg, hsl(var(--playlist-card-hue) 42% 19%), hsl(calc(var(--playlist-card-hue) + 28) 50% 8%));
}

.album-card-placeholder::before,
.channel-card-placeholder::before {
    content: '';
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    right: -19%;
    bottom: -20%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,0.035), 0 0 0 38px rgba(255,255,255,0.025);
}

.album-card-placeholder::after,
.channel-card-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(255,255,255,0.13), transparent 34%, rgba(0,0,0,0.18));
}

.album-card-placeholder-icon,
.channel-card-placeholder-icon {
    position: relative;
    z-index: 1;
    color: var(--playlist-card-accent);
    font-size: clamp(2.8rem, 5vw, 4rem);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.38));
    transform: rotate(-4deg);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
.album-card:hover .album-card-placeholder-icon,
.channel-card:hover .channel-card-placeholder-icon {
    transform: rotate(0deg) scale(1.08);
    filter: drop-shadow(0 11px 22px rgba(0,0,0,0.48));
}
}

.artist-card-info {
    padding: 13px 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}

.album-card .artist-card-info {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: 0 4px 1px;
    gap: 4px;
}

.artist-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.artist-card-title {
    min-width: 0;
    flex: 1;
    font-family: 'Kanit', var(--font-family);
    font-weight: 800;
    font-size: 1.04rem;
    line-height: 1.12;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card .artist-card-title-row {
    justify-content: flex-start;
}

.album-card .artist-card-title {
    text-align: left;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card-handle {
    font-family: var(--font-family);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-accent-light);
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-meta-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    line-height: 1.25;
}

.album-card .artist-card-handle {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    opacity: 1;
    font-size: inherit;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-card-meta-dot {
    flex: 0 0 auto;
    opacity: 0.55;
}

.album-card .artist-card-meta {
    flex: 0 0 auto;
    color: inherit;
    font-size: inherit;
    white-space: nowrap;
}

.album-card .artist-card-desc {
    min-height: 0;
    margin-top: 2px;
    margin-bottom: 0;
    text-align: left;
}

.album-card-arrow {
    pointer-events: none;
}

.artist-card.channel-card {
    position: relative;
    box-sizing: border-box;
    gap: 11px;
    height: 100%;
    padding: 10px 10px 13px;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    isolation: isolate;
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
.artist-card.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-faint);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.045));
    box-shadow: 0 20px 40px rgba(0,0,0,0.24);
}
}

.channel-card-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #19151e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), 0 9px 22px rgba(0,0,0,0.2);
}

.channel-card .artist-card-image {
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
.artist-card.channel-card:hover .artist-card-image {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.03);
}
}

.channel-card .artist-card-info {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 4px 1px;
    gap: 4px;
}

.channel-card .artist-card-title-row {
    justify-content: flex-start;
}

.channel-card .artist-card-title {
    text-align: left;
}

.channel-card-meta-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    line-height: 1.25;
}

.channel-card .artist-card-handle {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    opacity: 1;
    font-size: inherit;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-card-meta-dot {
    flex: 0 0 auto;
    opacity: 0.55;
}

.channel-card .artist-card-meta {
    flex: 0 0 auto;
    color: inherit;
    font-size: inherit;
    white-space: nowrap;
}

.channel-card .artist-card-desc {
    min-height: 0;
    margin-top: 2px;
    margin-bottom: 0;
    text-align: left;
}

.channel-card-arrow {
    pointer-events: none;
}

@media (max-width: 720px) {
    .artist-card.album-card,
    .artist-card.channel-card {
        gap: 9px;
        padding: 8px 8px 11px;
        border-radius: 17px;
    }

    .album-card-media,
    .channel-card-media {
        border-radius: 12px;
    }

    .favorites-view-toggle {
        width: fit-content;
        justify-content: center;
    }

    .favorites-view-toggle .artist-discovery-switch-btn {
        flex: 0 0 auto;
        text-align: center;
    }

    .album-discovery-toolbar {
        width: min(100%, 100%);
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .album-discovery-sort {
        width: fit-content;
        max-width: 100%;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .album-discovery-sort .artist-discovery-switch-btn {
        flex: 0 0 auto;
        min-width: auto;
        padding-inline: 12px;
    }

    .album-discovery-sort::-webkit-scrollbar {
        display: none;
    }
}

.artist-card-meta {
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-soft);
}

.status-badge,
.artist-card-status-badge {
    flex: 0 0 auto;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    border-radius: 999px;
    width: 28px;
    height: 24px;
    padding: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    white-space: nowrap;
}

.status-badge .material-symbols-outlined,
.artist-card-status-badge .material-symbols-outlined {
    font-size: 17px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 650, 'GRAD' 0, 'opsz' 20;
}

.status-badge.ai,
.artist-card-status-badge.ai {
    color: #b7f1ff;
    border: 1px solid rgba(120, 220, 255, 0.35);
    background: rgba(120, 220, 255, 0.08);
}

.status-badge.mood,
.artist-card-status-badge.mood {
    color: #ffe6b0;
    border: 1px solid rgba(255, 191, 94, 0.34);
    background: rgba(255, 191, 94, 0.12);
}

.mood-home-card .artist-card-placeholder {
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.18), transparent 45%),
        linear-gradient(140deg, rgba(255, 191, 94, 0.52), rgba(160, 32, 240, 0.28));
}

.status-badge-compact {
    width: 26px;
    height: 22px;
}

.status-badge-compact .material-symbols-outlined {
    font-size: 16px;
}

.status-badge-hero {
    font-size: 0.72rem;
    padding: 4px 9px;
    transform: translateY(1px);
}

.artist-card-desc {
    margin-top: 2px;
    color: var(--color-text-soft);
    font-family: var(--font-family);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artist-discovery-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
}

.music-video-card {
    font-family: var(--font-family);
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028));
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
.music-video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.24);
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}
}

.music-video-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0,0,0,0.26);
}

.music-video-thumb-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.26s ease, filter 0.26s ease;
}

@media (hover: hover) and (pointer: fine) {
.music-video-card:hover .music-video-thumb-wrap img {
    transform: scale(1.025);
    filter: saturate(1.08) contrast(1.03);
}
}

.music-video-play-pill {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07)),
        rgba(10, 10, 18, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28), 0 0 18px var(--color-accent-faint);
}

.music-video-play-pill .material-symbols-outlined {
    font-size: 2.2rem;
}

.music-video-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,0.68);
    font-size: 0.84rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.music-video-card-info {
    padding: 15px;
    display: grid;
    gap: 6px;
    min-width: 0;
    background: transparent;
}

.music-video-title,
.music-video-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-video-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.08rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.music-video-meta {
    color: var(--color-text-soft);
    font-family: var(--font-family);
    font-size: 0.86rem;
    line-height: 1.25;
    font-weight: 700;
}

.podcast-discovery-shell,
.podcast-detail-shell {
    grid-column: 1 / -1;
    display: grid;
    gap: 20px;
    width: 100%;
}

.podcast-discovery-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
}

.podcast-discovery-hero span,
.podcast-card-kicker,
.podcast-player-kicker {
    color: var(--color-text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.podcast-discovery-hero h2,
.podcast-detail-head h2,
.podcast-player h2 {
    margin: 4px 0 8px;
    font-family: 'Kanit', sans-serif;
    font-weight: var(--font-weight-bold);
}

.podcast-discovery-hero p,
.podcast-detail-head p,
.podcast-player p {
    margin: 0;
    color: var(--color-text-soft);
}

.podcast-request-btn {
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
}

.podcast-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.podcast-card,
.podcast-continue-card,
.podcast-episode-card {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

@media (hover: hover) and (pointer: fine) {
.podcast-card:hover,
.podcast-continue-card:hover,
.podcast-episode-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}
}

.podcast-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
}

.podcast-card img,
.podcast-continue-card img,
.podcast-detail-head img,
.podcast-episode-card img,
.podcast-player-hero img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

.podcast-card strong {
    display: block;
    margin: 4px 0;
    font-size: 1.05rem;
}

.podcast-card small,
.podcast-episode-card span,
.podcast-continue-card span,
.podcast-detail-head small {
    color: var(--color-text-soft);
}

.podcast-continue-rail h3 {
    margin: 0 0 10px;
    font-family: 'Kanit', sans-serif;
}

.podcast-continue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.podcast-continue-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
}

.podcast-continue-card i,
.podcast-progress {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    margin-top: 8px;
}

.podcast-continue-card b,
.podcast-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.podcast-back-btn {
    justify-self: start;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--color-text);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.podcast-detail-head {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
}

.podcast-episode-list {
    display: grid;
    gap: 12px;
}

.podcast-episode-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
}

.podcast-episode-info strong {
    display: block;
    font-size: 1rem;
}

.podcast-episode-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: var(--color-text-soft);
}

.podcast-episode-side .material-symbols-outlined {
    color: var(--accent-primary);
    font-size: 2rem;
}

.podcast-player-backdrop,
.podcast-request-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0,0,0,.54);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.podcast-player-open {
    overflow: hidden;
}

.podcast-player,
.podcast-request-modal {
    position: relative;
    width: min(820px, 100%);
    max-height: min(760px, calc(100svh - 48px));
    overflow: auto;
    border-radius: 26px;
    padding: 24px;
    border: 1px solid var(--color-border);
}

.podcast-player-close,
.podcast-request-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--color-text);
    background: rgba(255,255,255,.12);
    cursor: pointer;
}

.podcast-player-hero {
    display: grid;
    grid-template-columns: 170px minmax(0,1fr);
    gap: 20px;
    align-items: center;
    padding-right: 44px;
}

.podcast-player audio {
    width: 100%;
    margin-top: 20px;
}

.podcast-transcript {
    margin-top: 18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 14px;
    color: var(--color-text);
}

.podcast-transcript summary {
    cursor: pointer;
    font-weight: 800;
}

.podcast-transcript div {
    margin-top: 12px;
    color: var(--color-text-soft);
    line-height: 1.65;
}

.podcast-request-modal {
    display: grid;
    gap: 14px;
}

.podcast-request-modal h2 {
    margin: 0 50px 0 0;
    font-family: 'Kanit', sans-serif;
}

.podcast-request-modal label {
    display: grid;
    gap: 7px;
    color: var(--color-text-soft);
    font-weight: 800;
}

.podcast-request-modal input,
.podcast-request-modal textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--color-text);
    background: rgba(255,255,255,.08);
    outline: none;
}

.podcast-request-message {
    min-height: 20px;
    color: var(--color-text-soft);
}

.music-video-player-backdrop {
    position: fixed;
    inset: 0;
    z-index: 14000;
    padding:
        max(18px, env(safe-area-inset-top, 0px))
        max(18px, env(safe-area-inset-right, 0px))
        max(18px, env(safe-area-inset-bottom, 0px))
        max(18px, env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.58);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

body.music-video-player-open {
    overflow: hidden;
}

.music-video-player {
    position: relative;
    width: min(1180px, 100%);
    max-height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.025)),
        color-mix(in srgb, var(--color-bg) 76%, var(--color-accent) 24%);
    box-shadow: 0 28px 80px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.16);
    display: grid;
    grid-template-rows: minmax(0, auto) auto;
}

.music-video-stage {
    background: #000;
    width: 100%;
    max-height: min(74vh, 720px);
    aspect-ratio: 16 / 9;
}

.music-video-stage video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.music-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,0.46);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.music-video-info {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.music-video-info h2 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem);
    line-height: 1.1;
}

.music-video-info p {
    margin: 3px 0 0;
    color: var(--color-text-soft);
    font-weight: 700;
}

.music-video-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.music-video-share-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
.music-video-share-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.11);
}
}

.music-video-share-btn .material-symbols-outlined {
    font-size: 1.35rem;
}

.music-video-quality {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    flex: 0 0 auto;
}

.music-video-quality[hidden] {
    display: none !important;
}

.music-video-quality-btn {
    min-height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    color: var(--color-text-soft);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.music-video-quality-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
}

@media (max-width: 640px) {
    .music-video-card-info {
        padding: 11px;
    }

    .music-video-play-pill {
        width: 40px;
        height: 40px;
    }

    .music-video-player-backdrop {
        padding:
            max(10px, env(safe-area-inset-top, 0px))
            max(10px, env(safe-area-inset-right, 0px))
            max(10px, env(safe-area-inset-bottom, 0px))
            max(10px, env(safe-area-inset-left, 0px));
        align-items: stretch;
    }

    .music-video-player {
        width: 100%;
        max-height: 100%;
        border-radius: 18px;
        align-self: center;
    }

    .music-video-stage {
        max-height: 62vh;
    }

    .music-video-info {
        padding: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .music-video-actions {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
    }

    .music-video-share-btn {
        flex: 0 0 42px;
    }

    .music-video-quality {
        min-width: 0;
        flex: 1 1 auto;
    }

    .music-video-quality-btn {
        flex: 1;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .music-video-player-backdrop {
        padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    }

    .music-video-player {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
        grid-template-rows: minmax(0, 1fr);
    }

    .music-video-stage {
        max-height: calc(100vh - 16px);
    }

    .music-video-info {
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px;
    }

    .music-video-quality {
        width: 100%;
    }

    .music-video-quality-btn {
        flex: 1;
    }
}

#scrollSentinel {
    height: 1em;
}


/* ========================
   ADD TO PLAYLIST PICKER
   ======================== */
#addToPlPickerBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 6000;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
}

#addToPlPicker {
    display: flex;
    flex-direction: column;
    width: 90vw;
    max-width: 380px;
    max-height: 70vh;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: popupFadeIn 0.25s ease-out forwards;
    overflow: hidden;
}

.add-to-pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--color-border);
}

.add-to-pl-header h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.1rem;
    margin: 0;
}

.add-to-pl-song {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(160,32,240,0.08);
    border-bottom: 1px solid var(--color-border);
}

.add-to-pl-song img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.add-to-pl-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
}

.add-to-pl-done {
    width: auto;
    padding: 8px 28px;
    margin: 12px auto 4px;
    display: block;
    border: none;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.add-to-pl-done:hover {
    background: var(--color-accent-light);
    transform: scale(1.02);
}
}

.add-to-pl-done:active {
    transform: scale(0.98);
}

.add-to-pl-close {
    background: none;
    border: none;
    color: var(--color-text-soft);
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: 6px;
    transition: background 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.add-to-pl-close:hover {
    background: rgba(255,255,255,0.1);
}
}

/* ========================
   THEME PICKER
   ======================== */
.theme-picker-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 7000;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
}

.theme-picker {
    width: 90vw;
    max-width: 520px;
    max-height: 82vh;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: popupFadeIn 0.25s ease-out forwards;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.theme-picker-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
    overflow-y: auto;
}

.theme-picker-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-picker-section-custom {
    padding-top: 4px;
    border-top: 1px solid var(--color-border);
}

.theme-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.theme-section-head > div {
    min-width: 0;
}

.theme-picker-section-custom .theme-section-head {
    align-items: center;
}

.theme-section-head h4 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
}

.theme-section-head p {
    margin: 4px 0 0;
    color: var(--color-text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.custom-theme-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    margin-left: auto;
    margin-top: 2px;
    padding: 0 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast) ease, color var(--transition-fast) ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.custom-theme-open-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.15);
    color: var(--color-text);
}
}

.custom-theme-open-btn .material-symbols-outlined {
    font-size: 1.05rem;
}



.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-grid-custom {
    min-height: 0;
}

/* Center only when a theme card is explicitly marked as lone item in last row */
.theme-grid .theme-card.theme-card-lone-last {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 5px);
}

/* Featured theme card (Purple/default) spans full row */
.theme-grid .theme-card.theme-card-featured {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
}

.theme-card {
    position: relative;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 90px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

.theme-card-custom {
    min-height: 116px;
}

.theme-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0.15;
    z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
.theme-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}
}

.theme-card.active {
    border-color: var(--color-accent-light);
}

.theme-card-name {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    color: var(--theme-name-fallback, #ffffff);
    background: var(--theme-name-gradient, linear-gradient(90deg, #ffffff 0%, var(--color-accent-light) 100%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

.theme-dots {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.theme-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.theme-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.1rem;
    color: var(--color-accent-light);
    z-index: 1;
    display: none;
}

.theme-card.active .theme-card-check {
    display: block;
}

.theme-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.theme-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.theme-card-icon-btn {
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    cursor: pointer;
    padding: 0;
    opacity: 0.88;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.theme-card-icon-btn .material-symbols-outlined {
    font-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
.theme-card-edit:hover,
.theme-card-delete:hover {
    opacity: 1;
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}
}

@media (hover: hover) and (pointer: fine) {
.theme-card-delete:hover {
    background: rgba(255,120,120,0.18);
}
}

.theme-empty-state {
    grid-column: 1 / -1;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed var(--color-border);
    background: rgba(255,255,255,0.04);
    color: var(--color-text-soft);
    text-align: center;
    font-size: 0.9rem;
}

.custom-theme-status {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.04);
    font-size: 0.88rem;
    line-height: 1.4;
}

.custom-theme-status[data-state="success"] {
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(16, 185, 129, 0.12);
}

.custom-theme-status[data-state="error"] {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(239, 68, 68, 0.12);
}

html.theme-popup-open,
body.theme-popup-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.custom-theme-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-theme-creator-backdrop {
    z-index: 7100;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding:
        max(28px, calc(22px + env(safe-area-inset-top, 0px)))
        14px
        max(30px, calc(22px + env(safe-area-inset-bottom, 0px)));
}

.custom-theme-creator-backdrop.is-closing {
    pointer-events: none;
    animation: customThemeCreatorBackdropOut 0.2s ease-in both;
}

.custom-theme-creator-backdrop.is-closing .custom-theme-creator {
    animation: customThemeCreatorOut 0.2s ease-in both !important;
}

.custom-theme-creator {
    width: min(92vw, 560px);
    max-height: calc(100vh - 58px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 58px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: auto 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: popupFadeIn 0.25s ease-out forwards;
}

.custom-theme-creator-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--color-border);
}

.custom-theme-creator-header > div {
    flex: 1;
    text-align: center;
}

.custom-theme-creator-header h3 {
    margin: 2px 0 0;
    font-family: 'Kanit', sans-serif;
    font-size: 1.1rem;
    line-height: 1.1;
}

.custom-theme-creator-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    font-weight: 700;
}

.custom-theme-creator-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 14px;
}

.custom-theme-status-popup {
    margin-bottom: 2px;
}

.custom-theme-preview-panel {
    --custom-theme-preview-accent: var(--color-accent);
    --custom-theme-preview-accent-light: var(--color-accent-light);
    --custom-theme-preview-bg: var(--color-bg);
    --custom-theme-preview-text: var(--color-text);
    --custom-theme-preview-soft: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 14px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
        var(--custom-theme-preview-bg);
    overflow: hidden;
}

.custom-theme-preview-card {
    display: grid;
    gap: 14px;
    min-height: 132px;
    border-radius: 14px;
    padding: 14px;
    color: var(--custom-theme-preview-text);
    background:
        radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--custom-theme-preview-accent) 30%, transparent), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.18);
}

.custom-theme-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.custom-theme-preview-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}

.custom-theme-preview-badge {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--custom-theme-preview-soft);
    background: rgba(255,255,255,0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.custom-theme-preview-bars {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 8px;
}

.custom-theme-preview-bars span {
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

.custom-theme-preview-mini {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(0,0,0,0.16);
}

.custom-theme-preview-mini span {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.custom-theme-preview-mini span::before,
.custom-theme-preview-mini span::after {
    content: "";
    display: block;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.custom-theme-preview-mini span::before {
    width: min(180px, 100%);
}

.custom-theme-preview-mini span::after {
    width: min(120px, 70%);
    opacity: 0.7;
}

.custom-theme-preview-mini button {
    border: 0;
    border-radius: 12px;
    min-height: 38px;
    padding: 0 16px;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--custom-theme-preview-accent), var(--custom-theme-preview-accent-light));
    pointer-events: none;
}

.custom-theme-step {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.045);
}

.custom-theme-step-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.custom-theme-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
}

.custom-theme-step-head h4 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    line-height: 1.15;
}

.custom-theme-step-head p {
    margin: 3px 0 0;
    color: var(--color-text-soft);
    font-size: 0.86rem;
    line-height: 1.35;
}

.custom-theme-preset-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.custom-theme-preset-row button {
    min-height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0 10px;
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    background: rgba(255,255,255,0.07);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.custom-theme-preset-row button:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.12);
}
}

.custom-theme-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.custom-theme-form-row-wide {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.custom-theme-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-theme-field span {
    font-size: 0.8rem;
    color: var(--color-text-soft);
}

.custom-theme-field small {
    margin-top: -3px;
    color: color-mix(in srgb, var(--color-text-soft) 82%, transparent);
    font-size: 0.74rem;
    line-height: 1.25;
}

.custom-theme-field input[type="text"],
.custom-theme-field select {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    padding: 0 12px;
    font: inherit;
}

.custom-theme-field .app-native-dropdown-toggle {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}

.custom-theme-field .app-native-dropdown-menu {
    z-index: 7200;
    border-radius: 10px;
}

.custom-theme-field input[type="text"]::placeholder {
    color: var(--color-text-soft);
}

.custom-theme-color-field input[type="color"] {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.06);
    padding: 4px;
    cursor: pointer;
}

.custom-theme-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 2px 0 0;
    padding: 10px 0 0;
    background: transparent;
    border-top: 0;
}

.custom-theme-submit,
.custom-theme-reset {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 0 14px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.custom-theme-submit {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    color: #ffffff;
    border: none;
}

.custom-theme-reset {
    background: rgba(255,255,255,0.13);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    color: var(--color-text);
    border-color: rgba(255,255,255,0.26);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 10px 24px rgba(0,0,0,0.18);
}

@media (hover: hover) and (pointer: fine) {
.custom-theme-submit:hover,
.custom-theme-reset:hover {
    transform: translateY(-1px);
}
}

/* ========================
   PRIDE THEME
   ======================== */
html[data-theme-id="pride"] body::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(255,77,93,0.24), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(0,194,255,0.18), transparent 36%),
        radial-gradient(circle at 50% 78%, rgba(183,108,255,0.18), transparent 38%);
}

html[data-theme-id="pride"] .sidebar-link.active,
html[data-theme-id="pride"] .home-mood-tab.active,
html[data-theme-id="pride"] .app-native-dropdown-option.is-active {
    background:
        linear-gradient(90deg, rgba(7,7,11,0.68), rgba(7,7,11,0.58)),
        var(--color-rainbow-gradient);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    color: #ffffff;
}

html[data-theme-id="pride"] .play-button,
html[data-theme-id="pride"] .custom-theme-submit {
    background: var(--color-rainbow-gradient);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

html[data-theme-id="pride"] .option-controls.active {
    color: var(--color-pride-yellow);
}

html[data-theme-id="pride"] .theme-card.active {
    border-color: rgba(255,255,255,0.42);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 26px rgba(0,0,0,0.22);
}

html[data-theme-id="pride"] .theme-card.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-rainbow-gradient);
    opacity: 0.95;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 640px) {
    .theme-section-head {
        flex-direction: column;
    }

    .custom-theme-creator-backdrop {
        padding:
            max(34px, calc(26px + env(safe-area-inset-top, 0px)))
            12px
            max(38px, calc(28px + env(safe-area-inset-bottom, 0px)));
    }

    .custom-theme-creator {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100vh - 72px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .custom-theme-open-btn {
        width: 100%;
        margin-left: 0;
    }

    .custom-theme-form-row,
    .custom-theme-form-row-wide {
        grid-template-columns: 1fr;
    }

    .custom-theme-preview-panel,
    .custom-theme-step {
        border-radius: 14px;
        padding: 12px;
    }

    .custom-theme-preview-card {
        min-height: 118px;
    }

    .custom-theme-preset-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-theme-preset-row button:last-child {
        grid-column: 1 / -1;
    }

    .custom-theme-actions {
        grid-template-columns: 1fr;
    }

    .custom-theme-creator-header,
    .custom-theme-creator-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn3 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes popupFadeIn {
    0% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes legalPopupBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes legalPopupBackdropOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes legalPopupFadeOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.96) translateY(10px); }
}

@keyframes customThemeCreatorBackdropOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes customThemeCreatorOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.96) translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
    #legalPopupBackdrop,
    #legalPopupBackdrop.is-closing,
    #legalPopupBackdrop.is-closing #legalPopup,
    .custom-theme-creator-backdrop.is-closing,
    .custom-theme-creator-backdrop.is-closing .custom-theme-creator {
        animation-duration: 1ms !important;
    }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        height: var(--app-viewport-height);
        min-height: var(--app-viewport-height);
        overflow: hidden !important;
        overscroll-behavior: none;
        position: relative;
    }

    body {
        touch-action: manipulation;
    }

    html:not(.mobile-entry) .main-content,
    html:not(.mobile-entry) .playback-menu,
    html:not(.mobile-entry) .mobile-header {
        opacity: 1 !important;
        transform: none !important;
    }

    html.mobile-entry .main-content,
    html.mobile-entry .playback-menu,
    html.mobile-entry .mobile-header {
        transition: opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
                    transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
        will-change: opacity, transform;
    }

    html.mobile-entry:not(.mobile-entry-ready) .main-content,
    html.mobile-entry:not(.mobile-entry-ready) .playback-menu {
        opacity: 0 !important;
        transform: translateY(12px);
    }

    html.mobile-entry:not(.mobile-entry-ready) .mobile-header {
        opacity: 0 !important;
        transform: translateY(-8px);
    }

    html.mobile-entry.mobile-entry-ready .main-content,
    html.mobile-entry.mobile-entry-ready .playback-menu,
    html.mobile-entry.mobile-entry-ready .mobile-header {
        opacity: 1 !important;
        transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
        html.mobile-entry .main-content,
        html.mobile-entry .playback-menu,
        html.mobile-entry .mobile-header {
            transition: none !important;
            transform: none !important;
            opacity: 1 !important;
        }
    }

    .sidebar,
    .main-content,
    .playback-menu,
    .mobile-header {
        animation: none !important;
    }

    .sidebar {
        left: auto;
        right: 0;
        top: 0;
        bottom: auto;
        height: var(--app-viewport-height);
        max-height: var(--app-viewport-height);
        transform: translate3d(100%, 0, 0);
        transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        backdrop-filter: blur(20px) saturate(135%);
        -webkit-backdrop-filter: blur(20px) saturate(135%);
        background: rgba(18, 18, 18, 0.16);
        background: color-mix(in srgb, var(--color-bg) 16%, transparent);
        box-shadow: -16px 0 42px rgba(0,0,0,0.32), inset 1px 0 0 rgba(255,255,255,0.06);
        isolation: auto;
        z-index: 1300;
        width: 280px;
        border-right: none;
        border-left: 1px solid var(--color-border);
        animation: none;
        opacity: 1;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .sidebar.open {
        transform: translate3d(0, 0, 0);
    }

    .sidebar {
        padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    }

    .mobile-header {
        flex-direction: row-reverse;
    }

    .sidebar-bottom {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-header {
        display: flex;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        border-bottom: 1px solid var(--color-border) !important;
        background: linear-gradient(0deg, var(--color-accent-soft), var(--color-accent-soft)), var(--color-bg-glass) !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.28), inset 0 -1px 0 var(--color-accent-faint);
        backdrop-filter: blur(var(--blur-amount)) saturate(140%);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    .main-content {
        position: fixed;
        inset: 0;
        margin-left: 0;
        padding: 12px;
        padding-top: calc(calc(env(safe-area-inset-top, 0px) + 54px) + 50px);
        padding-bottom: 110px;
        width: 100%;
        height: var(--app-viewport-height);
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .playback-menu {
        position: fixed;
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 14px;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        min-height: 72px;
        border-radius: 999px;
        padding: 9px 12px;
        max-width: none;
        z-index: 1100;
        border: 1px solid var(--color-border) !important;
        background: linear-gradient(0deg, var(--color-accent-soft), var(--color-accent-soft)), var(--color-bg-glass) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.28), inset 0 0 0 1px var(--color-accent-faint);
        backdrop-filter: blur(var(--blur-amount)) saturate(140%);
        overflow: hidden;
    }

    .mobile-overlay {
        z-index: 1250;
        height: var(--app-viewport-height);
        overscroll-behavior: none;
        touch-action: none;
    }

    .playback-inner {
        grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .song-info {
        max-width: 180px;
    }

    .playback-right {
        display: flex;
    }

    #volumeSlider {
        display: none;
    }

    .playback-center {
        max-width: none;
        padding-bottom: 0;
        height: auto;
    }

    .main-controls {
        gap: 8px;
    }

    .main-controls svg {
        width: 20px;
        height: 20px;
    }

    .play-pause-main {
        width: 36px;
        height: 36px;
    }

    .charts-filter {
        width: 100%;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .charts-filter-btn {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 0;
        padding: 0 8px;
    }

    .my-songs-filter {
        width: min(100%, 320px);
        flex-wrap: nowrap;
        border-radius: 999px;
    }

    .my-songs-filter-btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .progress-row {
        gap: 0;
    }

    .time-display {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-section.is-public-account-profile .hero-inner {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .playlist-cover {
        width: 140px;
        height: 140px;
    }

    .playlist-title,
    .home-panel-head h2 {
        font-size: 2.6rem;
    }

    .playlist-desc {
        text-align: center;
        margin: 0 auto;
        font-size: 0.9rem;
    }

    .mood-filter-toggle {
        height: 38px;
        font-size: 0.85rem;
    }

    .mood-filter .app-native-dropdown-toggle {
        font-size: 0.85rem;
    }

    .search-bar {
        min-height: 44px;
        padding: 0 12px;
    }

    /* Table: KÃ¼nstler-Spalte ausblenden auf Tablet */
    .song-table th:nth-child(3),
    .song-table td:nth-child(3) {
        display: none;
    }

    .song-row img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .song-title-cell {
        gap: 10px;
    }

    #addSongPopup {
        width: min(92vw, 560px) !important;
        max-height: 82vh !important;
    }

    /* createPlaylistBtn uses .sidebar-link styles */

    .hero-actions {
        gap: 8px;
    }

    .play-all-btn,
    .shuffle-all-btn,
    #addSongsToPlaylistBtn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

}

@media (max-width: 900px) {
    .playback-menu {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .main-content { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)); }

    .hero-section {
        padding: 24px 16px 20px;
        margin-bottom: 8px;
    }

    .playlist-cover {
        width: 110px;
        height: 110px;
    }

    .playlist-title,
    .home-panel-head h2 {
        font-size: 2rem;
    }

    .playlist-desc {
        font-size: 0.85rem;
    }

    .playlist-desc-meta-row {
        justify-content: center;
    }

    .auth-native-card {
        border-radius: 14px;
        padding: 12px;
    }

    .auth-native-mode {
        width: 100%;
        justify-content: space-between;
    }

    .auth-native-mode button {
        flex: 1;
    }

    .auth-native-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-native-actions button {
        width: 100%;
    }

    .auth-public-profile-main-actions {
        justify-content: center !important;
    }

    .auth-public-profile-main-actions button {
        width: auto !important;
        max-width: 100%;
        min-width: min(220px, 100%);
        flex: 0 1 auto;
        margin-inline: auto;
    }

    .auth-native-profile-header {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-profile-overview-media {
        width: 132px;
        max-width: 100%;
        flex: 0 0 auto;
        justify-self: center;
        margin-inline: auto;
    }

    .auth-profile-overview-preview {
        width: 132px;
        height: 132px;
        justify-self: center;
    }

    .auth-profile-overview-image-actions {
        width: 132px;
        max-width: 100%;
        justify-content: center;
        margin-inline: auto;
    }

    .auth-profile-overview-image-actions button {
        width: 100%;
        min-width: 0;
        margin-inline: 0;
    }

    .auth-public-file-btn {
        width: 100%;
        min-width: 0;
    }

    .auth-profile-actions-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .auth-profile-actions-row button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .play-all-btn,
    .shuffle-all-btn,
    #addSongsToPlaylistBtn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .hero-actions {
        width: 100%;
        flex-wrap: nowrap;
        gap: clamp(6px, 1.2vw, 8px);
        justify-content: center;
    }

    .hero-actions .play-all-btn,
    .hero-actions .shuffle-all-btn {
        gap: 4px;
        padding: clamp(8px, calc(6px + 0.6vw), 11px) clamp(10px, calc(6px + 1.6vw), 16px);
        font-size: clamp(0.78rem, calc(0.68rem + 0.5vw), 0.92rem);
        line-height: 1;
        min-height: clamp(42px, calc(36px + 1.6vw), 48px);
        flex-shrink: 1;
    }

    .hero-actions .play-all-btn .material-symbols-outlined,
    .hero-actions .shuffle-all-btn .material-symbols-outlined {
        font-size: clamp(18px, calc(14px + 1.2vw), 22px);
    }

    .hero-actions .profile-follow-btn {
        min-width: clamp(54px, calc(48px + 3vw), 68px);
        padding-inline: clamp(8px, 2vw, 12px);
    }

    .hero-actions .profile-follow-btn .profile-follow-label {
        display: none;
    }

    #sharePlaylist,
    #favoriteAlbumBtn,
    #reportAccountProfileBtn,
    #editPlaylistStyleBtn,
    #followPlaylistBtn,
    #playlistActionsBtn {
        width: clamp(42px, calc(36px + 1.8vw), 48px);
        min-width: clamp(42px, calc(36px + 1.8vw), 48px);
        height: clamp(42px, calc(36px + 1.8vw), 48px);
        padding: 0;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Playback Bar Mobile */
    .playback-menu {
        min-height: 66px;
        padding: 9px 11px;
        bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        left: 8px;
        right: 8px;
        width: calc(100% - 16px);
        transform: none;
        border-radius: 999px;
        overflow: hidden;
    }

    .playback-inner {
        grid-template-columns: auto 1fr;
        gap: 0;
        align-items: center;
    }

    .song-info {
        gap: 8px;
        max-width: none;
        flex-shrink: 0;
        grid-column: 1;
    }

    .song-info img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .song-info .title {
        font-size: 0.95rem;
    }

    .song-info .artist {
        font-size: 0.84rem;
    }

    .playback-center {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding-bottom: 0;
        height: auto;
        grid-column: 2;
    }

    .main-controls {
        gap: 6px;
        justify-content: flex-end;
        flex-wrap: nowrap;
        min-width: 0;
    }

    #shuffleButton {
        margin-right: 2px;
        flex-shrink: 0;
    }

    #loopButton {
        margin-left: 2px;
        flex-shrink: 0;
    }

    @media (hover: hover) and (pointer: fine) {
.main-controls button:hover,
#shuffleButton:hover,
#loopButton:hover {
        color: var(--color-text);
        transform: none;
    }
}

    @media (hover: hover) and (pointer: fine) {
.main-controls button.active:hover,
#shuffleButton.active:hover,
#loopButton.active:hover {
        color: var(--color-accent-light);
    }
}

    .main-controls button {
        flex-shrink: 0;
        min-width: 28px;
    }

    .main-controls button svg {
        width: 18px;
        height: 18px;
    }

    .play-pause-main {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .play-pause-main svg {
        width: 22px !important;
        height: 22px !important;
    }

    .progress-row {
        display: none;
    }

    .playback-right {
        display: none;
    }

    .playback-queue-panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-height: min(62vh, 460px);
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    /* Song Table Mobile */
    .song-table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
        border-spacing: 0 3px;
        overflow: visible;
    }

    .song-table,
    .song-table tbody,
    .song-row {
        max-width: 100%;
    }

    .song-table th,
    .song-table td {
        padding: 8px 8px;
        font-size: 0.9rem;
    }

    .song-table th:nth-child(1),
    .song-table td:nth-child(1) {
        width: 30px;
        font-size: 0.85rem;
    }

    /* KÃ¼nstler-Spalte auf Mobile ausblenden */
    .song-table th:nth-child(3),
    .song-table td:nth-child(3) {
        display: none;
    }

    .song-table th:nth-child(4),
    .song-table td:nth-child(4) {
        width: 124px;
        min-width: 124px;
        text-align: right;
        padding-left: 4px;
        padding-right: 10px;
        white-space: nowrap;
        overflow: visible;
    }

    .song-table td:nth-child(2),
    .song-title-cell {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .song-row img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .song-title-cell {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .song-title-cell img {
        flex: 0 0 38px;
    }

    .song-name {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: none;
        min-width: 0;
        flex: 1 1 auto;
        display: block;
    }

    .song-actions {
        gap: 4px;
        overflow: visible;
    }

    .song-table td:nth-child(4) .favorite-button {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: 999px;
    }

    .song-table td:nth-child(4) .favorite-button svg,
    .song-table td:nth-child(4) .favorite-button .material-symbols-outlined {
        width: 20px;
        height: 20px;
        font-size: 20px;
        line-height: 20px;
        display: block;
    }

    /* Controls: Suchleiste + Mood nebeneinander */
    .content-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-bar {
        flex: 1;
        min-height: 44px;
        padding: 0 12px;
    }

    .search-bar input {
        font-size: 0.9rem;
    }

    .mood-filter {
        flex-shrink: 0;
    }

    .mood-filter-toggle {
        height: 38px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .mood-filter .app-native-dropdown {
        min-width: 104px;
        width: 104px;
    }

    .mood-filter .app-native-dropdown-toggle {
        height: 38px;
        font-size: 0.9rem;
    }



    /* Pagination Mobile */
    .pagination-controls {
        max-width: 100%;
        gap: 8px;
    }

    .pagination-btn,
    .page-switcher-btn {
        font-size: 0.9rem;
        min-width: 0;
        min-height: 40px;
        padding: 9px 18px;
    }

    .pagination-label,
    .page-switcher-label {
        font-size: 0.86rem;
        min-width: 82px;
    }

    /* Mobile Header */
    .mobile-header {
        padding: 8px 12px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
        border-bottom-left-radius: 1em;
        border-bottom-right-radius: 1em;
    }

    .mobile-logo {
        font-size: 1.4rem;
    }

    .mobile-logo img {
        width: 36px;
        height: 36px;
    }

    #addSongPopup {
        width: min(94vw, 560px) !important;
        max-height: 82vh !important;
        border-radius: var(--border-radius);
    }
}

@media (max-width: 430px) {
    .song-table th,
    .song-table td {
        padding-left: 6px;
        padding-right: 6px;
    }

    .song-table th:nth-child(1),
    .song-table td:nth-child(1) {
        width: 28px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .song-table th:nth-child(4),
    .song-table td:nth-child(4) {
        width: 118px;
        min-width: 118px;
        padding-left: 2px;
        padding-right: 8px;
        overflow: visible;
    }

    .song-row img,
    .song-title-cell img {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .song-title-cell {
        gap: 7px;
    }

    .song-table td:nth-child(4) .favorite-button {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        border-radius: 999px;
    }

    .song-table td:nth-child(4) .favorite-button svg,
    .song-table td:nth-child(4) .favorite-button .material-symbols-outlined {
        width: 20px;
        height: 20px;
        font-size: 20px;
        line-height: 20px;
    }
}

@media (max-width: 980px) {
    .song-popup-progress-times {
        margin-top: 10px;
        font-size: 1rem;
    }

    .song-popup-lyrics-inner {
        min-height: auto;
        justify-content: flex-start;
    }

    .song-popup-copy-lyrics-btn {
        min-height: 44px;
        padding: 0 16px;
        font-size: 0.96rem;
        margin: 0 auto;
    }
}


/* ========================
   LIGHT MODE OVERRIDES
   ======================== */
[data-theme="light"] body::before {
    filter: blur(80px) brightness(1.0);
    opacity: 0.5;
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.65);
    border-color: var(--color-border);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.26);
    border-color: var(--color-border);
}

[data-theme="light"] .sidebar-link {
    color: var(--color-text);
}

[data-theme="light"] .sidebar-link.active {
    background: linear-gradient(90deg, var(--color-accent-soft), var(--color-accent-faint));
    box-shadow: inset 0 0 0 1px var(--color-accent-faint);
    color: var(--color-accent);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .sidebar-link:hover {
    background: linear-gradient(90deg, var(--color-accent-soft), var(--color-accent-faint));
    box-shadow: inset 0 0 0 1px var(--color-accent-faint);
    color: var(--color-accent);
}
}


[data-theme="light"] .hero-section {
    background: transparent;
}


[data-theme="light"] #addSongPopupBackdrop,
[data-theme="light"] #addToPlPickerBackdrop,
[data-theme="light"] .theme-picker-backdrop,
[data-theme="light"] #legalPopupBackdrop {
    background: rgba(32, 26, 48, 0.2) !important;
}

[data-theme="light"] #addSongPopup,
[data-theme="light"] #addToPlPicker,
[data-theme="light"] .theme-picker,
[data-theme="light"] #legalPopup {
    background: var(--color-bg-glass) !important;
    border-color: var(--color-border) !important;
    box-shadow: 0 10px 30px rgba(30, 24, 44, 0.12) !important;
}

[data-theme="light"] #legalPopupBackdrop {
    background:
        radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--color-accent-light) 18%, transparent), transparent 34%),
        radial-gradient(circle at 82% 80%, color-mix(in srgb, var(--color-accent) 13%, transparent), transparent 38%),
        rgba(245, 244, 252, 0.58) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

[data-theme="light"] #legalPopup {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.52)),
        color-mix(in srgb, var(--color-bg) 80%, var(--color-accent) 20%) !important;
    box-shadow: 0 28px 90px rgba(30, 24, 44, 0.2), inset 0 1px 0 rgba(255,255,255,0.86) !important;
}

[data-theme="light"] .theme-picker-backdrop {
    background:
        radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--color-accent-light) 18%, transparent), transparent 34%),
        radial-gradient(circle at 82% 80%, color-mix(in srgb, var(--color-accent) 13%, transparent), transparent 38%),
        rgba(245, 244, 252, 0.58) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

[data-theme="light"] .theme-picker,
[data-theme="light"] .custom-theme-creator {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.52)),
        color-mix(in srgb, var(--color-bg) 80%, var(--color-accent) 20%) !important;
    box-shadow: 0 28px 90px rgba(30, 24, 44, 0.2), inset 0 1px 0 rgba(255,255,255,0.86) !important;
}

[data-theme="light"] .custom-theme-creator-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.24)) !important;
    border-bottom-color: rgba(30, 24, 44, 0.12) !important;
}

[data-theme="light"] .theme-card,
[data-theme="light"] .custom-theme-preview-panel,
[data-theme="light"] .custom-theme-step {
    border-color: rgba(30, 24, 44, 0.12) !important;
}

[data-theme="light"] .theme-card {
    background: rgba(255,255,255,0.58) !important;
}

[data-theme="light"] .custom-theme-preview-panel,
[data-theme="light"] .custom-theme-step {
    background: rgba(255,255,255,0.58) !important;
}

[data-theme="light"] .theme-dot {
    border-color: rgba(30, 24, 44, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.76),
        0 4px 10px rgba(30, 24, 44, 0.12);
}

[data-theme="light"] .song-popup-progress-times {
    color: var(--color-text-soft);
}

[data-theme="light"] .song-popup-copy-lyrics-btn {
    background: rgba(0,0,0,0.045);
    border-color: rgba(0,0,0,0.1);
    color: var(--color-text-soft);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .song-popup-copy-lyrics-btn:hover {
    background: rgba(0,0,0,0.075);
    border-color: rgba(0,0,0,0.16);
    color: var(--color-text);
}
}

[data-theme="light"] .playlist-style-default-toggle input {
    border-color: rgba(0,0,0,0.22);
    background: rgba(0,0,0,0.05);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .playlist-style-default-toggle:hover input {
    border-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.12);
}
}

[data-theme="light"] .app-dialog-backdrop {
    background: rgba(32, 26, 48, 0.2);
}

[data-theme="light"] #accountBanLockOverlay {
    background: rgba(246, 241, 245, 0.8);
}

[data-theme="light"] #accountBanLockOverlay::before {
    background:
        linear-gradient(180deg, rgba(200, 70, 70, 0.09), rgba(200, 70, 70, 0) 34%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 45%);
}

[data-theme="light"] .account-ban-lock-card {
    background: rgba(255, 252, 253, 0.94) !important;
    border-color: rgba(200, 70, 70, 0.34);
    box-shadow: 0 10px 30px rgba(42, 30, 44, 0.14) !important;
}

[data-theme="light"] .account-ban-lock-title {
    color: #8e2020;
}

[data-theme="light"] .account-ban-lock-text {
    color: #6a2b2b;
}

[data-theme="light"] .account-ban-lock-meta {
    color: #704848;
}

[data-theme="light"] .app-mini-toast {
    background: rgba(255,255,255,0.92);
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: 0 8px 20px rgba(30, 24, 44, 0.14);
}

[data-theme="light"] .app-dialog-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--color-border) !important;
    box-shadow: 0 10px 30px rgba(30, 24, 44, 0.12) !important;
}

[data-theme="light"] .app-dialog-header,
[data-theme="light"] .app-dialog-actions {
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .app-dialog-close {
    background: rgba(0,0,0,0.05);
    color: var(--color-text-soft);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .app-dialog-close:hover {
    background: rgba(0,0,0,0.08);
    color: var(--color-text);
}
}

[data-theme="light"] .app-dialog-input {
    background: rgba(0,0,0,0.04);
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="light"] .app-dialog-btn-secondary {
    background: rgba(0,0,0,0.05);
    color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .app-dialog-btn-secondary:hover {
    background: rgba(0,0,0,0.08);
}
}


[data-theme="light"] .search-bar,
[data-theme="light"] .playlists-public-search,
[data-theme="light"] .charts-filter {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(20, 24, 36, 0.12);
    color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 10px 28px rgba(20,24,36,0.06);
}

[data-theme="light"] .search-bar:focus-within,
[data-theme="light"] .playlists-public-search:focus-within {
    border-color: rgba(20,24,36,0.2);
    background: rgba(255,255,255,0.86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 3px rgba(20,24,36,0.045);
}

[data-theme="light"] .search-bar input,
[data-theme="light"] .playlists-public-search input {
    color: var(--color-text);
}

[data-theme="light"] .search-bar input::placeholder,
[data-theme="light"] .playlists-public-search input::placeholder {
    color: var(--color-text-soft);
}

[data-theme="light"] .search-bar .material-symbols-outlined,
[data-theme="light"] .playlists-public-search .material-symbols-outlined {
    color: var(--color-text-soft);
}

[data-theme="light"] .song-table td {
    background: rgba(0, 0, 0, 0.02);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .song-table tr:hover td {
    background: rgba(124, 58, 237, 0.06);
}
}

[data-theme="light"] .song-row.playing td {
    background: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .song-table th {
    color: var(--color-text-soft);
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .song-title {
    color: var(--color-text);
}

[data-theme="light"] .artist-button {
    color: var(--color-text-soft);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .artist-button:hover {
    color: var(--color-accent);
}
}


[data-theme="light"] .playback-menu button {
    color: var(--color-text);
    background: none;
}

[data-theme="light"] .playback-menu button svg {
    fill: var(--color-text);
}

[data-theme="light"] .progress-bar {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] #volumeSlider {
    background: rgba(0, 0, 0, 0.15);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] #volumeSlider:hover {
    background: rgba(0, 0, 0, 0.25);
}
}

[data-theme="light"] .playback-queue-panel {
    background: rgba(255,255,255,0.92);
    border-color: var(--color-border);
    box-shadow: 0 14px 30px rgba(30,24,44,0.14);
}

[data-theme="light"] .playback-queue-item {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .playback-queue-action-btn,
[data-theme="light"] .playback-queue-clear-btn,
[data-theme="light"] .playback-queue-close-btn {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: var(--color-text);
}

[data-theme="light"] .theme-card {
    border-color: var(--color-border);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .theme-card:hover {
    border-color: rgba(0, 0, 0, 0.25);
}
}

[data-theme="light"] .theme-card-icon-btn,
[data-theme="light"] .custom-theme-open-btn,
[data-theme="light"] .custom-theme-field input[type="text"],
[data-theme="light"] .custom-theme-field select,
[data-theme="light"] .custom-theme-color-field input[type="color"],
[data-theme="light"] .custom-theme-reset,
[data-theme="light"] .theme-empty-state,
[data-theme="light"] .custom-theme-status {
    background: rgba(255,255,255,0.78);
}

[data-theme="light"] .custom-theme-open-btn {
    color: var(--color-text);
    border-color: rgba(30, 24, 44, 0.14);
    background: rgba(255,255,255,0.66) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .custom-theme-open-btn:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.86) !important;
    border-color: rgba(30, 24, 44, 0.22);
}
}

[data-theme="light"] .custom-theme-creator {
    background: rgba(255,255,255,0.92);
}

[data-theme="light"] .custom-theme-creator-header {
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .theme-card-delete {
    color: var(--color-text-soft);
}

[data-theme="light"] .theme-card-edit {
    color: var(--color-text-soft);
}

[data-theme="light"] .sidebar-bottom a,
[data-theme="light"] .sidebar-bottom button {
    color: var(--color-text-soft);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .sidebar-bottom a:hover,
[data-theme="light"] .sidebar-bottom button:hover {
    color: var(--color-accent);
}
}


[data-theme="light"] #followPlaylistBtn.active {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.28);
    color: var(--color-accent);
}

[data-theme="light"] .favorite-button {
    color: var(--color-text-soft) !important;
}

[data-theme="light"] .favorite-button svg {
    fill: var(--color-text-soft) !important;
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .favorite-button:hover {
    color: var(--color-accent) !important;
}
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .favorite-button:hover svg {
    fill: var(--color-accent) !important;
}
}

[data-theme="light"] .favorite-button.active {
    color: var(--color-accent) !important;
}

[data-theme="light"] .favorite-button.active svg {
    fill: var(--color-accent) !important;
}

.content-controls.artist-discovery-controls-active {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.content-controls.artist-discovery-controls-active .artist-discovery-switcher {
    order: 0;
    margin: 0 auto;
}

.content-controls.artist-discovery-controls-active .search-bar {
    order: 1;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.content-controls.artist-discovery-controls-active .search-bar input {
    min-width: 0 !important;
}

.content-controls.album-discovery-controls-active {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.content-controls.album-discovery-controls-active .album-discovery-toolbar {
    order: 0;
    margin: 0 auto;
    padding: 0;
}

.content-controls.album-discovery-controls-active .search-bar {
    order: 1;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.content-controls.album-discovery-controls-active .search-bar input {
    min-width: 0 !important;
}

[data-theme="light"] .option-controls {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-border);
    color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
[data-theme="light"] .option-controls:hover {
    background: rgba(0, 0, 0, 0.08);
}
}

[data-theme="light"] .song-row td:nth-child(1) {
    color: var(--color-text-soft);
}

/* Account Section Redesign */
.auth-tab-container {
    gap: 16px;
    margin-top: 10px;
    min-height: 68vh;
}

.auth-cards-row {
    grid-template-columns: minmax(0, 1040px);
    justify-content: center;
    gap: 16px;
}

.auth-cards-row.is-guest-mode {
    grid-template-columns: minmax(0, 620px);
    min-height: min(76vh, 760px);
    align-content: center;
}

.auth-native-card {
    max-width: none;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(6, 8, 20, 0.28);
    box-shadow: none;
    padding: 18px;
    gap: 14px;
}

.auth-native-card.is-guest-mode #authGuestView .auth-native-form {
    width: min(540px, 100%);
    margin-inline: auto;
}

.auth-native-card.is-guest-mode {
    max-width: 620px;
    margin-inline: auto;
}

.auth-native-subtitle {
    margin-top: -2px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.74);
}

.auth-native-status {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.24);
}

.auth-native-mode {
    width: fit-content;
    min-height: 44px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    gap: 4px;
    margin-inline: auto;
    justify-self: center;
}

.auth-native-mode button {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-native-mode button.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: none;
}

#authGuestView,
#authProfileView {
    display: grid;
    gap: 14px;
}

#authGuestView .auth-native-form,
#authProfileView > .auth-native-form,
#authProfileView > .auth-public-profile {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.auth-native-grid {
    gap: 10px;
}

.auth-native-field {
    gap: 5px;
}

.auth-native-field label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
}

.auth-native-field input[type="text"],
.auth-native-field input[type="password"],
.auth-native-field input[type="file"],
.auth-native-field textarea {
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    min-height: 42px;
    padding: 10px 12px;
}

.auth-native-field textarea {
    min-height: 96px;
}

.auth-native-field input[type="text"]:focus,
.auth-native-field input[type="password"]:focus,
.auth-native-field input[type="file"]:focus,
.auth-native-field textarea:focus {
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.auth-native-checkbox {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
}

.auth-native-checkbox a {
    color: rgba(192, 151, 223, 0.95);
}

#authRegisterForm .auth-native-checkbox {
    justify-content: center;
}

.auth-native-actions {
    gap: 8px;
}

#authGuestView .auth-native-actions {
    justify-content: center;
}

.auth-native-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.88rem;
    background: linear-gradient(135deg, rgba(178, 116, 214, 0.95), rgba(152, 102, 198, 0.95));
    border-color: rgba(211, 172, 234, 0.45);
    box-shadow: none;
}

#authGuestView .auth-native-actions button {
    width: auto;
    min-width: 180px;
}

@media (hover: hover) and (pointer: fine) {
.auth-native-actions button:hover:not(:disabled) {
    transform: none;
    filter: brightness(1.03);
    box-shadow: none;
}
}

.auth-native-actions button.secondary {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}

#authLogoutBtn,
#authDeleteBtn,
#authPublicSaveBtn,
#authPublicTakeDownBtn {
    box-shadow: none !important;
    transform: none !important;
}

.auth-native-profile {
    gap: 14px;
}

.auth-native-profile-header {
    display: grid;
    grid-template-columns: 146px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.auth-profile-overview-media {
    width: 146px;
    flex: 0 0 146px;
}

.auth-profile-overview-preview,
.auth-public-profile-preview-wrap {
    width: 146px;
    height: 146px;
    border-radius: 14px;
}

.auth-profile-overview-image-actions {
    width: 146px;
}

.auth-profile-overview-main {
    gap: 8px;
}

.auth-profile-overview-topline {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.auth-native-user {
    font-size: 1.2rem;
    line-height: 1.2;
}

.auth-profile-handle {
    margin-top: 0;
    color: rgba(192, 151, 223, 0.95);
}

.auth-public-status-badge {
    width: auto;
    min-width: 0;
    height: 28px;
    border-radius: 999px;
    padding: 0 10px;
}

.auth-public-status-badge .material-symbols-outlined {
    font-size: 16px;
}

.auth-public-profile {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.auth-public-profile-main-actions {
    justify-content: flex-start !important;
}

.auth-public-profile-main-actions button {
    min-width: 170px;
}

.auth-public-lock-note {
    border-radius: 12px;
    border-color: rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.2);
    text-align: center;
}

@media (max-width: 980px) {
    .auth-cards-row {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .auth-cards-row.is-guest-mode {
        grid-template-columns: minmax(0, 560px);
        min-height: 66vh;
        justify-content: center;
    }

    .auth-native-card {
        padding: 14px;
    }

    .auth-native-profile-header {
        grid-template-columns: 1fr;
    }

    .auth-profile-overview-media,
    .auth-profile-overview-preview,
    .auth-public-profile-preview-wrap,
    .auth-profile-overview-image-actions {
        width: 136px;
    }

    .auth-profile-overview-preview,
    .auth-public-profile-preview-wrap {
        height: 136px;
    }

    .auth-public-profile-main-actions {
        justify-content: center !important;
    }

    .auth-public-profile-main-actions button {
        min-width: min(220px, 100%);
    }
}

@media (max-width: 640px) {
    .auth-native-mode {
        width: 100%;
    }

    .auth-native-mode button {
        flex: 1;
    }

    .auth-native-grid {
        grid-template-columns: 1fr;
    }

    .auth-native-actions button,
    .auth-profile-actions-row button {
        width: 100%;
        min-width: 0;
    }

    .auth-cards-row.is-guest-mode {
        grid-template-columns: minmax(0, 1fr);
        min-height: 60vh;
    }

    .auth-native-card.is-guest-mode #authGuestView .auth-native-form {
        width: 100%;
    }
}

/* Account area polish: roomier profile layout without making the page feel like stacked cards. */
.auth-cards-row.is-profile-mode {
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
}

.auth-native-card.is-profile-mode {
    width: min(100%, 920px);
    max-width: 920px;
    gap: 20px;
    padding: clamp(18px, 2.2vw, 26px);
}

/* ========================
   PERSONALIZED MUSIC FEED
   ======================== */
.sidebar-feed-link {
    position: relative;
}

.sidebar-feed-live {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--color-accent-light);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 16%, transparent), 0 0 12px var(--color-accent);
}

.music-feed-mood-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    overflow-y: auto;
    padding: 2px 4px 4px 2px;
    scrollbar-width: none;
}

.music-feed-mood-choices::-webkit-scrollbar { display: none; }

.music-feed-mood-chip {
    --mood-hue: 284;
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    color: rgba(255,255,255,0.9);
    font: 750 1rem/1.2 var(--font-family);
    text-align: left;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.music-feed-mood-chip:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(110deg, hsla(var(--mood-hue), 72%, 52%, 0.2), rgba(255,255,255,0.045));
}

.music-feed-mood-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, hsla(var(--mood-hue), 78%, 62%, 0.24), hsla(var(--mood-hue), 76%, 42%, 0.12));
    color: hsl(var(--mood-hue), 84%, 75%);
    box-shadow: inset 0 0 0 1px hsla(var(--mood-hue), 82%, 72%, 0.2);
}

.music-feed-mood-icon .material-symbols-outlined {
    font-size: 27px;
}

.music-feed-mood-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-feed-mood-check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 19px;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 150ms ease, transform 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-mood-chip:hover {
    color: #fff;
    border-color: hsla(var(--mood-hue), 76%, 70%, 0.42);
    background: hsla(var(--mood-hue), 60%, 54%, 0.11);
    transform: translateY(-2px);
}
}

.music-feed-mood-chip:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-accent-light) 74%, #fff);
    outline-offset: 2px;
}

.music-feed-mood-chip.active {
    color: #fff;
    border-color: color-mix(in srgb, var(--color-accent-light) 68%, transparent);
    background: linear-gradient(110deg, color-mix(in srgb, var(--color-accent) 26%, rgba(255,255,255,0.055)), rgba(255,255,255,0.065));
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.music-feed-mood-chip.active .music-feed-mood-check {
    opacity: 1;
    transform: scale(1);
}

.music-feed-mood-dialog {
    position: absolute;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.music-feed-mood-dialog[hidden] { display: none; }

.music-feed-mood-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 3, 7, 0.68);
    backdrop-filter: blur(10px);
    opacity: 0;
    cursor: default;
    transition: opacity 240ms ease;
}

.music-feed-mood-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(88vh, 720px);
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--color-accent) 15%, transparent), transparent 38%),
        color-mix(in srgb, var(--color-bg) 94%, #121016);
    box-shadow: 0 30px 90px rgba(0,0,0,0.58), inset 0 1px 0 rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(24px) scale(0.955);
    transition:
        opacity 220ms ease,
        transform 260ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.music-feed-mood-dialog.is-open .music-feed-mood-backdrop,
.music-feed-mood-dialog.is-open .music-feed-mood-panel { opacity: 1; }
.music-feed-mood-dialog.is-open .music-feed-mood-panel { transform: translateY(0) scale(1); }

.music-feed-mood-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.music-feed-mood-panel h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.music-feed-mood-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-mood-close:hover { background: rgba(255,255,255,0.12); transform: rotate(4deg); }
}
.music-feed-mood-close:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 2px; }

.music-feed-comments-dialog {
    position: absolute;
    z-index: 38;
    inset: 0;
    display: grid;
    place-items: center end;
    overflow: hidden;
    border-radius: 26px;
}
.music-feed-comments-dialog[hidden] { display: none; }
.music-feed-comments-backdrop { position: absolute; inset: 0; border: 0; border-radius:inherit; background: rgba(3,3,6,.64); backdrop-filter: blur(8px); opacity: 0; transition: opacity 220ms ease; }
.music-feed-comments-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    width: min(520px, 100%);
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-right: 0;
    border-radius: 26px;
    background: color-mix(in srgb, var(--color-bg) 96%, #17121c);
    box-shadow: -24px 0 80px rgba(0,0,0,.48);
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(.22,.8,.24,1);
}
.music-feed-comments-dialog.is-open :is(.music-feed-comments-backdrop,.music-feed-comments-panel) { opacity: 1; }
.music-feed-comments-dialog.is-open .music-feed-comments-panel { transform: translateX(0); }
.music-feed-comments-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:20px 20px 16px; border-bottom:1px solid rgba(255,255,255,.09); }
.music-feed-comments-head h2 { margin:3px 0 0; color:var(--color-text); font-size:1.35rem; letter-spacing:-.02em; }
.music-feed-comments-head h2 span { color:var(--color-text-soft); font-size:.9rem; }
.music-feed-comments-list { min-height:0; overflow-y:auto; padding:12px 18px 28px; overscroll-behavior:contain; }
.music-feed-comment-thread { padding:9px 0; }
.music-feed-comment { display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; }
.music-feed-comment.is-reply { grid-template-columns:34px minmax(0,1fr); margin:14px 0 0 52px; }
.music-feed-comment-avatar { display:grid; place-items:center; width:42px; height:42px; overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:50%; background:color-mix(in srgb,var(--color-accent) 18%,rgba(255,255,255,.05)); color:var(--color-accent-light); }
.music-feed-comment.is-reply .music-feed-comment-avatar { width:34px; height:34px; }
.music-feed-comment-avatar img { width:100%; height:100%; object-fit:cover; }
.music-feed-comment-avatar .material-symbols-outlined { font-size:24px; }
.music-feed-comment-body { min-width:0; }
.music-feed-comment-meta { display:flex; align-items:baseline; gap:7px; }
.music-feed-comment-meta strong { overflow:hidden; color:var(--color-text); font-size:.91rem; text-overflow:ellipsis; white-space:nowrap; }
.music-feed-comment-meta span { flex:none; color:var(--color-text-soft); font-size:.72rem; }
.music-feed-comment-body p { margin:5px 0 0; color:color-mix(in srgb,var(--color-text) 91%,transparent); font-size:.91rem; line-height:1.48; overflow-wrap:anywhere; }
.music-feed-comment-tools { display:flex; gap:15px; margin-top:7px; }
.music-feed-comment-tools button,.music-feed-replies-toggle { padding:0; border:0; background:transparent; color:var(--color-text-soft); font:750 .73rem/1.3 var(--font-family); cursor:pointer; }
@media (hover: hover) and (pointer: fine) {
.music-feed-comment-tools button:hover,
.music-feed-replies-toggle:hover { color:var(--color-text); }
}
.music-feed-replies-toggle { display:flex; align-items:center; gap:9px; margin:11px 0 0 53px; }
.music-feed-replies-line { width:24px; height:1px; background:rgba(255,255,255,.24); }
.music-feed-comments-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-height:100%; padding:30px; color:var(--color-text-soft); text-align:center; }
.music-feed-comments-empty .material-symbols-outlined { font-size:40px; color:var(--color-accent-light); }
.music-feed-comments-empty strong { color:var(--color-text); font-size:1rem; }
.music-feed-comment-form { padding:10px 15px max(12px,env(safe-area-inset-bottom)); border-top:1px solid rgba(255,255,255,.09); background:color-mix(in srgb,var(--color-bg) 98%,transparent); }
.music-feed-comment-compose { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:end; gap:8px; }
.music-feed-comment-compose textarea { box-sizing:border-box; width:100%; max-height:120px; resize:none; padding:11px 14px; border:1px solid rgba(255,255,255,.12); border-radius:20px; outline:0; background:rgba(255,255,255,.055); color:var(--color-text); font:500 .9rem/1.4 var(--font-family); }
.music-feed-comment-compose textarea:focus { border-color:color-mix(in srgb,var(--color-accent-light) 60%,transparent); }
.music-feed-comment-compose > button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:var(--color-accent); color:#fff; cursor:pointer; }
.music-feed-comment-compose > button:disabled,.music-feed-comment-compose textarea:disabled { opacity:.48; cursor:not-allowed; }
.music-feed-comment-replying { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 5px 8px; color:var(--color-accent-light); font-size:.76rem; font-weight:750; }
.music-feed-comment-replying[hidden] { display:none; }
.music-feed-comment-replying button { display:grid; place-items:center; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; }
.music-feed-comment-replying .material-symbols-outlined { font-size:18px; }
.music-feed-comment-hint { margin:7px 4px 0; color:var(--color-text-soft); font-size:.73rem; line-height:1.35; }
.music-feed-comments { --feed-action-glow: rgba(126,102,255,.44); }

.music-feed-tutorial {
    position: absolute;
    z-index: 34;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.music-feed-tutorial[hidden] { display: none; }

.music-feed-tutorial-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 7, 0.72);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 240ms ease;
}

.music-feed-tutorial-panel {
    position: relative;
    width: min(500px, 100%);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 26px;
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 42%),
        color-mix(in srgb, var(--color-bg) 94%, #121016);
    box-shadow: 0 30px 90px rgba(0,0,0,0.58), inset 0 1px 0 rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(24px) scale(0.955);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.music-feed-tutorial.is-open .music-feed-tutorial-backdrop,
.music-feed-tutorial.is-open .music-feed-tutorial-panel { opacity: 1; }
.music-feed-tutorial.is-open .music-feed-tutorial-panel { transform: translateY(0) scale(1); }

.music-feed-tutorial-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.music-feed-tutorial-hero-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid color-mix(in srgb, var(--color-accent-light) 30%, rgba(255,255,255,0.1));
    border-radius: 17px;
    background: color-mix(in srgb, var(--color-accent) 20%, rgba(255,255,255,0.05));
    color: var(--color-accent-light);
    font-size: 30px;
}

.music-feed-tutorial-kicker {
    color: var(--color-accent-light);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.music-feed-tutorial-panel h2 {
    margin: 3px 0 0;
    color: var(--color-text);
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.music-feed-tutorial-steps {
    display: grid;
    gap: 9px;
}

.music-feed-tutorial-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
}

.music-feed-tutorial-step-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--color-accent) 15%, rgba(255,255,255,0.04));
    color: var(--color-accent-light);
    font-size: 23px;
}

.music-feed-tutorial-step div { min-width: 0; }
.music-feed-tutorial-step strong {
    display: block;
    color: var(--color-text);
    font-size: 0.94rem;
    line-height: 1.25;
}
.music-feed-tutorial-step div > span {
    display: block;
    margin-top: 3px;
    color: var(--color-text-soft);
    font-size: 0.8rem;
    line-height: 1.38;
}

.music-feed-tutorial-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border: 1px solid color-mix(in srgb, var(--color-accent-light) 46%, transparent);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent-light) 66%, var(--color-accent)));
    color: #fff;
    font: 850 0.96rem/1 var(--font-family);
    cursor: pointer;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--color-accent) 28%, transparent);
    transition: transform 160ms ease, filter 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-tutorial-confirm:hover { transform: translateY(-2px); filter: brightness(1.08); }
}
.music-feed-tutorial-confirm:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.music-feed-tutorial-confirm .material-symbols-outlined { font-size: 20px; }

.main-content.music-feed-mode {
    height: var(--app-viewport-height);
    min-height: 0;
    padding: 12px;
    overflow: hidden;
}

.main-content.music-feed-context-mode > :not(#musicFeedMoodDialog):not(#musicFeedCommentsDialog):not(#musicFeedTutorial) {
    visibility: hidden !important;
    pointer-events: none !important;
}

body > .music-feed-view.is-context-feed {
    position: fixed;
    z-index: 1000;
    inset: 0 0 0 var(--sidebar-width);
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0 12px;
    overflow: hidden;
    background: var(--color-bg);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    will-change: opacity, transform;
    transition:
        opacity 180ms ease,
        transform 220ms cubic-bezier(.2,.82,.2,1);
}

body > .music-feed-view.is-context-feed.is-context-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body > .music-feed-view.is-context-feed.is-context-closing {
    transition-duration: 170ms, 200ms;
}

body:not(.boocord-window-fullscreen):not(.boocord-dom-fullscreen):has(> #electron-titlebar) > .music-feed-view.is-context-feed {
    top: 36px;
}

.music-feed-view.is-feed-switching-out {
    opacity: 0 !important;
    transform: translateY(6px) !important;
    pointer-events: none !important;
    transition:
        opacity 170ms ease-in,
        transform 180ms cubic-bezier(.4,0,1,1) !important;
}

.music-feed-view.is-feed-switching-in {
    animation: musicFeedRouteSwitchIn 780ms cubic-bezier(.22,.62,.2,1) both;
}

.music-feed-view.is-feed-switching-in .music-feed-scroller {
    animation: musicFeedScrollerReveal 840ms cubic-bezier(.2,.58,.18,1) 35ms both;
}

@keyframes musicFeedRouteSwitchIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(.975);
    }
    42% { opacity: 1; }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes musicFeedScrollerReveal {
    0% {
        opacity: .18;
        transform: translateY(44px) scale(.94);
        clip-path: inset(9% 4% 7% 4% round 42px);
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
    }
    58% {
        opacity: 1;
        transform: translateY(-3px) scale(1.006);
        clip-path: inset(0 round 27px);
        box-shadow: 0 34px 82px rgba(0,0,0,.34);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: inset(0 round 26px);
        box-shadow: 0 28px 70px rgba(0,0,0,.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    body > .music-feed-view.is-context-feed {
        transition: none;
        transform: none;
    }
    .music-feed-view.is-feed-switching-out,
    .music-feed-view.is-feed-switching-in {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .music-feed-view.is-feed-switching-in .music-feed-scroller {
        animation: none !important;
        transform: none !important;
        clip-path: none !important;
    }
}

@media (min-width: 901px) {
    .main-content.music-feed-mode {
        position: fixed;
        inset: 0 0 0 var(--sidebar-width);
        width: auto;
        height: auto;
        min-height: 0;
        margin-left: 0;
        padding: 0 12px;
    }

    body:not(.boocord-window-fullscreen):not(.boocord-dom-fullscreen) #electron-titlebar ~ .main-content.music-feed-mode {
        top: 36px;
    }
}

body.music-feed-active .playback-menu {
    display: none !important;
}

.music-feed-view {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 0;
}

.music-feed-context-close {
    position: absolute;
    z-index: 30;
    top: max(14px, calc(env(safe-area-inset-top, 0px) + 10px));
    right: max(26px, calc(env(safe-area-inset-right, 0px) + 22px));
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 15px;
    background: color-mix(in srgb, var(--color-bg) 64%, transparent);
    box-shadow: 0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
    color: var(--color-text);
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.music-feed-context-close[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
.music-feed-context-close:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-accent-light) 48%, rgba(255,255,255,.18));
    background: color-mix(in srgb, var(--color-accent) 26%, var(--color-bg) 74%);
}
}
.music-feed-context-close:active { transform: scale(.96); }
.music-feed-context-close:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 3px; }
.music-feed-context-close .material-symbols-outlined { font-size: 26px; }

.music-feed-scroller {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 26px;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    outline: none;
    box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}

.music-feed-loading {
    isolation: isolate;
    position: absolute;
    z-index: 20;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 43%, color-mix(in srgb, var(--color-accent) 24%, transparent), transparent 38%),
        radial-gradient(circle at 18% 82%, color-mix(in srgb, var(--color-accent-light) 16%, transparent), transparent 34%),
        #08080b;
    color: var(--color-text);
    opacity: 1;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.music-feed-loading::before,
.music-feed-loading::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    border-radius: 45% 55% 58% 42%;
    background: color-mix(in srgb, var(--color-accent) 16%, transparent);
    filter: blur(54px);
    animation: musicFeedLoadingAmbient 6.8s ease-in-out infinite alternate;
}

.music-feed-loading::before { transform: translate(-36%, -24%) rotate(0deg); }
.music-feed-loading::after {
    background: color-mix(in srgb, var(--color-accent-light) 13%, transparent);
    animation-direction: alternate-reverse;
    animation-duration: 8.2s;
}

.music-feed-loading.is-leaving {
    visibility: hidden;
    opacity: 0;
}

.music-feed-loading-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
}

.music-feed-loading-visual > .material-symbols-outlined {
    position: relative;
    z-index: 2;
    font-size: 36px;
    color: var(--color-accent-light);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--color-accent-light) 58%, transparent));
    animation: musicFeedLoadingSpark 1.8s ease-in-out infinite;
}

.music-feed-loading-ring {
    position: absolute;
    inset: 4px;
    border: 2px solid transparent;
    border-top-color: color-mix(in srgb, var(--color-accent-light) 82%, white 18%);
    border-right-color: color-mix(in srgb, var(--color-accent) 66%, transparent);
    border-radius: 50%;
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--color-accent) 12%, transparent);
    animation: musicFeedLoadingSpin 1.9s linear infinite;
}

.music-feed-loading-ring-b {
    inset: 15px;
    border-top-color: color-mix(in srgb, var(--color-accent) 76%, white 24%);
    border-right-color: transparent;
    border-bottom-color: color-mix(in srgb, var(--color-accent-light) 52%, transparent);
    animation-direction: reverse;
    animation-duration: 1.3s;
}

.music-feed-loading-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    text-align: center;
}

.music-feed-loading-copy strong { font-size: clamp(1.05rem, 2vw, 1.28rem); letter-spacing: -.02em; }
.music-feed-loading-copy span { color: var(--color-text-soft); font-size: .9rem; }

@keyframes musicFeedLoadingSpin { to { transform: rotate(360deg); } }
@keyframes musicFeedLoadingSpark {
    0%, 100% { opacity: .72; transform: scale(.9) rotate(-8deg); }
    50% { opacity: 1; transform: scale(1.08) rotate(8deg); }
}
@keyframes musicFeedLoadingAmbient {
    from { opacity: .55; transform: translate(-36%, -24%) rotate(-8deg) scale(.9); }
    to { opacity: 1; transform: translate(28%, 22%) rotate(18deg) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .music-feed-loading,
    .music-feed-loading::before,
    .music-feed-loading::after,
    .music-feed-loading-ring,
    .music-feed-loading-visual > .material-symbols-outlined {
        animation: none !important;
        transition: none !important;
    }
}

.music-feed-card {
    --song-popup-progress-bg: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    --song-popup-button-bg: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    isolation: isolate;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 26px;
    background: #08080b;
    transform: translateZ(0);
    contain: paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.music-feed-card::before,
.music-feed-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.music-feed-card::before {
    z-index: -1;
    inset: -24%;
    background:
        radial-gradient(ellipse at 18% 42%, color-mix(in srgb, var(--color-accent) 62%, transparent) 0 12%, transparent 38%),
        radial-gradient(ellipse at 74% 24%, color-mix(in srgb, var(--color-accent-light) 50%, transparent) 0 10%, transparent 36%),
        radial-gradient(ellipse at 62% 78%, color-mix(in srgb, var(--color-glow-2) 58%, transparent) 0 11%, transparent 40%);
    opacity: 0.62;
    transform: translate3d(-5%, 4%, 0) rotate(-4deg) scale(1.12);
    transform-origin: center;
    animation: musicFeedLavaDriftA 24s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}

.music-feed-card::after {
    z-index: -1;
    inset: -24%;
    background:
        radial-gradient(ellipse at 34% 18%, color-mix(in srgb, var(--color-accent-light) 42%, transparent) 0 8%, transparent 32%),
        radial-gradient(ellipse at 82% 58%, color-mix(in srgb, var(--color-glow-1) 48%, transparent) 0 9%, transparent 35%),
        radial-gradient(ellipse at 26% 84%, color-mix(in srgb, var(--color-accent) 44%, transparent) 0 10%, transparent 38%);
    opacity: 0.46;
    transform: translate3d(6%, -4%, 0) rotate(5deg) scale(1.14);
    transform-origin: center;
    animation: musicFeedLavaDriftB 31s cubic-bezier(.42,0,.58,1) infinite alternate;
}

@keyframes musicFeedLavaDriftA {
    0% {
        transform: translate3d(-7%, 5%, 0) rotate(-5deg) scale(1.13, 1.1);
    }
    48% {
        transform: translate3d(5%, -6%, 0) rotate(4deg) scale(1.1, 1.16);
    }
    100% {
        transform: translate3d(8%, 7%, 0) rotate(9deg) scale(1.16, 1.11);
    }
}

@keyframes musicFeedLavaDriftB {
    0% {
        transform: translate3d(7%, -5%, 0) rotate(6deg) scale(1.15, 1.1);
    }
    52% {
        transform: translate3d(-6%, 7%, 0) rotate(-5deg) scale(1.1, 1.17);
    }
    100% {
        transform: translate3d(3%, -8%, 0) rotate(-10deg) scale(1.18, 1.1);
    }
}

.music-feed-card + .music-feed-card {
    margin-top: 10px;
}

.music-feed-card-backdrop {
    position: absolute;
    z-index: -3;
    inset: -18%;
    background-position: center;
    background-size: cover;
    filter: blur(32px) saturate(1.65) brightness(0.68);
    transform: translate3d(0, 0, 0) scale(1.12);
    transform-origin: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.music-feed-card-backdrop::after {
    content: "";
    position: absolute;
    inset: -18%;
    background-image: inherit;
    background-position: center;
    background-size: cover;
    opacity: 0.42;
    transform: translate3d(7%, -5%, 0) scale(1.14) rotate(2deg);
    transform-origin: 62% 38%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: musicFeedBackdropWave 14s ease-in-out infinite alternate;
}

@keyframes musicFeedBackdropWave {
    0% {
        opacity: 0.38;
        transform: translate3d(9%, -7%, 0) scale(1.13, 1.2) rotate(3deg);
    }
    50% {
        opacity: 0.66;
        transform: translate3d(-8%, 5%, 0) scale(1.2, 1.13) rotate(-3deg);
    }
    100% {
        opacity: 0.46;
        transform: translate3d(5%, 9%, 0) scale(1.15, 1.22) rotate(1deg);
    }
}

.music-feed-card-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, transparent 0, rgba(0,0,0,0.04) 38%, rgba(0,0,0,0.42) 100%),
        linear-gradient(180deg, rgba(5,5,8,0.08), rgba(5,5,8,0.02) 43%, rgba(5,5,8,0.88) 100%);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.music-feed-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(300px, 1.18fr) 102px;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "cover lyrics actions"
        "copy lyrics actions";
    align-items: center;
    gap: 12px 18px;
    width: 100%;
    height: 100%;
    padding: 28px clamp(18px, 2.4vw, 36px) 24px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.music-feed-cover-stack {
    grid-area: cover;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.music-feed-cover-button {
    position: relative;
    isolation: isolate;
    justify-self: center;
    width: min(43vh, 400px, 88%);
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    box-shadow: 0 24px 70px rgba(0,0,0,0.48);
    transition: transform 220ms cubic-bezier(.22,.75,.22,1), box-shadow 220ms ease;
}

.music-feed-cover-button::before,
.music-feed-cover-button::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.music-feed-cover-button::before {
    inset: -2px;
    border: 2px solid color-mix(in srgb, var(--color-accent-light) 72%, #fff);
    border-radius: inherit;
    box-shadow: 0 0 34px color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.music-feed-cover-button::after {
    top: 50%;
    left: 50%;
    width: 82px;
    height: 82px;
    border: 3px solid rgba(255,255,255,0.76);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.55);
}

@media (hover: hover) and (pointer: fine) {
.music-feed-cover-button:hover {
    transform: scale(1.015);
    box-shadow: 0 30px 82px rgba(0,0,0,0.54);
}
}

.music-feed-cover-button img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.music-feed-play-badge {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 50%;
    background: rgba(5,5,8,0.56);
    color: #fff;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}

.music-feed-play-badge .material-symbols-outlined { font-size: 34px; }
.music-feed-card.is-active:not(.is-playing) .music-feed-play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (hover: hover) and (pointer: fine) {
.music-feed-cover-button:hover .music-feed-play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
}

.music-feed-card.is-playing .music-feed-cover-button img {
    animation: musicFeedArtworkBreathe 5s ease-in-out infinite;
}

.music-feed-cover-button.is-play-pulse {
    animation: musicFeedCoverPlayPulse 680ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.music-feed-cover-button.is-play-pulse img {
    animation: musicFeedCoverImagePlay 680ms cubic-bezier(0.2, 0.82, 0.2, 1) !important;
}

.music-feed-cover-button.is-play-pulse::before {
    animation: musicFeedCoverGlow 680ms ease-out;
}

.music-feed-cover-button.is-play-pulse::after {
    animation: musicFeedCoverRing 680ms cubic-bezier(0.16, 0.78, 0.25, 1);
}

.music-feed-cover-button.is-play-pulse .music-feed-play-badge {
    animation: musicFeedPlayBadgeBurst 680ms cubic-bezier(0.18, 0.9, 0.22, 1);
}

.music-feed-cover-button.is-play-pulse .music-feed-play-icon {
    animation: musicFeedPlayIconKick 680ms cubic-bezier(0.18, 0.9, 0.22, 1);
}

.music-feed-cover-button.is-pause-pulse {
    animation: musicFeedCoverPausePulse 560ms cubic-bezier(0.3, 0.72, 0.25, 1);
}

.music-feed-cover-button.is-pause-pulse img {
    animation: musicFeedCoverImagePause 560ms ease !important;
}

.music-feed-cover-button.is-pause-pulse::before {
    animation: musicFeedCoverPauseGlow 560ms ease-out;
}

.music-feed-cover-button.is-pause-pulse .music-feed-play-badge {
    animation: musicFeedPauseBadgeSnap 560ms cubic-bezier(0.3, 0.72, 0.25, 1);
}

@keyframes musicFeedCoverPlayPulse {
    0% { transform: scale(1); }
    22% { transform: scale(0.965) rotate(-0.5deg); }
    58% { transform: scale(1.035) rotate(0.25deg); }
    100% { transform: scale(1); }
}

@keyframes musicFeedCoverImagePlay {
    0% { transform: scale(1); filter: brightness(1) saturate(1); }
    28% { transform: scale(0.975); filter: brightness(0.88) saturate(0.9); }
    62% { transform: scale(1.045); filter: brightness(1.16) saturate(1.18); }
    100% { transform: scale(1); filter: brightness(1) saturate(1); }
}

@keyframes musicFeedCoverGlow {
    0% { opacity: 0; transform: scale(0.985); }
    28% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.055); }
}

@keyframes musicFeedCoverRing {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    25% { opacity: 0.9; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.05); }
}

@keyframes musicFeedPlayBadgeBurst {
    0% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.72); }
    45% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 38px color-mix(in srgb, var(--color-accent-light) 58%, transparent); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes musicFeedPlayIconKick {
    0% { transform: scale(0.7) rotate(-18deg); }
    48% { transform: scale(1.28) rotate(7deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes musicFeedCoverPausePulse {
    0% { transform: scale(1); }
    32% { transform: scale(0.972); }
    68% { transform: scale(1.012); }
    100% { transform: scale(1); }
}

@keyframes musicFeedCoverImagePause {
    0% { transform: scale(1.018); filter: brightness(1); }
    42% { transform: scale(0.985); filter: brightness(0.82) saturate(0.82); }
    100% { transform: scale(1); filter: brightness(1) saturate(1); }
}

@keyframes musicFeedCoverPauseGlow {
    0% { opacity: 0; }
    36% { opacity: 0.55; }
    100% { opacity: 0; transform: scale(0.985); }
}

@keyframes musicFeedPauseBadgeSnap {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    38% { opacity: 1; transform: translate(-50%, -50%) scale(0.78) rotate(-8deg); }
    72% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(3deg); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes musicFeedArtworkBreathe { 50% { transform: scale(1.018); } }

.music-feed-copy {
    grid-area: copy;
    align-self: end;
    min-width: 0;
    text-align: center;
}

.music-feed-cover-stack .music-feed-copy {
    grid-area: auto;
    align-self: center;
    width: min(43vh, 400px, 88%);
    margin-top: 14px;
}

.music-feed-copy h2 {
    overflow: hidden;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.45rem, 3.2vw, 2.25rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-feed-copy p {
    overflow: hidden;
    color: rgba(255,255,255,0.72);
    font-size: clamp(1.02rem, 1.4vw, 1.16rem);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-feed-copy-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 0;
    margin-top: 9px;
    flex-wrap: wrap;
}

.music-feed-profile-follow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid color-mix(in srgb, var(--color-accent-light) 42%, rgba(255,255,255,.13));
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-accent) 15%, rgba(8,8,12,.42));
    color: rgba(255,255,255,.9);
    font: 800 .7rem/1 var(--font-family);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 16px rgba(0,0,0,.13);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-profile-follow:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--color-accent) 25%, rgba(8,8,12,.46));
    border-color: color-mix(in srgb, var(--color-accent-light) 66%, rgba(255,255,255,.16));
}
}

.music-feed-profile-follow.is-following {
    background: color-mix(in srgb, var(--color-accent) 30%, rgba(8,8,12,.44));
    border-color: color-mix(in srgb, var(--color-accent-light) 72%, rgba(255,255,255,.18));
    color: #fff;
}

.music-feed-profile-follow.is-busy {
    opacity: .58;
    cursor: wait;
}

.music-feed-profile-follow .material-symbols-outlined {
    font-size: 15px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 620, 'GRAD' 0, 'opsz' 18;
}

.music-feed-profile-follow-count {
    min-width: 1ch;
    padding-left: 5px;
    border-left: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.66);
    font-variant-numeric: tabular-nums;
}

.music-feed-copy-meta p,
.music-feed-account-link {
    flex: 0 1 auto;
    min-width: 0;
}

.music-feed-account-link {
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font: 650 clamp(1.02rem, 1.4vw, 1.16rem) var(--font-family);
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-account-link:hover {
    color: #fff;
}
}

.music-feed-ai-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    padding: 0 7px;
    box-sizing: border-box;
    border: 1px solid rgba(183,241,255,0.2);
    border-radius: 999px;
    background: rgba(120,220,255,0.07);
    color: rgba(205,244,255,0.78);
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.music-feed-ai-badge .material-symbols-outlined {
    font-size: 12px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 550, 'GRAD' 0, 'opsz' 16;
}

.music-feed-license-badge {
    --song-license-color: #8b5cf6;
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: 22px;
    padding: 0 8px;
    border: 1px solid color-mix(in srgb, var(--song-license-color) 55%, rgba(255,255,255,.1));
    border-radius: 999px;
    background: color-mix(in srgb, var(--song-license-color) 18%, rgba(8,8,12,.45));
    color: color-mix(in srgb, var(--song-license-color) 64%, white);
    font: 800 .68rem/1 var(--font-family);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.14);
    transition: transform 160ms ease, background 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-license-badge:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--song-license-color) 28%, rgba(8,8,12,.5)); }
}
.music-feed-license-badge .material-symbols-outlined { flex: 0 0 auto; font-size: 14px; }
.music-feed-license-badge > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.song-license-dialog {
    --song-license-color: #8b5cf6;
    position: fixed;
    z-index: 5100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3,3,7,.68);
    opacity: 0;
    backdrop-filter: blur(16px) saturate(125%);
    transition: opacity 180ms ease;
}

.song-license-dialog.is-open { opacity: 1; }
.song-license-dialog.is-closing { pointer-events: none; }
body.song-license-dialog-open { overflow: hidden !important; }

.song-license-dialog-card {
    width: min(100%, 560px);
    max-height: min(760px, calc(var(--app-viewport-height) - 36px));
    overflow: hidden auto;
    border: 1px solid color-mix(in srgb, var(--song-license-color) 38%, var(--color-border));
    border-radius: 26px;
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--song-license-color) 18%, transparent), transparent 44%),
        color-mix(in srgb, var(--color-bg) 91%, transparent);
    color: var(--color-text);
    box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
    transform: translateY(10px) scale(.98);
    transition: transform 210ms cubic-bezier(.2,.8,.2,1);
}

.song-license-dialog.is-open .song-license-dialog-card { transform: translateY(0) scale(1); }
.song-license-dialog-card header { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 68px 20px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.song-license-dialog-icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border: 1px solid color-mix(in srgb, var(--song-license-color) 48%, transparent); border-radius: 17px; background: color-mix(in srgb, var(--song-license-color) 18%, rgba(255,255,255,.04)); color: color-mix(in srgb, var(--song-license-color) 68%, white); font-size: 28px; }
.song-license-dialog-kicker { display: block; margin-bottom: 3px; color: var(--color-text-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.song-license-dialog-card h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.12; }
.song-license-dialog-card header button { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.055); color: var(--color-text); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
.song-license-dialog-card header button:hover { background: color-mix(in srgb, var(--song-license-color) 18%, rgba(255,255,255,.06)); }
}
.song-license-dialog-body { padding: 24px 24px 26px; }
.song-license-dialog-body > strong { display: block; margin-bottom: 12px; color: color-mix(in srgb, var(--song-license-color) 62%, var(--color-text)); font-size: 1.08rem; line-height: 1.4; }
.song-license-dialog-body > p { margin: 0; color: color-mix(in srgb, var(--color-text) 84%, transparent); line-height: 1.65; white-space: pre-line; }
.song-license-dialog-body ul { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.song-license-dialog-body li { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--song-license-color) 24%, rgba(255,255,255,.08)); border-radius: 14px; background: color-mix(in srgb, var(--song-license-color) 8%, rgba(255,255,255,.025)); line-height: 1.4; }
.song-license-dialog-body li .material-symbols-outlined { flex: 0 0 auto; color: color-mix(in srgb, var(--song-license-color) 72%, white); font-size: 20px; }

@media (max-width: 600px) {
    .music-feed-license-badge { max-width: 155px; }
    .song-license-dialog { padding: 10px; }
    .song-license-dialog-card { max-height: calc(var(--app-viewport-height) - 20px); border-radius: 22px; }
    .song-license-dialog-card header { padding: 18px 58px 17px 17px; }
    .song-license-dialog-icon { width: 46px; height: 46px; border-radius: 15px; font-size: 25px; }
    .song-license-dialog-card header button { top: 14px; right: 14px; }
    .song-license-dialog-body { padding: 20px 17px 21px; }
}

.music-feed-progress-block {
    width: min(43vh, 400px, 88%);
    margin-top: 12px;
}

.music-feed-progress-slider {
    display: block;
    height: 20px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.28));
}

.music-feed-progress-times {
    margin-top: 4px;
    color: rgba(255,255,255,.68);
    font-size: .78rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.music-feed-volume-control {
    display: none;
}

@media (min-width: 901px) {
    .music-feed-volume-control {
        position: relative;
        z-index: 6;
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: end;
        justify-self: center;
        display: flex;
        align-items: center;
        gap: 10px;
        width: min(43vh, 400px, 88%);
        min-height: 42px;
        margin-bottom: -6px;
        padding: 9px 14px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 999px;
        background: color-mix(in srgb, var(--color-bg) 62%, transparent);
        color: rgba(255,255,255,.72);
        box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.07);
        backdrop-filter: blur(16px) saturate(135%);
        -webkit-backdrop-filter: blur(16px) saturate(135%);
    }

    .music-feed-volume-control .material-symbols-outlined {
        flex: 0 0 auto;
        font-size: 21px;
        text-shadow: 0 2px 8px rgba(0,0,0,.7);
    }

    .music-feed-volume-slider {
        --music-feed-volume: 30%;
        appearance: none;
        -webkit-appearance: none;
        flex: 1 1 auto;
        height: 4px;
        margin: 0;
        border-radius: 999px;
        outline: none;
        background: linear-gradient(90deg, var(--color-accent-light) 0 var(--music-feed-volume), rgba(255,255,255,.2) var(--music-feed-volume) 100%);
        cursor: pointer;
        filter: drop-shadow(0 3px 8px rgba(0,0,0,.28));
    }

    .music-feed-volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255,255,255,.85);
        border-radius: 50%;
        background: var(--color-accent-light);
        box-shadow: 0 2px 8px rgba(0,0,0,.4);
    }

    .music-feed-volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
        border: 2px solid rgba(255,255,255,.85);
        border-radius: 50%;
        background: var(--color-accent-light);
        box-shadow: 0 2px 8px rgba(0,0,0,.4);
    }

    .music-feed-volume-slider:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--color-accent-light) 65%, transparent);
        outline-offset: 5px;
    }
}

.music-feed-lyrics {
    grid-area: lyrics;
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 18px 18px 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        rgba(5,5,8,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 50px rgba(0,0,0,0.2);
}

.music-feed-lyrics-open { display:none; }

.music-feed-lyrics-fullscreen {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--app-viewport-height);
    overflow: hidden;
    padding: max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 12% 4%, color-mix(in srgb,var(--color-accent) 38%,transparent), transparent 42%),
        radial-gradient(circle at 92% 92%, color-mix(in srgb,var(--color-glow-2) 32%,transparent), transparent 44%),
        linear-gradient(145deg,color-mix(in srgb,var(--color-bg) 88%,var(--color-accent) 12%),var(--color-bg));
    color: var(--color-text);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 220ms ease;
}
.music-feed-lyrics-fullscreen.is-open { opacity:1; transform:translateY(0); }
.music-feed-lyrics-fullscreen.is-closing { pointer-events:none; }
body.music-feed-lyrics-fullscreen-open { overflow:hidden !important; }
.music-feed-lyrics-fullscreen-shell { position:relative; display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:min(100%,760px); height:100%; overflow:hidden; border:1px solid color-mix(in srgb,var(--color-accent-light) 24%,var(--color-border)); border-radius:26px; background:color-mix(in srgb,var(--color-bg) 78%,transparent); box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.09),0 0 38px color-mix(in srgb,var(--color-accent) 16%,transparent); backdrop-filter:blur(22px) saturate(135%); }
.music-feed-lyrics-fullscreen-shell::before { content:""; position:absolute; z-index:0; inset:0; pointer-events:none; background:linear-gradient(145deg,color-mix(in srgb,var(--color-accent) 10%,transparent),transparent 38%,color-mix(in srgb,var(--color-accent-light) 6%,transparent)); }
.music-feed-lyrics-fullscreen-shell > * { position:relative; z-index:1; }
.music-feed-lyrics-fullscreen-head { display:flex; align-items:center; justify-content:center; gap:14px; width:100%; min-width:0; min-height:78px; padding:13px 68px; border-bottom:1px solid rgba(255,255,255,.09); background:linear-gradient(100deg,color-mix(in srgb,var(--color-accent) 13%,transparent),rgba(255,255,255,.025)); }
.music-feed-lyrics-fullscreen-title { width:100%; min-width:0; overflow:hidden; text-align:center; }
.music-feed-lyrics-fullscreen-head h2 { overflow:hidden; margin:0; font-size:1.12rem; line-height:1.2; letter-spacing:-.01em; text-overflow:ellipsis; white-space:nowrap; }
.music-feed-lyrics-fullscreen-head button { position:absolute; z-index:2; right:14px; display:grid; flex:0 0 auto; place-items:center; width:42px; height:42px; padding:0; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.055); color:var(--color-text); cursor:pointer; transition:background 160ms ease,transform 160ms ease; }
@media (hover: hover) and (pointer: fine) {
.music-feed-lyrics-fullscreen-head button:hover { background:color-mix(in srgb,var(--color-accent) 18%,rgba(255,255,255,.06)); transform:rotate(3deg); }
}
.music-feed-lyrics-fullscreen-head button .material-symbols-outlined { font-size:23px; }
.music-feed-lyrics-fullscreen-scroll { justify-self:center; width:min(100%,680px); min-height:0; overflow-y:auto; padding:34px 24px 52px; color:color-mix(in srgb,var(--color-text) 92%,transparent); font-family:'Kanit',sans-serif; font-size:clamp(1.02rem,4.5vw,1.18rem); font-weight:500; line-height:1.72; text-align:center; overscroll-behavior:contain; scrollbar-width:none; mask-image:linear-gradient(to bottom,transparent 0,#000 18px,#000 calc(100% - 22px),transparent 100%); }
.music-feed-lyrics-fullscreen-scroll::-webkit-scrollbar { display:none; }
.music-feed-lyrics-fullscreen-scroll :is(p,h1,h2,h3,blockquote) { text-align:center; }
.music-feed-lyrics-fullscreen-scroll :is(p,ul,ol,blockquote) { margin-bottom:.9em; font-weight:500; }
.music-feed-lyrics-fullscreen-scroll :is(h1,h2,h3) { margin:1.7em 0 .7em; line-height:1.25; letter-spacing:-.015em; }
.music-feed-lyrics-fullscreen-scroll h1 { font-size:1.45em; }
.music-feed-lyrics-fullscreen-scroll h2 { font-size:1.28em; }
.music-feed-lyrics-fullscreen-scroll h3 { font-size:1.12em; }
.music-feed-lyrics-fullscreen-scroll > :first-child { margin-top:0; }
.music-feed-lyrics-fullscreen footer { display:flex; justify-content:center; min-height:70px; padding:12px 16px; border-top:1px solid rgba(255,255,255,.09); background:linear-gradient(100deg,rgba(255,255,255,.025),color-mix(in srgb,var(--color-accent) 10%,transparent)); }
.music-feed-lyrics-fullscreen-copy { min-height:44px; padding-inline:18px; background:color-mix(in srgb,var(--color-accent) 20%,rgba(255,255,255,.055)); border-color:color-mix(in srgb,var(--color-accent-light) 28%,rgba(255,255,255,.12)); color:var(--color-text); box-shadow:0 9px 24px color-mix(in srgb,var(--color-accent) 17%,transparent),inset 0 1px 0 rgba(255,255,255,.08); }

.music-feed-lyrics-scroll {
    min-height: 0;
    overflow-y: auto;
    padding: clamp(20px, 3.5vh, 34px) 4px 24px;
    color: rgba(255,255,255,0.92);
    font-family: 'Kanit', sans-serif;
    font-size: clamp(1.08rem, 1.75vw, 1.5rem);
    font-weight: 600;
    line-height: 1.72;
    letter-spacing: -0.01em;
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
    text-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.music-feed-lyrics:not(.is-empty) .music-feed-lyrics-scroll { padding-bottom: 78px; }

.music-feed-lyrics-toolbar {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 12px;
    background: transparent;
    pointer-events: none;
}

.music-feed-copy-lyrics {
    min-height: 38px;
    background: rgba(14,13,18,.88);
    color: rgba(255,255,255,.8);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
.music-feed-copy-lyrics:hover {
    background: color-mix(in srgb, var(--color-accent) 24%, rgba(14,13,18,.94));
    color: #fff;
}
}

.music-feed-lyrics-scroll :is(p, h1, h2, h3, blockquote) {
    text-align: center;
}

.music-feed-lyrics-scroll :is(ul, ol) {
    align-self: center;
    width: fit-content;
}

.music-feed-lyrics-scroll br {
    content: "";
    display: block;
    margin-bottom: 0.35em;
}

.music-feed-lyrics-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(100%, 430px);
    padding: 34px 30px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-accent) 17%, transparent), transparent 66%),
        rgba(255,255,255,0.045);
    color: var(--color-text-soft);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 20px 50px rgba(0,0,0,0.16);
}

.music-feed-lyrics.is-empty .music-feed-lyrics-scroll {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: hidden;
}

.music-feed-lyrics-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border: 1px solid color-mix(in srgb, var(--color-accent-light) 32%, rgba(255,255,255,0.12));
    border-radius: 20px;
    background: color-mix(in srgb, var(--color-accent) 18%, rgba(255,255,255,0.05));
    color: var(--color-accent-light);
    transform: rotate(-3deg);
}

.music-feed-lyrics-empty-icon .material-symbols-outlined {
    font-size: 34px;
}

.music-feed-lyrics-empty strong {
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.2;
}

.music-feed-lyrics-empty > span:last-child {
    max-width: 310px;
}

.music-feed-actions {
    grid-area: actions;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 6px;
}

.music-feed-action {
    --feed-action-glow: rgba(191, 87, 255, 0.34);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 90px;
    min-height: 68px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.82);
    font: 800 0.78rem/1.15 var(--font-family);
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transition: color 160ms ease, transform 160ms ease;
}

.music-feed-action > * {
    position: relative;
    z-index: 1;
}

.music-feed-action::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, var(--feed-action-glow) 0 32%, transparent 72%);
    transform: translate(-50%, -50%) scale(0.28);
}

.music-feed-favorite { --feed-action-glow: rgba(255, 76, 130, 0.46); }
.music-feed-add { --feed-action-glow: rgba(197, 91, 255, 0.42); }
.music-feed-mood { --feed-action-glow: rgba(255, 191, 94, 0.4); }
.music-feed-share { --feed-action-glow: rgba(255, 255, 255, 0.28); }
.music-feed-skip { --feed-action-glow: rgba(124, 212, 255, 0.34); }

.music-feed-action.is-activating {
    animation: musicFeedActionPress 0.52s cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.music-feed-action.is-activating::before {
    animation: musicFeedActionRipple 0.54s ease-out both;
}

.music-feed-action.is-activating .material-symbols-outlined {
    animation: musicFeedActionIconPop 0.52s cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.music-feed-favorite.like-pop.like-pop-active {
    animation: songFavoritePopIn 0.46s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.music-feed-favorite.like-pop.like-pop-active .material-symbols-outlined {
    animation: songFavoriteHeartIn 0.46s cubic-bezier(0.18, 0.85, 0.22, 1) both;
}

.music-feed-favorite.like-pop.like-pop-inactive {
    animation: songFavoritePopOut 0.3s ease both;
}

.music-feed-favorite.like-pop.like-pop-inactive .material-symbols-outlined {
    animation: songFavoriteHeartOut 0.3s ease both;
}

@keyframes musicFeedActionPress {
    0% { transform: translateY(0) scale(1); }
    24% { transform: translateY(1px) scale(0.88); }
    58% { transform: translateY(-2px) scale(1.09); }
    78% { transform: translateY(0) scale(0.98); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes musicFeedActionIconPop {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    28% { transform: scale(0.76) rotate(-8deg); filter: brightness(1.05); }
    62% { transform: scale(1.24) rotate(5deg); filter: brightness(1.35) drop-shadow(0 0 9px var(--feed-action-glow)); }
    100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

@keyframes musicFeedActionRipple {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
    22% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.15); }
}

.music-feed-action .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background: rgba(7,7,10,0.4);
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

@media (hover: hover) and (pointer: fine) {
.music-feed-action:hover { color: #fff; transform: none; }
}
.music-feed-favorite.active { color: #ff5b82; }
.music-feed-favorite.active .material-symbols-outlined {
    border-color: rgba(255,91,130,0.42);
    background: rgba(113,13,42,0.48);
    font-variation-settings: 'FILL' 1;
}

@media (min-width: 901px) and (max-height: 780px) {
    .music-feed-card-content {
        grid-template-columns: minmax(390px, 0.82fr) minmax(300px, 1.18fr);
        grid-template-rows: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "cover lyrics"
            "copy lyrics"
            "actions lyrics";
        gap: 10px 18px;
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .music-feed-cover-button {
        width: min(34vh, 330px, 76%);
    }

    .music-feed-progress-block { width: min(34vh, 330px, 76%); }
    .music-feed-volume-control { width: min(34vh, 330px, 76%); }
    .music-feed-cover-stack .music-feed-copy { width: min(34vh, 330px, 76%); margin-top:10px; }

    .music-feed-actions {
        align-self: end;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        padding: 0;
    }

    .music-feed-action {
        width: 100%;
        min-width: 0;
        min-height: 66px;
    }
}

.music-feed-card.is-dismissed {
    opacity: 0;
    transform: translateX(-12%) scale(0.96);
    transition: opacity 220ms ease, transform 220ms ease;
}

.music-feed-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: rgba(255,255,255,0.035);
    color: var(--color-text-soft);
    text-align: center;
}

.music-feed-error strong { color: var(--color-text); font-size: 1rem; }

.music-feed-error .material-symbols-outlined { font-size: 34px; }
.music-feed-error button {
    padding: 8px 13px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
}

@media (max-width: 900px) {
    .main-content.music-feed-mode {
        padding: calc(env(safe-area-inset-top, 0px) + 54px) 0 0 !important;
        overflow: hidden !important;
    }

    body > .music-feed-view.is-context-feed {
        inset: calc(env(safe-area-inset-top, 0px) + 54px) 0 0;
        padding: 0;
    }

    .music-feed-view { gap: 0; }
    .music-feed-context-close {
        position: absolute;
        top: 12px;
        right: max(12px, calc(env(safe-area-inset-right, 0px) + 8px));
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    .music-feed-comments-dialog { place-items:end center; border-radius:0; }
    .music-feed-comments-panel { width:100%; height:min(78%,720px); border:1px solid rgba(255,255,255,.13); border-bottom:0; border-radius:24px 24px 0 0; transform:translateY(36px); }
    .music-feed-comments-dialog.is-open .music-feed-comments-panel { transform:translateY(0); }
    .music-feed-comments-head { padding:16px 16px 13px; }
    .music-feed-comments-list { padding-inline:14px; }
    .music-feed-tutorial { padding: 10px; place-items: end center; }
    .music-feed-tutorial-panel { width: 100%; padding: 20px 16px 16px; border-radius: 26px 26px 18px 18px; }
    .music-feed-tutorial-head { margin-bottom: 17px; }
    .music-feed-tutorial-panel h2 { font-size: 1.45rem; }
    .music-feed-tutorial-step { min-height: 64px; }
    .music-feed-tutorial-step strong { font-size: 0.98rem; }
    .music-feed-tutorial-step div > span { font-size: 0.86rem; }
    .music-feed-tutorial-confirm { min-height: 54px; font-size: 1rem; }
    .music-feed-mood-dialog { padding: 10px; place-items: end center; }
    .music-feed-mood-panel { width: 100%; max-height: min(82vh, 680px); padding: 20px 16px 16px; border-radius: 26px 26px 18px 18px; }
    .music-feed-mood-panel-head { margin-bottom: 18px; }
    .music-feed-mood-choices { gap: 8px; padding-right: 2px; }
    .music-feed-mood-chip { grid-template-columns: 44px minmax(0, 1fr) 26px; gap: 10px; min-height: 62px; padding: 8px 10px; border-radius: 15px; font-size: 0.94rem; }
    .music-feed-mood-icon { width: 44px; height: 44px; border-radius: 13px; }
    .music-feed-mood-icon .material-symbols-outlined { font-size: 25px; }
    .music-feed-scroller { border-radius: 0; box-shadow: none; }
    .music-feed-card { border: 0; border-radius: 0; }
    .music-feed-card + .music-feed-card { margin-top: 0; }
    .music-feed-card::before,
    .music-feed-card::after {
        animation: none !important;
        will-change: auto;
        transform: none;
    }
    .music-feed-card-backdrop {
        filter: blur(24px) saturate(1.45) brightness(0.7);
    }
    .music-feed-card-backdrop::after {
        display: none;
        animation: none !important;
        will-change: auto;
    }
    .music-feed-card.is-playing .music-feed-cover-button img {
        animation: none !important;
    }
    .music-feed-card-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "cover"
            "copy"
            "actions"
            "lyrics";
        align-items: stretch;
        align-content: center;
        justify-items: center;
        gap: 9px;
        padding: 16px 14px 10px;
    }
    .music-feed-cover-button {
        align-self: center;
        width: min(30vh, 64vw, 275px);
        border-radius: 18px;
        box-shadow: 0 16px 42px rgba(0,0,0,0.34);
    }
    .music-feed-cover-stack { align-self: center; width:100%; }
    .music-feed-progress-block { width:min(100%,420px); margin-top:12px; }
    .music-feed-cover-stack .music-feed-copy { width:min(30vh,64vw,275px); margin-top:8px; }
    @media (hover: hover) and (pointer: fine) {
.music-feed-cover-button:hover { transform: none; box-shadow: 0 16px 42px rgba(0,0,0,0.34); }
}
    .music-feed-play-badge { width: 52px; height: 52px; }
    .music-feed-play-badge .material-symbols-outlined { font-size: 28px; }
    .music-feed-copy { padding: 0 2px; text-align: center; }
    .music-feed-copy h2 { font-size: clamp(1.5rem, 7vw, 1.95rem); line-height: 1.08; }
    .music-feed-copy p { font-size: 0.98rem; line-height: 1.3; }
    .music-feed-copy-meta { justify-content: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
    .music-feed-profile-follow { min-height: 28px; padding-inline: 8px; }
    .music-feed-profile-follow-label { display: none; }
    .music-feed-actions {
        align-self: center;
        justify-self: center;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        width: min(100%,420px);
        padding: 0;
    }
    .music-feed-action {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 6px 3px;
        border: 1px solid rgba(255,255,255,0.13);
        border-radius: 16px;
        background: rgba(8,8,12,0.34);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 22px rgba(0,0,0,.12);
        text-shadow: none;
    }
    .music-feed-action > span:not(.material-symbols-outlined) { display: none; }
    @media (hover: hover) and (pointer: fine) {
.music-feed-action:hover { transform: none; }
}
    .music-feed-action .material-symbols-outlined {
        width: auto;
        height: 36px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font-size: 30px;
    }
    .music-feed-favorite.active .material-symbols-outlined {
        border: 0;
        background: transparent;
    }
    .music-feed-lyrics {
        align-self: stretch;
        justify-self: center;
        width: min(100%,420px);
        padding: 4px 12px 0;
        border-color: rgba(255,255,255,0.1);
        border-radius: 15px;
        background: rgba(8,8,12,0.38);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
    }
    .music-feed-lyrics:not(.is-empty) { grid-area:auto; position:absolute; z-index:4; bottom:max(14px,env(safe-area-inset-bottom)); left:50%; width:min(calc(100% - 28px),420px); min-height:0; padding:0; border:0; background:transparent; box-shadow:none; overflow:visible; transform:translateX(-50%); }
    .music-feed-lyrics:not(.is-empty) :is(.music-feed-lyrics-scroll,.music-feed-lyrics-toolbar) { display:none; }
    .music-feed-lyrics-open { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:54px; margin:3px auto 0; padding:0 18px; border:1px solid rgba(255,255,255,.14); border-radius:16px; background:linear-gradient(135deg,rgba(8,8,12,.4),color-mix(in srgb,var(--color-accent) 14%,rgba(8,8,12,.4))); color:#fff; font:800 .92rem/1 var(--font-family); cursor:pointer; box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 26px rgba(0,0,0,.14); }
    .music-feed-lyrics-open .material-symbols-outlined { color:var(--color-accent-light); font-size:22px; }
    .music-feed-lyrics-scroll { padding: 12px 2px 15px; font-size: 1.08rem; line-height: 1.65; }
    .music-feed-lyrics-empty { margin-inline: auto; padding: 22px 18px; font-size: 0.94rem; line-height: 1.5; }
    .music-feed-lyrics-empty-icon { width: 54px; height: 54px; border-radius: 17px; }
    .music-feed-lyrics-empty-icon .material-symbols-outlined { font-size: 29px; }
    .music-feed-lyrics-empty strong { font-size: 1.18rem; }
    .music-feed-error strong { font-size: 1.14rem; }
    .music-feed-mood-panel h2 { font-size: 1.65rem; }
    .music-feed-mood-chip { font-size: 0.94rem; }
}

@media (max-width: 520px) {
    .music-feed-mood-choices { grid-template-columns: minmax(0, 1fr); }
    .music-feed-mood-chip:first-child { grid-column: auto; }
}

@media (max-width: 420px) {
    .music-feed-card-content { padding-right: 11px; padding-left: 11px; }
    .music-feed-cover-button { width: min(28vh, 62vw, 245px); }
    .music-feed-actions { gap: 5px; }
    .music-feed-action { min-height: 50px; }
    .music-feed-action .material-symbols-outlined { height: 31px; font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
    .music-feed-tutorial-backdrop,
    .music-feed-tutorial-panel { transition: none !important; }
    .music-feed-cover-button.is-play-pulse,
    .music-feed-cover-button.is-play-pulse img,
    .music-feed-cover-button.is-play-pulse::before,
    .music-feed-cover-button.is-play-pulse::after,
    .music-feed-cover-button.is-play-pulse .music-feed-play-badge,
    .music-feed-cover-button.is-play-pulse .music-feed-play-icon,
    .music-feed-cover-button.is-pause-pulse,
    .music-feed-cover-button.is-pause-pulse img,
    .music-feed-cover-button.is-pause-pulse::before,
    .music-feed-cover-button.is-pause-pulse .music-feed-play-badge,
    .music-feed-action.is-activating,
    .music-feed-action.is-activating::before,
    .music-feed-action.is-activating .material-symbols-outlined,
    .music-feed-favorite.like-pop,
    .music-feed-favorite.like-pop .material-symbols-outlined { animation: none !important; }
    .music-feed-card.is-playing .music-feed-cover-button img { animation: none !important; }
    .music-feed-card::before,
    .music-feed-card::after { animation: none !important; }
    .music-feed-card-backdrop,
    .music-feed-card-backdrop::after { animation: none !important; }
    .music-feed-scroller { scroll-behavior: auto; }
}

.auth-native-card.is-profile-mode #authProfileView {
    gap: 20px;
}

.auth-native-card.is-profile-mode .auth-native-profile-header {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
    align-items: center;
}

.auth-native-card.is-profile-mode .auth-profile-overview-media,
.auth-native-card.is-profile-mode .auth-profile-overview-image-actions {
    width: 168px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-preview,
.auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
    width: 168px;
    height: 168px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-main {
    gap: 11px;
}

.auth-native-card.is-profile-mode .auth-native-user {
    font-size: clamp(1.28rem, 1.05rem + 0.7vw, 1.68rem);
}

.auth-native-card.is-profile-mode .auth-public-profile-subtitle {
    max-width: 60ch;
}

.auth-native-card.is-profile-mode #authPasswordForm,
.auth-native-card.is-profile-mode .auth-public-profile {
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
}

.auth-native-card.is-profile-mode #authPasswordForm {
    gap: 14px;
}

.auth-native-card.is-profile-mode .auth-profile-actions-row,
.auth-native-card.is-profile-mode .auth-public-profile-main-actions {
    justify-content: flex-start !important;
}

.auth-native-card.is-profile-mode .auth-profile-actions-row button,
.auth-native-card.is-profile-mode .auth-public-profile-main-actions button {
    min-width: 164px;
}

@media (max-width: 980px) {
    .auth-cards-row.is-profile-mode {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-native-card.is-profile-mode {
        max-width: 100%;
    }

    .auth-native-card.is-profile-mode .auth-native-profile-header {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-media,
    .auth-native-card.is-profile-mode .auth-profile-overview-image-actions {
        width: 150px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 700px) {
    .podcast-discovery-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .podcast-request-btn {
        justify-content: center;
        width: 100%;
    }

    .podcast-card-grid,
    .podcast-continue-list {
        grid-template-columns: 1fr;
    }

    .podcast-card {
        grid-template-columns: 78px minmax(0,1fr);
        padding: 12px;
    }

    .podcast-detail-head,
    .podcast-player-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .podcast-detail-head img,
    .podcast-player-hero img {
        width: min(220px, 70vw);
        justify-self: center;
    }

    .podcast-player-hero {
        padding-right: 0;
    }

    .podcast-episode-card {
        grid-template-columns: 58px minmax(0,1fr);
    }

    .podcast-episode-side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: start;
    }

    .podcast-player-backdrop,
    .podcast-request-backdrop {
        padding: max(14px, env(safe-area-inset-top, 0px)) 12px max(14px, env(safe-area-inset-bottom, 0px));
    }

    .podcast-player,
    .podcast-request-modal {
        max-height: calc(100svh - 28px);
        padding: 18px;
        border-radius: 22px;
    }

    .auth-native-card.is-profile-mode {
        gap: 18px;
        padding: 16px;
    }

    .auth-native-card.is-profile-mode #authProfileView {
        gap: 18px;
    }

    .auth-native-card.is-profile-mode .auth-native-profile-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .auth-native-card.is-profile-mode .auth-profile-handle,
    .auth-native-card.is-profile-mode .auth-public-profile-subtitle {
        text-align: center;
        margin-inline: auto;
    }

    .auth-native-card.is-profile-mode .auth-profile-actions-row,
    .auth-native-card.is-profile-mode .auth-public-profile-main-actions {
        justify-content: center !important;
    }

    .auth-native-card.is-profile-mode .auth-profile-actions-row button,
    .auth-native-card.is-profile-mode .auth-public-profile-main-actions button {
        width: 100% !important;
        min-width: 0;
    }

}

@media (max-width: 900px) {
    html,
    body {
        height: var(--app-viewport-height) !important;
        min-height: var(--app-viewport-height) !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    .main-content {
        position: fixed !important;
        inset: 0 !important;
        height: var(--app-viewport-height) !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .mobile-header,
    .playback-menu {
        position: fixed !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .mobile-header {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1200 !important;
    }

    .playback-menu {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100% - 16px) !important;
        z-index: 1100 !important;
    }

    .mobile-overlay {
        position: fixed !important;
        inset: 0 !important;
        height: var(--app-viewport-height) !important;
        z-index: 1250 !important;
        touch-action: none;
        overscroll-behavior: none;
    }

    .sidebar {
        height: var(--app-viewport-height) !important;
        max-height: var(--app-viewport-height) !important;
        z-index: 1300 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
}

@media (max-width: 900px) {
    html.admin-root,
    html.admin-root body.admin-page {
        height: var(--app-viewport-height) !important;
        min-height: var(--app-viewport-height) !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        position: relative !important;
        touch-action: manipulation !important;
    }

    html.admin-root body.admin-page {
        -webkit-overflow-scrolling: auto;
    }

    html.admin-root .admin-wrap,
    html.admin-root .wrap {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .auth-native-card.is-profile-mode .auth-account-profile-panel.auth-native-profile-header {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: stretch !important;
    }

    .auth-native-card.is-profile-mode .auth-account-profile-panel .auth-profile-overview-media {
        justify-self: center !important;
    }

    .auth-native-card.is-profile-mode .auth-account-profile-panel .auth-profile-overview-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    .auth-native-card.is-profile-mode .auth-account-profile-panel .auth-profile-overview-main > .auth-native-field {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    .auth-native-card.is-profile-mode #authPublicDisplayName,
    .auth-native-card.is-profile-mode #authPublicDescription {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Account settings redesign */
.auth-cards-row.is-profile-mode {
    grid-template-columns: minmax(0, 1120px);
    justify-content: center;
}

.auth-native-card.is-profile-mode {
    width: min(100%, 1120px);
    max-width: 1120px;
    padding: clamp(18px, 2vw, 28px);
    gap: 18px;
}

.auth-native-card.is-profile-mode #authProfileView {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "admin"
        "profile"
        "security"
        "discord"
        "pulse"
        "public";
    gap: 16px;
}

.auth-account-profile-panel {
    grid-area: profile;
    display: grid !important;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: clamp(18px, 2.2vw, 30px);
    align-items: start;
    padding: clamp(16px, 1.8vw, 22px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035) 58%, rgba(255,255,255,0.06)),
        rgba(0,0,0,0.12);
}

.auth-native-card.is-profile-mode .auth-profile-overview-media,
.auth-native-card.is-profile-mode .auth-profile-overview-image-actions {
    width: 188px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-preview,
.auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
    width: 188px;
    height: 188px;
    border-radius: 18px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-image-actions .auth-public-file-btn {
    min-height: 44px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-main {
    gap: 12px;
    align-self: stretch;
}

.auth-native-card.is-profile-mode .auth-profile-overview-topline {
    gap: 10px;
}

.auth-native-card.is-profile-mode .auth-native-user {
    font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.95rem);
}

.auth-native-card.is-profile-mode .auth-profile-handle {
    font-size: 0.94rem;
}

.auth-native-card.is-profile-mode .auth-public-description-input {
    min-height: 124px;
}

.auth-access-tools {
    grid-area: admin;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.auth-access-tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        rgba(0,0,0,0.10);
    box-shadow: none;
}

.auth-ai-prompt-entry {
    border-color: rgba(255,255,255,0.12);
}

.auth-admin-panel-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-align: left;
}

.auth-admin-panel-copy > .material-symbols-outlined {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 1.65rem;
}

.auth-admin-panel-copy strong {
    display: block;
    font-family: 'Kanit', sans-serif;
    font-size: 1.08rem;
    line-height: 1.15;
    color: #fff;
}

.auth-admin-panel-copy p {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--color-text-soft);
}

.auth-admin-panel-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.auth-admin-panel-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.13);
}
}

.auth-admin-panel-link .material-symbols-outlined {
    font-size: 1.05rem;
}

.auth-account-section {
    min-width: 0;
    margin-top: 0 !important;
    padding: 16px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        rgba(0,0,0,0.10) !important;
}

.auth-account-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-account-section-head h3 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 1.12rem;
    line-height: 1.1;
}

.auth-account-section-head p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--color-text-soft);
}

.auth-account-public-section {
    grid-area: public;
    display: grid;
    align-content: start;
    gap: 12px;
}

.auth-account-security-section {
    grid-area: security;
    display: grid;
    align-content: start;
    gap: 12px;
}

.auth-account-discord-section {
    grid-area: discord;
    display: grid;
    align-content: start;
    gap: 12px;
}

.auth-account-pulse-section {
    grid-area: pulse;
    display: grid;
    align-content: start;
    gap: 12px;
}

.auth-discord-panel {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.auth-discord-panel.hidden,
.auth-account-discord-section.hidden,
.auth-discord-linked-card.hidden,
#authDiscordLinkBtn.hidden,
#authDiscordUnlinkBtn.hidden,
#authPulseLinkBtn.hidden,
#authPulseUnlinkBtn.hidden,
#authPulseCodeFields.hidden {
    display: none !important;
}

.auth-discord-divider {
    display: grid;
    grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
    align-items: center;
    gap: 10px;
    width: min(540px, 100%);
    color: rgba(255,255,255,0.58);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-discord-divider::before,
.auth-discord-divider::after {
    content: "";
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.auth-discord-actions,
.auth-discord-profile-actions {
    align-items: center;
}

.auth-native-actions .auth-discord-btn {
    min-width: 220px;
}

.auth-native-actions button .material-symbols-outlined {
    font-size: 19px;
    line-height: 1;
}

.auth-discord-linked-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(100%, 420px);
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.auth-discord-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
}

.auth-discord-avatar.is-empty {
    visibility: hidden;
}

.auth-pulse-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7a55ff, #49c6a4);
    color: #fff;
    font-size: 1.55rem;
}

.auth-discord-linked-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.auth-discord-linked-copy strong,
.auth-discord-linked-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-discord-linked-copy span {
    color: rgba(255,255,255,0.66);
    font-size: 0.84rem;
}

.auth-native-card.is-profile-mode .auth-account-public-section .auth-public-crop-hint {
    display: none;
}

.auth-native-card.is-profile-mode .auth-public-profile-main-actions,
.auth-native-card.is-profile-mode .auth-profile-actions-row {
    justify-content: stretch !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-native-card.is-profile-mode .auth-public-profile-main-actions button,
.auth-native-card.is-profile-mode .auth-profile-actions-row button {
    width: 100% !important;
    min-width: 0;
    margin: 0;
}

.auth-native-card.is-profile-mode #authDeleteBtn {
    grid-column: 1 / -1;
}

.auth-native-card.is-profile-mode .auth-public-lock-note {
    margin-top: 2px;
    text-align: left;
}

@media (max-width: 900px) {
    .auth-native-card.is-profile-mode #authProfileView {
        grid-template-columns: 1fr;
        grid-template-areas:
            "admin"
            "profile"
            "discord"
            "pulse"
            "public"
            "security";
        gap: 14px;
    }

    .auth-account-profile-panel {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-media,
    .auth-native-card.is-profile-mode .auth-profile-overview-image-actions,
    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        width: 150px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        height: 150px;
    }
}

@media (max-width: 760px) {
    .auth-native-card.is-profile-mode {
        padding: 14px;
    }

    .auth-account-profile-panel {
        grid-template-columns: 1fr;
        justify-items: stretch;
        text-align: center;
        gap: 18px;
        padding: 16px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-media {
        justify-self: center;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-main,
    .auth-native-card.is-profile-mode .auth-profile-overview-topline {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        justify-content: center;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-media,
    .auth-native-card.is-profile-mode .auth-profile-overview-image-actions,
    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        width: min(190px, 100%);
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        height: min(190px, calc(100vw - 88px));
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-main {
        max-width: 100%;
        gap: 14px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-main .auth-native-field {
        width: 100%;
        max-width: none;
        text-align: left;
        gap: 9px;
    }

    .auth-native-card.is-profile-mode #authPublicDisplayName,
    .auth-native-card.is-profile-mode #authPublicDescription {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        border-radius: 15px;
        background: rgba(255,255,255,0.075);
    }

    .auth-native-card.is-profile-mode #authPublicDisplayName {
        min-height: 54px;
        font-size: 1rem;
        padding: 14px 15px;
    }

    .auth-native-card.is-profile-mode #authPublicDescription {
        min-height: 156px;
        font-size: 1rem;
        line-height: 1.45;
        padding: 14px 15px;
    }

    .auth-native-card.is-profile-mode .auth-public-desc-label {
        gap: 8px;
        align-items: center;
        min-height: 24px;
    }

    .auth-native-card.is-profile-mode .auth-public-profile-main-actions,
    .auth-native-card.is-profile-mode .auth-profile-actions-row {
        grid-template-columns: 1fr;
    }

    .auth-access-tool-card {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-admin-panel-link {
        width: 100%;
    }

}

.auth-native-card.is-profile-mode,
.auth-cards-row.is-profile-mode > .auth-native-card {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Combined language and appearance settings view */
body.settings-view-active,
body.settings-view-active .main-content,
body.settings-view-active #settingsView {
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

body.settings-view-active .main-content > :not(#settingsView) {
    display: none !important;
}

.settings-view[hidden] {
    display: none !important;
}

.settings-view {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding-bottom: 18px;
}

.settings-panel {
    border: 1px solid var(--color-border);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025) 58%, rgba(255,255,255,0.05)),
        color-mix(in srgb, var(--color-bg) 78%, transparent);
    box-shadow: 0 18px 46px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.settings-panel-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.settings-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 10px 28px var(--color-accent-soft);
    font-size: 1.55rem;
}

.settings-panel-heading h2 {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    line-height: 1.08;
    font-size: 1.22rem;
}

.settings-panel-heading p {
    margin: 5px 0 0;
    color: var(--color-text-soft);
    line-height: 1.45;
}

.settings-panel {
    padding: clamp(18px, 2.6vw, 28px);
    border-radius: 20px;
}

.settings-language-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.settings-language-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 13px 15px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
.settings-language-option:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--color-accent-light) 55%, var(--color-border));
    background: rgba(255,255,255,0.085);
}
}

.settings-language-option.active {
    border-color: var(--color-accent-light);
    background: linear-gradient(135deg, var(--color-accent-soft), rgba(255,255,255,0.055));
    box-shadow: inset 0 0 0 1px var(--color-accent-faint), 0 10px 30px rgba(0,0,0,0.12);
}

.settings-language-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.09);
    color: var(--color-text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.settings-language-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.settings-language-copy strong {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
}

.settings-language-copy small {
    color: var(--color-accent-light);
    font-size: 0.78rem;
}

.settings-language-check {
    color: var(--color-text-soft);
    font-size: 1.35rem;
}

.settings-language-option.active .settings-language-check {
    color: var(--color-accent-light);
}

.settings-language-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 13px 2px 0;
    color: var(--color-text-soft);
    font-size: 0.8rem;
}

.settings-language-hint .material-symbols-outlined {
    font-size: 1rem;
}

.settings-appearance-heading {
    margin-bottom: 18px;
}

.settings-theme-picker.theme-picker-backdrop {
    display: block !important;
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.settings-theme-picker .theme-picker {
    width: 100%;
    max-width: none;
    max-height: none;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none;
    overflow: visible;
}

.settings-theme-picker .theme-picker-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 0;
    overflow: visible;
}

.settings-theme-picker .theme-picker-section {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
}

.settings-theme-picker .theme-picker-section-custom {
    padding-top: 16px;
}

@media (max-width: 760px) {
    .settings-view {
        gap: 14px;
    }

    .settings-language-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .settings-panel {
        padding: 16px;
        border-radius: 17px;
    }

    .settings-panel-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .settings-panel-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.35rem;
    }

    .settings-language-option {
        min-height: 68px;
    }

    .settings-theme-picker .theme-picker-section {
        padding: 13px;
    }

    .settings-theme-picker .theme-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-theme-picker .theme-grid .theme-card.theme-card-lone-last,
    .settings-theme-picker .theme-grid .theme-card.theme-card-featured {
        grid-column: 1;
        width: 100%;
    }
}

[data-theme="light"] .settings-panel {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.48)),
        color-mix(in srgb, var(--color-bg) 82%, white);
    box-shadow: 0 18px 46px rgba(44,32,69,0.10);
}

[data-theme="light"] .settings-language-option,
[data-theme="light"] .settings-theme-picker .theme-picker-section {
    background: rgba(255,255,255,0.58);
}

[data-theme="light"] .settings-language-option.active {
    background: linear-gradient(135deg, var(--color-accent-soft), rgba(255,255,255,0.78));
}
/* Community songs -------------------------------------------------------- */
.main-content.community-view-active > *:not(#communityView) {
    display: none !important;
}

body.community-view-active .main-content {
    background:
        radial-gradient(circle at 48% -10%, var(--color-accent-soft), transparent 36%),
        transparent;
}

.community-view {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 2px 0 0;
    box-sizing: border-box;
    color: var(--color-text, #fff);
}

.community-view[hidden] {
    display: none !important;
}

.community-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 0;
}

.community-hero h1 {
    margin: 0;
    font: 800 clamp(2rem, 3.3vw, 3.7rem)/.98 "Kanit", sans-serif;
    letter-spacing: -.035em;
}
.community-hero p { margin: 9px 0 0; max-width: 680px; color: var(--color-text-soft, #d8d8e4); font: 600 .94rem/1.5 "Nunito", sans-serif; }

.community-generate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(120deg, var(--color-accent, #a020f0), var(--color-accent-light, #ba55d3));
    color: white;
    box-shadow: 0 14px 35px rgba(0,0,0,.16);
    font: 800 .97rem/1 "Nunito", sans-serif;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
@media (hover: hover) and (pointer: fine) {
.community-generate-button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 38px rgba(0,0,0,.22); }
}
.community-generate-button:disabled { cursor: wait; opacity: .72; transform: none; }

.community-mine-panel {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}
.community-mine-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.community-mine-heading h2 { margin: 0; font: 700 clamp(1.25rem, 2.3vw, 1.7rem)/1.1 "Kanit", sans-serif; }
.community-mine-heading p { margin: 5px 0 0; color: var(--color-text-soft, #d8d8e4); font: 500 .9rem/1.4 "Nunito", sans-serif; }
.community-quota-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.12); font: 800 .8rem "Nunito", sans-serif; }

.community-job-list { display: grid; gap: 9px; margin-top: 13px; }
.community-job-list:empty { display: none; }
.community-job {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
}
.community-job-cover { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.07); }
.community-job-copy { min-width: 0; }
.community-job-copy strong, .community-job-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.community-job-copy strong { font: 800 .9rem "Nunito", sans-serif; }
.community-job-copy span { margin-top: 2px; color: var(--color-text-soft, #ccc); font: 500 .78rem "Nunito", sans-serif; }
.community-job-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.community-job-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--color-text-soft, #ddd); font: 800 .72rem "Nunito", sans-serif; }
.community-job-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5c65d; box-shadow: 0 0 0 4px rgba(245,198,93,.1); }
.community-job.is-ready .community-job-status::before { background: #65e5ab; box-shadow: 0 0 0 4px rgba(101,229,171,.1); }
.community-job.is-failed .community-job-status::before { background: #ff728b; box-shadow: 0 0 0 4px rgba(255,114,139,.1); }
.community-job-rename { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.055); color: var(--color-text-soft, #ddd); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease; }
@media (hover: hover) and (pointer: fine) {
.community-job-rename:hover { color: var(--color-text, #fff); border-color: color-mix(in srgb, var(--color-accent-light, #ba55d3) 55%, transparent); background: color-mix(in srgb, var(--color-accent, #a020f0) 18%, transparent); transform: translateY(-1px); }
}
.community-job-rename:focus-visible { outline: 2px solid var(--color-accent-light, #ba55d3); outline-offset: 2px; }
.community-job-rename:disabled { opacity: .5; cursor: wait; transform: none; }
.community-job-rename .material-symbols-outlined { font-size: 18px; }

.community-create-card { position: relative; width: min(620px, 100%); max-height: min(90vh, 780px); overflow: auto; border: 1px solid rgba(255,255,255,.17); border-radius: 25px; padding: 22px; background: color-mix(in srgb, var(--color-background, #121212) 90%, transparent); box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.community-create-card-inline {
    box-sizing: border-box;
    width: 100%;
    max-height: none;
    margin-top: 30px;
    overflow: visible;
    border-color: rgba(255,255,255,.11);
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
    box-shadow: 0 18px 46px rgba(0,0,0,.13);
}
.community-create-card-inline .community-create-form { max-width: 920px; }
.community-create-card-inline .community-create-form textarea { min-height: 170px; }
.community-create-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.community-create-card-head h2 { margin: 8px 0 0; font: 700 clamp(1.45rem, 4vw, 2rem)/1.1 "Kanit", sans-serif; }
.community-create-form { display: grid; gap: 11px; margin-top: 20px; }
.community-create-form label { font: 800 .93rem "Nunito", sans-serif; }
.community-create-form textarea { box-sizing: border-box; width: 100%; min-height: 190px; resize: vertical; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 14px; outline: none; background: rgba(255,255,255,.055); color: inherit; font: 600 .96rem/1.5 "Nunito", sans-serif; }
.community-create-form textarea:focus { border-color: color-mix(in srgb, var(--color-accent-light, #ba55d3) 70%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #a020f0) 15%, transparent); }
.community-input-mode { min-width: 0; margin: 0 0 6px; padding: 0; border: 0; }
.community-input-mode[hidden] { display: none !important; }
.community-input-mode legend { margin-bottom: 8px; font: 800 .78rem "Nunito", sans-serif; color: var(--color-text-soft, #ddd); }
.community-input-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.035); }
.community-input-mode-switch label { display: flex; min-width: 0; cursor: pointer; }
.community-input-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.community-input-mode-switch label > span { display: grid; width: 100%; min-height: 58px; box-sizing: border-box; align-content: center; gap: 2px; padding: 9px 13px; border: 1px solid transparent; border-radius: 11px; color: var(--color-text-soft, #ccc); transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.community-input-mode-switch strong { font: 800 .9rem "Nunito", sans-serif; }
.community-input-mode-switch small { color: color-mix(in srgb, var(--color-text-soft, #ccc) 72%, transparent); font: 600 .72rem "Nunito", sans-serif; }
.community-input-mode-switch input:checked + span { border-color: color-mix(in srgb, var(--color-accent-light, #ba55d3) 36%, transparent); background: color-mix(in srgb, var(--color-accent, #a020f0) 18%, transparent); color: var(--color-text, #fff); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.community-input-mode-switch input:focus-visible + span { outline: 2px solid var(--color-accent-light, #ba55d3); outline-offset: 2px; }
.community-input-fields { display: grid; gap: 9px; }
.community-input-fields[hidden] { display: none !important; }
.community-custom-field { display: grid; gap: 9px; }
.community-custom-field + .community-custom-field { margin-top: 8px; }
.community-create-card-inline .community-create-form .community-lyrics-input { min-height: 260px; }
.community-field-meta { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--color-text-soft, #ccc); font: 500 .74rem/1.35 "Nunito", sans-serif; }
.community-field-meta span:last-child { margin-left: auto; white-space: nowrap; }
.community-prompt-meta { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--color-text-soft, #ccc); font: 500 .76rem "Nunito", sans-serif; }
.community-prompt-meta #communityPromptCount { margin-left: auto; }
.community-generation-meta { margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.community-create-message { padding: 10px 12px; border: 1px solid rgba(255,100,120,.35); border-radius: 12px; background: rgba(255,70,100,.07); color: #ffd5dc; font: 700 .84rem/1.4 "Nunito", sans-serif; }
.community-generate-button { width: 100%; margin-top: 3px; }
.community-license-note { display: flex; align-items: flex-start; gap: 7px; margin: 2px 0 0; color: var(--color-text-soft, #ccc); font: 500 .76rem/1.4 "Nunito", sans-serif; }
.community-license-note .material-symbols-outlined { flex: 0 0 auto; font-size: 17px; color: #72e7b0; }
.account-community-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 7px 2px 0; font: 700 1.08rem "Kanit", sans-serif; }
.account-community-heading > span:last-child { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-accent, #a020f0) 18%, transparent); font: 800 .74rem "Nunito", sans-serif; }
.account-playlists-heading { margin-top: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.account-published-song-card { width: 100%; }
@media (max-width: 720px) {
    .community-view { padding: 2px 0 0; }
    .community-hero { grid-template-columns: 1fr; align-items: flex-start; gap: 18px; padding: 0; }
    .community-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .community-mine-panel { margin-top: 22px; padding: 16px; }
    .community-job { grid-template-columns: 42px minmax(0,1fr); }
    .community-job-cover { width: 42px; height: 42px; }
    .community-job-controls { grid-column: 1 / -1; justify-content: flex-start; }
    .community-create-card { width: 100%; box-sizing: border-box; border-radius: 24px 24px 0 0; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); }
    .community-create-card-inline { margin-top: 22px; border-radius: 18px; padding: 17px 15px; }
    .community-input-mode-switch { grid-template-columns: 1fr; }
}
/* 2026 home-aligned Create + Playlists surfaces ------------------------ */
body.community-view-active .main-content,
body.playlists-hub-active .main-content {
    background:
        radial-gradient(circle at 48% -10%, var(--color-accent-soft), transparent 36%),
        transparent;
}

/* Create */
.community-view {
    display: grid;
    gap: 30px;
    width: min(100%, 1480px);
    padding-top: 2px;
}

.community-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
}

.community-hero h1 {
    font-size: clamp(2.3rem, 4.2vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.community-hero p {
    max-width: 720px;
    margin-top: 14px;
    font-size: clamp(0.94rem, 1.25vw, 1.08rem);
}

.community-create-card-inline {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
    gap: clamp(30px, 4vw, 68px);
    margin-top: 0;
    padding: clamp(24px, 3vw, 44px);
    overflow: hidden;
    border-color: rgba(255,255,255,0.16);
    border-radius: clamp(24px, 2.6vw, 36px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(20,12,27,0.98), rgba(73,17,92,0.88) 59%, rgba(22,13,31,0.96)),
        var(--color-bg-glass);
    box-shadow: 0 26px 70px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.community-create-card-inline::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 83% 34%, rgba(204,82,255,0.23), transparent 28%),
        linear-gradient(110deg, rgba(0,0,0,0.12), transparent 50%, var(--color-accent-faint));
}

.community-studio-main,
.community-studio-preview {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.community-create-card-inline .community-create-form {
    max-width: none;
    gap: 14px;
    margin-top: 24px;
}

.community-create-card-head {
    align-items: center;
}

.community-create-card-head h2 {
    margin-top: 9px;
    font-size: clamp(1.7rem, 2.7vw, 2.45rem);
    letter-spacing: -0.025em;
}

.community-create-card-inline .community-quota-badge {
    padding: 8px 12px;
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    backdrop-filter: blur(12px);
}

.community-create-card-inline .community-input-mode legend,
.community-create-card-inline .community-field-meta,
.community-create-card-inline .community-prompt-meta,
.community-create-card-inline .community-license-note {
    color: rgba(255,255,255,0.68);
}

.community-create-card-inline .community-input-mode-switch {
    padding: 6px;
    border-color: rgba(255,255,255,0.13);
    border-radius: 18px;
    background: rgba(7,4,11,0.22);
}

.community-create-card-inline .community-input-mode-switch label > span {
    min-height: 62px;
    border-radius: 13px;
    color: rgba(255,255,255,0.67);
}

.community-create-card-inline .community-input-mode-switch small {
    color: rgba(255,255,255,0.48);
}

.community-create-card-inline .community-input-mode-switch input:checked + span {
    border-color: rgba(255,255,255,0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.085));
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.1);
}

.community-create-card-inline .community-create-form textarea {
    min-height: 184px;
    border-color: rgba(255,255,255,0.14);
    border-radius: 19px;
    padding: 16px 17px;
    background: rgba(8,5,12,0.3);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.community-create-card-inline .community-create-form textarea::placeholder {
    color: rgba(255,255,255,0.42);
}

.community-create-card-inline .community-create-form textarea:focus {
    border-color: rgba(218,145,255,0.78);
    background: rgba(8,5,12,0.42);
    box-shadow: 0 0 0 4px rgba(188,72,244,0.13), inset 0 1px 0 rgba(255,255,255,0.05);
}

.community-create-card-inline .community-generation-meta {
    border-top-color: rgba(255,255,255,0.09);
}

.community-create-card-inline .community-generate-button {
    min-height: 54px;
    border-color: rgba(255,255,255,0.22);
    background: linear-gradient(135deg, #b128ff, #7b15e8);
    box-shadow: 0 16px 36px rgba(142,32,189,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.community-studio-preview {
    align-self: center;
    min-height: 510px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.19);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 28%, rgba(190,61,248,0.3), transparent 34%),
        linear-gradient(155deg, rgba(255,255,255,0.105), rgba(8,5,12,0.42));
    box-shadow: 0 32px 68px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.13);
    transform: rotate(1.2deg);
}

.community-studio-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 28%);
}

.community-studio-record {
    position: relative;
    z-index: 1;
    width: min(76%, 250px);
    aspect-ratio: 1;
    margin: 35px auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, transparent 0 10px, rgba(255,255,255,0.04) 11px 12px),
        radial-gradient(circle at 36% 27%, rgba(255,255,255,0.18), transparent 21%),
        linear-gradient(145deg, #2b1935, #100b16);
    box-shadow: 0 28px 55px rgba(0,0,0,0.34), inset 0 0 0 12px rgba(255,255,255,0.025);
    animation: communityStudioFloat 5s ease-in-out infinite;
}

.community-studio-record-ring {
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;
    background: linear-gradient(135deg, #ba38ff, #6c18d8);
    box-shadow: 0 0 42px rgba(178,44,255,0.35);
}

.community-studio-record-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #fff;
    background: rgba(16,10,22,0.82);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    font-size: 29px;
}

.community-studio-wave {
    position: relative;
    z-index: 2;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 auto 18px;
}

.community-studio-wave i {
    width: 4px;
    height: 35%;
    border-radius: 999px;
    background: linear-gradient(to top, #8d21ed, #e19aff);
    animation: communityStudioWave 1.25s ease-in-out infinite alternate;
}

.community-studio-wave i:nth-child(2n) { height: 75%; animation-delay: -0.55s; }
.community-studio-wave i:nth-child(3n) { height: 45%; animation-delay: -0.85s; }
.community-studio-wave i:nth-child(4n) { height: 95%; animation-delay: -0.25s; }

.community-studio-steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 7px;
}

.community-studio-steps > span {
    min-height: 43px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 13px;
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.82);
    font: 800 0.76rem/1.2 var(--font-family);
}

.community-studio-steps b {
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.community-studio-steps i {
    font-size: 17px;
    color: #d989ff;
}

.community-mine-panel {
    margin-top: 0;
    padding: 22px;
    border-color: rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
}

.community-mine-heading h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

@keyframes communityStudioFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes communityStudioWave {
    to { transform: scaleY(0.42); opacity: 0.62; }
}

/* Playlists */
.playlists-hub {
    width: min(100%, 1480px);
    padding: 2px 0 130px;
}

.playlists-dashboard-header {
    position: relative;
    isolation: isolate;
    min-height: 250px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
    align-items: center;
    gap: 34px;
    padding: clamp(26px, 3vw, 44px) clamp(28px, 4vw, 56px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: clamp(24px, 2.6vw, 36px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(20,12,27,0.98), rgba(78,18,96,0.86) 58%, rgba(22,13,31,0.96)),
        var(--color-bg-glass);
    box-shadow: 0 26px 70px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.playlists-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 48%, rgba(200,63,255,0.24), transparent 30%),
        linear-gradient(110deg, rgba(0,0,0,0.12), transparent 54%, rgba(160,32,240,0.12));
}

.playlists-dashboard-heading {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.playlists-dashboard-heading h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font: 800 clamp(2.35rem, 4.5vw, 4.8rem)/0.94 'Kanit', var(--font-family);
    letter-spacing: -0.045em;
}

.playlists-dashboard-heading p {
    max-width: 690px;
    margin: 17px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: clamp(0.94rem, 1.25vw, 1.08rem);
    line-height: 1.55;
}

.playlists-dashboard-art {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    height: 200px;
    justify-self: end;
}

.playlists-dashboard-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 155px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,0.22), transparent 30%),
        linear-gradient(145deg, rgba(209,79,255,0.95), rgba(71,16,119,0.95));
    box-shadow: 0 26px 48px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.16);
}

.playlists-dashboard-disc::after {
    content: '';
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    right: -26%;
    bottom: -29%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 16px rgba(255,255,255,0.04), 0 0 0 34px rgba(255,255,255,0.025);
}

.playlists-dashboard-disc i {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 42px;
    filter: drop-shadow(0 9px 18px rgba(0,0,0,0.25));
}

.playlists-dashboard-disc-back {
    transform: translate(-112%, -50%) rotate(-13deg) scale(0.82);
    opacity: 0.58;
}

.playlists-dashboard-disc-mid {
    transform: translate(-50%, -50%) rotate(-2deg) scale(0.92);
    opacity: 0.82;
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,0.2), transparent 30%),
        linear-gradient(145deg, #7428d9, #281447);
}

.playlists-dashboard-disc-front {
    transform: translate(12%, -50%) rotate(11deg);
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,0.24), transparent 30%),
        linear-gradient(145deg, #c33aff, #5b16c0);
}

.playlists-command-center {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr);
    align-items: center;
    gap: 18px;
    margin: 22px 0 34px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

.playlists-command-center .playlists-hub-view-switcher {
    justify-content: flex-start;
    margin: 0;
}

.playlists-command-center .charts-filter {
    border-color: rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.12);
}

.playlists-command-center .playlists-hub-view-btn {
    min-height: 40px;
}

.playlists-command-center .playlists-hub-global-search {
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    margin: 0;
}

.playlists-command-center .playlists-public-search {
    min-height: 48px;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

.playlists-command-center .playlists-public-search:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

.playlists-command-center .playlists-hub-search-actions > button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    flex-basis: 46px;
}

.playlists-command-center .playlists-hub-search-actions > #createPlaylistBtn {
    width: 46px;
    min-width: 46px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #b128ff, #7b15e8);
    box-shadow: 0 12px 28px rgba(142,32,189,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}

.playlists-hub-group,
.playlists-public-browser {
    margin-bottom: 36px;
}

.playlists-hub-group-head,
.playlists-public-browser-head {
    margin: 0 2px 15px;
    padding: 0;
}

.playlists-hub-group h2,
.playlists-public-browser-head h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    letter-spacing: -0.02em;
}

.playlists-hub-list {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px;
    padding: 0;
}

.playlists-hub-item {
    gap: 10px;
    padding: 9px 9px 13px;
    border-color: rgba(255,255,255,0.12);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: none;
}

.playlists-hub-item.active {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.23);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.05));
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}

@media (hover: hover) and (pointer: fine) {
.playlists-hub-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.23);
    background: linear-gradient(155deg, var(--color-accent-faint), rgba(255,255,255,0.05));
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}
}

.playlists-hub-item-media {
    border-radius: 15px;
}

.playlists-hub-item-name {
    font-size: 0.98rem;
}

.playlists-hub-empty {
    min-height: 150px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
}

@media (max-width: 1120px) {
    .community-create-card-inline {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        gap: 30px;
    }

    .community-studio-preview {
        min-height: 480px;
    }

    .playlists-command-center {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .playlists-command-center .playlists-hub-view-switcher {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .community-view {
        gap: 24px;
    }

    .community-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .community-create-card-inline {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .community-studio-preview {
        min-height: 300px;
        display: grid;
        grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1fr);
        align-items: center;
        gap: 18px;
        transform: none;
    }

    .community-studio-record {
        width: min(100%, 210px);
        margin: 0 auto;
    }

    .community-studio-wave {
        position: absolute;
        left: 26px;
        right: calc(50% + 20px);
        bottom: 11px;
        margin: 0;
    }

    .playlists-dashboard-header {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
        padding: 28px;
    }

    .playlists-dashboard-heading h1 {
        font-size: clamp(2.2rem, 6.8vw, 3.7rem);
    }

    .playlists-dashboard-art {
        height: 180px;
    }

    .playlists-dashboard-disc {
        width: 135px;
    }
}

@media (max-width: 640px) {
    .community-view,
    .playlists-hub {
        padding-top: 0;
    }

    .community-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.35rem);
    }

    .community-hero p {
        margin-top: 11px;
        font-size: 0.9rem;
    }

    .community-create-card-inline {
        margin-top: 0;
        padding: 21px 17px;
        border-radius: 23px;
    }

    .community-create-card-head {
        align-items: flex-start;
    }

    .community-create-card-head h2 {
        font-size: 1.55rem;
    }

    .community-create-card-inline .community-create-form {
        margin-top: 20px;
    }

    .community-create-card-inline .community-input-mode-switch {
        grid-template-columns: 1fr;
    }

    .community-create-card-inline .community-create-form textarea {
        min-height: 165px;
    }

    .community-studio-preview {
        display: none;
    }

    .community-mine-panel {
        padding: 17px;
    }

    .playlists-dashboard-header {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 26px 20px 24px;
        border-radius: 23px;
    }

    .playlists-dashboard-heading h1 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .playlists-dashboard-heading p {
        margin-top: 12px;
        font-size: 0.88rem;
    }

    .playlists-dashboard-art {
        width: min(92%, 310px);
        height: 130px;
        justify-self: center;
    }

    .playlists-dashboard-disc {
        width: 112px;
        border-radius: 22px;
    }

    .playlists-dashboard-disc i {
        font-size: 32px;
    }

    .playlists-command-center {
        margin: 14px 0 28px;
        padding: 8px;
        border-radius: 18px;
    }

    .playlists-command-center .playlists-hub-view-switcher .charts-filter {
        width: 100%;
    }

    .playlists-command-center .playlists-hub-global-search {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .playlists-command-center .playlists-public-search {
        min-height: 44px;
    }

    .playlists-command-center .playlists-hub-search-actions > button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .playlists-command-center .playlists-hub-search-actions > #createPlaylistBtn {
        width: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .playlists-hub-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 430px) {
    .playlists-command-center .playlists-hub-global-search {
        grid-template-columns: 1fr;
    }

    .playlists-command-center .playlists-hub-search-actions {
        justify-content: flex-end;
    }

}

@media (prefers-reduced-motion: reduce) {
    .community-studio-record,
    .community-studio-wave i {
        animation: none;
    }
}

[data-theme="light"] .playlists-command-center,
[data-theme="light"] .community-mine-panel {
    border-color: rgba(54,35,72,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.48));
    box-shadow: 0 18px 42px rgba(44,32,69,0.09);
}

[data-theme="light"] .playlists-command-center .charts-filter,
[data-theme="light"] .playlists-command-center .playlists-public-search {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.58);
}

/* 2026 Charts dashboard ------------------------------------------------- */
body.charts-view-active .main-content {
    background:
        radial-gradient(circle at 48% -10%, var(--color-accent-soft), transparent 36%),
        transparent;
}

.charts-dashboard-header {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 270px;
    margin: 2px auto 22px;
    padding: clamp(28px, 3.6vw, 52px) clamp(28px, 4vw, 58px);
    grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
    align-items: center;
    gap: 38px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: clamp(24px, 2.6vw, 36px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(20,12,27,0.98), rgba(75,17,93,0.88) 58%, rgba(22,13,31,0.96)),
        var(--color-bg-glass);
    box-shadow: 0 26px 70px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.charts-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 81% 47%, rgba(202,65,255,0.25), transparent 30%),
        linear-gradient(108deg, rgba(0,0,0,0.14), transparent 54%, rgba(160,32,240,0.12));
}

.charts-dashboard-heading {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.charts-dashboard-heading h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font: 800 clamp(2.6rem, 5vw, 5.2rem)/0.91 'Kanit', var(--font-family);
    letter-spacing: -0.05em;
}

.charts-dashboard-podium {
    position: relative;
    z-index: 1;
    height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    perspective: 900px;
}

.charts-dashboard-podium::before {
    content: '';
    position: absolute;
    right: 4%;
    bottom: -45px;
    left: 4%;
    height: 80px;
    border-radius: 50%;
    background: rgba(190,54,252,0.3);
    filter: blur(34px);
}

.charts-podium-card {
    position: relative;
    width: 118px;
    height: 142px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,0.2), transparent 30%),
        linear-gradient(145deg, rgba(152,42,218,0.92), rgba(31,15,45,0.96));
    box-shadow: 0 24px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(8px) rotate(-5deg);
}

.charts-podium-card::after {
    content: '';
    position: absolute;
    width: 86%;
    aspect-ratio: 1;
    right: -40%;
    bottom: -40%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 15px rgba(255,255,255,0.035), 0 0 0 32px rgba(255,255,255,0.022);
}

.charts-podium-card > b {
    position: relative;
    z-index: 2;
    font-size: 38px;
    font-weight: 400;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.28));
}

.charts-podium-rank {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: rgba(255,255,255,0.88);
    background: rgba(12,7,18,0.42);
    font: 900 0.78rem/1 'Kanit', sans-serif;
    font-style: normal;
    backdrop-filter: blur(10px);
}

.charts-podium-rank .material-symbols-outlined {
    color: #ffe070;
    font-size: 18px;
}

.charts-podium-card small {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 13px;
    left: 12px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
}

.charts-podium-card small::after {
    content: '';
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,0.72);
}

.charts-podium-card-1 {
    z-index: 2;
    width: 138px;
    height: 176px;
    transform: translateY(0) rotate(1.5deg);
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,0.23), transparent 30%),
        linear-gradient(145deg, #be3cff, #5b17bc 60%, #27113f);
}

.charts-podium-card-1 > b {
    font-size: 47px;
}

.charts-podium-card-1 small::after { width: 91%; }

.charts-podium-card-2 {
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,0.19), transparent 30%),
        linear-gradient(145deg, #7440c8, #25183b);
}

.charts-podium-card-2 small::after { width: 79%; }

.charts-podium-card-3 {
    transform: translateY(12px) rotate(6deg);
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,0.18), transparent 30%),
        linear-gradient(145deg, #a329c4, #34133f);
}

body.charts-view-active .content-controls.charts-controls-active {
    width: min(100%, 1480px);
    margin: 0 auto 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.charts-view-active .content-controls.charts-controls-active #chartsFilterRoot {
    justify-content: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
}

body.charts-view-active .content-controls.charts-controls-active .charts-filter {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    border-color: rgba(255,255,255,0.11);
    background: rgba(0,0,0,0.12);
}

body.charts-view-active .content-controls.charts-controls-active .charts-filter-btn {
    white-space: nowrap;
}

body.charts-view-active .content-controls.charts-controls-active .search-bar {
    width: 100%;
    min-height: 48px;
    margin: 0;
    order: initial;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.charts-view-active .content-controls.charts-controls-active .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.charts-view-active .song-table {
    width: min(100%, 1480px);
    margin: 0 auto;
    border-spacing: 0 5px;
}

body.charts-view-active .song-table th {
    padding-top: 5px;
    padding-bottom: 8px;
    border-bottom: 0;
    color: color-mix(in srgb, var(--color-text-soft) 82%, transparent);
    font-size: 0.71rem;
    letter-spacing: 0.09em;
}

body.charts-view-active .song-row {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
    transition: transform 180ms cubic-bezier(0.2,0.8,0.2,1), filter 180ms ease;
}

body.charts-view-active .song-row td {
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 1px solid rgba(255,255,255,0.09);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.045);
}

body.charts-view-active .song-row td:first-child {
    width: 70px;
    border-left: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px 0 0 18px;
}

body.charts-view-active .song-row td:last-child {
    border-right: 1px solid rgba(255,255,255,0.09);
    border-radius: 0 18px 18px 0;
}

@media (hover: hover) and (pointer: fine) {
body.charts-view-active .song-row:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.16));
}
}

@media (hover: hover) and (pointer: fine) {
body.charts-view-active .song-row:hover td {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.075);
}
}

body.charts-view-active .song-row.playing td {
    border-color: color-mix(in srgb, var(--color-accent-light) 30%, transparent);
    background: color-mix(in srgb, var(--color-accent) 13%, rgba(255,255,255,0.04));
}

body.charts-view-active .chart-song-row-1 td,
body.charts-view-active .chart-song-row-2 td,
body.charts-view-active .chart-song-row-3 td {
    background: rgba(255,255,255,0.045);
}

body.charts-view-active .song-title-cell > img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    box-shadow: 0 7px 16px rgba(0,0,0,0.18);
}

body.charts-view-active .song-title-cell {
    gap: 11px;
}

body.charts-view-active .song-name {
    font-family: 'Kanit', var(--font-family);
    font-size: 1rem;
    font-weight: 400;
}

body.charts-view-active .song-chart-meta {
    margin-top: 2px;
    color: color-mix(in srgb, var(--color-text-soft) 86%, transparent);
    font-family: var(--font-family);
    font-size: 0.72rem;
    font-weight: 800;
}

body.charts-view-active .chart-rank-badge {
    min-width: 46px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255,255,255,0.05);
}

body.charts-view-active .chart-rank-number {
    font-size: 0.9rem;
}

body.charts-view-active .pagination-controls {
    width: min(100%, 1480px);
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1180px) {
    body.charts-view-active .content-controls.charts-controls-active {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.charts-view-active .content-controls.charts-controls-active #chartsFilterRoot {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .charts-dashboard-header {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
        padding: 30px;
    }

    .charts-dashboard-heading h1 {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .charts-dashboard-podium {
        transform: scale(0.88);
        transform-origin: right center;
    }
}

@media (max-width: 640px) {
    .charts-dashboard-header {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-bottom: 14px;
        padding: 27px 20px 20px;
        border-radius: 23px;
    }

    .charts-dashboard-heading h1 {
        font-size: clamp(2.3rem, 11vw, 3.4rem);
    }

    .charts-dashboard-podium {
        height: 125px;
        transform: scale(0.72);
        transform-origin: center bottom;
        margin: -28px -50px 0;
    }

    body.charts-view-active .content-controls.charts-controls-active {
        margin-bottom: 18px;
        padding: 8px;
        border-radius: 18px;
    }

    body.charts-view-active .content-controls.charts-controls-active #chartsFilterRoot {
        flex-wrap: wrap;
        gap: 7px;
    }

    body.charts-view-active .content-controls.charts-controls-active .charts-filter {
        width: 100%;
    }

    body.charts-view-active .content-controls.charts-controls-active .search-bar {
        min-height: 44px;
    }

    body.charts-view-active .song-table {
        border-spacing: 0 4px;
    }

    body.charts-view-active .song-table th:first-child,
    body.charts-view-active .song-row td:first-child {
        width: 58px;
    }

    body.charts-view-active .song-row td {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    body.charts-view-active .song-row td:first-child {
        border-radius: 14px 0 0 14px;
        padding-right: 4px;
        padding-left: 5px;
    }

    body.charts-view-active .song-row td:last-child {
        border-radius: 0 14px 14px 0;
    }

    body.charts-view-active .chart-rank-badge {
        min-width: 41px;
        height: 32px;
        gap: 2px;
        padding: 0 5px;
        border-radius: 11px;
    }

    body.charts-view-active .chart-rank-icon {
        font-size: 15px;
    }

    body.charts-view-active .chart-rank-number {
        font-size: 0.78rem;
    }

    body.charts-view-active .song-title-cell > img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    body.charts-view-active .song-title-cell {
        gap: 9px;
    }

    body.charts-view-active .song-name {
        font-size: 0.92rem;
    }
}

[data-theme="light"] body.charts-view-active .content-controls.charts-controls-active,
[data-theme="light"] body.charts-view-active .song-row td {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.7);
}

[data-theme="light"] body.charts-view-active .content-controls.charts-controls-active .charts-filter,
[data-theme="light"] body.charts-view-active .content-controls.charts-controls-active .search-bar {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.58);
}

/* 2026 standard song list ---------------------------------------------- */
.song-table.standard-song-table {
    width: min(100%, 1480px);
    margin-right: auto;
    margin-left: auto;
    border-spacing: 0 5px;
}

.song-table.standard-song-table th {
    padding-top: 5px;
    padding-bottom: 8px;
    border-bottom: 0;
    color: color-mix(in srgb, var(--color-text-soft) 82%, transparent);
    font-size: 0.71rem;
    letter-spacing: 0.09em;
}

.song-table.standard-song-table .song-row {
    filter: drop-shadow(0 9px 18px rgba(0,0,0,0.07));
    transition: transform 180ms cubic-bezier(0.2,0.8,0.2,1), filter 180ms ease;
}

.song-table.standard-song-table .song-row td {
    padding-top: 6px;
    padding-bottom: 6px;
    border-top: 1px solid rgba(255,255,255,0.09);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.042);
}

.song-table.standard-song-table .song-row td:first-child {
    width: 64px;
    border-left: 1px solid rgba(255,255,255,0.09);
    border-radius: 17px 0 0 17px;
}

.song-table.standard-song-table .song-row td:last-child {
    border-right: 1px solid rgba(255,255,255,0.09);
    border-radius: 0 17px 17px 0;
}

@media (hover: hover) and (pointer: fine) {
.song-table.standard-song-table .song-row:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 14px 25px rgba(0,0,0,0.14));
}
}

@media (hover: hover) and (pointer: fine) {
.song-table.standard-song-table .song-row:hover td {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.072);
}
}

.song-table.standard-song-table .song-row.playing td {
    border-color: color-mix(in srgb, var(--color-accent-light) 30%, transparent);
    background: color-mix(in srgb, var(--color-accent) 12%, rgba(255,255,255,0.04));
}

.song-table.standard-song-table .song-index-badge {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 32px;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 11px;
    color: var(--color-text-soft);
    background: rgba(255,255,255,0.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    font: 800 0.78rem/1 'Kanit', var(--font-family);
}

.song-table.standard-song-table .song-row.playing .song-index-badge {
    border-color: color-mix(in srgb, var(--color-accent-light) 32%, transparent);
    color: var(--color-accent-light);
    background: var(--color-accent-faint);
}

@media (hover: hover) and (pointer: fine) {
.song-table.standard-song-table .song-row:hover .song-index-badge {
    border-color: color-mix(in srgb, var(--color-accent-light) 32%, transparent);
    color: var(--color-accent-light);
    background: var(--color-accent-faint);
}
}

.song-table.standard-song-table .song-title-cell {
    gap: 11px;
}

.song-table.standard-song-table .song-title-cell > img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 11px;
    box-shadow: 0 7px 16px rgba(0,0,0,0.18);
}

.song-table.standard-song-table .song-name {
    font-family: 'Kanit', var(--font-family);
    font-size: 0.98rem;
    font-weight: 400;
}

.song-table.standard-song-table .song-artist-cell {
    gap: 7px;
}

.song-table.standard-song-table .artist-button {
    font-size: 0.84rem;
}

.song-table.standard-song-table .song-mood-cell {
    text-align: center;
}

.song-table.standard-song-table .song-mood-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    max-width: 100%;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: var(--color-text-soft);
    background: rgba(255,255,255,0.04);
    font: 800 0.72rem/1 var(--font-family);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-table.standard-song-table .song-actions-cell .favorite-button {
    border-radius: 50%;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.035);
}

.song-table.standard-song-table .song-actions-cell .favorite-button.active {
    border-color: color-mix(in srgb, var(--color-accent-light) 32%, transparent);
    background: var(--color-accent-faint);
}

@media (hover: hover) and (pointer: fine) {
.song-table.standard-song-table .song-actions-cell .favorite-button:hover {
    border-color: color-mix(in srgb, var(--color-accent-light) 32%, transparent);
    background: var(--color-accent-faint);
}
}

@media (hover: hover) and (pointer: fine) {
.song-table.standard-song-table.playlist-song-sort-mode .song-row:hover {
    transform: none;
}
}

@media (max-width: 640px) {
    .song-table.standard-song-table {
        border-spacing: 0 4px;
    }

    .song-table.standard-song-table .song-row td {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .song-table.standard-song-table .song-row td:first-child {
        width: 58px;
        padding-right: 4px;
        padding-left: 5px;
        border-radius: 14px 0 0 14px;
    }

    .song-table.standard-song-table .song-row td:last-child {
        border-radius: 0 14px 14px 0;
    }

    .song-table.standard-song-table .song-index-badge {
        min-width: 41px;
        height: 32px;
        padding: 0 5px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    .song-table.standard-song-table .song-title-cell > img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .song-table.standard-song-table .song-title-cell {
        gap: 9px;
    }

    .song-table.standard-song-table .song-name {
        font-size: 0.91rem;
    }
}

[data-theme="light"] .song-table.standard-song-table .song-row td {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.7);
}

[data-theme="light"] .song-table.standard-song-table .song-index-badge,
[data-theme="light"] .song-table.standard-song-table .song-mood-pill,
[data-theme="light"] .song-table.standard-song-table .song-actions-cell .favorite-button {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.5);
}

/* 2026 standard song list header --------------------------------------- */
body.standard-song-list-active .main-content {
    background:
        radial-gradient(circle at 48% -10%, var(--color-accent-soft), transparent 36%),
        transparent;
}

body.standard-song-list-active .favorites-view-toggle,
body.standard-song-list-active .home-mood-title {
    width: min(100%, 1480px);
    min-height: 0;
    margin: 0 auto 14px;
    justify-content: center;
}

body.standard-song-list-active .home-mood-tabs {
    padding: 5px;
    border-color: rgba(255,255,255,0.13);
    background: linear-gradient(90deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04));
    box-shadow: 0 12px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
}

body.standard-song-list-active .favorites-view-toggle .artist-discovery-switch-btn,
body.standard-song-list-active .home-mood-tab {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
}

body.standard-song-list-active #playlistHeader {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 270px;
    box-sizing: border-box;
    margin: 0 auto 16px;
    padding: clamp(25px, 3vw, 42px) clamp(27px, 4vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: clamp(24px, 2.6vw, 36px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(20,12,27,0.98), rgba(74,17,92,0.88) 58%, rgba(22,13,31,0.96)),
        var(--color-bg-glass);
    box-shadow: 0 26px 70px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

body.standard-song-list-active #playlistHeader::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 45%, rgba(202,65,255,0.22), transparent 31%),
        linear-gradient(108deg, rgba(0,0,0,0.14), transparent 54%, rgba(160,32,240,0.12));
}

body.standard-song-list-active #playlistHeader::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 310px;
    height: 310px;
    right: -125px;
    bottom: -185px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,0.018), 0 0 0 72px rgba(255,255,255,0.012);
    pointer-events: none;
}

body.standard-song-list-active #playlistHeader .hero-inner {
    min-height: 100%;
    align-items: center;
    gap: clamp(24px, 3.5vw, 48px);
}

body.standard-song-list-active #playlistHeader .playlist-cover {
    position: relative;
    width: clamp(155px, 15vw, 190px);
    height: clamp(155px, 15vw, 190px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 25px;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,0.16), transparent 34%),
        linear-gradient(145deg, rgba(183,55,244,0.55), rgba(34,16,47,0.85));
    box-shadow: 0 28px 55px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotate(-1.2deg);
}

body.standard-song-list-active #playlistHeader .playlist-cover img {
    border-radius: inherit;
}

body.standard-song-list-active #playlistHeader .hero-info {
    gap: 9px;
}

body.standard-song-list-active #playlistHeader .playlist-title {
    max-width: 900px;
    color: #fff;
    font-size: clamp(2.55rem, 4.4vw, 4.7rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

body.standard-song-list-active #playlistHeader .playlist-desc {
    max-width: 720px;
    color: rgba(255,255,255,0.7);
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    font-weight: 650;
    line-height: 1.5;
    opacity: 1;
}

body.standard-song-list-active #playlistHeader .playlist-desc-meta-item,
body.standard-song-list-active #playlistHeader .playlist-desc-owner {
    color: rgba(255,255,255,0.88);
}

body.standard-song-list-active #playlistHeader .hero-actions {
    gap: 9px;
    margin-top: 12px;
}

body.standard-song-list-active #playlistHeader .play-all-btn,
body.standard-song-list-active #playlistHeader .shuffle-all-btn {
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid rgba(255,255,255,0.17);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

body.standard-song-list-active #playlistHeader .play-all-btn {
    background: linear-gradient(135deg, #b128ff, #7b15e8);
    box-shadow: 0 14px 30px rgba(142,32,189,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
}

body.standard-song-list-active #playlistHeader .shuffle-all-btn {
    background: rgba(255,255,255,0.07);
}

body.standard-song-list-active #contentControls:not(.artist-discovery-controls-active):not(.album-discovery-controls-active):not(.charts-controls-active):not(.my-songs-controls-active) {
    width: min(100%, 1480px);
    margin: 0 auto 20px;
    padding: 10px;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.standard-song-list-active #contentControls .search-bar {
    min-height: 48px;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.standard-song-list-active #contentControls .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.standard-song-list-active #contentControls .mood-filter-toggle,
body.standard-song-list-active #contentControls .mood-filter .app-native-dropdown-toggle {
    min-height: 46px;
    border-color: rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.055);
}

@media (max-width: 900px) {
    body.standard-song-list-active .favorites-view-toggle,
    body.standard-song-list-active .home-mood-title {
        margin-bottom: 11px;
    }

    body.standard-song-list-active #playlistHeader {
        min-height: 0;
        padding: 25px 20px;
        border-radius: 24px;
    }

    body.standard-song-list-active #playlistHeader .hero-inner {
        gap: 20px;
    }

    body.standard-song-list-active #playlistHeader .playlist-cover {
        width: 126px;
        height: 126px;
        border-radius: 21px;
        transform: none;
    }

    body.standard-song-list-active #playlistHeader .playlist-title {
        font-size: clamp(2.25rem, 9vw, 3.4rem);
    }

    body.standard-song-list-active #playlistHeader .playlist-desc {
        max-width: 600px;
        font-size: 0.86rem;
    }

    body.standard-song-list-active #contentControls:not(.artist-discovery-controls-active):not(.album-discovery-controls-active):not(.charts-controls-active):not(.my-songs-controls-active) {
        margin-bottom: 16px;
        padding: 8px;
        border-radius: 18px;
    }

    body.standard-song-list-active #contentControls .search-bar {
        min-height: 44px;
    }
}

@media (max-width: 520px) {
    body.standard-song-list-active #playlistHeader {
        padding: 22px 17px;
    }

    body.standard-song-list-active #playlistHeader .playlist-cover {
        width: 112px;
        height: 112px;
        border-radius: 19px;
    }

    body.standard-song-list-active #playlistHeader .playlist-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    body.standard-song-list-active #playlistHeader .hero-actions {
        width: 100%;
    }

    body.standard-song-list-active #playlistHeader .hero-actions .play-all-btn,
    body.standard-song-list-active #playlistHeader .hero-actions .shuffle-all-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

[data-theme="light"] body.standard-song-list-active .home-mood-tabs,
[data-theme="light"] body.standard-song-list-active #contentControls:not(.artist-discovery-controls-active):not(.album-discovery-controls-active):not(.charts-controls-active):not(.my-songs-controls-active) {
    border-color: rgba(54,35,72,0.11);
    background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.5));
    box-shadow: 0 16px 38px rgba(44,32,69,0.09);
}

[data-theme="light"] body.standard-song-list-active #contentControls .search-bar,
[data-theme="light"] body.standard-song-list-active #contentControls .mood-filter-toggle,
[data-theme="light"] body.standard-song-list-active #contentControls .mood-filter .app-native-dropdown-toggle {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.58);
}

/* 2026 album discovery -------------------------------------------------- */
body.albums-view-active .main-content {
    background:
        radial-gradient(circle at 62% -8%, rgba(177,40,255,0.2), transparent 34%),
        radial-gradient(circle at 8% 28%, rgba(101,38,184,0.12), transparent 28%),
        transparent;
}

.albums-dashboard-header {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 300px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    align-items: center;
    gap: 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(20,12,28,0.98), rgba(74,17,91,0.9) 57%, rgba(22,13,31,0.98)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
}

.albums-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 38%, rgba(205,69,255,0.3), transparent 31%),
        radial-gradient(circle at 44% 118%, rgba(140,31,238,0.24), transparent 39%),
        linear-gradient(108deg, rgba(0,0,0,0.13), transparent 54%, rgba(160,32,240,0.12));
}

.albums-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 370px;
    height: 370px;
    right: -150px;
    bottom: -235px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,0.018), 0 0 0 79px rgba(255,255,255,0.012);
    pointer-events: none;
}

.albums-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.albums-dashboard-heading h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.albums-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 430px);
    height: 220px;
    perspective: 950px;
}

.albums-art-record {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 7px;
    width: 202px;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.19);
    border-radius: 50%;
    background:
        radial-gradient(circle, #d759ff 0 5%, #f2b8ff 5.5% 8%, #211427 8.5% 18%, transparent 18.5%),
        repeating-radial-gradient(circle, #18101d 0 4px, #2a1931 5px, #110c15 7px);
    box-shadow: 0 26px 54px rgba(0,0,0,0.42), inset 0 0 0 1px rgba(255,255,255,0.06);
    transform: rotateY(-8deg) rotate(12deg);
}

.albums-art-record i {
    position: absolute;
    inset: 36%;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
}

.albums-art-sleeve {
    position: absolute;
    display: grid;
    place-items: center;
    width: 176px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    box-shadow: 0 28px 55px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12);
}

.albums-art-sleeve b {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.92);
    font-size: 54px;
    font-weight: 300;
    filter: drop-shadow(0 9px 18px rgba(0,0,0,0.3));
}

.albums-art-sleeve-back {
    z-index: 2;
    top: 5px;
    left: 35px;
    background:
        radial-gradient(circle at 26% 20%, rgba(255,255,255,0.2), transparent 29%),
        linear-gradient(145deg, #7136b4, #24152e 66%, #111018);
    transform: rotate(-9deg) translateZ(-20px);
}

.albums-art-sleeve-front {
    z-index: 3;
    left: 105px;
    bottom: 0;
    background:
        radial-gradient(circle at 24% 20%, rgba(255,255,255,0.22), transparent 28%),
        radial-gradient(circle at 78% 82%, rgba(232,69,255,0.55), transparent 36%),
        linear-gradient(145deg, #c035ef, #4d167b 56%, #1d1027);
    transform: rotate(4deg);
}

.albums-art-sleeve-front::after {
    content: '';
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    right: -43%;
    bottom: -43%;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,0.035), 0 0 0 38px rgba(255,255,255,0.022);
}

body.albums-view-active .content-controls.album-discovery-controls-active {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center !important;
    gap: 14px !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
}

body.albums-view-active .content-controls.album-discovery-controls-active .album-discovery-toolbar {
    grid-column: 1;
    order: initial;
    align-self: center;
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
}

body.albums-view-active .content-controls.album-discovery-controls-active .album-discovery-sort {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 4px;
    justify-content: flex-start;
    border-color: rgba(255,255,255,0.11);
    background: rgba(0,0,0,0.12);
}

body.albums-view-active .album-discovery-sort .artist-discovery-switch-btn {
    min-height: 38px;
    padding-inline: 16px;
    white-space: nowrap;
}

body.albums-view-active .content-controls.album-discovery-controls-active .search-bar {
    grid-column: 2;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    order: initial !important;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.albums-view-active .content-controls.album-discovery-controls-active .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.albums-view-active #songGrid[data-content-mode="albums"] {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(15px, 1.7vw, 24px);
}

body.albums-view-active .artist-card.album-card {
    gap: 15px;
    padding: 11px 11px 15px;
    overflow: visible;
    border-color: rgba(255,255,255,0.12);
    border-radius: 24px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025) 70%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 16px 38px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}

@media (hover: hover) and (pointer: fine) {
body.albums-view-active .artist-card.album-card:hover {
    transform: translateY(-7px) rotate(-0.25deg);
    border-color: color-mix(in srgb, var(--color-accent-light) 45%, transparent);
    background:
        linear-gradient(150deg, var(--color-accent-faint), rgba(255,255,255,0.04) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 25px 52px rgba(0,0,0,0.27), 0 0 0 1px rgba(255,255,255,0.025);
}
}

body.albums-view-active .album-card-media {
    aspect-ratio: 1.08 / 1;
    overflow: visible;
    border-radius: 17px;
    background: transparent;
    box-shadow: none;
}

body.albums-view-active .album-card-media::after {
    inset: 0 28px 0 0;
    border-radius: 16px;
}

.album-card-vinyl {
    position: absolute;
    z-index: 1;
    top: 8%;
    right: 0;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--playlist-card-accent) 0 5%, rgba(255,255,255,0.8) 5.5% 7%, #211725 7.5% 17%, transparent 17.5%),
        repeating-radial-gradient(circle, #18101d 0 3px, #2a1b2f 4px, #100b13 6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(255,255,255,0.04);
    transform: rotate(10deg);
    transition: right 0.38s cubic-bezier(0.2,0.8,0.2,1), transform 0.38s cubic-bezier(0.2,0.8,0.2,1);
}

.album-card-vinyl i {
    position: absolute;
    inset: 34%;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) {
body.albums-view-active .album-card:hover .album-card-vinyl {
    right: -7px;
    transform: rotate(30deg);
}
}

body.albums-view-active .album-card-media > .artist-card-image,
body.albums-view-active .album-card-media > .artist-card-placeholder {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: calc(100% - 28px);
    height: 100%;
    box-sizing: border-box;
    aspect-ratio: auto;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    box-shadow: 0 17px 34px rgba(0,0,0,0.32);
}

body.albums-view-active .album-card-favorite {
    top: 10px;
    right: 38px;
    width: 38px;
    height: 38px;
}

body.albums-view-active .album-card-arrow {
    right: 38px;
    bottom: 10px;
    width: 38px;
    height: 38px;
}

body.albums-view-active .album-card .artist-card-info {
    padding: 0 5px 2px;
    gap: 6px;
}

body.albums-view-active .album-card .artist-card-title {
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    letter-spacing: -0.015em;
}

body.albums-view-active .album-card-meta-line {
    color: color-mix(in srgb, var(--color-text-soft) 91%, transparent);
    font-size: 0.8rem;
}

body.albums-view-active .album-card .artist-card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--color-text-soft);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .albums-dashboard-header {
        min-height: 250px;
        grid-template-columns: minmax(0, 1fr) 290px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .albums-dashboard-heading h1 {
        font-size: clamp(2.7rem, 7vw, 4rem);
    }

    .albums-dashboard-art {
        width: 280px;
        height: 185px;
        transform: scale(0.86);
        transform-origin: center right;
    }

    body.albums-view-active .content-controls.album-discovery-controls-active {
        grid-template-columns: 1fr;
        margin-bottom: 18px;
        padding: 8px;
        gap: 9px !important;
        border-radius: 19px;
    }

    body.albums-view-active .content-controls.album-discovery-controls-active .album-discovery-toolbar {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }

    body.albums-view-active .content-controls.album-discovery-controls-active .album-discovery-sort {
        width: 100%;
        box-sizing: border-box;
    }

    body.albums-view-active .content-controls.album-discovery-controls-active .search-bar {
        grid-column: 1;
    }

    body.albums-view-active .album-discovery-sort .artist-discovery-switch-btn {
        flex: 1 1 0;
        min-width: max-content;
    }
}

@media (max-width: 640px) {
    .albums-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 8px;
        margin-bottom: 12px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .albums-dashboard-heading h1 {
        font-size: clamp(2.15rem, 10.5vw, 3.1rem);
        line-height: 0.94;
    }

    .albums-dashboard-art {
        width: 235px;
        height: 170px;
        transform: scale(0.63);
        transform-origin: center right;
    }

    body.albums-view-active .content-controls.album-discovery-controls-active {
        margin-bottom: 14px;
    }

    body.albums-view-active .album-discovery-sort {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.albums-view-active .album-discovery-sort::-webkit-scrollbar {
        display: none;
    }

    body.albums-view-active .album-discovery-sort .artist-discovery-switch-btn {
        flex: 0 0 auto;
        min-height: 36px;
        padding-inline: 13px;
    }

    body.albums-view-active .content-controls.album-discovery-controls-active .search-bar {
        min-height: 44px;
    }

    body.albums-view-active #songGrid[data-content-mode="albums"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    body.albums-view-active .artist-card.album-card {
        gap: 10px;
        padding: 7px 7px 11px;
        border-radius: 18px;
    }

    body.albums-view-active .album-card-media {
        border-radius: 13px;
    }

    body.albums-view-active .album-card-media::after,
    body.albums-view-active .album-card-media > .artist-card-image,
    body.albums-view-active .album-card-media > .artist-card-placeholder {
        right: 20px;
        width: calc(100% - 20px);
        border-radius: 12px;
    }

    body.albums-view-active .album-card-favorite,
    body.albums-view-active .album-card-arrow {
        right: 27px;
        width: 34px;
        height: 34px;
    }

    body.albums-view-active .album-card-favorite .material-symbols-outlined {
        font-size: 18px;
    }

    body.albums-view-active .album-card .artist-card-info {
        padding-inline: 3px;
        gap: 4px;
    }

    body.albums-view-active .album-card .artist-card-title {
        font-size: 0.92rem;
    }

    body.albums-view-active .album-card-meta-line {
        gap: 4px;
        font-size: 0.7rem;
    }

    body.albums-view-active .album-card .artist-card-desc {
        display: none;
    }
}

[data-theme="light"] body.albums-view-active .content-controls.album-discovery-controls-active,
[data-theme="light"] body.albums-view-active .artist-card.album-card {
    border-color: rgba(54,35,72,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
    box-shadow: 0 16px 38px rgba(44,32,69,0.1);
}

[data-theme="light"] body.albums-view-active .album-discovery-sort,
[data-theme="light"] body.albums-view-active .content-controls.album-discovery-controls-active .search-bar {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.62);
}

/* 2026 channel discovery ------------------------------------------------ */
body.channels-view-active .main-content {
    background:
        radial-gradient(circle at 68% -9%, rgba(87,112,255,0.17), transparent 34%),
        radial-gradient(circle at 15% 18%, rgba(202,56,255,0.15), transparent 31%),
        transparent;
}

.channels-dashboard-header {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 300px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(330px, 480px);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(18,12,28,0.98), rgba(63,20,91,0.92) 54%, rgba(17,19,43,0.98)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
}

.channels-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 44%, rgba(91,126,255,0.25), transparent 30%),
        radial-gradient(circle at 53% 115%, rgba(204,53,255,0.25), transparent 39%),
        linear-gradient(105deg, rgba(0,0,0,0.14), transparent 56%, rgba(82,64,210,0.12));
}

.channels-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -128px;
    bottom: -218px;
    width: 365px;
    height: 365px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 39px rgba(255,255,255,0.018), 0 0 0 80px rgba(255,255,255,0.012);
    pointer-events: none;
}

.channels-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.channels-dashboard-heading h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.channels-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 440px);
    height: 220px;
}

.channels-art-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.channels-art-orbit-outer {
    width: 390px;
    height: 185px;
    box-shadow: 0 0 50px rgba(125,72,255,0.1);
}

.channels-art-orbit-inner {
    width: 270px;
    height: 125px;
    border-color: rgba(224,164,255,0.2);
    transform: translate(-50%, -50%) rotate(12deg);
}

.channels-art-avatar {
    position: absolute;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 24px 48px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.channels-art-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.16), transparent 38%);
    pointer-events: none;
}

.channels-art-avatar i {
    position: relative;
    z-index: 2;
    font-size: 42px;
    font-style: normal;
    font-weight: 300;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.channels-art-avatar-left {
    left: 23px;
    bottom: 20px;
    width: 105px;
    height: 105px;
    background: linear-gradient(145deg, #9d35e8, #321541);
}

.channels-art-avatar-center {
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 148px;
    height: 148px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,0.22), transparent 29%),
        linear-gradient(145deg, #c23aff, #6330db 58%, #24143f);
    transform: translate(-50%, -50%);
}

.channels-art-avatar-center i {
    font-size: 62px;
}

.channels-art-avatar-right {
    right: 18px;
    top: 17px;
    width: 112px;
    height: 112px;
    background: linear-gradient(145deg, #596ee5, #242042);
}

body.channels-view-active .content-controls.artist-discovery-controls-active {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center !important;
    gap: 14px !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
}

body.channels-view-active .content-controls.artist-discovery-controls-active .artist-discovery-switcher {
    grid-column: 1;
    order: initial;
    align-self: center;
    justify-self: start;
    width: auto;
    min-width: 0;
    min-height: 46px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 4px;
    border-color: rgba(255,255,255,0.11);
    background: rgba(0,0,0,0.12);
}

body.channels-view-active .artist-discovery-switcher .artist-discovery-switch-btn {
    min-height: 36px;
    padding-inline: 16px;
    white-space: nowrap;
}

body.channels-view-active .content-controls.artist-discovery-controls-active .search-bar {
    grid-column: 2;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    order: initial !important;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.channels-view-active .content-controls.artist-discovery-controls-active .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.channels-view-active #songGrid[data-content-mode="discover"] {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(15px, 1.7vw, 24px);
}

body.channels-view-active .artist-card.channel-card {
    gap: 14px;
    padding: 11px 11px 16px;
    overflow: hidden;
    border-color: rgba(255,255,255,0.12);
    border-radius: 25px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 16px 38px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}

@media (hover: hover) and (pointer: fine) {
body.channels-view-active .artist-card.channel-card:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--playlist-card-accent) 48%, transparent);
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--playlist-card-accent) 12%, transparent), rgba(255,255,255,0.04) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 25px 52px rgba(0,0,0,0.27), 0 0 0 1px rgba(255,255,255,0.025);
}
}

body.channels-view-active .channel-card-media {
    aspect-ratio: 1.34 / 1;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 39%, color-mix(in srgb, var(--playlist-card-accent) 33%, transparent), transparent 35%),
        radial-gradient(circle at 88% 88%, hsl(calc(var(--playlist-card-hue) + 52) 68% 43% / 0.36), transparent 38%),
        linear-gradient(145deg, hsl(var(--playlist-card-hue) 35% 20%), hsl(calc(var(--playlist-card-hue) + 25) 38% 9%));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 32px rgba(0,0,0,0.23);
}

body.channels-view-active .channel-card-media::before {
    content: '';
    position: absolute;
    z-index: 1;
    right: 7%;
    bottom: 17%;
    left: 7%;
    height: 25%;
    opacity: 0.28;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.74) 0 2px, transparent 2px 9px);
    clip-path: polygon(0 48%, 5% 30%, 10% 62%, 15% 14%, 20% 78%, 25% 38%, 30% 58%, 35% 7%, 40% 82%, 45% 31%, 50% 68%, 55% 18%, 60% 76%, 65% 39%, 70% 60%, 75% 11%, 80% 74%, 85% 35%, 90% 63%, 95% 24%, 100% 49%, 100% 52%, 95% 28%, 90% 67%, 85% 39%, 80% 78%, 75% 15%, 70% 64%, 65% 43%, 60% 80%, 55% 22%, 50% 72%, 45% 35%, 40% 86%, 35% 11%, 30% 62%, 25% 42%, 20% 82%, 15% 18%, 10% 66%, 5% 34%, 0 52%);
}

body.channels-view-active .channel-card-media::after {
    z-index: 3;
    background: linear-gradient(to top, rgba(7,5,12,0.45), transparent 54%);
    opacity: 1;
}

body.channels-view-active .channel-card-media > .artist-card-image,
body.channels-view-active .channel-card-media > .artist-card-placeholder {
    position: absolute;
    z-index: 2;
    top: 10%;
    left: 50%;
    right: auto;
    bottom: auto;
    inset-inline-end: auto;
    width: 62%;
    height: auto;
    aspect-ratio: 1;
    box-sizing: border-box;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.76);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(0,0,0,0.37), 0 0 0 6px rgba(255,255,255,0.08);
    transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
body.channels-view-active .artist-card.channel-card:hover .artist-card-image {
    filter: saturate(1.08) contrast(1.03);
    transform: translateX(-50%) scale(1.055);
}
}

body.channels-view-active .channel-card-placeholder::before {
    right: -24%;
    bottom: -28%;
}

body.channels-view-active .channel-card-placeholder-icon {
    font-size: clamp(2.6rem, 4vw, 3.7rem);
}

body.channels-view-active .channel-card-arrow {
    right: 11px;
    bottom: 11px;
    width: 38px;
    height: 38px;
    background: color-mix(in srgb, var(--playlist-card-accent) 73%, #15111a);
}

body.channels-view-active .channel-card .artist-card-info {
    align-items: center;
    padding: 0 6px 2px;
    gap: 6px;
    text-align: center;
}

body.channels-view-active .channel-card .artist-card-title-row,
body.channels-view-active .channel-card-meta-line {
    width: 100%;
    justify-content: center;
}

body.channels-view-active .channel-card .artist-card-title {
    flex: 0 1 auto;
    font-size: clamp(1rem, 1.3vw, 1.17rem);
    letter-spacing: -0.015em;
}

body.channels-view-active .channel-card-meta-line {
    color: color-mix(in srgb, var(--color-text-soft) 91%, transparent);
    font-size: 0.8rem;
}

body.channels-view-active .channel-card .artist-card-desc {
    display: -webkit-box;
    overflow: hidden;
    width: 100%;
    margin-top: 1px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--color-text-soft);
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 900px) {
    .channels-dashboard-header {
        min-height: 250px;
        grid-template-columns: minmax(0, 1fr) 290px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .channels-dashboard-heading h1 {
        font-size: clamp(2.7rem, 7vw, 4rem);
    }

    .channels-dashboard-art {
        width: 300px;
        transform: scale(0.82);
        transform-origin: center right;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active {
        grid-template-columns: 1fr;
        margin-bottom: 18px;
        padding: 8px;
        gap: 9px !important;
        border-radius: 19px;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active .artist-discovery-switcher,
    body.channels-view-active .content-controls.artist-discovery-controls-active .search-bar {
        grid-column: 1;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active .artist-discovery-switcher {
        justify-self: stretch;
        width: 100%;
    }

    body.channels-view-active .artist-discovery-switcher .artist-discovery-switch-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 640px) {
    .channels-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 8px;
        margin-bottom: 12px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .channels-dashboard-heading h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 0.94;
    }

    .channels-dashboard-art {
        width: 285px;
        transform: scale(0.56);
        transform-origin: center right;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active {
        margin-bottom: 14px;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active .artist-discovery-switcher {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active .artist-discovery-switcher::-webkit-scrollbar {
        display: none;
    }

    body.channels-view-active .artist-discovery-switcher .artist-discovery-switch-btn {
        flex: 0 0 auto;
        min-height: 36px;
        padding-inline: 13px;
    }

    body.channels-view-active .content-controls.artist-discovery-controls-active .search-bar {
        min-height: 44px;
    }

    body.channels-view-active #songGrid[data-content-mode="discover"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    body.channels-view-active .artist-card.channel-card {
        gap: 9px;
        padding: 7px 7px 11px;
        border-radius: 18px;
    }

    body.channels-view-active .channel-card-media {
        aspect-ratio: 1.12 / 1;
        border-radius: 13px;
    }

    body.channels-view-active .channel-card-media > .artist-card-image,
    body.channels-view-active .channel-card-media > .artist-card-placeholder {
        top: 9%;
        width: 68%;
        border-width: 2px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.07);
    }

    body.channels-view-active .channel-card-arrow {
        right: 8px;
        bottom: 8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    body.channels-view-active .channel-card .artist-card-info {
        padding-inline: 3px;
        gap: 4px;
    }

    body.channels-view-active .channel-card .artist-card-title {
        font-size: 0.92rem;
    }

    body.channels-view-active .channel-card-meta-line {
        gap: 4px;
        font-size: 0.68rem;
    }

    body.channels-view-active .channel-card .artist-card-desc {
        display: none;
    }

    body.channels-view-active .channel-card .artist-card-handle {
        max-width: 58%;
    }
}

[data-theme="light"] body.channels-view-active .content-controls.artist-discovery-controls-active,
[data-theme="light"] body.channels-view-active .artist-card.channel-card {
    border-color: rgba(54,35,72,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
    box-shadow: 0 16px 38px rgba(44,32,69,0.1);
}

[data-theme="light"] body.channels-view-active .artist-discovery-switcher,
[data-theme="light"] body.channels-view-active .content-controls.artist-discovery-controls-active .search-bar {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.62);
}

/* 2026 music video discovery ------------------------------------------- */
body.music-videos-view-active .main-content {
    background:
        radial-gradient(circle at 70% -10%, rgba(255,74,148,0.16), transparent 34%),
        radial-gradient(circle at 12% 24%, rgba(120,49,225,0.14), transparent 31%),
        transparent;
}

.music-videos-dashboard-header {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 300px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(350px, 500px);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(19,11,25,0.99), rgba(72,16,79,0.93) 54%, rgba(30,12,28,0.99)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.27), inset 0 1px 0 rgba(255,255,255,0.1);
}

.music-videos-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 43%, rgba(255,79,167,0.27), transparent 30%),
        radial-gradient(circle at 51% 116%, rgba(137,43,236,0.24), transparent 40%),
        linear-gradient(105deg, rgba(0,0,0,0.15), transparent 57%, rgba(214,47,132,0.1));
}

.music-videos-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: -225px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 39px rgba(255,255,255,0.018), 0 0 0 80px rgba(255,255,255,0.012);
    pointer-events: none;
}

.music-videos-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.music-videos-dashboard-heading h1 {
    max-width: 830px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.music-videos-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 470px);
    height: 225px;
    perspective: 1000px;
}

.music-videos-art-frame {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 25px;
    box-shadow: 0 27px 55px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.12);
}

.music-videos-art-frame-back {
    top: 9px;
    right: 4px;
    width: 275px;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 76% 22%, rgba(255,255,255,0.16), transparent 24%),
        linear-gradient(145deg, #74327d, #281329 68%, #100d14);
    transform: rotate(7deg) translateZ(-25px);
}

.music-videos-art-frame-back i {
    position: absolute;
    inset: 18% 12%;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}

.music-videos-art-frame-front {
    z-index: 2;
    left: 12px;
    bottom: 0;
    width: 315px;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,0.2), transparent 28%),
        radial-gradient(circle at 78% 78%, rgba(245,64,160,0.55), transparent 39%),
        linear-gradient(145deg, #a32ccb, #47145e 58%, #1b1023);
    transform: rotate(-3deg);
}

.music-videos-art-frame-front::before,
.music-videos-art-frame-front::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 7px;
    opacity: 0.42;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.8) 0 6px, transparent 6px 14px);
}

.music-videos-art-frame-front::before { left: 9px; }
.music-videos-art-frame-front::after { right: 9px; }

.music-videos-art-frame-front > i {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    background: rgba(13,8,18,0.38);
    font-size: 48px;
    font-style: normal;
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
    backdrop-filter: blur(12px);
}

.music-videos-art-frame-front > b {
    position: absolute;
    right: 26px;
    bottom: 17px;
    left: 26px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.music-videos-art-frame-front > b small {
    display: block;
    width: 61%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,0.86);
}

.music-videos-art-spark {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 5px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #ed3f9e, #7922c3);
    box-shadow: 0 18px 32px rgba(0,0,0,0.32);
    transform: rotate(8deg);
}

body.music-videos-view-active .content-controls.music-videos-controls-active {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
}

body.music-videos-view-active .content-controls.music-videos-controls-active .search-bar {
    grid-column: 1;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    order: initial !important;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.music-videos-view-active .content-controls.music-videos-controls-active .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.music-videos-view-active #songGrid[data-content-mode="music-videos"] {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: clamp(16px, 1.8vw, 25px);
}

body.music-videos-view-active .music-video-card {
    position: relative;
    isolation: isolate;
    gap: 0;
    padding: 9px;
    overflow: hidden;
    border-color: rgba(255,255,255,0.12);
    border-radius: 25px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 16px 38px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.26s cubic-bezier(0.2,0.8,0.2,1), border-color 0.22s ease, box-shadow 0.26s ease, background 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
body.music-videos-view-active .music-video-card:hover {
    transform: translateY(-7px);
    border-color: hsl(var(--video-card-hue) 78% 67% / 0.42);
    background:
        linear-gradient(150deg, hsl(var(--video-card-hue) 80% 62% / 0.11), rgba(255,255,255,0.04) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 26px 54px rgba(0,0,0,0.28), 0 0 38px hsl(var(--video-card-hue) 80% 58% / 0.08);
}
}

body.music-videos-view-active .music-video-thumb-wrap {
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 18px;
    background: #100c14;
    box-shadow: 0 16px 32px rgba(0,0,0,0.28);
}

body.music-videos-view-active .music-video-thumb-wrap::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(7,4,10,0.52), transparent 52%),
        linear-gradient(115deg, rgba(255,255,255,0.08), transparent 35%);
}

body.music-videos-view-active .music-video-thumb-wrap img {
    transform: scale(1.002);
    transition: transform 0.48s cubic-bezier(0.2,0.8,0.2,1), filter 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
body.music-videos-view-active .music-video-card:hover .music-video-thumb-wrap img {
    transform: scale(1.055);
    filter: saturate(1.1) contrast(1.04);
}
}

body.music-videos-view-active .music-video-play-pill {
    z-index: 3;
    left: 50%;
    bottom: 50%;
    width: 66px;
    height: 66px;
    border-color: rgba(255,255,255,0.28);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.07)),
        rgba(17,8,22,0.62);
    box-shadow: 0 16px 34px rgba(0,0,0,0.36), 0 0 30px hsl(var(--video-card-hue) 82% 63% / 0.24);
    transform: translate(-50%, 50%) scale(0.94);
    transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), background 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
body.music-videos-view-active .music-video-card:hover .music-video-play-pill {
    background: linear-gradient(145deg, hsl(var(--video-card-hue) 83% 62%), hsl(calc(var(--video-card-hue) + 24) 75% 46%));
    box-shadow: 0 18px 38px rgba(0,0,0,0.4), 0 0 36px hsl(var(--video-card-hue) 82% 63% / 0.34);
    transform: translate(-50%, 50%) scale(1.06);
}
}

body.music-videos-view-active .music-video-play-pill .material-symbols-outlined {
    font-size: 2.55rem;
}

body.music-videos-view-active .music-video-duration {
    z-index: 3;
    right: 11px;
    bottom: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(9,6,12,0.67);
    box-shadow: 0 8px 18px rgba(0,0,0,0.24);
    backdrop-filter: blur(10px);
}

body.music-videos-view-active .music-video-card-info {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 7px 7px;
}

.music-video-card-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    min-width: 0;
}

body.music-videos-view-active .music-video-title {
    font-size: clamp(1.03rem, 1.3vw, 1.18rem);
    letter-spacing: -0.015em;
}

body.music-videos-view-active .music-video-meta {
    font-size: 0.82rem;
    font-weight: 700;
}

.music-video-card-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;
    color: var(--color-text);
    background: rgba(255,255,255,0.055);
    font-size: 20px;
    transition: color 0.22s ease, background 0.22s ease, transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
}

@media (hover: hover) and (pointer: fine) {
body.music-videos-view-active .music-video-card:hover .music-video-card-arrow {
    color: #fff;
    background: hsl(var(--video-card-hue) 72% 52% / 0.75);
    transform: rotate(7deg) translate(1px, -1px);
}
}

@media (max-width: 900px) {
    .music-videos-dashboard-header {
        min-height: 250px;
        grid-template-columns: minmax(0, 1fr) 300px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .music-videos-dashboard-heading h1 {
        font-size: clamp(2.7rem, 7vw, 4rem);
    }

    .music-videos-dashboard-art {
        width: 310px;
        transform: scale(0.82);
        transform-origin: center right;
    }

    body.music-videos-view-active .content-controls.music-videos-controls-active {
        margin-bottom: 18px;
        padding: 8px;
        border-radius: 19px;
    }
}

@media (max-width: 640px) {
    .music-videos-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 8px;
        margin-bottom: 12px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .music-videos-dashboard-heading h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 0.94;
    }

    .music-videos-dashboard-art {
        width: 290px;
        transform: scale(0.55);
        transform-origin: center right;
    }

    body.music-videos-view-active .content-controls.music-videos-controls-active {
        margin-bottom: 14px;
    }

    body.music-videos-view-active .content-controls.music-videos-controls-active .search-bar {
        min-height: 44px;
    }

    body.music-videos-view-active #songGrid[data-content-mode="music-videos"] {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    body.music-videos-view-active .music-video-card {
        padding: 7px;
        border-radius: 19px;
    }

    body.music-videos-view-active .music-video-thumb-wrap {
        border-radius: 14px;
    }

    body.music-videos-view-active .music-video-play-pill {
        width: 52px;
        height: 52px;
    }

    body.music-videos-view-active .music-video-play-pill .material-symbols-outlined {
        font-size: 2rem;
    }

    body.music-videos-view-active .music-video-card-info {
        padding: 12px 5px 5px;
    }

    body.music-videos-view-active .music-video-title {
        font-size: 1rem;
    }

    .music-video-card-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

[data-theme="light"] body.music-videos-view-active .content-controls.music-videos-controls-active,
[data-theme="light"] body.music-videos-view-active .music-video-card {
    border-color: rgba(54,35,72,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
    box-shadow: 0 16px 38px rgba(44,32,69,0.1);
}

[data-theme="light"] body.music-videos-view-active .content-controls.music-videos-controls-active .search-bar,
[data-theme="light"] .music-video-card-arrow {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.62);
}

/* 2026 podcast discovery ------------------------------------------------ */
body.podcasts-view-active .main-content {
    background:
        radial-gradient(circle at 69% -9%, rgba(255,132,74,0.16), transparent 34%),
        radial-gradient(circle at 12% 23%, rgba(170,53,238,0.14), transparent 31%),
        transparent;
}

.podcasts-dashboard-header {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 300px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 490px);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(20,12,25,0.99), rgba(75,24,75,0.93) 54%, rgba(35,18,24,0.99)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.27), inset 0 1px 0 rgba(255,255,255,0.1);
}

.podcasts-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 43%, rgba(255,143,82,0.24), transparent 30%),
        radial-gradient(circle at 52% 116%, rgba(177,46,232,0.24), transparent 40%),
        linear-gradient(105deg, rgba(0,0,0,0.15), transparent 57%, rgba(225,104,61,0.09));
}

.podcasts-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: -225px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 39px rgba(255,255,255,0.018), 0 0 0 80px rgba(255,255,255,0.012);
    pointer-events: none;
}

.podcasts-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.podcasts-dashboard-heading h1 {
    max-width: 830px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.podcasts-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 455px);
    height: 225px;
}

.podcasts-art-cover {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 178px;
    height: 178px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 33px;
    color: #fff;
    background:
        radial-gradient(circle at 27% 20%, rgba(255,255,255,0.22), transparent 29%),
        radial-gradient(circle at 78% 81%, rgba(255,135,70,0.55), transparent 39%),
        linear-gradient(145deg, #bd35dd, #5c237d 59%, #24132d);
    box-shadow: 0 28px 56px rgba(0,0,0,0.37), inset 0 1px 0 rgba(255,255,255,0.14);
    transform: translate(-50%, -50%) rotate(-3deg);
}

.podcasts-art-cover::after {
    content: '';
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    right: -43%;
    bottom: -43%;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,0.035), 0 0 0 38px rgba(255,255,255,0.022);
}

.podcasts-art-cover i {
    position: relative;
    z-index: 2;
    font-size: 72px;
    font-style: normal;
    font-weight: 300;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.podcasts-art-mic {
    position: absolute;
    z-index: 4;
    right: 48px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #f47b4b, #9b2c9f);
    box-shadow: 0 22px 42px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.14);
    transform: rotate(7deg);
}

.podcasts-art-mic i {
    font-size: 42px;
    font-style: normal;
}

.podcasts-art-wave {
    position: absolute;
    top: 50%;
    width: 115px;
    height: 94px;
    opacity: 0.44;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.72) 0 3px, transparent 3px 13px);
    clip-path: polygon(0 46%, 10% 31%, 20% 69%, 30% 11%, 40% 83%, 50% 28%, 60% 72%, 70% 16%, 80% 78%, 90% 35%, 100% 49%, 100% 53%, 90% 39%, 80% 82%, 70% 20%, 60% 76%, 50% 32%, 40% 87%, 30% 15%, 20% 73%, 10% 35%, 0 50%);
}

.podcasts-art-wave-left { left: 5px; }
.podcasts-art-wave-right { right: 4px; transform: translateY(-50%) scaleX(-1); }

body.podcasts-view-active .content-controls.podcasts-controls-active {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: auto minmax(280px, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
}

body.podcasts-view-active .podcast-toolbar-request {
    min-height: 48px;
    margin: 0;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    background: linear-gradient(135deg, #c638e8, #8a2ec9 58%, #ef754f);
    box-shadow: 0 12px 25px rgba(126,36,160,0.25), inset 0 1px 0 rgba(255,255,255,0.17);
    white-space: nowrap;
}

body.podcasts-view-active .content-controls.podcasts-controls-active .search-bar {
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    order: initial !important;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.podcasts-view-active .content-controls.podcasts-controls-active .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.podcasts-view-active #songGrid[data-content-mode="podcasts"] {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}

body.podcasts-view-active .podcast-discovery-shell {
    gap: 25px;
}

body.podcasts-view-active .podcast-discovery-hero {
    display: none !important;
}

body.podcasts-view-active .podcast-continue-rail {
    min-width: 0;
}

body.podcasts-view-active .podcast-continue-rail h3 {
    margin: 0 2px 13px;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    letter-spacing: -0.025em;
}

body.podcasts-view-active .podcast-continue-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 13px;
}

body.podcasts-view-active .podcast-continue-card {
    position: relative;
    grid-template-columns: 68px minmax(0, 1fr);
    min-width: 0;
    padding: 10px 56px 10px 10px;
    overflow: hidden;
    border-color: rgba(255,255,255,0.11);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

body.podcasts-view-active .podcast-continue-card::after {
    content: 'play_arrow';
    position: absolute;
    right: 13px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #bd3ce4, #7631ba);
    font: 22px/1 'Material Symbols Outlined';
    transform: translateY(-50%);
    box-shadow: 0 9px 19px rgba(0,0,0,0.24);
}

body.podcasts-view-active .podcast-continue-card img {
    border-radius: 13px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.26);
}

body.podcasts-view-active .podcast-continue-card strong,
body.podcasts-view-active .podcast-continue-card span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.podcasts-view-active .podcast-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(15px, 1.7vw, 23px);
}

body.podcasts-view-active .podcast-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 13px;
    min-width: 0;
    padding: 9px 9px 15px;
    overflow: hidden;
    border-color: rgba(255,255,255,0.12);
    border-radius: 24px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 16px 38px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.26s cubic-bezier(0.2,0.8,0.2,1), border-color 0.22s ease, box-shadow 0.26s ease, background 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
body.podcasts-view-active .podcast-card:hover {
    transform: translateY(-7px);
    border-color: hsl(var(--podcast-card-hue) 77% 67% / 0.44);
    background:
        linear-gradient(150deg, hsl(var(--podcast-card-hue) 80% 62% / 0.11), rgba(255,255,255,0.04) 72%),
        color-mix(in srgb, var(--color-bg) 72%, transparent);
    box-shadow: 0 26px 54px rgba(0,0,0,0.28), 0 0 36px hsl(var(--podcast-card-hue) 80% 58% / 0.07);
}
}

body.podcasts-view-active .podcast-card::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    left: 9px;
    aspect-ratio: 1;
    border-radius: 17px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8,5,11,0.43), transparent 54%);
}

body.podcasts-view-active .podcast-card::after {
    content: 'play_arrow';
    position: absolute;
    z-index: 3;
    right: 21px;
    top: 21px;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    background: hsl(var(--podcast-card-hue) 69% 48% / 0.76);
    font: 26px/1 'Material Symbols Outlined';
    box-shadow: 0 11px 24px rgba(0,0,0,0.32);
    backdrop-filter: blur(10px);
    transition: transform 0.26s cubic-bezier(0.2,0.8,0.2,1), background 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
body.podcasts-view-active .podcast-card:hover::after {
    background: hsl(var(--podcast-card-hue) 76% 55% / 0.92);
    transform: scale(1.08) rotate(5deg);
}
}

body.podcasts-view-active .podcast-card > img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 17px;
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(0,0,0,0.29);
    transition: transform 0.46s cubic-bezier(0.2,0.8,0.2,1), filter 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
body.podcasts-view-active .podcast-card:hover > img {
    transform: scale(1.025);
    filter: saturate(1.08) contrast(1.03);
}
}

body.podcasts-view-active .podcast-card > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 0 5px 1px;
}

body.podcasts-view-active .podcast-card-kicker {
    justify-self: start;
    max-width: 100%;
    padding: 4px 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: color-mix(in srgb, var(--color-text-soft) 90%, transparent);
    background: rgba(255,255,255,0.045);
    font-size: 0.66rem;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.podcasts-view-active .podcast-card strong {
    margin: 1px 0 0;
    overflow: hidden;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.16;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.podcasts-view-active .podcast-card small {
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Podcast detail */
.podcast-detail-shell {
    width: min(100%, 1480px);
    margin: 0 auto;
    gap: 16px;
}

.podcast-detail-shell .podcast-back-btn {
    min-height: 42px;
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(14px);
}

.podcast-detail-shell .podcast-detail-head {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 42px);
    padding: clamp(22px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 76% 30%, rgba(203,61,235,0.17), transparent 32%),
        linear-gradient(135deg, rgba(30,17,37,0.92), rgba(70,25,74,0.72));
    box-shadow: 0 24px 55px rgba(0,0,0,0.23);
}

.podcast-detail-shell .podcast-detail-head img {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.34);
}

.podcast-detail-shell .podcast-detail-head h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.podcast-detail-shell .podcast-episode-list {
    gap: 7px;
}

.podcast-detail-shell .podcast-episode-card {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    padding: 9px 12px 9px 9px;
    border-color: rgba(255,255,255,0.1);
    border-radius: 17px;
    background: rgba(255,255,255,0.042);
    box-shadow: 0 10px 22px rgba(0,0,0,0.09);
}

@media (hover: hover) and (pointer: fine) {
.podcast-detail-shell .podcast-episode-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.068);
}
}

.podcast-detail-shell .podcast-episode-card img {
    border-radius: 12px;
}

@media (max-width: 900px) {
    .podcasts-dashboard-header {
        min-height: 250px;
        grid-template-columns: minmax(0, 1fr) 295px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .podcasts-dashboard-heading h1 {
        font-size: clamp(2.7rem, 7vw, 4rem);
    }

    .podcasts-dashboard-art {
        width: 310px;
        transform: scale(0.82);
        transform-origin: center right;
    }
}

@media (max-width: 700px) {
    .podcasts-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 8px;
        margin-bottom: 12px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .podcasts-dashboard-heading h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 0.94;
    }

    .podcasts-dashboard-art {
        width: 285px;
        transform: scale(0.55);
        transform-origin: center right;
    }

    body.podcasts-view-active .content-controls.podcasts-controls-active {
        grid-template-columns: 1fr;
        margin-bottom: 14px;
        padding: 8px;
        gap: 8px;
        border-radius: 19px;
    }

    body.podcasts-view-active .podcast-toolbar-request,
    body.podcasts-view-active .content-controls.podcasts-controls-active .search-bar {
        min-height: 44px;
    }

    body.podcasts-view-active .podcast-toolbar-request {
        justify-content: center;
        width: 100%;
    }

    body.podcasts-view-active .podcast-continue-list,
    body.podcasts-view-active .podcast-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.podcasts-view-active .podcast-card {
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        padding: 8px 54px 8px 8px;
        border-radius: 18px;
    }

    body.podcasts-view-active .podcast-card::before {
        top: 8px;
        right: auto;
        left: 8px;
        width: 84px;
        border-radius: 12px;
    }

    body.podcasts-view-active .podcast-card::after {
        top: 50%;
        right: 11px;
        width: 34px;
        height: 34px;
        font-size: 21px;
        transform: translateY(-50%);
    }

    @media (hover: hover) and (pointer: fine) {
body.podcasts-view-active .podcast-card:hover::after {
        transform: translateY(-50%) scale(1.06);
    }
}

    body.podcasts-view-active .podcast-card > img {
        width: 84px;
        border-radius: 12px;
        box-shadow: 0 11px 22px rgba(0,0,0,0.27);
    }

    body.podcasts-view-active .podcast-card > div {
        padding: 0;
    }

    body.podcasts-view-active .podcast-card strong {
        font-size: 0.96rem;
    }

    body.podcasts-view-active .podcast-card-kicker {
        padding: 3px 7px;
        font-size: 0.6rem;
    }

    .podcast-detail-shell .podcast-detail-head {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 24px;
        text-align: center;
    }

    .podcast-detail-shell .podcast-detail-head img {
        width: min(190px, 62vw);
        justify-self: center;
        border-radius: 20px;
    }

    .podcast-detail-shell .podcast-episode-card {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 8px;
    }
}

[data-theme="light"] body.podcasts-view-active .content-controls.podcasts-controls-active,
[data-theme="light"] body.podcasts-view-active .podcast-card,
[data-theme="light"] body.podcasts-view-active .podcast-continue-card {
    border-color: rgba(54,35,72,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52));
    box-shadow: 0 16px 38px rgba(44,32,69,0.1);
}

[data-theme="light"] body.podcasts-view-active .content-controls.podcasts-controls-active .search-bar {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.62);
}

/* Podcast request modal motion */
body.podcast-request-open {
    overflow: hidden;
}

.podcast-request-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.podcast-request-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.podcast-request-backdrop.is-closing {
    opacity: 0;
    pointer-events: none;
}

.podcast-request-backdrop .podcast-request-modal {
    opacity: 0;
    transform: translateY(20px) scale(0.965);
    transform-origin: center;
    filter: blur(3px);
    transition:
        opacity 220ms ease,
        transform 280ms cubic-bezier(0.2, 0.82, 0.2, 1),
        filter 220ms ease;
}

.podcast-request-backdrop.is-open .podcast-request-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.podcast-request-backdrop.is-closing .podcast-request-modal {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    filter: blur(2px);
    transition-duration: 180ms;
}

.podcast-request-close {
    transition: color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
.podcast-request-close:hover {
    background: rgba(255,255,255,0.18);
    transform: rotate(7deg) scale(1.05);
}
}

@media (prefers-reduced-motion: reduce) {
    .podcast-request-backdrop,
    .podcast-request-backdrop .podcast-request-modal,
    .podcast-request-close {
        transition-duration: 1ms !important;
    }
}

/* 2026 settings dashboard ---------------------------------------------- */
body.settings-view-active .main-content {
    background:
        radial-gradient(circle at 62% -9%, rgba(174,55,244,0.19), transparent 35%),
        radial-gradient(circle at 8% 31%, rgba(76,76,213,0.11), transparent 29%),
        transparent;
}

body.settings-view-active .settings-view {
    width: min(100%, 1480px);
    gap: 18px;
    padding-bottom: 28px;
}

.settings-dashboard-header {
    position: relative;
    isolation: isolate;
    min-height: 280px;
    box-sizing: border-box;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 490px);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(18,12,27,0.99), rgba(69,21,89,0.92) 55%, rgba(18,16,33,0.99)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
}

.settings-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 42%, rgba(189,64,255,0.26), transparent 30%),
        radial-gradient(circle at 51% 116%, rgba(97,66,218,0.2), transparent 40%),
        linear-gradient(105deg, rgba(0,0,0,0.15), transparent 57%, rgba(117,70,211,0.1));
}

.settings-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: -235px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255,255,255,0.018), 0 0 0 82px rgba(255,255,255,0.012);
    pointer-events: none;
}

.settings-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.settings-dashboard-heading h1 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.35rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.settings-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 450px);
    height: 215px;
    perspective: 950px;
}

.settings-art-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.19);
    color: #fff;
    box-shadow: 0 27px 55px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.13);
}

.settings-art-card > i {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 15px;
    background: rgba(12,8,18,0.26);
    font-size: 27px;
    font-style: normal;
    backdrop-filter: blur(10px);
}

.settings-art-card-back {
    top: 8px;
    right: 7px;
    width: 205px;
    height: 155px;
    border-radius: 27px;
    background:
        radial-gradient(circle at 78% 24%, rgba(255,255,255,0.16), transparent 25%),
        linear-gradient(145deg, #5f48bd, #241837 67%, #100d17);
    transform: rotate(8deg) translateZ(-24px);
}

.settings-art-card-back > b {
    position: absolute;
    right: 18px;
    bottom: 19px;
    width: 68px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(10,7,15,0.3);
}

.settings-art-card-back > b small {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #c761ff;
    box-shadow: 0 0 18px rgba(199,97,255,0.45);
}

.settings-art-card-front {
    z-index: 3;
    left: 5px;
    bottom: 0;
    width: 285px;
    height: 185px;
    padding: 0;
    border-radius: 29px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,0.2), transparent 27%),
        radial-gradient(circle at 79% 81%, rgba(191,63,255,0.48), transparent 38%),
        linear-gradient(145deg, #9434cf, #4a1b72 57%, #1d122a);
    transform: rotate(-4deg);
}

.settings-art-card-front > b {
    position: relative;
    display: block;
    width: 162px;
    height: 5px;
    margin: 22px 22px 0 91px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.settings-art-card-front > b:first-of-type {
    margin-top: 31px;
}

.settings-art-card-front > b small {
    position: absolute;
    top: 50%;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,0.78);
    border-radius: 50%;
    background: #b941ed;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.24);
}

.settings-art-card-front > b:nth-of-type(1) small { left: 72%; }
.settings-art-card-front > b:nth-of-type(2) small { left: 36%; }
.settings-art-card-front > b:nth-of-type(3) small { left: 58%; }

.settings-art-swatch {
    position: absolute;
    z-index: 5;
    right: 34px;
    bottom: 2px;
    width: 68px;
    height: 68px;
    border: 7px solid rgba(23,13,30,0.74);
    border-radius: 50%;
    background: conic-gradient(#c945f0, #7553ed, #f176a9, #f6a74e, #c945f0);
    box-shadow: 0 19px 37px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,255,255,0.15);
    transform: rotate(9deg);
}

body.settings-view-active .settings-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 3vw, 36px);
    border-color: rgba(255,255,255,0.12);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022) 68%),
        color-mix(in srgb, var(--color-bg) 76%, transparent);
    box-shadow: 0 20px 48px rgba(0,0,0,0.17), inset 0 1px 0 rgba(255,255,255,0.055);
    backdrop-filter: blur(20px) saturate(130%);
}

body.settings-view-active .settings-panel::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: -100px;
    top: -105px;
    width: 245px;
    height: 245px;
    border: 1px solid rgba(255,255,255,0.045);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255,255,255,0.01);
    pointer-events: none;
}

body.settings-view-active .settings-language-panel {
    display: grid;
    grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.6fr);
    align-items: center;
    column-gap: clamp(25px, 4vw, 60px);
    row-gap: 13px;
}

body.settings-view-active .settings-panel-heading {
    gap: 17px;
}

body.settings-view-active .settings-panel-icon {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.055)),
        var(--color-accent-soft);
    box-shadow: 0 13px 30px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

body.settings-view-active .settings-panel-heading h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    letter-spacing: -0.025em;
}

body.settings-view-active .settings-panel-heading p {
    max-width: 590px;
    margin-top: 6px;
    font-size: 0.88rem;
}

body.settings-view-active .settings-language-options {
    position: relative;
    z-index: 1;
    margin: 0;
    gap: 10px;
}

body.settings-view-active .settings-language-option {
    min-height: 82px;
    padding: 12px 14px;
    border-color: rgba(255,255,255,0.11);
    border-radius: 19px;
    background: rgba(255,255,255,0.038);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    transition: transform 190ms cubic-bezier(0.2,0.8,0.2,1), border-color 180ms ease, background 180ms ease, box-shadow 190ms ease;
}

@media (hover: hover) and (pointer: fine) {
body.settings-view-active .settings-language-option:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.068);
    box-shadow: 0 14px 29px rgba(0,0,0,0.15);
}
}

body.settings-view-active .settings-language-option.active {
    border-color: color-mix(in srgb, var(--color-accent-light) 62%, transparent);
    background: linear-gradient(135deg, var(--color-accent-soft), rgba(255,255,255,0.055));
    box-shadow: 0 15px 32px rgba(0,0,0,0.14), inset 0 0 0 1px var(--color-accent-faint);
}

body.settings-view-active .settings-language-code {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.065);
}

body.settings-view-active .settings-language-check {
    font-size: 1.5rem;
}

body.settings-view-active .settings-language-hint {
    position: relative;
    z-index: 1;
    grid-column: 2;
    margin: 0 3px;
    padding-top: 1px;
}

body.settings-view-active .settings-appearance-heading {
    margin-bottom: 25px;
}

body.settings-view-active .settings-theme-picker .theme-picker-body {
    gap: 17px;
}

body.settings-view-active .settings-theme-picker .theme-picker-section {
    position: relative;
    z-index: 1;
    gap: 15px;
    padding: 20px;
    border-color: rgba(255,255,255,0.1);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

body.settings-view-active .settings-theme-picker .theme-section-head {
    align-items: center;
}

body.settings-view-active .settings-theme-picker .theme-section-head h4 {
    font-size: 1.08rem;
    letter-spacing: -0.012em;
}

body.settings-view-active .settings-theme-picker .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
}

body.settings-view-active .settings-theme-picker .theme-grid .theme-card.theme-card-featured,
body.settings-view-active .settings-theme-picker .theme-grid .theme-card.theme-card-lone-last {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
}

body.settings-view-active .settings-theme-picker .theme-card {
    min-height: 132px;
    box-sizing: border-box;
    padding: 15px;
    gap: 11px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 19px;
    background: rgba(255,255,255,0.038);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 210ms cubic-bezier(0.2,0.8,0.2,1), border-color 180ms ease, background 180ms ease, box-shadow 210ms ease;
}

@media (hover: hover) and (pointer: fine) {
body.settings-view-active .settings-theme-picker .theme-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.065);
    box-shadow: 0 17px 35px rgba(0,0,0,0.17);
}
}

body.settings-view-active .settings-theme-picker .theme-card.active {
    border-color: var(--color-accent-light);
    background: linear-gradient(145deg, var(--color-accent-faint), rgba(255,255,255,0.045));
    box-shadow: 0 17px 36px rgba(0,0,0,0.15), inset 0 0 0 1px var(--color-accent-faint);
}

body.settings-view-active .settings-theme-picker .theme-card-name {
    font-size: 0.98rem;
    font-weight: 750;
}

body.settings-view-active .settings-theme-picker .theme-dot {
    width: 25px;
    height: 25px;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

body.settings-view-active .settings-theme-picker .theme-card-check {
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: transparent;
    background: rgba(255,255,255,0.055);
}

body.settings-view-active .settings-theme-picker .theme-card.active .theme-card-check {
    color: #fff;
    background: linear-gradient(145deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 8px 18px var(--color-accent-soft);
}

body.settings-view-active .settings-theme-picker .custom-theme-open-btn {
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    border-color: rgba(255,255,255,0.13);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

@media (hover: hover) and (pointer: fine) {
body.settings-view-active .settings-theme-picker .custom-theme-open-btn:hover {
    border-color: color-mix(in srgb, var(--color-accent-light) 45%, transparent);
    background: var(--color-accent-faint);
}
}

@media (max-width: 900px) {
    .settings-dashboard-header {
        min-height: 245px;
        grid-template-columns: minmax(0, 1fr) 290px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .settings-dashboard-heading h1 {
        font-size: clamp(2.65rem, 7vw, 4rem);
    }

    .settings-dashboard-art {
        width: 300px;
        transform: scale(0.82);
        transform-origin: center right;
    }

    body.settings-view-active .settings-language-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.settings-view-active .settings-language-hint {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    body.settings-view-active .settings-view {
        gap: 13px;
    }

    .settings-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 122px;
        gap: 8px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .settings-dashboard-heading h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 0.94;
    }

    .settings-dashboard-art {
        width: 285px;
        transform: scale(0.54);
        transform-origin: center right;
    }

    body.settings-view-active .settings-panel {
        padding: 18px;
        border-radius: 23px;
    }

    body.settings-view-active .settings-panel-heading {
        align-items: center;
        gap: 13px;
    }

    body.settings-view-active .settings-panel-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 1.35rem;
    }

    body.settings-view-active .settings-panel-heading h2 {
        font-size: 1.32rem;
    }

    body.settings-view-active .settings-panel-heading p {
        font-size: 0.8rem;
    }

    body.settings-view-active .settings-language-options {
        grid-template-columns: minmax(0, 1fr);
    }

    body.settings-view-active .settings-language-option {
        min-height: 70px;
        border-radius: 16px;
    }

    body.settings-view-active .settings-theme-picker .theme-picker-section {
        padding: 14px;
        border-radius: 18px;
    }

    body.settings-view-active .settings-theme-picker .theme-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.settings-view-active .settings-theme-picker .theme-card {
        min-height: 112px;
        border-radius: 16px;
    }

    body.settings-view-active .settings-theme-picker .theme-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    body.settings-view-active .settings-theme-picker .custom-theme-open-btn {
        width: 100%;
    }
}

[data-theme="light"] body.settings-view-active .settings-panel {
    border-color: rgba(54,35,72,0.11);
    background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.54));
    box-shadow: 0 20px 48px rgba(44,32,69,0.1);
}

[data-theme="light"] body.settings-view-active .settings-language-option,
[data-theme="light"] body.settings-view-active .settings-theme-picker .theme-picker-section,
[data-theme="light"] body.settings-view-active .settings-theme-picker .theme-card,
[data-theme="light"] body.settings-view-active .settings-theme-picker .custom-theme-open-btn {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.58);
}

[data-theme="light"] body.settings-view-active .settings-language-option.active,
[data-theme="light"] body.settings-view-active .settings-theme-picker .theme-card.active {
    background: linear-gradient(145deg, var(--color-accent-soft), rgba(255,255,255,0.75));
}

/* 2026 own profile ------------------------------------------------------ */

body.auth-tab-active .auth-tab-container {
    width: min(100%, 1480px);
    box-sizing: border-box;
    margin: 10px auto 0;
}

.auth-cards-row.is-profile-mode {
    width: min(100%, 1480px);
    max-width: 1480px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    background: transparent !important;
}

.auth-native-card.is-profile-mode {
    width: 100%;
    max-width: none;
}

.auth-native-card.is-profile-mode > .auth-native-subtitle {
    display: none;
}

.auth-native-card.is-profile-mode #authProfileView {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "hero hero"
        "admin admin"
        "profile profile"
        "discord pulse"
        "public public"
        "security security";
    gap: 18px;
    background: transparent !important;
}

.auth-profile-dashboard-header {
    position: relative;
    isolation: isolate;
    grid-area: hero;
    min-height: 280px;
    box-sizing: border-box;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 490px);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(18,12,27,0.99), rgba(71,20,91,0.92) 55%, rgba(17,18,34,0.99)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
}

.auth-profile-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 42%, rgba(197,66,255,0.26), transparent 30%),
        radial-gradient(circle at 50% 116%, rgba(80,91,226,0.2), transparent 40%),
        linear-gradient(105deg, rgba(0,0,0,0.15), transparent 57%, rgba(101,82,221,0.1));
}

.auth-profile-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: -235px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255,255,255,0.018), 0 0 0 82px rgba(255,255,255,0.012);
    pointer-events: none;
}

.auth-profile-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.auth-profile-dashboard-heading h1 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.35rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.auth-profile-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 440px);
    height: 215px;
}

.auth-profile-art-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
}

.auth-profile-art-ring-outer {
    width: 365px;
    height: 178px;
}

.auth-profile-art-ring-inner {
    width: 270px;
    height: 125px;
    border-color: rgba(219,142,255,0.2);
    transform: translate(-50%, -50%) rotate(11deg);
}

.auth-profile-art-avatar {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,0.21);
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 29% 22%, rgba(255,255,255,0.22), transparent 29%),
        linear-gradient(145deg, #c33ef1, #6d36da 58%, #271541);
    box-shadow: 0 28px 55px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.15);
    font-size: 70px;
    transform: translate(-50%, -50%);
}

.auth-profile-art-wave {
    position: absolute;
    z-index: 4;
    right: 35px;
    bottom: 7px;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(145deg, #8a47eb, #c53ddf);
    box-shadow: 0 20px 39px rgba(0,0,0,0.34);
    font-size: 40px;
    transform: rotate(8deg);
}

.auth-native-card.is-profile-mode .auth-access-tools {
    grid-area: admin;
}

.auth-native-card.is-profile-mode .auth-account-profile-panel,
.auth-native-card.is-profile-mode .auth-access-tool-card,
.auth-native-card.is-profile-mode .auth-account-section {
    position: relative;
    overflow: hidden;
    border-color: rgba(255,255,255,0.11) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022) 69%),
        color-mix(in srgb, var(--color-bg) 76%, transparent) !important;
    box-shadow: 0 18px 43px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
}

.auth-native-card.is-profile-mode .auth-account-profile-panel {
    grid-area: profile;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 52px);
    padding: clamp(22px, 3vw, 38px);
    border-radius: 30px;
    align-items: center;
}

.auth-native-card.is-profile-mode .auth-account-profile-panel::after,
.auth-native-card.is-profile-mode .auth-account-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: -94px;
    top: -105px;
    width: 225px;
    height: 225px;
    border: 1px solid rgba(255,255,255,0.045);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255,255,255,0.01);
    pointer-events: none;
}

.auth-native-card.is-profile-mode .auth-profile-overview-media,
.auth-native-card.is-profile-mode .auth-profile-overview-image-actions {
    position: relative;
    z-index: 1;
    width: 220px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-preview,
.auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 26px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.31), inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-native-card.is-profile-mode .auth-public-profile-preview {
    border-radius: inherit;
}

.auth-native-card.is-profile-mode .auth-profile-overview-image-actions .auth-public-file-btn {
    min-height: 45px;
    border-color: rgba(255,255,255,0.12);
    border-radius: 15px;
    background: rgba(255,255,255,0.055);
}

.auth-native-card.is-profile-mode .auth-profile-overview-main {
    position: relative;
    z-index: 1;
    gap: 13px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-topline {
    align-items: center;
    gap: 12px;
}

.auth-native-card.is-profile-mode .auth-native-user {
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.auth-native-card.is-profile-mode .auth-profile-handle {
    margin-top: -4px;
    font-size: 0.9rem;
    font-weight: 750;
}

.auth-native-card.is-profile-mode .auth-profile-overview-main .auth-native-field {
    gap: 7px;
}

.auth-native-card.is-profile-mode .auth-profile-overview-main input,
.auth-native-card.is-profile-mode .auth-profile-overview-main textarea,
.auth-native-card.is-profile-mode .auth-account-security-section input,
.auth-native-card.is-profile-mode .auth-account-pulse-section input {
    border-color: rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.auth-native-card.is-profile-mode .auth-profile-overview-main input:focus,
.auth-native-card.is-profile-mode .auth-profile-overview-main textarea:focus,
.auth-native-card.is-profile-mode .auth-account-security-section input:focus,
.auth-native-card.is-profile-mode .auth-account-pulse-section input:focus {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

.auth-native-card.is-profile-mode .auth-public-description-input {
    min-height: 132px;
}

.auth-native-card.is-profile-mode .auth-account-section {
    z-index: 1;
    padding: 20px !important;
    border-radius: 23px !important;
}

.auth-native-card.is-profile-mode .auth-account-discord-section { grid-area: discord; }
.auth-native-card.is-profile-mode .auth-account-pulse-section { grid-area: pulse; }
.auth-native-card.is-profile-mode .auth-account-public-section { grid-area: public; }
.auth-native-card.is-profile-mode .auth-account-security-section { grid-area: security; }

.auth-native-card.is-profile-mode .auth-account-section-head,
.auth-native-card.is-profile-mode .auth-account-section > :not(.auth-account-section-head) {
    position: relative;
    z-index: 1;
}

.auth-native-card.is-profile-mode .auth-account-section-head {
    margin-bottom: 15px;
}

.auth-native-card.is-profile-mode .auth-account-section-head h3 {
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}

.auth-native-card.is-profile-mode .auth-account-section-head p {
    font-size: 0.82rem;
}

.auth-native-card.is-profile-mode .auth-discord-linked-card {
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border-color: rgba(255,255,255,0.11);
    border-radius: 15px;
    background: rgba(255,255,255,0.045);
}

.auth-native-card.is-profile-mode .auth-public-profile-main-actions,
.auth-native-card.is-profile-mode .auth-profile-actions-row {
    gap: 9px;
}

.auth-native-card.is-profile-mode .auth-public-profile-main-actions button,
.auth-native-card.is-profile-mode .auth-profile-actions-row button,
.auth-native-card.is-profile-mode .auth-admin-panel-link {
    min-height: 44px;
    border-radius: 14px;
}

.auth-native-card.is-profile-mode #authDeleteBtn {
    border-color: rgba(255,103,124,0.2);
    color: #ff9bac;
    background: rgba(255,74,105,0.07);
}

@media (max-width: 960px) {
    .auth-native-card.is-profile-mode #authProfileView {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "hero"
            "admin"
            "profile"
            "discord"
            "pulse"
            "public"
            "security";
    }

    .auth-profile-dashboard-header {
        min-height: 245px;
        grid-template-columns: minmax(0, 1fr) 290px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .auth-profile-dashboard-heading h1 {
        font-size: clamp(2.65rem, 7vw, 4rem);
    }

    .auth-profile-dashboard-art {
        width: 300px;
        transform: scale(0.82);
        transform-origin: center right;
    }
}

@media (max-width: 700px) {
    .auth-native-card.is-profile-mode #authProfileView {
        gap: 13px;
    }

    .auth-profile-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 120px;
        gap: 8px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .auth-profile-dashboard-heading h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 0.94;
    }

    .auth-profile-dashboard-art {
        width: 280px;
        transform: scale(0.54);
        transform-origin: center right;
    }

    .auth-native-card.is-profile-mode .auth-account-profile-panel {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        gap: 19px;
        padding: 18px;
        border-radius: 23px;
        text-align: center;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-media {
        justify-self: center;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-media,
    .auth-native-card.is-profile-mode .auth-profile-overview-image-actions,
    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        width: min(190px, 100%);
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-preview,
    .auth-native-card.is-profile-mode .auth-public-profile-preview-wrap {
        height: min(190px, calc(100vw - 88px));
        border-radius: 22px;
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-main,
    .auth-native-card.is-profile-mode .auth-profile-overview-topline {
        width: 100%;
        justify-content: center;
    }

    .auth-native-card.is-profile-mode .auth-native-user {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .auth-native-card.is-profile-mode .auth-profile-overview-main .auth-native-field {
        text-align: left;
    }

    .auth-native-card.is-profile-mode .auth-account-section {
        padding: 17px !important;
        border-radius: 20px !important;
    }

    .auth-native-card.is-profile-mode .auth-public-profile-main-actions,
    .auth-native-card.is-profile-mode .auth-profile-actions-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

[data-theme="light"] .auth-native-card.is-profile-mode .auth-account-profile-panel,
[data-theme="light"] .auth-native-card.is-profile-mode .auth-access-tool-card,
[data-theme="light"] .auth-native-card.is-profile-mode .auth-account-section {
    border-color: rgba(54,35,72,0.11) !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.52)) !important;
    box-shadow: 0 18px 43px rgba(44,32,69,0.09);
}

[data-theme="light"] .auth-native-card.is-profile-mode .auth-profile-overview-main input,
[data-theme="light"] .auth-native-card.is-profile-mode .auth-profile-overview-main textarea,
[data-theme="light"] .auth-native-card.is-profile-mode .auth-account-security-section input,
[data-theme="light"] .auth-native-card.is-profile-mode .auth-account-pulse-section input,
[data-theme="light"] .auth-native-card.is-profile-mode .auth-discord-linked-card {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.58);
}

/* Account: settings-style layering — transparent layout, tinted panels only. */
body.auth-tab-active #authTabContainer,
body.auth-tab-active .auth-cards-row.is-profile-mode,
body.auth-tab-active .auth-cards-row.is-profile-mode > .auth-native-card,
body.auth-tab-active .auth-native-card.is-profile-mode #authProfileView {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-profile-panel,
body.auth-tab-active .auth-native-card.is-profile-mode .auth-access-tool-card,
body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-section {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022) 68%),
        color-mix(in srgb, var(--color-bg) 76%, transparent) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,0.17), inset 0 1px 0 rgba(255,255,255,0.055) !important;
    backdrop-filter: blur(20px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
}

[data-theme="light"] body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-profile-panel,
[data-theme="light"] body.auth-tab-active .auth-native-card.is-profile-mode .auth-access-tool-card,
[data-theme="light"] body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.54)) !important;
    box-shadow: 0 20px 48px rgba(44,32,69,0.1) !important;
}

/* Keep the long account form cheap to composite while it moves through the
   fixed mobile scroll viewport. Large backdrop blurs on every card otherwise
   force mobile browsers to re-sample several layers for every scroll frame. */
@media (max-width: 900px) {
    body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-profile-panel,
    body.auth-tab-active .auth-native-card.is-profile-mode .auth-access-tool-card,
    body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-section {
        contain: paint;
        background:
            linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018) 68%),
            color-mix(in srgb, var(--color-bg) 94%, var(--color-accent) 6%) !important;
        box-shadow: 0 9px 24px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.05) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    [data-theme="light"] body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-profile-panel,
    [data-theme="light"] body.auth-tab-active .auth-native-card.is-profile-mode .auth-access-tool-card,
    [data-theme="light"] body.auth-tab-active .auth-native-card.is-profile-mode .auth-account-section {
        background: linear-gradient(145deg, #ffffff, color-mix(in srgb, #ffffff 90%, var(--color-accent) 10%)) !important;
        box-shadow: 0 9px 24px rgba(44,32,69,0.08), inset 0 1px 0 rgba(255,255,255,0.72) !important;
    }
}

/* 2026 My Songs --------------------------------------------------------- */
body.my-songs-view-active .main-content {
    background:
        radial-gradient(circle at 48% -10%, var(--color-accent-soft), transparent 36%),
        transparent;
}

.my-songs-dashboard-header {
    position: relative;
    isolation: isolate;
    width: min(100%, 1480px);
    min-height: 300px;
    box-sizing: border-box;
    margin: 0 auto 18px;
    padding: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(330px, 480px);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: clamp(26px, 3vw, 40px);
    color: #fff;
    background:
        linear-gradient(118deg, rgba(18,12,28,0.98), rgba(70,18,93,0.91) 55%, rgba(17,17,38,0.98)),
        var(--color-bg-glass);
    box-shadow: 0 28px 72px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
}

.my-songs-dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 42%, rgba(198,61,255,0.29), transparent 31%),
        radial-gradient(circle at 50% 116%, rgba(88,88,238,0.2), transparent 40%),
        linear-gradient(105deg, rgba(0,0,0,0.14), transparent 56%, rgba(101,82,221,0.12));
}

.my-songs-dashboard-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: -235px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255,255,255,0.018), 0 0 0 82px rgba(255,255,255,0.012);
    pointer-events: none;
}

.my-songs-dashboard-heading {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.my-songs-dashboard-heading h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-family: 'Kanit', var(--font-family);
    font-size: clamp(3rem, 5vw, 5.35rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.my-songs-dashboard-art {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 450px);
    height: 220px;
}

.my-songs-art-disc {
    position: absolute;
    left: 38px;
    top: 17px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background:
        radial-gradient(circle, #c74bed 0 8%, #18101f 9% 15%, transparent 16%),
        repeating-radial-gradient(circle, #1a101f 0 4px, #392043 5px 7px);
    box-shadow: 0 28px 48px rgba(0,0,0,0.34);
}

.my-songs-art-disc i {
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.my-songs-art-cover {
    position: absolute;
    z-index: 2;
    left: 165px;
    top: 20px;
    display: grid;
    place-items: center;
    width: 178px;
    height: 178px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,0.23), transparent 27%),
        linear-gradient(145deg, #be36ed, #7136df 57%, #261538);
    box-shadow: 0 30px 55px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.13);
    transform: rotate(5deg);
}

.my-songs-art-cover > i {
    font-size: 74px;
}

.my-songs-art-wave {
    position: absolute;
    z-index: 4;
    right: 5px;
    top: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 124px;
    height: 72px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 22px;
    background: rgba(15,10,27,0.72);
    box-shadow: 0 20px 38px rgba(0,0,0,0.32);
    backdrop-filter: blur(16px);
}

.my-songs-art-wave i {
    width: 5px;
    border-radius: 99px;
    background: linear-gradient(180deg, #fff, #d153f3);
}

.my-songs-art-wave i:nth-child(1),
.my-songs-art-wave i:nth-child(7) { height: 18px; }
.my-songs-art-wave i:nth-child(2),
.my-songs-art-wave i:nth-child(6) { height: 34px; }
.my-songs-art-wave i:nth-child(3),
.my-songs-art-wave i:nth-child(5) { height: 48px; }
.my-songs-art-wave i:nth-child(4) { height: 28px; }

.my-songs-art-upload {
    position: absolute;
    z-index: 5;
    right: 76px;
    bottom: 3px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #8c46ed, #ce3dde);
    box-shadow: 0 18px 34px rgba(0,0,0,0.32);
    font-size: 32px;
    transform: rotate(-6deg);
}

body.my-songs-view-active #contentControls,
body.my-songs-view-active .my-songs-manager {
    width: min(100%, 1480px);
    max-width: 1480px;
    box-sizing: border-box;
    margin-inline: auto;
}

body.my-songs-view-active .content-controls.my-songs-controls-active {
    margin: 0 auto 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.my-songs-view-active .content-controls.my-songs-controls-active #mySongsFilterRoot {
    width: auto;
    min-width: 0;
    padding: 0;
    justify-content: flex-start;
}

body.my-songs-view-active .content-controls.my-songs-controls-active .my-songs-filter {
    width: auto;
    min-width: 0;
    margin: 0;
    order: initial;
    border-color: rgba(255,255,255,0.11);
    background: rgba(0,0,0,0.12);
}

body.my-songs-view-active .content-controls.my-songs-controls-active .search-bar {
    width: 100%;
    min-height: 48px;
    margin: 0;
    order: initial;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.my-songs-view-active .content-controls.my-songs-controls-active .search-bar:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.my-songs-view-active .my-songs-manager {
    padding: 0 0 128px;
}

body.my-songs-view-active .my-songs-manager-filter {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    box-shadow: 0 14px 35px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.my-songs-view-active .my-songs-manager-filter .my-songs-filter {
    width: auto;
    min-width: 0;
    margin: 0;
    justify-self: start;
    border-color: rgba(255,255,255,0.11);
    background: rgba(0,0,0,0.12);
}

body.my-songs-view-active .my-songs-manager-search {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    margin: 0;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.055);
}

body.my-songs-view-active .my-songs-manager-search:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 4px var(--color-accent-faint);
}

body.my-songs-view-active .my-songs-head {
    padding: clamp(22px, 3vw, 34px);
    padding-bottom: clamp(34px, 4vw, 46px);
    border-color: rgba(255,255,255,0.12);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022) 68%),
        color-mix(in srgb, var(--color-bg) 76%, transparent);
    box-shadow: 0 20px 48px rgba(0,0,0,0.17), inset 0 1px 0 rgba(255,255,255,0.055);
    backdrop-filter: blur(20px) saturate(130%);
}

body.my-songs-view-active .my-songs-head-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border-color: rgba(255,255,255,0.17);
    background: linear-gradient(145deg, var(--color-accent), var(--color-accent-light));
    box-shadow: 0 15px 30px var(--color-accent-soft);
    font-size: 30px;
}

body.my-songs-view-active .my-songs-head h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.25rem);
    letter-spacing: -0.025em;
}

body.my-songs-view-active .my-songs-head #mySongsUploadToggle {
    min-height: 48px;
    padding-inline: 20px;
    border-radius: 16px;
}

body.my-songs-view-active .my-songs-quota-track {
    position: relative;
    z-index: 2;
    width: calc(100% - 48px);
    height: 7px;
    margin: -25px 24px 20px;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,0.09);
}

body.my-songs-view-active .my-songs-form {
    padding: clamp(20px, 3vw, 32px);
    border-color: rgba(255,255,255,0.12);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.022) 68%),
        color-mix(in srgb, var(--color-bg) 76%, transparent);
    box-shadow: 0 20px 48px rgba(0,0,0,0.17), inset 0 1px 0 rgba(255,255,255,0.055);
    backdrop-filter: blur(20px) saturate(130%);
}

body.my-songs-view-active .my-songs-manager .my-songs-list {
    gap: 10px;
}

body.my-songs-view-active .my-songs-manager .my-songs-item {
    min-height: 72px;
    box-sizing: border-box;
    padding: 9px 12px;
    border-color: rgba(255,255,255,0.11);
    border-radius: 20px;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018) 64%),
        color-mix(in srgb, var(--color-bg) 70%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

@media (hover: hover) and (pointer: fine) {
body.my-songs-view-active .my-songs-manager .my-songs-item:hover {
    border-color: rgba(255,255,255,0.2);
    background:
        linear-gradient(115deg, rgba(255,255,255,0.1), rgba(255,255,255,0.028) 64%),
        color-mix(in srgb, var(--color-bg) 67%, transparent);
}
}

body.my-songs-view-active .my-songs-manager .my-songs-cover {
    width: 54px;
    height: 54px;
    border-radius: 15px;
}

@media (max-width: 900px) {
    .my-songs-dashboard-header {
        min-height: 250px;
        grid-template-columns: minmax(0, 1fr) 290px;
        padding: 28px 30px;
        border-radius: 28px;
    }

    .my-songs-dashboard-heading h1 {
        font-size: clamp(2.65rem, 7vw, 4rem);
    }

    .my-songs-dashboard-art {
        width: 310px;
        transform: scale(0.82);
        transform-origin: center right;
    }
}

@media (max-width: 1180px) {
    body.my-songs-view-active .content-controls.my-songs-controls-active {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.my-songs-view-active .content-controls.my-songs-controls-active #mySongsFilterRoot {
        justify-content: center;
    }

    body.my-songs-view-active .my-songs-manager-filter {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.my-songs-view-active .my-songs-manager-filter .my-songs-filter {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .my-songs-dashboard-header {
        min-height: 205px;
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 8px;
        margin-bottom: 12px;
        padding: 23px 19px;
        border-radius: 23px;
    }

    .my-songs-dashboard-heading h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 0.94;
    }

    .my-songs-dashboard-art {
        width: 285px;
        transform: scale(0.54);
        transform-origin: center right;
    }

    body.my-songs-view-active .my-songs-manager {
        padding: 0 0 108px;
    }

    body.my-songs-view-active .my-songs-head {
        padding: 18px 17px 38px;
        border-radius: 23px;
    }

    body.my-songs-view-active .my-songs-head-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 25px;
    }

    body.my-songs-view-active .my-songs-quota-track {
        width: calc(100% - 34px);
        margin: -24px 17px 16px;
    }

    body.my-songs-view-active .my-songs-form {
        padding: 17px;
        border-radius: 23px;
    }

    body.my-songs-view-active .my-songs-manager .my-songs-item {
        border-radius: 17px;
    }

    body.my-songs-view-active .content-controls.my-songs-controls-active {
        margin-bottom: 18px;
        padding: 8px;
        border-radius: 18px;
    }

    body.my-songs-view-active .content-controls.my-songs-controls-active #mySongsFilterRoot,
    body.my-songs-view-active .content-controls.my-songs-controls-active .my-songs-filter {
        width: 100%;
    }

    body.my-songs-view-active .content-controls.my-songs-controls-active .search-bar {
        min-height: 44px;
    }

    body.my-songs-view-active .my-songs-manager-filter {
        margin-bottom: 18px;
        padding: 8px;
        border-radius: 18px;
    }

    body.my-songs-view-active .my-songs-manager-filter .my-songs-filter,
    body.my-songs-view-active .my-songs-manager-search {
        width: 100%;
    }

    body.my-songs-view-active .my-songs-manager-search {
        min-height: 44px;
    }
}

[data-theme="light"] body.my-songs-view-active .my-songs-head,
[data-theme="light"] body.my-songs-view-active .my-songs-form,
[data-theme="light"] body.my-songs-view-active .my-songs-manager .my-songs-item {
    border-color: rgba(54,35,72,0.11);
    background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.54));
    box-shadow: 0 20px 48px rgba(44,32,69,0.1);
}

[data-theme="light"] body.my-songs-view-active .content-controls.my-songs-controls-active {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.7);
}

[data-theme="light"] body.my-songs-view-active .content-controls.my-songs-controls-active .my-songs-filter,
[data-theme="light"] body.my-songs-view-active .content-controls.my-songs-controls-active .search-bar {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.58);
}

[data-theme="light"] body.my-songs-view-active .my-songs-manager-filter {
    border-color: rgba(54,35,72,0.11);
    background: rgba(255,255,255,0.7);
}

[data-theme="light"] body.my-songs-view-active .my-songs-manager-filter .my-songs-filter,
[data-theme="light"] body.my-songs-view-active .my-songs-manager-search {
    border-color: rgba(54,35,72,0.12);
    background: rgba(255,255,255,0.58);
}
