body,
html {
    background: #111112;
    color: #f5f5f5;
    font-family: 'Montserrat', 'Arial', sans-serif;
    min-height: 100vh;
}

.navbar,
.navbar-brand,
.navbar-nav .nav-link {
    background: #111112 !important;
    color: #f5f5f5 !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand {
    color: #4a90e2 !important;
    font-size: 2rem;
    text-shadow: 0 0 8px #4a90e2cc;
}

.navbar-nav .nav-link {
    color: #f5f5f5 !important;
    margin-right: 1rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e50914 !important;
    text-shadow: 0 0 6px #e50914cc;
}

footer {
    background: #111112;
    color: #888;
    border-top: 2px solid #e50914;
    padding: 1.5rem 0 0.5rem 0;
    box-shadow: 0 -2px 16px #e5091440;
}

footer a {
    color: #e50914;
    text-decoration: underline;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px #e50914cc;
}

.container,
.container-fluid {
    background: #18181b;
    border-radius: 12px;
    box-shadow: 0 4px 32px #000a, 0 0 0 2px #e5091420;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.hero-section {
    background: #111112;
    color: #fff;
    padding: 3rem 0 2rem 0;
    box-shadow: 0 8px 32px #e5091420;
    border-radius: 0 0 32px 32px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #e50914;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fff;
    opacity: 0.85;
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px #000a;
}

.btn,
.btn-lg,
.btn-outline-light {
    background: #e50914;
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 2px 8px #e5091440;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus,
.btn-outline-light:hover {
    background: #b0060f;
    color: #fff;
    box-shadow: 0 4px 16px #e50914cc;
}

.card,
.movie-card,
.category-card {
    background: #18181b;
    border: 1px solid #e5091420;
    border-radius: 16px;
    box-shadow: 0 2px 16px #000a;
    color: #fff;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px #e50914cc;
}

.movie-poster {
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 16px #e5091440;
}

.movie-rating {
    background: #e50914;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px #e50914cc;
}

.suggestion-tag {
    background: #222226;
    color: #e50914;
    border: 1px solid #e50914;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    margin: 0.25rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.suggestion-tag:hover {
    background: #e50914;
    color: #fff;
}

.stat-number {
    color: #e50914;
    text-shadow: 0 0 8px #e50914cc;
}

::-webkit-scrollbar {
    width: 10px;
    background: #18181b;
}

::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 8px;
}

/*map markers*/
.maplibregl-popup-content {
    font-family: Arial, sans-serif;
    padding: 10px;
    max-width: 300px;
    word-wrap: break-word;
}

.maplibregl-popup-content h5 {
    margin: 0 0 10px;
    color: #587ea3;
    font-size: 16px;
}

.maplibregl-popup-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.maplibregl-popup-content a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .maplibregl-popup-content {
        max-width: 200px;
        padding: 8px;
    }

    .maplibregl-popup-content h5 {
        font-size: 14px;
    }

    .maplibregl-popup-content p {
        font-size: 12px;
    }
}

/*about.gohtml */
.container h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.container h2 {
    font-size: 1.8rem;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.container p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.container a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.container a:hover {
    text-decoration: underline;
}

.container .disclaimer p {
    margin-bottom: 0;
    color: #666;
}

.container .btn:hover {
    background-color: #2980b9;
}

/*index.html*/
.state-container {
    column-count: 4;
    /* Количество колонок по умолчанию */
    column-gap: 20px;
    /* Расстояние между колонками */
}

@media (max-width: 1200px) {
    .state-container {
        column-count: 3;
        /* Меньше колонок на средних экранах */
    }
}

@media (max-width: 992px) {
    .state-container {
        column-count: 2;
        /* Еще меньше колонок на планшетах */
    }
}

@media (max-width: 768px) {
    .state-container {
        column-count: 1;
        /* Одна колонка на мобильных устройствах */
    }
}

.state-group {
    break-inside: avoid;
    /* Запрещаем разрыв группы на две колонки */
    margin-bottom: 15px;
}

.state-group b {
    display: block;
    margin-bottom: 5px;
}

.state-link {
    display: block;
    margin-bottom: 8px;
    white-space: normal;
    word-break: break-word;
}

.card-body {
    padding: 20px;
}

.fs-5 {
    font-size: 1.25rem;
}

.container-fluid {
    padding: 0 15px;
}
