:root {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-color: #BB86FC;
    --error-color: #CF6679;
    --nav-height: 60px;
    --footer-height: 80px;
    --neon-color: #ff3864;
    --neon-glow: 0 0 7px #ff3864,
                0 0 10px #ff3864,
                0 0 21px #ff3864,
                0 0 42px #ff3864;
    --text-tertiary: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: var(--bg-secondary);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-location {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.navbar-location i {
    margin-right: 0.5rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin-left: 3rem;
}

.nav-item {
    margin-right: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

main {
    margin-top: var(--nav-height);
    flex: 1;
}

.footer {
    background-color: var(--bg-secondary);
    height: var(--footer-height);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-content {
    display: flex;
    gap: 2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #111;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 3rem;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.nav-left {
    flex: 1;
    justify-content: flex-start;
    margin-right: 2rem;
}

.nav-right {
    flex: 1;
    justify-content: flex-end;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 450;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--neon-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--neon-color);
}

.nav-logo {
    text-decoration: none;
    position: relative;
    padding: 0 0rem;
}

.logo-text {
    font-family: 'Codystar', cursive;
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: var(--neon-glow);
    animation: neonFlicker 3.5s infinite alternate-reverse;
    white-space: nowrap;
    letter-spacing: 4px;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.location-selector:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.location-icon {
    width: 18px;
    height: 18px;
    stroke: var(--neon-color);
    stroke-width: 2.5;
}

.auth-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
    margin-left: 1rem;
    position: relative;
}

.auth-selector:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.auth-selector.signed-in {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.auth-selector.signed-in:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-icon {
    width: 18px;
    height: 18px;
    stroke: var(--neon-color);
    stroke-width: 2.5;
    color: var(--neon-color);
}

.auth-selector.signed-in .auth-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Sign Out Button Styles */
.sign-out-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 0.75rem;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 10;
}

.sign-out-icon:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: none;
}

.sign-out-icon i {
    font-size: 0.75rem;
}

/* Auth Loader Styles */
.auth-loader {
    display: inline-block;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.auth-text-content {
    display: inline-block;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.auth-modal-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: var(--neon-glow);
    font-family: 'Codystar', cursive;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-modal-close:hover {
    background: rgba(255, 56, 100, 0.2);
    color: var(--neon-color);
    border-color: rgba(255, 56, 100, 0.4);
    box-shadow: 0 0 10px rgba(255, 56, 100, 0.3);
}

.auth-slogan {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-slogan p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--neon-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(255, 56, 100, 0.3);
}

.auth-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-form-actions button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#auth-submit-btn {
    background: rgba(255, 56, 100, 0.2);
    color: var(--neon-color);
    border: 1px solid rgba(255, 56, 100, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#auth-submit-btn:hover {
    background: rgba(255, 56, 100, 0.3);
    border-color: rgba(255, 56, 100, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 56, 100, 0.4);
}

#auth-switch-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#auth-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    .nav-left, .nav-right {
        gap: 2rem;
    }
    .logo-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 0;
    }
    .nav-container {
        padding: 0 1rem;
        height: 2.5rem;
    }
    .nav-left, .nav-right {
        display: none !important;
    }
    .nav-center {
        padding: 0 1rem;
    }
    .logo-text {
        font-size: 2rem;
        padding: 0 10px;
    }
    .nav-link {
        font-size: 0.875rem;
    }
    .location-selector {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    .location-icon {
        width: 16px;
        height: 16px;
    }
    .auth-selector {
        gap: 0.5rem;
        margin-left: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .auth-selector span {
        display: none;
    }
    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #000;
        border-radius: 50%;
        border: none;
        position: absolute;
        right: 20px;
        top: 13px;
        z-index: 1001;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        transition: background 0.2s;
    }

    .navbar-toggle i {
        color: #fff !important;
        font-size: 1.7em;
        display: block;
        margin: 0 auto;
        pointer-events: none;
    }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 56px;
        right: 0;
        background: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        width: 180px;
        border-radius: 8px;
        z-index: 1000;
        flex-direction: column;
        padding: 12px 0;
    }
    .navbar-menu.open {
        display: flex;
    }
    .navbar-menu .nav-link {
        padding: 12px 24px;
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
    }
    .navbar-menu .nav-link:hover {
        background: #333;
    }
    .profile-page .movies-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-left, .nav-right {
        gap: 1rem;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .location-selector span {
        display: none;
    }
    .location-selector {
        padding: 0.5rem;
    }
    .auth-selector {
        padding: 0.5rem;
    }
    .auth-selector span {
        display: none;
    }
    .sign-out-icon {
        margin-left: 0.5rem;
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
    .sign-out-icon i {
        font-size: 0.7rem;
    }
    .nav-right {
        gap: 0.5rem;
    }
}

.movie-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: #111;
    min-height: 100vh;
}

.date-header {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 3.5rem 0 2.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.movie-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background-size: cover;
    background-position: center;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.movie-time {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.movie-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.movie-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movie-genres {
    display: flex;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.movie-cinema {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.movie-cinema svg {
    opacity: 0.7;
    width: 14px;
    height: 14px;
}

.movie-info {
    padding: 1rem;
}

.movie-year {
    color: var(--text-tertiary);
    font-weight: 300;
    font-size: 0.9em;
}

.movie-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.meta-item {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.error-message {
    color: #ff4444;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
}

.loading {
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
}

.header {
    background: #000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: white;
}

@media (max-width: 640px) {
    .date-header {
        font-size: 2rem;
        margin: 2rem 0 1.5rem;
    }
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .movie-card {
        height: auto;
        min-height: unset;
        max-height: unset;
        flex-direction: column;
    }
    .movie-image {
        width: 100%;
        padding-top: 70%;
        height: auto;
        min-height: unset;
        max-height: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .movie-overlay {
        padding: 1.25rem;
    }
    .movie-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .movie-time {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        bottom: auto;
        font-size: 0.875rem;
        padding: 0.4rem 0.75rem;
    }
    .movie-meta {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .movie-card {
        min-height: unset;
        max-height: unset;
    }
    .movie-image {
        padding-top: 70%;
    }
    .movie-title {
        font-size: 1.25rem;
    }
    .movie-time {
        font-size: 0.875rem;
        padding: 0.4rem 0.75rem;
        top: 0.75rem;
        left: 0.75rem;
    }
    .movie-overlay {
        padding: 1.25rem;
    }
}

.movie-header {
    margin-bottom: 1rem;
}

.movie-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.movie-runtime {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.movie-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --- Мобильное меню --- */
.navbar-toggle, .navbar-menu {
    display: none;
}

@media (max-width: 900px) {
    .navbar-nav {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        width: 220px;
        height: calc(100vh - var(--nav-height));
        box-shadow: -2px 0 8px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        opacity: 0.98;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        z-index: 1050;
        align-items: flex-start;
    }
    .navbar-nav.open {
        transform: translateX(0);
    }
    .navbar-toggle {
        display: flex;
    }
    .navbar-location {
        display: none;
    }
    .navbar {
        padding: 0 1rem;
    }
    .movie-title-large {
        font-size: 2.2rem;
    }
    .slider-container {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    .navbar-nav {
        width: 100vw;
        padding: 2rem 1rem;
    }
    .movie-title-large {
        font-size: 1.5rem;
    }
}

/* Увеличиваем кликабельность и размеры меню на мобильных */
.nav-link {
    font-size: 1.15rem;
    padding: 0.7rem 0.5rem;
    border-radius: 6px;
    display: block;
}
.nav-link:active, .nav-link:focus {
    background: rgba(255,255,255,0.07);
    outline: none;
}

.movie-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem 1rem;
}
.movie-main {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.movie-poster-large img {
    width: 320px;
    max-width: 100vw;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #222;
}
.movie-main-info {
    flex: 1 1 320px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.movie-title-large {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}
.movie-meta-row {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
    font-weight: 400;
    justify-content: flex-start;
    }
.movie-meta-row span {
    color: var(--text-secondary);
    font-weight: 400;
    display: flex;
    align-items: center;
}
.movie-meta-row .movie-year,
.movie-meta-row .movie-genres,
.movie-meta-row .movie-runtime {
    color: var(--text-secondary);
    font-weight: 400;
}
.movie-rating {
    color: #FFD700;
    font-weight: 600;
}
.movie-runtime, .movie-year, .movie-genres {
        font-size: 1rem;
    }
.buy-ticket-btn {
    display: inline-block;
    background: var(--neon-color, #ff3864);
    color: #fff;
    font-weight: 600;
    padding: 0.7em 1.5em;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 2px 12px rgba(255,56,100,0.15);
    transition: background 0.2s;
}
.buy-ticket-btn:hover {
    background: #ff1744;
}
.movie-cinema-info {
    margin-top: 1.2rem;
    color: var(--text-tertiary);
        font-size: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    }
.movie-description, .movie-trailer, .movie-cast {
    margin-top: 2.5rem;

    border-radius: 12px;

}
.movie-description h2,
.movie-trailer h2,
.movie-cast h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.trailer-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.trailer-embed iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}
.cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    list-style: none;
    padding: 0;
    justify-content: center;
}
.cast-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    max-width: 100vw;
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    }
.cast-list img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    background: #222;
}
.character {
    color: var(--text-tertiary);
    font-size: 0.9em;
}
@media (max-width: 800px) {
    .movie-main {
        flex-direction: column;
        align-items: stretch;
    }
    .movie-poster-large img {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        display: block;
    }
}

.movie-info-block {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.movie-cinema-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.movie-cinema-row-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-secondary);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.movie-cinema-row-inner span,
.movie-cinema-row-inner .dot {
    color: inherit;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.movie-cinema-row .buy-ticket-btn {
    margin-top: 0;
    margin-right: 0;
    margin-left: auto;
    white-space: nowrap;
}
.movie-overview {
    color: var(--text-primary);
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    line-height: 1.6;
}

.cast-placeholder {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #222;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: var(--text-tertiary);
    }

@media (max-width: 1100px) {
    .cast-list li {
        width: 22vw;
        min-width: 110px;
        max-width: 150px;
    }
}
@media (max-width: 700px) {
    .cast-list {
        gap: 1.2rem;
    }
    .cast-list li {
        width: 44vw;
        min-width: 100px;
        max-width: 180px;
    }
    .movie-cinema-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .movie-cinema-row .buy-ticket-btn {
        margin-left: 0;
        margin-top: 0.7rem;
        align-self: flex-start;
    }
}
@media (max-width: 480px) {
    .cast-list li {
        width: 90vw;
        min-width: 90px;
        max-width: 100vw;
    }
}

.movie-meta-row .dot {
    margin: 0 0.6em;
    color: var(--text-secondary);
    font-size: 1.15em;
    display: flex;
    align-items: center;
    user-select: none;
}

.calendar-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem 1rem;
    }
.calendar-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  color: var(--text-primary);
  text-align: center;
}
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.calendar-day {
  background: rgba(30,30,30,0.85);
  border-radius: 12px;
  padding: 1.2rem 1.2rem 1.1rem 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.calendar-date {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.calendar-movie-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
    }
.calendar-movie-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.08rem;
  color: var(--text-primary);
}
.calendar-bullet {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  margin-right: 0.7em;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}
.calendar-movie-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.calendar-movie-link:hover {
  color: #fff;
  text-decoration: underline;
}
.calendar-movie-time {
  color: var(--text-secondary);
  font-size: 0.98em;
  margin-left: 0.7em;
  display: inline-block;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  text-align: center;
}
@media (max-width: 600px) {
  .calendar-page {
    padding: 1.2rem 0.2rem 2rem 0.2rem;
  }
  .calendar-title {
    font-size: 1.3rem;
  }
  .calendar-date {
    font-size: 1.05rem;
  }
  .calendar-movie-item {
    font-size: 0.98rem;
    }
}

.calendar-movie-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 0.7em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #222;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.movie-page-wrapper {
  position: relative;
  z-index: 0;
}
.movie-backdrop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 38%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px) brightness(0.6);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0) 20%, #111 30%), var(--backdrop-url);
}
.movie-page {
  position: relative;
  z-index: 1;
  margin-top: 50px;
}
@media (max-width: 800px) {
  .movie-backdrop-bg {
    filter: blur(8px) brightness(0.7);
  }
}




.calendar-movie-title {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.calendar-movie-title:hover {
  color: var(--accent-color) !important;
  text-decoration: underline;
}

.slider-container {
  width: 100%;
  margin-bottom: 2.5rem;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  margin-bottom: -50px;
    }
.slider {
  display: flex;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.slide {
  min-width: 100vw;
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(0px) brightness(0.7);
  z-index: 0;
}
.slide-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
}
.slide-poster img {
  width: 180px;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  background: #222;
}
.slide-info {
  margin-left: 2.5rem;
  color: #fff;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.slide-title {
  font-size: 2.5rem;
  font-family: 'Unbounded', sans-serif;
  margin-bottom: 0.3rem;
}
.slide-meta {
  font-size: 1.15rem;
  color: #e0e0e0;
  display: flex;
  gap: 1.2em;
  align-items: center;
    }
.slide-overview {
  font-size: 1.08rem;
  color: #eaeaea;
  line-height: 1.5;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.slide-session {
  font-size: 1.08rem;
  color: #fff;
  opacity: 0.92;
  margin-bottom: 0.7em;
  display: flex;
  gap: 1em;
}
.slide-btn {
  display: inline-block;
  background: #000000;
  color: #a6a6a6;
  font-weight: 700;
  padding: 0.9em 2.2em;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s;
}
.slide-btn:hover {
  background: #222;
  color: #fff;
}
@media (max-width: 900px) {
  .slide-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1rem 1rem 1rem;
  }
  .slide-poster img {
    width: 120px;
    height: 170px;
  }
  .slide-info {
    margin-left: 0;
    margin-top: 1.2rem;
    max-width: 100vw;
  }
  .slide-title {
    font-size: 1.3rem;
    }
}

.slide-content-bottom {
  position: relative;
  z-index: 2;
  padding: 0 4vw 3.5rem 4vw;
  color: #fff;
  max-width: 900px;
  width: 100%;
  margin-bottom: 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.slide-title {
  font-size: 3rem;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.slide-meta-row {
  display: flex;
  gap: 1.2em;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
}
.slide-meta-block {
  background: rgba(30,30,30,0.45);
  border-radius: 8px;
  padding: 0.25em 0.9em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
}
.slide-cinema {
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.slide-overview {
  font-size: 1.15rem;
  color: #eaeaea;
  margin-bottom: 2.2rem;
  max-width: 700px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  line-height: 1.5;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.slide-btn-arrow {
  margin-left: 0.7em;
  font-size: 1.2em;
  vertical-align: middle;
}
.slider-dots {
  position: absolute;
  right: 3vw;
  bottom: 2.2rem;
  display: flex;
  gap: 0.7em;
  z-index: 2;
}
.slider-dot {
  width: 32px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dot.active {
  background: #fff;
}
@media (max-width: 900px) {
  .slide-content-bottom {
    padding: 1.2rem 1rem 1.2rem 1rem;
    max-width: 98vw;
  }
  .slide-title {
    font-size: 1.5rem;
  }
}

.slider-fade {
  position: relative;
  width: 100vw;
  height: 520px;
  overflow: hidden;
}
.slide {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 520px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.slide-content {
  position: relative;
  z-index: 1;
  padding: 0 4vw 3.5rem 2rem;
  color: #fff;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .slider-fade, .slide {
    height: 320px;
    }
}

/* Удалён отладочный стиль:
.navbar-toggle {
    display: flex !important;
}
*/

/* --- Other showings adaptive layout --- */
.new-other-showing-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0.3em 0;
}
.other-showing-col1 {
  min-width: 110px;
  max-width: 140px;
  flex: 0 0 120px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-weight: 500;
  color: var(--text-primary);
}
.other-showing-col2 {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  min-width: 120px;
}
.other-showing-col2 .movie-cinema {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: -2px;
}
.other-showing-col2 .movie-lang {
  color: var(--text-secondary);
  font-size: 0.98em;
}
.new-other-showing-row .buy-ticket-btn {
  margin-left: auto;
  margin-top: 0.2em;
  align-self: flex-end;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .new-other-showing-row {
    flex-direction: column;
    gap: 0.3em;
    align-items: stretch;
  }
  .other-showing-col1, .other-showing-col2 {
    min-width: 0;
    max-width: 100%;
    flex: unset;
  }
  .new-other-showing-row .buy-ticket-btn {
    margin: 0.5em 0 0 0;
    align-self: flex-start;
  }
}
.new-other-showing-row .movie-showtime,
.new-other-showing-row .movie-cinema,
.new-other-showing-row .movie-lang {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.0rem;
  font-weight: 500;
  line-height: 1.25;
}
.new-other-showing-row .movie-showtime,
.new-other-showing-row .movie-cinema {
  color: var(--text-primary);
}
.new-other-showing-row .movie-lang {
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- Fixed Subscribe Bar --- */
.fixed-subscribe-bar {
  display: none!important;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1000;
  background: linear-gradient(to right, rgba(20,20,20,0.92) 60%, rgba(20,20,20,0.7)), url('https://www.themoviedb.org/t/p/original/5K7cOHoay2mZusSLezBOY0Qxh8a.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 16px 0;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}
.fixed-subscribe-bar.hide {
  transform: translateY(120%);
}
.fixed-subscribe-bar .subscribe-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
}
.fixed-subscribe-bar .subscribe-text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.fixed-subscribe-bar h3 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.fixed-subscribe-bar p {
  margin: 0;
  font-size: 1.08em;
  color: #e0e0e0;
  line-height: 1.5;
  font-weight: 400;
}
.fixed-subscribe-bar form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.fixed-subscribe-bar input[type="email"] {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
  outline: none;
  min-width: 180px;
  background: #fff;
  color: #222;
}
.fixed-subscribe-bar button {
  background: #eab308;
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fixed-subscribe-bar button:hover {
  background: #facc15;
}
.fixed-subscribe-bar #subscribe-message-fixed {
  margin-left: 16px;
  font-size: 1em;
  color: #fff;
  min-width: 120px;
}
@media (max-width: 900px) {
  .fixed-subscribe-bar .subscribe-content {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 8px;
  }
  .fixed-subscribe-bar form {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .fixed-subscribe-bar {
    padding: 12px 0 8px 0;
  }
  .fixed-subscribe-bar .subscribe-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 4px;
  }
  .fixed-subscribe-bar h3 {
    font-size: 1.1em;
  }
  .fixed-subscribe-bar p {
    font-size: 0.98em;
    }
}

/* Movie Page Subscribe Block */
.movie-subscribe-block {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.9) 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.movie-subscribe-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  border-radius: 16px;
}

.movie-subscribe-content {
  background: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
  border: none;
  box-shadow: none;
}

.movie-subscribe-content::before {
  display: none;
}

.movie-subscribe-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 60%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  border-radius: 0 20px 20px 0;
  z-index: 0;
}

.movie-subscribe-text {
  position: relative;
  z-index: 2;
  margin-bottom: 1.8rem;
  text-align: center;
}

.movie-subscribe-text h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.movie-subscribe-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.movie-subscribe-form {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.movie-subscribe-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.movie-subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.movie-subscribe-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.movie-subscribe-form button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.25) 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
}

.movie-subscribe-form button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.35) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.movie-subscribe-message {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-subscribe-message.show {
  opacity: 1;
}

.movie-subscribe-message.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.25) 100%);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.4);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.movie-subscribe-message.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(211, 47, 47, 0.25) 100%);
  color: #ef5350;
  border: 1px solid rgba(244, 67, 54, 0.4);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(244, 67, 54, 0.1);
}

@media (max-width: 700px) {
  .movie-subscribe-block {
    padding: 2rem 1.5rem;
  }
  
  .movie-subscribe-text h3 {
    font-size: 1.5rem;
  }
  
  .movie-subscribe-text p {
    font-size: 1rem;
  }
  
  .movie-subscribe-form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: 100%;
  }
  
  .movie-subscribe-form input[type="email"] {
    min-width: auto;
  }
  
  .movie-subscribe-form button {
    justify-content: center;
    align-self: stretch;
  }
}

@media (max-width: 480px) {
  .movie-subscribe-block {
    padding: 1.5rem 1rem;
  }
  
  .movie-subscribe-text h3 {
    font-size: 1.3rem;
  }
  
  .movie-subscribe-text p {
    font-size: 0.95rem;
  }
}

/* Movie Showing Header Styles */
.movie-showing-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.showing-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.showing-header-title h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.showing-header-details {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.showing-date-time {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.showing-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
}

.showing-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.showing-cinema {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cinema-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
}

.showing-language {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.language-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.showing-ticket {
  margin-left: auto;
}

.header-buy-ticket-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff3864 0%, #ff6b9d 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 56, 100, 0.3);
}

.header-buy-ticket-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 56, 100, 0.4);
  color: white;
  text-decoration: none;
}

.header-buy-ticket-btn i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .showing-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .showing-header-details {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .showing-ticket {
    margin-left: 0;
    width: 100%;
  }
  
  .header-buy-ticket-btn {
    justify-content: center;
    width: 100%;
  }
  
  .showing-header-title h2 {
    font-size: 1.3rem;
  }
}

/* User Lists Buttons Styles */
.user-lists-buttons {
  margin: 0;
}

.lists-buttons-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.list-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.list-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.list-btn i {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.list-btn:hover i {
  opacity: 1;
}

.list-btn.added {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: rgba(34, 197, 94, 0.9);
}

.list-btn.added:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: rgba(34, 197, 94, 1);
}

@media (max-width: 600px) {
  .lists-buttons-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .list-btn {
    justify-content: center;
    padding: 0.875rem 1rem;
  }
}

/* Login Message Styles */
.login-message {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
}

.login-message span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.login-btn i {
  font-size: 0.8rem;
}

/* Watched Message Styles */
.watched-message {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  flex-wrap: wrap;
}

.watched-message i {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Star Rating Styles */
.movie-rating-stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.rating-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
}

.stars-container {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.star:hover {
  transform: scale(1.1);
}

.star.active {
  color: #ffd700;
}

.rating-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .login-message {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .login-message span {
    font-size: 0.9rem;
  }
  
  .watched-message {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .movie-rating-stars {
    gap: 4px;
  }
  
  .star {
    font-size: 0.9rem;
  }
  
  .rating-text {
    font-size: 0.7rem;
    margin-left: 2px;
  }
  
  .rating-label {
    font-size: 0.8rem;
  }
}

/* Profile Movie Rating Styles */
.movie-card .movie-rating {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.movie-card .stars-container {
  display: flex;
  gap: 2px;
}

.movie-card .star {
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.movie-card .star:hover {
  transform: scale(1.1);
}

.movie-card .star.rated {
  color: #ffd700;
}

.movie-card .star.active {
  color: #ffd700;
}

.movie-card .rating-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Loading indicator for movie status */
.movie-card.loading-status {
  position: relative;
}

.movie-card.loading-status::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 10;
}

.movie-card.loading-status::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.my-movies-icon {
  color: var(--neon-color) !important;
  font-size: 1.25em;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px var(--neon-color));
  transition: color 0.2s;
}

.auth-selector.signed-in .my-movies-icon {
  color: var(--neon-color) !important;
}

/* Profile Page Optimizations */
.profile-page {
    will-change: transform;
    contain: layout style paint;
}

.movies-grid {
    contain: layout style;
    will-change: transform;
}

.movie-card {
    contain: layout style;
    will-change: transform;
}

.movie-poster img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize star ratings */
.stars-container {
    contain: layout style;
    will-change: transform;
}

.star {
    will-change: transform;
    backface-visibility: hidden;
}

/* Profile background optimization */
.profile-background {
    will-change: transform;
    contain: layout style paint;
}

.profile-background-overlay {
    will-change: transform;
    contain: layout style paint;
}

/* Mobile Auth Menu Styles */
.mobile-auth-section {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.mobile-auth-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-auth-selector .auth-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-auth-selector.signed-in .auth-icon {
    color: var(--text-secondary);
}

.mobile-auth-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-auth-selector.signed-in .mobile-auth-text {
    color: var(--text-primary);
}

.mobile-auth-text-content {
    font-weight: 500;
}



/* Show mobile auth section in mobile menu */
@media (max-width: 768px) {
    .navbar-menu .mobile-auth-section {
        display: flex;
    }
    
    .navbar-menu .nav-link {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        transition: color 0.2s ease;
    }
}