/* ======================================================= */
/* 1. ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ                             */
/* ======================================================= */
:root {
    /* --- Cyberpunk / Neon Palette --- */
    
    /* Backgrounds */
    --bg-color: #09090b;   /* Rich Black */
    --card-bg: #18181b;    /* Zinc-900 */
    --glass-bg: rgba(24, 24, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-main: #ffffff;
    --text-body: #e4e4e7;  /* Zinc-200 */
    --text-muted: #a1a1aa; /* Zinc-400 */

    /* Brand Colors (Neon) */
    --primary: #8b5cf6;       /* Violet-500 */
    --primary-hover: #7c3aed; /* Violet-600 */
    --primary-glow: rgba(139, 92, 246, 0.4);

    --secondary: #06b6d4;     /* Cyan-500 */
    --secondary-glow: rgba(6, 182, 212, 0.4);

    --accent: #f59e0b;        /* Amber-500 */
    --accent-glow: rgba(245, 158, 11, 0.4);

    /* CTA Button (Amber → Orange conversion gradient) */
    --cta-bg: linear-gradient(135deg, #f59e0b, #f97316);
    --cta-hover: linear-gradient(135deg, #d97706, #ea580c);
    --cta-glow: rgba(245, 158, 11, 0.5);

    --success: #10b981;       /* Emerald-500 */
    --danger: #ef4444;        /* Red-500 */

    /* Dimensions */
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --header-height: 80px;

    /* Skeleton */
    --skeleton-bg: #27272a;
    --skeleton-shine: #3f3f46;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
    background-attachment: fixed;
    /* Sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================= */
/* 2. ШАПКА САЙТА (HEADER)                                 */
/* ======================================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: var(--header-height);
    margin-bottom: 40px;
    
    /* Glassmorphism */
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(9, 9, 11, 0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.main-nav a {
    color: var(--text-muted);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: 0.3s;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
}

.btn-small {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ======================================================= */
/* 3. СТРАНИЦА АФИШИ (КАРТОЧКИ)                            */
/* ======================================================= */
.main-content {
    padding: 20px 20px 80px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 400px;
    backdrop-filter: blur(10px);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Theme variations */
.card-purple:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px -10px var(--primary-glow);
}

.card-gold:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px -10px var(--accent-glow);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    z-index: 1;
    pointer-events: none;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s;
}

.event-card:hover .card-img {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #222, #333);
}

.card-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.card-venue {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.btn-buy {
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-purple .btn-buy {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.card-purple .btn-buy:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 25px var(--primary-glow);
}

.card-gold .btn-buy {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.card-gold .btn-buy:hover {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-buy:hover {
    transform: translateY(-2px);
}

/* Reveal */
.card-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 20, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.reveal-text {
    color: #e4e4e7;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

@media (hover: hover) {
    .event-card:hover .card-reveal {
        opacity: 1;
        visibility: visible;
    }
}

.event-card.active .card-reveal {
    opacity: 1;
    visibility: visible;
}

/* ======================================================= */
/* 3.1 SKELETON LOADING CARDS                              */
/* ======================================================= */
.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 6px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.long {
    width: 90%;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-date {
    height: 16px;
    width: 100px;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-btn {
    height: 40px;
    width: 120px;
    background: linear-gradient(90deg, var(--skeleton-bg) 0%, var(--skeleton-shine) 50%, var(--skeleton-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 50px;
}


/* ======================================================= */
/* 4. СТРАНИЦА ВЫБОРА МЕСТ (БРОНИРОВАНИЕ)                  */
/* ======================================================= */

/* --- МАКЕТ V3 (GRID) --- */
.booking-layout-v3 {
    display: grid;
    gap: 30px;
    align-items: start;

    /* ПК: 2 колонки + Видео сверху */
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas:
        "video video"
        "left  right";
}

.area-video {
    grid-area: video;
    width: 100%;
}

.left-column {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.right-column {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Видео */
.video-wrapper {
    position: relative;
    padding-bottom: 42.85%;
    /* 21:9 на ПК */
    padding-bottom: 56.25%;
    /* 16:9 на ПК */
    height: 0;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    z-index: 1;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Инфо панель */
.event-details-panel {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.details-poster {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.details-text h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.details-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Карта зала */
.map-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    border: 2px solid #333;
    touch-action: pan-y;
    /* Фиксированная высота для единообразного отображения всех секций */
    height: 70vh;
    max-height: 700px;
    min-height: 400px;
}

/* Glow flash animation when scrolling to map */
@keyframes mapGlowFlash {
    0%   { box-shadow: var(--shadow); border-color: #333; }
    15%  { box-shadow: 0 0 18px 4px rgba(108, 92, 231, 0.7), var(--shadow); border-color: rgba(108, 92, 231, 0.8); }
    35%  { box-shadow: var(--shadow); border-color: #333; }
    50%  { box-shadow: 0 0 18px 4px rgba(108, 92, 231, 0.55), var(--shadow); border-color: rgba(108, 92, 231, 0.65); }
    70%  { box-shadow: var(--shadow); border-color: #333; }
    85%  { box-shadow: 0 0 12px 2px rgba(108, 92, 231, 0.35), var(--shadow); border-color: rgba(108, 92, 231, 0.45); }
    100% { box-shadow: var(--shadow); border-color: #333; }
}

.map-wrapper.map-glow-flash {
    animation: mapGlowFlash 1.5s ease;
}

#map-content {
    cursor: grab;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: 0 0;
}

/* Flex-колонка для SVG-режима: сцена сверху, SVG занимает оставшееся пространство */
#map-content.svg-mode {
    display: flex;
    flex-direction: column;
}

.venue-map {
    width: 100%;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
    height: auto;
}

.map-wrapper:hover .venue-map {
    opacity: 0.8;
}

/* Точки мест */
.seat-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(0, 184, 148, 0.3);
    border: 2px solid var(--success);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    box-shadow: 0 0 5px var(--success);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

@media (hover: hover) and (pointer: fine) {
    .seat-marker:hover {
        transform: translate(-50%, -50%) scale(1.4);
        background: var(--success);
        z-index: 10;
        box-shadow: 0 0 15px var(--success);
    }
}

.seat-marker:active {
    transform: translate(-50%, -50%) scale(1.2);
}

.seat-selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px var(--accent) !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
    z-index: 5;
}

.seat-taken {
    background: #444 !important;
    border-color: #555 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1) !important;
}

.seat-hold {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    animation: pulse 1.5s infinite;
}

/* ============================================
   SVG-СХЕМА ЗАЛА — стили мест
   ============================================ */
.svg-map-layer {
    width: 100%;
}

/* SVG-режим: слой заполняет оставшуюся высоту и центрирует SVG */
.svg-mode .svg-map-layer {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-map-layer svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG внутри фиксированного контейнера: вписывается по обеим осям */
.svg-mode .svg-map-layer svg {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* Текстовые метки (нумерация мест) внутри SVG */
.svg-map-layer text,
.svg-map-layer .t {
    text-anchor: middle;
    dominant-baseline: central;
    font-family: Arial, sans-serif;
    font-size: 11px;
    fill: #111111;
    pointer-events: none;
}

/* Метки рядов */
.svg-map-layer .r {
    text-anchor: middle;
    dominant-baseline: central;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    fill: #cccccc;
    pointer-events: none;
}

/* SVG-элементы мест (circle, rect, path с классом .seat) */
.svg-map-layer .seat {
    cursor: pointer;
    transition: fill 0.2s, stroke 0.2s, opacity 0.2s;
    transform-origin: center center;
    /* Умолчание: свободное место (zone-color переопределяет per-seat) */
    fill: var(--zone-color, rgba(0, 184, 148, 0.4)) !important;
    stroke: var(--zone-color, var(--success, #00b894)) !important;
    stroke-width: 1.5;
    /* Сброс div-маркерных стилей, чтобы они не трогали SVG-элементы */
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    position: static !important;
}

.svg-map-layer .seat:hover {
    fill: var(--zone-color, var(--success, #00b894)) !important;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--zone-color, var(--success, #00b894)));
}

.svg-map-layer .seat.seat-free {
    fill: var(--zone-color, rgba(0, 184, 148, 0.4)) !important;
    stroke: var(--zone-color, var(--success, #00b894)) !important;
    stroke-width: 1.5;
}

.svg-map-layer .seat.seat-selected {
    fill: var(--accent, #6c5ce7) !important;
    stroke: var(--accent, #6c5ce7) !important;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px var(--accent, #6c5ce7));
    transform: none !important; /* Не двигать SVG-круги */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.svg-map-layer .seat.seat-taken {
    fill: #444 !important;
    stroke: #555 !important;
    cursor: not-allowed;
    opacity: 0.5;
    filter: none;
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.svg-map-layer .seat.seat-hold {
    fill: var(--danger, #e74c3c) !important;
    stroke: var(--danger, #e74c3c) !important;
    animation: svgPulse 1.5s infinite;
    cursor: not-allowed;
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

@keyframes svgPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Тултип для SVG-мест через data-tooltip */
.svg-map-layer .seat[data-tooltip] {
    position: relative;
}
.svg-map-layer .seat[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: fixed;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
}

/* Легенда */
.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-dot.seat-marker {
    width: 16px !important;
    height: 16px !important;
    position: relative !important;
    transform: none !important;
    margin: 0;
    box-shadow: none;
    left: auto !important;
    top: auto !important;
}

/* Табы секций (floating внутри карты) */
.section-tabs {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 6px 10px;
    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    max-width: calc(100% - 20px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.section-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

.tab-btn-name {
    pointer-events: none;
}

.tab-btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.25s ease;
}

.tab-btn.active .tab-btn-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Сцена — отступ сверху когда видны floating tabs */
.map-wrapper.has-section-tabs #map-content {
    padding-top: 58px;
}

/* Section description info card — floating widget on the map */
.section-desc-card {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 100;
    max-width: 320px;
    min-width: 180px;
    background: rgba(20, 20, 35, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(108, 92, 231, 0.35);
    border-radius: 12px;
    padding: 14px 38px 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(108,92,231,0.15);
    animation: sectionDescFadeIn 0.3s ease;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-desc-card.section-desc-hiding {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.section-desc-card .section-desc-icon {
    flex-shrink: 0;
    color: var(--primary, #6c5ce7);
    margin-top: 1px;
}

.section-desc-card .section-desc-text {
    flex: 1;
    word-break: break-word;
}

.section-desc-card .section-desc-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.section-desc-card .section-desc-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Collapsed toggle button — small ⓘ circle */
.section-desc-toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 20, 35, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 92, 231, 0.4);
    color: var(--primary, #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    animation: sectionDescFadeIn 0.3s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    padding: 0;
}

.section-desc-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 16px rgba(108, 92, 231, 0.4);
}

@keyframes sectionDescFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .section-desc-card {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        font-size: 0.8rem;
        padding: 12px 34px 12px 14px;
    }
    .section-desc-toggle {
        bottom: 12px;
        right: 12px;
    }
}

/* Сцена */
.stage-indicator {
    width: 60%;
    margin: 0 auto 30px auto;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 4px solid var(--primary);
    border-radius: 50% 50% 0 0 / 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    position: relative;
    z-index: 1;
}

/* Placeholder when no venue is selected */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    min-height: 200px;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
}

.map-placeholder p {
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.5;
    opacity: 0.7;
}

/* Button inside map placeholder to open venue popup */
.map-placeholder-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 8px;
    background: var(--primary, #6c5ce7);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.3);
}

.map-placeholder-btn:hover {
    background: var(--primary-dark, #5a4bd1);
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(108, 92, 231, 0.5);
}

/* --- INLINE SHOWING PICKER (inside map area) --- */
.inline-showing-picker {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
    min-height: 200px;
}

.inline-picker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.inline-picker-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.inline-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 420px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.inline-picker-list::-webkit-scrollbar { width: 5px; }
.inline-picker-list::-webkit-scrollbar-track { background: transparent; }
.inline-picker-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* City group separator */
.inline-picker-city-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-picker-city-group + .inline-picker-city-group {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* City badge — colored pill with auto-assigned palette */
.inline-picker-city-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: white;
    width: fit-content;
}

.inline-picker-city-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* City color palette — auto-assigned via data-city-index */
.inline-picker-city-badge[data-city-idx="0"] { background: rgba(6, 182, 212, 0.85); }    /* Cyan */
.inline-picker-city-badge[data-city-idx="1"] { background: rgba(168, 85, 247, 0.85); }   /* Purple */
.inline-picker-city-badge[data-city-idx="2"] { background: rgba(245, 158, 11, 0.85); }   /* Amber */
.inline-picker-city-badge[data-city-idx="3"] { background: rgba(16, 185, 129, 0.85); }   /* Emerald */
.inline-picker-city-badge[data-city-idx="4"] { background: rgba(239, 68, 68, 0.85); }    /* Red */
.inline-picker-city-badge[data-city-idx="5"] { background: rgba(59, 130, 246, 0.85); }   /* Blue */

/* Card — CSS Grid for fixed stable layout */
.inline-picker-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    width: 100%;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
    text-align: left;
    color: var(--text-body);
    font-family: 'Raleway', sans-serif;
    min-height: 72px;
    align-items: center;
}

.inline-picker-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
    background: rgba(24, 24, 27, 0.9);
}

.inline-picker-card:active {
    transform: scale(0.98);
}

/* Icon — fixed column 1, spans both rows */
.inline-picker-card-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Info — column 2, row 1 */
.inline-picker-card-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inline-picker-card-venue {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inline-picker-address {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta row — column 2, row 2 */
.inline-picker-card-meta {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.inline-picker-card-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inline-picker-card-maps {
    flex-shrink: 0;
}

.inline-picker-card-maps .showing-maps-link {
    font-size: 0.75rem;
}

/* Price — column 3, spans both rows, right-aligned */
.inline-picker-card-price {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    white-space: nowrap;
    padding-left: 8px;
}

/* Mobile: stack layout on very small screens */
@media (max-width: 420px) {
    .inline-picker-card {
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto auto;
    }
    .inline-picker-card-icon {
        width: 36px;
        height: 36px;
        grid-row: 1 / 3;
    }
    .inline-picker-card-icon svg {
        width: 20px;
        height: 20px;
    }
    .inline-picker-card-price {
        grid-column: 2;
        grid-row: 3;
        justify-content: flex-start;
        padding-left: 0;
        margin-top: 2px;
    }
}

/* --- ПАНЕЛЬ СПРАВА (МОРФИНГ) --- */
.side-panel {
    position: sticky;
    top: 20px;
    z-index: 20;
    background: rgba(29, 29, 33, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 25px;
    overflow: hidden;

    /* Скрываем по умолчанию (для анимации появления на ПК) */
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
}

.side-panel.show-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Кнопка "Оплатить" */
.btn {
    display: inline-block;
    background: var(--cta-bg);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 4px 15px var(--cta-glow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: var(--cta-hover);
    box-shadow: 0 6px 20px var(--cta-glow);
}

/* Buy button wrapper: button + inline cancel X */
.buy-btn-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.buy-btn-wrapper .btn {
    flex: 1;
    border-radius: 8px 0 0 8px;
    padding-right: 16px;
}

.buy-btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s, color 0.2s;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.buy-btn-cancel:hover {
    background: var(--danger);
    color: white;
}

.buy-btn-cancel svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Форма */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.form-input.input-error {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.25);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

    /* --- АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) --- */
    @media (max-width: 900px) {
        .booking-layout-v3 {
            grid-template-columns: 1fr;
            grid-template-areas: "left" "video" "right";
            /* Карта - Видео - (Скрытая панель) */
            gap: 15px;
        }

        .video-wrapper {
            padding-bottom: 56.25%; /* 16:9 */
            border-radius: 16px;
        }

        .map-wrapper {
            height: 60vh;
            min-height: 350px;
            max-height: 600px;
            width: 100%;
            display: block;
            overflow: hidden;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }

        .venue-map {
            opacity: 1 !important;
        }

        /* Увеличенные зоны нажатия для мест */
        .seat-marker {
            width: 8px; /* Визуально меньше */
            height: 8px;
            padding: 0 !important; /* Сбрасываем возможные desktop-паддинги */
            z-index: 10; /* Убедимся, что они поверх карты */
        }
        
        /* Убираем расширенную зону клика, делаем её равной маркеру (чуть больше для комфорта - 12px) */
        .seat-marker::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 12px; /* Было 32px. Делаем чуть больше визуального (8px), чтобы можно было попасть */
            height: 12px;
            transform: translate(-50%, -50%);
            
            background: transparent;
            z-index: 20; 
            border-radius: 50%;
        }

        /* Легенда компактнее */
        .legend {
            justify-content: center;
            padding: 8px;
            gap: 12px;
            background: transparent;
            border: none;
        }
        
        .legend-item {
            font-size: 0.8rem;
        }
        
        /* Floating section tabs — mobile adjustments */
        .section-tabs {
            top: 8px;
            padding: 4px 6px;
            gap: 6px;
            border-radius: 12px;
            max-width: calc(100% - 16px);
        }
        
        .tab-btn {
            padding: 6px 10px;
            font-size: 0.78rem;
            border-radius: 8px;
            gap: 4px;
        }

        .tab-btn-badge {
            min-width: 18px;
            height: 17px;
            font-size: 0.65rem;
            padding: 0 4px;
        }

        .map-wrapper.has-section-tabs #map-content {
            padding-top: 50px;
        }
    }

    /* --- ЭЛЕМЕНТЫ УПРАВЛЕНИЯ КАРТОЙ --- */
    .map-controls {
        position: absolute;
        top: 15px;
        right: 15px;
        display: none; /* Скрыты на десктопе */
        flex-direction: column;
        gap: 8px;
        z-index: 100;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(30, 30, 35, 0.9);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.2);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: 0.2s;
    }

    .control-btn:active {
        transform: scale(0.9);
        background: var(--primary);
    }

    /* --- МОРФИНГ ПАНЕЛИ ИЗ КНОПКИ FAB (MOBILE ONLY) --- */
    @media (max-width: 900px) {
        /* Показываем кнопки зума на мобильных — сдвинуты ниже floating tabs */
        .map-controls {
            display: flex;
            top: 48px;
        }

        .side-panel {
            position: fixed;
            z-index: 2000;

            bottom: 15px;
            right: 15px;

            left: auto;
            top: auto !important;

            width: 220px;
            max-height: 60px;
            height: auto;
            /* Разрешаем контенту определять высоту, но max-height обрежет */

            border-radius: 50px;
            background: var(--success);
            box-shadow: 0 5px 20px rgba(0, 184, 148, 0.6);
            padding: 0;
            margin: 0;
            border: none;
            overflow: hidden;

            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transform: none;

            /* Анимация всех параметров */
            transition:
                width 1s cubic-bezier(0.23, 1, 0.32, 1),
                max-height 1s cubic-bezier(0.23, 1, 0.32, 1),
                /* Анимируем max-height вместо height */
                bottom 1s cubic-bezier(0.23, 1, 0.32, 1),
                right 1s cubic-bezier(0.23, 1, 0.32, 1),
                border-radius 1s ease,
                background-color 0.3s ease,
                opacity 0.3s ease,
                visibility 2s ease;
        }

        /* 2. ПАНЕЛЬ В "РАСКРЫТОМ" СОСТОЯНИИ */
        .side-panel.show-panel {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;

            bottom: 0; 
            right: 0;
            left: 0;
            margin: 0;
            width: 100%;
            max-height: 70vh;

            border-radius: 24px 24px 0 0;
            background: #1d1d21;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 25px;
            overflow-y: auto;
        }

        /* Внутренний контент панели */
        .panel-inner-content {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .side-panel.show-panel .panel-inner-content {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.2s;
        }

        /* Скрываем кнопку FAB при открытии панели */
        body.panel-open .fab-wrapper,
        body.panel-open .fab-btn {
            opacity: 0 !important;
            pointer-events: none;
            transition: none;
        }

        /* Крестик закрытия */
        .close-panel-btn {
            display: block;
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.3s ease 0.3s;
        }

        .side-panel.show-panel .close-panel-btn {
            opacity: 1;
        }

        /* FAB кнопка (поднимаем слой) */
        .fab-btn {
            z-index: 1000;
        }

        /* --- ЭФФЕКТ БЛЮРА ПРИ ОТКРЫТОЙ ПАНЕЛИ (MOBILE) --- */
        body.panel-open .site-header,
        body.panel-open .event-top-header,
        body.panel-open #video-container,
        body.panel-open .left-column,
        body.panel-open .event-details-panel {
            filter: blur(5px) brightness(0.6);
            pointer-events: none;
            transition: filter 0.4s ease;
        }

        /* Убедимся, что сама панель НЕ блюрится */
        .side-panel {
            filter: none !important;
        }
    }

/* Крестик скрыт на ПК */
@media (min-width: 901px) {
    .close-panel-btn {
        display: none;
    }
}


/* --- РЕЖИМ ФОКУСИРОВКИ (FOCUS MODE) --- */
/* Базовое состояние (чтобы работала анимация возврата) */
.site-header,
.event-top-header,
.video-wrapper,
.event-details-panel {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: blur(0) grayscale(0%);
    opacity: 1;
}

/* Активное состояние */
body.focus-mode {
    overflow-x: hidden;
}

body.focus-mode .site-header,
body.focus-mode .event-top-header,
body.focus-mode .video-wrapper,
body.focus-mode .event-details-panel {
    filter: blur(8px) grayscale(50%);
    opacity: 0.3;
    pointer-events: none;
}

/* --- ПЛАВАЮЩАЯ КНОПКА (FAB) --- */
/* Wrapper: invisible on desktop, fixed container on mobile */
.fab-wrapper {
    display: none;
}

.fab-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cta-bg);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px var(--cta-glow);
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s, background 0.3s, box-shadow 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fab-btn:active {
    transform: scale(0.95);
}

.fab-btn.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* Активное состояние FAB (Зеленый) */
.fab-btn.active-state {
    background: var(--success);
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.6);
    transform: scale(1.05);
}

.fab-btn.active-state:active {
    transform: scale(0.95);
}

/* Скрываем на ПК */
@media (min-width: 901px) {
    .fab-btn,
    .fab-wrapper {
        display: none;
    }
}

@media (max-width: 900px) {

    /* Когда на body висит класс .focus-mode (выбрано место),
       мы полностью убираем видео из потока на мобильных.
    */
    body.focus-mode .site-header,
    body.focus-mode .event-top-header,
    body.focus-mode .video-wrapper,
    body.focus-mode .event-details-panel {
        display: none !important;
    }
}

body.focus-mode .details-text {
    display: none !important;
}

/* --- Search Modal --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.85); /* Zinc-950 / 85% */
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: flex-start; /* Top aligned usually looks better for search */
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-panel {
    background: #18181b; /* Zinc-900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: block; /* Ensure panel is visible */
}

.search-modal.active .search-panel {
    transform: translateY(0) scale(1);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-title {
    color: #e4e4e7;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-close-btn {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.search-close-btn:hover {
    color: #fff;
}

.search-input-container {
    position: relative;
}

.search-icon-marker {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1.1rem;
}

.search-input-field {
    width: 100%;
    background: #27272a; /* Zinc-800 */
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 16px 16px 16px 48px;
    font-size: 1.1rem;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.search-input-field:focus {
    border-color: var(--accent, #8b5cf6);
    background: #27272a;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.search-hints {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #71717a;
}

.search-shortcut {
    font-family: monospace;
    font-size: 0.75rem;
    color: #d4d4d8;
}

@media (max-width: 768px) {
    .hint-esc {
        display: none;
    }
}

/* --- SVG Icons --- */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vertical-align: middle;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* ======================================================= */
/* 10. ФУТЕР САЙТА (FOOTER)                                */
/* ======================================================= */
.site-footer {
    margin-top: auto;
    padding: 30px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(9, 9, 11, 0.6);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #71717a; /* Zinc-500 — subtle */
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #a1a1aa; /* Zinc-400 — slightly brighter on hover */
}

.footer-copy {
    color: #52525b; /* Zinc-600 — very muted */
    font-size: 0.75rem;
    margin: 0;
}

.footer-entity {
    color: #3f3f46; /* Zinc-700 — barely visible, maximum discretion */
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    margin: 0;
}

/* ======================================================= */
/* 11. ЮРИДИЧЕСКИЕ СТРАНИЦЫ (LEGAL PAGES)                  */
/* ======================================================= */
.legal-page {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 800px;
}

.legal-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: #52525b;
    font-size: 0.8rem;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #d4d4d8; /* Zinc-300 */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section p {
    color: #a1a1aa; /* Zinc-400 */
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.legal-list li {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.legal-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #52525b;
}

/* Company data — intentionally muted to be discreet */
.legal-entity-muted {
    color: #52525b; /* Zinc-600 — very low contrast, blends in */
    font-size: 0.88rem;
}

.legal-entity-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 12px 0;
}

.legal-entity-block p {
    margin-bottom: 4px;
    color: #71717a;
    font-size: 0.85rem;
}

.legal-label {
    color: #52525b;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .legal-page-title {
        font-size: 1.6rem;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* ======================================================= */
/* SINGLE-PAGE MODE                                        */
/* Remove class "single-page-mode" from <body> to restore  */
/* the full multi-page navigation with header.             */
/* ======================================================= */
body.single-page-mode .site-header {
    display: none !important;
}

body.single-page-mode .main-content {
    padding-top: 10px;
}

/* Hero-style event title block (replaces header visually) */
.event-hero-header {
    text-align: center;
    padding: 12px 20px 10px;
    margin-bottom: 12px;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Header with PNG image: fixed 250px height, image fills the space */
.event-hero-header--has-image {
    padding: 0;
    height: 250px;
    overflow: hidden;
    background: transparent;
    /* Flexbox centering — reliable on iOS Safari (object-fit buggy on fixed-h containers) */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .event-hero-header--has-image {
        height: 100px;
    }
}

.event-hero-header-image {
    /* Natural scaling instead of object-fit: iOS Safari handles this correctly */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ======================================================= */
/* 11.5 SHOWING SELECTOR                                   */
/* ======================================================= */
.showing-selector {
    margin-bottom: 16px;
    padding: 0 4px;
}

.showing-selector-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 12px;
    text-align: center;
}

.showing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.showing-city-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.showing-city-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 4px;
}

.showing-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--text-body);
    font-family: 'Raleway', sans-serif;
    width: 100%;
}

.showing-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
}

.showing-card--active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 12px var(--primary-glow);
}

.showing-card-venue {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.showing-card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.showing-card-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Google Maps link on venue cards */
.showing-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    margin-left: 6px;
    vertical-align: middle;
    transition: color 0.2s;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.showing-maps-link:hover {
    color: #4285F4;
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
}

/* Address line */
.showing-card-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* "Choose another venue" button */
.change-venue-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-top: 6px;
    background: transparent;
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-venue-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.06);
}

@media (min-width: 600px) {
    .showing-list {
        flex-direction: row;
    }
    .showing-card {
        width: auto;
        min-width: 200px;
        flex: 1;
        max-width: 300px;
    }
}

/* ======================================================= */
/* 12. PROMOTIONAL DISCOUNT BANNER                         */
/* ======================================================= */
.promo-banner-wrapper {
    padding: 0 20px;
    margin-bottom: 8px;
}

.promo-banner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.95), rgba(24, 24, 27, 0.85));
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    background-image: linear-gradient(135deg, rgba(24, 24, 27, 0.95), rgba(24, 24, 27, 0.85)),
                      linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.15),
                0 0 60px rgba(139, 92, 246, 0.05);
}

.promo-banner-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.promo-banner-content {
    position: relative;
    padding: 24px 28px;
    z-index: 1;
}

.promo-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.promo-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.promo-banner-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

.promo-banner-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-full);
    padding: 6px 14px;
}

.promo-banner-zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.promo-zone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.promo-zone-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.promo-zone-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--glow-color, rgba(255,255,255,0.3));
}

.promo-zone-info {
    flex: 1;
    min-width: 0;
}

.promo-zone-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-zone-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.promo-price-old {
    font-size: 0.9rem;
    color: #71717a;
    text-decoration: line-through;
    font-weight: 400;
}

.promo-price-new {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.promo-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
    flex-wrap: wrap;
}

.promo-banner-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
}

/* --- Promo Banner Mobile Responsive + Accordion --- */
@media (max-width: 900px) {
    .promo-banner-wrapper {
        padding: 0 12px;
        margin-bottom: 4px;
    }

    .promo-banner-content {
        padding: 18px 16px;
    }

    .promo-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 14px;
    }

    .promo-banner-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .promo-banner-timer {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .promo-banner-zones {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }

    .promo-zone-item {
        padding: 10px;
    }

    .promo-price-new {
        font-size: 1.05rem;
    }

    .promo-banner-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .promo-banner-note {
        text-align: center;
    }

    /* Accordion trigger */
    .promo-accordion-trigger {
        cursor: pointer;
        user-select: none;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        margin-bottom: 0 !important;
        padding: 2px 0;
    }

    .promo-accordion-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .promo-accordion-chevron {
        display: block;
        color: var(--text-muted);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .promo-accordion-trigger[aria-expanded="true"] .promo-accordion-chevron {
        transform: rotate(180deg);
    }

    /* Collapsible body */
    .promo-accordion-body {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
        margin-top: 0;
    }

    .promo-accordion-body.promo-accordion-open {
        max-height: 700px;
        opacity: 1;
        margin-top: 14px;
    }

    .promo-accordion-body .promo-banner-timer {
        margin-bottom: 12px;
    }
}

/* Desktop: body always visible, chevron hidden */
@media (min-width: 901px) {
    .promo-accordion-chevron {
        display: none;
    }

    .promo-accordion-body {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        margin-top: 0;
    }

    .promo-banner-header {
        margin-bottom: 20px;
    }

    .promo-accordion-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .promo-banner-badge {
        font-size: 0.72rem;
    }

    .promo-zone-item {
        padding: 6px 8px;
        gap: 6px;
    }

    .promo-zone-color {
        width: 10px;
        height: 10px;
    }

    .promo-zone-name {
        font-size: 0.7rem;
    }

    .promo-price-old {
        font-size: 0.72rem;
    }

    .promo-price-new {
        font-size: 0.85rem;
    }
}

/* ======================================================= */
/* 13. POSTER + VIDEO PLAY BUTTON OVERLAY                  */
/* ======================================================= */
.poster-video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: default;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.poster-video-wrapper .details-poster {
    display: block;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    transition: filter 0.25s ease;
}

.poster-video-wrapper:has(.poster-play-btn:not([style*="display:none"])) {
    cursor: pointer;
}

.poster-video-wrapper:has(.poster-play-btn:not([style*="display:none"])):hover .details-poster {
    filter: brightness(0.75);
}

.poster-play-btn {
    position: absolute;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: transform 0.2s ease;
}

.poster-play-btn:hover {
    transform: scale(1.08);
}

/* Inner icon wrapper — positions ripple rings relative to the SVG center */
.poster-play-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Ripple wave animation radiating from play button */
@keyframes playBtnRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

.poster-play-icon::before,
.poster-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: playBtnRipple 2.4s ease-out infinite;
    pointer-events: none;
}

.poster-play-icon::after {
    animation-delay: 1.2s;
}

.poster-play-btn svg circle {
    transition: fill 0.2s ease;
}

.poster-play-btn:hover svg circle {
    fill: rgba(139, 92, 246, 0.75);
}

/* ======================================================= */
/* 13.5 SHOWING POPUP MODAL                                */
/* ======================================================= */
.showing-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: showing-popup-fade-in 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@keyframes showing-popup-fade-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.showing-popup-inner {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 32px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.1);
    animation: showing-popup-slide-up 0.3s ease;
}

@keyframes showing-popup-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.showing-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--text-muted, #aaa);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.showing-popup-close:hover {
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
    transform: scale(1.1);
}

.showing-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-main, #fff);
    text-align: center;
    margin: 0 0 6px;
}

.showing-popup-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted, #888);
    text-align: center;
    margin: 0 0 20px;
}

.showing-popup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showing-popup-city-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 0 2px;
    border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
    margin-bottom: 2px;
}

.showing-popup-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-body, #ddd);
    font-family: 'Raleway', sans-serif;
    width: 100%;
    text-align: left;
}

.showing-popup-card:hover {
    border-color: var(--primary, #8b5cf6);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.showing-popup-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #8b5cf6);
}

.showing-popup-card-info {
    flex: 1;
    min-width: 0;
}

.showing-popup-card-venue {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main, #fff);
    margin-bottom: 2px;
}

.showing-popup-card-date {
    font-size: 0.88rem;
    color: var(--text-muted, #999);
}

.showing-popup-card-price {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--accent, #f59e0b);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .showing-popup-inner {
        padding: 24px 16px 18px;
        border-radius: 14px;
    }
    .showing-popup-title {
        font-size: 1.25rem;
    }
    .showing-popup-card {
        padding: 12px 14px;
        gap: 10px;
    }
    .showing-popup-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* ======================================================= */
/* 14. VIDEO MODAL                                         */
/* ======================================================= */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(139, 92, 246, 0.7);
    transform: scale(1.1);
}

.video-modal-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- MOBILE POSTER SLOT --- */
/* Desktop: slot hidden (poster lives in right-column) */
.mobile-poster-slot {
    display: none;
}

@media (max-width: 900px) {
    /* Show mobile poster slot above the map */
    .mobile-poster-slot {
        display: block;
    }
    .mobile-poster-slot .poster-video-wrapper {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }
    .mobile-poster-slot .details-poster {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

    /* Hide desktop poster (in right-column) on mobile */
    .right-column .event-details-panel .poster-video-wrapper {
        display: none;
    }
    /* But keep the description text visible in right-column */
}

/* --- MOBILE FAB: full-width panel at bottom --- */
@media (max-width: 900px) {
    /* Wrapper becomes the fixed container (avoids iOS Safari overflow:visible bug on fixed elements) */
    .fab-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        overflow: visible; /* arrows poke out above — works because wrapper itself is not clipped on iOS */
    }

    /* Button fills the wrapper, no longer position:fixed itself */
    .fab-btn {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        border-radius: 0;
        padding: 16px 24px;
        font-size: 1.1rem;
        justify-content: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 -2px 15px var(--cta-glow);
        background: var(--cta-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        /* safe area for phones with home indicator */
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    /* Add bottom padding to page content so content isn't hidden behind FAB */
    .main-content {
        padding-bottom: 80px;
    }

    .fab-btn.active-state {
        background: var(--success);
    }
}

/* --- FAB MOBILE: arrows + breathing animation --- */
@keyframes fab-arrow-bounce {
    0%, 100% { transform: translateY(0);   opacity: 0.35; }
    50%       { transform: translateY(7px); opacity: 1; }
}

@keyframes fab-breath {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.93); }
}

/* Arrows: hidden on desktop, shown on mobile */
.fab-arrow {
    display: none;
}

@media (max-width: 900px) {

    /* Arrows positioned absolutely inside WRAPPER (not button) — no iOS clipping */
    .fab-arrow {
        display: inline-flex;
        position: absolute;
        color: rgba(255, 220, 160, 0.6);
        line-height: 1;
        z-index: 1101;
        pointer-events: none;
    }

    .fab-arrow-left {
        left: 22%;
        top: -28px;
        animation: fab-arrow-bounce 1.8s ease-in-out infinite;
        animation-delay: 0s;
    }

    .fab-arrow-center {
        left: 50%;
        transform: translateX(-50%);
        top: -34px;
        animation: fab-arrow-bounce 1.8s ease-in-out infinite;
        animation-delay: 0s;
        color: rgba(255, 230, 180, 0.9);
    }

    .fab-arrow-right {
        right: 22%;
        top: -28px;
        animation: fab-arrow-bounce 1.8s ease-in-out infinite;
        animation-delay: 0s;
    }

    /* Breathing animation for icon + text */
    .fab-inner-anim {
        animation: fab-breath 3s ease-in-out infinite;
        display: inline-flex;
        align-items: center;
    }

    /* Disable breathing when in active state (seat selected) */
    .fab-btn.active-state .fab-inner-anim {
        animation: none;
    }

    /* Hide arrows when in active state */
    .fab-btn.active-state ~ .fab-arrow,
    .fab-wrapper.active-state .fab-arrow {
        display: none;
    }

    /* Button content row */
    .fab-btn .fab-inner-anim {
        flex-direction: row;
        gap: 8px;
    }

    /* Wrap icon + text in a flex row */
    .fab-btn #fab-icon.fab-inner-anim,
    .fab-btn #fab-text.fab-inner-anim {
        display: inline-flex;
        align-items: center;
    }
}