/* ==============================
   Base Reset & Body
   ============================== */

@font-face {
    font-family: 'malawian';
    src: url('CharterRegular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    font-family: sans-serif;
    margin: 0;
    overflow: hidden;
}

/* ==============================
   Canvas (dark inset container)
   ============================== */

.canvas {
    background-color: #2d2d2d;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==============================
   Nav Area
   ============================== */

.nav-area {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 24px;
    position: relative;
    z-index: 10;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    width: 100%;
}

.nav-logo {
    height: 30px;
    margin-right: 12px;
    cursor: pointer;
}

.nav-area a {
    color: #999;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-area a:hover,
.nav-area a.active {
    color: #fff;
}

.nav-links {
    display: contents;
}

/* ==============================
   User Auth Section (in nav)
   ============================== */

.user-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.user-auth a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.user-auth a:hover {
    color: #fff;
}

.user-auth .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    color: #ccc;
}

.user-auth .user-info .user-name {
    color: #ddd;
    font-size: 13px;
}

.user-auth .user-info .user-meta {
    font-size: 11px;
    color: #888;
}

.user-auth .user-info .user-meta a {
    color: #888;
    font-size: 11px;
}

.user-auth .user-info .user-meta a:hover {
    color: #fff;
}

.user-auth .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.fullscreen-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    margin-left: 8px;
}

.fullscreen-btn:hover {
    color: #fff;
}

/* Fullscreen mode — remove margins, overlay footer */
body.fs-mode {
    background-color: #2d2d2d;
}

body.fs-mode .canvas {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: none;
}

body.fs-mode .footer {
    left: 0;
    right: 0;
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

/* ==============================
   Search Icon & Search Bar
   ============================== */

.search-icon {
    margin-left: 12px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    flex-shrink: 0;
}

.search-icon:hover {
    color: #fff;
}

.search-bar {
    display: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar.open {
    display: flex;
    justify-content: center;
}

.search-bar form {
    display: flex;
    width: 350px;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: #666;
}

.search-bar input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.search-bar .btn-search {
    padding: 10px 16px;
    background: #444;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar .btn-search:hover {
    background: #555;
}


/* ==============================
   Mobile Menu
   ============================== */

.menu-toggle {
    display: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    color: #fff;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #999;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fff;
}

.mobile-menu .mobile-sub-label {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    padding-bottom: 0;
}

.mobile-menu .mobile-sub-link {
    padding-left: 12px;
    font-size: 13px;
}

/* ==============================
   Content Area (white bg for child templates)
   ============================== */

.content-area {
    flex: 1;
    overflow-y: auto;
    background-color: #2d2d2d;
    color: #ddd;
    position: relative;
    z-index: 1;
}

/* ==============================
   Card Grid (from newLook.html)
   ============================== */

.music-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: min-content;
    gap: 24px;
    padding: 10px 0 20px;
}

.music-card {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    transition: box-shadow 0.3s;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    outline: 1px solid rgba(255, 255, 255, 0.12);
}

.music-card:hover {
    box-shadow: 0 0 20px rgba(0, 200, 80, 0.5);
}

.music-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    filter: saturate(0.4);
    transition: filter 0.3s;
}

.music-card:hover img {
    filter: saturate(1.2);
}

.music-card-stats {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.music-card-stat {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: sans-serif;
    font-size: 11px;
    padding: 3px 7px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.music-card-stat svg {
    width: 12px;
    height: 12px;
}

.music-card-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.music-card-title {
    color: #fff;
    background: #000;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-radius: 4px 4px 0 0;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card-artist {
    color: #222;
    background: #fff;
    font-family: sans-serif;
    font-size: 14px;
    margin-top: -6px;
    padding: 3px 8px;
    border-radius: 0 4px 4px 0;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Now-playing card highlight */
.music-card.now-playing {
    outline: 2px solid #4caf50;
}

.music-card.now-playing img {
    filter: saturate(1);
}

.music-card.now-playing .music-card-artist {
    background: orangered;
    color: #fff;
}

/* ==============================
   Footer
   ============================== */

.footer {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 24px;
    font-family: sans-serif;
    font-size: 13px;
    color: #999;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #333;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* ==============================
   Utility Classes (used by child templates)
   ============================== */

.flex-div {
    display: flex;
}

.cover-image {
    background-position: center;
    background-size: cover;
    margin-top: 5px;
}

.contain-image {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 5px;
}

.faint-hr {
    border-color: rgba(255, 255, 255, 0.1);
    border-style: solid;
    margin-top: 4px;
    margin-bottom: 4px;
}

.song-details {
    padding-left: 10px;
    margin-top: 5px;
    width: calc(100% - 50px);
    color: #0153b1;
    font-size: 13px;
}

.song-art {
    width: 50px;
    height: 50px;
    border-radius: 20px;
}

.song_link {
    width: calc(100% - 30px);
    text-decoration: none;
    cursor: pointer;
}

.action-box {
    width: 30px;
    margin-top: 6px;
}

.main_content_container {
    padding: 20px;
}

/* ==============================
   Artist Profile
   ============================== */

.artist-profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.artist-profile-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 5px;
    width: 210px;
    height: 200px;
    min-width: 210px;
    position: relative;
    flex-shrink: 0;
}

.artist-verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.artist-profile-info {
    min-width: 200px;
    flex: 1;
}

.artist-profile-about {
    max-height: 125px;
    overflow: auto;
}

.picture_icon {
    margin-bottom: 20px;
    border-radius: 1px;
    width: 260px;
    height: 250px;
    min-width: 250px;
    margin-left: 20px;
}

.song_number {
    padding-left: 10px;
    padding-right: 10px;
    width: 30px;
    color: darkgray;
}

.song_number_active {
    padding-left: 10px;
    padding-right: 10px;
    width: 30px;
    color: orangered;
}

.rank {
    width: 20px;
    margin-top: 10px;
    font-weight: bold;
}

.audio_player_simple {
    width: 100%;
    padding: 0%;
    margin: 0%;
    height: 20px;
    padding-bottom: 20px;
}

.play-pause-player {
    width: 40px;
    height: 40px;
    padding-right: 10px;
    cursor: pointer;
}

.download-player {
    height: auto;
    width: 100px;
}

.audio-controls-mobile {
    width: 100%;
    margin-left: -10px;
}

.flexer-player {
    width: calc(100% - 40px - 100px - 100px);
}

.time-player {
    width: 100px;
    text-align: right;
    font-size: larger;
    padding-top: 5px;
}

.song-item-control {
    width: 20px;
    height: 20px;
}

/* ==============================
   Charts Page
   ============================== */

.charts-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.charts-content.no-tabs {
    padding-top: 0;
}

.chart-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-tab {
    padding: 10px 24px;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.chart-tab:hover {
    color: #ccc;
}

.chart-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.chart-tab .tab-count {
    color: #555;
    font-size: 11px;
    margin-left: 6px;
}

.chart-tab.active .tab-count {
    color: #888;
}

.chart-section {
    display: none;
}

.chart-section.active {
    display: flex;
    gap: 32px;
}

.chart-featured {
    width: 50%;
    flex-shrink: 0;
    align-self: stretch;
    overflow: visible;
}

.chart-featured.third {
    width: 33.333%;
}

.chart-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.5);
    transition: filter 0.4s;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 50%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 50%, transparent 100%);
}

.chart-featured:hover img {
    filter: saturate(1.1);
}

.chart-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chart-list.two-col {
    display: block;
    columns: 2;
    column-gap: 32px;
}

.chart-list.two-col .chart-row {
    break-inside: avoid;
}

.chart-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.chart-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.chart-row:hover .chart-art img {
    filter: saturate(1.2);
}

.chart-rank {
    width: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
}

.chart-rank.gold { color: #d4af37; }
.chart-rank.silver { color: #c0c0c0; }
.chart-rank.bronze { color: #b87333; }

.chart-trend {
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    font-size: 8px;
    margin-right: 2px;
}

.chart-trend.up { color: #4caf50; }
.chart-trend.down { color: #e53935; }
.chart-trend.same { color: #555; font-size: 11px; }
.chart-trend.new-entry { color: #2196f3; font-size: 7px; font-weight: 600; }

.chart-art {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-right: 12px;
    overflow: hidden;
    outline: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.4);
    transition: filter 0.3s;
}

.chart-info {
    flex: 1;
    min-width: 0;
}

.chart-title {
    color: #eee;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-artist {
    color: #777;
    font-size: 11px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 12px;
    padding-right: 5px;
}

.chart-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 10px;
}

.chart-stat-item svg {
    width: 10px;
    height: 10px;
}

.featured-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.featured-heading {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.chart-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.chart-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.chart-page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chart-page-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

/* ==============================
   Mobile Responsive
   ============================== */

@media (max-width: 768px) {
    .canvas {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        box-shadow: none;
    }

    .footer {
        left: 0;
        right: 0;
        height: 60px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 0 16px;
        background: rgba(45, 45, 45, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 10;
        color: rgba(255, 255, 255, 0.6);
    }

    .footer a {
        color: rgba(255, 255, 255, 0.6);
    }

    .footer a:hover {
        color: #fff;
    }

    body {
        background-color: #2d2d2d;
    }

    .fullscreen-btn {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-inner {
        width: 100%;
        justify-content: space-between;
    }

    .nav-inner .search-icon {
        margin-left: auto;
    }

    .user-auth {
        display: none;
    }

    .search-bar form {
        width: 100%;
    }

    .music-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        padding: 10px 12px 12px;
    }

    /* Artist profile mobile */
    .artist-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .artist-profile-img {
        width: 160px;
        height: 160px;
        min-width: 160px;
        border-radius: 50%;
    }

    .artist-profile-info {
        min-width: unset;
    }

    .artist-profile-about {
        max-height: none;
        text-align: left;
        margin-top: 4px;
    }

    /* Charts mobile */
    .canvas.charts-page {
        bottom: 50px;
    }

    .charts-content {
        padding: 16px 12px;
        padding-bottom: 60px;
    }

    .charts-content.no-tabs {
        padding-top: 0;
    }

    .chart-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: center;
        background: #1a1a1a;
        margin-bottom: 0;
        border-bottom: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
        height: 50px;
        align-items: center;
    }

    .chart-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .chart-tab .tab-count {
        display: none;
    }

    .chart-section.active {
        flex-direction: column;
        gap: 0;
    }

    .chart-featured,
    .chart-featured.third {
        display: none;
    }

    .chart-list.two-col {
        columns: 1;
    }

    .chart-stats {
        display: none;
    }

    .newPlayer {
        display: none !important;
    }
}

/* ==============================
   Mobile Full-Screen Player
   ============================== */

.mobile-player {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    justify-content: space-between;
    font-family: sans-serif;
    overflow: hidden;
}

.mobile-player.active {
    display: flex;
}

/* Blurred background image */
.mp-bg {
    position: absolute;
    inset: -40px;
    z-index: 0;
}

.mp-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.1);
}

/* Top info section — lighter blur */
.mp-top {
    position: relative;
    z-index: 1;
    padding: 20px 24px 16px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.mp-close {
    position: absolute;
    top: 16px;
    left: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
}

.mp-close:hover {
    color: #fff;
}

.mp-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-artist {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center artwork */
.mp-artwork {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 24px;
}

.mp-artwork img {
    width: 65vw;
    height: 65vw;
    max-width: 320px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Waveform progress section */
.mp-progress {
    position: relative;
    z-index: 1;
    padding: 0 24px 8px;
}

.mp-waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 40px;
    cursor: pointer;
}

.mp-waveform .mp-bar {
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.15s;
}

.mp-waveform .mp-bar.played {
    background: #fff;
}

.mp-times {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 6px;
}

/* Bottom controls — heavier/darker blur */
.mp-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 24px 40px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.mp-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
}

.mp-btn:hover {
    opacity: 0.8;
}

.mp-prev,
.mp-next {
    width: 40px;
    height: 40px;
}

.mp-play {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50%;
}

/* Hide player on desktop */
@media (min-width: 769px) {
    .mobile-player {
        display: none !important;
    }
}

/* Song page: let canvas blur show through */
.song-page-active .content-area {
    background-color: transparent;
}

.song-page-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--song-bg) center/cover no-repeat;
    filter: blur(60px) brightness(0.3);
    z-index: 0;
    pointer-events: none;
}

/* ==============================
   Song Detail Page
   ============================== */

.song-page {
    position: relative;
    min-height: 100%;
}

.song-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--song-bg) center/cover no-repeat;
    filter: blur(60px) brightness(0.3);
    z-index: 0;
    pointer-events: none;
}

.song-page > * {
    position: relative;
    z-index: 1;
}

.song-desktop {
    padding: 20px;
}

.song-hero {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.song-hero-art {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 2px;
}

.song-hero-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.song-hero-info {
    flex: 0;
}

.song-hero-title {
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 4px;
}

.song-hero-album {
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 6px;
}

.song-hero-artist {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
}

.song-hero-stats {
    font-size: 16px;
    color: #888;
    margin-top: 8px;
}

.song-hero-stats span {
    color: #e53935;
}

.song-download-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.song-download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Desktop waveform player */
.desktop-player {
    background: transparent;
    margin-top: auto;
}

.desktop-player .dp-waveform {
    height: 50px;
    background: transparent;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    cursor: pointer;
}

.desktop-player .dp-waveform .dp-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.15s;
    transform-origin: bottom;
}

.desktop-player .dp-waveform .dp-bar.played {
    background: #fff;
}

.desktop-player .dp-waveform.playing .dp-bar {
    animation: barPulse 0.3s ease-in-out infinite alternate;
}

@keyframes barPulse {
    0%   { transform: scaleY(1); }
    100% { transform: scaleY(var(--pulse-to, 0.7)); }
}

.desktop-player .dp-controls-wrap {
    position: relative;
}

.desktop-player .dp-waveform-reflect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: flex-start;
    gap: 2px;
    transform: scaleY(-1);
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.desktop-player .dp-waveform-reflect .dp-bar-reflect {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transform-origin: bottom;
}

.desktop-player .dp-waveform-reflect .dp-bar-reflect.played {
    background: #fff;
}

.desktop-player .dp-waveform-reflect.playing .dp-bar-reflect {
    animation: barPulse 0.3s ease-in-out infinite alternate;
}

.desktop-player .dp-controls {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
}

.desktop-player .dp-play-btn {
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.desktop-player .dp-times {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.desktop-player .dp-times span:first-child {
    color: #fff;
}

/* Desktop two-column layout: left (hero+album) / right (lyrics) */
.song-body {
    display: flex;
    gap: 24px;
}

.song-body-left .section-title {
    margin-bottom: 12px;
    margin-top: 16px;
}

.song-body-left {
    flex: 1;
    min-width: 0;
}

.song-body-right {
    width: 280px;
    flex-shrink: 0;
}

/* Lyrics panel */
.lyrics-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 16px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
}

.lyrics-panel .lyrics-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-lyrics {
    display: none;
}

/* Song mobile inline player */
.mp-hero {
    display: none;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mp-page-bg {
    display: none;
    position: absolute;
    inset: -40px;
    z-index: 0;
}

.mp-page-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.1);
}

.mp-hero-top {
    position: relative;
    z-index: 1;
    padding: 16px 20px 12px;
    text-align: center;
}

.mp-hero-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-hero-artist-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    margin-top: 5px;
}

.mp-hero-artist-name a {
    color: inherit;
    text-decoration: none;
}

.mp-hero-artwork {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 20px 24px;
}

.mp-hero-artwork img {
    width: 55vw;
    height: 55vw;
    max-width: 260px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.mp-hero-progress {
    position: relative;
    z-index: 1;
    padding: 0 20px 6px;
}

.mp-hero-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 36px;
    cursor: pointer;
}

.mp-hero-waveform .mp-bar {
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.15s;
    transform-origin: bottom;
}

.mp-hero-waveform .mp-bar.played {
    background: #fff;
}

.mp-hero-waveform.playing .mp-bar {
    animation: barPulse 0.3s ease-in-out infinite alternate;
}

.mp-hero-times {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 4px;
}

.mp-hero-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 14px 20px 10px;
}

.mp-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 14px;
}

.mp-stats {
    display: flex;
    gap: 14px;
}

.mp-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.mp-stat svg {
    width: 14px;
    height: 14px;
}

.mp-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    width: fit-content;
}

.mp-download:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mp-download svg {
    width: 16px;
    height: 16px;
}

.mp-hero-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
}

.mp-hero-btn:hover { opacity: 0.8; }

.mp-hero-btn-prev,
.mp-hero-btn-next {
    width: 36px;
    height: 36px;
}

.mp-hero-btn-play {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Hide mobile-only song elements on desktop */
.mp-lower,
.mobile-content {
    display: none;
}

/* Song page mobile overrides */
@media (max-width: 768px) {
    .song-page .mp-page-bg {
        display: block;
        position: fixed;
        inset: -40px;
        z-index: 0;
    }

    .mp-hero {
        display: flex;
        position: relative;
        z-index: 1;
    }

    .song-desktop { display: none; }

    .mp-lower {
        display: block;
        position: relative;
        z-index: 1;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }

    .mobile-content {
        display: block;
        position: relative;
        z-index: 1;
        padding: 16px 14px 24px;
    }

    .mobile-content .section-title {
        margin-top: 0;
    }

    .mobile-lyrics {
        display: block;
        padding: 0 14px 16px;
    }

    .mobile-lyrics .lyrics-panel {
        max-height: 200px;
    }

    .song-body-right {
        display: none;
    }
}

/* ==============================
   Upload page – dark theme overrides
   ============================== */

.accordion-item {
    background-color: rgba(40, 40, 40, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ddd;
}

.accordion-button {
    background-color: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(60, 60, 60, 0.55);
    color: #fff;
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(0.8);
}

.accordion-body {
    background-color: rgba(35, 35, 35, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ddd;
}

.input-group-text {
    background-color: rgba(50, 50, 50, 0.5);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-control,
.form-select {
    background-color: rgba(30, 30, 30, 0.5);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(40, 40, 40, 0.6);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(100, 100, 100, 0.15);
}

.form-control::placeholder {
    color: #888;
}

.form-control:disabled {
    background-color: rgba(45, 45, 45, 0.5);
    color: #999;
}

.form-check-input {
    background-color: #444;
    border-color: #666;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.table {
    color: #ddd;
    --bs-table-bg: transparent;
    --bs-table-color: #ddd;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-striped-color: #ddd;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: #ddd;
}

.table th,
.table td {
    border-color: rgba(255, 255, 255, 0.08);
    color: #ddd;
}

.table thead th {
    color: #eee;
}

.alert-secondary {
    background-color: #3a3a3a;
    color: #ddd;
    border-color: #555;
}

.form-label {
    color: #ccc;
}

.main_content_container h5,
.main_content_container h6 {
    color: #eee;
}

.songContents {
    color: #ddd;
}

.form-check-label {
    color: #ccc;
}

.list-group-item {
    background-color: rgba(40, 40, 40, 0.6);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.08);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: rgba(60, 60, 60, 0.7);
    color: #fff;
}

.list-group-item.active {
    background-color: rgba(13, 110, 253, 0.5);
    border-color: rgba(13, 110, 253, 0.4);
    color: #fff;
}

.page-link {
    background-color: rgba(40, 40, 40, 0.6);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-link:hover {
    background-color: rgba(60, 60, 60, 0.7);
    color: #fff;
}

.invitationToClick {
    color: #999;
}

hr {
    border-color: #555;
}

/* Upload page – parallax background */
.upload-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.25);
    transform: scale(1.1);
    z-index: 0;
    pointer-events: none;
}

/* ==============================
   Playlists Page
   ============================== */

.pl-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pl-create-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 7px 18px;
    font-size: 13px;
    font-family: sans-serif;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.pl-create-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.pl-card {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.pl-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.pl-card-official {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.06);
}

.pl-card-official:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.1);
}

.pl-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.pl-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.pl-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #aaa;
}

.pl-card-icon svg {
    width: 24px;
    height: 24px;
}

.pl-card-stack {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.pl-card-stack .pl-stack-tile {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.pl-card-stack .pl-stack-tile:nth-child(1) { top: 0; left: 0; z-index: 1; }
.pl-card-stack .pl-stack-tile:nth-child(2) { top: 4px; left: 4px; z-index: 2; }
.pl-card-stack .pl-stack-tile:nth-child(3) { top: 8px; left: 8px; z-index: 3; }
.pl-card-stack .pl-stack-tile:nth-child(4) { top: 12px; left: 12px; z-index: 4; }

.pl-icon-official {
    background: rgba(212, 175, 55, 0.18);
    color: #d4af37;
}

.pl-card-body {
    flex: 1;
    min-width: 0;
}

.pl-card-name {
    color: #eee;
    font-size: 14px;
    font-weight: 500;
    font-family: sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-card-meta {
    color: #888;
    font-size: 12px;
    font-family: sans-serif;
    margin-top: 3px;
}

.pl-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.pl-rating-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.pl-rating-fill {
    display: block;
    height: 100%;
    background: #4caf50;
    border-radius: 3px;
    transition: width 0.3s;
}

.pl-rating-text {
    color: #4caf50;
    font-size: 12px;
    font-weight: 600;
    font-family: sans-serif;
}

.pl-vote-count {
    color: #777;
    font-size: 11px;
    font-family: sans-serif;
}

.pl-official-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-size: 10px;
    font-family: sans-serif;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pl-card-vote {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.pl-vote-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}

.pl-vote-btn:hover {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
}

.pl-card-settings {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.pl-card-settings:hover {
    color: #eee;
    background: rgba(255, 255, 255, 0.06);
}

/* Playlist modal */
.pl-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pl-modal-content {
    background: #333;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.pl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pl-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pl-modal-close:hover {
    color: #fff;
}

/* Playlist buttons */
.pl-btn {
    padding: 7px 18px;
    font-size: 13px;
    font-family: sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pl-btn-primary {
    background: #0d6efd;
    color: #fff;
}

.pl-btn-primary:hover {
    background: #0b5ed7;
}

.pl-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pl-btn-danger {
    background: rgba(229, 57, 53, 0.15);
    color: #e53935;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.pl-btn-danger:hover {
    background: rgba(229, 57, 53, 0.3);
}

.pl-btn-official {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.pl-btn-official:hover {
    background: rgba(212, 175, 55, 0.3);
}

.pl-btn-small {
    padding: 5px 14px;
    font-size: 12px;
    font-family: sans-serif;
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.pl-btn-small:hover {
    background: rgba(76, 175, 80, 0.3);
}

/* Playlist settings page */
.pl-settings-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 16px;
}

.pl-song-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s;
}

.pl-song-row:last-child {
    border-bottom: none;
}

.pl-song-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pl-song-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.pl-song-link:hover {
    color: inherit;
    text-decoration: none;
}

.pl-song-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pl-song-info {
    flex: 1;
    min-width: 0;
}

.pl-song-info > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-remove-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}

.pl-remove-btn:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.12);
}

.pl-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pl-search-result:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .pl-grid {
        grid-template-columns: 1fr;
    }

    .pl-card-vote {
        padding: 0 10px;
    }

    .pl-card-settings {
        padding: 0 10px;
    }
}

/* ==============================
   Playlist Track List
   ============================== */

.plt-table {
    width: 100%;
}

.plt-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 11px;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plt-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.plt-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.plt-row:hover .plt-num { display: none; }
.plt-row:hover .plt-play-icon { display: flex; }

.plt-row.plt-active {
    background: rgba(76, 175, 80, 0.08);
}

.plt-row.plt-active .plt-num { display: none; }
.plt-row.plt-active .plt-play-icon {
    display: flex;
    color: #4caf50;
}

.plt-row.plt-active .plt-song-name {
    color: #4caf50;
}

.plt-col-num {
    width: 36px;
    flex-shrink: 0;
    text-align: center;
    color: #666;
    font-size: 13px;
    font-family: sans-serif;
}

.plt-num {
    display: inline;
}

.plt-play-icon {
    display: none;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.plt-col-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plt-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.plt-info {
    min-width: 0;
    flex: 1;
}

.plt-song-name {
    color: #eee;
    font-size: 14px;
    font-family: sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plt-artist-name {
    font-size: 12px;
    font-family: sans-serif;
    margin-top: 1px;
}

.plt-artist-name a {
    color: #777;
    text-decoration: none;
}

.plt-artist-name a:hover {
    color: #aaa;
    text-decoration: underline;
}

.plt-col-stats {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    color: #777;
    font-size: 12px;
    font-family: sans-serif;
}

.plt-col-age {
    width: 90px;
    flex-shrink: 0;
    text-align: right;
    color: #666;
    font-size: 12px;
    font-family: sans-serif;
}

.plt-col-stats-stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.3;
}

.plt-table-cols {
    columns: 2;
    column-gap: 24px;
}

.plt-table-cols .plt-row {
    break-inside: avoid;
}

@media (min-width: 1600px) {
    .plt-table-cols {
        columns: 3;
    }
}

@media (max-width: 900px) {
    .plt-table-cols {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .plt-col-stats,
    .plt-col-age {
        display: none;
    }

    .plt-header {
        display: none;
    }

    .plt-row {
        padding: 6px 8px;
    }

    .plt-art {
        width: 36px;
        height: 36px;
    }
}

/* ==============================
   Playlist Player Bar
   ============================== */

.plp-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.18) saturate(1.4);
    transform: scale(1.2);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s, background-image 0.8s;
}

.plp-bg.plp-bg-visible {
    opacity: 1;
}

body.plp-active .content-area {
    background-color: transparent;
    padding-bottom: 62px;
}

.plp-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9000;
}

body.plp-active .footer {
    display: none;
}

.plp-progress-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
}

.plp-progress-wrap:hover {
    height: 6px;
}

.plp-progress-bar {
    height: 100%;
    background: #4caf50;
    width: 0;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

.plp-inner {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.plp-song-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.plp-art {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.plp-meta {
    min-width: 0;
}

.plp-title {
    color: #eee;
    font-size: 13px;
    font-family: sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plp-artist {
    color: #777;
    font-size: 11px;
    font-family: sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plp-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.plp-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.plp-btn-play {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

.plp-btn-play:hover {
    background: rgba(255, 255, 255, 0.18);
}

.plp-time {
    color: #777;
    font-size: 12px;
    font-family: sans-serif;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

@media (max-width: 768px) {
    .plp-inner {
        padding: 6px 10px;
        gap: 10px;
    }

    .plp-art {
        width: 36px;
        height: 36px;
    }

    .plp-time {
        display: none;
    }
}

/* ==============================
   Playlist Settings: Drag Reorder
   ============================== */

.pls-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.pls-move-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.pls-move-btn:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.08);
}

.pls-share-link {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #888 !important;
    cursor: default !important;
    user-select: all;
}

.pls-reorder-status {
    color: #4caf50;
    font-size: 12px;
    font-family: sans-serif;
    opacity: 0;
    transition: opacity 0.3s;
    margin-left: 8px;
}

.pls-reorder-status.visible {
    opacity: 1;
}

/* ==============================
   Chart Playlists
   ============================== */

.pl-card-chart {
    border-color: rgba(33, 150, 243, 0.3);
    background: rgba(33, 150, 243, 0.06);
}

.pl-card-chart:hover {
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(33, 150, 243, 0.1);
}

.pl-icon-chart {
    background: rgba(33, 150, 243, 0.18);
    color: #2196f3;
}

.pl-chart-badge {
    display: inline-block;
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    font-size: 10px;
    font-family: sans-serif;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==============================
   Apps Modal
   ============================== */
.mw-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 1000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.mw-modal-overlay.open { display: flex; }
.mw-modal {
    background: #1e1e2e; border-radius: 16px;
    padding: 28px; box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    max-width: 480px; width: 90%;
    animation: mw-modal-in 0.2s ease-out;
}
@keyframes mw-modal-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.mw-modal-apps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.mw-modal-app {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 18px 10px; border-radius: 12px;
    text-decoration: none; color: #e0e0e0;
    transition: background 0.2s;
}
.mw-modal-app:hover { background: #2a2a3a; }
.mw-modal-app-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mw-modal-app-name { font-size: 13px; font-weight: 500; color: #e0e0e0; text-align: center; }
