.podcast-promo-modal {
    --promo-night: #07182d;
    --promo-night-deep: #030916;
    --promo-blue: var(--premium-pastel-blue, #3d6688);
    --promo-blue-hover: var(--premium-pastel-blue-hover, #47789a);
    --promo-border: var(--premium-pastel-border, #7fd8f6);
    --promo-gold: var(--premium-gold-soft, #edd38f);
}

.mc-video-player {
    --promo-night: #07182d;
    --promo-night-deep: #030916;
    --promo-blue: var(--premium-pastel-blue, #3d6688);
    --promo-blue-hover: var(--premium-pastel-blue-hover, #47789a);
    --promo-border: var(--premium-pastel-border, #7fd8f6);
    --promo-gold: var(--premium-gold-soft, #edd38f);
}

.podcast-promo-modal .modal-dialog {
    width: min(94vw, 64rem);
    max-width: 64rem;
    margin-inline: auto;
}

.podcast-promo-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--promo-gold);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 8% 0%, rgba(127, 216, 246, 0.12), transparent 34%),
        linear-gradient(150deg, var(--promo-night), var(--promo-night-deep));
    box-shadow: 0 30px 80px rgba(3, 9, 22, 0.64);
}

.podcast-promo-modal__header {
    display: flex;
    min-width: 0;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(127, 216, 246, 0.34);
    background: rgba(7, 24, 45, 0.92);
}

.podcast-promo-modal__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
}

.podcast-promo-modal__identity img {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.podcast-promo-modal__identity div { min-width: 0; }
.podcast-promo-modal__identity p {
    margin: 0 0 0.18rem;
    color: var(--promo-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.podcast-promo-modal__identity h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.podcast-promo-modal__close {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--promo-gold);
    border-radius: 50%;
    color: var(--promo-gold);
    background: rgba(3, 9, 22, 0.76);
    transition: color 210ms ease, background-color 210ms ease, border-color 210ms ease, box-shadow 210ms ease;
}

.podcast-promo-modal__close svg,
.podcast-promo-controls button svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.podcast-promo-modal__close:hover,
.podcast-promo-controls button:hover {
    border-color: var(--promo-gold);
    color: #fff;
    background: var(--promo-blue-hover);
    box-shadow: 0 8px 22px rgba(237, 211, 143, 0.24);
}

.podcast-promo-modal :is(button, input):focus-visible {
    outline: 3px solid var(--promo-border);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px var(--promo-gold);
}

.podcast-promo-modal__body { padding: clamp(0.7rem, 2vw, 1.1rem); }
.podcast-promo-player {
    overflow: hidden;
    border: 1px solid rgba(127, 216, 246, 0.36);
    border-radius: 17px;
    color: #fff;
    background:
        radial-gradient(circle at 8% 0%, rgba(127, 216, 246, 0.08), transparent 34%),
        var(--promo-night-deep);
    box-shadow: 0 18px 44px rgba(3, 9, 22, 0.38);
}

.mc-video-player__identity {
    display: flex;
    min-width: 0;
    padding: 0.62rem 0.8rem;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(127, 216, 246, 0.28);
    background: rgba(7, 24, 45, 0.96);
}
.mc-video-player__identity img {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
}
.mc-video-player__identity div { min-width: 0; }
.mc-video-player__identity p {
    margin: 0 0 0.12rem;
    color: var(--promo-gold);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.075em;
}
.mc-video-player__identity h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.podcast-promo-player__stage {
    display: grid;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: var(--promo-night-deep);
}

.podcast-promo-player__stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--promo-night-deep);
}

.mc-video-player.is-youtube .podcast-promo-player__stage > .plyr {
    width: 100%;
    height: 100%;
    --plyr-color-main: var(--promo-gold);
    --plyr-video-control-color: #fff;
    --plyr-video-control-background-hover: var(--promo-blue-hover);
    --plyr-range-fill-background: var(--promo-gold);
    --plyr-range-thumb-background: var(--promo-gold);
}
.mc-video-player.is-youtube .plyr__video-wrapper,
.mc-video-player.is-youtube .plyr__video-embed,
.mc-video-player.is-youtube iframe {
    width: 100%;
    height: 100%;
    background: var(--promo-night-deep);
}
.mc-video-player.is-youtube .plyr__controls {
    gap: 0.18rem;
    padding: clamp(0.58rem, 1.6vw, 0.82rem);
    background: linear-gradient(180deg, transparent, rgba(7, 24, 45, 0.96));
}
.mc-video-player.is-youtube .plyr__control {
    min-width: 44px;
    min-height: 44px;
    color: #fff;
}
.mc-video-player.is-youtube .plyr__control:hover {
    color: #fff;
    background: var(--promo-blue-hover);
}
.mc-video-player.is-youtube .plyr__control--overlaid {
    border: 2px solid var(--promo-gold);
    color: var(--promo-gold);
    background: var(--promo-night);
    box-shadow: 0 10px 28px rgba(3, 9, 22, 0.5), 0 0 18px rgba(237, 211, 143, 0.2);
}

.podcast-promo-player__watermark {
    position: absolute;
    z-index: 2;
    right: clamp(0.55rem, 2vw, 1rem);
    bottom: clamp(0.55rem, 2vw, 1rem);
    width: clamp(2.4rem, 7vw, 4.5rem);
    height: auto;
    opacity: 0.46;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(3, 9, 22, 0.55));
}

.podcast-promo-player__loading,
.podcast-promo-player__error {
    position: absolute;
    z-index: 3;
    inset: 0;
    align-content: center;
    justify-items: center;
    padding: 1rem;
    text-align: center;
    background: rgba(3, 9, 22, 0.78);
}

.podcast-promo-player__loading:not([hidden]),
.podcast-promo-player__error:not([hidden]) { display: grid; }
.podcast-promo-player__loading span:first-child {
    width: 2.2rem;
    height: 2.2rem;
    border: 3px solid rgba(127, 216, 246, 0.28);
    border-top-color: var(--promo-gold);
    border-radius: 50%;
    animation: podcast-promo-spin 0.85s linear infinite;
}
.podcast-promo-player__loading span:last-child { margin-top: 0.65rem; color: #fff; }
.podcast-promo-player__error p { margin: 0 0 0.85rem; color: #fff; }
.podcast-promo-player__error button {
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--promo-gold);
    border-radius: 999px;
    color: #fff;
    background: var(--promo-blue);
}

.podcast-promo-controls {
    display: none;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    grid-template-columns: auto auto minmax(5rem, 1fr) auto minmax(4.5rem, 0.22fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    border-top: 1px solid rgba(237, 211, 143, 0.34);
    background: var(--promo-blue);
}

.podcast-promo-player.is-enhanced .podcast-promo-controls { display: grid; }
.podcast-promo-controls button {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--promo-gold);
    border-radius: 50%;
    color: var(--promo-gold);
    background: var(--promo-night);
    transition: color 210ms ease, background-color 210ms ease, box-shadow 210ms ease;
}

.podcast-promo-controls__play { width: 48px !important; height: 48px !important; }
.podcast-promo-controls__play .is-pause,
.podcast-promo-controls__icon .is-muted { display: none; }
.podcast-promo-controls__play.is-playing .is-play,
.podcast-promo-controls__icon.is-muted .is-volume { display: none; }
.podcast-promo-controls__play.is-playing .is-pause,
.podcast-promo-controls__icon.is-muted .is-muted { display: block; }
.podcast-promo-controls__icon .is-exit-fullscreen { display: none; }
.podcast-promo-controls__icon.is-fullscreen .is-enter-fullscreen { display: none; }
.podcast-promo-controls__icon.is-fullscreen .is-exit-fullscreen { display: block; }
.podcast-promo-controls__time {
    display: inline-flex;
    color: var(--promo-gold);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    white-space: nowrap;
    gap: 0.25rem;
}

.podcast-promo-controls label { min-width: 0; margin: 0; }
.podcast-promo-controls input[type="range"] {
    width: 100%;
    min-width: 0;
    accent-color: var(--promo-gold);
    cursor: pointer;
    touch-action: pan-y;
}
.podcast-promo-controls input[type="range"]:focus-visible {
    border-radius: 999px;
    outline: 3px solid var(--promo-sky);
    outline-offset: 4px;
    box-shadow: 0 0 0 2px var(--promo-gold);
}
.podcast-promo-controls input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--promo-gold) var(--promo-fill, 0%), rgba(255, 255, 255, 0.36) var(--promo-fill, 0%));
}
.podcast-promo-controls input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 2px solid var(--promo-night);
    border-radius: 50%;
    appearance: none;
    background: var(--promo-gold);
}
.podcast-promo-controls input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}
.podcast-promo-controls input[type="range"]::-moz-range-progress { height: 4px; background: var(--promo-gold); }
.podcast-promo-controls input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid var(--promo-night);
    border-radius: 50%;
    background: var(--promo-gold);
}

.mc-video-player:is(:fullscreen, :-webkit-full-screen, .is-fullscreen) {
    display: flex;
    width: 100vw;
    height: 100vh;
    padding: clamp(0.45rem, 1.4vw, 1rem);
    flex-direction: column;
    border: 1px solid var(--promo-gold);
    border-radius: 0;
    background: var(--promo-night-deep);
}
.mc-video-player:is(:fullscreen, :-webkit-full-screen, .is-fullscreen) .podcast-promo-player__stage {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    background: var(--promo-night-deep);
}
.mc-video-player:is(:fullscreen, :-webkit-full-screen, .is-fullscreen) .podcast-promo-player__stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.mc-video-player:is(:fullscreen, :-webkit-full-screen, .is-fullscreen) .podcast-promo-controls {
    flex: 0 0 auto;
}

@keyframes podcast-promo-spin { to { transform: rotate(360deg); } }

@media (max-width: 575.98px) {
    .podcast-promo-modal .modal-dialog { width: calc(100vw - 1rem); margin: 0.5rem auto; }
    .podcast-promo-modal__header { padding: 0.65rem 0.7rem; gap: 0.6rem; }
    .podcast-promo-modal__identity { gap: 0.55rem; }
    .podcast-promo-modal__identity img { width: 2.4rem; height: 2.4rem; }
    .podcast-promo-modal__identity p { font-size: 0.58rem; letter-spacing: 0.05em; }
    .podcast-promo-modal__identity h2 { font-size: 0.92rem; }
    .podcast-promo-modal__body { padding: 0.5rem; }
    .mc-video-player__identity { padding: 0.5rem 0.6rem; gap: 0.5rem; }
    .mc-video-player__identity img { width: 2.15rem; height: 2.15rem; }
    .mc-video-player__identity p { font-size: 0.52rem; }
    .mc-video-player__identity h3 { font-size: 0.82rem; }
    .podcast-promo-controls {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 0.45rem;
        padding: 0.55rem;
    }
    .podcast-promo-controls__time { font-size: 0.74rem; }
    .podcast-promo-controls__progress { grid-column: 1 / -1; grid-row: 2; }
    .podcast-promo-controls__volume { display: none; }
    .mc-video-player.is-youtube .plyr__volume input[type="range"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .podcast-promo-modal *,
    .podcast-promo-modal *::before,
    .podcast-promo-modal *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
