/* Survivor Music Player — player.css v1.0.2 */

/* ── Tema değişkenleri ─────────────────────────────────── */
.sap-wrap {
    --sap-bg:         #ffffff;
    --sap-bg-2:       #f5f5f5;
    --sap-text:       #111111;
    --sap-text-2:     #555555;
    --sap-text-3:     #999999;
    --sap-accent:     #111111;
    --sap-border:     rgba(0,0,0,0.12);
    --sap-radius:     12px;
    --sap-radius-sm:  6px;
}

.sap-wrap.sap-scheme-dark {
    --sap-bg:         #1a1a1a;
    --sap-bg-2:       #2a2a2a;
    --sap-text:       #f0f0f0;
    --sap-text-2:     #aaaaaa;
    --sap-text-3:     #666666;
    --sap-accent:     #f0f0f0;
    --sap-border:     rgba(255,255,255,0.12);
}

/* ── Wrapper ───────────────────────────────────────────── */
.sap-wrap {
    background:    var(--sap-bg);
    border:        1px solid var(--sap-border);
    border-radius: var(--sap-radius);
    overflow:      hidden;
    font-family:   -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    width:         100%;
    box-sizing:    border-box;
}

.sap-wrap *, .sap-wrap *::before, .sap-wrap *::after {
    box-sizing: border-box;
}

/* ── Player ana alan ───────────────────────────────────── */
.sap-player-main {
    display:     flex;
    gap:         14px;
    padding:     16px;
    align-items: flex-start;
}

/* ── Cover ─────────────────────────────────────────────── */
.sap-cover {
    width:           88px;
    height:          88px;
    border-radius:   var(--sap-radius-sm);
    flex-shrink:     0;
    overflow:        hidden;
    background:      var(--sap-bg-2);
    display:         flex;
    align-items:     center;
    justify-content: center;
    position:        relative;
}

.sap-cover img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}

.sap-cover-fallback {
    font-size:   12px;
    font-weight: 500;
    color:       var(--sap-text-3);
    text-align:  center;
    padding:     8px;
    line-height: 1.3;
}

/* Video kutusu (small mod) */
.sap-video-box {
    width:         120px;
    height:        68px;
    border-radius: var(--sap-radius-sm);
    flex-shrink:   0;
    overflow:      hidden;
    background:    #000;
}

.sap-video-box iframe {
    width:   100%;
    height:  100%;
    border:  none;
    display: block;
}

.sap-video-hidden {
    position:       absolute;
    width:          1px;
    height:         1px;
    overflow:       hidden;
    opacity:        0;
    pointer-events: none;
    top:            0;
    left:           0;
}

/* ── Sağ taraf ─────────────────────────────────────────── */
.sap-right {
    flex:      1;
    min-width: 0;
}

/* ── Track bilgisi ─────────────────────────────────────── */
.sap-track-info { margin-bottom: 10px; }

.sap-track-title {
    font-size:     15px;
    font-weight:   600;
    color:         var(--sap-text);
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
    line-height:   1.3;
}

.sap-track-artist {
    font-size:  13px;
    color:      var(--sap-text-2);
    margin-top: 2px;
}

/* ── Progress bar ──────────────────────────────────────── */
.sap-progress-row {
    display:       flex;
    align-items:   center;
    gap:           8px;
    margin-bottom: 10px;
}

.sap-time {
    font-size:  11px;
    color:      var(--sap-text-3);
    min-width:  32px;
    flex-shrink: 0;
}
.sap-time.sap-time-right { text-align: right; }

.sap-progress-track:focus-visible {
    outline:        2px solid var(--sap-accent);
    outline-offset: 2px;
}

.sap-progress-track {
    flex:          1;
    height:        3px;
    background:    var(--sap-border);
    border-radius: 2px;
    cursor:        pointer;
    position:      relative;
}

.sap-progress-fill {
    height:         100%;
    border-radius:  2px;
    background:     var(--sap-accent);
    width:          0%;
    transition:     width 0.1s linear;
    pointer-events: none;
}

.sap-progress-thumb {
    position:      absolute;
    top:           -5px;
    width:         13px;
    height:        13px;
    border-radius: 50%;
    background:    var(--sap-accent);
    transform:     translateX(-50%);
    left:          0%;
    cursor:        pointer;
    transition:    left 0.1s linear;
}

/* ── Kontroller ────────────────────────────────────────── */
.sap-controls {
    display:     flex;
    align-items: center;
    gap:         2px;
    flex-wrap:   nowrap;
}

.sap-btn {
    width:           32px;
    height:          32px;
    border:          none !important;
    background:      none !important;
    color:           var(--sap-text-2);
    border-radius:   50% !important;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      background 0.15s, color 0.15s;
    flex-shrink:     0;
    padding:         0 !important;
    margin:          0 !important;
    line-height:     1;
    box-shadow:      none !important;
    outline:         none;
}

.sap-btn:hover {
    background: var(--sap-bg-2) !important;
    color:      var(--sap-text) !important;
}
.sap-btn:focus-visible {
    outline:        2px solid var(--sap-accent);
    outline-offset: 2px;
}

.sap-btn.sap-active { color: var(--sap-accent); }

.sap-btn svg {
    width:   16px;
    height:  16px;
    fill:    currentColor;
    display: block;
    flex-shrink: 0;
}

.sap-play-btn {
    width:         36px !important;
    height:        36px !important;
    background:    var(--sap-accent) !important;
    color:         var(--sap-bg) !important;
    border-radius: 50% !important;
}
.sap-play-btn:hover {
    background: var(--sap-accent) !important;
    color:      var(--sap-bg) !important;
    opacity:    0.85;
}



/* ── Volume — TEMA İZOLASYONU ──────────────────────────── */
.sap-volume-area {
    display:     flex;
    align-items: center;
    gap:         6px;
    margin-left: auto;
}

/* Tüm tema stillerini sıfırla, sadece kendi stilimiz çalışsın */
.sap-wrap input[type="range"].sap-vol-slider {
    -webkit-appearance: none !important;
    -moz-appearance:    none !important;
    appearance:         none !important;
    width:              64px !important;
    height:             3px !important;
    border-radius:      2px !important;
    background:         var(--sap-border) !important;
    outline:            none !important;
    cursor:             pointer !important;
    border:             none !important;
    padding:            0 !important;
    margin:             0 !important;
    box-shadow:         none !important;
    vertical-align:     middle !important;
    display:            inline-block !important;
    flex-shrink:        0 !important;
    /* Webkit track */
    background-image:   none !important;
}

.sap-wrap input[type="range"].sap-vol-slider::-webkit-slider-runnable-track {
    height:        3px !important;
    background:    var(--sap-border) !important;
    border-radius: 2px !important;
    border:        none !important;
}

.sap-wrap input[type="range"].sap-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width:              13px !important;
    height:             13px !important;
    border-radius:      50% !important;
    background:         var(--sap-accent) !important;
    cursor:             pointer !important;
    border:             none !important;
    box-shadow:         none !important;
    margin-top:         -5px !important;
}

.sap-wrap input[type="range"].sap-vol-slider::-moz-range-track {
    height:        3px !important;
    background:    var(--sap-border) !important;
    border-radius: 2px !important;
    border:        none !important;
}

.sap-wrap input[type="range"].sap-vol-slider::-moz-range-thumb {
    width:         13px !important;
    height:        13px !important;
    border-radius: 50% !important;
    background:    var(--sap-accent) !important;
    cursor:        pointer !important;
    border:        none !important;
    box-shadow:    none !important;
}

.sap-wrap input[type="range"].sap-vol-slider::-ms-thumb {
    width:         13px !important;
    height:        13px !important;
    border-radius: 50% !important;
    background:    var(--sap-accent) !important;
    border:        none !important;
}

.sap-wrap input[type="range"].sap-vol-slider::-ms-track {
    height:     3px !important;
    background: transparent !important;
    border:     none !important;
    color:      transparent !important;
}

/* Video toggle btn */
.sap-video-toggle-btn { margin-left: 2px; }

/* ── CTA butonları ─────────────────────────────────────── */
.sap-cta-row {
    display:   flex;
    gap:       6px;
    flex-wrap: wrap;
    padding:   0 16px 12px;
}

.sap-cta-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    padding:         5px 11px;
    border-radius:   20px;
    border:          1px solid var(--sap-border) !important;
    background:      var(--sap-bg) !important;
    font-size:       12px;
    font-weight:     500;
    color:           var(--sap-text) !important;
    cursor:          pointer;
    transition:      background 0.15s;
    text-decoration: none !important;
    white-space:     nowrap;
    line-height:     1.4;
    box-shadow:      none !important;
}
.sap-cta-btn:hover { background: var(--sap-bg-2) !important; }

.sap-cta-dot {
    width:         9px;
    height:        9px;
    border-radius: 50%;
    flex-shrink:   0;
    display:       inline-block;
}

/* ── Ayraç ─────────────────────────────────────────────── */
.sap-divider {
    height:     1px;
    background: var(--sap-border);
    margin:     0;
}

/* ── Playlist header ───────────────────────────────────── */
.sap-playlist-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         8px 16px;
    cursor:          pointer;
    background:      var(--sap-bg-2);
    user-select:     none;
}

.sap-playlist-label {
    font-size:      11px;
    font-weight:    600;
    color:          var(--sap-text-3);
    letter-spacing: 0.05em;
}

.sap-playlist-chevron {
    color:       var(--sap-text-3);
    font-size:   11px;
    transition:  transform 0.2s;
    display:     inline-block;
    line-height: 1;
}
.sap-playlist-chevron.open { transform: rotate(180deg); }

/* ── Playlist ──────────────────────────────────────────── */
.sap-playlist {
    overflow:   hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}
.sap-playlist.open {
    max-height:  300px; /* varsayılan — Elementor selector override eder */
    overflow-y:  auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sap-border) transparent;
}

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

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

.sap-playlist.open::-webkit-scrollbar-thumb {
    background:    var(--sap-text-3);
    border-radius: 2px;
}

.sap-playlist.open::-webkit-scrollbar-thumb:hover {
    background: var(--sap-text-2);
}

/* Track satırı */
.sap-track-row {
    display:     flex;
    align-items: center;
    gap:         10px;
    padding:     8px 16px;
    cursor:      pointer;
    transition:  background 0.1s;
}
.sap-track-row:hover           { background: var(--sap-bg-2); }
.sap-track-row:focus-visible   { outline: 2px solid var(--sap-accent); outline-offset: -2px; }
.sap-track-row.sap-row-active  { background: var(--sap-bg-2); }

.sap-track-thumb {
    width:           36px;
    height:          36px;
    border-radius:   var(--sap-radius-sm);
    flex-shrink:     0;
    overflow:        hidden;
    background:      var(--sap-bg-2);
    display:         flex;
    align-items:     center;
    justify-content: center;
}
.sap-track-thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}
.sap-track-thumb-fallback {
    font-size:   9px;
    font-weight: 600;
    color:       var(--sap-text-3);
}

.sap-track-meta     { flex: 1; min-width: 0; }
.sap-track-name     { font-size: 13px; font-weight: 500; color: var(--sap-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sap-track-sub      { font-size: 11px; color: var(--sap-text-2); }

/* EQ animasyonu */
.sap-eq {
    display:         none;
    gap:             2px;
    align-items:     flex-end;
    height:          14px;
    flex-shrink:     0;
    width:           16px;
    justify-content: center;
}
.sap-eq.active { display: flex; }
.sap-eq-bar {
    width:         2.5px;
    background:    var(--sap-accent);
    border-radius: 1px;
    animation:     sap-eq 0.8s ease-in-out infinite alternate;
}
.sap-eq-bar:nth-child(2) { animation-delay: 0.15s; }
.sap-eq-bar:nth-child(3) { animation-delay: 0.3s; }
@keyframes sap-eq {
    from { height: 4px; }
    to   { height: 12px; }
}

.sap-track-num {
    font-size:   11px;
    color:       var(--sap-text-3);
    width:       16px;
    text-align:  center;
    flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .sap-player-main  { gap: 10px; padding: 12px; }
    .sap-cover        { width: 72px; height: 72px; }
    .sap-video-box    { width: 90px; height: 51px; }
    .sap-wrap input[type="range"].sap-vol-slider { width: 44px !important; }
    .sap-track-row    { padding: 7px 12px; }
    .sap-cta-row      { padding: 0 12px 10px; }
}
