* {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-align: center;
    text-decoration: none;
    line-height: 1;
    color: #333;
    font-weight: 700;
    position: relative;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);    border: 1px solid #eee;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

@media (hover: hover) {
    a:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    }
}

a:focus,
a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

a:not(.selected):focus,
a:not(.selected):active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

a.selected {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

body {
    margin: 0;
    background-color: #FBFBFB;
}

body > div {
    display: flex;
    flex-direction: column;
    height: calc(var(--vh) * 100);
    width: 100vw;
    overflow: auto;
}

div#movies {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 15px;
}

.day-section {
    display: flex;
    flex-direction: column;
}

.day-filter {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}

.filter-button {
    flex: 1;
    appearance: none;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    justify-content: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    color: #333;
    font-weight: 700;
    position: relative;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: 1px solid #eee;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.filter-button:active {
    background: #f3f4f6;
}

.filter-button--active {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.filter-button__chevron {
    width: 16px;
    height: 16px;
    transition: transform 200ms ease;
}

.filter-button--active .filter-button__chevron {
    transform: rotate(180deg);
}

.filter-popover {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.filter-popover--open {
    display: block;
}

.filter-popover__content {
    padding: 16px;
}

.filter-popover__content .time-filter__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    background: transparent;
}

.filter-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
}

.filter-popover-backdrop--open {
    display: block;
}

.specials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.specials-list__item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    font-weight: bold;
}

.specials-list__empty {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.time-filter {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 220ms cubic-bezier(.25, .8, .25, 1), transform 220ms cubic-bezier(.25, .8, .25, 1);
}

.time-filter.time-filter--open {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-1px);
}

@media (hover: hover) {
    .time-filter:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
        transform: translateY(-1px);
    }
}

.time-filter__summary {
    appearance: none;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333333;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-radius: inherit;
    transition: color 160ms ease;
}

.time-filter__summary:focus-visible {
    outline: none;
    color: #111827;
}

.time-filter__summary-label {
    flex: 1;
}

.time-filter__summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #111111;
    background: transparent;
}

.time-filter__chevron {
    width: 20px;
    height: 20px;
    display: block;
    transform: rotate(0deg);
    transform-origin: center;
}

.time-filter--open .time-filter__chevron {
    transform: rotate(180deg);
}

.time-filter__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 20px;
    background: #ffffff;
}

.time-filter__content[hidden] {
    display: none;
}

.time-filter__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.time-filter__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
}

.time-filter__label strong {
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #111827;
    font-weight: 700;
}

.time-filter__slider {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    --range-start: 0%;
    --range-end: 100%;
}

.time-filter__slider::before,
.time-filter__slider::after {
    content: '';
    position: absolute;
    height: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
}

.time-filter__slider::before {
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.08);
}

.time-filter__slider::after {
    left: var(--range-start);
    right: calc(100% - var(--range-end));
    background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
    transition: left 200ms ease, right 200ms ease;
}

.time-filter__slider input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    touch-action: none;
}

.time-filter__slider input[type='range']:first-of-type {
    z-index: 2;
}

.time-filter__slider input[type='range']:last-of-type {
    z-index: 3;
}

.time-filter__slider input[type='range']::-webkit-slider-runnable-track {
    background: transparent;
}

.time-filter__slider input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
    pointer-events: auto;
    transition: transform 220ms cubic-bezier(.22, .61, .36, 1), box-shadow 220ms cubic-bezier(.22, .61, .36, 1);
}

.time-filter__slider input[type='range']:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25), 0 10px 24px rgba(99, 102, 241, 0.35);
}

.time-filter__slider input[type='range']::-webkit-slider-thumb:active {
    transform: scale(1.08);
}

.time-filter__slider input[type='range']::-moz-range-track {
    background: transparent;
    border: none;
}

.time-filter__slider input[type='range']::-moz-range-thumb {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
    pointer-events: auto;
    transition: transform 220ms cubic-bezier(.22, .61, .36, 1), box-shadow 220ms cubic-bezier(.22, .61, .36, 1);
}

.time-filter__slider input[type='range']:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25), 0 10px 24px rgba(99, 102, 241, 0.35);
}

.time-filter__slider input[type='range']::-moz-range-thumb:active {
    transform: scale(1.08);
}

.time-filter__slider input[type='range']::-ms-track {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.time-filter__slider input[type='range']::-ms-thumb {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
    pointer-events: auto;
    transition: transform 220ms cubic-bezier(.22, .61, .36, 1), box-shadow 220ms cubic-bezier(.22, .61, .36, 1);
}

.time-filter__slider input[type='range']::-ms-thumb:active {
    transform: scale(1.08);
}

.time-filter__slider input[type='range']::-ms-fill-upper,
.time-filter__slider input[type='range']::-ms-fill-lower {
    background: transparent;
}

.time-filter__slider input[type='range']::-webkit-slider-thumb:hover,
.time-filter__slider input[type='range']::-moz-range-thumb:hover,
.time-filter__slider input[type='range']::-ms-thumb:hover {
    transform: scale(1.04);
}

.time-filter--disabled {
    opacity: 0.82;
}

.time-filter--disabled .time-filter__summary {
    color: #9ca3af;
}

.time-filter--disabled .time-filter__summary-icon {
    color: #9ca3af;
}

.time-filter--disabled .time-filter__summary:hover,
.time-filter--disabled .time-filter__summary:focus-visible {
    background: transparent;
}

.time-filter--disabled .time-filter__slider::after {
    box-shadow: none;
}

.time-filter--disabled .time-filter__slider input[type='range']::-webkit-slider-thumb,
.time-filter--disabled .time-filter__slider input[type='range']::-moz-range-thumb,
.time-filter--disabled .time-filter__slider input[type='range']::-ms-thumb {
    border-color: #9ca3af;
    box-shadow: none;
}

@media (max-width: 600px) {
    .time-filter {
        border-radius: 16px;
    }

    .time-filter__summary {
        padding: 14px 16px;
        font-size: 16px;
    }

    .time-filter__content {
        padding: 14px 18px 18px;
    }

    .time-filter__label strong {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .time-filter,
    .time-filter__slider::after,
    .time-filter__slider input[type='range']::-webkit-slider-thumb,
    .time-filter__slider input[type='range']::-moz-range-thumb,
    .time-filter__slider input[type='range']::-ms-thumb {
        transition: none;
    }
}

.day-no-results {
    margin: 0 0 16px;
    color: #666;
    font-style: italic;
    display: none;
}

div#day-links {
    display: flex;
    max-width: 100vw;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: auto;
}

div#day-links hr {
    margin: 0 8px 0 20px;
    border: none;
    border-left: 1px solid #eee;
}

div#day-links a {
    margin-left: 12px;
}

div#day-links a:first-of-type {
    margin-left: 0;
}

.movie {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border: 2px solid #eeeeee;
    border-radius: 12px;
    padding: 18px;
    color: #222;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    touch-action: pan-y;
    will-change: transform, opacity;
    transition: transform 220ms cubic-bezier(.22, .61, .36, 1), opacity 220ms ease;
}

.movie.movie--swiping {
    transition: none;
    cursor: grabbing;
}

.movie.movie--removing {
    pointer-events: none;
}

.movie > div {
    width: 50%;
}

.movie > div:first-of-type {
    display: flex;
    max-width: 400px;
    border-right: 1px solid #eee;
}

.showtimes {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 0 12px;
}

.format > div:first-of-type {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
}

.format:not(:last-of-type) {
    margin-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 12px;
}

.format a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    margin-bottom: 0;
}

.format a:not(:last-of-type) {
    margin-right: 0;
}

.format > div:last-of-type {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.format:last-of-type:not(:only-of-type) a {
    margin-bottom: 0;
}

.movie-info > div:first-of-type {
    margin: 5px 0;
}

.movie h1 {
    font-size: 22px;
    margin: 0 0 5px;
    letter-spacing: -0.01em;
}

.movie > div:first-of-type img+div {
    padding: 12px;
}

.movie > div:first-of-type img+div a {
    margin-right: 12px;
}

.movie > div:first-of-type img+div a:last-of-type {
    margin-right: 0;
}

.movie img {
    width: 50%;
    flex-shrink: 0;
    max-width: 220px;
}

.empty-state {
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    color: #666;
    font-size: 18px;
    line-height: 1.4;
}

@media (max-width: 1250px) {
    .movie {
        padding: 0;
    }

    .movie > div {
        width: 100%;
    }

    .movie > div:first-of-type {
        border-right: none;
    }

    .showtimes {
        padding: 12px;
        margin-top: 0;
    }

}

/* Special Shows styles */
.showtimes--special {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 0 0;
}

.special-day-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    min-width: 120px;
    flex-shrink: 0;
}

.special-day-card__header {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.special-day-card__times {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.special-day-card__format {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.special-day-card__format-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 3px;
}

.special-day-card__format-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie--special > div:first-of-type {
    width: 100%;
    border-right: none;
}

.movie--special .showtimes--special {
    width: 100%;
}

@media (max-width: 1250px) {
    .showtimes--special {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .special-day-card {
        min-width: calc(50% - 32px);
    }
}
