/* Shared accessibility and narrow-screen behavior. */
.stream-logo, .brand, .contact-item { overflow-wrap: anywhere; min-width: 0; }
.stream-logo span, .brand-mark { flex: none; }
#latest { scroll-margin-top: 6rem; }
.ad-slot { display: block; width: min(90%, 960px); height: 160px; margin: 1.5rem auto; border: 0; }
#sponsor { max-width: 90%; padding: 1.5rem; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); }
#sponsor::backdrop { background: #0009; }
#sponsor form { display: inline-block; margin-inline-start: 1rem; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* 1 — Newspaper columns and a printed masthead. */
.thema1 .movie-card { border-bottom: 1px solid var(--line); }

/* 2 — Cinema marquee and portrait posters. */
.thema2 { --paper:#101216; --ink:#f7eee5; --line:#58535b; --muted:#d0c3c3; --red:#ff7777; }
.thema2 .cinema-hero { width:100%; background:radial-gradient(ellipse,#58243e,#15121b 70%); padding-inline:8vw; }
.thema2 .cover { aspect-ratio:2/3; border-radius:14px; }
.thema2 .movie-card { border-top:0; }
.thema2 .site-footer { background:#09090d; }

/* 3 — Playlist rows with compact thumbnails. */
.thema3 { --paper:#eef6f2; --blue:#116650; --red:#195448; }
.thema3 .cinema-hero { min-height:330px; border:0; }
.thema3 .movie-grid { grid-template-columns:1fr; gap:10px; }
.thema3 .movie-card { display:grid; grid-template-columns:minmax(80px,128px) 1fr; gap:1rem; padding:8px; background:white; border-radius:12px; border:1px solid var(--line); }
.thema3 .cover { aspect-ratio:16/9; }

/* 4 — Centered art gallery with square prints. */
.thema4 { --paper:#f2eee8; --red:#7a3e25; }
.thema4 .cinema-hero { justify-content:center; text-align:center; background:none; }
.thema4 .hero-actions { justify-content:center; }
.thema4 .cover { aspect-ratio:1; border:10px solid white; outline:1px solid var(--line); }
.thema4 .movie-info { justify-content:center; text-align:center; }

/* 5 — Lead story beside a short list. */
.thema5 { --paper:#edf2ff; --red:#22388e; }
.thema5 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.thema5 .cinema-hero { min-height:350px; }
.thema5 .movie-card:first-child { grid-column:span 2; grid-row:span 2; }
.thema5 .movie-card:first-child .cover { aspect-ratio:1.3; }

/* 6 — Broadcast strips. */
.thema6 { --paper:#e9ecf0; --red:#a82a4b; }
.thema6 main { display:flex; flex-direction:column; }
.thema6 .genre-bar { order:-1; background:#233657; }
.thema6 .movie-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.thema6 .cover { aspect-ratio:3; }
.thema6 .movie-info { padding:12px; background:#fff; }

/* 7 — Contact sheet. */
.thema7 { --paper:#e6e5df; --red:#41433b; }
.thema7 .movie-grid { gap:3px; background:#252725; padding:12px; }
.thema7 .movie-card { background:#fff; border:0; padding:7px; }
.thema7 .cover { aspect-ratio:1; filter:grayscale(1); }
.thema7 .cover:hover { filter:none; }
.thema7 .cinema-hero { min-height:290px; }

/* 8 — Framed double-column catalog. */
.thema8 { --paper:#faf0e8; --red:#6e3255; }
.thema8 .movie-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.thema8 .movie-card { padding:18px; border:3px double var(--ink); }
.thema8 .cover { aspect-ratio:16/9; border:0; }
.thema8 .library-head { justify-content:center; text-align:center; flex-direction:column; align-items:center; }

/* 9 — Compact directory with text beside the play tile. */
.thema9 { --paper:#f2f3e2; --red:#405213; }
.thema9 .movie-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.thema9 .movie-card { display:grid; grid-template-columns:minmax(65px,25%) 1fr; gap:10px; border-top:1px dotted; }
.thema9 .cover { aspect-ratio:1; border-radius:50%; }
.thema9 .rank, .thema9 .quality { display:none; }
.thema9 .cover-play { width:36px; height:36px; }

/* 10 — Offset masonry-inspired rows. */
.thema10 { --paper:#edf7ff; --red:#225378; }
.thema10 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
.thema10 .movie-card:nth-child(3n+2) { margin-top:2rem; }
.thema10 .movie-card:nth-child(3n+2) .cover { aspect-ratio:1; }
.thema10 .cover { border-radius:20px 2px; }

/* 11 — Tall illustrated tickets. */
.thema11 { --paper:#fff0c7; --red:#983a16; }
.thema11 .movie-card { border:2px dashed #986f38; border-radius:20px; padding:10px; }
.thema11 .cover { aspect-ratio:3/4; border-radius:50% 50% 0 0 / 24% 24% 0 0; }
.thema11 .movie-info { border-top:2px dashed #986f38; margin-top:10px; }

/* 12 — Filmstrip with left-aligned section navigation. */
.thema12 { --paper:#e6e8ee; --red:#173883; }
.thema12 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); border-block:9px dotted #303443; padding-block:14px; }
.thema12 .cover { aspect-ratio:2.35; }
.thema12 .library-head p { border-left:3px solid; padding-left:12px; }
.thema12 .cinema-hero { min-height:290px; }

/* 13 — Split catalog with staggered feature spans. */
.thema13 { --paper:#eef1f6; --red:#58378b; }
.thema13 .movie-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.thema13 .movie-card:nth-child(3n+1) { grid-column:span 2; }
.thema13 .cover { height:clamp(110px,18vw,240px); aspect-ratio:auto; border-radius:22px; }

/* 14 — Round media tiles. */
.thema14 { --paper:#e9f7fb; --red:#005e6b; }
.thema14 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; }
.thema14 .movie-card { border:0; text-align:center; }
.thema14 .cover { width:min(100%,230px); aspect-ratio:1; border-radius:50%; }
.thema14 .movie-info { justify-content:center; }
.thema14 .quality, .thema14 .rank { display:none; }

/* 15 — Deck cards with title above the poster. */
.thema15 { --paper:#f8eefa; --red:#77295f; }
.thema15 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.thema15 .movie-card { display:flex; flex-direction:column-reverse; background:white; padding:12px; box-shadow:4px 7px #dcc4df; }
.thema15 .movie-info { padding:0 0 10px; }
.thema15 .cover { aspect-ratio:16/9; border:0; }

/* 16 — Hero aligned right with a wide single-column feed. */
.thema16 { --paper:#e6f0e5; --red:#224d39; }
.thema16 .cinema-hero { justify-content:flex-end; text-align:right; }
.thema16 .hero-actions { justify-content:flex-end; }
.thema16 .hero-content p { margin-left:auto; }
.thema16 .movie-grid { grid-template-columns:1fr; max-width:750px; margin:auto; }
.thema16 .cover { aspect-ratio:3.2; }

/* 17 — Magazine spreads with alternating thumbnails. */
.thema17 { --paper:#f8eee5; --red:#91491c; }
.thema17 .movie-grid { grid-template-columns:1fr; }
.thema17 .movie-card { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.thema17 .movie-card:nth-child(even) .cover { grid-column:2; grid-row:1; }
.thema17 .movie-card:nth-child(even) .movie-info { grid-column:1; grid-row:1; }
.thema17 .cover { aspect-ratio:2.6; }

/* 18 — Overlay cards for a compact streaming shelf. */
.thema18 { --paper:#131822; --ink:#f1f6ff; --red:#ff9276; --muted:#b5c4d9; --line:#65758e; }
.thema18 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.thema18 .movie-card { position:relative; border:0; padding:0; }
.thema18 .movie-info { position:absolute; inset:auto 0 0; color:white; background:#161823e8; padding:10px; pointer-events:none; }
.thema18 .movie-info small { color:#ffe0d7; }
.thema18 .movie-info button { pointer-events:auto; }
.thema18 .site-footer { background:#0c0f16; }

/* 19 — Dense archive index; numbers and labels form horizontal rows. */
.thema19 { --paper:#edf3ed; --red:#2d5d38; }
.thema19 .cinema-hero { min-height:280px; border:0; }
.thema19 .movie-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1.25rem; }
.thema19 .movie-card { display:grid; grid-template-columns:54px 1fr; gap:12px; align-items:center; border-top:1px solid var(--line); padding:8px 0; }
.thema19 .cover { aspect-ratio:1; }
.thema19 .cover-play { width:30px; height:30px; box-shadow:none; }
.thema19 .quality, .thema19 .rank, .thema19 .movie-info small { display:none; }

/* 20 — Full-width opening feature and alternating wide/narrow pairs. */
.thema20 { --paper:#f4f0ff; --red:#503aa0; }
.thema20 .movie-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.thema20 .movie-card:first-child { grid-column:1/-1; }
.thema20 .movie-card:nth-child(4n+2), .thema20 .movie-card:nth-child(4n+5) { grid-column:span 2; }
.thema20 .cover { height:clamp(125px,20vw,270px); aspect-ratio:auto; }
.thema20 .movie-card:first-child .cover { height:clamp(185px,30vw,370px); }

body:not(.thema1) .cinema-hero::before,
body:not(.thema1) .hero-reel { display:none; }
.thema2 .top-nav, .thema18 .top-nav { background:var(--paper); }
.thema2 .movie-info button, .thema18 .movie-info button { color:#161823; border-color:#161823; }
.thema2 .pagination a, .thema18 .pagination a,
.thema2 .legal-card, .thema18 .legal-card,
.thema2 .contact-item, .thema18 .contact-item { background:#1c2330; }
@media (max-width: 700px) {
    .cinema-hero { width:100%; min-height:360px; background:none; }
    .hero-content { width:100%; }
    .hero-content h1 { font-size:clamp(2.6rem,10vw,4.5rem); line-height:.94; }
    .cinema-hero::before, .hero-reel { display:none; }
    .genre-bar { gap:14px; }
    .genre-bar p, .genre-bar i { display:none; }
    .genre-bar a { display:block; }
    .movie-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .thema3 .movie-grid, .thema9 .movie-grid, .thema16 .movie-grid,
    .thema17 .movie-grid, .thema19 .movie-grid { grid-template-columns:1fr !important; }
    .thema5 .movie-card:first-child { grid-row:auto; }
    .thema10 .movie-card:nth-child(3n+2) { margin-top:0; }
    .thema18 .cover { min-height:125px; }
    .thema18 .cover-play { top:-25px; }
}
