/**
 * Playlist Dinle – Görsele uygun tam ekran oynatıcı (korhan-mustafa-imrak)
 * Sol: büyük player, Sağ: şarkı listesi, Alt: mini player bar
 */
/* Görseldeki gibi: hero (radyo resmi + büyük player) gizle, sadece üst bar kalsın */
.playlist-dinle-page .radyo-hero-wrap,
.playlist-dinle-page .radyo-hero-player-hidden,
.playlist-dinle-page [id^="korhan-mustafa-imrak-index-radio-player"],
.playlist-dinle-page [id^="korhan-mustafa-imrak-jplayer"] {
    display: none !important;
}
.playlist-dinle-page .radyo-site-header {
    position: relative;
    z-index: 10;
}
.playlist-dinle-main {
    min-height: calc(100vh - 60px);
    padding-bottom: 1rem;
    background: #0a0a0a;
}
.playlist-dinle-empty {
    max-width: 480px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}
.playlist-dinle-empty a {
    color: var(--korhan-mustafa-imrak-bordo, #722F37);
    text-decoration: underline;
}

/* İki panel layout */
.korhan-mustafa-imrak-profil-playlist-layout .korhan-mustafa-imrak-profil-playlistlerim-header-actions {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.playlist-dinle-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 120px);
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .playlist-dinle-layout {
        grid-template-columns: 1fr;
    }
    .playlist-dinle-list-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Ortak header */
.playlist-dinle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.playlist-dinle-back {
    color: #fff;
    font-size: 1.25rem;
    padding: 0.5rem;
    text-decoration: none;
}
.playlist-dinle-back:hover { color: rgba(255, 255, 255, 0.9); }
.playlist-dinle-header-title {
    text-align: center;
}
.playlist-dinle-header-main {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.playlist-dinle-header-sub {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}
.playlist-dinle-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Sol panel – Büyük oynatıcı */
.playlist-dinle-player-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
}
.playlist-dinle-now-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.playlist-dinle-now-art-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.playlist-dinle-now-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.playlist-dinle-now-art--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}
/* Görseldeki gibi: kapağın alt kısmında beyaz yazı overlay */
.playlist-dinle-now-art-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}
.playlist-dinle-overlay-artist {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.playlist-dinle-overlay-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.playlist-dinle-now-info {
    text-align: center;
    margin-bottom: 0.5rem;
}
.playlist-dinle-now-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.playlist-dinle-now-artist {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}
.playlist-dinle-controls-top {
    margin-bottom: 0.5rem;
}
.playlist-dinle-btn-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 0.4rem;
    cursor: pointer;
}
.playlist-dinle-btn-icon:hover { color: #fff; }
.playlist-dinle-btn-icon.is-active { color: #d4af37; }
.playlist-dinle-btn-icon.is-liked { color: #e74c3c; }
.playlist-dinle-seek-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1rem;
}
.playlist-dinle-time-cur,
.playlist-dinle-time-rem {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 2.5rem;
}
.playlist-dinle-time-rem { text-align: right; }
.playlist-dinle-seek-wrap {
    --seek-percent: 0%;
}
.playlist-dinle-seek {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #fff 0%, #fff var(--seek-percent, 0%), rgba(255, 255, 255, 0.2) var(--seek-percent, 0%), rgba(255, 255, 255, 0.2) 100%);
    border-radius: 999px;
    outline: none;
}
.playlist-dinle-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.playlist-dinle-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.playlist-dinle-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.playlist-dinle-btn-big {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
}
.playlist-dinle-btn-big:hover { transform: scale(1.05); }
.playlist-dinle-btn-big i { margin: 0; }

/* Sağ panel – Liste */
.playlist-dinle-list-panel {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    max-height: calc(100vh - 120px);
}
.playlist-dinle-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.playlist-dinle-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}
.playlist-dinle-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.playlist-dinle-list-item.is-current {
    background: rgba(114, 47, 55, 0.2);
}
.playlist-dinle-list-art {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.playlist-dinle-list-art--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 50, 55, 0.8);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}
.playlist-dinle-list-text {
    flex: 1;
    min-width: 0;
}
.playlist-dinle-list-title {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}
.playlist-dinle-list-artist {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}
.playlist-dinle-list-duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}
.playlist-dinle-list-playing {
    color: var(--korhan-mustafa-imrak-bordo, #722F37);
    font-size: 1rem;
    flex-shrink: 0;
    display: none;
}
.playlist-dinle-list-item.is-current .playlist-dinle-list-playing {
    display: inline-block;
}
.playlist-dinle-list-remove,
.korhan-mustafa-imrak-profil-playlist-cikar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.35rem;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.playlist-dinle-list-remove:hover,
.korhan-mustafa-imrak-profil-playlist-cikar:hover {
    color: #e74c3c;
}

/* Mini player (altta sabit) */
.playlist-dinle-mini {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(20, 18, 22, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}
.playlist-dinle-mini-art-wrap {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.playlist-dinle-mini-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.playlist-dinle-mini-art--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.4);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
}
.playlist-dinle-mini-info {
    flex: 1;
    min-width: 0;
}
.playlist-dinle-mini-title {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-dinle-mini-artist {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-dinle-mini-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.playlist-dinle-mini-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.playlist-dinle-mini-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
