/*
Theme Name: Rialto Channel
Theme URI: https://rialtochannel.co.nz
Author: Rialto Channel
Author URI: https://rialtochannel.co.nz
Description: Custom theme for Rialto Channel - New Zealand's premium film channel
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rialto-theme
Tags: entertainment, films, custom-logo, custom-menu

Rialto Channel Theme - Matching the classic Rialto design with modern functionality.
*/

/* ==========================================================================
   CSS Variables - Rialto Brand Colors
   ========================================================================== */
:root {
    --rialto-black: #1a1a1a;
    --rialto-gold: #bfb099;
    --rialto-gold-dark: #a89a84;
    --rialto-white: #ffffff;
    --rialto-gray: #333333;
    --rialto-gray-light: #666666;
    --rialto-bg: #0d0d0d;
    --rialto-bg-light: #1f1f1f;
    --rialto-border: #333333;
    --rialto-red: #e63946;

    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--rialto-white);
    background-color: var(--rialto-bg);
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

a {
    color: var(--rialto-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rialto-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--rialto-black);
    border-bottom: 1px solid var(--rialto-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo a {
    display: block;
}

/* Header Actions (search, bell, sky go, join) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Header Search Icon */
.header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--rialto-gold);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.header-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header-search:hover {
    background: rgba(191, 176, 153, 0.15);
    color: #fff;
}

/* ===== Search Overlay ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    pointer-events: none;
}

.search-overlay.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.search-overlay-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.search-overlay-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 176, 153, 0.3);
    border-radius: 8px;
    padding: 4px 12px;
    transition: border-color 0.2s;
}

.search-overlay-input-wrap:focus-within {
    border-color: var(--rialto-gold);
}

.search-overlay-icon {
    color: var(--rialto-gold);
    flex-shrink: 0;
    margin-right: 12px;
}

.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: inherit;
    padding: 10px 0;
    width: 100%;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-overlay-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.search-overlay-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.search-overlay-close-corner {
    position: absolute;
    top: 20px;
    right: 24px;
    left: auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.search-overlay-close-corner:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Search Overlay Filters Row */
.search-overlay-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.search-overlay-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.search-overlay-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.search-overlay-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 176, 153, 0.3);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 12px 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bfb099' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.search-overlay-select:focus {
    outline: none;
    border-color: var(--rialto-gold);
}

.search-overlay-select option {
    background: #1a1a1a;
    color: #fff;
}

.search-overlay-submit {
    background: var(--rialto-gold);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.search-overlay-submit:hover {
    background: #d4c5ad;
}

.search-overlay-submit:active {
    transform: scale(0.97);
}

@media (max-width: 600px) {
    .search-overlay-form {
        flex-direction: column;
        gap: 12px;
    }
    .search-overlay-input-wrap {
        width: 100%;
    }
    .search-overlay-filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
    .search-overlay-select {
        min-width: 0;
    }
    .search-overlay-submit {
        min-width: 0;
    }
}

/* Prevent scrolling when overlay is open */
body.search-overlay-active {
    overflow: hidden;
}

/* Header Bell Icon */
.header-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--rialto-gold);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.header-bell:hover {
    background: rgba(191, 176, 153, 0.15);
    color: #fff;
}

.header-bell-dot {
    display: none;
    position: absolute;
    top: 4px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid var(--rialto-black);
}

.header-bell-dot.has-reminders {
    display: block;
}

.header-bell-badge {
    position: absolute;
    top: 2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    border: 2px solid var(--rialto-black);
    box-sizing: border-box;
}

/* Header Sky Go Button - matches film detail style with SVG logo */
.header-skygo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.header-skygo:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.header-skygo-logo {
    width: 60px;
    height: 22px;
}

/* Header Join Rialto CTA */
.header-join-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    margin-left: 4px;
    background: var(--rialto-gold);
    border: 1px solid var(--rialto-gold);
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-join-btn:hover {
    background: #000;
    color: var(--rialto-gold);
}

/* Mobile nav CTAs - hidden on desktop */
.mobile-nav-ctas {
    display: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--rialto-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--rialto-gold);
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rialto-black);
    border: 1px solid var(--rialto-border);
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 100;
    border-radius: 0 0 8px 8px;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--rialto-border);
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

/* Nights submenu - wider, colour accents */
.main-navigation .nights-submenu {
    min-width: 280px;
}

.main-navigation .nights-submenu a {
    font-size: 0.85rem;
    padding: 10px 16px 10px 24px;
    white-space: nowrap;
    position: relative;
}

.main-navigation .nights-submenu li {
    position: relative;
}

.main-navigation .nights-submenu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--night-accent, var(--rialto-gold));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.main-navigation .nights-submenu li:hover::before {
    opacity: 1;
}

.main-navigation .nights-submenu li:hover a {
    color: var(--night-accent, var(--rialto-gold));
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--rialto-gold);
    color: var(--rialto-gold);
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1rem;
}

/* ==========================================================================
   Themed Nights Navigation - 2-line slick design
   ========================================================================== */
.nights-navigation {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-bottom: 1px solid rgba(191, 176, 153, 0.2);
}

.nights-navigation-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.night-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    min-width: 130px;
}

.night-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.night-item:last-child::after {
    display: none;
}

.night-day {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.night-category {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rialto-gray-light);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.night-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.night-item:hover .night-day {
    color: var(--night-color, var(--rialto-gold));
    opacity: 0.8;
}

.night-item:hover .night-category {
    color: var(--night-color, var(--rialto-gold));
}

.night-item.active {
    border-bottom-color: var(--night-color, var(--rialto-gold));
    background: rgba(255, 255, 255, 0.05);
}

.night-item.active .night-day {
    color: var(--night-color, var(--rialto-gold));
}

.night-item.active .night-category {
    color: var(--rialto-white);
}

/* ==========================================================================
   Hero/Slider Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: var(--rialto-black);
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 600px;
}

.hero-slide-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-slide-meta {
    color: var(--rialto-gold);
    margin-bottom: 15px;
}

.hero-slide-synopsis {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--rialto-gold);
    color: var(--rialto-black);
}

.btn-primary:hover {
    background: var(--rialto-white);
    color: var(--rialto-black);
}

.btn-secondary {
    background: transparent;
    color: var(--rialto-white);
    border: 2px solid var(--rialto-white);
}

.btn-secondary:hover {
    background: var(--rialto-white);
    color: var(--rialto-black);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--rialto-gold);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rialto-border);
}

/* ==========================================================================
   Film Grid
   ========================================================================== */
.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.film-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    background: var(--rialto-bg-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.film-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.film-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.film-card:hover .film-card-poster img {
    transform: scale(1.05);
}

.film-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    opacity: 1 !important;
    visibility: visible !important;
}

.film-card-title {
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.film-card-title a {
    color: var(--rialto-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.film-card-title a:hover {
    color: var(--rialto-gold);
}

.film-card-meta {
    font-size: 0.85rem;
    color: var(--rialto-gray-light);
}

.film-card-cert {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--rialto-gold);
    color: var(--rialto-black);
    margin-left: 8px;
}

/* ==========================================================================
   Schedule
   ========================================================================== */
.schedule-section {
    background: var(--rialto-bg-light);
    padding: 40px;
    margin: 40px 0;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.schedule-date-nav {
    display: flex;
    gap: 5px;
}

.schedule-date-btn {
    padding: 12px 20px;
    background: var(--rialto-bg);
    border: 1px solid var(--rialto-border);
    color: var(--rialto-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-date-btn:hover,
.schedule-date-btn.active {
    background: var(--rialto-gold);
    color: var(--rialto-black);
    border-color: var(--rialto-gold);
}

.schedule-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--rialto-bg);
    border-bottom: 1px solid var(--rialto-border);
}

.schedule-time {
    flex: 0 0 80px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rialto-gold);
}

.schedule-film {
    flex: 1;
    display: flex;
    gap: 15px;
}

.schedule-poster {
    flex: 0 0 60px;
}

.schedule-poster img {
    width: 60px;
    height: 80px;
    object-fit: cover;
}

.schedule-info {
    flex: 1;
}

.schedule-title {
    font-size: 1.1rem;
    margin: 0 0 5px;
}

.schedule-title a {
    color: var(--rialto-white);
}

/* ==========================================================================
   Pick of Day/Week Feature
   ========================================================================== */
.featured-pick {
    position: relative;
    background: var(--rialto-black);
    overflow: hidden;
    margin: 40px 0;
}

.featured-pick-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    filter: blur(30px);
}

.featured-pick-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-pick-content {
    position: relative;
    display: flex;
    gap: 40px;
    padding: 40px;
}

.featured-pick-poster {
    flex: 0 0 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.featured-pick-poster img {
    width: 100%;
    display: block;
}

.featured-pick-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-pick-label {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--rialto-gold);
    color: var(--rialto-black);
    margin-bottom: 20px;
    align-self: flex-start;
}

.featured-pick-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.featured-pick-meta {
    color: var(--rialto-gold);
    margin-bottom: 20px;
}

.featured-pick-synopsis {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.featured-pick-time {
    font-size: 1.25rem;
    color: var(--rialto-gold);
    margin-bottom: 25px;
}

.featured-pick-actions {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--rialto-black);
    border-top: 1px solid var(--rialto-border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--rialto-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--rialto-gray-light);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--rialto-gold);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 300px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.footer-social a img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-social a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Newsletter Signup */
.footer-newsletter {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    border-top: 1px solid var(--rialto-border);
    text-align: center;
}

.footer-newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-newsletter h4 {
    color: var(--rialto-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: var(--rialto-gray-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-placeholder {
    color: var(--rialto-gray-light);
    font-style: italic;
    font-size: 0.85rem;
    opacity: 0.6;
}

#rialto-newsletter-embed iframe,
#rialto-newsletter-embed form {
    max-width: 100%;
}

/* ==========================================================================
   Instagram Section (Homepage)
   ========================================================================== */
.rialto-instagram-section {
    background: var(--rialto-bg);
    padding: 48px 24px 40px;
    text-align: center;
    border-top: 1px solid var(--rialto-border);
}

.rialto-instagram-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--rialto-white);
}

.rialto-instagram-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--rialto-white);
}

.rialto-instagram-handle {
    color: var(--rialto-gold);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.rialto-instagram-handle:hover {
    text-decoration: underline;
}

.rialto-instagram-grid {
    max-width: 1100px;
    margin: 24px auto;
}

/* LightWidget embed */
.rialto-instagram-grid .lightwidget-widget {
    width: 100%;
    border: 0;
    overflow: hidden;
}

.rialto-instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 8px;
}

.rialto-instagram-follow-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ==========================================================================
   Newsletter Banner (above footer)
   ========================================================================== */
.rialto-newsletter-banner {
    background: linear-gradient(135deg, #5c4a2e 0%, #8a7656 20%, #bfb099 40%, #a89474 55%, #8a7656 70%, #6b5638 85%, #4a3820 100%);
    border-top: none;
    padding: 48px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
}

.rialto-newsletter-inner {
    max-width: 650px;
    margin: 0 auto;
}

.rialto-newsletter-banner h2 {
    color: var(--rialto-black, #1a1a1a);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
}

.rialto-newsletter-banner p {
    color: var(--rialto-black, #1a1a1a);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

.rialto-newsletter-banner .newsletter-cta-btn {
    display: inline-block;
    background: var(--rialto-black, #1a1a1a);
    color: #fff;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.2s;
}

.rialto-newsletter-banner .newsletter-cta-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* MailChimp embed in newsletter page */
.rialto-newsletter-embed {
    max-width: 600px;
    margin: 0 auto;
}

.rialto-newsletter-embed #mc_embed_signup {
    background: transparent !important;
    clear: left;
}

.rialto-newsletter-embed #mc_embed_signup form {
    padding: 0 !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--rialto-border);
    color: var(--rialto-gray-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ===== Mobile Header - Netflix Style ===== */
    .site-header {
        padding: 0;
    }

    .header-inner {
        flex-wrap: nowrap;
        padding: 10px 16px;
    }

    .site-logo {
        flex: 1;
        order: 1;
    }

    .site-logo img {
        height: 36px;
    }

    /* Move search + bell left of burger, hide Sky Go + Join Rialto */
    .header-actions {
        order: 2;
        gap: 2px;
    }

    .header-skygo,
    .header-join-btn {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        color: var(--rialto-white);
        cursor: pointer;
        margin-left: 4px;
    }

    .menu-toggle .menu-toggle-icon {
        font-size: 1.6rem;
    }

    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 0;
        background: var(--rialto-black);
        border-top: 1px solid var(--rialto-border);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        order: 4;
    }

    .main-navigation.active {
        display: block;
    }

    /* Mobile nav CTA buttons (Join Rialto + Sky Go) */
    .mobile-nav-ctas {
        display: flex;
        gap: 10px;
        padding: 16px 20px 8px;
    }

    .mobile-nav-cta {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        transition: all 0.2s;
    }

    .mobile-nav-cta--join {
        background: var(--rialto-gold);
        color: #000;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-nav-cta--join:hover {
        background: #000;
        color: var(--rialto-gold);
        border: 1px solid var(--rialto-gold);
    }

    .mobile-nav-cta--skygo {
        background: #141414;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--rialto-white);
    }

    .mobile-nav-cta--skygo:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 8px 0;
    }

    .main-navigation a {
        padding: 14px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .main-navigation .sub-menu {
        position: static;
        border: none;
        padding-left: 20px;
        background: rgba(0,0,0,0.3);
        display: none;
    }

    .main-navigation li.active > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* ===== Nights Navigation Bar - Hide on Mobile ===== */
    .nights-navigation {
        display: none;
    }

    /* ===== Homepage Hero - Mobile ===== */
    .hero-slide {
        min-height: 70vh;
    }

    .hero-slide-content {
        padding: 20px 16px 30px;
        text-align: left;
    }

    .hero-slide-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-slide-meta {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .hero-slide-synopsis {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* ===== Featured Pick - Mobile ===== */
    .featured-pick-content {
        flex-direction: column;
        padding: 20px 16px;
    }

    .featured-pick-poster {
        flex: none;
        max-width: 160px;
        margin: 0 auto 20px;
    }

    .featured-pick-info {
        text-align: center;
    }

    .featured-pick-title {
        font-size: 1.5rem;
    }

    /* ===== Film Rows - Mobile (Netflix Style) ===== */
    .film-row-header {
        padding: 0 16px;
    }

    .film-row-title {
        font-size: 1.1rem;
    }

    .film-row-scroll {
        padding: 0 16px;
        scroll-padding-left: 16px;
    }

    .film-row-item {
        flex: 0 0 130px;
    }

    /* ===== Footer - Mobile ===== */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 30px 16px;
    }

    /* Hide Quick Links, Themed Nights, About columns on mobile */
    .footer-column:nth-child(-n+3) {
        display: none;
    }

    .footer-section h4 {
        margin-bottom: 12px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        padding: 16px;
        text-align: center;
    }
}

/* ===== Tablet and Mobile Film Grid ===== */
@media (max-width: 768px) {
    .film-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 16px;
    }
}

/* ===== Small Mobile Devices ===== */
@media (max-width: 600px) {
    .film-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 12px;
    }

    .film-card-poster {
        aspect-ratio: 2/3;
    }

    .film-card-title {
        font-size: 0.8rem;
    }

    .film-card-meta {
        font-size: 0.7rem;
    }

    .schedule-item {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .schedule-time {
        flex: none;
    }

    .schedule-poster {
        width: 80px;
    }

    /* Archive header */
    .site-content {
        padding-top: 10px;
    }

    .archive-header {
        padding: 6px 16px;
        margin-bottom: 8px;
    }

    .archive-header h1 {
        font-size: 1.5rem;
    }

    .archive-header .section-title {
        margin-bottom: 0;
        padding-bottom: 8px;
    }
}

/* ==========================================================================
   Single Film Page
   ========================================================================== */
.film-hero {
    position: relative;
    background: var(--rialto-black);
    padding: 60px 0;
    overflow: hidden;
}

.film-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(20px);
    transform: scale(1.1);
}

.film-hero-content {
    position: relative;
    display: flex;
    gap: 40px;
    z-index: 2;
}

.film-poster {
    flex: 0 0 300px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.film-poster img {
    width: 100%;
    display: block;
}

.film-info {
    flex: 1;
}

.film-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.film-year,
.film-duration {
    color: var(--rialto-gray-light);
}

.film-cert {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--rialto-gold);
    color: var(--rialto-black);
}

.cert-green { background: #2ecc71; }
.cert-yellow { background: #f1c40f; color: #000; }
.cert-red { background: #e74c3c; }

.film-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--rialto-bg-light);
    color: var(--rialto-white);
    border: 1px solid var(--rialto-border);
}

.film-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    background: var(--rialto-bg-light);
    color: var(--rialto-gold);
    border: 1px solid var(--rialto-border);
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: var(--rialto-gold);
    color: var(--rialto-black);
    border-color: var(--rialto-gold);
}

.film-synopsis {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.film-detail {
    margin-bottom: 10px;
    color: var(--rialto-gray-light);
}

.film-detail strong {
    color: var(--rialto-white);
    margin-right: 10px;
}

.film-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Screenings List */
.film-screenings {
    margin: 60px 0;
}

.screenings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.screening-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: var(--rialto-bg-light);
    border: 1px solid var(--rialto-border);
}

.screening-date {
    flex: 0 0 120px;
}

.screening-day {
    display: block;
    font-weight: 600;
    color: var(--rialto-gold);
}

.screening-date-num {
    display: block;
    font-size: 0.9rem;
    color: var(--rialto-gray-light);
}

.screening-time {
    flex: 0 0 100px;
    font-size: 1.25rem;
    font-weight: 600;
}

.screening-actions {
    flex: 1;
    text-align: right;
}

.no-screenings {
    padding: 40px;
    text-align: center;
    background: var(--rialto-bg-light);
    color: var(--rialto-gray-light);
}

/* Related Films */
.related-films {
    margin: 60px 0;
}

/* ==========================================================================
   Genre Grid (Homepage)
   ========================================================================== */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--rialto-bg-light);
    border: 1px solid var(--rialto-border);
    text-align: center;
    transition: all 0.3s ease;
}

.genre-card:hover {
    background: var(--rialto-gold);
    border-color: var(--rialto-gold);
}

.genre-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rialto-white);
    transition: color 0.3s ease;
}

.genre-card:hover .genre-name {
    color: var(--rialto-black);
}

.genre-count {
    font-size: 0.8rem;
    color: var(--rialto-gray-light);
    margin-top: 5px;
    transition: color 0.3s ease;
}

.genre-card:hover .genre-count {
    color: var(--rialto-black);
}

/* ==========================================================================
   Home Sections
   ========================================================================== */
.home-section {
    margin: 50px 0;
}

.section-actions {
    margin-top: 30px;
    text-align: center;
}

/* ==========================================================================
   Film Poster Placeholder
   ========================================================================== */
.film-poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--rialto-bg-light) 0%, var(--rialto-black) 100%);
    color: var(--rialto-gold);
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* ==========================================================================
   Archive Styles
   ========================================================================== */
.archive-header {
    margin-bottom: 40px;
}

.archive-description {
    color: var(--rialto-gray-light);
    max-width: 800px;
}

.archive-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--rialto-bg-light);
    border: 1px solid var(--rialto-border);
    color: var(--rialto-white);
    transition: all 0.3s ease;
}

.archive-pagination a:hover,
.archive-pagination .current {
    background: var(--rialto-gold);
    color: var(--rialto-black);
    border-color: var(--rialto-gold);
}

/* ==========================================================================
   Genre Archive - Netflix Style Grid
   ========================================================================== */
.genre-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.genre-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rialto-white);
    margin-bottom: 10px;
    text-transform: capitalize;
}

.genre-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 15px;
}

.genre-count {
    color: var(--rialto-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.genre-films-grid {
    padding: 0;
}

/* Ensure the React film grid displays properly */
.genre-films-grid .rialto-film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .genre-films-grid .rialto-film-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 1200px) {
    .genre-films-grid .rialto-film-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
}

/* ==========================================================================
   Schedule Page Enhanced
   ========================================================================== */
.schedule-container {
    background: var(--rialto-bg-light);
    padding: 30px;
    border: 1px solid var(--rialto-border);
}

@media (max-width: 768px) {
    .schedule-container {
        background: transparent;
        padding: 0;
        border: none;
    }
}

.schedule-item.is-playing {
    border-left: 4px solid var(--rialto-gold);
    background: rgba(191, 176, 153, 0.1);
}

.schedule-item.is-past {
    opacity: 0.5;
}

/* ==========================================================================
   Header Scrolled State
   ========================================================================== */
.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Mobile Single Film
   ========================================================================== */
@media (max-width: 768px) {
    .film-hero-content {
        flex-direction: column;
    }

    .film-poster {
        flex: none;
        max-width: 200px;
        margin: 0 auto;
    }

    .film-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .film-meta {
        justify-content: center;
    }

    .film-genres {
        justify-content: center;
    }

    .film-synopsis {
        text-align: center;
    }

    .film-detail {
        text-align: center;
    }

    .film-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .screening-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .screening-actions {
        text-align: center;
    }
}

/* ==========================================================================
   Content Pages (About, Contact, etc.)
   ========================================================================== */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
    padding-top: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rialto-border);
}

.page-title {
    font-size: 2.5rem;
    color: var(--rialto-gold);
    margin: 0;
}

.page-body {
    color: var(--rialto-white);
    line-height: 1.8;
}

.page-body h2 {
    color: var(--rialto-gold);
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-body h3 {
    color: var(--rialto-gold);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-body li {
    margin-bottom: 10px;
}

.page-body a {
    color: var(--rialto-gold);
}

.page-body a:hover {
    color: var(--rialto-white);
    text-decoration: underline;
}

.page-body strong {
    color: var(--rialto-gold);
}

/* Night Archive Pages */
.night-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.night-header .archive-title {
    font-size: 2.5rem;
    color: var(--rialto-gold);
    margin-bottom: 15px;
}

.night-header .archive-description {
    font-size: 1.2rem;
    color: var(--rialto-white);
    max-width: 600px;
    margin: 0 auto;
}

.night-schedule {
    font-size: 1.1rem;
    color: var(--rialto-gold);
    margin-top: 20px;
}

.night-upcoming,
.night-films {
    margin-bottom: 50px;
}

.screenings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screening-card {
    background: var(--rialto-bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 15px;
    padding: 15px;
}

.screening-date-badge {
    background: var(--rialto-gold);
    color: var(--rialto-black);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.screening-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.screening-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.screening-film {
    flex: 1;
}

.screening-film img {
    max-width: 100px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.screening-title {
    font-size: 1rem;
    margin: 0 0 5px;
}

.screening-title a {
    color: var(--rialto-white);
}

.screening-time {
    font-size: 0.85rem;
    color: var(--rialto-gold);
}

/* Pagination */
.pagination,
nav.pagination,
nav.navigation {
    margin-top: 40px;
}

.pagination,
nav.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 14px;
    background: var(--rialto-bg-light);
    color: var(--rialto-white);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links .prev,
.nav-links .next {
    min-width: auto;
    padding: 8px 16px;
    font-weight: 600;
}

.nav-links .dots {
    background: transparent;
    min-width: auto;
    padding: 8px 4px;
    color: rgba(255,255,255,0.4);
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--rialto-gold);
    color: var(--rialto-black);
}

.pagination .current,
.nav-links .current {
    background: var(--rialto-gold);
    color: var(--rialto-black);
    font-weight: 700;
}

@media (max-width: 600px) {
    .nav-links {
        gap: 6px;
    }

    .pagination a,
    .pagination span,
    .nav-links a,
    .nav-links span {
        min-width: 38px;
        height: 38px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .nav-links .prev,
    .nav-links .next {
        flex: 0 0 auto;
        min-width: 38px;
        padding: 6px 10px;
        font-size: 0;
    }

    .nav-links .prev::before {
        content: '\2039';
        font-size: 1.4rem;
        line-height: 1;
    }

    .nav-links .next::after {
        content: '\203A';
        font-size: 1.4rem;
        line-height: 1;
    }
}

/* ==========================================================================
   Single Film Page - Content Containment
   ========================================================================== */

/* Banner section - full width background, content constrained */
.rialto-film-banner {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.rialto-film-banner-backdrop,
.rialto-film-banner-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.rialto-film-banner-backdrop {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Static fallback when YouTube video is unavailable (age-restricted, etc.) */
.rialto-film-banner.video-unavailable .rialto-film-banner-backdrop.video-unavailable,
.rialto-film-banner-backdrop.video-unavailable {
    opacity: 1 !important;
    display: block !important;
    z-index: 1;
}

.rialto-film-banner.video-unavailable .rialto-film-banner-video {
    display: none !important;
}

.rialto-film-banner-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.rialto-film-banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.15) 100%);
}

.rialto-film-banner-gradient-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 250px;
    background: linear-gradient(to top, var(--rialto-bg) 0%, var(--rialto-bg) 10%, transparent 100%);
}

/* Banner content - CONSTRAINED to max-width */
.rialto-film-banner-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

.rialto-film-banner-info {
    max-width: 600px;
}

.rialto-film-banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.rialto-film-banner-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rialto-meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--rialto-gold);
    font-weight: 600;
}

.rialto-meta-item {
    color: #fff;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.rialto-cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    color: var(--rialto-white);
}

.rialto-hd-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    color: rgba(255,255,255,0.8);
}

.rialto-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.rialto-genre-tag {
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.rialto-film-banner-synopsis {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 15px;
    max-width: 550px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.rialto-film-banner-synopsis.rialto-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rialto-credits-compact {
    margin-bottom: 20px;
}

.rialto-credit-line {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.rialto-credit-label {
    color: rgba(255,255,255,0.85);
}

.rialto-credit-value {
    color: #fff;
    font-weight: 500;
}

/* Banner action buttons */
.rialto-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.rialto-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--rialto-white);
    color: var(--rialto-black);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rialto-btn-play:hover {
    background: rgba(255,255,255,0.85);
    transform: scale(1.02);
}

.rialto-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(109, 109, 110, 0.7);
    color: var(--rialto-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rialto-btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
}

/* Sky Go button */
.rialto-btn-skygo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A2A81;
    color: var(--rialto-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.rialto-btn-skygo:hover {
    background: #243596;
    transform: scale(1.02);
}

.rialto-btn-skygo .skygo-logo {
    height: 20px;
    width: auto;
}

/* Rating badges row */
.rialto-rating-badges {
    display: flex;
    gap: 10px;
}

.rialto-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--rialto-white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rialto-rating-badge:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--rialto-gold);
    color: var(--rialto-gold);
}

/* IMDb badge - yellow background, black text */
.rialto-imdb-badge {
    background: #f5c518;
    border-color: #f5c518;
}

.rialto-imdb-badge .badge-label {
    font-weight: 700;
    color: #000000;
}

.rialto-imdb-badge:hover {
    background: #e6b800;
    border-color: #e6b800;
    color: #000000;
}

/* TMDB badge - green background, black text */
.rialto-tmdb-badge {
    background: #01d277;
    border-color: #01d277;
}

.rialto-tmdb-badge .badge-label {
    font-weight: 700;
    color: #000000;
}

.rialto-tmdb-badge .badge-rating {
    color: #000000;
}

.rialto-tmdb-badge .badge-rating svg {
    fill: #000000;
}

.rialto-tmdb-badge .badge-votes {
    color: rgba(0,0,0,0.7);
}

.rialto-tmdb-badge:hover {
    background: #00b86b;
    border-color: #00b86b;
    color: #000000;
}

/* Sound toggle button */
.rialto-sound-toggle {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--rialto-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rialto-sound-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--rialto-white);
}

.rialto-sound-toggle.is-muted .sound-on-icon,
.rialto-sound-toggle:not(.is-muted) .sound-muted-icon {
    display: none;
}

/* Film Details Section - CONSTRAINED */
.rialto-film-details-section {
    padding: 40px 0 60px;
    background: var(--rialto-bg);
}

.rialto-film-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 250px 1fr 320px;
    gap: 40px;
}

.rialto-film-poster-column {
    position: relative;
}

.rialto-film-poster-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rialto-film-poster {
    width: 100%;
    height: auto;
    display: block;
}

.rialto-poster-cert {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.rialto-film-info-column {
    padding-top: 10px;
}

.rialto-film-info-title {
    font-size: 1.3rem;
    color: var(--rialto-white);
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rialto-film-synopsis-full {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}

.rialto-film-credits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rialto-film-credit-item dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.rialto-film-credit-item dd {
    font-size: 0.95rem;
    color: var(--rialto-white);
    margin: 0;
}

.rialto-genre-link {
    color: var(--rialto-gold);
}

.rialto-genre-link:hover {
    color: var(--rialto-white);
}

/* Screenings column */
.rialto-film-screenings-column {
    padding-top: 10px;
}

.rialto-screenings-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rialto-screening-inline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--rialto-bg-light);
    border-radius: 8px;
    border: 1px solid var(--rialto-border);
}

.rialto-screening-inline-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rialto-screening-inline-day {
    font-weight: 600;
    color: var(--rialto-gold);
    text-transform: uppercase;
}

.rialto-screening-inline-date,
.rialto-screening-inline-time {
    color: rgba(255,255,255,0.9);
}

.rialto-remind-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rialto-remind-bell:hover {
    background: var(--rialto-gold);
    border-color: var(--rialto-gold);
    color: var(--rialto-black);
}

/* Vertical Screenings List */
.rialto-screenings-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rialto-screening-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--rialto-border);
}

.rialto-screening-item:last-child {
    border-bottom: none;
}

.rialto-screening-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rialto-screening-day {
    font-weight: 600;
    color: var(--rialto-gold);
    text-transform: uppercase;
    min-width: 35px;
}

.rialto-screening-date {
    color: rgba(255,255,255,0.9);
}

.rialto-screening-time {
    color: rgba(255,255,255,0.7);
}

.rialto-no-screenings {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    padding: 12px 0;
}

/* Legacy horizontal styles (kept for backwards compatibility) */
.rialto-no-screenings-inline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Related Films Row - CONSTRAINED */
.rialto-row {
    padding: 40px 0;
    background: var(--rialto-bg);
}

.rialto-row-header {
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 0 40px;
}

.rialto-row-title {
    font-size: 1.5rem;
    color: var(--rialto-white);
    margin: 0;
}

.rialto-row-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.rialto-row-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rialto-gold) transparent;
}

.rialto-row-films {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
}

.rialto-row-film-card {
    flex: 0 0 auto;
    width: 160px;
}

.rialto-row-card-link {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.rialto-row-card-link:hover {
    transform: scale(1.05);
}

.rialto-row-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.rialto-row-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rialto-row-card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rialto-gold);
}

/* Card certification overlay - bottom right of poster */
.rialto-card-poster {
    position: relative;
}

.rialto-card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    background: rgba(0,0,0,0.75);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rialto-gold);
    z-index: 5;
}

.rialto-card-cert {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 5;
}

/* Certification color classes */
.cert-g {
    background: #4caf50;
    color: #000;
}

.cert-pg {
    background: #8bc34a;
    color: #000;
}

.cert-m {
    background: #ffc107;
    color: #000;
}

.cert-13, .cert-r13 {
    background: #ff9800;
    color: #000;
}

.cert-16, .cert-r16 {
    background: #f44336;
    color: #fff;
}

.cert-18, .cert-r18 {
    background: #d32f2f;
    color: #fff;
}

.cert-unknown {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.rialto-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rialto-row-card-link:hover .rialto-card-info {
    opacity: 1;
}

.rialto-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rialto-white);
    margin: 0 0 4px;
    line-height: 1.2;
}

.rialto-card-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

/* Modals */
.rialto-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rialto-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rialto-modal {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
}

.rialto-modal-large {
    width: 60vw;
    max-width: 1000px;
    max-height: 80vh;
}

.rialto-modal-large .rialto-modal-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

.rialto-modal-large .rialto-modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rialto-modal-small {
    width: 400px;
    padding: 30px;
}

.rialto-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20,20,20,0.9);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.rialto-modal-close:hover {
    background: rgba(40,40,40,1);
    border-color: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

/* Generic modal video styles moved to .rialto-modal-large above */

/* Reminder modal content */
.rialto-reminder-content {
    text-align: center;
}

.rialto-reminder-icon {
    margin-bottom: 15px;
    color: var(--rialto-gold);
}

.rialto-reminder-title {
    font-size: 1.3rem;
    color: var(--rialto-white);
    margin: 0 0 5px;
}

.rialto-reminder-subtitle {
    color: var(--rialto-gold);
    margin: 0 0 15px;
}

.rialto-reminder-note {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.rialto-reminder-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rialto-reminder-option {
    padding: 15px;
    background: var(--rialto-bg);
    border: 1px solid var(--rialto-border);
    border-radius: 8px;
    color: var(--rialto-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rialto-reminder-option:hover {
    background: var(--rialto-gold);
    color: var(--rialto-black);
    border-color: var(--rialto-gold);
}

.option-time {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.option-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.rialto-reminder-success {
    text-align: center;
}

.rialto-reminder-success h3 {
    color: #46d369;
    margin: 15px 0 10px;
}

.rialto-reminder-error {
    color: #e63946;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Mobile responsive for single film page */
@media (max-width: 1024px) {
    .rialto-film-details-container {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }

    .rialto-film-screenings-column {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Mobile Responsive - Netflix/Disney+ Style
   ========================================================================== */

@media (max-width: 768px) {
    /* ===== Single Film Page - Mobile Hero ===== */
    .rialto-film-banner {
        min-height: 65vh; /* Fixed height for consistent poster display */
        padding-top: 0;
        align-items: flex-end; /* Content at bottom on mobile */
    }

    /* CRITICAL: Hide video background on mobile - show poster instead */
    .rialto-film-banner-video {
        display: none !important;
    }

    /* Show the backdrop/poster on mobile instead of video */
    .rialto-film-banner.has-video-bg .rialto-film-banner-backdrop.rialto-video-fallback {
        display: block !important;
        opacity: 1 !important;
    }

    /* Mobile poster background - cover but show top portion of portrait posters */
    .rialto-film-banner-backdrop {
        background-size: cover;
        background-position: top center; /* Show top of poster (usually faces/titles) */
        background-repeat: no-repeat;
    }

    /* Hide sound toggle on mobile since no video autoplay */
    .rialto-sound-toggle {
        display: none !important;
    }

    /* Key fix: Banner content at bottom with padding */
    .rialto-film-banner-content {
        padding: 16px !important;
        padding-bottom: 24px !important;
        position: relative;
        z-index: 10;
    }

    /* Mobile gradient - darker overlay for text readability on light posters */
    .rialto-film-banner-gradient {
        background: linear-gradient(180deg,
            rgba(0,0,0,0.5) 0%,
            rgba(0,0,0,0.4) 30%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0.8) 75%,
            rgba(0,0,0,0.98) 100%);
    }

    /* Stronger bottom gradient on mobile for clean text backdrop */
    .rialto-film-banner-gradient-bottom {
        height: 60%;
        background: linear-gradient(to top, var(--rialto-bg) 0%, var(--rialto-bg) 25%, transparent 100%);
    }

    /* Mobile text - pure white for maximum contrast */
    .rialto-film-banner-title,
    .rialto-film-banner-synopsis,
    .rialto-film-meta-inline,
    .rialto-film-meta-inline span {
        color: #fff !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    }

    .rialto-film-banner-info {
        max-width: 100%;
    }

    /* TITLE - ensure it's visible and prominent */
    .rialto-film-banner-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 10px;
        line-height: 1.2;
        color: #fff;
        /* Ensure title is always visible */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Show condensed synopsis on mobile (Netflix style) */
    .rialto-film-banner-synopsis {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 16px;
        color: rgba(255,255,255,0.85);
    }

    .rialto-credits-compact {
        display: none;
    }

    /* Meta row - more compact */
    .rialto-film-meta-inline {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 0.85rem;
    }

    .rialto-star-rating {
        font-size: 0.9rem;
    }

    /* Genre pills - smaller on mobile */
    .rialto-genre-pills {
        gap: 6px;
        margin-bottom: 12px;
    }

    .rialto-genre-pill {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    /* Sound toggle repositioned */
    .rialto-sound-toggle {
        right: 16px;
        bottom: auto;
        top: 90px; /* Below header */
        width: 36px;
        height: 36px;
    }

    /* ===== Action Buttons - Full Width Stack (Netflix Mobile) ===== */
    .rialto-banner-actions {
        flex-direction: column;
        gap: 10px;
    }

    .rialto-btn-play,
    .rialto-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .rialto-btn-lg {
        padding: 14px 20px;
    }

    /* Rating badges row */
    .rialto-rating-badges {
        margin-top: 16px;
        gap: 10px;
    }

    .rialto-rating-badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* ===== Film Details Section - Mobile ===== */
    .rialto-film-details-section {
        padding: 24px 0;
        overflow-x: hidden; /* Prevent any child from pushing viewport width */
    }

    .rialto-film-details-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 24px;
        max-width: 100%;
        overflow: hidden;
    }

    /* Hide poster on mobile - it's already visible in the banner */
    .rialto-film-poster-column {
        display: none;
    }

    .rialto-film-poster {
        border-radius: 8px;
    }

    .rialto-film-info-column {
        text-align: left;
    }

    .rialto-film-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rialto-film-info-title {
        font-size: 1.25rem;
    }

    .rialto-film-full-synopsis {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .rialto-film-credits-grid {
        gap: 12px;
    }

    .rialto-film-credit-item dt {
        font-size: 0.75rem;
    }

    .rialto-film-credit-item dd {
        font-size: 0.875rem;
    }

    /* Screenings column */
    .rialto-film-screenings-column {
        padding: 16px;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
    }

    .rialto-screening-item {
        padding: 10px 0;
    }

    .rialto-screening-datetime {
        gap: 6px;
    }

    .rialto-screening-day {
        font-size: 0.85rem;
        min-width: 30px;
    }

    .rialto-screening-date,
    .rialto-screening-time {
        font-size: 0.85rem;
    }

    .rialto-remind-bell {
        width: 32px;
        height: 32px;
    }

    /* ===== Related Films Row - Mobile ===== */
    .rialto-row {
        padding: 24px 0;
    }

    .rialto-row-header {
        padding: 0 16px;
        margin-bottom: 12px;
    }

    .rialto-row-title {
        font-size: 1.1rem;
    }

    .rialto-row-container {
        padding: 0 16px;
    }

    .rialto-row-scroll {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .rialto-row-films {
        gap: 10px;
    }

    .rialto-row-item {
        flex: 0 0 120px;
    }

    .rialto-card-title {
        font-size: 0.8rem;
    }

    .rialto-card-rating {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* ===== Modals - Mobile ===== */
    .rialto-modal-overlay {
        padding: 12px;
    }

    .rialto-modal {
        border-radius: 8px;
    }

    .rialto-modal-large {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
    }

    .rialto-modal-small {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0 0;
        border-radius: 16px 16px 0 0;
        padding: 24px 20px;
    }

    .rialto-modal-close {
        top: 12px;
        right: 12px;
    }

    /* ===== Reminder Modal - Mobile ===== */
    .rialto-reminder-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rialto-reminder-option {
        padding: 12px;
    }
}

/* ==========================================================================
   Extra Small Mobile (iPhone SE, small phones)
   ========================================================================== */
@media (max-width: 375px) {
    .rialto-film-banner-content {
        padding: 90px 12px 20px;
    }

    .rialto-film-banner-title {
        font-size: 1.5rem;
    }

    .rialto-btn-play,
    .rialto-btn-secondary {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .rialto-row-item {
        flex: 0 0 100px;
    }

    .rialto-film-poster-wrapper {
        max-width: 150px;
    }
}

/* ==========================================================================
   YouTube Gallery Component
   ========================================================================== */
.rialto-yt-gallery {
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.rialto-yt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 24px;
}

.rialto-yt-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rialto-white);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.rialto-yt-icon {
    color: #ff0000;
}

.rialto-yt-subscribe-link {
    color: var(--rialto-gold);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--rialto-gold);
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rialto-yt-subscribe-link:hover {
    background: var(--rialto-gold);
    color: var(--rialto-black);
}

/* YouTube Player */
.rialto-yt-player {
    position: relative;
    margin: 0 20px 24px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.rialto-yt-player-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.rialto-yt-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.rialto-yt-player-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rialto-yt-player-close:hover {
    background: rgba(255,255,255,0.2);
}

.rialto-yt-player-title {
    padding: 12px 16px;
    color: var(--rialto-white);
    font-size: 1rem;
    margin: 0;
}

/* YouTube Video Grid */
.rialto-yt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px;
}

.rialto-yt-card {
    background: var(--rialto-bg-light);
    border: 1px solid var(--rialto-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: left;
    padding: 0;
    color: inherit;
    font: inherit;
}

.rialto-yt-card:hover {
    transform: translateY(-3px);
    border-color: var(--rialto-gold);
}

.rialto-yt-card.active {
    border-color: var(--rialto-gold);
    box-shadow: 0 0 12px rgba(191, 176, 153, 0.3);
}

.rialto-yt-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rialto-yt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rialto-yt-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.rialto-yt-card:hover .rialto-yt-card-play {
    opacity: 1;
}

.rialto-yt-card-info {
    padding: 10px 12px;
}

.rialto-yt-card-title {
    color: var(--rialto-white);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rialto-yt-card-date {
    color: var(--rialto-gray-light);
    font-size: 0.75rem;
}

.rialto-yt-loading,
.rialto-yt-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--rialto-gray-light);
}

/* ==========================================================================
   Social Media Embed Components
   ========================================================================== */
.rialto-social-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--rialto-gold);
}

.rialto-social-section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rialto-gold);
}

.rialto-social-follow-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--rialto-gold);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--rialto-gold);
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rialto-social-follow-link:hover {
    background: var(--rialto-gold);
    color: var(--rialto-black);
}

/* Instagram Feed */
.rialto-instagram-feed {
    background: var(--rialto-bg-light);
    border: 1px solid var(--rialto-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.rialto-instagram-embed-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--rialto-gold) transparent;
}

.rialto-instagram-embed-container iframe {
    max-width: 320px;
    border-radius: 8px;
}

/* Facebook Feed */
.rialto-facebook-feed {
    background: var(--rialto-bg-light);
    border: 1px solid var(--rialto-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.rialto-facebook-embed-container {
    display: flex;
    justify-content: center;
}

.rialto-facebook-embed-container iframe {
    border-radius: 8px;
}

/* ==========================================================================
   Hero Night Button
   ========================================================================== */
.rialto-btn-night {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--rialto-gold), var(--rialto-gold-light, #d4c5ad));
    color: #fff;
    border: 2px solid var(--rialto-gold);
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rialto-btn-night:hover {
    filter: brightness(1.1);
    color: #fff;
}

/* ==========================================================================
   New Components - Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .rialto-yt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rialto-yt-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .rialto-yt-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 0 16px;
    }

    .rialto-yt-player {
        margin: 0 16px 16px;
    }

    .rialto-instagram-feed,
    .rialto-facebook-feed {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .rialto-facebook-embed-container iframe {
        max-width: 100%;
    }

    .footer-newsletter {
        padding: 24px 16px;
    }

    /* Hero actions - 3 buttons in a row on mobile */
    .rialto-hero-actions {
        flex-wrap: nowrap;
    }

    .rialto-btn-night {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}
