: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);
}

.nav-link-with-icon i {
    margin-right: 0.35em;
}
.nav-my-movies-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.35em;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    vertical-align: middle;
}
.nav-my-movies-avatar .nav-my-movies-avatar-img,
.nav-my-movies-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nav-my-movies-avatar i {
    margin-right: 0;
    font-size: 0.9em;
}

.nav-link-nowrap {
    white-space: nowrap;
}

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;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1rem;
        height: auto;
        min-height: var(--footer-height);
    }
    .footer-content {
        width: 100%;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }
    .footer-links li {
        display: block;
    }
}

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;
}

.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: 2rem;
    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-social-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-google-btn i {
    font-size: 1.1rem;
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-divider span {
    position: relative;
    padding: 0 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

.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-btn-primary {
    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-btn-primary: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-btn-secondary {
    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-btn-secondary: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;
    }
}

.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: 10rem 0 2.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.movie-section .date-header:first-of-type {
    margin-top: 0.5rem;
}

.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.35rem 0.65rem;
    border-radius: 4px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.movie-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-genres,
.movie-cinema {
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
}

.movie-genres {
    display: flex;
    gap: 0.5rem;
    color: var(--text-tertiary);
}

.movie-cinema {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.9;
    min-width: 0;
}

.movie-cinema-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.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: 768px) {
    .movie-genres {
        display: none;
    }
    .movie-title {
        display: none;
    }
    .movie-time {
        top: 0.4rem;
        right: 0.4rem;
        left: auto;
    }
    .movie-overlay {
        padding: 0.5rem 0.75rem 0.6rem;
        background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 25%, transparent 45%);
    }
}
@media (max-width: 640px) {
    .date-header {
        font-size: 2rem;
        margin: 6rem 0 1.5rem;
    }
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .movie-card {
        height: auto;
        max-height: unset;
        flex-direction: column;
    }
    .movie-image {
        width: 100%;
        padding-top: 0;
        height: 235px;
        min-height: 235px;
        max-height: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .movie-overlay {
        padding: 0.5rem 0.75rem 0.6rem;
        background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 25%, transparent 45%);
    }
    .movie-title {
        display: none;
    }
    .movie-time {
        position: absolute;
        top: 0.4rem;
        right: 0.4rem;
        left: auto;
        bottom: auto;
        font-size: 0.75rem;
        padding: 0.3rem 0.55rem;
    }
    .movie-meta {
        gap: 0.35rem;
    }
    .movie-genres,
    .movie-cinema {
        font-size: 0.75rem;
    }
    .movie-cinema svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .movie-card {
        max-height: unset;
    }
    .movie-image {
        padding-top: 0;
        height: 235px;
        min-height: 235px;
    }
    .movie-title {
        display: none;
    }
    .movie-time {
        top: 0.4rem;
        right: 0.4rem;
        left: auto;
        font-size: 0.7rem;
        padding: 0.25rem 0.45rem;
    }
    .movie-overlay {
        padding: 0.5rem 0.6rem 0.55rem;
        background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 25%, transparent 45%);
    }
    .movie-genres,
    .movie-cinema {
        font-size: 0.7rem;
    }
}

.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;
    }
}
@media (max-width: 600px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    .navbar-nav {
        width: 100vw;
        padding: 2rem 1rem;
    }
}

/* Увеличиваем кликабельность и размеры меню на мобильных */
.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 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.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;
}
.instagram-image-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.instagram-image-link:hover {
    color: var(--accent-color);
}
.instagram-image-link i {
    font-size: 1rem;
}
.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;
}
@media (min-width: 641px) {
    .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;
}
.cast-list .cast-info .cast-name,
.cast-list .cast-info .character {
    display: block;
}
@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;
    }
}
@media (max-width: 768px) {
    .movie-poster-large img {
        max-width: 260px;
    }
    .movie-title-large {
        font-size: 1.75rem;
        text-align: center;
    }
    .movie-meta-row {
        justify-content: center;
        text-align: center;
    }
    .movie-meta-row,
    .movie-meta-row .movie-year,
    .movie-meta-row .movie-genres,
    .movie-meta-row .movie-runtime,
    .movie-meta-row .movie-imdb-rating,
    .movie-meta-row .dot {
        font-size: 1rem;
    }
    .movie-overview {
        text-align: center;
    }
    .cinema-schedule-header {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .movie-poster-large img {
        max-width: 220px;
    }
    .movie-title-large {
        font-size: 2rem;
        text-align: center;
    }
    .movie-meta-row {
        justify-content: center;
        text-align: center;
    }
    .movie-meta-row,
    .movie-meta-row .movie-year,
    .movie-meta-row .movie-genres,
    .movie-meta-row .movie-runtime,
    .movie-meta-row .movie-imdb-rating,
    .movie-meta-row .dot {
        font-size: 1rem;
    }
    .movie-overview {
        text-align: center;
    }
    .cinema-schedule-header {
        text-align: center;
    }
}

.cinema-schedule-header {
  margin: 20px 0 4px;
}
.cinema-schedule-title,
.cinema-schedule-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cinema-schedule-label {
  display: block;
}

.movie-info-block {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Showing ticket table: info left, actions (calendar + buy) right */
.showing-ticket-table {
  margin-top: 0;
}
.showing-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.showing-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.showing-info-time {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}
.showing-info-cinema {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}
.showing-info-lang {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.showing-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.showing-actions .calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  width: auto;
  min-width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: #ff3864;
  box-shadow: none;
}
.showing-actions .calendar-btn:hover {
  background: transparent;
  border: none;
  color: #ff3864;
  opacity: 0.9;
}
.showing-actions .calendar-btn-text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: inherit;
}
.showing-actions .calendar-btn i {
  color: inherit;
}
.showing-actions .buy-ticket-btn {
  white-space: nowrap;
  margin-top: 0;
}
.showing-row-hr {
  display: none;
}
.other-showings {
  margin-top: 24px;
  opacity: 0.88;
}
.other-showings-title {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0;
  font-weight: 600;
}
.other-showings-list .showing-ticket-row {
  margin-bottom: 0.75rem;
}
.other-showings-list .showing-ticket-row:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .showing-ticket-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0 1rem;
    row-gap: 0.25rem;
  }
  .showing-info {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .showing-actions {
    display: contents;
  }
  .showing-actions .buy-ticket-btn {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }
  .showing-actions .calendar-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 0;
    padding-left: 0;
    justify-content: flex-start;
  }
  .showing-actions .calendar-btn-text {
    font-size: 0.85rem;
  }
}

.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;
}

/* Цитата / слоган фильма — полноширинный блок под трейлером */
.movie-quote-block {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    padding: 4rem 1.5rem;
    text-align: center;
}
.movie-quote-text {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 600px) {
    .movie-quote-block {
        padding: 3.5rem 1rem;
        margin-top: 2rem;
    }
    .movie-quote-text {
        font-size: 1.35rem;
    }
}

.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) {
    .movie-cast .cast-list {
        gap: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .movie-cast .cast-list li {
        width: 100%;
        max-width: none;
        min-width: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        text-align: left;
        margin-bottom: 0;
        gap: 0 1.25rem;
        padding: 0.4rem 0;
    }
    .movie-cast .cast-list li img,
    .movie-cast .cast-list li .cast-placeholder {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        margin-bottom: 0;
    }
    .movie-cast .cast-list img {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
    }
    .movie-cast .cast-list .cast-info {
        display: block;
        line-height: 1.2;
    }
    .movie-cast .cast-list .cast-info .cast-name {
        display: block;
        margin: 0;
        line-height: 1.2;
        font-size: 1.12rem;
        font-weight: 600;
    }
    .movie-cast .cast-list .cast-info .character {
        display: block;
        margin: 0;
        line-height: 1.2;
    }
}
    .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: 100%;
        min-width: 0;
        max-width: none;
    }
}

.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;
}

.hero-heading {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.25rem;
  text-align: center;
}
@media (min-width: 901px) {
  .hero-heading {
    display: none;
  }
}
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .hero-heading {
    padding: 2.75rem 1rem 1rem;
    margin-top: 0.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-tagline {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .hero-heading {
    padding-top: 3rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-tagline {
    font-size: 0.9rem;
  }
}

/* Full-bleed: в край браузера; width: 100vw чтобы не было зазора справа при наличии скроллбара */
.slider-container {
  width: 100vw;
  margin-top: 2rem;
  margin-bottom: 4rem;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
}
.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: 720px;
  overflow: hidden;
  touch-action: pan-y; /* вертикальная прокрутка страницы работает; свайп по слайдеру не скроллит страницу по горизонтали */
}
.slide {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 720px;
  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-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.1) 0%, #111 100%);
  pointer-events: none;
  z-index: 0;
}
.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-container {
    display: block !important;
    visibility: visible !important;
  }
  /* Отступ сверху от шапки */
  .slider-container {
    margin-top: 2rem;
  }
  /* Точки/кнопки слайдера на мобилке скрыты */
  .slider-dots {
    display: none !important;
  }
  /* Горизонтальные карточки: отдельно стоящие, с зазорами */
  .slider-fade {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    height: 420px;
    gap: 1rem;
    padding: 0 1rem;
    touch-action: pan-x pan-y;
  }
  .slider-fade .slide {
    position: relative;
    flex: 0 0 82%;
    min-width: 82%;
    max-width: 82%;
    height: 420px;
    left: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    cursor: pointer;
  }
  .slider-fade .slide.active {
    z-index: 1;
  }
  /* На мобилке затемнение только снизу, чтобы текст был читаемым */
  .slide-gradient {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.85) 100%);
  }
  .slider-fade::-webkit-scrollbar {
    display: none;
  }
  .slider-fade {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .slide-content {
    padding: 0 4vw 2.5rem 1rem;
  }
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }
  .slide-meta-row {
    font-size: 0.9rem;
    gap: 0.6em;
    margin-bottom: 0.6rem;
  }
  .slide-meta-block {
    padding: 0.2em 0.6em;
    font-size: 0.85rem;
  }
  .slide-overview {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    -webkit-line-clamp: 3;
    max-height: 4.6em;
  }
  .slide-btn {
    padding: 0.65em 1.4em;
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .slider-container {
    margin-top: 1.75rem;
  }
  .slider-fade {
    height: 380px;
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .slider-fade .slide {
    flex: 0 0 85%;
    min-width: 85%;
    max-width: 85%;
    height: 380px;
    border-radius: 16px;
  }
  .slide-content {
    padding: 0 3vw 2rem 0.75rem;
  }
  .slide-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
  .slide-meta-row {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.4em;
  }
  .slide-overview {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    max-height: 4.6em;
  }
}

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

/* More showtimes uses same layout as main showing (.showing-ticket-row) */

/* --- 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.65rem 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.85);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  flex-wrap: wrap;
}

.watched-message > span:first-of-type {
  font-size: 1rem;
  font-weight: 600;
}

.watched-message i.fa-check-circle {
  font-size: 1.15rem;
  opacity: 0.9;
}

.watched-message .rating-label {
  font-size: 1rem;
}

.watched-message .star {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.45);
}

.watched-message .star.active,
.watched-message .star.rated {
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.6);
  color: #ffd700;
}

/* 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: rgba(255, 255, 255, 0.5);
  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;
}

.watched-message .rating-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@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.6rem 0.875rem;
    font-size: 1rem;
    gap: 0.6rem;
  }

  .watched-message > span:first-of-type {
    font-size: 1.05rem;
  }

  .watched-message .rating-label {
    font-size: 1rem;
  }

  .watched-message .star {
    font-size: 1.05rem;
  }

  .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: rgba(255, 255, 255, 0.5);
  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;
}

/* Follow button (profile, actor, director) */
.profile-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 56, 100, 0.2);
    border: 1px solid var(--neon-color, #ff3864);
    color: #fff;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.profile-follow-btn:hover {
    background: rgba(255, 56, 100, 0.35);
}
.profile-follow-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.person-follow-section {
    margin-top: 0.75rem;
}
.person-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.person-name-row .actor-name,
.person-name-row .director-name {
    margin: 0;
}
.person-name-row .person-follow-section {
    margin-top: 0;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .person-name-row .person-follow-section {
        width: 100%;
        margin-top: 0.75rem;
        display: flex;
        justify-content: center;
    }
}
.profile-follow-btn.is-following {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}
.profile-follow-btn.is-following:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
}
.profile-follow-btn.is-following i {
    color: rgba(120, 220, 120, 0.95);
}

/* 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;
    }
}

/* Movie popup — glass (shared for /movies, /director, /actor) */
.movie-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.movie-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.movie-popup-glass {
  position: relative;
  width: 100%;
  max-width: 840px;
  min-height: 280px;
  max-height: 90vh;
  overflow: hidden;
  background: rgba(22, 22, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.movie-popup-menu-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.movie-popup-menu-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transition: background 0.2s;
}
.movie-popup-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.movie-popup-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background: rgba(28, 28, 36, 0.98);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.movie-popup-menu-wrap.is-open .movie-popup-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.movie-popup-menu-dropdown .movie-popup-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: #e8e8ec;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.movie-popup-menu-dropdown .movie-popup-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.movie-popup-menu-dropdown .movie-popup-menu-item.separator {
  height: 1px;
  padding: 0;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.1);
  cursor: default;
}
.movie-popup-content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.movie-popup-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 22, 28, 0.88);
}
.movie-popup-loading {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.7);
  animation: movie-popup-loading-fade 0.3s ease;
}
@keyframes movie-popup-loading-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.movie-popup-content-inner {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.movie-popup-content-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes movies-carousel-spin {
  to { transform: rotate(360deg); }
}
.movie-popup-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--neon-color, #ff3864);
  border-radius: 50%;
  animation: movies-carousel-spin 0.8s linear infinite;
}
.movie-popup-director-movies {
  margin-top: 20px;
  margin-bottom: 8px;
}
.movie-popup-director-movies-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}
.movie-popup-director-movies-title a {
  color: var(--neon-color, #ff3864);
  text-decoration: none;
}
.movie-popup-director-movies-title a:hover {
  text-decoration: underline;
}
.movie-popup-director-movies-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.movie-popup-director-movie-card {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #222;
}
.movie-popup-director-movie-card:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.movie-popup-director-movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.movie-popup-dm-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2rem;
}
@media (max-width: 520px) {
  .movie-popup-director-movies-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
.movie-popup-header {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
@keyframes movie-popup-image-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.movie-popup-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.movie-popup-header-bg:not(.movie-popup-header-bg-placeholder) {
  animation: movie-popup-image-fade 0.5s ease;
}
.movie-popup-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 45%, transparent 70%),
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 65%);
  pointer-events: none;
}
.movie-popup-header-bg-placeholder {
  background: #2a2a2a;
  color: #666;
  font-size: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-popup-header-overlay {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  z-index: 2;
}
.movie-popup-header .movies-carousel-card-poster-wrap {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: movie-popup-image-fade 0.4s ease;
}
.movie-popup-header .movies-carousel-card-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: movie-popup-image-fade 0.4s ease;
}
.movie-popup-header .movies-carousel-card-poster-placeholder {
  width: 100%;
  height: 100%;
  min-width: 80px;
  aspect-ratio: 2/3;
  background: #333;
  color: #666;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-popup-header .movies-carousel-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  line-height: 1.4;
}
.movie-popup-header .movies-carousel-card-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 2em;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.28;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-popup-header .movies-carousel-card-meta {
  display: block;
  font-size: 1em;
  color: rgba(255,255,255,0.82);
  margin-bottom: 10px;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
}
.movie-popup-header .movies-carousel-card-meta .movie-popup-imdb {
  color: #c28602;
  font-weight: 600;
}
.movie-popup-imdb-link {
  color: #c28602;
  font-weight: 600;
  text-decoration: none;
}
.movie-popup-imdb-link:hover {
  text-decoration: underline;
}
.movie-popup-body {
  padding: 20px 24px 24px;
}
.movie-popup-content .movie-popup-overview {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.movie-popup-trailer {
  margin: 0 0 20px 0;
}
.movie-popup-trailer-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 10px 0;
}
.movie-popup-trailer-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
}
.movie-popup-trailer-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.movie-popup-trailer-play:hover {
  background: rgba(0, 0, 0, 0.2);
}
.movie-popup-trailer-play i {
  font-size: 3rem;
  opacity: 0.9;
}
.movie-popup-trailer-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.movie-popup-user-lists {
  margin: 0 0 20px 0;
}
.movie-popup-user-lists .lists-buttons-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.movie-popup-user-lists .list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}
.movie-popup-user-lists .list-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.movie-popup-user-lists .list-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.movie-popup-user-lists .list-btn:hover::before { opacity: 1; }
.movie-popup-user-lists .wishlist-btn.added,
.movie-popup-user-lists .watched-btn.added {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
}
.movie-popup-user-lists .list-btn.added::before { opacity: 1; }
.movie-popup-user-lists .list-btn i { font-size: 1rem; opacity: 0.8; }
.movie-popup-user-lists .list-btn:hover i { opacity: 1; }
.movie-popup-user-lists .list-btn .btn-text { font-weight: 500; letter-spacing: 0.3px; }
.movie-popup-user-lists .list-btn.added i { opacity: 1; }
.movie-popup-cast-section {
  margin-top: 20px;
  width: 100%;
}
.movie-popup-cast-section h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px 0;
}
.movie-popup-cast-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.movie-popup-cast-list .movie-popup-cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  text-align: center;
  flex-shrink: 0;
}
.movie-popup-cast-list .movie-popup-cast-item-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.movie-popup-cast-list .movie-popup-cast-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.movie-popup-cast-list .movie-popup-cast-item img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  background: #222;
  animation: movie-popup-image-fade 0.35s ease;
}
.movie-popup-cast-list .movie-popup-cast-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #333;
  color: #666;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.movie-popup-cast-list .movie-popup-cast-text {
  min-height: 2.4em;
  display: block;
}
.movie-popup-cast-list .movie-popup-cast-item-inner:hover .movie-popup-cast-text {
  visibility: hidden;
}
.movie-popup-cast-list .movie-popup-cast-follow-actions {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;  /* сразу под фото: 72px высота + 6px margin-bottom */
  bottom: auto;
  justify-content: center;
  align-items: center;
  min-height: 2.4em;
}
.movie-popup-cast-list .movie-popup-cast-item-inner:hover .movie-popup-cast-follow-actions {
  display: flex;
}
.movie-popup-cast-list .movie-popup-cast-follow-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.movie-popup-cast-list .movie-popup-cast-follow-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}
.movie-popup-cast-list .movie-popup-cast-follow-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.movie-popup-cast-list .movie-popup-cast-following-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.movie-popup-cast-list .movie-popup-cast-following-label i {
  color: rgba(120, 220, 120, 0.95);
  font-size: 0.7em;
}
.movie-popup-cast-list .movie-popup-cast-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.movie-popup-cast-list .movie-popup-cast-character {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}
.movie-popup-footer {
  display: block;
  flex-shrink: 0;
  padding: 20px 24px 24px;
  border-top: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 56px;
}
.movie-popup-footer:hover {
  background: rgba(255, 255, 255, 0.06);
}
.movie-popup-footer-label {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.movie-popup-footer:hover .movie-popup-footer-label {
  color: rgba(255, 255, 255, 0.85);
}