/* ========== ОСНОВНЫЕ СТИЛИ ========== */
/* Фон страницы - ОБЩИЙ для всех разрешений */
body {
    font-family: Bahnschrift Condensed, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(45deg, #330000, #660000, #990000, #cc0000, #ff0000, #ff6666, #ff9999);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
}

/* Затемнение для нижней части страницы */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== ШАПКА И НАВИГАЦИЯ ========== */
#header {
    font-size: clamp(32px, 8vw, 58px);
    display: flex;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

#header h2 {
    color: white;
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ ССЫЛКИ В ШАПКЕ ========== */
#header a[href="/"] {
    display: contents;
    text-decoration: none;
    color: inherit;
}

/* Фиксим цвет для h2 при наведении - белый */
#header a[href="/"]:hover h2 {
    color: white !important;
    transform: none !important;
}

/* Фиксим цвет для h1 при наведении */
#header a[href="/"]:hover h1 {
    color: inherit !important;
    transform: none !important;
}

/* Убираем трансформацию для всей ссылки */
#header a[href="/"]:hover {
    transform: none !important;
}

/* Горизонтальные линии */
.line {
    border: 4px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

hr {
    border: 8px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Навигация */
.navigation { 
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: clamp(18px, 4vw, 22px);
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    padding: 10px;
}

.navigation a {
    padding: 5px 20px;
    border-radius: 40px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* ========== ОБЩИЕ ССЫЛКИ ========== */
a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

a:hover {
    color: black;
    transform: scale(1.2);
}

/* ========== СЕКЦИЯ КАТЕГОРИЙ (INTRO) ========== */
.intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px;
    position: relative;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px 20px;
    border-radius: 12px;
}

.intro > div {
    display: flex;
    background-size: cover;
    width: 150px;
    height: 150px;
    filter: grayscale(1) brightness(0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Затемнение для карточек категорий */
.intro > div::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Дополнительное затемнение всей карточки */
.intro > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.intro > div:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

/* При наведении убираем дополнительное затемнение */
.intro > div:hover::before {
    opacity: 0;
}

.intro a {
    font-size: 18px;
    color: whitesmoke;
    text-shadow: 1px 1px 2px #000;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.intro a:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

/* Цвета для категорий */
.hentai { background: linear-gradient(145deg, #ff3b3b, #cc0000); }
.hardcore { background: linear-gradient(145deg, #ff5e5e, #b30000); }
.milf { background: linear-gradient(145deg, #ff6b6b, #a30000); }
.teens { background: linear-gradient(145deg, #ff7a7a, #9e0000); }
.asian { background: linear-gradient(145deg, #ff8888, #b3004d); }
.roleplay { background: linear-gradient(145deg, #ff5c5c, #990033); }
.latin { background: linear-gradient(145deg, #ff4d4d, #b3003b); }
.bigtits { background: linear-gradient(145deg, #ff6a6a, #a3003b); }
.cosplay { background: linear-gradient(145deg, #ff7575, #b30059); }
.anal { background: linear-gradient(145deg, #ff4040, #990000); }
.bgg { background: linear-gradient(145deg, #ff4f4f, #a6004f); }
.blowjob { background: linear-gradient(145deg, #ff6262, #a6001a); }
.skinny { background: linear-gradient(145deg, #ff8a8a, #b34d4d); }
.amateur { background: linear-gradient(145deg, #ff7070, #b34d5c); }
.bdsm { background: linear-gradient(145deg, #ff3333, #800000); }
.cumshots { background: linear-gradient(145deg, #ffc2c2, #ff6666); }
.masturbation { background: linear-gradient(145deg, #ff9f9f, #b34d6b); }
.gangbang { background: linear-gradient(145deg, #ff4545, #8b0000); }
.doublepenetration { background: linear-gradient(145deg, #ff5a5a, #99004d); }
.ebony { background: linear-gradient(145deg, #4a0000, #1a0000); }
.squirt { background: linear-gradient(145deg, #66ccff, #ff99cc); }
.orgy { background: linear-gradient(145deg, #ff8c8c, #b34d8c); }
.interracial { background: linear-gradient(145deg, #ff9999, #993333); }
.webcam { background: linear-gradient(145deg, #ffb3b3, #ff6666); }
.spycam { background: linear-gradient(145deg, #404040, #1a1a1a); }
.bbw { background: linear-gradient(145deg, #ff7070, #b37373); }
.swingers { background: linear-gradient(145deg, #ff6666, #b34d8c); }
.classic { background: linear-gradient(145deg, #c0c0c0, #808080); }
.stockings { background: linear-gradient(145deg, #d9b3ff, #ac39ff); }
.foot { background: linear-gradient(145deg, #ffb3d9, #ff4da6); }
.incest { background: linear-gradient(145deg, #660000, #330000); }
.thirdd { background: linear-gradient(145deg, #00b8ff, #5e35b1); }
.furry { background: linear-gradient(145deg, #ffaa66, #b36b3b); }
.lesbians { background: linear-gradient(145deg, #ffb3ff, #ff80bf); }
.shemale { background: linear-gradient(145deg, #b3b3ff, #6666ff); }
.gay { background: linear-gradient(145deg, #b3e6ff, #3399ff); }

/* ========== ИНДИКАТОРЫ ЗАГРУЗКИ ========== */
.loading-indicator,
#other-loading-indicator {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 16px;
    background: rgba(139, 0, 0, 0.8);
    border-radius: 30px;
    margin: 20px auto;
    max-width: 200px;
    border: 1px solid #ff4444;
}

.loading-indicator::after,
#other-loading-indicator::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-indicator.permanent-hidden,
#other-loading-indicator.permanent-hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Индикатор в конце списка */
.end-indicator {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes ageModalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== СЕТКА КОНТЕНТА ========== */
#Content, 
#OtherContent {
    display: grid;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    grid-template-columns: 1fr;
}

/* Затемнение для контента */
#Content::before,
#OtherContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
}

.other-content-header,
.toc {
    color: white;
    text-align: center;
    margin: 40px 0 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,0,0,0.5);
    position: relative;
    z-index: 10;
}

/* ========== ПУСТОЕ СОСТОЯНИЕ ========== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    border-radius: 12px;
}

.empty-state p {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state button {
    padding: 10px 20px;
    background: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.empty-state button:hover {
    background: darkred;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 40px;
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 90%;
}

.page-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.page-btn.active {
    background: darkred;
    color: white;
}

/* ========== РЕГИСТРАЦИЯ/НАВИГАЦИЯ ========== */
#register-navigation {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    position: relative;
    z-index: 10;
}

#register-navigation a {
    font-size: clamp(16px, 4vw, 28px);
    padding: 8px 15px;
}

#register-navigation button {
    font-size: clamp(14px, 3vw, 28px);
    padding: 8px 20px;
    background: darkred;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#register-navigation button:hover {
    background: red;
    transform: scale(1.05);
}

/* ========== POPUP 18+ ========== */
.age-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.age-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: ageModalFadeIn 0.5s ease;
    border: 1px solid #ff4444;
}

.age-modal-header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #444;
}

.age-modal-header h2 {
    color: #ff6b6b;
    font-size: 24px;
    margin-bottom: 10px;
}

.age-modal-header h1 {
    color: #ff4444;
    font-size: clamp(48px, 15vw, 72px);
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.age-modal-body {
    padding: 30px;
    text-align: center;
}

.age-modal-body p {
    color: #fff;
    font-size: 18px;
    margin: 15px 0;
}

.age-warning {
    color: #ffaa00 !important;
    font-size: 14px !important;
}

.age-warning a {
    color: #ffaa00;
    text-decoration: underline;
}

.age-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 30px 30px;
}

.age-btn {
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.age-btn-confirm {
    background: linear-gradient(145deg, #00c851, #007e33);
    color: white;
}

.age-btn-confirm:hover {
    background: linear-gradient(145deg, #007e33, #00c851);
    transform: translateY(-2px);
}

.age-btn-reject {
    background: linear-gradient(145deg, #ff4444, #cc0000);
    color: white;
}

.age-btn-reject:hover {
    background: linear-gradient(145deg, #cc0000, #ff4444);
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 25px 20px;
    margin-top: 40px;
    backdrop-filter: blur(5px);
    text-align: center;
    position: relative;
    z-index: 10;
}

footer a {
    color: #ff9999;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer p {
    margin: 10px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== МЕДИА-ЗАПРОСЫ ========== */

/* Маленькие мобильные (до 480px) */
@media (min-width: 481px) {
    #Content,
    #OtherContent {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    #Content,
    #OtherContent {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    #Content,
    #OtherContent {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    #Content,
    #OtherContent {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1300px;
    }
}

@media (min-width: 1400px) {
    #Content,
    #OtherContent {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
    }
}

/* Специальные ориентации */
@media (max-width: 900px) and (orientation: landscape) {
    #Content,
    #OtherContent {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .intro > div {
        width: 100px;
        height: 100px;
    }
}