* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gotham Pro', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a1a 0%, #0e1a0e 100%);
    color: #eee;
    min-height: 100vh;
}

/* военный камуфляжный фон поверх */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.05"><path fill="none" stroke="%238b5a2b" stroke-width="0.5" d="M0 0 L200 200 M200 0 L0 200 M100 0 L100 200 M0 100 L200 100"/><circle cx="100" cy="100" r="30" stroke="%238b5a2b" stroke-width="0.5" fill="none"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
}

/* шапка с логотипом */
.header {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 2px solid #bd8a3e;
    margin-bottom: 30px;
}

.logo-link {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px #ffd966);
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.header p {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 15px;
}

.badge {
    background: #2c3e2c;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-top: 15px;
    border-left: 3px solid #bd8a3e;
}

.player-section {
    background: #0f1a0f;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    margin-bottom: 35px;
    border: 1px solid #3e5a3e;
}

.video-js {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px black;
}

.series-info {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: left;
    flex-wrap: wrap;
    gap: 12px;
    background: #0c130c;
    padding: 12px 20px;
    border-radius: 40px;
}

.series-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd966;
}

.series-desc {
    font-size: 0.9rem;
    color: #bbbbaa;
}

.season-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 35px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #3e5a3e;
}


.season-btn {
    background: #1e2a1e;
    border: none;
    padding: 10px 20px;
    color: #ddd;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

/* Для спин-оффов - другой оттенок */
.season-btn.spinoff {
    background: #2a1e2a;
    border-left: 2px solid #bd8a3e;
}

.season-btn.spinoff.active {
    background: #bd8a3e;
    color: #0f1a0f;
}

.season-btn.spinoff:hover {
    background: #7a5a2a;
    color: white;
}

/* Для спин-оффов - меньший шрифт на десктопе */
@media (min-width: 1025px) {
    .season-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Адаптация для планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
    .season-nav {
        gap: 8px;
    }
    .season-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        white-space: normal;
        text-align: center;
        max-width: 140px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .season-nav {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .season-btn {
        font-size: 0.7rem;
        padding: 6px 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Для спин-оффов на мобильных - более компактно */
    .season-btn.spinoff {
        font-size: 0.65rem;
        padding: 5px 12px;
    }
}

/* Для совсем маленьких экранов (320-480px) */
@media (max-width: 480px) {
    .season-btn {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
    
    .season-btn.spinoff {
        font-size: 0.55rem;
        padding: 4px 8px;
    }
}

/* ===== СТИЛИ ДЛЯ НЕДОСТУПНЫХ СЕЗОНОВ ===== */
.season-btn.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    background: #2a2a2a;
    border-color: #5a5a5a;
    position: relative;
}

.season-btn.unavailable:hover {
    background: #2a2a2a;
    transform: none;
    box-shadow: none;
}

.season-btn.unavailable:active {
    transform: none;
}

/* Всплывающая подсказка при наведении на недоступную кнопку */
.season-btn.unavailable:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0a120a;
    color: #ffd966;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 8px;
    border: 1px solid #bd8a3e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Для мобильных устройств - чтобы подсказка не обрезалась */
@media (max-width: 768px) {
    .season-btn.unavailable:hover::after {
        white-space: normal;
        max-width: 200px;
        text-align: center;
        font-size: 0.65rem;
        padding: 5px 10px;
    }
}

/* Эффект при наведении на недоступную кнопку */
.season-btn.unavailable:hover {
    opacity: 0.6;
    cursor: default;
}

/* Стиль для заголовка текущей серии (в плеере) */
.series-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd966;
}

/* Для спин-оффов в заголовке плеера - чуть меньший шрифт */
.series-title.spinoff-title {
    font-size: 1.2rem;
}

/* Иконка спин-оффа рядом с названием */
.spinoff-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e2a1e;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #bd8a3e;
    margin-left: 12px;
    vertical-align: middle;
}

.spinoff-badge i {
    font-size: 0.8rem;
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .series-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .spinoff-badge {
        display: inline-block;
        margin-left: 8px;
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

/* Стили для активной кнопки сезона (общие) */
.season-btn.active {
    background: #bd8a3e;
    color: #0f1a0f;
    box-shadow: 0 0 8px #ffb347;
}

/* Подсказка при наведении на спин-офф */
.season-btn[data-spinoff="true"]:hover::after {
    content: attr(data-hint);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0a120a;
    color: #ffd966;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 5px;
    border: 1px solid #bd8a3e;
}

/* Контейнер для навигации с прокруткой на мобильных */
.season-nav-wrapper {
    position: relative;
}

.season-nav-scroll-hint {
    display: none;
    text-align: right;
    font-size: 0.65rem;
    color: #8aa07a;
    margin-top: 5px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .season-nav-scroll-hint {
        display: block;
    }
}

/* Стиль для эмодзи в кнопках сезонов */
.season-btn i {
    margin-right: 4px;
    font-size: 0.85rem;
}

/* Адаптация для экранов с высоким разрешением */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .season-btn {
        font-weight: 500;
    }
}

/* Улучшение читаемости для длинных названий */
@media (min-width: 769px) and (max-width: 1200px) {
    .season-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

/* Стиль для выпадающего меню на очень маленьких экранах (опционально) */
@media (max-width: 500px) {
    .season-nav {
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .season-nav::-webkit-scrollbar {
        height: 3px;
    }
    
    .season-nav::-webkit-scrollbar-track {
        background: #1c2a1c;
        border-radius: 10px;
    }
    
    .season-nav::-webkit-scrollbar-thumb {
        background: #bd8a3e;
        border-radius: 10px;
    }
}

/* ===== ОПИСАНИЕ СЕРИАЛА НА ГЛАВНОЙ ===== */
.series-description {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 24px;
    padding: 25px 30px;
    margin-bottom: 35px;
    border: 1px solid #3e5a3e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.description-title {
    font-size: 1.6rem;
    color: #ffd966;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bd8a3e;
    display: inline-block;
}

.description-title i {
    margin-right: 12px;
    color: #bd8a3e;
}

.description-content p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: justify;
}

.description-content p:first-of-type {
    font-size: 1.05rem;
    font-weight: 500;
}

.description-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #3e5a3e;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e2a1e;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #ffd966;
}

.feature i {
    color: #bd8a3e;
    font-size: 1.1rem;
}

@media (max-width: 700px) {
    .series-description {
        padding: 15px 20px;
    }
    .description-title {
        font-size: 1.3rem;
    }
    .description-content p {
        font-size: 0.9rem;
    }
    .feature {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

.page-description {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 24px;
    padding: 25px 30px;
    margin-bottom: 35px;
    border: 1px solid #3e5a3e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== АВТОВОСПРОИЗВЕДЕНИЕ ===== */
.autoplay-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e2a1e;
    padding: 6px 15px;
    border-radius: 40px;
    margin-left: auto;
}

.autoplay-label {
    font-size: 0.75rem;
    color: #aaa;
}

.autoplay-label i {
    color: #bd8a3e;
    margin-right: 4px;
}

.autoplay-timer {
    font-size: 0.75rem;
    color: #ffd966;
    background: #0a120a;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 65px;
    text-align: center;
}

/* Переключатель (switch) */
.autoplay-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.autoplay-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.autoplay-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3e5a3e;
    transition: 0.3s;
    border-radius: 34px;
}

.autoplay-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #aaa;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .autoplay-slider {
    background-color: #bd8a3e;
}

input:checked + .autoplay-slider:before {
    transform: translateX(26px);
    background-color: #0f1a0f;
}

@media (max-width: 700px) {
    .autoplay-control {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 20px;
    max-height: 380px;
    overflow-y: auto;
    padding: 8px 4px;
}

.episode-card {
    background: #1b2a1b;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.15s linear;
    border: 1px solid #3b553b;
}

.episode-card:hover {
    background: #2f442f;
    transform: translateY(-3px);
    border-color: #bd8a3e;
}

.episode-card.active-ep {
    background: #bd8a3e;
    color: #0a0f0a;
    border-color: white;
    box-shadow: 0 0 12px #ffc107;
}

.ep-num {
    font-weight: bold;
    font-size: 1.2rem;
}

.ep-name {
    font-size: 0.75rem;
    margin-top: 6px;
    opacity: 0.9;
}

.footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.8rem;
    color: #8aa07a;
    border-top: 1px solid #3e5a3e;
    padding-top: 25px;
}

.episodes-grid::-webkit-scrollbar {
    width: 6px;
}
.episodes-grid::-webkit-scrollbar-track {
    background: #1c2a1c;
    border-radius: 10px;
}
.episodes-grid::-webkit-scrollbar-thumb {
    background: #bd8a3e;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .episodes-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .logo-image { max-height: 70px; }
    .series-title { font-size: 1rem; }
}

/* ===== КОММЕНТАРИИ ===== */
.comments-section {
    background: #0f1a0f;
    border-radius: 24px;
    padding: 25px;
    margin-top: 35px;
    border: 1px solid #3e5a3e;
}

.comments-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd966;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3e5a3e;
}

.comments-count {
    background: #bd8a3e;
    color: #0f1a0f;
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 30px;
    margin-left: 12px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

#commentName {
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    color: #eee;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    width: 250px;
}

#commentName:focus {
    outline: none;
    border-color: #bd8a3e;
}

#commentText {
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    color: #eee;
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
}

#commentText:focus {
    outline: none;
    border-color: #bd8a3e;
}

.submit-comment-btn {
    background: #bd8a3e;
    color: #0f1a0f;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.submit-comment-btn:hover {
    background: #ffb347;
    transform: scale(1.02);
}

.comments-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    background: #1b2a1b;
    border-radius: 16px;
    padding: 15px;
    border-left: 4px solid #bd8a3e;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: bold;
    color: #ffd966;
    font-size: 1rem;
}

.comment-series {
    font-size: 0.7rem;
    background: #2c3e2c;
    padding: 3px 10px;
    border-radius: 20px;
    color: #aaa;
}

.comment-date {
    font-size: 0.7rem;
    color: #8aa07a;
}

.comment-text {
    color: #ddd;
    line-height: 1.4;
    word-break: break-word;
}

.comment-empty {
    text-align: center;
    color: #8aa07a;
    padding: 30px;
    font-style: italic;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}
.comments-list::-webkit-scrollbar-track {
    background: #1c2a1c;
    border-radius: 10px;
}
.comments-list::-webkit-scrollbar-thumb {
    background: #bd8a3e;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .comments-section { padding: 15px; }
    #commentName { width: 100%; }
}

/* ===== КНОПКА УДАЛЕНИЯ КОММЕНТАРИЯ ===== */
.comment-delete {
    background: none;
    border: none;
    color: #8a5a3e;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
    transition: all 0.2s;
    margin-left: auto;
}

.comment-delete:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.05);
}

/* ===== АВАТАРКИ В КОММЕНТАРИЯХ ===== */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2c3e2c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bd8a3e;
    font-size: 1.2rem;
}

.comment-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-meta {
    display: flex;
    gap: 10px;
    margin-top: 3px;
}

.comment-author {
    font-weight: bold;
    color: #ffd966;
    font-size: 0.95rem;
}

/* ===== МЕНЮ НАВИГАЦИИ ===== */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.nav-link {
    background: #1e2a1e;
    color: #ddd;
    padding: 8px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: #bd8a3e;
    color: #0f1a0f;
    transform: translateY(-2px);
}

.nav-link.active {
    background: #bd8a3e;
    color: #0f1a0f;
}

/* ===== СТРАНИЦА ГЕРОЕВ ===== */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.heroes-top-line {
    border-top: 2px solid #bd8a3e;
    width: 100%;
    margin: 15px 0 15px 0;
}

.heroes-header {
    border-bottom: none;
}

.hero-card {
    background: #0f1a0f;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #3e5a3e;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #bd8a3e;
}

.hero-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #1a2a1a;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-card:hover .hero-image img {
    transform: scale(1.05);
}

.hero-info {
    padding: 20px;
}

.hero-name {
    font-size: 1.5rem;
    color: #ffd966;
    margin-bottom: 8px;
    font-family: inherit;
}

.hero-actor {
    color: #bd8a3e;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero-role {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.hero-description {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .heroes-grid {
        grid-template-columns: 1fr;
    }
    .hero-image {
        height: 220px;
    }
}

/* ===== СТРАНИЦА МУЗЫКИ ===== */
.music-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin: 15px 0 15px 0;
}

.music-line {
    border-bottom: 2px solid #bd8a3e;
    width: 100%;
    margin: 0px 0 30px 0;
}

/* Глобальный плеер */
.global-player {
    background: #0c130c;
    border-radius: 60px;
    padding: 12px 20px;
    margin-bottom: 35px;
    border: 1px solid #3e5a3e;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.player-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.player-btn {
    background: #1e2a1e;
    border: none;
    color: #ffd966;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.player-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
    transform: scale(1.05);
}

.player-info {
    flex: 1;
    min-width: 150px;
}

.player-song {
    font-weight: bold;
    color: #ffd966;
    font-size: 0.95rem;
}

.player-artist {
    font-size: 0.75rem;
    color: #aaa;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 2;
    min-width: 200px;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: #3e5a3e;
    border-radius: 5px;
    cursor: pointer;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #bd8a3e;
    border-radius: 5px;
    transition: width 0.1s;
}

.current-time, .duration {
    font-size: 0.7rem;
    color: #aaa;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control i {
    color: #aaa;
}

#volumeSlider {
    width: 80px;
    cursor: pointer;
    background: #1e2a1e;
}

/* Сетка песен */
.music-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.music-card {
    background: #0f1a0f;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #3e5a3e;
}

.music-card:hover {
    background: #1b2a1b;
    transform: translateX(5px);
    border-color: #bd8a3e;
}

.music-card.active-music {
    background: #1e3a1e;
    border-color: #bd8a3e;
    box-shadow: 0 0 10px rgba(189, 138, 62, 0.3);
}

.music-icon {
    width: 50px;
    height: 50px;
    background: #2c3e2c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #bd8a3e;
}

.music-info {
    flex: 1;
}

.music-title {
    font-weight: bold;
    color: #ffd966;
    font-size: 1rem;
}

.music-artist {
    font-size: 0.8rem;
    color: #aaa;
    margin: 3px 0;
}

.music-desc {
    font-size: 0.75rem;
    color: #8aa07a;
}

.music-meta {
    display: flex;
    gap: 15px;
    margin-top: 6px;
    font-size: 0.7rem;
    color: #6a8a6a;
}

.music-play-btn {
    font-size: 1.5rem;
    color: #bd8a3e;
    transition: transform 0.2s;
}

.music-card:hover .music-play-btn {
    transform: scale(1.1);
}

@media (max-width: 700px) {
    .player-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .player-progress {
        width: 100%;
    }
    .volume-control {
        justify-content: flex-end;
    }
    .music-card {
        flex-wrap: wrap;
    }
    .music-play-btn {
        width: 100%;
        text-align: right;
    }
}

/* ===== ЗВЁЗДЫ ДЛЯ ОЦЕНКИ ===== */
.rating-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #3e5a3e;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-label {
    font-size: 0.85rem;
    color: #aaa;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.1s;
}

.star:hover,
.star.hover {
    color: #ffc107;
}

.star.selected {
    color: #ffc107;
}

.rating-value {
    font-size: 0.8rem;
    color: #ffd966;
    margin-left: 10px;
}

.rating-average {
    background: #1e2a1e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ffd966;
}

.rating-average i {
    margin-right: 5px;
}

/* ===== ФОРМА С ОЦЕНКОЙ ===== */
.form-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0 15px 0;
    padding: 10px 0;
    border-top: 1px solid #3e5a3e;
    border-bottom: 1px solid #3e5a3e;
}

.form-rating-label {
    font-size: 0.85rem;
    color: #aaa;
}

.form-rating-value {
    font-size: 0.8rem;
    color: #ffd966;
    background: #1e2a1e;
    padding: 4px 10px;
    border-radius: 20px;
}

.stars-container {
    display: flex;
    gap: 5px;
}

.star:hover,
.star.hover {
    color: #ffc107;
}

.star.selected {
    color: #ffc107;
}

.comment-rating {
    background: #1e2a1e;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #ffc107;
}

.comment-rating i {
    margin-right: 3px;
}

/* ===== ПРИВЕТСТВЕННЫЙ ЭКРАН ВИКТОРИНЫ ===== */
.welcome-screen {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 32px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #3e5a3e;
}

.welcome-icon {
    text-align: center;
    margin-bottom: 20px;
}

.welcome-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 2px solid #bd8a3e;
}

/* Для мобильных устройств - поменьше */
@media (max-width: 1400px) {
    .welcome-image {
        max-width: 120px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .welcome-image {
        max-width: 100px;
    }
}

.welcome-title {
    font-size: 2rem;
    color: #ffd966;
    margin-bottom: 20px;
}

.welcome-text {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.welcome-text p {
    margin-bottom: 10px;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.welcome-stats .stat {
    background: #1e2a1e;
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
}

.welcome-stats .stat i {
    color: #bd8a3e;
    font-size: 1.2rem;
}

.start-quiz-btn {
    background: #bd8a3e;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0f1a0f;
    cursor: pointer;
    transition: all 0.2s;
}

.start-quiz-btn:hover {
    background: #ffb347;
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .welcome-screen {
        padding: 30px 20px;
    }
    .welcome-title {
        font-size: 1.5rem;
    }
    .welcome-text {
        font-size: 0.95rem;
    }
    .welcome-stats {
        gap: 15px;
    }
    .welcome-stats .stat {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .start-quiz-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ===== ВИКТОРИНА ===== */
.quiz-container {
    margin: 30px 0;
}

.quiz-card {
    background: #0f1a0f;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #3e5a3e;
}

.quiz-progress {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #aaa;
}

.quiz-progress .progress-bar {
    height: 8px;
    background: #1e2a1e;
    border-radius: 10px;
    margin-top: 8px;
}

.quiz-progress .progress-fill {
    height: 100%;
    background: #bd8a3e;
    border-radius: 10px;
    transition: width 0.3s;
}

.quiz-question {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd966;
    margin-bottom: 25px;
    line-height: 1.4;
}

.quiz-question i {
    margin-right: 12px;
    color: #bd8a3e;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.quiz-option {
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    border-radius: 16px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    background: #2f442f;
    border-color: #bd8a3e;
    transform: translateX(5px);
}

.quiz-option.selected {
    background: #1e3a1e;
    border-color: #bd8a3e;
    box-shadow: 0 0 8px rgba(189, 138, 62, 0.3);
}

.option-letter {
    width: 35px;
    height: 35px;
    background: #2c3e2c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #bd8a3e;
}

.quiz-option.selected .option-letter {
    background: #bd8a3e;
    color: #0f1a0f;
}

.option-text {
    flex: 1;
    color: #ddd;
}

.check-icon {
    color: #4caf50;
    font-size: 1.2rem;
}

.quiz-line {
    border-bottom: 2px solid #bd8a3e;
    width: 100%;
    margin: 15px 0 30px 0;
}

.quiz-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.quiz-nav-btn {
    background: #1e2a1e;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    color: #ddd;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.quiz-nav-btn.primary {
    background: #bd8a3e;
    color: #0f1a0f;
}

.quiz-nav-btn.success {
    background: #2e7d32;
    color: white;
}

.quiz-nav-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Результаты */
.quiz-results {
    background: #0f1a0f;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #3e5a3e;
}

.results-header {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd966;
    text-align: center;
    margin-bottom: 20px;
}

.results-header i {
    margin-right: 12px;
    color: #ffc107;
}

.results-score {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
}

.score-number {
    font-weight: bold;
    color: #ffd966;
}

.score-total {
    color: #aaa;
}

.score-percent {
    font-size: 1.5rem;
    color: #aaa;
}

.results-message {
    text-align: center;
    font-size: 1.2rem;
    padding: 15px;
    background: #1e2a1e;
    border-radius: 40px;
    margin-bottom: 25px;
}

.results-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.result-item {
    background: #1b2a1b;
    border-radius: 16px;
    padding: 15px;
    border-left: 4px solid;
}

.result-item.correct {
    border-left-color: #4caf50;
}

.result-item.wrong {
    border-left-color: #f44336;
}

.result-question {
    font-weight: bold;
    color: #ffd966;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.result-question i {
    margin-left: auto;
    font-size: 1.1rem;
}

.result-item.correct .result-question i {
    color: #4caf50;
}

.result-item.wrong .result-question i {
    color: #f44336;
}

.result-answer {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
}

.result-explanation {
    font-size: 0.75rem;
    color: #8aa07a;
    padding-top: 8px;
    border-top: 1px solid #3e5a3e;
}

.restart-btn {
    background: #bd8a3e;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
}

.restart-btn:hover {
    background: #ffb347;
    transform: scale(1.02);
}

@media (max-width: 700px) {
    .quiz-card, .quiz-results {
        padding: 20px;
    }
    .quiz-question {
        font-size: 1.1rem;
    }
    .quiz-option {
        padding: 12px 15px;
    }
    .results-score {
        font-size: 2rem;
    }
}

/* ===== ВЫБОР УРОВНЯ ===== */
.levels-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.level-card {
    background: #0f1a0f;
    border: 2px solid #3e5a3e;
    border-radius: 24px;
    padding: 25px;
    width: 220px;
    text-align: center;
    transition: all 0.3s;
}

.level-card:not(.locked):hover {
    transform: translateY(-5px);
    border-color: #bd8a3e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.level-card.locked {
    opacity: 0.6;
    filter: grayscale(0.3);
    cursor: not-allowed;
}

.level-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.level-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd966;
    margin-bottom: 8px;
}

.level-desc {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 15px;
}

.level-requirement {
    font-size: 0.7rem;
    color: #8aa07a;
    margin-bottom: 10px;
}

.level-requirement i {
    margin-right: 5px;
}

.level-completed {
    background: #2e7d32;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-top: 10px;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e2a1e;
    padding: 5px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.level-badge .level-icon {
    font-size: 1rem;
    margin: 0;
}

.results-message.success {
    background: #1e3a1e;
    border-left-color: #4caf50;
}

.results-message.fail {
    background: #3a1e1e;
    border-left-color: #f44336;
}

.results-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== ДОПОЛНИТЕЛЬНАЯ МОБИЛЬНАЯ ОПТИМИЗАЦИЯ ===== */

/* Плавная прокрутка для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Улучшение тапов на мобильных */
button, 
.episode-card, 
.season-btn,
.nav-link,
.quiz-option,
.level-card,
.music-card,
.hero-card,
.comment-delete,
.submit-comment-btn {
    touch-action: manipulation;
}

/* Для экранов меньше 480px (маленькие телефоны) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 0 10px;
    }
    
    .nav-menu {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .nav-link i {
        font-size: 0.8rem;
    }
    
    .logo-image {
        max-height: 50px;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    .series-title {
        font-size: 0.9rem;
    }
    
    .series-desc {
        font-size: 0.75rem;
    }
    
    .season-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .episode-card {
        padding: 8px 4px;
    }
    
    .ep-num {
        font-size: 0.9rem;
    }
    
    .ep-name {
        font-size: 0.65rem;
    }
    
    /* Викторина на мобильных */
    .quiz-question {
        font-size: 1rem;
    }
    
    .quiz-option {
        padding: 10px 12px;
    }
    
    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .option-text {
        font-size: 0.85rem;
    }
    
    .quiz-nav-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Герои на мобильных */
    .hero-name {
        font-size: 1.2rem;
    }
    
    .hero-actor, .hero-role {
        font-size: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    /* Музыка на мобильных */
    .music-title {
        font-size: 0.85rem;
    }
    
    .music-artist, .music-desc, .music-meta {
        font-size: 0.7rem;
    }
    
    .music-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Плеер на мобильных */
    .global-player {
        padding: 10px;
    }
    
    .player-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .player-song {
        font-size: 0.8rem;
    }
    
    .player-artist {
        font-size: 0.65rem;
    }
}

/* Для экранов с высоким разрешением (ретина) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: crisp-edges;
    }
}

/* Улучшение читаемости на мобильных */
@media (max-width: 768px) {
    .description-content p {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .description-features {
        gap: 10px;
    }
    
    .feature {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .comments-header {
        font-size: 1.2rem;
    }
    
    .comment-author {
        font-size: 0.85rem;
    }
    
    .comment-text {
        font-size: 0.8rem;
    }
}

/* ===== МОБИЛЬНЫЙ ПЛЕЕР (исправленный) ===== */

/* Скрываем стандартный контроллер аудио */
#audioPlayer {
    display: none;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .global-player {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
        padding: 10px 15px;
        z-index: 1000;
        background: #0a120a;
        border-bottom: none;
        border-top: 1px solid #bd8a3e;
    }
    
    .player-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .player-controls {
        order: 1;
    }
    
    .player-info {
        order: 2;
        flex: 2;
        min-width: 120px;
    }
    
    .player-progress {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
    
    .volume-control {
        order: 4;
        margin-left: auto;
    }
    
    .player-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .player-song {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-artist {
        font-size: 0.65rem;
    }
    
    .current-time, .duration {
        font-size: 0.65rem;
    }
    
    #volumeSlider {
        width: 60px;
    }
    
    /* Отступ для контента, чтобы не перекрывался плеером */
    body {
        padding-bottom: 80px;
    }
    
    .footer {
        margin-bottom: 20px;
    }
}

/* Для совсем маленьких экранов */
@media (max-width: 480px) {
    .global-player {
        padding: 8px 12px;
    }
    
    .player-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .player-info {
        min-width: 100px;
    }
    
    .player-song {
        font-size: 0.7rem;
    }
    
    .player-artist {
        font-size: 0.6rem;
    }
    
    .current-time, .duration {
        font-size: 0.6rem;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    #volumeSlider {
        width: 50px;
    }
}

/* ===== АВТОРИЗАЦИЯ ===== */
.auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.auth-header-btn {
    background: #1e2a1e;
    border: 1px solid #bd8a3e;
    color: #ddd;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-header-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
}

.auth-header-btn.register {
    background: #bd8a3e;
    color: #0f1a0f;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1e2a1e;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #bd8a3e;
    z-index: 100;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details span:first-child {
    font-weight: bold;
    color: #ffd966;
    font-size: 0.85rem;
}

.user-details span:last-child {
    font-size: 0.7rem;
    color: #aaa;
}

.logout-btn {
    background: none;
    border: none;
    color: #bd8a3e;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0f1a0f;
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid #bd8a3e;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #3e5a3e;
    padding-bottom: 10px;
}

.modal-tab {
    background: none;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    color: #aaa;
}

.modal-tab.active {
    color: #ffd966;
    border-bottom: 2px solid #bd8a3e;
}

.auth-form h3 {
    color: #ffd966;
    text-align: center;
    margin-bottom: 20px;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    border-radius: 30px;
    color: #eee;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #bd8a3e;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.auth-btn.google {
    background: #1e2a1e;
    border: 1px solid #bd8a3e;
    color: #ddd;
}

.auth-divider {
    text-align: center;
    margin: 15px 0;
    color: #aaa;
}

.login-warning {
    background: #1e2a1e;
    border-left: 4px solid #bd8a3e;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 12px;
}

.login-warning a {
    color: #ffd966;
    text-decoration: none;
}

@media (max-width: 768px) {
    .auth-buttons, .user-info {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
    }
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.user-avatar {
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

#userName {
    cursor: pointer;
}

#userName:hover {
    text-decoration: underline;
}

.user-info-clickable {
    cursor: pointer;
}

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */
.profile-loading {
    text-align: center;
    padding: 50px;
    color: #ffd966;
    font-size: 1.2rem;
}

.profile-not-logged {
    text-align: center;
    padding: 50px;
    background: #0f1a0f;
    border-radius: 24px;
    margin: 30px 0;
}

.profile-not-logged i {
    font-size: 4rem;
    color: #bd8a3e;
    margin-bottom: 20px;
}

.profile-not-logged h2 {
    color: #ffd966;
    margin-bottom: 15px;
}

.profile-btn {
    margin-top: 20px;
    background: #bd8a3e;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Шапка профиля */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #0f1a0f;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bd8a3e;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    color: #ffd966;
    margin-bottom: 8px;
}

.profile-info p {
    color: #aaa;
    margin: 5px 0;
}

.logout-profile-btn {
    background: #1e2a1e;
    border: 1px solid #bd8a3e;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-profile-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
}

/* Статистика */
.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    background: #0f1a0f;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #3e5a3e;
}

.stat-card i {
    font-size: 2rem;
    color: #bd8a3e;
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd966;
}

.stat-label {
    color: #aaa;
    font-size: 0.85rem;
}

/* Вкладки */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #3e5a3e;
    flex-wrap: wrap;
}

.profile-tab {
    background: none;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    color: #aaa;
    transition: all 0.2s;
}

.profile-tab.active {
    color: #ffd966;
    border-bottom: 2px solid #bd8a3e;
}

.profile-tab:hover {
    color: #ffd966;
}

/* Контент вкладок */
.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* Список комментариев */
.profile-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-comment-item {
    background: #0f1a0f;
    border-radius: 16px;
    padding: 15px;
    border: 1px solid #3e5a3e;
}

.profile-comment-item .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-series {
    color: #bd8a3e;
    font-weight: bold;
}

.comment-date {
    color: #8aa07a;
    font-size: 0.8rem;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-link, .rating-link, .favorite-link {
    color: #bd8a3e;
    text-decoration: none;
    font-size: 0.85rem;
}

.comment-link:hover, .rating-link:hover, .favorite-link:hover {
    text-decoration: underline;
}

.comment-rating-badge {
    background: #1e2a1e;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ffc107;
}

/* Список оценок */
.profile-ratings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f1a0f;
    border-radius: 16px;
    padding: 12px 15px;
    border: 1px solid #3e5a3e;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-series {
    color: #ffd966;
}

.rating-stars i {
    color: #555;
    font-size: 0.9rem;
}

.rating-stars i.active {
    color: #ffc107;
}

/* Список избранного */
.profile-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f1a0f;
    border-radius: 16px;
    padding: 12px 15px;
    border: 1px solid #3e5a3e;
}

.favorite-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-icon {
    color: #ff4757;
}

.favorite-series {
    color: #ffd966;
}

/* Пустое состояние */
.profile-empty {
    text-align: center;
    padding: 40px;
    background: #0f1a0f;
    border-radius: 16px;
    color: #8aa07a;
}

.profile-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        flex-direction: column;
    }
    .profile-rating-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .profile-favorite-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ===== НАСТРОЙКИ ПРОФИЛЯ ===== */
.profile-settings {
    background: #0f1a0f;
    border-radius: 24px;
    padding: 25px;
}

.settings-form h3 {
    color: #ffd966;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3e5a3e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.settings-input {
    width: 100%;
    padding: 12px 15px;
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    border-radius: 12px;
    color: #eee;
    font-size: 1rem;
}

.settings-input:focus {
    outline: none;
    border-color: #bd8a3e;
}

.settings-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.7rem;
    color: #8aa07a;
}

.form-divider {
    height: 1px;
    background: #3e5a3e;
    margin: 25px 0;
}

.settings-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.settings-save-btn {
    background: #bd8a3e;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-save-btn:hover {
    background: #ffb347;
    transform: scale(1.02);
}

.settings-cancel-btn {
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    padding: 12px 25px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-cancel-btn:hover {
    background: #2c3e2c;
}

.settings-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.settings-message.success {
    background: #1e3a1e;
    color: #4caf50;
    border: 1px solid #4caf50;
}

.settings-message.error {
    background: #3a1e1e;
    color: #f44336;
    border: 1px solid #f44336;
}

/* Опасная зона */
.danger-zone {
    margin-top: 30px;
    padding: 20px;
    background: #2a1e1e;
    border-radius: 20px;
    border: 1px solid #f44336;
}

.danger-zone h3 {
    color: #f44336;
    margin-bottom: 15px;
}

.danger-zone p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.danger-btn {
    background: none;
    border: 1px solid #f44336;
    color: #f44336;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: #f44336;
    color: white;
}

/* Смена аватарки */
/* ===== СМЕНА АВАТАРКИ ===== */
.profile-avatar {
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bd8a3e;
    transition: opacity 0.2s;
}

.profile-avatar img:hover {
    opacity: 0.8;
}

.change-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #bd8a3e;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #0f1a0f;
}

.change-avatar-btn:hover {
    transform: scale(1.1);
    background: #ffb347;
}

/* Индикатор загрузки */
.profile-avatar img.loading {
    opacity: 0.5;
}

.change-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #bd8a3e;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.change-avatar-btn:hover {
    transform: scale(1.1);
    background: #ffb347;
}

/* ===== КНОПКА ИЗБРАННОГО ===== */
.series-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.favorite-btn {
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-btn i {
    color: #ff4757;
}

.favorite-btn:hover {
    background: #2c3e2c;
    transform: scale(1.02);
}

.favorite-btn.active {
    background: #bd8a3e;
    border-color: #bd8a3e;
    color: #0f1a0f;
}

.favorite-btn.active i {
    color: #ff4757;
}

@media (max-width: 700px) {
    .series-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ ===== */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1a0f;
    color: #ffd966;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #bd8a3e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 700px) {
    .toast-message {
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}

/* ===== УДАЛЕНИЕ ИЗ ИЗБРАННОГО ===== */
.favorite-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.remove-favorite-btn {
    background: none;
    border: none;
    color: #8a5a3e;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px 8px;
    border-radius: 20px;
    transition: all 0.2s;
}

.remove-favorite-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.05);
}

/* Уведомление в профиле */
.profile-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1a0f;
    color: #ffd966;
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid #bd8a3e;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.profile-toast.show {
    opacity: 1;
    visibility: visible;
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .favorite-actions {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .remove-favorite-btn {
        align-self: flex-end;
    }
}

/* ===== УДАЛЕНИЕ КОММЕНТАРИЯ ===== */
.delete-comment-btn {
    background: none;
    border: none;
    color: #8a5a3e;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-comment-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.02);
}

.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 700px) {
    .delete-comment-btn {
        margin-left: auto;
    }
}

/* ===== ВЫБОР ЦВЕТА АВАТАРКИ ===== */
.avatar-colors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 8px white;
}

.change-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #bd8a3e;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #0f1a0f;
}

.change-avatar-btn:hover {
    transform: scale(1.1);
    background: #ffb347;
}

/* Уведомление */
.profile-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1a0f;
    color: #ffd966;
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid #bd8a3e;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.profile-toast.show {
    opacity: 1;
    visibility: visible;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ЭКРАНА РЕЗУЛЬТАТОВ ВИКТОРИНЫ ===== */

/* Полноэкранный результат */
.results-fullscreen {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 32px;
    padding: 30px;
    border: 1px solid #3e5a3e;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовок результатов */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 10px;
    display: inline-block;
}

.results-header h2 {
    color: #ffd966;
    font-size: 1.8rem;
    margin-top: 10px;
}

/* Блок сводки результатов */
.results-summary {
    background: #0a120a;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

/* Круг с результатом */
.summary-score {
    margin-bottom: 20px;
}

.score-circle {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    background: #1e2a1e;
    padding: 20px 40px;
    border-radius: 60px;
    margin-bottom: 15px;
}

.score-circle .score-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffd966;
}

.score-circle .score-total {
    font-size: 2rem;
    color: #8aa07a;
}

.score-percent {
    font-size: 1.3rem;
    color: #bd8a3e;
    margin-top: 5px;
}

/* Статус прохождения */
.summary-status {
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px;
    border-radius: 60px;
    margin-bottom: 20px;
}

.summary-status.success {
    background: #1e3a1e;
    color: #4caf50;
    border: 1px solid #4caf50;
}

.summary-status.fail {
    background: #3a1e1e;
    color: #f44336;
    border: 1px solid #f44336;
}

/* Детальная информация */
.summary-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.info-item {
    background: #1e2a1e;
    padding: 8px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

.info-item i {
    color: #bd8a3e;
}

/* Сообщение об открытии нового уровня */
.next-level-unlock {
    background: #1e3a1e;
    border: 1px solid #4caf50;
    border-radius: 40px;
    padding: 12px 20px;
    margin-top: 15px;
    color: #4caf50;
    font-weight: bold;
}

.next-level-unlock i {
    margin-right: 8px;
}

/* Сообщение о провале */
.fail-message {
    background: #3a1e1e;
    border: 1px solid #f44336;
    border-radius: 40px;
    padding: 12px 20px;
    margin-top: 15px;
    color: #f44336;
}

.fail-message i {
    margin-right: 8px;
}

/* Заголовок детального разбора */
.results-details-title {
    font-size: 1.3rem;
    color: #ffd966;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bd8a3e;
    display: inline-block;
}

.results-details-title i {
    margin-right: 10px;
    color: #bd8a3e;
}

/* Список детальных результатов */
.results-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Карточка детального результата */
.result-detail-card {
    background: #0a120a;
    border-radius: 20px;
    padding: 18px;
    border-left: 5px solid;
    transition: transform 0.2s;
}

.result-detail-card:hover {
    transform: translateX(5px);
}

.result-detail-card.correct {
    border-left-color: #4caf50;
}

.result-detail-card.incorrect {
    border-left-color: #f44336;
}

/* Заголовок карточки */
.result-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.result-detail-num {
    font-weight: bold;
    color: #8aa07a;
    font-size: 0.85rem;
}

.result-detail-status {
    font-size: 0.85rem;
    font-weight: bold;
}

.result-detail-card.correct .result-detail-status {
    color: #4caf50;
}

.result-detail-card.incorrect .result-detail-status {
    color: #f44336;
}

/* Текст вопроса */
.result-detail-question {
    font-weight: bold;
    color: #ffd966;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 1rem;
}

/* Блок с ответами */
.result-detail-answer {
    background: #1e2a1e;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
}

.your-answer {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.correct-answer {
    color: #4caf50;
    font-size: 0.9rem;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #3e5a3e;
}

/* Пояснение */
.result-detail-explanation {
    font-size: 0.85rem;
    color: #8aa07a;
    line-height: 1.5;
    padding: 8px 12px;
    background: #0f1a0f;
    border-radius: 12px;
}

.result-detail-explanation i {
    margin-right: 8px;
    color: #bd8a3e;
}

/* Кнопки результатов */
.results-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.result-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.result-btn i {
    margin-right: 8px;
}

.retry-btn {
    background: #1e2a1e;
    color: #ffd966;
    border: 1px solid #bd8a3e;
}

.retry-btn:hover {
    background: #2c3e2c;
    transform: scale(1.02);
}

.menu-btn {
    background: #bd8a3e;
    color: #0f1a0f;
}

.menu-btn:hover {
    background: #ffb347;
    transform: scale(1.02);
}

.next-btn {
    background: #2e7d32;
    color: white;
}

.next-btn:hover {
    background: #3e9142;
    transform: scale(1.02);
}

/* Стили для скроллбара в списке результатов */
.results-details-list::-webkit-scrollbar {
    width: 6px;
}

.results-details-list::-webkit-scrollbar-track {
    background: #1c2a1c;
    border-radius: 10px;
}

.results-details-list::-webkit-scrollbar-thumb {
    background: #bd8a3e;
    border-radius: 10px;
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .results-fullscreen {
        padding: 20px;
    }
    
    .results-header h2 {
        font-size: 1.3rem;
    }
    
    .summary-status {
        font-size: 1rem;
        padding: 10px;
    }
    
    .score-circle .score-number {
        font-size: 2.5rem;
    }
    
    .score-circle .score-total {
        font-size: 1.5rem;
    }
    
    .result-detail-question {
        font-size: 0.9rem;
    }
    
    .your-answer, .correct-answer, .result-detail-explanation {
        font-size: 0.8rem;
    }
    
    .result-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .results-buttons {
        gap: 10px;
    }
    
    .info-item {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .summary-info {
        gap: 12px;
    }
}

/* Для планшетов */
@media (min-width: 701px) and (max-width: 1024px) {
    .results-fullscreen {
        padding: 25px;
    }
    
    .result-detail-question {
        font-size: 0.95rem;
    }
}

/* Анимация для правильных/неправильных ответов */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.result-detail-card.correct {
    animation: pulse 0.3s ease;
}

/* Иконка пояснения */
.result-detail-explanation i.fa-info-circle {
    color: #3498db;
}

/* Статистика в карточке уровня */
.level-score {
    font-size: 0.7rem;
    color: #4caf50;
    margin-top: 8px;
    background: #1e3a1e;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Прогресс-бар в викторине (улучшенный) */
.quiz-progress .progress-bar {
    height: 8px;
    background: #1e2a1e;
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #bd8a3e, #ffb347);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Level requirement mini badge */
.level-requirement-mini {
    background: #1e2a1e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #aaa;
}

/* Level badge в викторине */
.level-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Улучшенные варианты ответов */
.quiz-option.selected .option-letter {
    background: #bd8a3e;
    color: #0f1a0f;
}

.quiz-option.selected .option-text {
    color: #ffd966;
}

/* Кнопка завершения */
.quiz-nav-btn.success {
    background: #2e7d32;
    color: white;
}

.quiz-nav-btn.success:hover {
    background: #3e9142;
}

/* ===== БЛОК ОПИСАНИЯ СЕЗОНА ===== */
.season-description-block {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 24px;
    padding: 25px 30px;
    margin-bottom: 35px;
    border: 1px solid #3e5a3e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.season-description-header {
    font-size: 1.6rem;
    color: #ffd966;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bd8a3e;
    display: inline-block;
}

.season-description-header i {
    margin-right: 12px;
    color: #bd8a3e;
}

.season-description-content {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: justify;
}

.season-description-text {
    color: #ddd;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

/* Адаптация для мобильных устройств */
@media (max-width: 700px) {
    .season-description-block {
        padding: 15px 20px;
    }
    .season-description-header {
        font-size: 1.3rem;
    }
    .season-description-content {
        font-size: 0.9rem;
    }
}

/* Мета-информация сезона */
.season-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3e5a3e;
}

.season-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e2a1e;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #ffd966;
}

.season-meta-item i {
    color: #bd8a3e;
    font-size: 0.9rem;
}

/* Ряд кнопок навигации по сериям */
.series-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.series-nav-buttons {
    display: flex;
    gap: 10px;
}

.episode-nav-btn {
    background: #1e2a1e;
    border: 1px solid #3e5a3e;
    padding: 8px 16px;
    border-radius: 30px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.episode-nav-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
    border-color: #bd8a3e;
}

.episode-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .series-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    .series-nav-buttons {
        justify-content: center;
    }
    .episode-nav-btn {
        flex: 1;
        text-align: center;
    }
}

.admin-analytics-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e2a1e;
    border: 2px solid #bd8a3e;
    color: #bd8a3e;
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.admin-analytics-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
    transform: scale(1.1);
}

.reset-btn {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reset-btn i {
    color: white;
}

.reset-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Магазин жетонов */
.shop-open-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.shop-open-btn:hover {
    transform: scale(1.05);
}

.shop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.shop-modal-content {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    border: 2px solid #bd8a3e;
}

.shop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #3e5a3e;
}

.shop-modal-header h2 {
    color: #ffd700;
    margin: 0;
    font-size: 1.5rem;
}

.shop-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
}

.shop-close:hover {
    color: #ffd700;
}

.shop-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.shop-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.package-card {
    background: #1e2a1e;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #3e5a3e;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
}

.package-card.popular {
    border: 2px solid #ffd700;
    background: #2a3a2a;
}

.package-card.vip {
    background: linear-gradient(135deg, #2a1a2a, #1a0a1a);
    border-color: #9b59b6;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #1a2a1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
}

.package-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.package-tokens {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 8px;
}

.package-price {
    font-size: 1.1rem;
    color: #4caf50;
    font-weight: bold;
    margin-bottom: 5px;
}

.package-bonus {
    font-size: 0.7rem;
    color: #ff9800;
    margin-bottom: 15px;
}

.buy-btn {
    background: #bd8a3e;
    border: none;
    color: #0f1a0f;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
}

.buy-btn:hover {
    background: #ffb347;
}

.shop-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3e5a3e;
    color: #8aa07a;
    font-size: 0.8rem;
}

.shop-info i {
    margin-right: 8px;
}

.shop-info p {
    margin: 8px 0;
}

@media (max-width: 700px) {
    .shop-packages {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .package-card {
        padding: 15px;
    }
    .shop-open-btn {
        bottom: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .shop-packages {
        grid-template-columns: 1fr;
    }
}

.offer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #0f1a0f;
    border-radius: 24px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.offer-container h1 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
}
.offer-container h2 {
    color: #bd8a3e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.offer-container p, .offer-container li {
    color: #ccc;
    line-height: 1.6;
}
.offer-container ul {
    margin-left: 20px;
}
.offer-container hr {
    border-color: #3e5a3e;
    margin: 20px 0;
}
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #bd8a3e;
    text-decoration: none;
}
.back-link:hover {
    color: #ffd700;
}

.recovery-timer {
    font-size: 0.7rem;
    color: #ff9800;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #3e5a3e;
}

.lives-display.critical .recovery-timer {
    color: #ff6b6b;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== ТАБЛИЦА РЕКОРДОВ ===== */
.leaderboard-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    color: #1a2a1a;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.leaderboard-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.leaderboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.leaderboard-modal-content {
    background: linear-gradient(135deg, #0f1a0f 0%, #0a120a 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    border: 2px solid #ffd700;
    animation: modalSlideIn 0.3s ease;
}

.leaderboard-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #3e5a3e;
    background: rgba(0,0,0,0.3);
}

.leaderboard-modal-header h2 {
    color: #ffd700;
    margin: 0;
    font-size: 1.5rem;
}

.leaderboard-modal-header h2 i {
    margin-right: 10px;
}

.leaderboard-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
    transition: all 0.2s;
}

.leaderboard-close:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.leaderboard-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #3e5a3e;
    padding-bottom: 10px;
}

.leaderboard-tab {
    background: none;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    color: #aaa;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-radius: 30px;
}

.leaderboard-tab:hover {
    color: #ffd700;
}

.leaderboard-tab.active {
    background: #bd8a3e;
    color: #0f1a0f;
}

.leaderboard-content {
    min-height: 300px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #3e5a3e;
}

.leaderboard-table th {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9rem;
}

.leaderboard-table td {
    color: #ccc;
    font-size: 0.9rem;
}

.leaderboard-table tr:hover td {
    background: #1e2a1e;
}

.leaderboard-rank {
    font-weight: bold;
    width: 50px;
}

.leaderboard-rank-1 { color: #ffd700; font-size: 1.2rem; }
.leaderboard-rank-2 { color: #c0c0c0; font-size: 1.1rem; }
.leaderboard-rank-3 { color: #cd7f32; font-size: 1rem; }

.leaderboard-name {
    text-align: left;
}

.leaderboard-value {
    font-weight: bold;
    color: #4caf50;
}

.leaderboard-empty {
    text-align: center;
    color: #8aa07a;
    padding: 40px;
}

.leaderboard-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #3e5a3e;
    color: #8aa07a;
    font-size: 0.7rem;
}

.leaderboard-info i {
    margin-right: 5px;
}

.leaderboard-user-row {
    background: #1e3a1e;
    border: 1px solid #ffd700;
}

.leaderboard-user-row td {
    color: #ffd700;
    font-weight: bold;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .leaderboard-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    .leaderboard-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.change-name-btn {
    position: fixed;
    bottom: 20px;
    right: 120px;
    background: #2c3e2c;
    border: 1px solid #bd8a3e;
    color: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
    font-size: 1rem;
}

.change-name-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .change-name-btn {
        bottom: 10px;
        right: 100px;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Модальное окно */
.hero-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.hero-modal-content {
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%);
    border: 2px solid #d4af37;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: #e8e8e8;
    animation: heroModalSlideIn 0.3s ease;
}

@keyframes heroModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-modal-close {
    position: sticky;
    top: 15px;
    right: 25px;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #d4af37;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.hero-modal-close:hover {
    color: #ff4444;
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.hero-modal-header {
    display: flex;
    gap: 25px;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #d4af37;
    margin-top: -15px;
}

.hero-modal-image {
    flex-shrink: 0;
}

.hero-modal-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d4af37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-modal-title h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: #d4af37;
}

.hero-modal-actor {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 5px;
}

.hero-modal-role {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #d4af37;
}

/* Табы */
.hero-modal-tabs {
    display: flex;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #2a3a2a;
}

.hero-tab {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: #aaa;
    border-radius: 25px;
    transition: all 0.3s;
    font-family: inherit;
}

.hero-tab.active {
    background: #d4af37;
    color: #0d1a0d;
}

.hero-tab:hover:not(.active) {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

/* Контент табов */
.hero-tab-content {
    display: none;
    padding: 25px 30px;
}

.hero-tab-content.active {
    display: block;
    animation: heroFadeIn 0.3s ease;
}

.hero-tab-content p {
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
    text-indent: 20px;
    margin: 0 0 12px 0;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стиль для биографии с переносами */
.bio-text {
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
}

.bio-text br {
    display: block;
    margin-bottom: 8px;
}

/* Древо связей */
.relationships-tree {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.relation-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
}

.relation-group-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a3a2a;
}

.relation-group-title i {
    margin-right: 8px;
    color: #d4af37;
}

.relation-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.relation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.relation-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateX(5px);
}

.relation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.relation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relation-info {
    flex: 1;
}

.relation-name {
    font-size: 14px;
    font-weight: bold;
}

.relation-type {
    font-size: 11px;
    color: #d4af37;
    opacity: 0.8;
}

.no-relationships {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-size: 16px;
}

/* Адаптив для модального окна */
@media (max-width: 600px) {
    .hero-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-modal-image img {
        width: 120px;
        height: 120px;
    }
    
    .hero-modal-title h1 {
        font-size: 22px;
    }
    
    .hero-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .hero-tab-content {
        padding: 20px;
    }
    
    .relation-item {
        width: 100%;
    }
}

/* ===== ВКЛАДКА С ДЕТАЛЬНОЙ ИНФОРМАЦИЕЙ ===== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-label {
    font-size: 0.75rem;
    color: #8aa07a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-label i {
    color: #bd8a3e;
    width: 16px;
}

.detail-value {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
}

.nicknames-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nickname-tag {
    background: #1e2a1e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ffd966;
}

.detail-list {
    margin: 0;
    padding-left: 20px;
}

.detail-list li {
    margin: 4px 0;
    color: #ddd;
}

.no-details {
    text-align: center;
    padding: 40px;
    color: #8aa07a;
}

@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .detail-item.full-width {
        grid-column: span 1;
    }
}

.copyright {
    font-size: 0.7rem;
    color: #6a8a6a;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #3a5a3a;
}

.copyright-bar {
    text-align: center;
    padding: 15px;
    background: #1a2a1a;
    font-size: 0.7rem;
    color: #6a8a6a;
    border-top: 1px solid #3a5a3a;
}

.copyright-bar p {
    margin: 5px 0;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ПЛЕЕРОВ ===== */
.player-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.player-switch-btn {
    background: #2a3a2a;
    border: 1px solid #4a6a4a;
    padding: 8px 20px;
    border-radius: 30px;
    color: #c0d0c0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.player-switch-btn i {
    font-size: 16px;
}

.player-switch-btn:hover {
    background: #3a5a3a;
    border-color: #6a9a6a;
    color: white;
}

.player-switch-btn.active {
    background: #4a8a4a;
    border-color: #6aaa6a;
    color: white;
}

/* Контейнеры плееров */
.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#youtubePlayerContainer, 
#rutubePlayerContainer,
#rentvPlayerContainer {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Убедитесь, что YouTube плеер правильно отображается */
#youtubePlayerContainer iframe,
#rutubePlayerContainer iframe,
#rentvPlayerContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== СТРАНИЦА ФОТОАЛЬБОМА ===== */
.gallery-page {
    width: 100%;
    padding: 20px 0;
}

/* ===== СТРАНИЦА ГАЛЕРЕИ С БОКОВОЙ ПАНЕЛЬЮ ===== */
.gallery-page-layout {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

/* Боковая панель с категориями */
.gallery-sidebar {
    flex: 0 0 280px;
    background: #0f1a0f;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #3e5a3e;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #bd8a3e;
}

.sidebar-header h3 {
    color: #ffd966;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* КАТЕГОРИИ (унифицированные) */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #1e2a1e;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #2c3e2c;
    transform: translateX(5px);
}

.category-item.active {
    background: #bd8a3e;
    border-color: #ffd966;
}

.category-item.active i,
.category-item.active .category-name {
    color: #0f1a0f;
}

.category-item i {
    width: 24px;
    color: #bd8a3e;
    font-size: 1.1rem;
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
    color: #ddd;
}

.category-count {
    background: #2c3e2c;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #ffd966;
}

.category-item.active .category-count {
    background: #0f1a0f;
    color: #bd8a3e;
}

/* Основной контент */
.gallery-main {
    flex: 1;
    min-width: 0;
}

.current-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3e5a3e;
    flex-wrap: wrap;
    gap: 15px;
}

.current-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd966;
}

.gallery-count {
    background: #1e2a1e;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #ffd966;
}

/* СЕТКА ГАЛЕРЕИ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-card {
    background: #0f1a0f;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #3e5a3e;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #bd8a3e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a2a1a;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 50px;
    height: 50px;
    background: #bd8a3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f1a0f;
}

.gallery-info {
    padding: 12px;
}

.gallery-title {
    font-weight: bold;
    color: #ffd966;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-desc {
    font-size: 0.7rem;
    color: #aaa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    gap: 8px;
    font-size: 0.65rem;
    color: #8aa07a;
    flex-wrap: wrap;
}

/* БЕЙДЖИ */
.age-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ff4444;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.blurred-thumb img {
    filter: blur(10px);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #ffd966;
    font-size: 0.8rem;
}

/* АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 700px) {
    .gallery-page-layout {
        flex-direction: column;
    }
    
    .gallery-sidebar {
        flex: auto;
        position: static;
    }
    
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .category-item {
        flex: 1;
        min-width: calc(33.33% - 10px);
        justify-content: center;
    }
    
    .category-name {
        text-align: center;
    }
    
    .gallery-info {
        padding: 8px;
    }
    
    .gallery-title {
        font-size: 0.75rem;
    }
    
    .gallery-desc {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .category-item {
        min-width: calc(50% - 10px);
        padding: 8px 10px;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
}

/* МОДАЛЬНОЕ ОКНО ДЛЯ ПРОСМОТРА ФОТО */
.photo-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    border: none;
}

.photo-modal-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    border: 2px solid #bd8a3e;
}

.photo-modal-info {
    background: #0f1a0f;
    padding: 15px 20px;
    border-radius: 0 0 16px 16px;
}

.photo-modal-title {
    color: #ffd966;
    font-weight: bold;
    font-size: 1.1rem;
}

.photo-modal-desc {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ПУСТОЕ СОСТОЯНИЕ */
.empty-gallery,
.loading {
    text-align: center;
    padding: 60px;
    color: #8aa07a;
    background: #0f1a0f;
    border-radius: 24px;
}

.empty-gallery i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.loading {
    padding: 40px;
}

/* МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ ВОЗРАСТА */
.age-verification-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

.age-verification-icon {
    font-size: 4rem;
    color: #ff9800;
    margin-bottom: 20px;
}

.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.age-confirm-btn {
    background: #4caf50;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.age-cancel-btn {
    background: #f44336;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.verify-age-btn {
    background: #bd8a3e;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.verify-age-btn:hover {
    background: #ffb347;
}

/* ТОСТ УВЕДОМЛЕНИЯ */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1a0f;
    color: #ffd966;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #bd8a3e;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
}

/* АДМИН-ПАНЕЛЬ */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 1100px) and (max-width: 1399px) {
    .photos-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 800px) and (max-width: 1099px) {
    .photos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) and (max-width: 799px) {
    .photos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
    .photos-grid { grid-template-columns: 1fr; }
}

.admin-photo-card {
    background: #0f1a0f;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #3e5a3e;
    position: relative;
    transition: all 0.2s;
}

.admin-photo-card:hover {
    border-color: #bd8a3e;
    transform: translateY(-3px);
}

.admin-photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.admin-photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-photo-card:hover .admin-photo-actions {
    opacity: 1;
}

.admin-photo-actions button {
    background: rgba(0,0,0,0.7);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 0.7rem;
}

.admin-photo-actions .edit-btn:hover {
    background: #ffc107;
    color: #0f1a0f;
}

.admin-photo-actions .delete-btn:hover {
    background: #f44336;
}

.admin-photo-info {
    padding: 8px;
    font-size: 0.65rem;
    color: #aaa;
    text-align: center;
}

/* ===== МОДАЛЬНОЕ ОКНО ФОТО С НАВИГАЦИЕЙ ===== */
.photo-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: #0f1a0f;
    border-radius: 24px;
    border: 2px solid #bd8a3e;
    position: relative;
}

.photo-modal-container {
    position: relative;
}

.photo-modal-body {
    padding: 20px;
}

.photo-modal-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.photo-modal-info {
    background: #0f1a0f;
    padding: 15px 20px;
    border-radius: 16px;
    margin-top: 15px;
}

.photo-modal-title {
    color: #ffd966;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.photo-modal-desc {
    color: #aaa;
    font-size: 0.85rem;
}

.photo-modal-counter {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #3e5a3e;
    font-size: 0.7rem;
    color: #8aa07a;
    text-align: center;
}

/* Кнопки навигации */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid #bd8a3e;
    color: #bd8a3e;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: #bd8a3e;
    color: #0f1a0f;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.photo-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #bd8a3e;
    border: none;
    color: #0f1a0f;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-close:hover {
    background: #ffb347;
    transform: scale(1.1);
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .modal-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: -15px;
    }
    
    .next-btn {
        right: -15px;
    }
    
    .photo-modal-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .photo-modal-body {
        padding: 15px;
    }
    
    .photo-modal-img {
        max-height: 60vh;
    }
}

/* ===== КНОПКА УСТАНОВКИ ПРИЛОЖЕНИЯ В ФУТЕРЕ ===== */
.install-app-container {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.install-app-footer-btn {
    background: linear-gradient(135deg, #2a5a2a, #1a3a1a);
    border: 2px solid #bd8a3e;
    color: #ffd966;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.install-app-footer-btn:hover {
    background: linear-gradient(135deg, #3a7a3a, #2a5a2a);
    transform: scale(1.02);
    border-color: #ffd966;
    box-shadow: 0 6px 20px rgba(189, 138, 62, 0.4);
}

.install-app-footer-btn i {
    font-size: 1.2rem;
}

.install-badge {
    background: #bd8a3e;
    color: #0f1a0f;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
}

.install-hint {
    font-size: 0.7rem;
    color: #8aa07a;
    margin-top: 10px;
}

.install-hint i {
    margin-right: 5px;
    color: #bd8a3e;
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .install-app-footer-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .install-badge {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
}

/* ===== БЛОК ВРЕМЕНИ И ПОГОДЫ ===== */
.weather-time-block {
    position: absolute;
    left: 20px;
    top: 18%;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
    background: rgba(15, 26, 15, 0.7);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 60px;
    border: 1px solid #bd8a3e;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Время */
.time-block {
    text-align: center;
    border-right: 1px solid #3e5a3e;
    padding-right: 18px;
}

.time-display {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd966;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.date-display {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 2px;
}

/* Погода */
.weather-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.weather-temp {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd966;
}

.weather-location {
    font-size: 0.7rem;
    color: #aaa;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптация для мобильных */
@media (max-width: 800px) {
    .weather-time-block {
        position: static;
        transform: none;
        justify-content: center;
        margin-bottom: 15px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .time-display {
        font-size: 1.1rem;
    }
    
    .weather-icon {
        font-size: 1.3rem;
    }
    
    .weather-temp {
        font-size: 0.9rem;
    }
    
    .weather-location {
        font-size: 0.6rem;
        max-width: 100px;
    }
}

@media (max-width: 500px) {
    .weather-time-block {
        gap: 10px;
        padding: 5px 12px;
    }
    
    .time-block {
        padding-right: 10px;
    }
    
    .time-display {
        font-size: 0.9rem;
    }
    
    .date-display {
        font-size: 0.55rem;
    }
    
    .weather-icon {
        font-size: 1rem;
    }
    
    .weather-temp {
        font-size: 0.8rem;
    }
}

/* ===== ВЫБОР ГОРОДА ===== */
.city-select {
    background: #1e2a1e;
    border: 1px solid #bd8a3e;
    color: #ffd966;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    margin-left: 8px;
    transition: all 0.2s;
}

.city-select:hover {
    background: #2c3e2c;
    border-color: #ffd966;
}

.city-select:focus {
    outline: none;
    border-color: #ffd966;
    box-shadow: 0 0 5px rgba(189, 138, 62, 0.5);
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .city-select {
        font-size: 0.65rem;
        padding: 4px 8px;
        max-width: 100px;
    }
}
