/* ========================================== */
/* ROOT VARIABLES */
/* ========================================== */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5a4bd1;
    --secondary: #f8f9fa;
    --accent: #fd79a8;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f0f2f5;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 40px rgba(108, 92, 231, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================== */
/* НАВИГАЦИЯ */
/* ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    border-bottom: 1px solid rgba(108, 92, 231, 0.08);
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark) !important;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.6rem;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.navbar .nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(108, 92, 231, 0.08);
}

.navbar .nav-link.active i {
    opacity: 1;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

/* ========================================== */
/* ПОИСК */
/* ========================================== */
.search-form {
    position: relative;
}

.search-form .form-control {
    border-radius: 50px;
    padding: 8px 20px;
    border: 2px solid #e9ecef;
    background: var(--bg-light);
    transition: var(--transition);
    width: 200px;
    font-size: 0.9rem;
}

.search-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
    width: 250px;
    background: #fff;
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    border-radius: 50px;
    padding: 6px 16px;
}

.search-form .btn:hover {
    color: var(--primary);
}

/* ========================================== */
/* КНОПКА ПОЛЬЗОВАТЕЛЯ */
/* ========================================== */
.btn-user {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-user:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

/* ========================================== */
/* ДРОПДАУН */
/* ========================================== */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    width: 20px;
    color: var(--text-light);
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.05);
    color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item .badge {
    margin-left: auto;
}

/* ========================================== */
/* HERO БАННЕР */
/* ========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #fff;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    margin-bottom: 15px;
}

.hero-badge.film { background: var(--primary); }
.hero-badge.series { background: #00b894; }
.hero-badge.cartoon { background: #fdcb6e; color: var(--text-dark); }
.hero-badge.anime { background: #e17055; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-meta span {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-hero-secondary {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: #fff;
    color: #e17055;
    border-color: #fff;
}

/* ========================================== */
/* КАРУСЕЛЬ */
/* ========================================== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    opacity: 0.7;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 0 6px;
}

.carousel-indicators .active {
    background: var(--primary);
    border-color: var(--primary);
}

/* ========================================== */
/* СЕКЦИИ */
/* ========================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-weight: 700;
    color: var(--text-dark);
}

.section-title i {
    margin-right: 10px;
}

.bg-light {
    background: var(--bg-light) !important;
}

/* ========================================== */
/* КАРТОЧКИ ФИЛЬМОВ - СЕТКА (GRID) */
/* ========================================== */

.movie-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.movie-poster {
    position: relative;
    padding-top: 145%;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-overlay .btn {
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.movie-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.movie-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

.movie-type.film { background: var(--primary); }
.movie-type.series { background: #00b894; }
.movie-type.cartoon { background: #fdcb6e; color: var(--text-dark); }
.movie-type.anime { background: #e17055; }

.movie-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.4rem;
}

.movie-meta {
    font-size: 0.72rem;
    color: var(--text-light);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.movie-meta i {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* Скрытые элементы для сетки */
.movie-meta-list {
    display: none !important;
}
.movie-card .grid-meta {
    display: flex !important;
}

/* ========================================== */
/* КАРТОЧКИ ФИЛЬМОВ - СПИСОК (LIST) */
/* ========================================== */

.movie-card-list {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    min-height: 180px;
    border: 1px solid #f0f2f5;
}

.movie-card-list:hover {
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.10);
    border-color: #e9ecef;
    transform: none;
}

/* Постер в списке */
.movie-card-list .movie-poster {
    width: 130px;
    min-height: 180px;
    flex-shrink: 0;
    padding-top: 0;
    background: #f8f9fa;
    position: relative;
}

.movie-card-list .movie-poster img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информационная часть в списке */
.movie-card-list .movie-info {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
}

.movie-card-list .movie-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 4px 0;
    line-height: 1.3;
    min-height: unset;
    -webkit-line-clamp: 1;
}

/* Рейтинг и тип в списке */
.movie-card-list .movie-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.movie-card-list .movie-type {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Сетка мета-информации в списке */
.movie-meta-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
    margin: 6px 0 4px 0;
}

.movie-meta-list .movie-detail-row {
    display: flex;
    gap: 6px;
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 2px 0;
}

.movie-meta-list .detail-label {
    color: #6c757d;
    min-width: 70px;
    font-weight: 500;
    flex-shrink: 0;
}

.movie-meta-list .detail-value {
    color: #2d3436;
    font-weight: 400;
}

/* Описание в списке */
.movie-meta-list .movie-desc {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #495057;
    line-height: 1.5;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #6c5ce7;
}

.movie-card-list .grid-meta {
    display: none !important;
}

.movie-card-list .movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.movie-card-list:hover .movie-overlay {
    opacity: 1;
}

.movie-card-list .movie-overlay .btn {
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.75rem;
}

.movie-card-list .movie-meta {
    display: none !important;
}
/* ========================================== */
/* КЛИКАБЕЛЬНЫЕ ЖАНРЫ */
/* ========================================== */

.genres-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 12px 0 8px;
}

.genres-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #636e72;
    margin-right: 4px;
}

.genres-label i {
    margin-right: 4px;
    color: #6c5ce7;
}

.genre-link {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    text-decoration: none;
    transition: all 0.25s ease;
}

.genre-link:hover {
    background: #6c5ce7;
    color: #fff;
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
}

/* ========================================== */
/* ЖАНРЫ В КАРТОЧКАХ СПИСКА */
/* ========================================== */

.movie-card-list .genres-section {
    margin: 4px 0 0;
}

.movie-card-list .genre-link {
    font-size: 0.7rem;
    padding: 2px 10px;
}

/* ========================================== */
/* АДАПТИВНОСТЬ */
/* ========================================== */

@media (max-width: 768px) {
    .genres-section {
        gap: 4px;
    }
    
    .genre-link {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
}

/* ========================================== */
/* АДАПТИВНОСТЬ */
/* ========================================== */

@media (max-width: 992px) {
    .movie-card-list .movie-poster {
        width: 110px;
        min-height: 160px;
    }
    
    .movie-card-list .movie-title {
        font-size: 0.95rem;
    }
    
    .movie-meta-list {
        grid-template-columns: 1fr;
        gap: 1px 0;
    }
    
    .movie-meta-list .movie-detail-row {
        font-size: 0.78rem;
    }
    
    .movie-meta-list .movie-desc {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .movie-card-list {
        flex-direction: column;
        min-height: unset;
    }

    .movie-card-list .movie-poster {
        width: 100%;
        min-height: 180px;
        padding-top: 56.25%;
    }

    .movie-card-list .movie-poster img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }

    .movie-card-list .movie-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .movie-meta-list {
        grid-template-columns: 1fr;
        gap: 1px 0;
    }

    .movie-meta-list .movie-detail-row {
        font-size: 0.78rem;
    }

    .movie-meta-list .movie-desc {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .movie-card .movie-poster {
        padding-top: 130%;
    }
    
    .movie-title {
        font-size: 0.78rem;
        min-height: 2rem;
    }
    
    .movie-meta {
        font-size: 0.65rem;
        gap: 6px;
    }
    
    .movie-card-list .movie-poster {
        min-height: 140px;
    }
    
    .movie-card-list .movie-info {
        padding: 10px 12px;
    }
}
/* ========================================== */
/* КАРТОЧКИ НОВОСТЕЙ */
/* ========================================== */
.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--bg-light);
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}

.news-body {
    padding: 18px;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-text {
    font-size: 0.9rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================== */
/* КАТЕГОРИИ */
/* ========================================== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    min-height: 140px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    color: var(--primary);
}

.category-card i {
    margin-bottom: 10px;
    color: var(--primary);
}

.category-card span {
    font-weight: 600;
}

/* ========================================== */
/* КНОПКИ */
/* ========================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-primary.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

/* ========================================== */
/* ФОРМЫ АВТОРИЗАЦИИ */
/* ========================================== */
.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
    transition: var(--transition);
}

.auth-header {
    margin-bottom: 25px;
}

.auth-header h3 {
    font-weight: 700;
    color: var(--text-dark);
}

.auth-header h3 i {
    margin-right: 10px;
}

.auth-card .form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.auth-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-card .input-group .btn-outline-secondary {
    border-color: #e9ecef;
    color: var(--text-light);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.auth-card .input-group .btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-strength-bar {
    margin-top: 8px;
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

#strengthText {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ========================================== */
/* КОММЕНТАРИИ */
/* ========================================== */
.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-content {
    margin: 0;
    color: var(--text-dark);
}

/* ========================================== */
/* ПАГИНАЦИЯ */
/* ========================================== */
.pagination .page-link {
    border: none;
    padding: 10px 18px;
    margin: 0 4px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

/* ========================================== */
/* ФУТЕР */
/* ========================================== */
.footer {
    background: var(--card-bg);
    border-top: 1px solid #e9ecef;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer h5 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer ul li a:hover {
    color: var(--primary);
}

.footer .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer .contact-info li i {
    width: 20px;
}

.footer .contact-info li a {
    color: var(--text-light);
}

.footer .contact-info li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: #e9ecef;
    margin: 20px 0 15px;
}

/* ========================================== */
/* АВАТАРКА В ПРОФИЛЕ */
/* ========================================== */
.avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ========================================== */
/* BREADCRUMB */
/* ========================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* ========================================== */
/* СТРАНИЦА ФИЛЬМА */
/* ========================================== */
.poster-wrapper {
    position: sticky;
    top: 100px;
}

.poster-wrapper img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.movie-title-detail {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.original-title {
    color: var(--text-light);
    font-weight: 400;
}

.movie-badges .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 8px;
}

.description-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}
/* ========================================== */
/* СЕЗОНЫ И СЕРИИ */
/* ========================================== */

.seasons-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f2f5;
}

.seasons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.seasons-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.seasons-header h4 i {
    color: #6c5ce7;
    margin-right: 8px;
}

.seasons-count {
    font-size: 0.85rem;
    color: #636e72;
    background: #f8f9fa;
    padding: 4px 14px;
    border-radius: 20px;
}

.season-item {
    margin-bottom: 8px;
    border: 1px solid #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.season-item:hover {
    border-color: #e9ecef;
}

.season-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: none;
    color: #2d3436;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: left;
}

.season-toggle:hover {
    background: #f0f2f5;
}

.season-toggle i {
    color: #6c5ce7;
    margin-right: 8px;
}

.season-episodes-count {
    color: #636e72;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 6px;
}

.season-arrow {
    transition: transform 0.3s ease;
    color: #636e72;
}

.season-arrow i {
    margin-right: 0;
}

/* Список серий */
.season-episodes {
    display: none;
    padding: 0;
    background: #ffffff;
}

.season-episodes.active {
    display: block;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid #f8f9fa;
    transition: background 0.15s ease;
}

.episode-item:hover {
    background: #f8f9fa;
}

.episode-number {
    width: 32px;
    height: 32px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #6c5ce7;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
    min-width: 0;
}

.episode-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3436;
}

.episode-name-en {
    font-size: 0.75rem;
    color: #636e72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-date {
    font-size: 0.75rem;
    color: #636e72;
    flex-shrink: 0;
    white-space: nowrap;
}

.episode-date i {
    margin-right: 4px;
}

.episode-empty {
    padding: 16px;
    text-align: center;
    color: #636e72;
    font-size: 0.9rem;
}

.seasons-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    gap: 24px;
    color: #636e72;
    font-size: 0.85rem;
}

.seasons-footer i {
    color: #6c5ce7;
    margin-right: 4px;
}

.seasons-footer strong {
    color: #2d3436;
}

/* ========================================== */
/* АДАПТИВНОСТЬ */
/* ========================================== */

@media (max-width: 768px) {
    .seasons-section {
        padding: 16px;
    }
    
    .seasons-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .episode-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .episode-date {
        width: 100%;
        padding-left: 46px;
    }
    
    .seasons-footer {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .seasons-section {
        padding: 12px;
    }
    
    .season-toggle {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .episode-item {
        padding: 8px 12px;
    }
    
    .episode-name {
        font-size: 0.8rem;
    }
}

/* ========================================== */
/* ТОСТ УВЕДОМЛЕНИЯ */
/* ========================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* ========================================== */
/* SKELETON LOADING (опционально) */
/* ========================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e9ecef 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================== */
/* АДАПТИВНОСТЬ */
/* ========================================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
}

@media (max-width: 992px) {
    .hero-slide { height: 450px; }
    .hero-title { font-size: 2.5rem; }
    .search-form .form-control { width: 150px; }
    .search-form .form-control:focus { width: 200px; }
    .poster-wrapper { position: static; max-width: 300px; margin: 0 auto 30px; }
    .movie-title-detail { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero-slide { height: 400px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-meta { gap: 10px; }
    .hero-meta span { font-size: 0.8rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .navbar { padding: 10px 0; }
    .navbar-brand { font-size: 1.2rem; }
    .search-form { margin: 10px 0; }
    .search-form .form-control { width: 100%; }
    .search-form .form-control:focus { width: 100%; }
    .footer { padding: 30px 0 15px; }
    .footer .row { gap: 20px; }
    .movie-title-detail { font-size: 1.5rem; }
    .description-text { font-size: 0.95rem; padding: 15px; }
    .auth-card { padding: 25px 20px; }
    .avatar-circle { width: 70px; height: 70px; }
}

@media (max-width: 576px) {
    .hero-slide { height: 350px; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 1.5rem; }
    .hero-description { display: none; }
    .hero-buttons .btn { font-size: 0.85rem; padding: 8px 18px; }
    .category-card { min-height: 100px; padding: 20px; }
    .category-card i { font-size: 1.5rem; }
    .movie-card .movie-poster { padding-top: 120%; }
    .movie-title-detail { font-size: 1.2rem; }
    .movie-badges .badge { font-size: 0.75rem; padding: 5px 12px; }
    .btn-hero-secondary { width: 40px; height: 40px; }
}