/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --cinema-red: #ff0000;
    --cinema-dark-red: #cc0000;
    --cinema-yellow: #ffcc00;
    --cinema-purple: #4a00e0;
    --cinema-light-purple: #8e2de2;
    --cinema-black: #000000;
    --cinema-dark-gray: #222222;
    --cinema-card: rgba(30, 30, 30, 0.95);
    --cinema-white: #ffffff;
    --cinema-gray: #aaaaaa;
    --cinema-green: #4CAF50;
    --cinema-blue: #2196F3;
    --cinema-orange: #FF9800;
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #000;
    background: linear-gradient(135deg, #000 0%, #222 100%);
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* ===== ШАПКА САЙТА ===== */
.header {
    background: rgba(30, 30, 30, 0.9);
    padding: 15px 20px;
    border-bottom: 2px solid #ffcc00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffcc00;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

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

.user-panel a, .btn {
    color: #ffcc00;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.user-panel a:hover, .btn:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.4);
}

.btn-admin {
    display: inline-block;
    background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    margin-left: 10px;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(142, 45, 226, 0.4);
}

/* ===== ЗАГОЛОВКИ ===== */
.page-title {
    text-align: center;
    margin: 25px 0;
    color: #ffcc00;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* ===== КНОПКИ ===== */
.btn-buy {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: 15px;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.btn-back {
    display: inline-block;
    background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    margin-bottom: 20px;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(74, 0, 224, 0.4);
}

/* ===== АЛЕРТЫ ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
}

.alert-success {
    background: rgba(0, 128, 0, 0.2);
    border-color: #008000;
}

.alert-info {
    background: rgba(255, 204, 0, 0.2);
    border-color: #ffcc00;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .user-panel {
        flex-direction: column;
        width: 100%;
    }

    .user-panel a, .btn {
        width: 100%;
        text-align: center;
    }

    .page-title {
        font-size: 28px;
    }
}
/* ===== СВЕТЛАЯ ТЕМА ===== */
[data-theme="light"] {
    --cinema-black: #f0f2f5;
    --cinema-dark-gray: #ffffff;
    --cinema-card: rgba(255, 255, 255, 0.97);
    --cinema-white: #1a1a1a;
    --cinema-gray: #555555;
    --cinema-yellow: #b8860b;
}

[data-theme="light"] body {
    background: #e8ecf1;
    background-image: none;
    color: #1a1a1a;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: #b8860b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="light"] .logo {
    color: #b8860b;
    text-shadow: none;
}

[data-theme="light"] .card {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #1a1a1a;
}

[data-theme="light"] .page-title {
    color: #b8860b;
    text-shadow: none;
}

[data-theme="light"] .user-panel a,
[data-theme="light"] .btn {
    color: #b8860b;
    border-color: #ff0000;
}

[data-theme="light"] .user-panel a:hover,
[data-theme="light"] .btn:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
}

[data-theme="light"] .btn-buy {
    color: #fff;
}

[data-theme="light"] .btn-back {
    color: #fff;
}

[data-theme="light"] .btn-admin {
    color: #fff;
}

[data-theme="light"] .alert {
    background: rgba(255, 0, 0, 0.08);
    border-color: #ff0000;
    color: #1a1a1a;
}