/* Track Hero Section */
.track-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem 1rem;
    border-radius: 1rem;
    background-color: rgb(var(--card));
    border: 1px solid rgba(var(--border));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
    .track-hero {
        flex-direction: row;
        align-items: flex-start;
        padding: 2.5rem;
        gap: 2.5rem;
    }
}

.track-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary), 0.1), transparent 60%);
    pointer-events: none;
}

.track-hero__artwork {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    border: 1px solid rgba(var(--border));
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
    .track-hero__artwork {
        width: 250px;
        height: 250px;
        margin-bottom: 0;
    }
}

.track-hero__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.track-hero__artwork:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.track-hero__artwork:hover img {
    transform: scale(1.08);
}

.track-hero__artwork-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.track-hero__artwork:hover .track-hero__artwork-overlay {
    opacity: 1;
}

.track-hero__play-button {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: rgb(var(--orange));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 15px rgba(var(--orange), 0.4);
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.track-hero__play-button:hover {
    transform: scale(1.1);
    background-color: rgb(var(--orange-light));
    box-shadow: 0 6px 20px rgba(var(--orange), 0.5);
}

.track-hero__play-button .la-play {
    font-size: 1.75rem;
    margin-left: 0.25rem;
}

.track-hero__info {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .track-hero__info {
        text-align: left;
    }
}

.track-hero__meta {
    margin-bottom: 1.5rem;
    position: relative;
}

.track-hero__artist {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(var(--primary));
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.track-hero__artist::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(var(--primary));
    transition: width 0.3s;
}

.track-hero__artist:hover {
    color: rgb(var(--blue-light));
}

.track-hero__artist:hover::after {
    width: 100%;
}

.track-hero__separator {
    margin: 0 0.5rem;
    color: rgb(var(--muted-foreground));
}

.track-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: rgb(var(--foreground));
    display: inline-block;
}

@media (min-width: 768px) {
    .track-hero__title {
        font-size: 2.25rem;
    }
}

.track-hero__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    background-color: rgba(var(--foreground), 0.03);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--border));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .track-hero__details {
        grid-template-columns: repeat(4, 1fr);
    }
}

.track-hero__detail {
    display: flex;
    flex-direction: column;
}

.track-hero__detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--muted-foreground));
    margin-bottom: 0.375rem;
}

.track-hero__detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(var(--foreground));
}

.track-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .track-hero__actions {
        justify-content: flex-start;
    }
}

.track-hero__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.track-hero__action-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.track-hero__action-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.track-hero__action-btn:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
}

.track-hero__action-btn--play {
    background-color: rgb(var(--orange));
    color: white;
    box-shadow: 0 4px 10px rgba(var(--orange), 0.3);
}

.track-hero__action-btn--play:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 6px 15px rgba(var(--orange), 0.4);
    background-color: rgb(var(--orange-light));
}

.track-hero__action-btn--download {
    background-color: rgb(var(--secondary));
    color: rgb(var(--secondary-foreground));
    border: 1px solid rgba(var(--border));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.track-hero__action-btn--download:hover {
    background-color: rgb(var(--accent));
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.track-hero__action-btn--favorite {
    background-color: transparent;
    color: rgb(var(--foreground));
    border: 1px solid rgba(var(--border));
}

.track-hero__action-btn--favorite:hover {
    background-color: rgba(var(--foreground), 0.05);
    transform: translateY(-0.25rem);
}

/* Lyrics Section */
.section--lyrics {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--border));
    padding-bottom: 0.75rem;
    position: relative;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: rgb(var(--foreground));
    display: flex;
    align-items: center;
    margin: 0;
    position: relative;
    padding-left: 0.75rem;
}

.section-marker {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: rgb(var(--primary));
    border-radius: 2px;
}

.lyrics {
    background-color: rgb(var(--card));
    padding: 1.75rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--border));
    line-height: 1.6;
    font-size: 1.05rem;
    white-space: pre-line;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 0;
    position: relative;
}

.lyrics p {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.lyrics p:first-child {
    margin-top: 0;
}

.lyrics p:last-child {
    margin-bottom: 0;
}

.lyrics br {
    display: none;
}

.lyrics p:empty {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
}

/* Other Songs Section */
.section--artist-songs,
.section--similar-songs {
    margin-bottom: 3rem;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: rgb(var(--card));
    border: 1px solid rgba(var(--border));
    transition: transform 0.3s, box-shadow 0.3s;
}

.track-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.track-item__rank {
    background-color: rgb(var(--orange));
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.75rem;
}

.track-item__artwork {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-right: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.track-item__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.track-item:hover .track-item__artwork img {
    transform: scale(1.1);
}

.track-item__play {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.track-item:hover .track-item__play {
    opacity: 1;
}

.track-item__play-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgb(var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.track-item__info {
    flex: 1;
    min-width: 0;
}

.track-item__title {
    font-weight: 600;
    color: rgb(var(--foreground));
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item__title:hover {
    color: rgb(var(--primary));
}

.track-item__artist {
    font-size: 0.8125rem;
    color: rgb(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s;
}

.track-item__artist:hover {
    color: rgb(var(--primary));
}

.track-item__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.track-item__duration {
    font-size: 0.8125rem;
    color: rgb(var(--muted-foreground));
    white-space: nowrap;
}

.track-item__action {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: rgba(var(--foreground), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--foreground));
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-decoration: none;
}

.track-item__action:hover {
    background-color: rgb(var(--primary));
    color: white;
    transform: translateY(-2px);
}

/* Modal Styles */
.dark-modal {
    background-color: rgb(var(--card));
    color: rgb(var(--foreground));
    border: 1px solid rgba(var(--border));
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.dark-modal .modal-header {
    border-bottom: 1px solid rgba(var(--border));
    padding: 1.25rem 1.5rem;
    background-color: rgba(var(--foreground), 0.02);
}

.dark-modal .modal-title {
    color: rgb(var(--foreground));
    font-weight: 700;
}

.dark-modal .close {
    color: rgb(var(--muted-foreground));
    text-shadow: none;
    opacity: 1;
    transition: color 0.3s;
}

.dark-modal .close:hover {
    color: rgb(var(--foreground));
}

.dark-modal .modal-body {
    padding: 1.5rem;
}

.dark-modal .modal-footer {
    border-top: 1px solid rgba(var(--border));
    padding: 1.25rem 1.5rem;
}

.dark-modal label {
    color: rgb(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.custom-input {
    background-color: rgb(var(--card));
    border: 1px solid rgba(var(--border));
    color: rgb(var(--foreground));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-input:focus {
    background-color: rgb(var(--card));
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.15);
    color: rgb(var(--foreground));
}

.custom-file-label {
    background-color: rgb(var(--card));
    border: 1px solid rgba(var(--border));
    color: rgb(var(--muted-foreground));
    border-radius: 0.5rem;
}

.custom-file-label::after {
    background-color: rgb(var(--secondary));
    color: rgb(var(--secondary-foreground));
    border-radius: 0 0.5rem 0.5rem 0;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 0.2rem rgba(var(--primary), 0.25);
}

.btn-secondary {
    background-color: rgb(var(--secondary));
    border-color: rgb(var(--secondary));
    color: rgb(var(--secondary-foreground));
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-secondary:hover {
    background-color: rgb(var(--accent));
    border-color: rgb(var(--accent));
    transform: translateY(-2px);
}

.custom-btn {
    background-color: rgb(var(--orange));
    border: none;
    color: white;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.custom-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgb(var(--orange-light));
}

.custom-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.custom-btn:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
}

.form-group {
    margin-bottom: 1.25rem;
}

.copyright-footer {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid rgba(var(--border));
    text-align: center;
}

.copyright-footer__content {
    max-width: 600px;
    margin: 0 auto;
}

.copyright-footer__link {
    background: none;
    border: none;
    color: rgb(var(--muted-foreground));
    font-size: 13px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, transform 0.3s;
    cursor: pointer;
}

.copyright-footer__link:hover {
    color: rgb(var(--foreground));
    transform: translateY(-2px);
}

.copyright-footer__icon {
    margin-right: 6px;
    opacity: 0.7;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--orange), 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(var(--orange), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--orange), 0);
    }
}

.js-item-played .track-item__play-icon {
    animation: pulse 2s infinite;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(var(--foreground), 0.05) 25%,
        rgba(var(--foreground), 0.1) 50%,
        rgba(var(--foreground), 0.05) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 0.375rem;
}

/* Fade-in Animation for Content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .track-hero {
        padding: 1.5rem 1rem;
    }

    .track-hero__artwork {
        width: 180px;
        height: 180px;
    }

    .track-hero__title {
        font-size: 1.5rem;
    }

    .track-hero__details {
        padding: 1rem;
    }

    .track-hero__action-btn {
        width: 100%;
        justify-content: center;
    }

    .lyrics {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .track-item {
        padding: 0.625rem 0.875rem;
    }

    .track-item__artwork {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.75rem;
    }

    .track-item__title {
        font-size: 0.875rem;
    }

    .track-item__artist {
        font-size: 0.75rem;
    }

    .track-item__duration {
        font-size: 0.75rem;
    }

    .track-item__action {
        width: 2rem;
        height: 2rem;
    }
}

/* Добавляем стили для аудио плеера */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(var(--card));
    border-top: 1px solid rgba(var(--border));
    padding: 0.75rem 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.audio-player.active {
    transform: translateY(0);
}

.audio-player__artwork {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.audio-player__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-player__info {
    flex: 1;
    min-width: 0;
}

.audio-player__title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: rgb(var(--foreground));
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player__artist {
    font-size: 0.8125rem;
    color: rgb(var(--muted-foreground));
}

.audio-player__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-player__play-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgb(var(--orange));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.audio-player__play-btn:hover {
    background-color: rgb(var(--orange-light));
    transform: scale(1.05);
}

.audio-player__progress {
    flex: 1;
    height: 4px;
    background-color: rgba(var(--foreground), 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.audio-player__progress-bar {
    height: 100%;
    background-color: rgb(var(--orange));
    width: 0;
    transition: width 0.1s linear;
}

.audio-player__time {
    font-size: 0.75rem;
    color: rgb(var(--muted-foreground));
    white-space: nowrap;
    min-width: 3.5rem;
    text-align: center;
}

.audio-player__volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-player__volume-icon {
    color: rgb(var(--foreground));
    cursor: pointer;
}

.audio-player__volume-slider {
    width: 80px;
    height: 4px;
    background-color: rgba(var(--foreground), 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.audio-player__volume-level {
    height: 100%;
    background-color: rgb(var(--primary));
    width: 100%;
}

@media (max-width: 767px) {
    .audio-player {
        padding: 0.5rem 0.75rem;
    }

    .audio-player__artwork {
        width: 2.5rem;
        height: 2.5rem;
    }

    .audio-player__title {
        font-size: 0.875rem;
    }

    .audio-player__artist {
        font-size: 0.75rem;
    }

    .audio-player__play-btn {
        width: 2rem;
        height: 2rem;
    }

    .audio-player__volume {
        display: none;
    }
}
