﻿/* ===== PLAYER NORMAL ===== */
#player_normal {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: none;           /* 🔥 OCULTO INICIALMENTE */
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    padding: 0;
    margin: 0;
    color: white;
    z-index: 900;
    opacity: 0;
    transform: translateY(70%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#player_normal.showing {
    display: flex;           /* 🔥 PREPARA PARA APARECER */
}

#player_normal.active {
    opacity: 1;              /* 🔥 FADE IN */
    transform: translateY(0%); /* 🔥 SLIDE UP */
}

#player_normal2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 0;
    margin: 0;
    color: white;
    z-index: 1000;
}

/* ===== PLAYER COMPACTO ===== */
.player_compact {
    display: none;           /* 🔥 OCULTO INICIALMENTE */
    flex-direction: column;
    width: 40px;
    height: 200px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    position: fixed;
    bottom: 20px;
    right: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: #111;
    color: white;
    z-index: 2000;
}

/* ===== RESTANTE DO CSS (mantenha igual) ===== */
.player_controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
    background-color: #000;
    width: 95%;
    max-width: 650px;
    gap: 23px;
}

.control-buttons {
    display: flex;
    gap: 20px;
}

.control-buttons button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.control-buttons button:hover {
    transform: scale(1.2);
    color: #ffcc00;
}

#div_timer {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    gap: 2px;
}

#cuTimer,
#slashTimer,
#toTimer {
    margin: 0 1px;
}

#progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    margin: 0;
    cursor: pointer;
}

#progress-bar::-webkit-progress-bar {
    background-color: #333;
    border-radius: 5px;
}

#progress-bar::-webkit-progress-value {
    background-color: #00ffcc;
    border-radius: 5px;
}

.vertical-progress-bar {
    height: 200px;
    width: 6px;
    position: absolute;
    transform: rotate(-180deg);
    left: 0;
    bottom: 0;
    background-color: #333;
}

.vertical-progress-fill {
    width: 100%;
    height: 0%;
    background-color: #00ffcc;
    transition: height 0.2s;
}

#repeat_button,
#repeat_button_compact {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

#repeat_button.active,
#repeat_button_compact.active {
    color: #00ff00;
}

#repeat_button:hover,
#repeat_button_compact:hover {
    color: #ffd700;
    transform: scale(1.1);
}

#toggle-compact {
    width: 25px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 20px;
    margin-left: 10px;
    vertical-align: -4px;
}

#shareButton {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 20px;
    margin-left: 10px;
    vertical-align: -4px;
}

#shareButton svg,
#toggle-compact svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    transition: stroke 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#shareButton:hover svg,
#toggle-compact:hover svg {
    transform: scale(1.1);
    stroke: var(--btn-hover);
}

.volume {
    display: flex;
    align-items: center;
    position: relative;
}

.volume .icon-size {
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 23px;
}

.volume .bar-hoverbox {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    width: 10px;
    height: 120px;
    background: #999;
    border-radius: 5px;
    overflow: hidden;
    transition: opacity 0.2s;
    cursor: pointer;
}

.volume:hover .bar-hoverbox {
    opacity: 1;
}

.volume .bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ddd;
}

.volume .bar-fill {
    width: 100%;
    height: 50%;
    background: #3498db;
    position: absolute;
    bottom: 0;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
}

button:focus {
    outline: none;
}

#info {
    overflow: hidden;
    width: 100%;
    height: 20px;
    white-space: nowrap;
    text-align: left;
    position: relative;
    z-index: 1000;
}

.scrolling-text {
    width: 100%;
    animation: marquee 35s linear infinite;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    white-space: nowrap;
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

#play_button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: transform 0.2s ease, color 0.3s ease;
}

#play_button:hover {
    transform: scale(1.2);
    color: #00ffcc;
}

#play_button i {
    pointer-events: none;
}

#play_button:focus,
#play_button:active {
    color: white;
    outline: none;
}

/* ===== DESTAQUE DA MÚSICA ATIVA ===== */
.dark-pop-card.activeTrack {
    background: linear-gradient(135deg, #ff4081 0%, #7b1fa2 100%) !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.7) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.dark-pop-card.activeTrack .music-link {
    color: #fff !important;
    font-weight: bold;
}

.dark-pop-card.activeTrack .copy-icon {
    color: #fff !important;
}

html {
    scroll-behavior: smooth;
}