html /* IMPORTANT: scroll-snap-type won't work with body selector, so replace it with html */ {
    background-color: #090909;
    scroll-snap-type: y mandatory; /* Define snapping behavior. "y" indicates vertical behavior, "mandatory" won't allow the user to stay in-between two pages. */
}

body {
    margin: 0;
}

.movie-box {
    display: flex;
    flex-direction: column;
    align-items: center;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    font-family: Arial, sans-serif;
    height: 100vh;
    width: 100%;
    justify-content: end;
    background-size: cover;
    background-position-x: center;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    padding-bottom: 100px;
}

.movie-info {
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    -webkit-backdrop-filter: blur(12px); /* Blurring effect */
    backdrop-filter: blur(12px); /* Blurring effect */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    width: 80%;
    max-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.movie-title {
    /* Replicate the browser default <h1> box model so demoting the tag to
       <h2> (for correct heading hierarchy) doesn't change the visual. */
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
    font-variant: all-small-caps;
}

/* Visually hide an element while keeping it available to screen readers and
   crawlers (used for the page-level <h1>). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.movie-showtimes {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scrollbar-width: none; /* Remove scrollbar */
}

.movie-showtimes a {
    text-decoration: none;
}

.pill {
    background-color: #fff;
    border-radius: 25px;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 5px;
}

.time {
    font-size: 20px;
    font-weight: bold;
    color: #555;
}

.label {
    font-size: 9px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    text-align: center;
}

/* btn */
.button-container {
    text-align: right;
}

.imdb-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #f5c518; /* IMDb yellow */
    color: #000; /* Text color */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.floating-label {
    background-color: #fff;
    border-radius: 25px;
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: fixed;
    color: #8e8e8e;
    font-family: Arial, sans-serif; /* Change as needed */
    font-size: 12px; /* Adjust as needed */
    z-index: 1000; /* Ensure it appears above other elements */
}

.floating-label-date {
    top: 20px;
    margin: 0 0 0 9dvw;
}

.floating-label-location {
    top: 20px;
    right: 0;
    margin: 0 9dvw 0 0;
}

.floating-label-back {
    bottom: 20px;
    display: none;
    right: 0;
    margin: 0 9dvw 0 0;
    cursor: pointer;
}

/* ---- City switcher (CSS-only <details>/<summary> disclosure) ----
   Mobile-first, tappable, JavaScript-free. Sits in the same spot as the old
   location pill: it reuses .floating-label-location for top/right placement
   (incl. the desktop media query below) and adds its own fixed positioning so
   the open menu can be absolutely positioned beneath the pill. */
.city-switcher {
    position: fixed;
    z-index: 1001; /* above the other .floating-label pills (z-index 1000) */
    font-family: Arial, sans-serif;
}

/* The tappable trigger, styled to match the existing .floating-label pill. */
.city-switcher-summary {
    list-style: none; /* remove default disclosure triangle (standards) */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    min-height: 44px; /* comfortable touch target */
    padding: 0 16px;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #8e8e8e;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Remove default disclosure marker across engines. */
.city-switcher-summary::-webkit-details-marker {
    display: none;
}
.city-switcher-summary::marker {
    content: "";
}

/* ▾ affordance that flips when the menu is open. */
.city-caret {
    font-size: 10px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.city-switcher[open] .city-caret {
    transform: rotate(180deg);
}

/* The dropdown panel. Anchored to the right edge so it never runs off the
   right side of a small viewport. */
.city-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    max-width: 78vw;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.city-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px; /* comfortable touch target */
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
    color: #4a4a4a;
    text-decoration: none;
}

.city-menu-item:hover,
.city-menu-item:focus {
    background-color: #f1f1f1;
}

/* The currently-viewed city: bolder, darker, with a check mark. */
.city-menu-item.is-current {
    font-weight: bold;
    color: #1a1a1a;
}

.city-check {
    flex: 0 0 auto;
    width: 16px;
    text-align: center;
    color: #2e9b57;
    font-size: 13px;
}
.city-check--empty {
    color: transparent; /* keeps labels aligned for non-current cities */
}

/* ---- Feedback CTA card ---- */
.feedback-cta {
    background-color: #2d3748;
    justify-content: center;
    padding-bottom: 0;
}

.feedback-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #e2e8f0;
    padding: 20px;
    text-align: center;
}

.feedback-cta-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 28px;
    border: 2px solid #a0aec0;
    border-radius: 28px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.feedback-cta-btn:hover,
.feedback-cta-btn:focus {
    background-color: #e2e8f0;
    color: #2d3748;
}

.feedback-cta-icon {
    width: 56px;
    height: 56px;
    color: #a0aec0;
}

.feedback-cta-headline {
    font-size: 1.5rem;
    font-weight: bold;
}

.feedback-cta-subtitle {
    font-size: 1rem;
    color: #a0aec0;
}

@media (min-width: 768px) {
    html, body {
        width: 700px;
        margin: 0 auto;
    }
    .floating-label-date {
        left: calc((100vw - 700px) / 2 + 70px);
        margin: 0;
    }
    .floating-label-location {
        right: calc((100vw - 700px) / 2 + 70px);
        margin: 0;
    }
}