/* ===== MUSIC PLAYER ===== */
.player-section {
    padding: 3rem 0 4rem;
    background: #110d0a;
}

.player-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    background: #1a1410;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(212, 197, 181, 0.06);
}

/* ===== PLAYER CONTAINER ===== */
.player-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.player-artwork {
    flex-shrink: 0;
}

.player-artwork img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.player-controls {
    flex: 1;
    min-width: 0;
}

.player-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0e6dc;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-info p {
    font-size: 0.9rem;
    color: #8a7a6a;
    margin-bottom: 0.75rem;
}

/* ===== TIMELINE ===== */
.player-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.player-time {
    font-size: 0.75rem;
    color: #8a7a6a;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(212, 197, 181, 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: #c97a5e;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== BUTTONS ===== */
.player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4c5b5;
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.player-btn:hover {
    background: rgba(212, 197, 181, 0.08);
    color: #f0e6dc;
    transform: scale(1.05);
}

.player-btn.play-btn {
    width: 52px;
    height: 52px;
    background: #c97a5e;
    color: #0d0a08;
    font-size: 1.2rem;
}

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

.player-btn.active-btn {
    color: #c97a5e;
}

/* ===== VOLUME ===== */
.player-volume {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-volume i {
    color: #8a7a6a;
    font-size: 0.9rem;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: rgba(212, 197, 181, 0.15);
    border-radius: 2px;
    cursor: pointer;
    max-width: 100px;
}

.volume-fill {
    height: 100%;
    background: #c97a5e;
    border-radius: 2px;
    width: 80%;
}

/* ===== PLAYLIST ===== */
.playlist {
    border-left: 1px solid rgba(212, 197, 181, 0.06);
    padding-left: 2rem;
}

.playlist h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a7a6a;
    margin-bottom: 0.75rem;
}

.playlist ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.playlist ul::-webkit-scrollbar {
    width: 4px;
}

.playlist ul::-webkit-scrollbar-track {
    background: transparent;
}

.playlist ul::-webkit-scrollbar-thumb {
    background: rgba(212, 197, 181, 0.2);
    border-radius: 2px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    color: #b0a090;
    font-size: 0.9rem;
}

.playlist-item:hover {
    background: rgba(212, 197, 181, 0.05);
    color: #f0e6dc;
}

.playlist-item.active {
    background: rgba(201, 122, 94, 0.12);
    color: #f0e6dc;
}

.playlist-item.active .playlist-number {
    color: #c97a5e;
}

.playlist-number {
    font-weight: 600;
    font-size: 0.75rem;
    color: #8a7a6a;
    min-width: 24px;
}

.playlist-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-duration {
    font-size: 0.75rem;
    color: #8a7a6a;
}

.playlist-play {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #c97a5e;
}

.playlist-item:hover .playlist-play,
.playlist-item.active .playlist-play {
    opacity: 1;
}

.playlist-item.active .playlist-play i {
    display: inline;
}

/* ===== FULL PLAYER (Music Page) ===== */
.full-player {
    grid-template-columns: 1fr 1fr;
}

.full-player .player-container {
    flex-direction: column;
    text-align: center;
}

.full-player .player-artwork img {
    width: 240px;
    height: 240px;
}

.full-player .player-controls {
    width: 100%;
}

.full-player .player-buttons {
    gap: 1rem;
}

.full-player .player-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.full-player .player-btn.play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
}

.full-player .playlist ul {
    max-height: 400px;
}

.full-player .playlist-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .player-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .playlist {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(212, 197, 181, 0.06);
        padding-top: 1.5rem;
    }

    .full-player .player-container {
        flex-direction: row;
        text-align: left;
    }

    .full-player .player-artwork img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        text-align: center;
    }

    .player-artwork img {
        width: 140px;
        height: 140px;
    }

    .full-player .player-container {
        flex-direction: column;
        text-align: center;
    }

    .full-player .player-artwork img {
        width: 160px;
        height: 160px;
    }

    .player-volume {
        justify-content: center;
    }

    .volume-bar {
        max-width: 80px;
    }

    .player-buttons {
        gap: 0.5rem;
    }

    .player-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .player-btn.play-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .full-player .player-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .full-player .player-btn.play-btn {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .player-wrapper {
        padding: 1rem;
    }

    .playlist-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    .player-info h3 {
        font-size: 1rem;
    }
}
/* ===== MUSIC PLAYER RESPONSIVE FIXES ===== */

/* TABLETS & SMALL LAPTOPS */
@media (max-width: 992px) {
    .player-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .playlist {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(212, 197, 181, 0.06);
        padding-top: 1.5rem;
    }

    /* Music page full player */
    .full-player .player-container {
        flex-direction: row;
        text-align: left;
    }

    .full-player .player-artwork img {
        width: 180px;
        height: 180px;
    }

    .full-player .player-buttons {
        gap: 0.75rem;
    }

    .full-player .player-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .full-player .player-btn.play-btn {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .player-wrapper {
        padding: 1rem;
        gap: 1.5rem;
        border-radius: 12px;
    }

    /* Homepage player - stack vertically */
    .player-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .player-artwork img {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    /* Music page full player - also stack vertically */
    .full-player .player-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .full-player .player-artwork img {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    /* Controls */
    .player-controls {
        width: 100%;
    }

    .player-info h3 {
        font-size: 1rem;
    }

    .player-info p {
        font-size: 0.85rem;
    }

    /* Timeline */
    .player-timeline {
        gap: 0.5rem;
    }

    .player-time {
        font-size: 0.7rem;
        min-width: 32px;
    }

    /* Buttons */
    .player-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .player-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .player-btn.play-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .full-player .player-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .full-player .player-btn.play-btn {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .full-player .player-buttons {
        gap: 0.5rem;
    }

    /* Volume */
    .player-volume {
        justify-content: center;
        gap: 0.5rem;
    }

    .volume-bar {
        max-width: 80px;
        min-width: 50px;
    }

    /* Playlist */
    .playlist h4 {
        font-size: 0.75rem;
        text-align: center;
    }

    .playlist ul {
        max-height: 180px;
        gap: 0.15rem;
    }

    .playlist-item {
        font-size: 0.8rem;
        padding: 0.45rem 0.5rem;
        gap: 0.5rem;
    }

    .playlist-number {
        font-size: 0.65rem;
        min-width: 20px;
    }

    .playlist-duration {
        font-size: 0.65rem;
    }

    .full-player .playlist-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }

    .full-player .playlist ul {
        max-height: 250px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .player-wrapper {
        padding: 0.75rem;
        border-radius: 10px;
        gap: 1rem;
    }

    .player-artwork img {
        width: 110px;
        height: 110px;
    }

    .full-player .player-artwork img {
        width: 120px;
        height: 120px;
    }

    .player-info h3 {
        font-size: 0.85rem;
    }

    .player-info p {
        font-size: 0.75rem;
    }

    .player-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .player-btn.play-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .full-player .player-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .full-player .player-btn.play-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .player-buttons {
        gap: 0.3rem;
    }

    .full-player .player-buttons {
        gap: 0.3rem;
    }

    .player-timeline {
        gap: 0.35rem;
    }

    .player-time {
        font-size: 0.6rem;
        min-width: 28px;
    }

    .volume-bar {
        max-width: 60px;
        min-width: 40px;
    }

    .playlist-item {
        font-size: 0.7rem;
        padding: 0.35rem 0.35rem;
        gap: 0.35rem;
    }

    .playlist-number {
        font-size: 0.55rem;
        min-width: 16px;
    }

    .playlist-duration {
        font-size: 0.55rem;
    }

    .full-player .playlist-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.4rem;
    }

    .playlist ul {
        max-height: 150px;
    }

    .full-player .playlist ul {
        max-height: 200px;
    }

    /* Progress bar - make it more touch-friendly */
    .progress-bar {
        height: 6px;
    }

    .progress-bar:hover {
        height: 6px;
    }

    .progress-fill::after {
        width: 14px;
        height: 14px;
        right: -7px;
        top: -4px;
    }

    .volume-bar {
        height: 6px;
    }

    .playlist-item .playlist-play {
        font-size: 0.6rem;
    }
}

/* EXTRA SMALL */
@media (max-width: 360px) {
    .player-artwork img {
        width: 90px;
        height: 90px;
    }

    .full-player .player-artwork img {
        width: 100px;
        height: 100px;
    }

    .player-btn {
        width: 26px;
        height: 26px;
        font-size: 0.6rem;
    }

    .player-btn.play-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .full-player .player-btn {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .full-player .player-btn.play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .playlist-item {
        font-size: 0.6rem;
        padding: 0.25rem 0.25rem;
        gap: 0.25rem;
    }

    .playlist-number {
        font-size: 0.5rem;
        min-width: 14px;
    }

    .playlist-duration {
        font-size: 0.5rem;
    }

    .player-info h3 {
        font-size: 0.75rem;
    }
}