/* ===== СТРАНИЦЫ ===== */
.page {
    display: none;
    animation: pageIn 0.3s ease forwards;
}

.page.active {
    display: block;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ПЛЕЙСХОЛДЕР ДЛЯ СТРАНИЦ В РАЗРАБОТКЕ ===== */
.page-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 60vh;
    background: rgba(30, 15, 18, 0.3);
    border-radius: 24px;
    border: 1px dashed rgba(255, 50, 50, 0.15);
}

.page-placeholder i {
    font-size: 56px;
    color: #ff444444;
    margin-bottom: 20px;
}

.page-placeholder h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e0d0d0;
    margin-bottom: 8px;
}

.page-placeholder p {
    color: #8a757a;
    font-size: 15px;
    margin-bottom: 20px;
}

.page-placeholder .badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-radius: 20px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Адаптив */
@media (max-width: 420px) {
    .page-placeholder {
        padding: 40px 16px;
        min-height: 50vh;
    }
    .page-placeholder i {
        font-size: 42px;
    }
    .page-placeholder h2 {
        font-size: 20px;
    }
    .page-placeholder p {
        font-size: 14px;
    }
}
/* ===== ТРЕКИ ДНЯ ===== */
.tracks-day-page {
    padding-bottom: 20px;
}

.tracks-day-page .page-title {
    font-size: 24px;
    font-weight: 600;
    color: #f0e8e8;
    margin-bottom: 4px;
}

.tracks-day-page .page-sub {
    color: #8a757a;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== АЛЬБОМЫ В ТРЕКАХ ДНЯ ===== */
.album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.album-card-day {
    background: rgba(30, 15, 18, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 50, 50, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-card-day:active {
    transform: scale(0.97);
    background: rgba(255, 50, 50, 0.05);
}

.album-card-day .cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    background: #1a0d10;
    overflow: hidden;
    margin-bottom: 8px;
}

.album-card-day .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card-day .cover .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #4a3a3a;
    background: linear-gradient(135deg, #1a0d10, #2a1518);
}

.album-card-day .title {
    font-size: 14px;
    font-weight: 500;
    color: #f0e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-day .artist {
    font-size: 12px;
    color: #8a757a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== ДЕТАЛЬНЫЙ ПРОСМОТР АЛЬБОМА ===== */
.album-detail {
    display: none;
    animation: fadeIn 0.3s ease;
}

.album-detail.active {
    display: block;
}

.album-detail .back-btn {
    background: none;
    border: none;
    color: #6a555a;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 16px 0;
    font-family: inherit;
}

.album-detail .back-btn:active {
    color: #ff6b6b;
}

.album-detail .detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.album-detail .detail-cover {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a0d10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.album-detail .detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-detail .detail-cover .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #4a3a3a;
    background: linear-gradient(135deg, #1a0d10, #2a1518);
}

.album-detail .detail-info {
    flex: 1;
    min-width: 200px;
}

.album-detail .detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #f0e8e8;
    line-height: 1.2;
}

.album-detail .detail-artist {
    font-size: 14px;
    color: #b5a0a0;
    margin-top: 4px;
}

.album-detail .detail-artist strong {
    color: #f0e8e8;
}

.album-detail .detail-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #6a555a;
}

.album-detail .detail-tracks {
    margin-top: 16px;
}

.album-detail .detail-tracks .track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.album-detail .detail-tracks .track-item:active {
    background: rgba(255, 50, 50, 0.05);
    transform: scale(0.98);
}

.album-detail .detail-tracks .track-item .num {
    color: #4a3a3a;
    font-size: 13px;
    width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.album-detail .detail-tracks .track-item .info {
    flex: 1;
    min-width: 0;
}

.album-detail .detail-tracks .track-item .info .name {
    font-size: 15px;
    color: #f0e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-detail .detail-tracks .track-item .info .artists {
    font-size: 12px;
    color: #6a555a;
}

.album-detail .detail-tracks .track-item .duration {
    font-size: 13px;
    color: #4a3a3a;
    font-variant-numeric: tabular-nums;
}

.album-detail .detail-tracks .track-item .play-icon {
    color: #6a555a;
    font-size: 16px;
    transition: color 0.2s;
}

.album-detail .detail-tracks .track-item:active .play-icon {
    color: #ff6b6b;
}

.album-detail .detail-tracks .track-item .explicit {
    font-size: 11px;
    color: #ff4444;
    margin-left: 4px;
}

/* ===== ПОИСК ===== */
.search-page {
    padding-bottom: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.search-bar:focus-within {
    border-color: rgba(255, 50, 50, 0.3);
}

.search-bar i {
    color: #4a3a3a;
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    padding: 14px 0;
    background: transparent;
    border: none;
    color: #f0e8e8;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: #4a3a3a;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.search-result-item:active {
    background: rgba(255, 50, 50, 0.05);
    transform: scale(0.98);
}

.search-result-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff6b6b;
    flex-shrink: 0;
    background: rgba(255, 50, 50, 0.05);
}

.search-result-item .icon.artist {
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    color: #0a0508;
    font-size: 14px;
    font-weight: 600;
}

.search-result-item .info {
    flex: 1;
    min-width: 0;
}

.search-result-item .info .title {
    font-size: 15px;
    color: #f0e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .info .sub {
    font-size: 12px;
    color: #6a555a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .info .type {
    font-size: 10px;
    color: #4a3a3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 10px;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #4a3a3a;
}

.search-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    color: #2a1a1a;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 420px) {
    .album-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .album-detail .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .album-detail .detail-cover {
        width: 140px;
        height: 140px;
    }
    .album-detail .detail-title {
        font-size: 24px;
    }
    .album-detail .detail-meta {
        justify-content: center;
    }
    .search-bar input {
        font-size: 14px;
        padding: 12px 0;
    }
}

@media (max-width: 360px) {
    .album-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .album-card-day .title {
        font-size: 12px;
    }
    .album-card-day .artist {
        font-size: 10px;
    }
}