/* ═══════════════════════════════════════════════════════════
   CV Podcast — Immersive Single-Color Experience
   Culture Vitale branded podcast page
   ═══════════════════════════════════════════════════════════ */

:root {
    --cvp-green: #18291F;
    --cvp-green-light: #1e3328;
    --cvp-charcoal: #212323;
    --cvp-offwhite: #F7F5F2;
    --cvp-beige: #E5DED0;
    --cvp-brass: #C9AB77;
    --cvp-white: #FFFFFF;
    --cvp-font-serif: 'Cormorant Garamond', serif;
    --cvp-font-sans: 'DM Sans', sans-serif;
}

/* ── Full-page wrapper ─────────────────────────────────── */
.cvp-page {
    background: var(--cvp-green);
    color: var(--cvp-beige);
    min-height: 100vh;
    font-family: var(--cvp-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow: hidden;
}

.cvp-page *,
.cvp-page *::before,
.cvp-page *::after {
    box-sizing: border-box;
}

/* Ambient gradient */
.cvp-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(201, 171, 119, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(201, 171, 119, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cvp-content {
    position: relative;
    z-index: 1;
}

/* ── Brand / Labels ─────────────────────────────────────── */
.cvp-brand-label {
    font-family: var(--cvp-font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--cvp-brass);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cvp-podcast-title {
    font-family: var(--cvp-font-serif);
    font-size: 4rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--cvp-white);
    margin: 0 0 0.5rem;
    line-height: 1;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .cvp-podcast-title {
        font-size: 6rem;
    }
}

@media (min-width: 1024px) {
    .cvp-podcast-title {
        font-size: 7.5rem;
    }
}

.cvp-divider {
    width: 60px;
    height: 1px;
    background: var(--cvp-brass);
    margin: 1.5rem auto 2rem;
    opacity: 0.6;
}

/* ═══ HERO — CENTRAL IMMERSIVE ═══════════════════════════ */
.cvp-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .cvp-hero {
        padding: 5rem 3rem 5rem;
    }
}

.cvp-ep-tag {
    font-family: var(--cvp-font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cvp-brass);
    margin-bottom: 1rem;
}

.cvp-ep-title {
    font-family: var(--cvp-font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--cvp-white);
    margin: 0 0 1rem;
    max-width: 700px;
    line-height: 1.3;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .cvp-ep-title {
        font-size: 2.25rem;
    }
}

.cvp-ep-duration {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cvp-beige);
    opacity: 0.6;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cvp-ep-duration svg {
    width: 14px;
    height: 14px;
}

.cvp-ep-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--cvp-beige);
    opacity: 0.6;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.cvp-ep-desc p {
    margin: 0 0 0.75rem;
}

/* ═══ WAVEFORM — THE STAR ════════════════════════════════ */
.cvp-waveform-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.cvp-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 80px;
    width: 100%;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cvp-waveform {
        height: 100px;
        gap: 3.5px;
    }
}

.cvp-bar {
    display: block;
    width: 4px;
    border-radius: 3px;
    background: var(--cvp-brass);
    height: 12px;
    flex-shrink: 0;
    transition: height 0.2s ease, opacity 0.2s ease;
    animation: cvpBreath 3s ease-in-out infinite;
    animation-delay: calc(var(--bar-i) * 0.05s);
    opacity: 0.25;
}

@media (min-width: 768px) {
    .cvp-bar {
        width: 5px;
    }
}

@keyframes cvpBreath {

    0%,
    100% {
        height: 8px;
        opacity: 0.2;
    }

    50% {
        height: 20px;
        opacity: 0.35;
    }
}

.cvp-player.is-playing .cvp-bar {
    opacity: 0.85;
    animation: cvpWave 0.5s ease-in-out infinite alternate;
    animation-delay: calc(var(--bar-i) * 0.03s);
}

@keyframes cvpWave {
    0% {
        height: 8px;
        opacity: 0.5;
    }

    100% {
        height: calc(12px + (var(--bar-i) % 9) * 8px);
        opacity: 0.95;
    }
}

.cvp-player.is-paused .cvp-bar {
    animation-play-state: paused;
    opacity: 0.35;
}

/* ── Play button ─────────────────────────────────────── */
.cvp-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--cvp-brass);
    background: transparent;
    color: var(--cvp-brass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.4s ease;
    margin-bottom: 1rem;
}

.cvp-play-btn:hover {
    background: var(--cvp-brass);
    color: var(--cvp-green);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(201, 171, 119, 0.2);
}

.cvp-play-btn svg {
    width: 22px;
    height: 22px;
}

.cvp-icon-play {
    margin-left: 3px;
}

.cvp-player.is-playing .cvp-icon-play {
    display: none !important;
}

.cvp-player.is-playing .cvp-icon-pause {
    display: block !important;
}

/* ── Progress bar ────────────────────────────────────── */
.cvp-progress-wrap {
    width: 100%;
    cursor: pointer;
    padding: 6px 0;
}

.cvp-progress-bar {
    height: 2px;
    background: rgba(229, 222, 208, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.cvp-progress-fill {
    height: 100%;
    background: var(--cvp-brass);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.cvp-progress-wrap:hover .cvp-progress-bar {
    height: 4px;
}

.cvp-time {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--cvp-beige);
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
    margin-top: 0.5rem;
}

.cvp-separator {
    margin: 0 0.2rem;
    opacity: 0.4;
}

/* ── External embed ──────────────────────────────────── */
.cvp-external-embed {
    border-radius: 8px;
    max-width: 100%;
    margin-top: 1rem;
}

.cvp-external-link {
    display: inline-block;
    font-family: var(--cvp-font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cvp-brass);
    text-decoration: none;
    border: 1px solid var(--cvp-brass);
    padding: 0.6rem 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cvp-external-link:hover {
    background: var(--cvp-brass);
    color: var(--cvp-green);
}

/* ═══ VIDEO DISPLAY ══════════════════════════════════════ */
.cvp-video-wrap {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
}

.cvp-video-wrap iframe,
.cvp-video-wrap .cvp-video-player {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}

.cvp-video-player {
    background: #000;
}

/* Hidden YouTube container — audio-only mode */
.cvp-video-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ═══ PAST EPISODES — SUBTLE LIST ════════════════════════ */
.cvp-past {
    padding: 3rem 1.5rem 6rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cvp-past {
        padding: 4rem 3rem 8rem;
    }
}

.cvp-past-label {
    font-family: var(--cvp-font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--cvp-brass);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.cvp-ep-list {
    max-width: 600px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.cvp-ep-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(229, 222, 208, 0.08);
    transition: background 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.cvp-ep-item:first-child {
    border-top: 1px solid rgba(229, 222, 208, 0.08);
}

.cvp-ep-item:hover {
    background: rgba(229, 222, 208, 0.04);
}

.cvp-ep-item-num {
    font-family: var(--cvp-font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--cvp-brass);
    opacity: 0.6;
    min-width: 28px;
    text-align: center;
}

.cvp-ep-item-info {
    flex: 1;
    min-width: 0;
}

.cvp-ep-item-title {
    font-family: var(--cvp-font-serif);
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--cvp-beige);
    margin: 0 0 0.2rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .cvp-ep-item-title {
        font-size: 1.1rem;
        white-space: normal;
    }
}

.cvp-ep-item-meta {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cvp-beige);
    opacity: 0.35;
}

.cvp-ep-item-play {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 1px solid rgba(201, 171, 119, 0.3);
    background: transparent;
    color: var(--cvp-brass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.cvp-ep-item:hover .cvp-ep-item-play {
    opacity: 1;
    border-color: var(--cvp-brass);
}

.cvp-ep-item-play:hover {
    background: var(--cvp-brass);
    color: var(--cvp-green);
}

.cvp-ep-item-play svg {
    width: 12px;
    height: 12px;
    margin-left: 1px;
}

/* Scroll container when many items */
.cvp-ep-list--scrollable {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 171, 119, 0.3) transparent;
    mask-image: linear-gradient(to bottom, transparent 0%, black 2%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 2%, black 92%, transparent 100%);
}

.cvp-ep-list--scrollable::-webkit-scrollbar {
    width: 4px;
}

.cvp-ep-list--scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.cvp-ep-list--scrollable::-webkit-scrollbar-thumb {
    background: rgba(201, 171, 119, 0.3);
    border-radius: 2px;
}

/* Active item */
.cvp-ep-item.is-active {
    background: rgba(201, 171, 119, 0.06);
}

.cvp-ep-item.is-active .cvp-ep-item-play {
    opacity: 1;
    background: var(--cvp-brass);
    color: var(--cvp-green);
    border-color: var(--cvp-brass);
}

.cvp-ep-item.is-active .cvp-ep-item-title {
    color: var(--cvp-white);
}

/* ═══ EMPTY STATE ════════════════════════════════════════ */
.cvp-empty {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.cvp-empty-logo {
    width: 60px;
    height: auto;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.cvp-empty-title {
    font-family: var(--cvp-font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--cvp-white);
    margin: 0 0 1rem;
}

.cvp-empty-text {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.7;
    margin: 0 0 2rem;
}

/* ── Admin link ──────────────────────────────────────── */
.cvp-admin-bar {
    text-align: center;
    padding: 1.5rem;
}

.cvp-admin-link {
    display: inline-block;
    font-family: var(--cvp-font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cvp-brass);
    text-decoration: none;
    border: 1px solid rgba(201, 171, 119, 0.3);
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.cvp-admin-link:hover {
    opacity: 1;
    border-color: var(--cvp-brass);
}

/* ── Logo watermark ──────────────────────────────────── */
.cvp-watermark {
    position: fixed;
    bottom: -5%;
    right: -5%;
    width: 35vw;
    max-width: 400px;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* ═══ ANIMATIONS ═════════════════════════════════════════ */
.cvp-fade {
    animation: cvpFadeIn 1s ease-out forwards;
    opacity: 0;
}

.cvp-fade-up {
    animation: cvpFadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.cvp-d1 {
    animation-delay: 0.1s;
}

.cvp-d2 {
    animation-delay: 0.25s;
}

.cvp-d3 {
    animation-delay: 0.4s;
}

.cvp-d4 {
    animation-delay: 0.55s;
}

.cvp-d5 {
    animation-delay: 0.7s;
}

.cvp-d6 {
    animation-delay: 0.85s;
}

.cvp-d7 {
    animation-delay: 1.0s;
}

@keyframes cvpFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes cvpFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}