/* ── Buzzsprout Podcast Plugin Styles ── */

/* Reset & Base */
.bsp-single-episode,
.bsp-carousel-wrapper,
.bsp-archive {
    box-sizing: border-box;
    color: var(--bsp-text, #1a1a1a);
}

.bsp-single-episode *,
.bsp-carousel-wrapper *,
.bsp-archive * {
    box-sizing: border-box;
}

.bsp-error {
    padding: 12px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #664d03;
    border-radius: 4px;
}

/* ── Audio Player (carousel & archive) ── */
.bsp-audio-player {
    width: 100%;
    height: 40px;
    margin-top: 12px;
    border-radius: 20px;
}

/* ══════════════════════════════════════
   1. SINGLE EPISODE
   ══════════════════════════════════════ */
.bsp-single-title {
	font-family: var(--body_typography-font-family) !important;
	font-weight: 500 !important;
	color: #000000 !important;
}
.bsp-single-desc {
    font-size: 15px !important;
}
.bsp-single-episode {
    display: flex;
    background: var(--bsp-bg, #f5f0e6);
    border: none;
    border-radius: var(--bsp-radius, 12px);
    max-width: 100%;
    margin: 24px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.bsp-single-episode:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.bsp-single-episode .bsp-single-audio {
    display: none;
}

.bsp-single-artwork {
    flex-shrink: 0;
    width: 200px;
	width: 25%;
    min-height: 200px;
}

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

.bsp-single-content {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bsp-single-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--bsp-subtle, #888);
    margin-bottom: 4px;
    letter-spacing: 0.025em;
}

.bsp-single-title {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bsp-text, #1a1a1a);
}

.bsp-single-desc {
    margin: 0 0 20px;
    font-size: 1.05rem;
    color: var(--bsp-subtle, #888);
    line-height: 1.4;
}

/* ── Custom Player ── */
.bsp-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.bsp-player-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bsp-player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--bsp-text, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.15s;
    line-height: 1;
}

.bsp-player-btn:hover {
    opacity: 0.6;
}

.bsp-player-play {
    width: 44px;
    height: 44px;
    border: 2px solid var(--bsp-text, #2a2a2a);
    border-radius: 50%;
    transition: opacity 0.15s;
}

.bsp-player-play:hover {
    opacity: 0.6;
}

.bsp-player-time {
    font-size: 16px;
    color: var(--bsp-subtle, #555);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 38px;
}

.bsp-player-remaining {
    text-align: right;
}

.bsp-player-progress {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    cursor: pointer;
}

.bsp-player-progress-bar {
    position: relative;
    height: 5px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.bsp-player-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--bsp-text, #2a2a2a);
    border-radius: 3px;
    width: 0;
}

.bsp-player-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: var(--bsp-text, #2a2a2a);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.bsp-player-progress-bar:hover .bsp-player-progress-thumb {
    transform: translate(-50%, -50%) scale(1.3);
}

/* ── Single Episode Responsive ── */
@media (max-width: 1024px) {
    .bsp-single-episode {
        flex-direction: column;
        max-width: 100%;
    }
	.bsp-single-artwork {
		width: 100%;
	}
}
@media (max-width: 640px) {
    .bsp-single-episode {
        flex-direction: column;
        max-width: 100%;
    }
    .bsp-single-artwork {
        width: 100%;
        height: 220px;
        min-height: auto;
    }
    .bsp-single-content {
        padding: 18px 16px 20px;
    }
    .bsp-single-title {
        font-size: 1.1rem;
    }
    .bsp-single-desc {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    .bsp-player {
        gap: 6px;
    }
    .bsp-player-play {
        width: 38px;
        height: 38px;
    }
    .bsp-player-play svg {
        width: 22px;
        height: 22px;
    }
    .bsp-player-prev svg,
    .bsp-player-next svg {
        width: 16px;
        height: 16px;
    }
    .bsp-player-time {
        font-size: 0.72rem;
        min-width: 32px;
    }
}

@media (max-width: 380px) {
    .bsp-player-controls {
        gap: 2px;
    }
    .bsp-player-prev,
    .bsp-player-next {
        display: none;
    }
}

/* ══════════════════════════════════════
   2. CAROUSEL
   ══════════════════════════════════════ */
.bsp-carousel-wrapper {
    margin: 24px 0;
}

.bsp-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}
@media (min-width: 1024px) {
	.bsp-carousel-header {
		margin-bottom: 40px;
	}
}
.bsp-carousel-heading {
    margin: 0;
   /* font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    /*color: var(--bsp-text, #1a1a1a);*/
}
.bsp-carousel-track .bsp-single-label {
	font-size: 13px !important;
}
.bsp-carousel-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bsp-carousel-btn {
    width: 56px;
    height: 40px;
    border: none;
    background: var(--bsp-bg, #fff);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    color: var(--bsp-text, #333);
    line-height: 1;
}

.bsp-carousel-btn:hover {
    opacity: 0.7;
}

.bsp-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.bsp-carousel-clip {
    /*overflow: hidden;*/
}

.bsp-carousel-track {
    display: flex;
    gap: 16px;
}

.bsp-carousel-slide {
    flex: 0 0 calc(50% - 8px);
    min-width: 0;
}

/* Override archive-card styles inside carousel */
.bsp-carousel-slide.bsp-archive-card {
    border-radius: var(--bsp-radius, 12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.bsp-carousel-slide .bsp-archive-card-content {
    padding: 18px 20px;
}

.bsp-carousel-slide .bsp-single-audio {
    display: none;
}

@media (max-width: 900px) {
    .bsp-carousel-slide {
        flex: 0 0 calc(60% - 8px);
    }
}

@media (max-width: 640px) {
    .bsp-carousel-heading {
        font-size: 1.3rem;
    }
    .bsp-carousel-btn {
        width: 46px;
        height: 34px;
    }
    .bsp-carousel-btn svg {
        width: 14px;
        height: 14px;
    }
    .bsp-carousel-slide {
        flex: 0 0 calc(85% - 8px);
    }
    .bsp-carousel-slide .bsp-archive-card-content {
        padding: 16px;
    }
}

@media (max-width: 380px) {
    .bsp-carousel-slide {
        flex: 0 0 calc(92% - 8px);
    }
}

/* ══════════════════════════════════════
   4. ARCHIVE CARD (same style as single player)
   ══════════════════════════════════════ */
.bsp-archive {
    margin: 24px 0;
}

.bsp-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bsp-archive-grid.bsp-loading {
    opacity: 0.5;
    pointer-events: none;
}

.bsp-archive-card {
    display: flex;
    background: var(--bsp-bg, #f5f0e6);
    border: none;
    border-radius: var(--bsp-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
    position: relative;
}

.bsp-archive-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.bsp-archive-card .bsp-single-audio {
    display: none;
}

.bsp-archive-card-artwork {
    flex-shrink: 0;
    width: 160px;
    min-height: 160px;
}

.bsp-archive-card-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bsp-archive-card-content {
    flex: 1;
    min-width: 0;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bsp-archive-card .bsp-single-title {
    font-size: 1.1rem;
	font-size: 20px !important;
	font-family: var(--body_typography-font-family) !important;
}

.bsp-archive-card .bsp-single-desc {
    margin-bottom: 14px;
    font-size: 0.92rem;
	font-size: 15px !important;
}

@media (max-width: 640px) {
    .bsp-archive-card {
        flex-direction: column;
    }
    .bsp-archive-card-artwork {
        width: 100%;
        height: 180px;
        min-height: auto;
    }
    .bsp-archive-card-content {
        padding: 14px 16px 18px;
    }
}

/* ══════════════════════════════════════
   5. PAGINATION
   ══════════════════════════════════════ */
.bsp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding: 16px 0;
}

.bsp-page-btn {
    padding: 10px 24px;
    border: none;
    background: var(--bsp-bg, #fff);
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s, box-shadow 0.2s;
    color: var(--bsp-text, #333);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bsp-page-btn:hover:not(:disabled) {
    opacity: 0.7;
}

.bsp-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.bsp-page-info {
    font-size: 0.9rem;
    color: var(--bsp-subtle, #666);
    font-weight: 500;
}

@media (max-width: 380px) {
    .bsp-page-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}
@media (max-width: 1024px) {
	.bsp-single-desc {
    	font-size: 16px !important;
	}
	.bsp-archive-card .bsp-single-desc {
		font-size: 16px !important;
	}
}