@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&family=Playfair+Display:wght@700;800&display=swap');

.layout.hide-aside:has(.movie-notes-page) {
    box-sizing: border-box;
    width: calc(100vw - 14px);
    max-width: none;
    padding: 28px 7px 40px;
}

.layout.hide-aside:has(.movie-notes-page) > .movie-notes-page {
    width: 100% !important;
}

.movie-notes-page {
    --movie-notes-page-bg:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 238, 229, 0.96)),
        radial-gradient(circle at top left, rgba(223, 212, 193, 0.32), transparent 42%);
    --movie-notes-page-border: rgba(17, 17, 17, 0.12);
    --movie-notes-page-shadow: 0 30px 80px rgba(17, 17, 17, 0.08);
    --movie-notes-rule-color: rgba(17, 17, 17, 0.12);
    --movie-notes-title-color: #111111;
    --movie-notes-body-color: #555555;
    --movie-notes-muted-color: #666666;
    --movie-notes-media-bg: #f5f0e8;
    --movie-notes-fallback-bg: linear-gradient(135deg, #ded6c8, #f5f0e8);
    --movie-notes-media-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
    --movie-notes-copy-width: clamp(24.5rem, 34vw, 42rem);
    --movie-notes-media-max-height: clamp(420px, 78vh, 860px);
    --movie-notes-media-padding: clamp(12px, 1.4vw, 22px);
    --movie-notes-fallback-min-height: clamp(320px, 48vh, 540px);
    --movie-notes-cta-color: #111111;
    --movie-notes-cta-border: rgba(17, 17, 17, 0.45);
    --movie-notes-cta-hover-color: #000000;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 auto 72px;
    padding: clamp(14px, 1.4vw, 20px) !important;
    color: var(--movie-notes-body-color);
    background: var(--movie-notes-page-bg);
    border: 1px solid var(--movie-notes-page-border);
    box-shadow: var(--movie-notes-page-shadow);
}

[data-theme='dark'] .movie-notes-page {
    --movie-notes-page-bg:
        linear-gradient(180deg, rgba(31, 31, 31, 0.94), rgba(18, 18, 18, 0.98)),
        radial-gradient(circle at top left, rgba(170, 142, 98, 0.16), transparent 42%);
    --movie-notes-page-border: rgba(255, 255, 255, 0.08);
    --movie-notes-page-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --movie-notes-rule-color: rgba(255, 255, 255, 0.1);
    --movie-notes-title-color: rgba(255, 255, 255, 0.92);
    --movie-notes-body-color: rgba(255, 255, 255, 0.74);
    --movie-notes-muted-color: rgba(255, 255, 255, 0.58);
    --movie-notes-media-bg: #1a1a1a;
    --movie-notes-fallback-bg: linear-gradient(135deg, #343434, #171717);
    --movie-notes-media-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
    --movie-notes-cta-color: rgba(255, 255, 255, 0.86);
    --movie-notes-cta-border: rgba(255, 255, 255, 0.32);
    --movie-notes-cta-hover-color: #ffffff;
}

@media screen and (min-width: 1101px) {
    .layout.hide-aside:has(.movie-notes-page) {
        width: calc(100vw - clamp(44px, 3vw, 88px));
        padding: 28px clamp(10px, 0.9vw, 18px) 40px;
    }

    .movie-notes-page {
        --movie-notes-copy-width: clamp(26rem, 36vw, 44rem);
        padding: clamp(16px, 1.5vw, 24px) !important;
    }
}

.movie-notes-hero {
    margin-bottom: clamp(36px, 6vw, 72px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--movie-notes-rule-color);
}

.movie-notes-kicker {
    margin: 0 0 12px;
    color: var(--movie-notes-muted-color);
    font: 600 0.85rem/1.2 'Archivo', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.movie-notes-title {
    margin: 0;
    color: var(--movie-notes-title-color);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.6rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.045em;
}

.movie-notes-intro {
    margin: 20px 0 0;
    max-width: 620px;
    color: var(--movie-notes-body-color);
    font: 500 1.08rem/1.72 'Archivo', sans-serif;
}

.movie-notes-list {
    display: flex;
    flex-direction: column;
    gap: clamp(42px, 6vw, 84px);
}

.movie-notes-card {
    display: flex;
    align-items: center;
    gap: clamp(28px, 3.4vw, 60px);
}

.movie-notes-card.is-reversed {
    flex-direction: row-reverse;
}

.movie-notes-media {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--movie-notes-media-padding);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid var(--movie-notes-page-border);
    box-shadow: var(--movie-notes-media-shadow);
    background: var(--movie-notes-media-bg);
}

.movie-notes-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: var(--movie-notes-media-max-height);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
}

.movie-notes-image--fallback,
.movie-notes-image--empty {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: var(--movie-notes-fallback-min-height);
    max-height: var(--movie-notes-media-max-height);
    background: var(--movie-notes-fallback-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
}

.movie-notes-image-text {
    padding: 24px;
    color: var(--movie-notes-title-color);
    font: 600 2rem/1.05 'Cormorant Garamond', serif;
    letter-spacing: -0.03em;
    text-align: center;
}

.movie-notes-copy {
    flex: 0 0 var(--movie-notes-copy-width);
    max-width: var(--movie-notes-copy-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.movie-notes-meta {
    margin-bottom: 18px;
    color: var(--movie-notes-muted-color);
    font: 600 0.8rem/1.2 'Archivo', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.movie-notes-meta-separator {
    margin: 0 10px;
}

.movie-notes-headline {
    margin: 0 0 18px;
}

.movie-notes-headline a {
    color: var(--movie-notes-title-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.9rem, 4.9vw, 5.2rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.movie-notes-description,
.movie-notes-description p {
    margin: 0;
    max-width: min(100%, 34rem);
    color: var(--movie-notes-body-color);
    font: 500 1.12rem/1.72 'Archivo', sans-serif;
}

.movie-notes-cta {
    margin-top: 24px;
    color: var(--movie-notes-cta-color);
    font: 600 0.88rem/1.2 'Archivo', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--movie-notes-cta-border);
    padding-bottom: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.movie-notes-headline a:hover,
.movie-notes-cta:hover {
    color: var(--movie-notes-cta-hover-color);
}

.movie-notes-media:hover .movie-notes-image,
.movie-notes-media:hover .movie-notes-image--fallback,
.movie-notes-media:hover .movie-notes-image--empty {
    transform: scale(1.05);
}

.movie-notes-cta:hover {
    border-color: var(--movie-notes-cta-hover-color);
    transform: translateX(4px);
}

@media screen and (max-width: 1100px) {
    .layout.hide-aside:has(.movie-notes-page) {
        padding: 18px 4px 32px;
    }

    .movie-notes-page {
        --movie-notes-copy-width: clamp(21rem, 42vw, 30rem);
        --movie-notes-media-max-height: clamp(320px, 68vh, 680px);
        --movie-notes-fallback-min-height: clamp(260px, 42vh, 420px);
        margin: 0 auto 56px;
        padding: 16px !important;
    }

    .movie-notes-card,
    .movie-notes-card.is-reversed {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-notes-media,
    .movie-notes-copy {
        flex-basis: auto;
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .layout.hide-aside:has(.movie-notes-page) {
        padding: 12px 3px 24px;
    }

    .movie-notes-page {
        --movie-notes-media-max-height: clamp(240px, 58vh, 520px);
        --movie-notes-fallback-min-height: clamp(220px, 36vh, 340px);
        width: 100%;
        margin-bottom: 48px;
        padding: 12px 10px 22px !important;
    }

    .movie-notes-hero {
        margin-bottom: 32px;
    }

    .movie-notes-headline a {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }

    .movie-notes-description,
    .movie-notes-description p {
        font-size: 0.98rem;
    }
}
