/*player music + radio ZeRg ZP*/
.player-container { 
            background:linear-gradient(181deg, #009688, #4CAF50);
            border-radius: 24px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            transition: transform 0.3s ease;
            padding: 20px;
            margin: 0 auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .player-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        /* Audio Visualizer Canvas */
        #visualizer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #visualizer.active {
            opacity: 0.7;
        }

        .content-wrapper {
            position: relative;
            z-index: 2;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Album Cover */
        .album-cover {
            width: 120px;
            height: 120px;
            border-radius: 16px;
            margin: 10px 0 15px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
            position: relative;
            animation: cover-pulse 2s infinite ease-in-out;
        }

        .album-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @keyframes cover-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }

        .song-info {
            text-align: center;
            margin: 12px 0 8px;
            width: 100%;
        }

        .song-title {
            font-size: clamp(14px, 4vw, 18px);
            font-weight: 600;
            margin-bottom: 4px;
            opacity: 0.95;
            letter-spacing: -0.2px;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .song-artist {
            font-size: clamp(12px, 3vw, 15px);
            font-weight: 400;
            opacity: 0.8;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: clamp(15px, 5vw, 25px);
            margin: 15px 0 12px;
            width: 100%;
        }

        .prev, .next, .play-pause {
            position: relative;
            overflow: hidden;
        }

        .prev::before, .next::before, .play-pause::before {
            content:  "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            z-index: 0;
        }

        .prev:hover::before, .next:hover::before, .play-pause:hover::before {
            width: 300px;
            height: 300px;
        }

        .prev, .next {
            font-size: clamp(16px, 5vw, 22px);
            color: #e0e0ff;
            cursor: pointer;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            z-index: 1;
        }

        .prev:hover, .next:hover {
            transform: scale(1.15);
        }

        .play-pause-container {
            position: relative;
           
        }

        .play-pause {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(145deg, #3a3a5a, #2a2a4a);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
            z-index: 2;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .play-pause:hover {
            transform: scale(1.1);
            box-shadow: 0 0 25px rgba(100, 100, 200, 0.4);
        }

        .play-pause:active {
            transform: scale(0.95);
        }

        .play-pause i {
            font-size: clamp(16px, 5vw, 24px);
            color: #e0e0ff;
            transition: transform 0.2s ease;
            position: relative;
            z-index: 1;
        }

        .progress-ring {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-sizing: border-box;
            z-index: 1;
        }

        /* Volume Control with Track */
        .volume-control {
            display: flex;
            align-items: center;
            gap: clamp(8px, 3vw, 12px);
            margin: 15px 0 10px;
            width: 50%;
            padding: 0 clamp(5px, 2vw, 10px);
            position: relative;
        }

        .volume-control i {
            font-size: clamp(12px, 3vw, 16px);
            color: rgba(224, 224, 255, 0.8);
        }

        .volume-track {
            flex: 1;
            height: clamp(3px, 1vw, 5px);
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }

        .volume-progress {
            height: 100%;
            background: linear-gradient(90deg, #4a9fff, #88c0ff);
            border-radius: 2px;
            width: 70%;
            transition: width 0.1s ease;
        }

        .volume-slider {
            -webkit-appearance: none;
            width: 100%;
            height: clamp(0px, 0vw, 0px);
            background: transparent;
            outline: none;
            position: absolute;
            top: 2px;
            left: 0;
            cursor: pointer;
            z-index: 2;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: clamp(10px, 3vw, 14px);
            height: clamp(10px, 3vw, 14px);
            border-radius: 50%;
            background: linear-gradient(145deg, #e0e0ff, #a0a0cc);
            cursor: pointer;
            box-shadow: 0 0 clamp(5px, 2vw, 10px) rgba(160, 160, 204, 0.5);
            transition: all 0.2s ease;
            border: 1px solid rgba(0, 0, 0, 0.2);
        }

        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 clamp(8px, 3vw, 15px) rgba(160, 160, 204, 0.7);
        }

        .time-display {
            display: flex;
            justify-content: space-between;
            font-size: clamp(10px, 2.5vw, 13px);
            font-weight: 500;
            color: rgba(224, 224, 255, 0.75);
            margin: 8px 0 0;
            width: 100%;
            padding: 0 clamp(10px, 3vw, 20px);
            letter-spacing: 0.3px;
        }

        .current-time, .total-time {
            font-family: 'Segoe UI', system-ui, sans-serif;
            font-size: clamp(10px, 2.5vw, 13px);
            color: rgba(224, 224, 255, 0.75);
        }

        /* Responsive breakpoints */
        @media (max-width: 768px) {
            
            .player-container { 
                padding: 15px;
            }
            
            .album-cover {
                width: 100px;
                height: 100px;
                margin: 8px 0 12px;
            }
        }

        @media (max-width: 480px) {
            
            .player-container {
            
                padding: 12px;
            }
            
            .album-cover {
                width: 90px;
                height: 90px;
                margin: 6px 0 10px;
            }
            
            .song-info {
                margin: 10px 0 6px;
            }
            
            .controls {
                gap: 20px;
                margin: 12px 0 10px;
            }
        }

        @media (max-width: 320px) {
            .player-container {
          
                padding: 10px;
            }
            
            .album-cover {
                width: 80px;
                height: 80px;
                margin: 5px 0 8px;
            }
            
            .volume-control {
                margin: 12px 0 8px;
            }
        }
 .waveform-timer{
  font-size: 13px;
  color:#FF9800;
  text-align: center;
  user-select: none;
    }
    /* Time Display */
    .time {
      display: flex;
      justify-content: space-between;
      color: #888;
      font-size: 0.85rem;
      width: 100%;
      padding: 0 16px;
      margin-top: 4px;
    } 
 
 
/* Containerul WaveSurfer — aliniat lângă buton */
.wavesurfer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;     /* Lățime mică — suficientă pentru waveform */
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Waveform — redimensionat pentru a se potrivi vertical */
.waveform {
  width: 100% !important;
  
  margin: 0 !important;
  background: transparent !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* Loader — centrat în interiorul waveform-ului */
.waveform-loader {
  font-size: 9px;
  color: #888;
  text-align: center;
  line-height: 36px;
  font-family: inherit;
  margin: 0;
  padding: 0;
}
 
/*cod css player home - random*/
.custom-player-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: inherit;
  border: 1px solid #e9ecef;
}

.custom-player-header {
  text-align: center;
  margin-bottom: 20px;
}

.custom-player-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2d75e0;
}

.custom-track-list-container {
  padding-right: 8px;
}

.custom-track-item {
  display: flex;
  align-items: center;
  padding: 5px;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
  background:#f3f0f0;
  box-sizing: border-box; /* Aceasta linie rezolvă problema */
}

.custom-track-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.custom-track-item:hover {
  background: linear-gradient(90deg, #f1f3f4, #e9ecef);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-track-item.active {
  background: linear-gradient(90deg, #e3f2fd, #bbdefb);
}

.custom-album-container {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: 12px;
  flex-shrink: 0;
}

.custom-album-art {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.custom-track-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: none;
  background: #0096886e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

.custom-track-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #009688;
  border-color: #ffffff;
}

.custom-track-item:hover .custom-track-play-overlay,
.custom-track-item.active .custom-track-play-overlay {
  opacity: 1;
}

.custom-track-play-overlay i {
  color: #ffffff;
  font-size: 16px;
  transition: all 0.2s ease;
}

.custom-track-play-overlay:hover i {
  color: white;
  transform: scale(1.1);
}

/* Stiluri pentru butonul play din playerul mare (music_view) */
.player-container .custom-track-play-overlay {
  width: 70px;
  height: 70px;
  font-size: 24px;
}

.player-container .custom-track-item {
  background: #00008b00;
  max-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-shadow: none;
  transform: none;
  background: transparent;
}

.player-container .custom-track-item:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.player-container .custom-track-item.active {
  background: transparent;
}

/* Asigură-te că butonul play din playerul mare este centrat corect */
.player-container .custom-track-play-overlay {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
}

.custom-track-info {
  flex: 1;
  min-width: 0;
}

.custom-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 4px;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-artist {
  font-size: 13px;
  color:#607D8B;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  /*min-width: 80px;*/
  flex-shrink: 0;
}

.custom-duration {
  font-size: 13px;
  color:#009688;
  margin-bottom: 2px;
}

.custom-views {
  font-size: 12px;
  color: #adb5bd;
  white-space: nowrap;
}

/* Container general */
.mirror-download-container {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

/* Lista de linkuri */
.mirror-list {
        width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    
}
.live-indicator {
    /* display: inline-block; */
    background: #ff0000;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

/* Buton Mirror - albastru mai închis */
.mirror-button {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    background: linear-gradient(135deg, #673AB7 0%, #3F51B5 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.mirror-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

/* Iconiță */
.mirror-icon {
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textul cu scurtare automată */
.mirror-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
}

.mirror-label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mirror-url {
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    color: #FFEB3B;
}

/* Badge */
.mirror-badge {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-shrink: 0;
    gap: 8px;
}

.badge-safe {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(39, 174, 96, 0.2);
}

.badge-circle {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.circle-back {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}

.circle-chart {
    stroke:#FF5722;
    stroke-width: 2;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Responsive design cu scurtare text */
@media (max-width: 768px) {
    .mirror-download-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .mirror-list {
        gap: 10px;
    }
    
    .mirror-button {
        padding: 12px 15px;
    }
    
    .mirror-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .mirror-text {
        font-size: 13px;
    }
    
    .mirror-label {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .mirror-url {
        font-size: 11px;
    }
    
    .mirror-badge {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .mirror-button {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    
    .mirror-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .mirror-text {
        font-size: 12px;
        flex: 1;
        min-width: 0;
        margin-right: 8px;
    }
    
    .mirror-label {
        font-size: 13px;
    }
    
    .mirror-url {
        font-size: 10px;
    }
    
    .mirror-badge {
        margin-left: 0;
        margin-top: 8px;
        justify-content: flex-end;
    }
    
    .badge-safe {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .badge-circle { 
        width: 26px;
        height: 26px;
    }
}

/* === PLAYER SINGLE CU PREV/PLAY/NEXT === */

/* 📼 DISPLAY RETRO CASSETTE */
.cassette-display {
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.8);
    max-width: 100%;
}

.display-screen {
    background: #000;
    padding: 16px;
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(0, 255, 0, 0.3), 0 0 4px rgba(0, 255, 0, 0.2);
    overflow: hidden;
}

.display-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.display-row:last-child {
    margin-bottom: 0;
}

.label {
    color: #0f0;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    min-width: 70px;
    letter-spacing: 1px;
}

.value {
    color: #0f0;
    flex: 1;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.value {
    animation: flicker 2s infinite;
}

/* Facebook-style cards - in afara player*/
.facebook-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    flex-wrap: wrap;
    margin-bottom: -15px;
}

.card {
    width: 100px;
    text-align: center;
    border: none;
    background: transparent;
    color: white;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.cardw {
    width: 73%;
    text-align: center;
    border: none;
    background: transparent;
    color: white;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-2px);
}

.card .count {
    font-size: 14px;
    font-weight: 500;
    margin: 4px 0;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    padding: 4px 0;
    border-radius: 4px 4px 0 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.card .hinge {
    width: 8px;
    height: 4px;
    background: #333;
    border: 1px solid #000;
    margin: 0 auto;
    border-radius: 2px;
    z-index: 1;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card .label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    color: #fff;
    background: #000;
    border: 1px solid #000;
    padding: 2px 0;
    border-radius: 0 0 4px 4px;
    min-height: 18px;
    font-weight: 500;
    width: 100%;
    position: relative;
    z-index: 2;
}

.card .label i {
    font-size: 10px;
    color: #fff;
}

.card:hover .count {
    transform: translateY(-1px) rotate(-0.5deg);
}

.card:hover .label {
    transform: translateY(1px) rotate(0.5deg);
}

.card:hover .hinge {
    background: #555;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}