/* ОСНОВНОЙ ФОН */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #281D55;
    color: #E1E1E1;
}

/* ШАПКА */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #dbe6ff;
    font-size: 18px;
}

.nav-link.active {
    font-weight: bold;
    color: #ffffff;
}

.username-btn {
    color: #fffff0;
    font-size: 18px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.25s ease;
}

.username-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ЛОГАУТ */
.logout-btn {
    display: inline-block;
    padding: 10px 22px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 260px;
    height: calc(100vh - 80px - 80px);
    overflow-y: auto;
    background: #111;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #E1E1E1;
    border-bottom: 2px solid rgba(31, 59, 112, 0.2);
    padding-bottom: 8px;
}

.cat-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #E1E1E1;
    border-radius: 6px;
    transition: 0.2s;
}

.cat-link:hover {
    background: rgba(31, 59, 112, 0.08);
}

.cat-link.active {
    background: rgba(0, 0, 225, 0.25);
    font-weight: bold;
    color: #FAFEF0;
}

/* КОНТЕНТ */
.content-area {
    position: absolute;
    top: 80px;
    bottom: 80px;
    left: 260px;
    right: 0;
    overflow-y: auto;
    padding: 30px;
}

.page-title,
.content-area h1 {
    margin: 0 0 25px;
    font-size: 32px;
    font-weight: 600;
}

/* АЛЬБОМЫ */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.album-scroll-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.album-scroll-row::-webkit-scrollbar {
    display: none;
}

.album-card {
    flex: 0 0 auto;
    width: 160px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    transform: translateX(40px);
}

.album-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.album-card.active {
    transform: translateY(-10px) scale(1.05);
}

.album-cover {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.album-title {
    margin-top: 8px;
    font-size: 16px;
}

/* ТРЕКИ */
.track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #181818;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.track:hover {
    background: #222;
}

.track.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #4da3ff;
    padding-left: 10px;
}

.track.active p {
    color: #4da3ff;
}

.track-icon {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 18px;
    height: 18px;
    gap: 2px;
}

.track-icon .bar {
    width: 3px;
    height: 4px;
    background: #1ED760;
    border-radius: 2px;
}

.track-icon.eq-anim .bar1 {
    animation: eq1 0.9s infinite ease-in-out;
}
.track-icon.eq-anim .bar2 {
    animation: eq2 0.9s infinite ease-in-out;
}
.track-icon.eq-anim .bar3 {
    animation: eq3 0.9s infinite ease-in-out;
}

@keyframes eq1 {
    0%, 100% { height: 5px; }
    50% { height: 16px; }
}

@keyframes eq2 {
    0%, 100% { height: 10px; }
    50% { height: 6px; }
}

@keyframes eq3 {
    0%, 100% { height: 7px; }
    50% { height: 14px; }
}

/* ЛАЙКИ */
.like {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    pointer-events: auto;
}

.like:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.like.liked {
    background: rgba(29, 185, 84, 0.15);
    color: #1db954;
    transform: scale(1.15);
}

.like-count {
    margin-left: 5px;
    font-size: 14px;
    opacity: 0.8;
    color: #ccc;
    pointer-events: auto;
}

/* ПЛЕЕР */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #111;
    color: #4682B4;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    box-sizing: border-box;
}

.player-cover img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.player-info {
    flex: 1;
    margin-left: 15px;
    font-size: 16px;
}

/* ПРОГРЕСС */
.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 20px;
}

#progressBar {
    flex: 1;
    appearance: none;
    height: 4px;
    background: #444;
    border-radius: 2px;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1ED760;
    border-radius: 50%;
}

#currentTime,
#duration {
    font-size: 14px;
    color: #ccc;
    width: 40px;
    text-align: center;
}

/* КНОПКИ ПЛЕЕРА */
.player-controls {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 10;
}

.player-btn {
    background: #222;
    border: none;
    color: #fff;
    padding: 10px 14px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.player-btn:hover {
    background: #333;
}

/* PLAY / PAUSE SVG */
.player-btn.play {
    background: #1ED760;
    color: #000;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(.25, 1.5, .5, 1), background 0.15s ease;
}

.player-btn.play:hover {
    transform: scale(1.08);
    background: #1fdf64;
}

.player-btn.play:active {
    transform: scale(0.90);
}

.player-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: #000;
    pointer-events: none;
    overflow: visible;
}


/* МОБИЛЬНАЯ ВЕРСИЯ — оставляю как есть, только без конфликтов */
@media (max-width: 768px) {
    .top-nav {
        height: 60px;
        padding: 0 12px;
    }

    .logo {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -260px;
        width: 240px;
        max-width: 80vw;
        height: 100dvh;
        background: #111;
        padding: 70px 16px 90px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .sidebar.open {
        left: 0;
    }

    .content-area {
        position: fixed;
        top: 60px;
        bottom: 96px;
        left: 0;
        right: 0;
        padding: 16px 12px 20px;
        overflow-y: auto;
    }

    .player-bar {
        min-height: 86px;
        padding: 8px 10px 10px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 8px;
    }

    .player-cover img {
        width: 48px;
        height: 48px;
    }

    .player-btn.play {
        width: 40px;
        height: 40px;
    }
}

.player-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: #000;
    pointer-events: none;
}
