/* ===== FONTS ===== */
@font-face {
    font-family: 'Mostra Nuova';
    src: url('fonts/Mostra%20Nuova/Mostra%20Nuova.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mostra Nuova';
    src: url('fonts/Mostra%20Nuova/Mostra%20Nuova%20Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mostra Nuova';
    src: url('fonts/Mostra%20Nuova/Mostra%20Nuova%20Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== VARIABLES ===== */
:root {
    --color-text: #333;
    --color-gold: #97713A;
    --color-gold-hover: #D4B268;
    --color-dark: #000000;
    --color-gray-dark: #4A4A4A;
    --color-gray: #808080;
    --color-gray-light: #B0B0B0;
    --color-border: #E5E5E5;
    --color-bg-light: #F9F9F9;
    --color-white: #FFFFFF;
    --color-red: #D93025;

    --container-width: 1800px;
    --header-height: 90px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--color-white);
    min-height: var(--header-height);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Removed flex-wrap to keep section intact */
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    padding-right: 24px;
}

.logo-img {
    height: 50px;
    /* Adjust height to fit header */
    width: auto;
    object-fit: contain;
}

/* Event Description */
.event-description {
    display: flex;
    flex-direction: column;
    padding-left: 24px;
    text-align: center;
    font-family: 'Mostra Nuova', 'Satoshi', sans-serif;
}

.event-title {
    font-size: 14px;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.event-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-gold);
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* Event Info */
.event-info {
    font-size: 13px;
    color: var(--color-dark);
    line-height: 1.4;
    text-align: center;
    font-family: 'Mostra Nuova', 'Satoshi', sans-serif;
}

.event-dates {
    color: #333;
    margin-bottom: 2px;
}

.event-location {
    color: var(--color-gold);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
    padding-left: 16px;
}

.header-partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.btn {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 0;
    /* Square shape */
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-dark);
    background-color: var(--color-dark);
    color: var(--color-white);
}

#login-btn,
#logout-btn,
#login-btn-mobile,
#logout-btn-mobile {
    border: 2px solid var(--color-gold);
}

#login-btn:hover,
#logout-btn:hover,
#login-btn-mobile:hover,
#logout-btn-mobile:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

/* ===== FILTERS ===== */
.filters {
    background-color: #F5F5F5;
    padding: 24px 0;
}

.filters-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filters-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 8px;
}

/* Custom Select (single) */
.custom-select {
    position: relative;
    min-width: 140px;
}

.custom-select-button {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 16px;
    border: 1px solid #000;
    background-color: var(--color-white);
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    position: relative;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.custom-select-button:after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 20px;
    transition: transform 0.3s;
}

.custom-select-button.active:after {
    transform: translateY(-50%) rotate(-90deg);
}

.custom-select-button.active {
    border-bottom: none;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: none;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
    transition: max-height 0.3s ease;
}

.custom-select-dropdown.active {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #000;
    border-top: none;
}

.custom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-select-option:hover,
.custom-select-option.selected {
    background-color: #f5f5f5;
}

.custom-select-option:last-child {
    border-bottom: none;
}

/* Custom Multiselect */
.custom-multiselect {
    position: relative;
    min-width: 210px;
}

.custom-multiselect-button {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 16px;
    border: 1px solid #000;
    background-color: var(--color-white);
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    position: relative;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.custom-multiselect-button:after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 20px;
    transition: transform 0.3s;
}

.custom-multiselect-button.active:after {
    transform: translateY(-50%) rotate(-90deg);
}

.custom-multiselect-button.active {
    border-bottom: none;
}

.custom-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: none;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
    transition: max-height 0.3s ease;
}

.custom-multiselect-dropdown.active {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #000;
    border-top: none;
}

.custom-multiselect-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-multiselect-option label {
    cursor: pointer;
    flex: 1;
}

.custom-multiselect-option:hover {
    background-color: #f5f5f5;
}

.custom-multiselect-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.custom-multiselect-option input[type="checkbox"]:checked {
    background-color: #333;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.custom-multiselect-clear {
    padding: 10px 15px;
    border-top: 1px solid #D9D9D9;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
}

.custom-multiselect-clear:hover {
    opacity: 0.7;
}

.custom-multiselect-clear:before {
    content: '×';
    font-size: 18px;
}

.selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

.filter-group {
    position: relative;
    min-width: 160px;
}

.filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 12px 36px 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    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='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: var(--color-gray);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.filter-search {
    min-width: 180px;
}

.search-input-wrapper {
    position: relative;
}

.filter-input {
    width: 100%;
    height: 42px;
    border: 1px solid #000;
    background-color: #fff;
    padding: 0 16px 0 42px;
    font-size: 12px;
    color: var(--color-dark);
    border-radius: 0;
    transition: all 0.2s;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.filter-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.filter-checkboxes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-left: auto;
    padding-left: 24px;
    border-left: 1px solid var(--color-border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background-color: #fff;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-icon {
    color: var(--color-gold);
}

.checkbox-icon-star {
    color: var(--color-gold);
}

.btn-clear-filters {
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray-light);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    margin-left: 24px;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    color: var(--color-red);
}

/* ===== SCHEDULE ===== */
.schedule {
    background-color: var(--color-white);
    min-height: 80vh;
    overflow: visible;
}

.schedule-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: visible;
    background-color: #fff;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-light) transparent;
}

.schedule-container::-webkit-scrollbar {
    height: 8px;
}

.schedule-container::-webkit-scrollbar-track {
    background: transparent;
}

.schedule-container::-webkit-scrollbar-thumb {
    background-color: var(--color-gray-light);
    border-radius: 4px;
}

.opening-info {
    position: sticky;
    left: 0;
    background-color: #FDF9F0;
    /* Almost white gold */
    border: 1px solid rgba(192, 161, 92, 0.2);
    padding: 24px;
    margin-bottom: 48px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    text-align: center;
    /* Ensure it doesn't get cut off if it's wide, or stick it?
       Actually opening info is usually text block. Let's keep it simple. */
}

/* Day Section */
.day-section {
    display: flex;
    align-items: flex-start;
    padding: 30px 0 20px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
    width: max-content;
    /* Expand to fit content */
    min-width: 100%;
    /* At least full width */
    isolation: isolate;
    /* Create new stacking context scope */
}

.day-header {
    background-color: var(--color-white);
    height: 200px;
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding-right: 24px;
    border-bottom: none;
    /* Remove old border */
    margin-bottom: 0;
    position: sticky;
    /*left: 0;*/
    /* background-color removed per user request "olejmy to" regarding stacking/masking */
    z-index: 5;
    /* Local z-index inside isolated group */
    /* Optional shadow to separate date from content */
    transform: translateZ(0);
    /* Force layer */
}

.day-date {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.day-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
}

/* Film Cards */
.day-films {
    display: flex;
    gap: 10px;
    overflow-x: visible;
    padding-bottom: 0;
    flex-grow: 1;
    /* Removed explicit z-index/relative to clean context */
}

.film-card {
    min-width: 250px;
    width: 350px;
    height: 200px;
    background-color: #F5F5F5;
    border: 2px solid #333;
    /* Dark thick border */
    border-radius: 0;
    /* Square corners */
    padding: 10px;
    display: flex;
    flex-direction: row;
    /* Time | Content */
    gap: 16px;
    /* Space between time and content */
    position: relative;
    overflow: visible;
    /* For absolute positioning of footer items */
    transition: all 0.2s;
    box-sizing: border-box;
    /* Maintain size including padding/border */
}

.film-card:hover {
    background-color: #f9f9f9;
}

.film-time {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
    line-height: 1.2;
    margin: 0;
}

.film-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Special tag (film otwarcia/zamknięcia) at top of card */
.film-special-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    min-height: 0;
}

.film-special-tag:empty {
    display: none;
}

.film-title-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
    flex: 1;
}

.film-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.film-card.has-special-tag .film-time {
    padding-top: 20px;
}

.film-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.film-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    color: #333;
    padding: 10px 14px;
    border: 1px solid #333;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
    max-width: 300px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    margin-bottom: 8px;
    pointer-events: none;
}

.film-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: #333;
}

.film-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 21px;
    border: 5px solid transparent;
    border-top-color: #fff;
    z-index: 1;
}

.film-title-wrapper:hover .film-tooltip {
    opacity: 1;
    visibility: visible;
}

.film-meta {
    margin-top: auto;

    .film-meta {
        margin-top: auto;
        /* Push to bottom */
        padding-bottom: 0;
        /* Removing extra padding since height is fixed */
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 0;
    }

    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
}

/* Film tags */
.film-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.film-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
}

.film-tag .tag-star {
    color: var(--color-gold);
}

/* Modal tags */
.film-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.film-modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #333;
    font-weight: 700;
}

.film-modal-tag .tag-star {
    color: var(--color-gold);
}

/* Audiodescription section in modal */
.film-modal-audiodesc {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

.audiodesc-icon {
    height: 18px;
    width: auto;
}

.film-director,
.film-duration {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.film-actions {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: none;
}

.btn-action {
    width: auto;
    height: auto;
    border: none;
    background: none;
    padding: 0;
    color: #A78B55;
    /* Icon gold color */
    flex: 0;
}

.btn-action svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.btn-action:hover {
    color: #333;
    background: none;
    border: none;
}

/* Reservation icon - hidden by default, shown when card has reservation */
.btn-reservation {
    display: none;
}

.film-card.has-reservation .btn-reservation {
    display: inline-flex;
    align-items: center;
}

/* Favorite button active state (golden) */
.btn-favorite.active svg {
    fill: var(--color-gold);
    stroke: var(--color-gold);
}

/* Hide defaults */
.btn-ticket:hover {
    background: none;
    border: none;
    color: #333;
}

/* ===== PARTNERS ===== */
.partners {
    background-color: var(--color-white);
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.partners-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.partners-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 3vw;
    width: 100%;
}

.partner-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 1;
    min-width: 0;
}

.partner-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray-light);
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
}

.partner-logos-group {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    flex-wrap: nowrap;
    justify-content: flex-start;
    flex-shrink: 1;
    min-width: 0;
}

.partner-logo-big {
    max-height: 40px;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 1;
}
.partner-logo-big-smaller{
    max-height: 30px;
}
.partner-logo-big-bigger{
    max-height: 50px;
}
@media (max-width: 1400px) {
    .partners-row {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
        /* Center groups when wrapped */
    }

    .partner-logos-group {
        gap: 24px;
        /* Fixed gap instead of vw */
        flex-wrap: wrap;
        /* Allow logos to wrap within groups too if needed, or keep nowrap? User said "zawijaj", implies allowing flow */
        justify-content: center;
    }

    .partner-group {
        align-items: center;
        /* Center labels above logos */
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: #F7F7F7;
    color: var(--color-dark);
    padding: 80px 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 300px 1fr 1fr 300px;
    gap: 60px;
}

.footer-logo .logo-img {
    height: 50px;
    /* Filter removed for light background */
}

.footer h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-gray);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer a {
    color: var(--color-gray-dark);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer a:hover {
    color: var(--color-gold);
}

.footer-contact p {
    font-size: 13px;
    color: var(--color-gray-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact strong {
    color: var(--color-dark);
    font-weight: 600;
}

.footer-ticket {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.footer-ticket p {
    font-size: 12px;
    color: var(--color-gray-dark);
    margin-bottom: 8px;
}

.footer-ticket a {
    color: var(--color-gold);
    font-weight: 600;
}

/* ===== MOBILE FILTERS ===== */
.mobile-only {
    display: none;
}

.filter-mobile {
    align-items: center;
}

.filter-mobile-group {
    display: flex;
    align-items: center;
    transition: background-color 0.25s ease;
}

.dates-mobile {
    position: relative;
    width: 100%;
}

.nav input[type="checkbox"] {
    display: none;
}

.toggle {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.toggle-arrow {
    transition: transform 0.25s ease;
}

.nav input[type="checkbox"]:checked~.toggle .toggle-arrow {
    transform: rotate(180deg);
}

.links {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    border-right: 2px solid black;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    z-index: 50;
}

.nav input[type="checkbox"]:checked~.links {
    max-height: 420px;
    opacity: 1;
}

.links li {
    border-top: 1px solid #eee;
}

.links li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.links li a:hover,
.links li a.selected {
    background-color: #f5f5f5;
}

.filter-wrapper {
    position: relative;
}

.filter-button {
    padding: 10px 14px;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 14px;
    background: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle-arrow {
    transition: transform 0.25s ease;
    order: 3;
}

.filter-toggle-arrow.active {
    transform: rotate(180deg);
}

.mobile-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    order: 4;
}

.filter-container {
    display: none;
}

.filter-container.active {
    max-height: 1000px;
    border-bottom: 1px solid #ddd;
}

.filter-panel {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    width: 100%;
    padding: 20px 25px;
    box-sizing: border-box;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.clear-filters {
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

.clear-filters:hover {
    color: #333;
}

.filter-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    padding-top: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.checkbox-group label {
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #555;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 2px 15px 0 0;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.search-button {
    width: 100%;
    padding: 15px;
    background-color: #e9e9e9;
    border: 1px solid var(--color-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #ddd;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1350px) {
    .partner-logos {
        display: none;
    }
}

@media (max-width: 1200px) {
    /* Grid no longer used */
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 24px;
    }

    .header-left {
        gap: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .filters {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .filter-mobile {
        display: flex;
        flex-direction: row;
        height: 40px;
    }

    .filter-mobile-group {
        display: flex;
        flex: 1;
        border-bottom: 2px solid black;
        border-top: 2px solid black;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .filter-mobile {
        position: sticky;
        top: 0;
        z-index: 99;
        background: #fff;
    }

    .filter-mobile-group-button {
        border-left: 2px solid black;
    }

    .filter-container {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        background-color: #fafafa;
        box-sizing: border-box;
        transition: max-height 0.5s ease-in-out;
    }

    .filter-container.active {
        max-height: 80vh;
        overflow-y: auto;
        border-bottom: 2px solid #333;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-container.active::-webkit-scrollbar {
        display: none;
    }

    .filter-panel {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .filter-panel .filter-section:last-of-type {
        flex: 1;
    }

    .search-button {
        position: sticky;
        bottom: 0;
        margin-top: auto;
        background-color: #e9e9e9;
        z-index: 10;
    }

    .schedule-container {
        padding: 0 16px;
        overflow-x: hidden;
    }

    .day-section {
        flex-direction: column;
        width: 100%;
        min-width: 0;
        padding: 20px 0 16px 0;
    }

    .day-header {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        border-bottom: none;
        padding-bottom: 8px;
        padding-right: 0;
        margin-bottom: 12px;
    }

    .day-films {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
    }

    .film-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        height: 170px;
        box-sizing: border-box;
    }

    .film-title {
        -webkit-line-clamp: 3;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    :root {
        --header-height: auto;
    }

    .header {
        position: relative;
        padding: 12px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .header-left {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    /* Hide event info on mobile header */
    .header-left .event-description,
    .header-left .event-info {
        display: none;
    }

    .logo {
        border-right: none;
        padding-right: 0;
        margin-bottom: 0;
    }

    .logo-img {
        height: 40px;
    }

    .header-right {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    /* Hide buttons on mobile header */
    .header-right .btn {
        display: none;
    }

    .header-logos {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .header-right {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 0 24px;
        box-sizing: border-box;
        pointer-events: none;
        justify-content: center;
        /* Override default */
    }

    .header-partner-logo {
        height: 32px;
        pointer-events: auto;
    }

    .header-left {
        width: 100%;
        justify-content: center;
        z-index: 2;
    }

    /* Logo centered by flex in header-left */
    .logo {
        margin: 0;
        padding: 0;
        border: none;
    }

    .header-partner-logo {
        height: 32px;
    }

    /* Mobile header info section */
    .mobile-header-info {
        padding: 20px 24px;
        text-align: center;
        background: var(--color-white);
    }

    .mobile-event-info {
        margin-bottom: 16px;
        font-family: 'Mostra Nuova', 'Satoshi', sans-serif;
    }

    .mobile-event-title {
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: var(--color-gold);
        letter-spacing: 0.05em;
        margin-bottom: 4px;
    }

    .mobile-event-subtitle {
        display: block;
        font-size: 11px;
        font-weight: 500;
        color: var(--color-text);
        letter-spacing: 0.05em;
        line-height: 1.3;

    }

    .mobile-event-dates {
        font-size: 14px;
        font-weight: 600;
        color: var(--color-text);
        margin-bottom: 12px;
    }

    .mobile-event-location {
        font-size: 12px;
        color: var(--color-text);
        line-height: 1.4;
    }

    .mobile-header-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-header-buttons .btn {
        width: 100%;
    }

    .filters {
        padding: 20px 0;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group,
    .filter-search {
        max-width: none;
        padding-bottom: 10px;
    }

    .filter-checkboxes {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        gap: 16px;
        margin-top: 16px;
    }

    .btn-clear-filters {
        margin-left: 0;
        margin-top: 16px;
    }

    /* .day-films grid reset removed */

    /* .film-card min-height reset removed */

    .partners-row {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-ticket,
    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-contact a {
        justify-content: center;
    }

    .footer-social ul {
        align-items: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }
}

/* ===== ACCREDITATION VIEW ===== */
.accreditation-view {
    background-color: #F5F5F5;
    min-height: 80vh;
    padding: 0;
}

.accreditation-top-bar {
    background-color: #7a5c2e;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    font-size: 14px;
}

.accreditation-download-btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.accreditation-download-btn:hover {
    background-color: #fff;
    color: #7a5c2e;
}

.accreditation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    min-height: calc(80vh - 50px);
}

.accreditation-card {
    background-color: #fff;
    max-width: 400px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.accreditation-logo {
    margin-bottom: 20px;
}

.accreditation-logo-img {
    height: 80px;
    width: auto;
    margin: 0 auto;
}

.accreditation-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.accreditation-dates {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 30px;
}

.accreditation-qr {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.qr-code-placeholder img {
    width: 150px;
    height: 150px;
}

.accreditation-code {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 15px;
    letter-spacing: 2px;
}

.accreditation-location {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.accreditation-type-btn {
    background-color: var(--color-gold);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: default;
    width: 100%;
}

@media (max-width: 600px) {
    .accreditation-top-bar {
        padding: 12px 16px;
        font-size: 12px;
        position: relative;
    }

    .accreditation-container {
        padding: 30px 16px;
    }

    .accreditation-card {
        padding: 30px 20px;
    }
}

/* ===== PWA INSTALL MODAL ===== */
.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwa-modal {
    background-color: #fff;
    max-width: 400px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.pwa-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
}

.pwa-modal-close:hover {
    color: #000;
}

.pwa-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-align: center;
}

.pwa-instructions-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.pwa-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.pwa-steps li {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.pwa-steps li:last-child {
    border-bottom: none;
}

.pwa-step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
}

.pwa-steps li strong {
    color: #000;
}

.pwa-modal-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--color-gold);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pwa-modal-btn:hover {
    background-color: var(--color-gold-hover);
}

/* Android PWA Modal Styles */
.pwa-modal-logo {
    text-align: center;
    margin-bottom: 20px;
}

.pwa-logo-img {
    height: 70px;
    width: auto;
    margin: 0 auto;
}

.pwa-modal-title-android {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-align: center;
}

.pwa-steps-android {
    list-style: none;
    padding-left: 0;
    margin: 0 0 30px 0;
}

.pwa-steps-android li {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.pwa-steps-android li:last-child {
    border-bottom: none;
}

.pwa-steps-android li strong {
    color: #000;
}

.pwa-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-modal-btn-primary {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--color-gold);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pwa-modal-btn-primary:hover {
    background-color: var(--color-gold-hover);
}

.pwa-modal-btn-secondary {
    width: 100%;
    padding: 16px 24px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-modal-btn-secondary:hover {
    border-color: #333;
    background-color: #f5f5f5;
}

@media (max-width: 600px) {
    .pwa-modal {
        padding: 25px 20px;
        margin: 10px;
    }

    .pwa-modal-title {
        font-size: 16px;
    }

    .pwa-modal-title-android {
        font-size: 20px;
    }
}

/* ============================================
   FILM DETAIL MODAL
   ============================================ */

.film-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.film-modal {
    background-color: #fff;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.film-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.film-modal-close:hover {
    color: #000;
}

.film-modal-content {
    display: flex;
    gap: 40px;
    padding: 50px 50px 40px 50px;
}

.film-modal-left {
    flex: 1;
    min-width: 0;
}

.film-modal-right {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.film-modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.film-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.2;
    flex: 1;
}

.film-modal-signet {
    height: 60px;
    width: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.film-modal-title-original {
    font-size: 26px;
    font-style: italic;
    font-weight: 400;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.film-modal-director {
    font-size: 26px;
    font-weight: 400;
    color: #000;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.film-modal-info {
    margin-bottom: 15px;
}

.film-modal-label {
    font-size: 13px;
    color: #888;
    margin: 0 0 3px 0;
}

.film-modal-value {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.film-modal-description {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    position: relative;
}

.film-modal-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.film-modal-description-content p {
    margin: 0 0 10px 0;
}

.film-modal-description-content.truncated {
    max-height: 72px;
    /* ~3 lines at 14px * 1.7 line-height */
    overflow: hidden;
    position: relative;
}

.film-modal-description-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}

.film-modal-description-content.expanded {
    max-height: none;
    overflow: visible;
}

.film-modal-description-content.expanded::after {
    display: none;
}

.film-modal-read-more {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.film-modal-read-more:hover {
    color: #333;
}

.film-modal-read-more span {
    transition: transform 0.2s;
}

.film-modal-description.expanded .film-modal-read-more span {
    transform: rotate(180deg);
}

.film-modal-trailer {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 25px;
}

.film-modal-trailer:hover {
    color: var(--color-gold);
}

.film-modal-audio-description {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.film-modal-audio-description svg {
    flex-shrink: 0;
}

.film-modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.film-modal-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.film-modal-detail svg {
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 2px;
}

.film-modal-partners {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.film-modal-partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Right side */
.film-modal-poster {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #f5f5f5;
}

.film-modal-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Actions section - hidden on desktop, shown on mobile */
.film-modal-actions {
    display: none;
}

.film-modal-info-section {
    /* No special styles on desktop */
}

.film-modal-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.film-modal-favorite:hover {
    color: var(--color-gold);
}

.film-modal-favorite svg {
    transition: fill 0.2s, stroke 0.2s;
}

.film-modal-favorite.active {
    color: var(--color-gold);
}

.film-modal-favorite.active svg {
    fill: var(--color-gold);
    stroke: var(--color-gold);
}

.film-modal-reserve {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-gold);
    border: 2px solid var(--color-gold);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.film-modal-reserve:hover {
    background-color: #8a6b35;
    border-color: #8a6b35;
    color: #fff;
}



.film-modal-delete-reservation {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-gold);
    border: 2px solid var(--color-gold);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.film-modal-delete-reservation:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    color: #fff;
}

.film-modal-extra-ticket {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background-color: #fff;
    border: 2px solid var(--color-gold);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.film-modal-extra-ticket:hover {
    background-color: var(--color-gold);
    color: #fff;
}

.film-modal-extra-ticket.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modal responsive */
@media (max-width: 900px) {
    .film-modal-content {
        flex-direction: column;
        padding: 40px 30px 30px 30px;
        gap: 30px;
    }

    .film-modal-right {
        width: 100%;
        order: -1;
    }

    .film-modal-poster {
        max-width: 200px;
        margin: 0 auto;
    }

    .film-modal-title {
        font-size: 22px;
    }

    .film-modal-partners {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .film-modal-overlay {
        padding: 10px;
    }

    .film-modal-content {
        padding: 35px 20px 25px 20px;
    }

    .film-modal-signet {
        display: none;
    }

    .film-modal-close {
        top: 10px;
        right: 10px;
    }

    .film-modal-title {
        font-size: 20px;
        text-align: center;
    }

    .film-modal-title-original {
        font-size: 18px;
        text-align: center;
    }

    .film-modal-director {
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
    }

    .film-modal-value {
        font-size: 16px;
    }

    .film-modal-right {
        display: none;
    }

    .film-modal-header {
        background-color: #f5f5f5;
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -35px;
        padding: 35px 20px 20px 20px;
        width: calc(100% + 40px);
    }

    .film-modal-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: calc(100% + 40px);
        background-color: #f5f5f5;
        margin-left: -20px;
        margin-right: -20px;
        padding: 20px 20px 20px 20px;
        gap: 10px;
        margin-bottom: 25px;
    }
}

.film-modal-actions .film-modal-favorite {
    order: 1;
}

.film-modal-actions .film-modal-reserve {
    order: 2;

}

.film-modal-actions .film-modal-extra-ticket {
    order: 3;
    text-align: center;
}

.film-modal-info-section {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.film-modal-partners {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.film-modal-partner-logo {
    height: 50px;
}


/* ===== LOGIN MODAL ===== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal {
    background-color: #fff;
    max-width: 480px;
    width: 100%;
    padding: 50px 60px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
}

.login-modal-close:hover {
    color: #000;
}

.login-modal-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-img {
    height: 70px;
    width: auto;
    margin: 0 auto;
}

.login-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 35px;
    text-align: center;
    line-height: 1.4;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #000;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: transparent;
}

.login-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.login-input::placeholder {
    color: #999;
}

.login-modal-btn {
    width: 100%;
    padding: 16px 24px;
    background-color: transparent;
    color: #333;
    border: 2px solid var(--color-gold);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.login-modal-btn:hover {
    background-color: var(--color-gold);
    color: #fff;
}

.login-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 600px) {
    .login-modal {
        padding: 40px 25px;
        margin: 10px;
    }

    .login-modal-title {
        font-size: 16px;
    }

    .login-logo-img {
        height: 60px;
    }
}

/* ===== LOADING SPINNER ===== */
.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SUCCESS MODAL ===== */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-modal {
    background: var(--color-white);
    padding: 50px 60px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.success-modal-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.success-logo-img {
    height: 80px;
}

.success-modal-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.success-modal-text {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-modal-btn {
    background: transparent;
    border: 1px solid var(--color-text);
    padding: 12px 50px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-modal-btn:hover {
    background: var(--color-text);
    color: var(--color-white);
}

@media (max-width: 600px) {
    .success-modal {
        padding: 40px 25px;
        margin: 10px;
    }

    .success-modal-title {
        font-size: 22px;
    }

    .success-logo-img {
        height: 60px;
    }
}