/* ========================
   Основные переменные
   ======================== */
:root {
    --color-bg: #0f0f13;           /* фон страницы */
    --color-bg-card: #1a1a24;      /* фон карточек */
    --color-bg-dark: #13131a;      /* тёмный фон секций */
    --color-primary: #e50914;      /* основной красный (как у кинотеатров) */
    --color-primary-hover: #b20710;
    --color-text: #ffffff;         /* основной текст */
    --color-text-muted: #9999aa;   /* приглушённый текст */
    --color-border: #2a2a3a;       /* границы */
    --color-gold: #f5c518;         /* золотой для рейтинга */
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1200px;
    --transition: 0.2s ease;
}

/* ========================
   Сброс и базовые стили
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================
   Контейнер
   ======================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   Кнопки
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-text);
}

/* ========================
   Шапка
   ======================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--color-text-muted);
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    background: var(--color-bg-card);
}

/* Авторизация в шапке */
.header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ========================
   Основной контент
   ======================== */
.main-content {
    min-height: calc(100vh - 64px);
}

/* ========================
   Баннер (Hero)
   ======================== */
.hero {
    background: linear-gradient(135deg, #1a0a0a 0%, #0f0f13 50%, #0a0a1a 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-muted);
}

/* ========================
   Секции
   ======================== */
.section {
    padding: 48px 0;
}

.section-dark {
    background: var(--color-bg-dark);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 28px;
}

/* ========================
   Карточки фильмов
   ======================== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(229, 9, 20, 0.2);
}

/* Постер */
.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--color-border);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: var(--color-bg-dark);
}

/* Возрастной рейтинг */
.age-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Информация о фильме */
.movie-info {
    padding: 12px;
}

.movie-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-genre {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

/* Рейтинг */
.movie-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.rating-star {
    color: var(--color-gold);
}

.rating-count {
    color: var(--color-text-muted);
    font-size: 12px;
}

/* ========================
   Расписание
   ======================== */
.schedule-day {
    margin-bottom: 32px;
}

.schedule-date {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.schedule-item:hover {
    border-color: var(--color-primary);
}

.schedule-movie {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-movie strong {
    font-size: 16px;
}

.schedule-meta {
    font-size: 13px;
    color: var(--color-text-muted);
}

.schedule-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-hall,
.schedule-format,
.schedule-lang {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.schedule-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.schedule-prices {
    font-size: 15px;
    font-weight: 600;
}

.schedule-seats {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ========================
   Пустые состояния
   ======================== */
.empty-message {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px;
    font-size: 16px;
}

/* ========================
   Подвал
   ======================== */
.site-footer {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.footer-col a,
.footer-col p {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ========================
   Адаптив
   ======================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .schedule-item { flex-direction: column; align-items: flex-start; }
    .schedule-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .main-nav { display: none; }
}

/* ========================
   Светлая тема
   ======================== */
body.light {
    --color-bg: #f4f4f8;
    --color-bg-card: #ffffff;
    --color-bg-dark: #eaeaf0;
    --color-text: #111111;
    --color-text-muted: #666677;
    --color-border: #dddde8;
}

body.light .site-header {
    background: rgba(244, 244, 248, 0.95);
}

body.light .age-badge {
    background: rgba(255,255,255,0.9);
    color: #111;
    border-color: rgba(0,0,0,0.15);
}

/* ========================
   Слайдер
   ======================== */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.slider-track {
    position: relative;
    height: 100%;
}

/* Слайд */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Размытый фон */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
}

.slide-bg-placeholder {
    background: linear-gradient(135deg, #1a0a0a, #0a0a1a);
}

/* Затемнение поверх фона */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to right,
            rgba(0,0,0,0.8) 0%,
            rgba(0,0,0,0.4) 50%,
            rgba(0,0,0,0.1) 100%
    );
}

/* Контент слайда */
.slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Постер */
.slide-poster {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.slide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: var(--color-bg-card);
}

/* Информация */
.slide-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.slide-genre {
    font-size: 13px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.slide-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slide-rating {
    color: var(--color-gold);
    font-size: 16px;
    font-weight: 600;
}

.slide-age {
    font-size: 13px;
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: rgba(255,255,255,0.7);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    margin-top: 8px;
}

/* Точки навигации */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* Стрелки */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Светлая тема — слайдер */
body.light .slide-overlay {
    background: linear-gradient(
            to right,
            rgba(255,255,255,0.7) 0%,
            rgba(255,255,255,0.3) 50%,
            rgba(255,255,255,0.0) 100%
    );
}

body.light .slide-title {
    color: #111;
    text-shadow: none;
}

body.light .slide-age {
    border-color: rgba(0,0,0,0.3);
    color: #444;
}

/* Адаптив слайдера */
@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .slide-poster { width: 130px; height: 195px; }
    .slide-title { font-size: 26px; }
    .slide-content { gap: 20px; }
}

/* ========================
   Страница фильма
   ======================== */
.movie-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.movie-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(24px) brightness(0.15);  /* было 0.35, стало 0.15 */
    transform: scale(1.1);
}

.movie-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(15,15,19,0.95));
}

.movie-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 48px 20px;
}

.movie-hero-poster {
    flex-shrink: 0;
    width: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.movie-hero-poster img {
    width: 100%;
    display: block;
}

.movie-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.movie-hero-badges {
    display: flex;
    gap: 8px;
}

.badge-genre {
    font-size: 12px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.badge-age {
    font-size: 12px;
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: rgba(255,255,255,0.7);
}

.movie-hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* Рейтинг */
.movie-hero-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    color: var(--color-border);
    font-size: 16px;
}

.rating-stars .star.filled {
    color: var(--color-gold);
}

.rating-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold);
}

.rating-total {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Мета */
.movie-hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 15px;
    font-weight: 500;
}

.movie-hero-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.movie-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.favorite-btn.active {
    color: var(--color-primary);
}

/* Актёры */
.actors-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.actor-card {
    flex-shrink: 0;
    width: 110px;
    text-align: center;
}

.actor-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
}

.actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actor-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.actor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.actor-name {
    font-size: 13px;
    font-weight: 500;
}

.actor-role {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Отзывы */
.review-form-wrap {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.review-form-wrap h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Звёздочки для ввода оценки */
.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.rating-stars-input {
    display: flex;
    gap: 4px;
}

.star-input {
    font-size: 24px;
    color: var(--color-border);
    cursor: pointer;
    transition: var(--transition);
}

.star-input:hover,
.star-input.active {
    color: var(--color-gold);
}

.rating-selected {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Список отзывов */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
    font-size: 15px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-gold);
    font-weight: 600;
}

.review-date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-left: auto;
}

.review-text {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Адаптив страницы фильма */
@media (max-width: 768px) {
    .movie-hero-content { flex-direction: column; align-items: center; text-align: center; }
    .movie-hero-poster { width: 180px; }
    .movie-hero-title { font-size: 28px; }
    .movie-hero-meta { justify-content: center; }
    .movie-hero-actions { justify-content: center; }
    .movie-hero-rating { justify-content: center; }
}

body.light .movie-hero-bg {
    filter: blur(24px) brightness(0.6);  /* светлее чем в тёмной теме */
}

body.light .movie-hero-overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(244,244,248,0.95));
}

body.light .movie-hero-title {
    color: #111;
    text-shadow: 0 2px 8px rgba(255,255,255,0.8);
}

body.light .movie-hero-desc {
    text-shadow: none;
}

body.light .badge-age {
    border-color: rgba(0,0,0,0.3);
    color: #444;
}

body.light .meta-label {
    color: #666;
}

body.light .meta-value {
    color: #111;
}

/* ========================
   Уведомления (alert)
   ======================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(99, 153, 34, 0.15);
    border-color: rgba(99, 153, 34, 0.4);
    color: #7dc832;
}

.alert-error {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
    color: #ff4d57;
}

body.light .alert-success {
    background: #eaf3de;
    border-color: #c0dd97;
    color: #3b6d11;
}

body.light .alert-error {
    background: #fcebeb;
    border-color: #f7c1c1;
    color: #a32d2d;
}

/* ========================
   Авторизация
   ======================== */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* Табы */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.auth-tab.active {
    background: var(--color-bg-card);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.auth-tab:hover:not(.active) {
    color: var(--color-text);
}

/* Форма */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.required {
    color: var(--color-primary);
}

.optional {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 12px;
}

/* Поле с кнопкой показа пароля */
.input-wrap {
    position: relative;
}

.input-wrap .form-input {
    padding-right: 44px;
}

.input-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: var(--transition);
}

.input-eye:hover {
    opacity: 1;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ========================
   Личный кабинет
   ======================== */

/* Шапка профиля */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
}

.profile-phone {
    font-size: 15px;
    color: var(--color-text-muted);
}

.profile-since {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Бонусная карточка */
.profile-bonus-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1a0a0a, #2a0a0a);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    text-align: center;
    min-width: 140px;
}

.bonus-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bonus-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    margin: 4px 0;
}

.bonus-hint {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Табы профиля */
.profile-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.profile-tab:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.profile-tab.active {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.tab-count {
    background: var(--color-border);
    color: var(--color-text-muted);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 600;
}

.tab-count-red {
    background: var(--color-primary);
    color: #fff;
}

/* Содержимое табов */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Билеты */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    display: flex;
    gap: 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    align-items: center;
    transition: var(--transition);
}

.ticket-card:hover {
    border-color: var(--color-primary);
}

.ticket-cancelled {
    opacity: 0.5;
}

.ticket-poster {
    width: 60px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-dark);
}

.ticket-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ticket-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-movie {
    font-size: 16px;
    font-weight: 600;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.ticket-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.ticket-price {
    font-size: 18px;
    font-weight: 700;
}

.ticket-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.status-paid {
    background: rgba(99,153,34,0.15);
    color: #7dc832;
}

.status-booked {
    background: rgba(245,197,24,0.15);
    color: var(--color-gold);
}

.status-cancelled {
    background: rgba(229,9,20,0.15);
    color: #ff4d57;
}

.ticket-bonus {
    font-size: 12px;
    color: var(--color-gold);
}

/* Уведомления */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
}

.notification-card.unread {
    border-color: var(--color-primary);
    background: rgba(229,9,20,0.05);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--color-text-muted);
}

.notification-date {
    font-size: 12px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Бонусы */
.bonus-summary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.bonus-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.bonus-total-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-gold);
}

.bonus-total-label {
    font-size: 16px;
    color: var(--color-text-muted);
}

.bonus-hint-text {
    font-size: 14px;
    color: var(--color-text-muted);
}

.bonus-history {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.bonus-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-bg-card);
    padding: 12px 16px;
}

.bonus-reason {
    flex: 1;
    font-size: 14px;
}

.bonus-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.bonus-amount {
    font-size: 15px;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

.bonus-amount.plus { color: #7dc832; }
.bonus-amount.minus { color: #ff4d57; }

/* Настройки */
.settings-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    max-width: 500px;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Адаптив */
@media (max-width: 768px) {
    .profile-header { flex-direction: column; text-align: center; }
    .profile-bonus-card { width: 100%; }
    .profile-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .ticket-card { flex-wrap: wrap; }
    .ticket-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ========================
   Поиск
   ======================== */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 44px;
    color: var(--color-text);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-clear {
    position: absolute;
    right: 16px;
    color: var(--color-text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--color-text);
}

.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 16px;
    color: var(--color-text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.movie-year {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Пустой результат */
.search-empty {
    text-align: center;
    padding: 60px 20px;
}

.search-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.search-empty-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-empty-hint {
    font-size: 15px;
    color: var(--color-text-muted);
}

/* Адаптив */
@media (max-width: 768px) {
    .search-filters { flex-direction: column; }
    .filter-select { width: 100%; }
}

/* ========================
   Выбор места
   ======================== */

/* Информация о сеансе */
.session-info-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}

.session-poster {
    width: 60px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.session-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session-details {
    flex: 1;
}

.session-movie-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Легенда */
.seats-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.seat-demo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Экран */
.cinema-screen {
    text-align: center;
    margin-bottom: 24px;
}

.screen-line {
    height: 4px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    border-radius: 2px;
    margin-bottom: 6px;
}

.screen-label {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 4px;
}

/* Зал */
.cinema-hall {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 16px 0;
}

.cinema-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-label {
    width: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.row-seats {
    display: flex;
    gap: 4px;
}

/* Место */
.seat {
    width: 28px;
    height: 28px;
    border-radius: 4px 4px 2px 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.seat:hover:not(:disabled) {
    transform: scale(1.2);
    z-index: 1;
}

/* Типы мест */
.seat-standard, .seat-demo.seat-standard {
    background: #378ADD;
}

.seat-comfort, .seat-demo.seat-comfort {
    background: #9FE1CB;
}

.seat-couch, .seat-demo.seat-couch {
    background: #F9CB42;
    width: 60px; /* диван шире */
}

/* Занято */
.seat-taken, .seat-demo.seat-taken {
    background: var(--color-border) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Выбрано */
.seat.selected, .seat-demo.seat-selected {
    background: var(--color-primary) !important;
    box-shadow: 0 0 8px rgba(229,9,20,0.5);
}

/* Панель итогов */
.selection-panel {
    position: sticky;
    bottom: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.selection-info {
    flex: 1;
}

.selection-empty {
    font-size: 14px;
    color: var(--color-text-muted);
}

.selection-seats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-seat-tag {
    background: rgba(229,9,20,0.15);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-seat-remove {
    cursor: pointer;
    opacity: 0.7;
    font-size: 12px;
}

.selected-seat-remove:hover {
    opacity: 1;
}

.selection-total {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-label {
    font-size: 15px;
    color: var(--color-text-muted);
}

.total-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Адаптив */
@media (max-width: 768px) {
    .seat { width: 24px; height: 24px; }
    .seat-couch { width: 52px; }
    .selection-panel { flex-direction: column; align-items: stretch; }
}

/* ========================
   Оформление билета
   ======================== */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.booking-form-wrap h1 {
    margin-bottom: 24px;
}

.booking-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.booking-block-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.booking-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.booking-hint a {
    color: var(--color-primary);
}

.booking-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.booking-user-name {
    font-size: 16px;
    font-weight: 600;
}

/* Промокод */
.promo-input-wrap {
    display: flex;
    gap: 8px;
}

/* Правая колонка */
.booking-summary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.booking-movie {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.booking-movie-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.booking-movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.booking-movie-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.booking-seats {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.booking-seats-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.booking-seat-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.booking-seat-row:last-child {
    border-bottom: none;
}

.booking-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.total-final {
    font-size: 20px;
    font-weight: 700;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.discount-value {
    color: #7dc832;
    font-weight: 600;
}

.bonus-earned-hint {
    font-size: 13px;
    color: var(--color-gold);
    text-align: center;
    margin-top: 4px;
}

/* Адаптив */
@media (max-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        position: static;
        order: -1;
    }
}

/* ========================
   Страница билета
   ======================== */
.ticket-container {
    max-width: 720px;
}

/* Успех */
.ticket-success {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
}

/* Билет */
.ticket-wrap {
    display: flex;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.ticket-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg-dark);
    border-right: 2px dashed var(--color-border);
    min-width: 140px;
}

.ticket-movie-poster {
    width: 90px;
    height: 135px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* QR заглушка */
.ticket-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.qr-inner {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            45deg,
            #000 0px, #000 4px,
            #fff 4px, #fff 8px
    );
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.qr-hint {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Правая часть билета */
.ticket-right-wrap {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-cinema {
    font-size: 13px;
    color: var(--color-text-muted);
}

.ticket-status-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(99,153,34,0.15);
    color: #7dc832;
    font-weight: 500;
}

.ticket-film-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.ticket-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ticket-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-field-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-field-value {
    font-size: 15px;
    font-weight: 600;
}

.ticket-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.ticket-price-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.ticket-price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Линия разрыва */
.ticket-tear {
    border-top: 2px dashed var(--color-border);
    margin: 4px 0;
}

/* Покупатель */
.ticket-buyer {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Итог */
.ticket-total-wrap {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.bonus-earned {
    color: var(--color-gold);
}

/* Кнопки */
.ticket-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Печать */
@media print {
    .site-header,
    .site-footer,
    .ticket-actions,
    .ticket-success { display: none; }

    .ticket-wrap {
        border: 2px solid #000;
        box-shadow: none;
    }
}

/* Адаптив */
@media (max-width: 600px) {
    .ticket-wrap { flex-direction: column; }
    .ticket-left { border-right: none; border-bottom: 2px dashed var(--color-border); flex-direction: row; justify-content: center; }
    .ticket-fields { grid-template-columns: repeat(2, 1fr); }
}