@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@700&family=Lexend:wght@100..900&display=swap');

.cinemas-container {
    max-width: 1320px;
    min-width: 1050px;
    margin: 2em auto;
    padding: 0 1em;
    width: 100%;
    align-self: stretch; /* override body align-items:center so container can span full width */
}

/* Prevent overflow on small screens while honoring min width on larger viewports */
@media (max-width: 1100px) {
    .cinemas-container {
        min-width: auto;
        max-width: calc(100% - 40px);
    }
}

/* New layout wrapper for sidebar + content */
.cinemas-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2em;
    align-items: start;
}

.store-selector {
    background: linear-gradient(180deg, #0a0044, #4c12f8, #37095d);
    background-size: 100% 200%;
    animation: gradientAnimation 16s ease-in-out infinite;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2em; /* retained for mobile stacking spacing */
    position: sticky;
    top: 1em;
}

.search-box {
    position: relative;
    margin-bottom: 1em;
}

.search-box i {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.search-box input {
    width: 100%;
    padding: 1em 1em 1em 3em;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.store-dropdown {
    position: relative;
}

.selected-store {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selected-store:hover {
    background: rgba(255, 255, 255, 0.2);
}

.store-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 5px;
    margin-top: 0.5em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.store-options.active {
    display: block;
}

.store-options li {
    padding: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.store-options li:last-child {
    border-bottom: none;
}

.store-options li:hover {
    background: rgba(0, 0, 0, 0.05);
}

.store-option-content h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.store-option-content p {
    margin: 0.3em 0 0;
    color: #666;
    font-size: 0.9em;
}

.store-details {
    display: grid;
    gap: 2em;
}

.store-info {
    display: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.store-info.active {
    display: block;
}

.store-header {
    padding: 1.5em;
    background: linear-gradient(180deg, #0a0044, #4c12f8, #37095d);
    background-size: 100% 200%;
    animation: gradientAnimation 16s ease-in-out infinite;
    color: #fff;
}

.store-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.store-meta {
    display: flex;
    gap: 1.5em;
    margin-top: 0.5em;
    font-size: 0.9em;
}

.store-meta span {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.store-meta a {
    color: #fff;
    text-decoration: none;
}

.store-content {
    padding: 1.5em;
}

.store-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5em;
}

.store-actions {
    display: flex;
    gap: 1em;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1em;
    background: linear-gradient(180deg, #0a0044, #4c12f8, #37095d);
    background-size: 100% 200%;
    animation: gradientAnimation 16s ease-in-out infinite;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes gradientAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@media (max-width: 768px) {
    .cinemas-container {
        max-width: 100%;
        padding: 0 1em;
    }

    .cinemas-layout {
        grid-template-columns: 1fr;
    }

    .store-selector {
        position: static;
        top: auto;
    }

    .store-meta {
        flex-direction: column;
        gap: 0.5em;
    }

    .store-actions {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .cinemas-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 2em;
    }

    .store-selector {
        position: sticky;
        top: 1em;
    }
}