/* Цвета навигации для светлой темы */
        .desktop-nav a,
        .bottom-nav .nav-item {
            color: #000;
        }

        /* Цвета навигации для темной темы */
        [data-theme="dark"] .desktop-nav a,
        [data-theme="dark"] .bottom-nav .nav-item {
            color: #ffffff;
        }

        /* Временно скрываем переключатель языков */
        .lang-switch, #langSwitch, #mobileLangSwitch {
            display: none !important;
        }

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

        :root {
            --bg-color: #f5f5f5;
            --card-bg: #ffffff;
            --text-color: #333;
            --border-color: #e0e0e0;
            --primary-color: #ff8a50;
            --primary-hover: #ff7043;
            --secondary-color: #666;
            --shadow: 0 2px 8px rgba(0,0,0,0.1);
            --header-height: 60px;
            --mobile-bottom-nav: 60px;
            
            /* Для совместимости со старыми стилями */
            --bg-primary: var(--card-bg);
            --bg-secondary: var(--card-bg);
            --bg-tertiary: #e9ecef;
            --text-primary: var(--text-color);
            --text-secondary: var(--secondary-color);
            --text-muted: #868e96;
            --accent-primary: var(--primary-color);
            --accent-hover: var(--primary-hover);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
        }

        [data-theme="dark"] {
            --bg-color: #1a1a1a;
            --card-bg: #2d2d2d;
            --text-color: #ffffff;
            --border-color: #444;
            --secondary-color: #aaa;
            --shadow: 0 2px 8px rgba(0,0,0,0.3);
            
            /* Для совместимости */
            --bg-primary: #121212;
            --bg-secondary: #1e1e1e;
            --bg-tertiary: #2a2a2a;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --text-muted: #666666;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            padding-bottom: var(--mobile-bottom-nav);
            /* Оптимизации производительности */
            will-change: scroll-position;
            -webkit-overflow-scrolling: touch;
        }

        /* Header - унифицированный с catalog.html */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: var(--card-bg);
            border-bottom: 1px solid var(--border-color);
            display: none;
            align-items: center;
            padding: 0 32px;
            z-index: 1000;
            box-shadow: var(--shadow);
        }

        .logo {
            font-size: 20px;
            font-weight: bold;
            color: var(--primary-color);
            margin-right: auto;
            cursor: pointer;
            text-decoration: none;
        }

        .logo:hover {
            color: var(--primary-hover);
        }

        .desktop-nav {
            display: flex;
            gap: 24px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .desktop-nav a {
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
        }

        .desktop-nav a.active {
            background: var(--primary-color);
            color: white;
        }

        .desktop-nav a:hover {
            background: var(--primary-hover);
            color: white;
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .lang-switch, .theme-toggle {
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--card-bg);
            color: var(--text-color);
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s ease;
        }

        .theme-toggle {
            font-size: 16px;
            width: 40px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .profile-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
            border: none;
        }

        .profile-btn:hover {
            background: var(--primary-hover);
            transform: scale(1.05);
        }

        .profile-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
        }

        /* Mobile Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--mobile-bottom-nav);
            background: var(--card-bg);
            border-top: 1px solid var(--border-color);
            display: flex;
            z-index: 1000;
            backdrop-filter: blur(8px);
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 11px;
            gap: 4px;
            transition: all 0.2s ease;
            cursor: pointer;
            user-select: none;
        }

        .nav-item.active {
            color: var(--primary-color);
        }

        .nav-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-icon svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        /* Main Content */
        .main-content {
            margin-top: 0;
            min-width: 300px;
        }

        /* Hero Carousel */
        .hero-section {
            position: relative;
            height: 400px;
            overflow: hidden;
            margin-bottom: 40px;
        }

        .carousel-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
        }

        .carousel-slide.active {
            opacity: 1;
        }

        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.3) 50%,
                rgba(0, 0, 0, 0.1) 100%
            );
        }

        .slide-content {
            position: absolute;
            bottom: 60px;
            left: 40px;
            max-width: 500px;
            z-index: 2;
        }

        .slide-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 16px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .slide-description {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .slide-meta {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
        }

        .slide-badge {
            background: var(--accent-primary);
            color: white;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            font-size: 0.875rem;
            font-weight: 600;
        }

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

        .btn {
            padding: 12px 24px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

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

        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(8px);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            right: 40px;
            display: flex;
            gap: 8px;
            z-index: 3;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.2s;
        }

        .indicator.active {
            background: var(--accent-primary);
            transform: scale(1.2);
        }

        /* Content Sections */
        .content-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section {
            margin-bottom: 48px;
        }

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

        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-icon {
            font-size: 1.5rem;
        }

        .view-all-btn {
            color: var(--accent-primary);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .view-all-btn:hover {
            color: var(--accent-hover);
            transform: translateX(4px);
        }

        /* Manga Grid */
        .manga-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            min-height: 300px;
            max-width: 1200px;
            margin: 0 auto;
            /* Оптимизации производительности */
            contain: layout style paint;
            will-change: contents;
        }

        /* Десктоп - 5 колонок */
        @media (min-width: 1200px) {
            .manga-grid {
                grid-template-columns: repeat(5, 1fr);
                max-width: 1200px;
            }
        }

        /* Планшет - 4 колонки */
        @media (min-width: 768px) and (max-width: 1199px) {
            .manga-grid {
                grid-template-columns: repeat(4, 1fr);
                max-width: 960px;
            }
        }

        /* Мобильные - 3 колонки */
        @media (max-width: 767px) {
            .manga-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
                max-width: 100%;
                margin: 0 10px;
            }
        }

        /* Очень маленькие экраны - 2 колонки */
        @media (max-width: 480px) {
            .manga-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        /* Manga Card */
        .manga-card {
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .manga-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }

        .card-image-container {
            position: relative;
            aspect-ratio: 3/4;
            overflow: hidden;
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
            /* Оптимизации для изображений */
            will-change: transform;
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        .manga-card:hover .card-image {
            transform: scale(1.05);
        }

        .card-badges {
            position: absolute;
            top: 8px;
            right: 8px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            z-index: 2;
        }

        .badge {
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            font-size: 11px;
            font-weight: 600;
            backdrop-filter: blur(4px);
        }

        .badge.rating {
            background: var(--accent-primary);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .badge.new {
            background: #28a745;
        }

        .badge.hot {
            background: #dc3545;
        }

        .badge.updated {
            background: #ffc107;
            color: #000;
        }

        .card-info {
            padding: 12px;
        }

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

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .card-chapters {
            font-weight: 500;
        }

        .card-type {
            background: var(--bg-tertiary);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
        }

        .card-time {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Donation Progress Bar */
        .progress-bar {
            width: 100%;
            height: 3px;
            background-color: rgba(255,255,255,0.3);
            border-radius: 2px;
            margin-top: 2px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), #ff7043);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        /* Темная тема для прогресс-бара */
        [data-theme="dark"] .progress-bar {
            background-color: rgba(255,255,255,0.1);
        }

        /* News Section */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
        }

        .news-card {
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .news-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .news-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .news-excerpt {
            color: var(--text-secondary);
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: var(--text-muted);
        }

        .news-tag {
            background: var(--accent-primary);
            color: white;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            font-size: 10px;
            font-weight: 600;
        }

        /* Recent Updates */
        .updates-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .update-item {
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            gap: 16px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .update-item:hover {
            background: var(--bg-tertiary);
            transform: translateX(4px);
        }

        .update-image {
            width: 60px;
            height: 80px;
            border-radius: var(--radius-sm);
            object-fit: cover;
            flex-shrink: 0;
        }

        .update-content {
            flex: 1;
            min-width: 0;
        }

        .update-title {
            font-weight: 600;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .update-chapter {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 4px;
        }

        .update-time {
            color: var(--text-muted);
            font-size: 12px;
        }

        /* Loading */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: var(--text-secondary);
        }

        .spinner {
            width: 32px;
            height: 32px;
            border: 3px solid var(--border-color);
            border-top: 3px solid var(--accent-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 16px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Side Menu */
        .side-menu {
            position: fixed;
            top: 0;
            right: -300px;
            width: 300px;
            height: 100vh;
            background: var(--card-bg);
            box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
            z-index: 2000;
            transition: right 0.3s ease;
            padding: var(--header-height) 0 0 0;
            overflow-y: auto;
        }

        .side-menu.open {
            right: 0;
        }

        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1500;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .menu-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .auth-buttons {
            padding: 20px;
        }

        .auth-btn {
            width: 100%;
            padding: 12px;
            margin-bottom: 12px;
            border: 1px solid var(--accent-primary);
            border-radius: var(--radius-sm);
            background: var(--accent-primary);
            color: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .auth-btn:hover {
            background: var(--accent-hover);
        }

        /* User Section */
        .user-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--accent-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            color: white;
        }

        .user-avatar svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
        }

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

        .user-email {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Mobile Theme Toggle */
        .mobile-theme-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .mobile-theme-toggle span {
            color: var(--text-primary);
            font-weight: 500;
        }

        .mobile-theme-btn {
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--card-bg);
            color: var(--text-color);
            cursor: pointer;
            font-size: 16px;
            width: 40px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .mobile-theme-btn:hover {
            border-color: var(--primary-color);
        }

        .mobile-theme-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
        }

        /* Mobile Language Select */
        .mobile-lang-select {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .mobile-lang-select select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--card-bg);
            color: var(--text-color);
            cursor: pointer;
        }

        .menu-item {
            display: block;
            padding: 16px 20px;
            color: var(--text-primary);
            text-decoration: none;
            border-bottom: 1px solid var(--border-color);
            transition: background 0.2s;
            cursor: pointer;
        }

        .menu-item:hover {
            background: var(--bg-color);
        }

        .logout-btn {
            color: #dc3545;
        }

        .notification {
            position: fixed;
            top: 80px;
            right: 20px;
            background: #10b981;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            box-shadow: var(--shadow);
            z-index: 1000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            max-width: 300px;
            font-weight: 500;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.error {
            background: #ef4444;
        }

        .notification.warning {
            background: #f59e0b;
        }

        .notification.info {
            background: #3b82f6;
        }

        /* Responsive */
        @media (min-width: 768px) {
            body {
                padding-bottom: 0;
            }
            
            .header {
                display: flex;
            }
            
            .main-content {
                margin-top: var(--header-height);
            }
            
            .bottom-nav {
                display: none;
            }

            .slide-content {
                bottom: 80px;
                left: 60px;
            }

            .slide-title {
                font-size: 3rem;
            }

            .slide-description {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                height: 250px;
            }

            .slide-content {
                bottom: 40px;
                left: 20px;
                right: 20px;
                max-width: none;
            }

            .slide-title {
                font-size: 1.75rem;
            }

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

            .slide-actions {
                flex-direction: column;
                gap: 12px;
            }

            .carousel-indicators {
                bottom: 16px;
                right: 20px;
            }

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

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

/* ========== HERO SECTION STYLES ========== */
.hero-section {
    margin-bottom: 48px;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Видео плеер чуть больше */
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 420px;
}

.hero-left {
    display: flex;
    justify-content: center;
}

.hero-right {
    padding: 20px 0;
}

.video-player {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card-bg);
    aspect-ratio: 16/9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--primary-color);
    width: 100%;
    max-width: 500px; /* Ограничение ширины плеера */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

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

.play-button {
    position: absolute;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-left: 4px; /* Центрирование треугольника */
}

/* Hero Content Styles */
.featured-content {
    text-align: left;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 32px;
}

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

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 138, 80, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 138, 80, 0.4);
}

.hero-btn.secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.hero-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Планшеты (1024px и меньше) - постепенный переход */
@media (max-width: 1024px) {
    .hero-content {
        gap: 30px;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Средние планшеты (900px и меньше) - начинаем адаптацию */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .hero-right {
        order: -1; /* Текст наверх */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .video-player {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Средние экраны (769px - 900px) - адаптация для узких планшетов/небольших ноутбуков */
@media (min-width: 769px) and (max-width: 900px) {
    .hero-section {
        position: relative;
        height: 400px;
        overflow: hidden;
        margin-top: 25px;
        margin-bottom: 25px;
        padding: 0 20px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: auto;
        text-align: center;
        gap: 20px;
    }

    .hero-left {
        width: 100%;
        max-width: 400px;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
        margin-bottom: 15px;
    }

    .hero-right {
        display: none;
    }

    .video-player {
        width: 100%;
        max-width: 400px;
        border-width: 2px;
    }

    /* Заголовки для средних экранов */
    .hero-content::before {
        content: "🦊 Light Fox Manga";
        display: block;
        text-align: center;
        margin-bottom: 10px;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--primary-color);
        width: 100%;
    }

    .hero-content::after {
        content: "🌟 Топ 1 русский голос манги 🌟";
        display: block;
        text-align: center;
        margin-bottom: 25px;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-color);
        width: 100%;
    }
}

/* Мобильные устройства (768px и меньше) - полная мобильная версия */
@media (max-width: 768px) {
    .hero-section {
        position: relative;
        height: 400px;
        overflow: hidden;
        margin-top: 35px;
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: auto;
        text-align: center;
    }

    /* Мобильный заголовок - основной */
    .hero-content::before {
        content: "🦊 Light Fox Manga";
        display: block;
        text-align: center;
        margin-bottom: 8px;
        font-size: clamp(1.3rem, 4vw, 1.5rem);
        font-weight: 700;
        color: var(--primary-color);
        width: 100%;
    }
    
    /* Мобильный подзаголовок - звездочки */
    .hero-content::after {
        content: "🌟 Топ 1 русский голос манги 🌟";
        display: block;
        text-align: center;
        margin-bottom: 20px;
        font-size: clamp(0.9rem, 3vw, 1rem);
        font-weight: 500;
        color: var(--text-color);
        width: 100%;
    }

    .hero-left {
        width: 100%;
        max-width: min(90vw, 500px);
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero-right {
        display: none;
    }

    .video-player {
        width: 100%;
        max-width: 100%;
        border-width: 2px;
    }

    .play-button {
        width: clamp(50px, 12vw, 60px);
        height: clamp(50px, 12vw, 60px);
    }

    .play-button svg {
        width: clamp(20px, 5vw, 24px);
        height: clamp(20px, 5vw, 24px);
    }
}

/* Очень маленькие экраны (480px и меньше) */
@media (max-width: 480px) {
    .hero-section {
        position: relative;
        height: 350px;
        overflow: hidden;
        margin-top: 25px;
        margin-bottom: 25px;
        padding: 0 12px;
    }
    
    .hero-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-left {
        max-width: 95vw;
    }

    .hero-content::before {
        font-size: 1.2rem;
    }

    .hero-content::after {
        font-size: 0.85rem;
    }
}

/* Очень широкие экраны (1400px и больше) */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1400px;
        gap: 60px;
    }
    
    .video-player {
        max-width: 600px;
    }
}