.music-page {
    background: linear-gradient(180deg, #0d141d 0%, #162232 100%);
    color: #e5f1ff;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 120px;
}

.music-player {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.player-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
}

@media (min-width: 768px) {
    .player-main {
        grid-template-columns: 250px 1fr;
        grid-template-rows: 1fr auto;
    }
}

.music-page .navbar {
    background: #0a1017;
    border-bottom: 1px solid #26384d;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.music-page .navbar nav {
    background: transparent;
    order: initial;
}

.music-page .navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.music-page .navbar h1 {
    margin: 0;
    color: #ecf6ff;
    font-size: 24px;
    line-height: 1.2;
}

.music-page .navbar a {
    color: #c8f2ff;
    background: #112435;
    border-radius: 8px;
}

.music-page .navbar a:hover {
    background: #17384f;
    color: #74ddff;
}

.music-page .music-app {
    width: min(1200px, calc(100% - 24px));
    margin: 18px auto 24px;
    display: grid;
    grid-template-columns: 230px 1fr 280px;
    gap: 16px;
    align-items: start;
    flex: 1 0 auto;
}

.music-page .card {
    background: linear-gradient(145deg, #131f2c, #101a25);
    border: 1px solid #2c4358;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
    padding: 16px;
}

.music-page .music-sidebar h2,
.music-page .music-main h2,
.music-page .music-right h3 {
    margin: 0 0 12px;
    color: #ebf6ff;
}

.music-page .filter-group {
    display: grid;
    gap: 8px;
}

.music-page .filter-btn {
    border: 1px solid #2f4f68;
    background: #122739;
    color: #bcecff;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.music-page .filter-btn.active,
.music-page .filter-btn:hover {
    background: #1a3a52;
    border-color: #4fdbff;
}

.music-page .helper-text {
    margin-top: 12px;
    color: #9cb6cb;
    font-size: 13px;
    line-height: 1.5;
}

.music-page .upload-box {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #2f455a;
    text-align: left;
}

.music-page .upload-box h3 {
    margin: 0;
    color: #e6f3ff;
    font-size: 16px;
}

.music-page .upload-note {
    margin-top: 8px;
}

.music-page .upload-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.music-page .upload-form label {
    font-size: 12px;
    font-weight: 700;
    color: #a8c8e3;
}

.music-page .upload-form input[type="text"],
.music-page .upload-form input[type="file"] {
    width: 100%;
    border: 1px solid #315068;
    background: #0f2232;
    color: #d8ecff;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
}

.music-page .upload-form input:focus {
    outline: 2px solid #54ddff;
    outline-offset: 2px;
}

.music-page .upload-status {
    margin-top: 10px;
    min-height: 18px;
}

.music-page .upload-progress-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.music-page .upload-progress-wrap progress {
    width: 100%;
    height: 10px;
}

.music-page .upload-progress-wrap span {
    font-size: 12px;
    color: #9bd8f0;
    font-weight: 700;
}

.music-page .hero {
    background: linear-gradient(135deg, #132536, #1b3147);
    border: 1px solid #2f4f67;
    border-radius: 14px;
    text-align: left;
    padding: 16px;
    margin-bottom: 14px;
}

.music-page .hero p {
    margin: 8px 0 0;
    color: #a8c2d8;
    font-size: 14px;
}

.music-page .discovery-tools {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.music-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.music-page .search-input {
    width: 100%;
    border: 1px solid #315068;
    background: #0f2232;
    color: #d8ecff;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
}

.music-page .search-input:focus {
    outline: 2px solid #54ddff;
    outline-offset: 2px;
}

.music-page .chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.music-page .chip-btn {
    border: 1px solid #32536a;
    background: #122739;
    color: #bcecff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.music-page .chip-btn:hover,
.music-page .chip-btn.active {
    background: #1a3a52;
    border-color: #4fdbff;
}

.music-page .list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.music-page .list-head h3 {
    margin: 0;
}

.music-page .pill {
    background: #12293c;
    border: 1px solid #31506a;
    color: #a9dff5;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.music-page .track-list,
.music-page .recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-list {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
}

.track-list .title {
    font-weight: 600;
}

.track-list .actions,
.track-list .track-actions {
    text-align: right;
}

.music-page .track-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #2f455b;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #132232;
}

.music-page .track-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.music-page .track-row.active {
    border-color: #4fdcff;
    background: #1a3348;
    box-shadow: 0 0 0 rgba(90, 134, 224, 0.25);
    animation: activeTrackPulse 2s ease-in-out infinite;
}

.music-page .track-row.now-playing .track-cover {
    box-shadow: 0 0 0 3px rgba(79, 220, 255, 0.25);
}

.music-page .track-main {
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.music-page .track-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #33556c;
}

.music-page .track-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-page .track-text strong {
    color: #e9f5ff;
    font-size: 14px;
}

.music-page .track-text small {
    color: #9bb8ce;
    font-size: 12px;
}

.music-page .row-like,
.music-page .icon-btn,
.music-page .play-btn {
    border: 1px solid #33556d;
    background: #132a3d;
    border-radius: 10px;
    color: #bdeeff;
    cursor: pointer;
    padding: 8px 10px;
    text-decoration: none;
    font-weight: 700;
}

.music-page .row-like {
    margin-right: 0;
}

.music-page .row-owner-btn {
    border: 1px solid #3a607a;
    background: #18324a;
    color: #c5edff;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
}

.music-page .row-owner-btn.delete {
    border-color: #a25c5c;
    background: #3a1f24;
    color: #ffb4b4;
}

.music-page .row-owner-btn:hover {
    background: #20415d;
}

.music-page .row-owner-btn.delete:hover {
    background: #532b31;
}

.music-page .icon-btn.active,
.music-page .icon-btn:hover,
.music-page .play-btn:hover,
.music-page .row-like:hover {
    background: #1c3e58;
    border-color: #53ddff;
}

.music-page .recent-btn {
    width: 100%;
    border: 1px solid #2f4a62;
    background: #14293b;
    color: #bbeeff;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.music-page .recent-btn:hover {
    background: #1a354b;
}

.music-page .empty-state {
    color: #a3b8cb;
    font-style: italic;
    margin-top: 8px;
    text-align: left;
}

.music-page .now-playing-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 16, 24, 0.96);
    border-top: 1px solid #284157;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 1.1fr 1.7fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    z-index: 50;
}

.music-page .np-left,
.music-page .np-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-page .np-cover {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #33556d;
}

.music-page.playing .np-cover {
    animation: coverGlow 2.6s ease-in-out infinite;
}

.music-page .np-meta {
    text-align: left;
}

.music-page .np-title {
    font-weight: 700;
    color: #e7f5ff;
}

.music-page .np-artist {
    font-size: 12px;
    color: #a3bfd3;
}

.music-page .np-center {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-page .transport {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.music-page .play-btn {
    min-width: 46px;
    font-size: 18px;
}

.music-page .seek-row {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 8px;
    color: #a7c2d6;
    font-size: 12px;
}

.music-page .progress,
.music-page #volume {
    width: 100%;
    accent-color: #3fd7ff;
}

.music-page .progress {
    --progress-pct: 0%;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    border: 1px solid #365a74;
    background: linear-gradient(to right, #38d6ff 0%, #38d6ff var(--progress-pct), #24394b var(--progress-pct), #24394b 100%);
    transition: background 180ms ease;
}

.music-page .progress::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #42dcff;
    border: 1px solid #0e1e2a;
    box-shadow: 0 1px 6px rgba(30, 57, 105, 0.25);
}

.music-page .progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #42dcff;
    border: 1px solid #0e1e2a;
    box-shadow: 0 1px 6px rgba(30, 57, 105, 0.25);
}

.music-page .status-msg {
    margin: 0;
    min-height: 16px;
    color: #9cb9cf;
    font-size: 12px;
}

.music-page .np-right label {
    font-size: 12px;
    color: #a1bbcf;
}

.music-page .site-footer {
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
    position: static;
}

.music-page .icon-btn:focus,
.music-page .play-btn:focus,
.music-page .track-main:focus,
.music-page .recent-btn:focus,
.music-page .filter-btn:focus,
.music-page .row-like:focus,
.music-page .chip-btn:focus {
    outline: 2px solid #56deff;
    outline-offset: 2px;
}

@keyframes activeTrackPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 133, 218, 0.22);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(91, 133, 218, 0.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(91, 133, 218, 0.2);
    }
}

@keyframes coverGlow {
    0% {
        box-shadow: 0 0 0 rgba(89, 138, 224, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(89, 138, 224, 0.08);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 0 rgba(89, 138, 224, 0.18);
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .music-page *,
    .music-page *::before,
    .music-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1024px) {
    .music-page .music-app {
        grid-template-columns: 1fr;
    }

    .music-page .now-playing-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .music-page .np-left,
    .music-page .np-right {
        justify-content: center;
    }

    .music-page .np-meta {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .music-page .navbar {
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .music-page .navbar h1 {
        font-size: 20px;
    }

    .music-page .navbar ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .music-page .music-app {
        width: calc(100% - 12px);
        margin: 10px auto 18px;
        gap: 10px;
    }

    .music-page .card {
        padding: 12px;
    }

    .music-page .site-footer {
        margin-top: auto;
    }

    .music-page {
        padding-bottom: 170px;
    }
}
