:root {
    --bg-main: #0b1020;
    --bg-secondary: #131a2f;
    --bg-card: rgba(20, 27, 49, 0.82);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-main: #ecf2ff;
    --text-muted: #a8b3cf;
    --accent: #6c7dff;
    --accent-hover: #8090ff;
    --success: #2fd18b;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(108,125,255,0.25), transparent 25%), radial-gradient(circle at bottom right, rgba(47,209,139,0.14), transparent 20%), linear-gradient(135deg, #090d18 0%, #0f1730 50%, #0b1020 100%);
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
}

a {
    color: #9db3ff;
    text-decoration: none;
}

    a:hover {
        color: #bfd0ff;
    }

.app-navbar {
    background: rgba(8, 12, 24, 0.92);
    backdrop-filter: blur(8px);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.navbar-brand {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.app-navbar .nav-link,
.app-navbar .small,
.app-navbar .btn {
    font-size: 1.05rem !important;
}

.footer-dark {
    background: rgba(8, 12, 24, 0.6);
}

.hero-panel,
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

    .hero-panel .badge {
        font-size: 1.08rem;
        padding: 0.75rem 1.15rem;
        border-radius: 999px;
    }

    .hero-panel .lead {
        font-size: 1.2rem;
        max-width: 700px;
    }

h1.display-5 {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
}

h2, .h2 {
    font-size: 2rem;
}

h3, .h3 {
    font-size: 1.55rem;
}

h4, .h4 {
    font-size: 1.35rem;
}

h5, .h5 {
    font-size: 1.2rem;
}

.movie-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .movie-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 44px rgba(0, 0, 0, 0.35);
    }

.movie-placeholder {
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108,125,255,0.35), rgba(47,209,139,0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 1rem;
    font-size: 1.15rem;
}

.movie-card h4 {
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
}

.movie-card .badge {
    font-size: 0.98rem;
    padding: 0.6em 0.85em;
}

.movie-card .btn {
    font-size: 1rem;
    padding: 0.62rem 1rem;
}

.movie-card .small,
.movie-card .text-info,
.movie-card .text-secondary-custom {
    font-size: 1rem !important;
}

.comment-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1rem;
}

.text-secondary-custom {
    color: var(--text-muted);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
}

    .btn-accent:hover {
        background: var(--accent-hover);
        color: white;
    }

.bg-accent {
    background-color: var(--accent) !important;
    color: #fff !important;
}

.form-label {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-main);
    font-size: 1rem;
    min-height: 46px;
}

    .form-control:focus,
    .form-select:focus {
        background-color: rgba(255,255,255,0.06);
        color: var(--text-main);
        border-color: var(--accent);
        box-shadow: 0 0 0 0.25rem rgba(108,125,255,0.15);
    }

    .form-control::placeholder {
        color: #8f9bbb;
    }

    /* Важно: чтобы в открытом выпадающем списке текст был виден */
    .form-select option {
        color: #111827;
        background-color: #ffffff;
    }

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: rgba(255,255,255,0.08);
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.06);
}

    .table-dark th,
    .table-dark td {
        font-size: 1rem;
    }

.alert {
    border-radius: 14px;
    font-size: 1rem;
}

.badge {
    padding: 0.6em 0.8em;
}

.link-light {
    color: #dbe5ff !important;
}

    .link-light:hover {
        color: #ffffff !important;
    }
