/* ==================== ПЕРЕМЕННЫЕ ==================== */

:root {
    /* Основные цвета */
    --bg-dark: #0a0a0b;
    --bg-primary: #0f0f11;
    --bg-secondary: #151518;
    --bg-tertiary: #1a1a1f;
    --bg-card: #1e1e24;
    --bg-card-hover: #252530;
    --bg-elevated: #28282f;

    /* Акцентные цвета */
    --accent-primary: #7c3aed;
    --accent-secondary: #a78bfa;
    --accent-tertiary: #c4b5fd;
    --accent-glow: rgba(124, 58, 237, 0.5);

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);

    /* Текст */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dark: #52525b;

    /* Статусы */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Границы */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(124, 58, 237, 0.5);

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --shadow-glow-sm: 0 0 20px var(--accent-glow);

    /* Glass эффект */
    --glass-bg: rgba(30, 30, 36, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Размеры */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Анимации */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-normal: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

/* ==================== СБРОС И ОСНОВА ==================== */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(236, 72, 153, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(6, 182, 212, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-tertiary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

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

/* ==================== ТИПОГРАФИКА ==================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== НАВИГАЦИЯ ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 17, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 24px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Поиск в навигации */
.nav-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

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

.search-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}

.search-form .search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-form input:focus ~ .search-icon {
    color: var(--accent-primary);
}

.search-form button {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

.search-form input:focus ~ button,
.search-form input:not(:placeholder-shown) ~ button {
    opacity: 1;
    transform: scale(1);
}

/* Dropdown поиска */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: var(--bg-card-hover);
}

.search-result-poster {
    width: 48px;
    height: 68px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Навигационные ссылки */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link i {
    font-size: 1.1rem;
}

/* Уведомления */
.notifications-wrapper {
    position: relative;
}

.notifications-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--error);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notifications-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.notifications-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Меню пользователя */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.user-menu-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.user-menu-btn .fa-chevron-down {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-menu:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: all var(--transition-normal);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.user-dropdown a:hover i {
    color: var(--accent-primary);
}

.user-dropdown hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-dropdown .logout-link {
    color: var(--error);
}

.user-dropdown .logout-link:hover {
    background: var(--error-bg);
}
/* ==================== КНОПКИ ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.btn-xs {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

.btn-favorite {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-favorite:hover,
.btn-favorite.active {
    background: linear-gradient(135deg, #dc2626 0%, #f43f5e 100%);
    border-color: transparent;
    color: white;
}

.btn-favorite i {
    color: var(--error);
}

.btn-favorite.active i,
.btn-favorite:hover i {
    color: white;
}

.btn-trailer {
    background: #dc2626;
    color: white;
}

.btn-trailer:hover {
    background: #b91c1c;
    color: white;
}

/* ==================== БЕЙДЖИ ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--accent-primary);
    color: white;
}

.badge-dark {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: #000;
}

/* ==================== КАРТОЧКИ ==================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 24px;
}

/* ==================== ОСНОВНОЙ КОНТЕНТ ==================== */

.main-content {
    min-height: calc(100vh - 72px);
    padding-top: 72px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 960px;
}

/* ==================== FLASH СООБЩЕНИЯ ==================== */

.flash-container {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: flashSlideIn 0.4s var(--ease-spring);
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.flash-message.hiding {
    animation: flashSlideOut 0.3s var(--ease-out) forwards;
}

@keyframes flashSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

.flash-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.flash-success .flash-icon {
    background: var(--success-bg);
    color: var(--success);
}

.flash-error .flash-icon {
    background: var(--error-bg);
    color: var(--error);
}

.flash-warning .flash-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.flash-info .flash-icon {
    background: var(--info-bg);
    color: var(--info);
}

.flash-content {
    flex: 1;
}

.flash-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.flash-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.flash-close {
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 4px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.flash-close:hover {
    color: var(--text-primary);
}

/* ==================== СЕКЦИИ ==================== */

.section {
    padding: 48px 0;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.section-link:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.section-link i {
    transition: transform var(--transition-fast);
}

.section-link:hover i {
    transform: translateX(4px);
}

/* ==================== КАРУСЕЛЬ ==================== */

.carousel-section {
    padding: 32px 0 48px;
}

.carousel-wrapper {
    position: relative;
    margin: 0 -24px;
    padding: 0 24px;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 16px 0;
    margin: -16px 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 200px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

/* ==================== КАРТОЧКИ АНИМЕ ==================== */

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.anime-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.anime-card {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
}

.anime-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

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

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

.anime-card-poster {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.anime-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.anime-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.anime-card:hover .anime-card-overlay {
    opacity: 1;
}

.play-button {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.play-button i {
    margin-left: 4px;
}

.anime-card:hover .play-button {
    transform: scale(1);
}

.anime-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.anime-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.anime-card-rating i {
    color: #fbbf24;
}

.anime-card-episode {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.anime-card-info {
    padding: 16px;
}

.anime-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.anime-card-type {
    padding: 3px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Статусы */
.status-ongoing {
    color: var(--success);
}

.status-completed {
    color: var(--info);
}

.status-announced {
    color: var(--warning);
}

/* ==================== РЕКОМЕНДАЦИЯ ==================== */

.recommendation-section {
    padding: 48px 0;
}

.recommendation-card {
    position: relative;
    min-height: 480px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.recommendation-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.3;
    transform: scale(1.1);
}

.recommendation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        var(--bg-card) 0%,
        rgba(30, 30, 36, 0.95) 40%,
        rgba(30, 30, 36, 0.7) 70%,
        transparent 100%);
}

.recommendation-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 650px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    width: fit-content;
}

.recommendation-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.recommendation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.recommendation-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.recommendation-meta-item i {
    color: var(--accent-primary);
}

.recommendation-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.genre-tag {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.genre-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-card);
}

.recommendation-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.recommendation-poster {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 2;
}

.recommendation-poster img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.recommendation-card:hover .recommendation-poster img {
    transform: scale(1.03) rotate(1deg);
}

/* ==================== ПУСТЫЕ СОСТОЯНИЯ ==================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 24px;
}

/* Заглушка изображений */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
}

.placeholder-image i {
    font-size: 3rem;
    opacity: 0.3;
}

.placeholder-image span {
    font-size: 0.85rem;
    opacity: 0.5;
}
/* ==================== СТРАНИЦА АНИМЕ ==================== */

.anime-page {
    padding-bottom: 80px;
}

.anime-banner {
    position: relative;
    height: 450px;
    margin-top: -72px;
    padding-top: 72px;
    background-size: cover;
    background-position: center top;
}

.anime-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(15, 15, 17, 0.3) 0%,
        rgba(15, 15, 17, 0.6) 50%,
        var(--bg-primary) 100%);
}

.anime-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: -200px;
    position: relative;
    z-index: 10;
}

.anime-poster-wrapper {
    position: sticky;
    top: 96px;
}

.anime-poster {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
}

.anime-poster img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.anime-poster-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.anime-poster-actions .btn {
    width: 100%;
    justify-content: flex-start;
}

/* Информация об аниме */
.anime-info {
    padding-top: 120px;
}

.anime-title-block {
    margin-bottom: 24px;
}

.anime-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.anime-alt-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.anime-alt-titles span {
    opacity: 0.8;
}

/* Рейтинг */
.anime-rating-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.rating-stars i.active {
    color: #fbbf24;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating-separator {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

.user-rating {
    flex: 1;
}

.user-rating-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.user-rating-stars {
    display: flex;
    gap: 6px;
}

.rating-star-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.rating-star-btn:hover {
    transform: scale(1.2);
}

.rating-star-btn.active,
.rating-star-btn:hover {
    color: #fbbf24;
}

/* Метаданные */
.anime-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.meta-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
}

/* Жанры */
.anime-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* ==================== ПЛЕЕР ==================== */

.player-section {
    margin-bottom: 48px;
}

.player-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-xl);
}

/* Обёртка плеера с кнопками */
.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Iframe контейнер */
.video-player-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

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

/* Мобильные контролы поверх плеера */
.mobile-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.mobile-player-controls > * {
    pointer-events: auto;
}

.mobile-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.9);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
}

.mobile-control-btn:hover,
.mobile-control-btn:active {
    background: var(--accent-primary);
    transform: scale(1.05);
    color: white;
}

.mobile-control-btn i {
    font-size: 1.1rem;
}

.mobile-nav-btn {
    padding: 10px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

.mobile-nav-btn:hover {
    background: rgba(255,255,255,0.25);
}

.mobile-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Панель управления плеером */
.player-controls-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
}

.controls-row {
    display: flex;
    gap: 24px;
}

.control-group {
    flex: 1;
    margin-bottom: 16px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.control-label i {
    color: var(--accent-primary);
}

/* Скролл для озвучек */
.dubbing-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 0 20px 8px;
}

.dubbing-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.dubbing-tabs {
    display: flex;
    gap: 8px;
}

.dubbing-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dubbing-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.dubbing-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Скролл для серий */
.episodes-wrapper {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px 8px;
}

.episodes-wrapper::-webkit-scrollbar {
    width: 6px;
}

.episodes-wrapper::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

.episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-btn {
    min-width: 48px;
    height: 44px;
    padding: 0 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

/* Нет видео */
.no-video {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}

.no-video i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.no-video p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Информация о серии */
.episode-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 16px;
}

.episode-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.episode-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.episode-dubbing {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.episode-nav {
    display: flex;
    gap: 8px;
}

/* ==================== HTML5 ВИДЕОПЛЕЕР ==================== */

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn-large {
    width: 96px;
    height: 96px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.play-btn-large i {
    margin-left: 6px;
}

.play-btn-large:hover {
    transform: scale(1.1);
}

/* Контролы плеера */
.player-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.video-player:hover .player-controls-bar,
.video-player.show-controls .player-controls-bar {
    opacity: 1;
}

.progress-container {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: visible;
}

.progress-container:hover .progress-bar {
    height: 7px;
}

.progress-buffered {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
}

.progress-played {
    position: absolute;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: inherit;
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
    left: 0%;
}

.progress-container:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

.controls-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn-skip {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.control-btn-skip span {
    font-size: 0.65rem;
    opacity: 0.7;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    opacity: 0;
    transition: all var(--transition-fast);
}

.volume-control:hover .volume-slider {
    width: 80px;
    opacity: 1;
}

.volume-slider input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    outline: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.time-display {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    min-width: 100px;
}

/* Кнопки скипа */
.skip-overlay-left,
.skip-overlay-right {
    position: absolute;
    bottom: 100px;
    z-index: 15;
}

.skip-overlay-left {
    left: 24px;
}

.skip-overlay-right {
    right: 24px;
}

.skip-op-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.skip-op-btn:hover {
    background: var(--accent-primary);
}

.next-episode-overlay {
    position: absolute;
    right: 50%;
    bottom: 120px;
    transform: translateX(50%);
    z-index: 16;
}

/* ==================== ОПИСАНИЕ ==================== */

.description-section {
    margin-bottom: 48px;
}

.description-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.description-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expand-btn {
    margin-top: 16px;
    color: var(--accent-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expand-btn:hover {
    color: var(--accent-secondary);
}

/* ==================== КОММЕНТАРИИ ==================== */

.comments-section {
    margin-bottom: 48px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.comments-count span {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Форма комментария */
.comment-form {
    margin-bottom: 32px;
}

.comment-form-wrapper {
    display: flex;
    gap: 16px;
}

.comment-form-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.comment-form-content {
    flex: 1;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: all var(--transition-fast);
}

.comment-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-form-options {
    display: flex;
    gap: 16px;
}

/* Список комментариев */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.comment:hover {
    border-color: var(--border-light);
}

.comment.reply {
    margin-left: 48px;
    background: var(--bg-tertiary);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.comment.reply .comment-avatar {
    width: 40px;
    height: 40px;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.comment-author:hover {
    color: var(--accent-primary);
}

.comment-episode-badge {
    padding: 3px 10px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: white;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.comment-text.spoiler-hidden {
    position: relative;
    filter: blur(5px);
    user-select: none;
    cursor: pointer;
}

.comment-text.spoiler-hidden::after {
    content: '🔒 Спойлер - нажмите, чтобы показать';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    filter: none;
    font-size: 0.9rem;
    color: white;
    border-radius: var(--radius-md);
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.comment-action-btn:hover {
    color: var(--accent-primary);
}

.comment-action-btn.delete:hover {
    color: var(--error);
}

/* Форма ответа */
.reply-form {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
}

.reply-form textarea:focus {
    border-color: var(--accent-primary);
}

.reply-form-actions {
    display: flex;
    gap: 8px;
}

.comment-replies {
    margin-top: 20px;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Нет комментариев */
.no-comments {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.no-comments i {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
}

.no-comments h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-comments p {
    color: var(--text-muted);
}

/* Приглашение войти */
.comment-login-prompt {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 32px;
}

.comment-login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}
/* ==================== АВТОРИЗАЦИЯ ==================== */

.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-glow);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.forgot-link {
    font-size: 0.95rem;
    color: var(--accent-primary);
}

.forgot-link:hover {
    color: var(--accent-secondary);
}

.auth-submit {
    width: 100%;
    margin-bottom: 24px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    padding: 0 16px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ==================== ФОРМЫ ==================== */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-label.required::after {
    content: '*';
    color: var(--error);
    margin-left: 4px;
}

.form-input,
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

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

.form-input:hover,
.form-control:hover {
    border-color: var(--border-light);
}

.form-input:focus,
.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--bg-card);
}

.form-input.error,
.form-control.is-invalid {
    border-color: var(--error);
}

.form-input.error:focus,
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px var(--error-bg);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--error);
    font-size: 0.85rem;
}

.form-hint,
.form-text {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Input группа с иконкой */
.input-group {
    position: relative;
}

.input-group .form-input,
.input-group .form-control {
    padding-left: 48px;
}

.input-group-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-group .form-input:focus + .input-group-icon,
.input-group .form-control:focus ~ .input-group-icon {
    color: var(--accent-primary);
}

/* Toggle пароля */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Select */

.form-select:hover {
    border-color: var(--border-light);
}

/* Textarea */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.form-textarea:hover {
    border-color: var(--border-light);
}

.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--bg-card);
}

/* Чекбокс */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    position: relative;
    width: 22px;
    height: 22px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-input:hover {
    border-color: var(--accent-primary);
}

.form-check-input:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Switch */
.form-switch-input {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-switch-input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-switch-input:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-switch-input:checked::after {
    left: calc(100% - 22px);
    background: white;
}

/* Form layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--accent-primary);
}

.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 32px;
}

/* File upload */
.file-upload-area {
    padding: 40px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-text {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Image upload */
.image-upload-area {
    position: relative;
    width: 200px;
    height: 280px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: var(--accent-primary);
}

.image-upload-area.banner-area {
    width: 100%;
    height: 150px;
}

.image-upload-area .image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.image-upload-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

/* ==================== ПОИСК ==================== */

.search-page {
    padding: 48px 0;
}

.search-page-header {
    margin-bottom: 32px;
}

.search-page-header h1 {
    margin-bottom: 24px;
}


.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item.wide {
    flex: 2;
    min-width: 250px;
}

.filter-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    color: var(--text-secondary);
}

.results-count strong {
    color: var(--text-primary);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 8px;
}

/* ==================== ПРОФИЛЬ ==================== */

.profile-page {
    padding: 48px 0;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--gradient-primary);
    opacity: 0.1;
    pointer-events: none;
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.profile-joined {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.profile-edit-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 1;
}

/* Статистика профиля */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.stat-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */

.notifications-page {
    padding: 48px 0;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.notification-item.unread {
    border-left: 4px solid var(--accent-primary);
    background: var(--bg-tertiary);
}

.notification-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.new-episode {
    background: var(--success-bg);
    color: var(--success);
}

.notification-icon.reply {
    background: var(--info-bg);
    color: var(--info);
}

.notification-icon.system {
    background: var(--warning-bg);
    color: var(--warning);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* ==================== АДМИНКА ==================== */

.admin-page {
    padding: 48px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    overflow-x: auto;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.admin-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.admin-nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.admin-nav-link i {
    font-size: 1.1rem;
}

/* Статистика админки */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.admin-stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.admin-stat-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.admin-stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-stat-info p {
    color: var(--text-muted);
}

/* Таблицы */
.admin-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 16px 20px;
    text-align: left;
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-card-hover);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .poster-thumb {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Формы админки */
.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 40px;
}

/* ==================== ФУТЕР ==================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 24px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
}

/* Модальное окно видео */
.modal-video {
    max-width: 1000px;
    padding: 0;
    background: #000;
}

.modal-video .video-container {
    aspect-ratio: 16/9;
}

.modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== ЛОАДЕРЫ И СКЕЛЕТОНЫ ==================== */

.skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card) 50%,
        var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-poster {
    aspect-ratio: 3/4;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

/* Спиннер */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 3000;
}

.loading-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================== АНИМАЦИИ ==================== */

.fade-in {
    animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s var(--ease-out);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.4s var(--ease-spring);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger animation */
.stagger-animation > * {
    opacity: 0;
    animation: slideUp 0.5s var(--ease-out) forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.3s; }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== УТИЛИТЫ ==================== */

/* Текст */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Display */
.d-none { display: none !important; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }

/* Flexbox */
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Gap */
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Paddings */
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

/* Width */
.w-full { width: 100%; }

/* Border radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* ==================== АДАПТИВНОСТЬ ==================== */

/* ===== БОЛЬШИЕ ПЛАНШЕТЫ (до 1280px) ===== */
@media (max-width: 1280px) {
    .recommendation-poster {
        width: 240px;
        right: 40px;
    }

    .container {
        padding: 0 20px;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ПЛАНШЕТЫ (до 1024px) ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommendation-poster {
        display: none;
    }

    .recommendation-content {
        max-width: 100%;
    }

    .anime-header {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }

    .anime-info {
        padding-top: 80px;
    }

    .anime-banner {
        height: 380px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }

    .controls-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===== МАЛЕНЬКИЕ ПЛАНШЕТЫ / БОЛЬШИЕ ТЕЛЕФОНЫ (до 768px) ===== */
@media (max-width: 768px) {
    /* Навигация */
    .navbar {
        height: 64px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-search {
        display: none;
    }

    .nav-link span {
        display: none;
    }

    .nav-link {
        padding: 10px 12px;
    }

    .nav-links {
        gap: 4px;
    }

    .user-menu-btn span {
        display: none;
    }

    .user-menu-btn {
        padding: 6px;
    }

    .user-dropdown {
        right: -16px;
        width: 200px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    /* Основной контент */
    .main-content {
        padding-top: 64px;
    }

    .container {
        padding: 0 16px;
    }

    /* Карусель */
    .carousel-btn {
        display: none;
    }

    .carousel-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .carousel-item {
        width: 150px;
    }

    .carousel {
        gap: 12px;
    }

    /* Секции */
    .section {
        padding: 32px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-title-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Страница аниме */
    .anime-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .anime-poster-wrapper {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .anime-poster {
        width: 200px;
    }

    .anime-poster-actions {
        width: 100%;
        max-width: 300px;
    }

    .anime-info {
        padding-top: 24px;
    }

    .anime-title-block {
        text-align: center;
    }

    .anime-genres,
    .anime-alt-titles {
        justify-content: center;
    }

    .anime-alt-titles {
        flex-direction: column;
        gap: 8px;
    }

    .anime-rating-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .rating-separator {
        width: 100%;
        height: 1px;
    }

    .rating-display {
        flex-direction: column;
        gap: 8px;
    }

    .rating-score {
        font-size: 2.5rem;
    }

    .user-rating-stars {
        justify-content: center;
    }

    .anime-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .meta-item {
        padding: 12px;
    }

    .anime-banner {
        height: 280px;
    }

    /* Плеер */
    .player-controls-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .player-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .player-tabs::-webkit-scrollbar {
        display: none;
    }

    .control-label {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .dubbing-tabs-wrapper,
    .episodes-wrapper {
        margin: 0 -14px;
        padding: 0 14px 8px;
    }

    .dubbing-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .episodes-grid {
        gap: 6px;
    }

    .episode-btn {
        min-width: 44px;
        height: 42px;
        font-size: 0.85rem;
    }

    .video-player-wrapper {
        border-radius: 16px;
    }

    .mobile-player-controls {
        padding: 10px 12px;
    }

    .mobile-control-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .episode-info-bar {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }

    .episode-info-left {
        flex-direction: column;
        gap: 8px;
    }

    .episode-nav {
        width: 100%;
        justify-content: center;
    }

    .episode-nav .btn {
        flex: 1;
        justify-content: center;
    }

    .episode-nav .btn-text {
        display: none;
    }

    .skip-overlay-left,
    .skip-overlay-right {
        bottom: 80px;
    }

    .skip-overlay-left {
        left: 12px;
    }

    .skip-overlay-right {
        right: 12px;
    }

    .skip-op-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .no-video {
        border-radius: 16px;
    }

    .no-video i {
        font-size: 3rem;
    }

    .no-video p {
        font-size: 1rem;
    }

    /* Комментарии */
    .comment {
        padding: 16px;
    }

    .comment.reply {
        margin-left: 24px;
    }

    .comment-form-wrapper {
        flex-direction: column;
    }

    .comment-form-avatar {
        width: 40px;
        height: 40px;
    }

    .comment-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .comment-replies {
        padding-left: 16px;
    }

    /* Рекомендации */
    .recommendation-card {
        min-height: 380px;
    }

    .recommendation-content {
        padding: 32px 24px;
    }

    .recommendation-meta {
        gap: 12px;
    }

    .recommendation-genres {
        gap: 8px;
    }

    .genre-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .recommendation-actions {
        flex-direction: column;
    }

    .recommendation-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Футер */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer {
        padding: 48px 0 32px;
        margin-top: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-social {
        justify-content: center;
    }

    /* Поиск */
    .search-filters {
        flex-direction: column;
        padding: 16px;
    }

    .filter-item {
        width: 100%;
        min-width: 100%;
    }

    .search-results-info {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .pagination {
        flex-wrap: wrap;
    }

    /* Профиль */
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .profile-avatar-large {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-edit-btn {
        position: static;
        margin-top: 16px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Админка */
    .admin-form {
        padding: 24px;
    }

    .admin-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .admin-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }

    /* Авторизация */
    .auth-card {
        padding: 32px 24px;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .auth-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .social-buttons {
        flex-direction: column;
    }

    /* Модальные окна */
    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
        border-radius: var(--radius-xl);
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Flash сообщения */
    .flash-container {
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .flash-message {
        padding: 14px 16px;
    }

    /* Уведомления */
    .notifications-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }

    .notification-item {
        padding: 16px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

    /* Формы */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Описание */
    .description-card {
        padding: 20px;
    }
}

/* ===== МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
    /* Навигация */
    .navbar {
        height: 60px;
    }

    .main-content {
        padding-top: 60px;
    }

    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 8px 10px;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    /* Сетка аниме */
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .anime-card-info {
        padding: 12px;
    }

    .anime-card-title {
        font-size: 0.85rem;
    }

    .anime-card-meta {
        font-size: 0.7rem;
    }

    .anime-card-rating {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .anime-card-episode {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .play-button {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* Карусель */
    .carousel-item {
        width: 130px;
    }

    /* Рекомендации */
    .recommendation-card {
        min-height: 340px;
    }

    .recommendation-content {
        padding: 20px 16px;
    }

    .recommendation-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .recommendation-title {
        font-size: 1.25rem;
    }

    .recommendation-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .recommendation-meta {
        flex-direction: column;
        gap: 8px;
    }

    .recommendation-genres {
        display: none;
    }

    /* Страница аниме */
    .anime-banner {
        height: 220px;
    }

    .anime-poster {
        width: 160px;
    }

    .anime-title {
        font-size: 1.25rem;
    }

    .anime-meta {
        gap: 8px;
    }

    .meta-item {
        padding: 10px;
    }

    .meta-label {
        font-size: 0.7rem;
    }

    .meta-value {
        font-size: 0.9rem;
    }

    .genre-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Плеер */
    .player-controls-panel {
        padding: 12px;
    }

    .control-group {
        margin-bottom: 14px;
    }

    .control-label {
        font-size: 0.8rem;
    }

    .dubbing-tab {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .episode-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .mobile-control-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .mobile-control-btn .btn-text {
        display: none;
    }

    .mobile-control-btn i {
        font-size: 1.2rem;
    }

    .mobile-nav-btn {
        padding: 10px 12px;
    }

    .episode-info-bar {
        padding: 12px;
        border-radius: 12px;
    }

    .episode-number {
        font-size: 0.9rem;
    }

    .episode-dubbing {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .skip-overlay-left,
    .skip-overlay-right {
        bottom: 60px;
    }

    /* Комментарии */
    .comment {
        padding: 14px;
        flex-direction: column;
        gap: 12px;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .comment-author {
        font-size: 0.9rem;
    }

    .comment-text {
        font-size: 0.9rem;
    }

    .comment.reply {
        margin-left: 16px;
    }

    .comment-textarea {
        min-height: 80px;
        font-size: 0.9rem;
    }

    .no-comments {
        padding: 40px 16px;
    }

    .no-comments i {
        font-size: 2.5rem;
    }

    /* Авторизация */
    .auth-card {
        padding: 24px 20px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .form-input,
    .form-control {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* Пагинация */
    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.85rem;
    }

    /* Профиль */
    .profile-header-card {
        padding: 24px 16px;
    }

    .profile-avatar-large {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Секции */
    .section-title {
        font-size: 1.1rem;
        gap: 10px;
    }

    .section-title-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .section-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* Flash сообщения */
    .flash-message {
        padding: 12px 14px;
        gap: 12px;
    }

    .flash-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .flash-content h4 {
        font-size: 0.9rem;
    }

    .flash-content p {
        font-size: 0.8rem;
    }

    /* Кнопки */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
    }

    .btn-icon.btn-sm {
        width: 32px;
        height: 32px;
    }

    /* Футер */
    .footer {
        padding: 40px 0 24px;
        margin-top: 40px;
    }

    .footer-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .footer-logo-text {
        font-size: 1.25rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-copyright,
    .footer-legal a {
        font-size: 0.8rem;
    }

    /* Пустые состояния */
    .empty-state {
        padding: 48px 16px;
    }

    .empty-state-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .empty-state h3 {
        font-size: 1.2rem;
    }

    /* Описание */
    .description-card {
        padding: 16px;
    }

    .description-text {
        font-size: 0.9rem;
    }

    /* Бейджи */
    .badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    /* Типографика */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        height: 56px;
    }

    .main-content {
        padding-top: 56px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .nav-link {
        padding: 6px 8px;
    }

    .anime-grid {
        gap: 8px;
    }

    .anime-card-info {
        padding: 10px;
    }

    .anime-card-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }

    .carousel-item {
        width: 110px;
    }

    .recommendation-content {
        padding: 16px 12px;
    }

    .recommendation-title {
        font-size: 1.1rem;
    }

    .anime-poster {
        width: 140px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ===== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ ===== */
@media (max-width: 900px) and (orientation: landscape) {
    .navbar {
        height: 52px;
    }

    .main-content {
        padding-top: 52px;
    }

    .recommendation-card {
        min-height: 280px;
    }

    .anime-banner {
        height: 200px;
    }

    .video-player-wrapper {
        border-radius: 0;
    }

    .video-player-iframe {
        padding-bottom: 0;
        height: 70vh;
        min-height: 250px;
    }
}

/* ===== FULLSCREEN ПЛЕЕРА ===== */
.video-player-wrapper:fullscreen,
.video-player-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-player-wrapper:fullscreen .video-player-iframe,
.video-player-wrapper:-webkit-full-screen .video-player-iframe {
    padding-bottom: 0;
    height: 100%;
    width: 100%;
}

.video-player-wrapper:fullscreen .mobile-player-controls,
.video-player-wrapper:-webkit-full-screen .mobile-player-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ===== ТАЧСКРИН ОПТИМИЗАЦИЯ ===== */
@media (hover: none) and (pointer: coarse) {
    /* Увеличенные зоны касания */
    .episode-btn {
        min-width: 48px;
        min-height: 48px;
    }

    .dubbing-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-link {
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }

    .pagination-btn {
        min-height: 44px;
    }

    .mobile-control-btn {
        min-height: 48px;
    }

    /* Убираем hover эффекты */
    .anime-card:hover {
        transform: none;
    }

    .anime-card:hover .anime-card-poster img {
        transform: none;
    }

    .anime-card:active {
        transform: scale(0.98);
    }

    .stat-card:hover,
    .admin-stat-card:hover {
        transform: none;
    }

    .notification-item:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }

    .btn:hover::before {
        opacity: 0;
    }

    .btn:active {
        transform: scale(0.97);
    }

    /* Показываем play button всегда */
    .anime-card-overlay {
        opacity: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    }

    .play-button {
        transform: scale(1);
    }
}

/* ===== SAFE AREA ДЛЯ СОВРЕМЕННЫХ УСТРОЙСТВ (iPhone X и др.) ===== */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .modal-backdrop {
        padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    }

    .flash-container {
        right: max(16px, env(safe-area-inset-right));
    }

    @media (max-width: 768px) {
        .player-controls-panel {
            padding-left: max(14px, env(safe-area-inset-left));
            padding-right: max(14px, env(safe-area-inset-right));
        }

        .mobile-player-controls {
            padding-bottom: max(12px, env(safe-area-inset-bottom));
        }
    }
}

/* ===== УМЕНЬШЕНИЕ ДВИЖЕНИЯ ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
/* ==================== МОБИЛЬНЫЙ ПЛЕЕР - ФИКСЫ ==================== */

/* HTML5 плеер */
.video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.video-player video {
    width: 100%;
    display: block;
}

/* Панель управления плеера */
.player-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 30;
    opacity: 1;
}

.controls-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.control-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.control-btn:hover,
.control-btn:active {
    background: rgba(255,255,255,0.15);
}

/* Зоны двойного тапа для перемотки */
.tap-zone {
    position: absolute;
    top: 0;
    bottom: 80px;
    width: 35%;
    z-index: 25;
    cursor: pointer;
}

.tap-zone-left {
    left: 0;
}

.tap-zone-right {
    right: 0;
}

/* Индикатор перемотки */
.seek-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px 28px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.seek-indicator.left {
    left: 15%;
}

.seek-indicator.right {
    right: 15%;
}

.seek-indicator.show {
    opacity: 1;
}

.seek-indicator i {
    font-size: 1.5rem;
}

.seek-indicator span {
    font-size: 0.8rem;
}

/* Мобильные стили плеера */
@media (max-width: 768px) {
    .video-player {
        border-radius: 12px;
    }
    
    .player-controls-bar {
        padding: 30px 12px 10px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }
    
    .volume-control {
        display: none !important;
    }
    
    .time-display {
        font-size: 0.75rem !important;
    }
    
    #pip-btn {
        display: none !important;
    }
    
    .control-btn-skip span {
        display: none;
    }
}

@media (max-width: 480px) {
    .seek-indicator {
        padding: 16px 22px;
    }
    
    .seek-indicator i {
        font-size: 1.3rem;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* Fullscreen */
.video-player:fullscreen,
.video-player:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.video-player:fullscreen video,
.video-player:-webkit-full-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
.support-chat{
  max-height: 520px;
  overflow:auto;
  padding: 8px 6px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.chat-row{ display:flex; }
.chat-row.mine{ justify-content:flex-end; }
.chat-row.theirs{ justify-content:flex-start; }

.chat-bubble{
  max-width: min(760px, 92%);
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,0.10);
}

.chat-bubble.mine{
  background: rgba(124,58,237,0.20);
  border-color: rgba(124,58,237,0.35);
}

.chat-bubble.theirs{
  background: rgba(2,6,23,0.35);
  border-color: rgba(255,255,255,0.10);
}

.chat-meta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 6px;
}

.chat-author{ font-weight: 700; }
.chat-time{ color: var(--text-muted); font-size: 0.85rem; margin-left:auto; }

.chat-text{
  white-space: pre-wrap;
  line-height: 1.45;
}

.support-chat-input{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  align-items:flex-end;
}
.support-chat-input textarea{ width:100%; }
.liststatus-wrap { position: relative; margin-top: 10px; }
.liststatus-btn { display:flex; gap:8px; align-items:center; justify-content:space-between; width:100%; }

.liststatus-menu{
  position:absolute; left:0; right:0; top: 42px;
  background: rgba(20,20,25,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px;
  display:none;
  z-index: 9999;
  transform-origin: top;
}
.liststatus-menu.open{ display:block; animation: pop .12s ease-out; }
@keyframes pop { from { transform: scale(.98); opacity:.4; } to { transform: scale(1); opacity:1; } }

.liststatus-menu button{
  width:100%;
  text-align:left;
  border:0;
  background: transparent;
  color:#fff;
  padding:10px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-weight:600;
}
.liststatus-menu button:hover{ background: rgba(255,255,255,0.08); }
.liststatus-menu .danger{ color:#ff6b6b; }
.liststatus-sep{ height:1px; background: rgba(255,255,255,0.10); margin:6px 0; }

/* качество в плеере */
.quality-control { position: relative; }
.quality-dropdown {
  position: absolute;
  bottom: 48px;
  right: 0;
  min-width: 120px;
  background: rgba(20,20,25,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px;
  display: none;
  z-index: 9999;
  backdrop-filter: blur(8px);
}
.quality-dropdown.open { display:block; animation: qpop .12s ease-out; }
@keyframes qpop { from { transform: translateY(6px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

.quality-option {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.quality-option:hover { background: rgba(255,255,255,0.08); }
.quality-option.active { background: rgba(124,58,237,0.35); }
.logo-icon-img { width: 28px; height: 28px; border-radius: 6px; }

.loading-logo-img{
  width: 66px;
  height: 66px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.notifications-dropdown{
  position:absolute;
  right:0;
  top: 52px;
  width: min(420px, 92vw);
  background: rgba(14,16,22,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  overflow:hidden;
  display:none;
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.notifications-dropdown.open{ display:block; animation: notifDrop .14s ease-out; }
@keyframes notifDrop{ from{ transform: translateY(8px); opacity:.4; } to{ transform: translateY(0); opacity:1; } }

.notifications-dropdown-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
}

.notifications-dropdown-header a{
  color: rgba(255,255,255,0.85);
  text-decoration:none;
}
.notifications-dropdown-header a:hover{ text-decoration: underline; }

.notifications-dropdown-list{
  max-height: 420px;
  overflow:auto;
}

.notifications-dropdown-item{
  display:flex;
  gap: 12px;
  padding: 12px 14px;
  text-decoration:none;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .12s ease;
}
.notifications-dropdown-item:hover{ background: rgba(255,255,255,0.06); }
.notifications-dropdown-item.unread{ background: rgba(124,58,237,0.14); }

.notifications-dropdown-item .icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(124,58,237,0.20);
  border: 1px solid rgba(124,58,237,0.25);
  flex: 0 0 auto;
}

.notifications-dropdown-item .title{ font-weight: 800; }
.notifications-dropdown-item .message{
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .92rem;
}
.notifications-dropdown-item .time{
  margin-top: 6px;
  color: rgba(255,255,255,0.55);
  font-size: .82rem;
}

.notifications-dropdown-empty{
  padding: 22px 14px;
  text-align:center;
  color: var(--text-muted);
}
.search-filters{
  background: rgba(2,6,23,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
}

/* красивый select без системной стрелки */
.form-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: rgba(2,6,23,0.30);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 42px 10px 12px;
  outline: none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.65) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.65) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-select:focus{
  border-color: rgba(124,58,237,0.45);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

/* выравнивание фильтров */
.search-filters{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items:end;
}

.search-filters .filter-item.wide{ grid-column: span 2; }

@media (max-width: 1000px){
  .search-filters{
    grid-template-columns: 1fr 1fr;
  }
  .search-filters .filter-item.wide{ grid-column: span 2; }
}

@media (max-width: 560px){
  .search-filters{
    grid-template-columns: 1fr;
  }
  .search-filters .filter-item.wide{ grid-column: auto; }
  .filter-submit button{ width:100%; }
}
/* УБРАТЬ ЛЮБЫЕ СТРЕЛКИ У SELECT */
select.form-select,
.search-filters select,
.filter-item select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background-image: none !important; /* важно: убираем и кастомную стрелку */
  padding-right: 12px !important;    /* возвращаем паддинг, раз стрелки нет */
}

/* Для старых Edge/IE (на винде бывает) */
select.form-select::-ms-expand,
.search-filters select::-ms-expand,
.filter-item select::-ms-expand {
  display: none;
}
/* ===== Navbar search dropdown (красивый) ===== */
.nav-search { position: relative; }

.search-dropdown{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(14,16,22,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  display: none;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.search-dropdown.active{
  display:block;
  animation: srDrop .14s ease-out;
}
@keyframes srDrop{ from{ transform: translateY(8px); opacity:.4; } to{ transform: translateY(0); opacity:1; } }

.sr-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
}
.sr-all{
  color: rgba(255,255,255,0.85);
  text-decoration:none;
  font-weight: 700;
}
.sr-all:hover{ text-decoration: underline; }

.sr-list{ max-height: 420px; overflow:auto; }

.sr-item{
  display:flex;
  gap: 12px;
  padding: 10px 12px;
  text-decoration:none;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .12s ease;
}
.sr-item:hover{ background: rgba(255,255,255,0.06); }

.sr-poster{
  width: 44px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.sr-info{ min-width:0; flex:1; }
.sr-title{
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-meta{
  margin-top: 6px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sr-pill{
  font-size: .82rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}

.sr-status-ongoing{ background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.22); }
.sr-status-completed{ background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.22); }
.sr-status-announced{ background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.22); }

.sr-rating i{ margin-right: 4px; }

.sr-empty{
  padding: 18px 14px;
  text-align:center;
  color: var(--text-muted);
}
.sr-empty-icon{ font-size: 1.4rem; margin-bottom: 8px; opacity: .8; }
.sr-empty-title{ font-weight: 800; color: rgba(255,255,255,0.92); }
.sr-empty-sub{ margin-top: 4px; }

/* фикс высоты карточки и контейнера */
.recommendation-slides {
    position: relative;
    height: 420px;       /* было min-height */
    min-height: 420px;
}

.recommendation-card {
    position: absolute;
    inset: 0;
}

/* стрелки вынести за границы */
.recommendation-slider { position: relative; }
.recommendation-slider .carousel-prev { left: -56px; }
.recommendation-slider .carousel-next { right: -56px; }

/* чтобы кнопки не улетали на маленьких экранах */
@media (max-width: 1100px) {
  .recommendation-slider .carousel-prev { left: -14px; }
  .recommendation-slider .carousel-next { right: -14px; }
}

/* на мобилках оставляем как было (без абсолютов) */
@media (max-width: 768px) {
    .recommendation-slides {
        height: auto;
        min-height: auto;
    }
    .recommendation-card {
        position: relative;
        opacity: 0;
        transform: translateX(0);
    }
    .recommendation-card.active {
        opacity: 1;
    }
}
/* ===== Кнопки пропуска опенинга/эндинга ===== */
.skip-overlay-left,
.skip-overlay-right {
  position: absolute;
  bottom: 80px;
  z-index: 50;
  pointer-events: none;
}

.skip-overlay-left {
  left: 16px;
}

.skip-overlay-right {
  right: 16px;
}

.skip-op-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  animation: skipBtnAppear 0.3s ease-out;
}

.skip-op-btn:hover {
  background: rgba(124, 58, 237, 0.9);
  border-color: rgba(124, 58, 237, 0.5);
  transform: scale(1.03);
}

.skip-op-btn:active {
  transform: scale(0.97);
}

@keyframes skipBtnAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Скрытие кнопки */
.skip-op-btn.d-none {
  display: none !important;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .skip-overlay-left,
  .skip-overlay-right {
    bottom: 90px;
  }
  
  .skip-overlay-left {
    left: 10px;
  }
  
  .skip-overlay-right {
    right: 10px;
  }
  
  .skip-op-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .skip-overlay-left,
  .skip-overlay-right {
    bottom: 100px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .skip-op-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* ===== Оверлей следующей серии ===== */
.next-episode-overlay {
  position: absolute;
  bottom: 80px;
  right: 16px;
  z-index: 50;
}

.next-episode-overlay.d-none {
  display: none !important;
}

@media (max-width: 768px) {
  .next-episode-overlay {
    bottom: 90px;
    right: 10px;
  }
}
/* ===== СКРЫТИЕ КУРСОРА ===== */
.video-player.controls-hidden {
    cursor: none;
}

.video-player.controls-hidden video {
    cursor: none;
}

.video-player.controls-hidden .tap-zone,
.video-player.controls-hidden .tap-zone-center {
    cursor: none;
}

/* Когда контролы видны — курсор обычный */
.video-player:not(.controls-hidden) {
    cursor: default;
}

.video-player:not(.controls-hidden) .tap-zone,
.video-player:not(.controls-hidden) .tap-zone-center {
    cursor: pointer;
}

/* В полноэкранном режиме тоже скрываем */
.video-player.fullscreen-mode.controls-hidden {
    cursor: none !important;
}

.video-player.fullscreen-mode.controls-hidden * {
    cursor: none !important;
}