html {
    color-scheme: dark;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #8b1500;
    background-image: url(../img/background-main.webp);
    background-attachment: fixed;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #ccc;
}

header {
    flex: 0 0 auto;
    justify-content: center;
}

main {
    flex: 1 0 auto;
    justify-content: center;
}

footer {
    flex: 0 0 auto;
    justify-content: center;
    padding-top: 100px;
}

.container {
    width: 60% !important;
    max-width: 1024px !important;
    margin: 0 auto 0 auto;
}

.center {
    display: flex;
    justify-content: center;
    justify-items: center;
}

@media screen and (max-width: 600px) {
    .container {max-width: 100%;}
    body {background-image: none;}
    .nav-list-item {display: block;}
    .selector-item {display: block;}
}

@media screen and (max-width: 1024px) and (min-width: 601px) {
    .container {max-width: 85%;}
}

.nav-top {
    text-align: center;
    padding: 5px 20px 10px 20px;
    border-radius: 50px;
    background-color: #610000;
    margin-top: 10px;
}

.nav-list {
    list-style: none;
    font-size: x-large;
    padding: 0;
}

.nav-list-item {
    display: inline-block;
    padding: 5px;
    margin-left: 2em;
    font-family: Helvetica;
    font-weight: 800;
}

.nav-list-item a {
    color: #d4a537;
    text-decoration: none;
}

/* Навигация (Базовый уголок, Dragon Age и т.д.) 
.nav-list-item a {
    color: #d4a537;  
}

/*.nav-list-item a:hover {
    color: #ffd118; старое
}*/

.nav-list-item a:hover {
    color: #e6b422;  /* чуть ярче при наведении */
}


.logo img {
    width: 200px;
    height: 42px;
}

.logo a {
    margin: 0 auto 0 auto;
}

.footer-content {
    width: 60%;
    height: 20px;
    margin: 0 auto;
    padding: 10px 0;
    border-top: solid 2px #707070;
}

.selector {
    max-width: 50%;
}

.selector-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    justify-items: center;
}

.selector-item {
    display: block;
    padding: 20px 30px;
    background-color: #750000;
    border-radius: 10px;
    transition: background-color 0.5s ease-in-out;
}

/*.selector-list a {
    text-decoration: none;
    color: #c5e43b;
    font-size: large;
    font-weight: 600;
    transition: color 0.5s ease-in-out;
}*/

/* Кнопки сервисов (BazaCloud, Ковбой Бибов) */
.selector-list a {
    text-decoration: none;    
    color: #d4a537;  /* тёмно-золотой */
    font-size: large;
    font-weight: 600;
    transition: color 0.5s ease-in-out;
}

.selector-item:hover {
    background-color: #660000;
    transition: background-color 0.5s ease-in-out;
}

/*.selector-item a:hover {
    color: #c696f2;
    transition: color 0.5s ease-in-out;
}*/

.selector-item a:hover {
    color: #daa520;  /* золотой поярче */
}

.shindji {
    max-height: 100vh;
    max-width: 100vw;
}

/* ===== БЛОК РАНДОМНОГО МЕМА ===== */
.meme-block {
    margin: 40px auto;
    padding: 20px;
    max-width: 90%;
}

.meme-block-inner {
    background: linear-gradient(135deg, #8b1500, #4a0a00) !important;
    border-radius: 25px;
    border: 2px solid #ff4444;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
    padding: 20px;
    text-align: center;
}

.meme-title {
    color: #ffcc00;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
    font-weight: bold;
}

.meme-subtitle {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 20px;
}

.meme-container {
    margin: 20px auto;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 10px;
}

.meme-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s;
}

.meme-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 5px 0 #8b0000;
}

.meme-btn:hover {
    transform: scale(1.05);
    background: #ff6666;
}

.meme-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #8b0000;
}

.meme-counter {
    font-size: 11px;
    color: #666;
    margin-top: 15px;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .meme-title {
        font-size: 22px;
    }
    .meme-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
    .meme-container {
        min-height: 200px;
    }
    .meme-image {
        max-height: 300px;
    }
}

/* ===== ОБВОДКИ ДЛЯ ПАНЕЛИ И КНОПОК ===== */

/* 1. Верхняя панель навигации — двойная обводка + свечение */
.nav-top {
    border: 2px solid #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5), inset 0 0 5px rgba(255, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.nav-top:hover {
    border-color: #ff8866;
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.8), inset 0 0 8px rgba(255, 68, 68, 0.5);
}

/* 2. Кнопки-сервисы (BazaCloud, Ковбой Бибов и т.д.) */
.selector-item {
    border: 2px solid #ff4444;
    box-shadow: 0 0 8px rgba(197, 228, 59, 0.4);
    transition: all 0.3s ease;
}

.selector-item:hover {
    border-color: #ff8866;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.7);
    transform: translateY(-3px);
}

/* 3. Дополнительно — обводка для логотипа (опционально) 
.logo img {
    border: 1px solid #ffaa44;
    border-radius: 10px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo img:hover {
    border-color: #ff4444;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.6);
}*/

/* 4. Адаптив для мобилок — чуть меньше обводки */
@media (max-width: 600px) {
    .selector-item {
        border-width: 1px;
    }
    .nav-top {
        border-width: 1px;
    }
}


/* ===== МЯГКАЯ ОБВОДКА ДЛЯ ТЕКСТА (не сливается с фоном) ===== */

/* Основной текст */
body, p, li, a, .footer-content, .meme-subtitle, .meme-counter {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.3);
}

/* Заголовки (чуть заметнее, но не навязчиво) */
h1, h2, h3, h4, .title, .meme-title, .nav-list-item a {
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* Кнопки и ссылки в селекторах — чтобы текст не сливался с обводкой кнопок */
.selector-item a, .meme-btn {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

/* Белый текст на светлом фоне (если есть) — дополнительная защита */
a, .nav-list-item a, .selector-list a {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Хаясака (особый случай) */
.shindji + h2, .container h2 {
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* ===== СТРАНИЦА ПРЕМЬЕРЫ (docf.html) ===== */

.film-container {
    background: linear-gradient(135deg, #1a0a0a, #2a0a0a, #0a0000);
    border: 2px solid #ff4444;
    border-radius: 30px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3), inset 0 0 20px rgba(255, 68, 68, 0.05);
    transition: all 0.3s ease;
}

.film-container:hover {
    border-color: #ff8866;
    box-shadow: 0 0 45px rgba(255, 68, 68, 0.5), inset 0 0 25px rgba(255, 68, 68, 0.1);
}

.film-title {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5), 2px 2px 4px #000;
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ff4444;
    padding-bottom: 15px;
}

.film-meta {
    text-align: center;
    color: #c5e43b;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.film-player {
    background: #000;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
    margin-bottom: 25px;
}

.film-player video {
    border-radius: 15px;
    display: block;
    width: 100%;
    height: auto;
}

.film-warning {
    background: rgba(0, 0, 0, 0.6);
    border-left: 4px solid #ff4444;
    border-right: 4px solid #ff4444;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 15px;
}

.film-warning p {
    color: #ffaa66;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.film-warning ul {
    margin: 0 0 10px 20px;
    color: #ccc;
}

.film-warning li {
    margin: 5px 0;
}

.film-warning-last {
    color: #ff8888 !important;
    font-style: italic;
    margin-top: 10px !important;
}

.film-links {
    text-align: center;
    padding: 15px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 50px;
    margin-bottom: 20px;
}

.film-links a {
    color: #c5e43b;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.film-links a:hover {
    color: #ffcc00;
    background: rgba(255, 68, 68, 0.3);
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.film-links-sep {
    color: #ff4444;
    margin: 0 10px;
}

.film-footer {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding-top: 15px;
    border-top: 1px dashed #ff4444;
    font-style: italic;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .film-container {
        padding: 15px;
        margin: 20px auto;
    }
    .film-title {
        font-size: 22px;
    }
    .film-meta {
        font-size: 14px;
    }
    .film-links a {
        display: inline-block;
        margin: 5px 0;
    }
}

/* ===== БАЗОВЫЙ УГОЛОК (base.html) ===== */

/* Баннер с базой */
.base-banner {
    text-align: center;
    margin-bottom: 30px;
}

.base-banner-inner {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f0f1a);
    padding: 30px;
    border-radius: 30px;
    border: 2px solid #ffcc00;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.3);
}

.base-banner-title {
    color: #ffcc00;
    text-shadow: 0 0 15px #ffaa00;
    font-size: 48px;
    margin: 0;
}

/* Священный текст */
.base-sacred-text {
    width: 60%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 25px;
    border-left: 5px solid #ffcc00;
}

.base-sacred-title {
    color: #ffcc66;
    text-align: center;
}

.base-sacred-content {
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    color: #ccc;
}

.base-sacred-highlight-yellow {
    color: #ffcc00;
    font-weight: bold;
}

.base-sacred-highlight-red {
    color: #ff6666;
}

.base-sacred-highlight-orange {
    color: #ffaa66;
}

.base-sacred-highlight-pink {
    color: #ff99cc;
}

.base-sacred-highlight-green {
    color: #88ff88;
}

.base-sacred-warning {
    text-align: center;
    margin-top: 15px;
    color: #888;
    font-size: 12px;
}

/* Аудиоплеер */
.base-audio-block {
    width: 60%;
    margin: 30px auto;
    text-align: center;
}

.base-audio-inner {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 15px;
    border: 1px solid #ff66aa;
}

.base-audio-title {
    color: #ff99cc;
    margin-bottom: 10px;
}

.base-audio-player {
    width: 100%;
    border-radius: 30px;
}

.base-audio-note {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

/* Видеосвятилище */
.base-video-section {
    width: 70%;
    margin: 0 auto;
}

.base-video-title {
    text-align: center;
    color: #ffcc66;
}

.base-video-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
}

.base-video-card-title {
    color: #ffaa66;
    text-align: center;
}

.base-video-card-title-pink {
    color: #ff88aa;
    text-align: center;
}

.base-video-caption {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Баннер-загадка (секс-инструктор) */
.base-mystery-banner {
    text-align: center;
    margin: 30px auto;
}

.base-mystery-link {
    text-decoration: none;
}

.base-mystery-inner {
    background: linear-gradient(45deg, #330000, #660000);
    padding: 15px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 0 30px #ff000066;
    transition: transform 0.2s;
}

.base-mystery-inner:hover {
    transform: scale(1.02);
}

.base-mystery-image {
    width: 80%;
    border-radius: 20px;
}

.base-mystery-text {
    color: #ff8888;
    margin-top: 10px;
    font-weight: bold;
}

/* Счётчик шизов */
.base-shiz-counter {
    text-align: center;
    margin: 20px auto;
}

.base-shiz-inner {
    background: #111;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    border: 1px solid #ffcc00;
}

.base-shiz-label {
    color: #ffcc00;
}

.base-shiz-number {
    color: #ff6666;
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

.base-shiz-note {
    font-size: 9px;
    color: #555;
    margin: 5px 0 0;
}

/* ===== ЛЁГКАЯ ОБВОДКА ДЛЯ ТЕКСТА (единый стиль) ===== */

body, p, li, .container, .footer-content {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4, .title {
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(0, 0, 0, 0.4);
}
/* Ссылки в навигации */
.nav-list-item a {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Кнопки и ссылки сервисов */
.selector-list a, .film-links a {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Особые случаи — чуть сильнее для лучшей читаемости */
.film-warning p, .base-sacred-warning, .film-footer {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

/* Специальный фон для FM-радио */
body.fm-page {
    background-image: url(../img/ashka3.webp);
    background-size: cover;
}