/* EPK Digital Download - Fixed page layout for PDF export */
/* Each .page = exactly one US Letter page (8.5 x 11 in) */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal-dark: #1a3a4a;
    --teal-mid: #1f4a5a;
    --teal-light: #2a5a6a;
    --cream: #f0e6d3;
    --gold: #c9a96e;
    --white: #ffffff;
    --orange: #FF8C42;
    --text-light: #d4cfc5;
    --text-dim: #8a9aa5;
    --border-teal: rgba(74, 160, 180, 0.25);
}

html {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #333;
    color: var(--cream);
    line-height: 1.6;
}

/* ============================================
   TOOLBAR (screen only)
   ============================================ */
.toolbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 58, 74, 0.97);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 2rem;
    border-bottom: 2px solid var(--gold);
}

.toolbar-back {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.toolbar-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--cream);
}

.toolbar-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toolbar-btn:hover {
    background: #e67a30;
}

/* ============================================
   PAGE CONTAINERS
   Each page = exactly one US Letter sheet
   ============================================ */
.page {
    width: 8.5in;
    min-height: 11in;
    max-height: 11in;
    margin: 60px auto 0;
    background: var(--teal-dark);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.page:first-of-type {
    margin-top: 70px;
}

.page-content {
    padding: 0.6in 0.75in;
    height: 100%;
    box-sizing: border-box;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 5px;
    color: var(--cream);
    text-align: center;
    margin-bottom: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-teal);
}

.sub-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.body-text {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0.7rem;
    text-align: justify;
}

.logline-text {
    font-size: 0.92rem;
    color: var(--cream);
    line-height: 1.8;
}

/* ============================================
   COVER PAGE
   ============================================ */
.page-cover {
    background: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content {
    text-align: center;
    padding: 0.5in;
}

.cover-laurel img {
    max-width: 240px;
    width: 80%;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.cover-poster img {
    max-width: 4.5in;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.cover-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
    letter-spacing: 1px;
}

/* ============================================
   FACTS BAR
   ============================================ */
.facts-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.8rem 0;
    margin: 0.8rem 0 1rem;
    border-top: 1px solid var(--border-teal);
    border-bottom: 1px solid var(--border-teal);
}

.fact {
    text-align: center;
}

.fact-label {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.fact-value {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--cream);
}

/* ============================================
   STILLS PAGE
   ============================================ */
.stills-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-flex {
    display: flex;
    flex-direction: column;
    height: 11in;
    padding: 0.6in 0.75in;
    box-sizing: border-box;
    overflow: hidden;
}

.stills-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2in;
}

.stills-grid-2x2 img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.stills-flex-fill {
    flex: 1;
    min-height: 0;
    grid-auto-rows: 1fr;
}

.stills-flex-fill img {
    min-height: 0;
}

.stills-3row {
    grid-template-rows: repeat(3, 1.75in);
}

.stills-3row img {
    height: 1.75in;
}

/* ============================================
   FILMMAKER BIOS
   ============================================ */
.bio-block {
    display: grid;
    grid-template-columns: 1.4in 1fr;
    gap: 0.4in;
    margin-bottom: 0.8rem;
    align-items: start;
}

.bio-photo-box {
    width: 1.4in;
    height: 1.75in;
    border-radius: 4px;
    overflow: hidden;
    background: var(--teal-light);
}

.bio-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--cream);
    margin: 0;
}

.bio-role {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.bio-body {
    font-size: 0.78rem;
    line-height: 1.65;
    color: var(--text-light);
    text-align: justify;
}

/* ============================================
   CAST BIOS
   ============================================ */
.cast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.28in 0.4in;
}

.cast-bio-block {
    display: grid;
    grid-template-columns: 1.0in 1fr;
    gap: 0.15in;
    align-items: start;
}

.cast-photo-box {
    width: 1.0in;
    height: 1.25in;
    border-radius: 3px;
    overflow: hidden;
    background: var(--teal-light);
}

.cast-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--cream);
    margin: 0;
    line-height: 1.1;
}

.cast-character {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.05rem;
}

.cast-body {
    font-size: 0.67rem;
    line-height: 1.45;
    color: var(--text-light);
}

/* ============================================
   CREDITS TABLE
   ============================================ */
.credits-table {
    max-width: 6.5in;
    margin: 0 auto 0.5rem;
}

.credits-sub {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.credit-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.15rem 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-table.compact .credit-row {
    font-size: 0.68rem;
    padding: 0.1rem 0;
}

.cr-role {
    text-align: right;
    flex: 1;
    color: var(--gold);
    font-weight: 700;
}

.cr-name {
    text-align: left;
    flex: 1;
    color: var(--cream);
    font-weight: 600;
}

/* ============================================
   SONGS
   ============================================ */
.songs-list {
    columns: 2;
    column-gap: 0.5in;
    column-fill: balance;
}

.song-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 160, 180, 0.08);
    break-inside: avoid;
}

.song-t {
    font-weight: 700;
    color: var(--cream);
    font-size: 0.85rem;
}

.song-d {
    color: var(--text-dim);
    font-size: 0.73rem;
    display: block;
    line-height: 1.5;
}

/* ============================================
   PRESS
   ============================================ */
.info-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 11in;
    padding: 0.6in 0.75in;
    box-sizing: border-box;
    overflow: hidden;
}

.press-list {
    max-width: 6in;
    margin: 0 auto;
}

.press-row {
    margin-bottom: 0.7rem;
}

.press-headline {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.press-source {
    display: block;
    color: var(--text-dim);
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

/* ============================================
   TECH SPECS
   ============================================ */
.specs-list {
    text-align: center;
    max-width: 5in;
    margin: 0 auto;
}

.spec-row {
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
}

.spec-label {
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    color: var(--cream);
}

/* ============================================
   LOCATIONS
   ============================================ */
.locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.loc-tag {
    background: rgba(74, 160, 180, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--cream);
    border-left: 3px solid var(--gold);
}

/* ============================================
   CLOSING PAGE
   ============================================ */
.page-closing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
}

.closing-content {
    text-align: center;
}

.closing-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    letter-spacing: 6px;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.closing-tagline {
    font-size: 1rem;
    color: var(--teal-dark);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.closing-contact h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.closing-contact p {
    color: var(--teal-dark);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.closing-copyright {
    margin-top: 2rem;
    color: var(--teal-dark);
    opacity: 0.5;
    font-size: 0.7rem;
}

/* ============================================
   SCREEN: nice scrolling preview
   ============================================ */
@media screen {
    body {
        padding-bottom: 2rem;
    }

    .page {
        margin-bottom: 1.5rem;
        border: 1px solid rgba(74, 160, 180, 0.2);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .no-print {
        display: none !important;
    }

    body {
        background: none;
        margin: 0;
        padding: 0;
    }

    .page {
        width: 8.5in;
        height: 11in;
        min-height: 11in;
        max-height: 11in;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        page-break-after: always;
        page-break-inside: avoid;
        overflow: hidden;
    }

    .page:last-child {
        page-break-after: auto;
    }

    @page {
        margin: 0;
        size: letter;
    }
}
