:root {
    --pm-ink: #171006;
    --pm-panel: rgba(255, 248, 221, .88);
    --pm-line: rgba(83, 44, 0, .34);
}

.pm-watch-page,
.pm-watch-page * {
    box-sizing: border-box;
}

.pm-watch-page {
    min-height: 100vh;
    padding: 24px 20px 44px;
    color: var(--pm-ink);
    background:
        radial-gradient(circle at 15% 0%, rgba(255,255,255,.78), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(255,223,132,.68), transparent 36%),
        linear-gradient(145deg, #fff6d5 0%, #efd27c 46%, #c98a22 100%);
}

.pm-watch-wrap {
    width: min(1500px, 100%);
    margin: 0 auto;
}

/* Large desktop heading - show the complete PNG without cropping */
.pm-title {
    display: block;
    width: 100%;
    max-width: 1280px;
    height: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.pm-intro-line {
    margin: 0 auto 24px;
    text-align: center;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 700;
    text-shadow: 1px 1px rgba(255,255,255,.7);
}

.pm-watch-layout {
    display: grid;
    grid-template-columns: minmax(370px, 43%) minmax(520px, 57%);
    gap: 26px;
    align-items: start;
}

.pm-feature,
.pm-chapters {
    min-width: 0;
}

.pm-feature-panel {
    overflow: hidden;
    border: 2px solid var(--pm-line);
    border-radius: 18px;
    background: var(--pm-panel);
    box-shadow: 0 12px 28px rgba(63,35,0,.22);
}

/* The main Prophesy image is itself a video trigger. */
.pm-hero-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.pm-hero-link:after {
    content: "\25B6";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(46px, 6vw, 82px);
    text-shadow: 0 3px 12px #000;
    background: rgba(0,0,0,.06);
    opacity: .84;
    transition: background .14s ease, opacity .14s ease;
}

.pm-hero-link:hover:after,
.pm-hero-link:focus:after {
    background: rgba(0,0,0,.22);
    opacity: 1;
}

.pm-hero-link:focus {
    outline: 4px solid rgba(255,122,0,.45);
    outline-offset: -4px;
}

.pm-hero {
    display: block;
    width: 100%;
    height: auto;
}

.pm-feature-copy {
    padding: 18px 20px 22px;
}

.pm-feature-copy p {
    margin: 0 0 15px;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.45;
}

.pm-laurel {
    display: block;
    width: min(680px, 100%);
    max-width: 100%;
    height: auto;
    margin: 8px auto 20px;
    object-fit: contain;
}

.pm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pm-play-button,
.pm-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.pm-play-button {
    border: 1px solid #4f2900;
    padding: 10px 19px;
    color: #fff;
    background: linear-gradient(#c87a0d, #7c4000);
    box-shadow: 0 4px 10px rgba(55,29,0,.28);
}

.pm-secondary-link {
    border: 1px solid var(--pm-line);
    padding: 9px 16px;
    color: #4a2700;
    background: rgba(255,255,255,.62);
}

.pm-play-button:hover,
.pm-play-button:focus,
.pm-secondary-link:hover,
.pm-secondary-link:focus {
    transform: translateY(-1px);
    text-decoration: none;
    outline: 3px solid rgba(255,122,0,.35);
}

.pm-placeholder {
    border: 2px dashed rgba(91,49,0,.48);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255,255,255,.34);
}

.pm-chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.pm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pm-line);
    border-radius: 14px;
    color: var(--pm-ink);
    background: rgba(255,250,231,.9);
    box-shadow: 0 7px 16px rgba(63,35,0,.18);
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease;
}

.pm-card:hover,
.pm-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(63,35,0,.27);
}

.pm-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2b1a08;
}

.pm-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(34px,4vw,54px);
    text-shadow: 0 2px 8px #000;
    background: rgba(0,0,0,.08);
}

.pm-card:hover .pm-card-play {
    background: rgba(0,0,0,.22);
}

.pm-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 11px 12px;
}

.pm-card-title {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.15;
}

.pm-card-blurb {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.35;
}

.pm-card-watch {
    margin-top: auto;
    padding-top: 9px;
    font-size: 14px;
    font-weight: 800;
    color: #743c00;
}

.pm-card-coming {
    opacity: .78;
}

.pm-card-coming .pm-card-image:after {
    content: "COMING SOON";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 2px 5px #000;
    background: rgba(35,22,8,.58);
}

.pm-video-modal[hidden] {
    display: none;
}

.pm-video-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(0,0,0,.88);
}

.pm-video-dialog {
    width: min(1200px,96vw);
    max-height: 94vh;
}

.pm-video-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    color: #fff;
}

.pm-video-heading h2 {
    margin: 0;
    font-size: clamp(20px,2.4vw,32px);
}

.pm-video-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.42);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pm-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 28px rgba(255,178,58,.32);
}

.pm-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pm-notice-dialog {
    width: min(560px,94vw);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    color: #201306;
    background: #fff2c7;
    box-shadow: 0 14px 45px rgba(0,0,0,.5);
}

.pm-notice-dialog h2 {
    margin-top: 0;
}

body.pm-modal-open {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .pm-watch-layout {
        grid-template-columns: minmax(330px,42%) minmax(430px,58%);
        gap: 20px;
    }

    .pm-chapter-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 820px) {
    .pm-watch-page {
        padding: 18px 13px 34px;
    }

    /* Preserve the existing phone treatment. */
    .pm-title {
        width: min(760px, 88vw);
        height: auto;
        margin-bottom: 18px;
        object-fit: contain;
        object-position: center;
    }

    .pm-watch-layout {
        grid-template-columns: 1fr;
    }

    .pm-chapter-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 520px) {
    .pm-chapter-grid {
        grid-template-columns: 1fr;
    }

    .pm-card-blurb {
        font-size: 14px;
    }
}
