/* ==========================================
   XFilms - Современный дизайн 2026
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b00;
    --primary-hover: #ff8533;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #2a2a2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(255, 107, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER (Шапка)
   ========================================== */

/* ==========================================
   HEADER (Двухуровневый)
   ========================================== */

.site-header {
    background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Верхняя часть: Логотип + Поиск */
.header-top {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    flex: 1;
}

.search-form .form-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    outline: none;
}

.search-form .form-control::placeholder {
    color: var(--text-muted);
}

.search-form .btn-search {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form .btn-search:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop: центрирование блока логотип + поиск */
@media (min-width: 992px) {
    .header-top-content {
        gap: 25px;
    }
    
    .search-form {
        max-width: 700px;
    }
}

/* Нижняя часть: Меню категорий */
.header-nav {
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 20px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 0, 0.08);
}

.nav-menu a:hover::before {
    width: 80%;
}

/* Адаптивность для планшетов */
@media (max-width: 991px) {
    .header-top-content {
        justify-content: space-between;
    }
    
    .logo {
        font-size: 26px;
    }
    
    .search-form {
        max-width: 400px;
    }
    
    .search-form .form-control {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .search-form .btn-search {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .nav-menu a {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-top-content {
        justify-content: space-between;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .search-form {
        flex: 1;
        max-width: none;
    }
    
    .search-form .form-control {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .search-form .btn-search {
        padding: 10px 18px;
    }
    
    .search-form .btn-search i {
        font-size: 16px;
    }
    
    .header-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .header-nav.active {
        max-height: 500px;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }
    
    .nav-menu a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .nav-menu a::before {
        display: none;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .header-top {
        padding: 12px 0;
    }
    
    .header-top-content {
        gap: 10px;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .search-form .form-control {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .search-form .btn-search {
        padding: 8px 16px;
    }
}

/* ==========================================
   MAIN (Основной контент)
   ========================================== */

.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0 50px;
}

/* ==========================================
   BREADCRUMBS (Хлебные крошки)
   ========================================== */

.breadcrumbs {
    margin: 20px 0;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 0, 0.1);
}

.breadcrumbs .separator {
    color: var(--border-color);
    user-select: none;
    pointer-events: none;
    font-size: 14px;
    margin: 0 -4px;
}

.breadcrumbs li:last-of-type span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   TITLES (Заголовки)
   ========================================== */

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.btn-view-all i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

.section {
    margin-bottom: 50px;
}

/* ==========================================
   FILTERS (Фильтры)
   ========================================== */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-group {
    flex: 0 0 auto;
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    font-weight: 500;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background: var(--bg-card);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.filter-select option {
    background: var(--bg-darker);
    color: var(--text-secondary);
    padding: 10px;
}

.filter-reset {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-reset:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 107, 0, 0.1);
}

/* ==========================================
   TABS (Табы)
   ========================================== */

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.tab.active,
.tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ==========================================
   GRID (Сетка карточек)
   ========================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ==========================================
   CARD (Карточка фильма)
   ========================================== */

.card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 149, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 1;
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-poster {
    position: relative;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.card-poster img[loading="lazy"] {
    opacity: 0;
}

.card-poster img.loaded {
    opacity: 1;
}

.card:hover .card-poster img {
    transform: scale(1.05);
}

.quality-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.episodes-badge {
    position: absolute;
    top: 44px;
    right: 8px;
    background: rgba(255, 107, 0, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 107, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-info {
    padding: 14px;
    position: relative;
    z-index: 2;
}

.card-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
}

.card-meta span {
    padding: 4px 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.rating {
    color: #ffd700;
    font-weight: 600;
}

.rating.no-rating {
    color: #666;
    font-style: italic;
}

.imdb {
    color: #f5c518;
    font-weight: 600;
}

.quality {
    color: #4ade80;
    font-weight: 600;
}

.year {
    color: var(--text-muted);
}

/* ==========================================
   PAGINATION (Пагинация)
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination span.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}

/* ==========================================
   VIEW PAGE (Страница просмотра)
   ========================================== */

.view-page {
    margin-top: 20px;
}

.view-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.view-poster {
    flex-shrink: 0;
}

.view-poster img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.view-info {
    flex: 1;
}

.view-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.original-title {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.view-meta span {
    padding: 8px 14px;
    background: var(--bg-darker);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Жанры с кликабельными ссылками */
.genres {
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.genres strong {
    font-size: 14px;
    color: var(--text-primary);
    margin-right: 10px;
}

.genres i {
    margin-right: 5px;
    color: var(--primary-color);
}

.genre-link {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 5px;
    color: var(--text-primary);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.genre-link:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Описание фильма */
.description {
    margin-bottom: 20px;
}

.description h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.description h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.description p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Информация о фильме */
.movie-info {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.movie-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.movie-info i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* SEO блок - текст */
.seo-benefits {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.seo-benefits p {
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-secondary);
}

.seo-benefits strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================
   PLAYER (Плеер)
   ========================================== */

.player-container {
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.player-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.seasons-selector,
.episodes-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.season-btn,
.episode-btn {
    padding: 8px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
}

.season-btn:hover,
.episode-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.season-btn.active,
.episode-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   SIMILAR CONTENT (Похожее)
   ========================================== */

.similar-content {
    margin-top: 50px;
}

.similar-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ==========================================
   ABOUT (О сайте)
   ========================================== */

.about {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.about h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==========================================
   ERROR PAGE (404)
   ========================================== */

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.3);
}

.error-page h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.error-page p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

/* ==========================================
   FOOTER (Подвал)
   ========================================== */

.footer {
    background: var(--bg-darker);
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ==========================================
   RESPONSIVE (Адаптив)
   ========================================== */

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .view-header {
        gap: 25px;
        padding: 20px;
    }
    
    .view-poster img {
        width: 220px;
        height: 330px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-header {
        gap: 10px;
    }
    
    .btn-view-all {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .breadcrumbs {
        font-size: 13px;
        margin: 15px 0;
    }
    
    .breadcrumbs ol {
        gap: 6px;
    }
    
    .filters {
        padding: 15px;
        gap: 10px;
    }
    
    .filter-select {
        min-width: 140px;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .card img {
        height: 210px;
    }
    
    .card-info {
        padding: 10px;
    }
    
    .card-info h3 {
        font-size: 13px;
    }
    
    .view-header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .view-poster {
        text-align: center;
    }
    
    .view-info h1 {
        font-size: 24px;
    }
    
    .genres {
        font-size: 13px;
    }
    
    .genre-link {
        font-size: 13px;
    }
    
    .description h3 {
        font-size: 16px;
    }
    
    .description p {
        font-size: 14px;
    }
    
    .movie-info {
        font-size: 13px;
    }
    
    .seo-benefits {
        padding: 15px;
    }
    
    .seo-benefits p {
        font-size: 14px;
    }
    
    .view-poster img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .view-info h1 {
        font-size: 24px;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card img {
        height: 180px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .error-page h1 {
        font-size: 80px;
    }
    
    .error-page h2 {
        font-size: 24px;
    }
}

/* ==========================================
   UTILITIES (Утилиты)
   ========================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
