/* ==========================================================
   CINÉMA LE RIO — MODERNISATION ÉTAPE 1
   Modernisation visuelle légère, sans changement du moteur PHP
   ========================================================== */

@font-face {
    font-family: 'Amalfi Coast';
    src: url('../fonts/AmalfiCoast.woff2') format('woff2'),
         url('../fonts/AmalfiCoast.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --rio-bg: #111214;
    --rio-panel: #1b1d20;
    --rio-panel-hover: #22252a;
    --rio-text: #f5f5f5;
    --rio-muted: #b9bcc2;
    --rio-red: #e11b22;
    --rio-red-dark: #9f1015;
    --rio-yellow: #ffe45c;
    --rio-border: rgba(255,255,255,.09);
    --rio-shadow: 0 10px 28px rgba(0,0,0,.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 50% -180px, rgba(225,27,34,.12), transparent 420px),
        var(--rio-bg);
    color: var(--rio-text);
}

body {
    line-height: 1.45;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ------------------- HEADER ------------------- */
header {
    width: auto;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #fff;
    background: linear-gradient(180deg,#181818 0%,#090909 100%);
    border-bottom: 2px solid #b31217;
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
    border-radius: 8px;
}

.logo-left,
.logo-right {
    flex: 0 0 auto;
}

.logo-left img,
.logo-right img {
    display: block;
    height: 90px;
    width: auto;
    object-fit: contain;
}

.header-center {
    min-width: 0;
    text-align: center;
}

.header-title {
    font-family: 'Amalfi Coast', cursive;
    font-size: 2.3rem;
    line-height: 1.1;
    color: var(--rio-red);
    margin-bottom: .55rem;
    text-shadow: 0 0 18px rgba(225,27,34,.22);
}

/* ------------------- NAV ------------------- */
nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem .95rem;
    margin-top: .85rem;
}

nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .3rem .12rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .98rem;
    transition: color .2s ease, transform .2s ease;
}

nav a:not(.menu-noel)::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: var(--rio-red);
    border-radius: 999px;
    transition: left .2s ease, right .2s ease;
}

nav a:not(.menu-noel):hover,
nav a:not(.menu-noel):focus-visible {
    color: #fff;
    transform: translateY(-1px);
}

nav a:not(.menu-noel):hover::after,
nav a:not(.menu-noel):focus-visible::after {
    left: 0;
    right: 0;
}

/* ------------------- MAIN ------------------- */
main {
    text-align: center;
    padding: 1.25rem 1rem 0;
}

h1, h2 {
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

.section-heading {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #050505, #171717);
    border: 1px solid var(--rio-border);
    border-left: 1px solid var(--rio-border);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.24);
}

.section-heading-next {
    margin-top: 3rem;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.8vw, 1.8rem);
    line-height: 1.25;
}

/* ------------------- GRILLE FILMS ------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto 0;
    justify-content: center;
}

.grid.accueil {
    display: grid;
    grid-template-columns: repeat(auto-fit, 170px);
    justify-content: center;
    align-items: stretch;
    gap: 2.2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.grid.accueil .film {
    position: relative;
    width: 170px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    color: var(--rio-text);
    background: linear-gradient(180deg, #202226, #181a1d);
    border: 1px solid var(--rio-border);
    border-radius: 15px;
    box-shadow: var(--rio-shadow);
    transform: translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.grid.accueil .film:hover {
    transform: translateY(-6px);
    border-color: rgba(225,27,34,.42);
    background: linear-gradient(180deg, var(--rio-panel-hover), #1a1c20);
    box-shadow: 0 16px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(225,27,34,.08);
}

.grid.accueil .film > a {
    display: block;
    overflow: hidden;
    background: #090909;
}

.grid.accueil .film img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border: 0;
    border-bottom: 1px solid var(--rio-border);
    transition: transform .35s ease, filter .35s ease;
}

.grid.accueil .film:hover img {
    transform: scale(1.035);
    filter: brightness(1.06) contrast(1.02);
}

.grid.accueil .film h2 {
    min-height: 2.65em;
    margin: .8rem .65rem .35rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rio-yellow);
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.3;
}

.grid.accueil .film p {
    margin: .18rem .65rem;
    padding: 0;
    color: var(--rio-muted);
    font-size: .88rem;
    line-height: 1.35;
    text-align: center;
}

.grid.accueil .film p:last-child {
    margin-top: auto;
    padding: .65rem .55rem .8rem;
    color: #fff;
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.05);
}

.grid.accueil .film p:last-child strong {
    color: #fff;
    font-size: .92rem;
}

/* Bouton réservation */
.btn-reserver {
    display: inline-block;
    margin-top: .6rem;
    padding: .55rem .9rem;
    color: #fff;
    background: linear-gradient(180deg, var(--rio-red), var(--rio-red-dark));
    border-radius: 8px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(198,40,40,.23);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-reserver:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 9px 20px rgba(198,40,40,.32);
}

/* ------------------- TEXTE D'AIDE ------------------- */
main section > p[style] {
    color: #c8cbd0;
}

/* ------------------- FOOTERS ------------------- */
footer {
    margin-top: 3rem;
    padding: 1.05rem 1rem;
    text-align: center;
    color: #d8d8d8;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,.07);
}

footer + footer {
    margin-top: 0 !important;
    border-top: 1px solid rgba(255,255,255,.05);
}

footer p {
    margin: 0;
    line-height: 1.7;
}

footer a {
    color: #fff;
    text-decoration-color: rgba(255,255,255,.45);
    text-underline-offset: 3px;
    transition: color .2s ease;
}

footer a:hover {
    color: #ff6b70;
}

/* ------------------- ACCESSIBILITÉ ------------------- */
a:focus-visible {
    outline: 3px solid rgba(255,228,92,.9);
    outline-offset: 3px;
    border-radius: 5px;
}

/* ------------------- TABLETTES / MOBILES ------------------- */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    header {
        width: 100% !important;
        max-width: none;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: .45rem;
        padding: .7rem .8rem .9rem;
        background: #050505 !important;
    }

    .logo-left img,
    .logo-right img {
        height: 58px;
    }

    .logo-right {
        display: none;
    }

    .header-title {
        font-size: 1.9rem;
        margin-bottom: .25rem;
    }

    nav {
        width: 100%;
        gap: .35rem .8rem;
        margin-top: .55rem;
    }

    nav a {
        min-height: 36px;
        font-size: .93rem;
    }

    main {
        padding: .9rem .7rem 0;
    }

    .section-heading {
        padding: .85rem .8rem;
        border-radius: 10px;
    }

    .grid.accueil {
        grid-template-columns: repeat(auto-fit, minmax(150px, 170px));
        gap: 1.25rem;
    }

    .grid.accueil .film {
        width: 100%;
    }

    .grid.accueil .film img {
        height: 225px;
    }
}

@media (max-width: 480px) {
    .logo-left img {
        height: 52px;
    }

    .header-title {
        font-size: 1.55rem;
        margin-bottom: .15rem;
    }

    nav {
        gap: .25rem .65rem;
    }

    nav a {
        min-height: 34px;
        font-size: .84rem;
    }

    main {
        padding-left: .55rem;
        padding-right: .55rem;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 1.28rem;
    }

    .grid.accueil {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
        width: 100%;
    }

    .grid.accueil .film {
        min-width: 0;
        border-radius: 12px;
    }

    .grid.accueil .film img {
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .grid.accueil .film h2 {
        min-height: 2.9em;
        margin: .65rem .4rem .25rem;
        font-size: .84rem;
    }

    .grid.accueil .film p {
        margin-left: .35rem;
        margin-right: .35rem;
        font-size: .78rem;
    }

    .grid.accueil .film p:last-child {
        padding: .55rem .3rem .65rem;
    }

    .grid.accueil .film p:last-child strong {
        font-size: .8rem;
    }

    footer {
        padding-left: .7rem;
        padding-right: .7rem;
        font-size: .86rem;
    }
}

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


/* ==========================================================
   CORRECTIF ÉTAPES 1 + 2 — VERSION 2
   ========================================================== */

/* Espace net entre le titre et le menu */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-title {
    margin: 0 0 22px 0 !important;
}

.header-center nav {
    margin-top: 0 !important;
}

/* Étape 2 : cartes films plus lisibles et plus structurées */
.grid.accueil .film {
    border-radius: 18px;
    background: linear-gradient(180deg, #25282d 0%, #17191d 100%);
    box-shadow: 0 12px 30px rgba(0,0,0,.48);
}

.grid.accueil .film img {
    height: 205px;
}

.grid.accueil .film h2 {
    min-height: 3.1em;
    margin: .9rem .75rem .35rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: #ffe66d;
    font-size: 1rem;
    line-height: 1.25;
}

.grid.accueil .film .film-duration {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin: .25rem .65rem .45rem;
    padding: .28rem .65rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #d7d9de;
    font-size: .84rem;
}

.grid.accueil .film .film-session {
    margin: auto .65rem .8rem;
    padding: .7rem .55rem;
    border-radius: 10px;
    background: rgba(225,27,34,.12);
    border: 1px solid rgba(225,27,34,.25);
    color: #fff;
    line-height: 1.35;
}

.grid.accueil .film .session-label {
    display: block;
    margin-bottom: .25rem;
    color: #ff9ca0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.grid.accueil .film .film-session strong {
    font-size: .92rem;
}

@media (max-width: 768px) {
    .header-title {
        margin-bottom: 16px !important;
    }

    .grid.accueil .film img {
        height: 190px;
    }
}

@media (max-width: 480px) {
    .header-title {
        margin-bottom: 13px !important;
    }

    .grid.accueil .film h2 {
        font-size: .9rem;
    }

    .grid.accueil .film .film-duration {
        font-size: .78rem;
    }

    .grid.accueil .film .film-session strong {
        font-size: .84rem;
    }
}

/* Centre automatiquement une seule affiche sur mobile */
@media (max-width: 480px) {

    .grid.accueil {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .8rem;
    }

    .grid.accueil .film {
        width: min(170px, 90vw);
        flex: 0 0 auto;
    }

}
/* ==========================================================
   CORRECTIFS FINAUX MOBILE
   - masque les logos dans l'en-tête sur smartphone/tablette
   - conserve le titre et le menu centrés
   - centre correctement les affiches
   ========================================================== */
@media screen and (max-width: 768px) {

    header .logo-left,
    header .logo-right {
        display: none !important;
    }

    header {
        width: 100% !important;
        max-width: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        padding: .9rem .8rem 1rem !important;
    }

    header .header-center {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    header .header-title {
        margin: 0 0 16px !important;
        text-align: center !important;
    }

    header nav {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 480px) {

    header .header-title {
        margin-bottom: 13px !important;
    }

    .grid.accueil {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: .8rem !important;
        width: 100% !important;
    }

    .grid.accueil .film {
        width: min(180px, 90vw) !important;
        flex: 0 0 auto !important;
    }
}

/* ==========================================================
   CORRECTIF LIVRAISON FINALE MOBILE
   ========================================================== */
@media screen and (max-width: 768px) {
    header .logo-left,
    header .logo-right {
        display: none !important;
    }

    header {
        width: 100% !important;
        max-width: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        padding: .9rem .8rem 1rem !important;
    }

    header .header-center {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    header .header-title {
        margin: 0 0 16px !important;
        text-align: center !important;
    }

    header nav {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    header .header-title {
        margin-bottom: 13px !important;
    }

    .grid.accueil {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: .8rem !important;
        width: 100% !important;
    }

    .grid.accueil .film {
        width: min(180px, 90vw) !important;
        flex: 0 0 auto !important;
    }
}

/* ==========================================================
   ÉTAPE 3 — CARTES FILMS PREMIUM
   Modification visuelle uniquement
   ========================================================== */

.grid.accueil .film {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 28%),
        linear-gradient(180deg, #24272c 0%, #15171a 100%);
    box-shadow:
        0 10px 26px rgba(0,0,0,.46),
        inset 0 1px 0 rgba(255,255,255,.035);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.grid.accueil .film:hover {
    transform: translateY(-5px);
    border-color: rgba(225,27,34,.46);
    box-shadow:
        0 17px 38px rgba(0,0,0,.58),
        0 0 0 1px rgba(225,27,34,.08),
        inset 0 1px 0 rgba(255,255,255,.045);
}

.grid.accueil .film > a {
    position: relative;
    overflow: hidden;
}

.grid.accueil .film > a::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 66%,
        rgba(0,0,0,.20) 100%
    );
    opacity: .65;
    transition: opacity .25s ease;
}

.grid.accueil .film:hover > a::after {
    opacity: .35;
}

.grid.accueil .film img {
    height: 205px;
    transform: scale(1);
    filter: saturate(.96) contrast(1.02);
    transition:
        transform .38s ease,
        filter .38s ease;
}

.grid.accueil .film:hover img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.04) brightness(1.04);
}

.grid.accueil .film h2 {
    min-height: 3em;
    margin: .78rem .65rem .28rem;
    padding: 0 0 .58rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #ffe56a;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    text-shadow: 0 1px 8px rgba(0,0,0,.40);
}

.grid.accueil .film .film-duration {
    margin: .18rem auto .50rem;
    padding: .25rem .62rem;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #d8dbe0;
    font-size: .79rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.grid.accueil .film .film-session {
    margin: auto .55rem .60rem;
    padding: .62rem .45rem .66rem;
    border: 1px solid rgba(225,27,34,.24);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(225,27,34,.13), rgba(225,27,34,.075));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.grid.accueil .film .session-label {
    margin-bottom: .20rem;
    color: #ff9da1;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .075em;
}

.grid.accueil .film .film-session strong {
    color: #ffffff;
    font-size: .86rem;
    line-height: 1.28;
}

@media (max-width: 768px) {
    .grid.accueil .film img {
        height: 190px;
    }
}

@media (max-width: 480px) {
    .grid.accueil .film {
        border-radius: 14px;
    }

    .grid.accueil .film img {
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .grid.accueil .film h2 {
        margin: .66rem .45rem .24rem;
        padding-bottom: .48rem;
        font-size: .86rem;
    }

    .grid.accueil .film .film-session {
        margin-left: .42rem;
        margin-right: .42rem;
    }
}


/* ==========================================================
   ETAPE 4 — FINITIONS PREMIUM
   ========================================================== */

.section-heading{
    position:relative;
    overflow:hidden;
}

.section-heading::before{
    content:"";
    position:absolute;
    top:0;left:0;right:0;
    height:3px;
    background:linear-gradient(90deg,#a50f14,#ffd95d,#a50f14);
}

.section-heading h1,
.section-heading h2{
    letter-spacing:.02em;
}

.grid.accueil{
    gap:2.6rem;
}

.grid.accueil .film{
    overflow:visible;
}

.grid.accueil .film > a img{
    border-radius:14px 14px 0 0;
}

.grid.accueil .film:hover{
    transform:translateY(-7px);
}

.grid.accueil .film .film-session{
    transition:all .25s ease;
}

.grid.accueil .film:hover .film-session{
    border-color:rgba(255,217,93,.45);
    box-shadow:0 0 14px rgba(255,217,93,.12);
}

main section > p[style]{
    color:#e0e0e0;
    font-size:1rem;
    letter-spacing:.02em;
}


/* ==========================================================
   ETAPE 5 — TITRES DES SECTIONS
   ========================================================== */

.section-heading{
    padding:1.25rem 1.5rem;
    border-radius:18px;
    background:
      radial-gradient(circle at top, rgba(255,217,93,.08), transparent 60%),
      linear-gradient(180deg,#17181b,#0b0c0d);
    box-shadow:
      0 12px 28px rgba(0,0,0,.40),
      inset 0 1px 0 rgba(255,255,255,.04);
}

.section-heading h1,
.section-heading h2{
    font-size:clamp(1.55rem,2.8vw,2rem);
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#fff8d7;
    text-shadow:
      0 0 10px rgba(255,217,93,.18),
      0 2px 8px rgba(0,0,0,.55);
}

.section-heading::after{
    content:"";
    display:block;
    width:90px;
    height:3px;
    margin:14px auto 0;
    border-radius:999px;
    background:linear-gradient(90deg,#b10f15,#ffd95d,#b10f15);
}

/* ==========================================================
   FICHE FILM — MODERNISATION VISUELLE
   Aucun changement du fonctionnement PHP
   ========================================================== */

.film-page .film-detail-main {
    padding: 2rem 1rem 0;
}

.film-detail-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.film-detail-heading {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1.45rem 1.5rem 1.6rem;
    border: 1px solid var(--rio-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(255,217,93,.09), transparent 62%),
        linear-gradient(180deg, #17181b, #0b0c0d);
    box-shadow: 0 12px 30px rgba(0,0,0,.42);
}

.film-detail-heading::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #a50f14, #ffd95d, #a50f14);
}

.film-detail-kicker,
.film-detail-section-title > span {
    display: block;
    margin-bottom: .35rem;
    color: #ff9da1;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.film-detail-heading h1 {
    margin: 0;
    color: #fff8d7;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: .025em;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.film-detail-card {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%),
        linear-gradient(145deg, #212328, #15171a);
    box-shadow: 0 18px 44px rgba(0,0,0,.46);
}

.film-detail-poster-column {
    align-self: start;
}

.film-detail-poster-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: #090909;
    box-shadow: 0 18px 34px rgba(0,0,0,.52);
}

.film-detail-poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.film-detail-poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.film-detail-meta {
    display: grid;
    gap: .7rem;
    margin-top: 1rem;
}

.film-detail-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem .85rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    color: #f5f5f5;
    font-size: .9rem;
}

.film-detail-meta-item strong {
    color: var(--rio-muted);
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.film-detail-content {
    display: grid;
    align-content: start;
    gap: 1.6rem;
    min-width: 0;
    text-align: left;
}

.film-detail-sessions,
.film-detail-synopsis,
.film-detail-trailer {
    padding: 1.35rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(0,0,0,.19);
}

.film-detail-section-title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 800;
}

.film-detail-section-title p {
    margin: .35rem 0 0;
    color: var(--rio-muted);
    font-size: .92rem;
}

.film-detail-session-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.film-detail-session-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 48px;
    margin: 0;
    padding: .75rem .9rem;
    text-align: center;
    line-height: 1.3;
}

.film-detail-calendar-icon {
    flex: 0 0 auto;
    color: #ffd95d;
    font-size: .55rem;
    text-shadow: 0 0 8px rgba(255,217,93,.48);
}

.film-detail-synopsis p {
    margin: 1rem 0 0;
    color: #dedfe3;
    font-size: 1rem;
    line-height: 1.75;
}

.film-detail-trailer {
    margin-top: 1.6rem;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        #111315;
    box-shadow: 0 14px 34px rgba(0,0,0,.34);
}

.film-detail-video-wrap {
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    background: #000;
    box-shadow: 0 14px 30px rgba(0,0,0,.4);
}

.film-detail-video-wrap video {
    display: block;
    width: 100%;
    max-height: 620px;
    margin: 0;
    background: #000;
}

.film-detail-back {
    margin-top: 1.7rem;
    text-align: center;
}

.film-detail-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1.2rem;
    border: 1px solid rgba(255,217,93,.38);
    border-radius: 10px;
    color: #fff8d7;
    background: linear-gradient(180deg, #282218, #171511);
    box-shadow: 0 9px 22px rgba(0,0,0,.3);
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.film-detail-back a:hover {
    transform: translateY(-2px);
    border-color: rgba(255,217,93,.72);
    box-shadow: 0 12px 27px rgba(0,0,0,.42), 0 0 15px rgba(255,217,93,.09);
}

@media (max-width: 800px) {
    .film-page .film-detail-main {
        padding-top: 1.25rem;
    }

    .film-detail-card {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 1.25rem;
    }

    .film-detail-poster-column {
        width: min(285px, 100%);
        margin: 0 auto;
    }

    .film-detail-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .film-page .film-detail-main {
        padding-left: .55rem;
        padding-right: .55rem;
    }

    .film-detail-heading {
        padding: 1.2rem .9rem 1.3rem;
        border-radius: 14px;
    }

    .film-detail-card {
        padding: .8rem;
        border-radius: 16px;
    }

    .film-detail-sessions,
    .film-detail-synopsis,
    .film-detail-trailer {
        padding: 1rem;
        border-radius: 13px;
    }

    .film-detail-session-list {
        grid-template-columns: 1fr;
    }

    .film-detail-session-button {
        width: 100%;
        font-size: .85rem;
    }

    .film-detail-synopsis p {
        font-size: .94rem;
        line-height: 1.65;
    }
}
