/* ─── CNP Custom Podcast Player ─────────────────────────────────────────── */

.cnp-player {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #122640;
    border: 1px solid rgba(235,235,235,0.06);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.cnp-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,167,225,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Thumbnail */
.cnp-player__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Body */
.cnp-player__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Meta */
.cnp-player__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnp-player__ep-label {
    flex-shrink: 0;
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F17720;
    background: rgba(241,119,32,0.12);
    border: 1px solid rgba(241,119,32,0.2);
    border-radius: 20px;
    padding: 2px 10px;
}

.cnp-player__title {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #E8F4FD;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls row */
.cnp-player__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.cnp-player__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #C8D6E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.cnp-player__btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.cnp-player__btn:hover {
    color: #00A7E1;
    background: rgba(0,167,225,0.1);
}

.cnp-player__btn--play {
    width: 48px;
    height: 48px;
    background: #F17720;
    color: #0B1929;
    border-radius: 50%;
    flex-shrink: 0;
}

.cnp-player__btn--play svg {
    width: 24px;
    height: 24px;
}

.cnp-player__btn--play:hover {
    background: #d96810;
    color: #0B1929;
}

/* Progress */
.cnp-player__progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnp-player__time {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.72rem;
    color: #7A9BB5;
    flex-shrink: 0;
    min-width: 34px;
}

.cnp-player__time--duration {
    text-align: right;
}

.cnp-player__progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s;
}

.cnp-player__progress:hover {
    height: 6px;
}

.cnp-player__progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00A7E1, #F17720);
    border-radius: 4px;
    transition: width 0.1s linear;
    pointer-events: none;
}

.cnp-player__progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0,167,225,0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.cnp-player__progress:hover .cnp-player__progress-thumb {
    opacity: 1;
}

/* Speed */
.cnp-player__speed {
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #7A9BB5;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.cnp-player__speed:hover {
    color: #00A7E1;
    background: rgba(0,167,225,0.08);
}

/* Playing state */
.cnp-player.is-playing .cnp-player__btn--play {
    background: #00A7E1;
}

/* Light mode */
[data-theme="light"] .cnp-player {
    background: #FFFFFF;
    border-color: rgba(4,116,186,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme="light"] .cnp-player__title {
    color: #0B1929;
}

[data-theme="light"] .cnp-player__time {
    color: #4A5568;
}

[data-theme="light"] .cnp-player__btn {
    color: #4A5568;
}

[data-theme="light"] .cnp-player__progress {
    background: rgba(0,0,0,0.1);
}

[data-theme="light"] .cnp-player__speed {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #4A5568;
}

/* Responsive */
@media (max-width: 600px) {
    .cnp-player {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .cnp-player__thumb {
        width: 56px;
        height: 56px;
    }

    .cnp-player__body {
        width: 100%;
    }

    .cnp-player__title {
        white-space: normal;
    }
}
