/* ============================================
   ANI-APP.RU EXACT COPY
   Точная копия дизайна ani-app.ru
   ============================================ */

:root {
    /* Точные цвета с ani-app.ru */
    --ani-bg: #0f0f12;
    --ani-bg-secondary: #1a1a1f;
    --ani-bg-card: #23232a;
    --ani-bg-hover: #2d2d35;
    --ani-primary: #ff4f6a;
    --ani-primary-hover: #ff6b82;
    --ani-text: #ffffff;
    --ani-text-secondary: #a0a0a8;
    --ani-text-muted: #6a6a70;
    --ani-border: #2a2a30;
    --ani-rating: #ffb400;
    --ani-green: #4ade80;
    --ani-blue: #60a5fa;
}

/* ============================================
   ГЛАВНАЯ СТРАНИЦА - ТОЧНО КАК NA ANI-APP.RU
   ============================================ */

/* Hero Banner - Огромный баннер на весь экран */
.hero {
    position: relative;
    height: 85vh;
    min-height: 650px;
    max-height: 1000px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 15, 18, 0.2) 40%,
        var(--ani-bg) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 80px;
    max-width: 900px;
    margin-bottom: 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 79, 106, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 79, 106, 0.3);
    margin-bottom: 24px;
    color: var(--ani-primary);
}

.hero-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--ani-text);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 650px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

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

.hero-buttons .btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    transition: all 0.2s ease;
}

/* Section Titles - ТОЧНО КАК НА ani-app.ru */
.section-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    margin: 80px 0 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ani-text);
}

.section-title::before {
    content: '';
    width: 5px;
    height: 36px;
    background: linear-gradient(180deg, var(--ani-primary) 0%, #ff6b82 100%);
    border-radius: 4px;
}

/* ============================================
   СТРАНИЦА АНИМЕ - ТОЧЬ В ТОЧЬ
   ============================================ */

.anime-detail-page {
    padding: 0;
    background: var(--ani-bg);
}

.anime-detail-header {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 0;
    background: linear-gradient(135deg, var(--ani-bg-secondary) 0%, var(--ani-bg) 100%);
    border-radius: 0;
    border: none;
    overflow: hidden;
    min-height: 700px;
}

.anime-detail-poster {
    position: relative;
    display: block;
    height: 100%;
    max-width: 274px;
    max-height: 380px;
}

.anime-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 274px;
    max-height: 380px;
}

.anime-detail-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        var(--ani-bg-secondary) 100%
    );
    pointer-events: none;
}

/* Кнопки НА постере - ТОЧНО КАК NA ani-app.ru */
.anime-list-buttons {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 10;
}

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

.anime-list-buttons .btn-status {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.anime-list-buttons .btn-status:hover {
    background: linear-gradient(135deg, var(--ani-primary) 0%, var(--ani-primary-hover) 100%);
    border-color: var(--ani-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 79, 106, 0.4);
}

/* Кнопки по 3 в ряд */
.anime-list-buttons-row-1,
.anime-list-buttons-row-2 {
    display: flex;
    gap: 12px;
}

.anime-list-buttons-row-1 .btn-status,
.anime-list-buttons-row-2 .btn-status {
    flex: 1;
    min-width: 0;
}

.btn-favorites {
    background: rgba(255, 79, 106, 0.2) !important;
    border-color: var(--ani-primary) !important;
}

.btn-favorites:hover {
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%) !important;
}

.anime-detail-info {
    padding: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.anime-detail-info h1 {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

.anime-detail-original-title {
    font-size: 20px;
    color: var(--ani-text-secondary);
    margin: 0;
    font-weight: 400;
}

.anime-detail-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.anime-detail-stat,
.anime-detail-rating {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.anime-detail-rating {
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%);
    border: none;
    color: white;
}

.anime-detail-description {
    color: var(--ani-text-secondary);
    line-height: 1.8;
    margin: 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--ani-primary);
    border-radius: 0 12px 12px 0;
    font-size: 15px;
}

.anime-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
}

.anime-detail-meta-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.anime-detail-meta-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ani-primary);
    transform: translateY(-2px);
}

.anime-detail-meta-label {
    font-size: 12px;
    color: var(--ani-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.anime-detail-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ani-text);
}

/* Player Section */
.player-section {
    background: var(--ani-bg-secondary);
    border-radius: 0;
    padding: 80px;
    margin: 0;
    border: none;
    border-top: 1px solid var(--ani-border);
}

.player-section-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--ani-border);
}

/* ============================================
   CARDS - ТОЧНО КАК NA ani-app.ru
   ============================================ */

.anime-card {
    background: transparent;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.anime-card:hover {
    transform: translateY(-12px);
}

.anime-card-poster {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: var(--ani-bg-card);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.anime-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.anime-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 79, 106, 0.4);
}

.anime-card-age {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

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

.anime-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ani-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.anime-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--ani-text-secondary);
}

/* ============================================
   SLIDER
   ============================================ */

.slider {
    padding: 24px 0;
    margin: 0;
}

.slider-nav {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    border-radius: 14px;
}

.slider-nav:hover {
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%);
    border-color: var(--ani-primary);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: rgba(255, 79, 106, 0.15);
    color: var(--ani-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ani-primary) 0%, #ff6b82 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 79, 106, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 79, 106, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

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

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

@media (max-width: 1200px) {
    .anime-detail-header {
        grid-template-columns: 350px 1fr;
    }
    
    .anime-detail-info {
        padding: 60px;
    }
}

@media (max-width: 1024px) {
    .anime-detail-header {
        grid-template-columns: 1fr;
    }
    
    .anime-detail-poster {
        height: 500px;
    }
    
    .anime-detail-poster::after {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            var(--ani-bg-secondary) 100%
        );
    }
    
    .anime-list-buttons {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 24px;
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 40px 24px;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .anime-detail-info {
        padding: 40px 24px;
    }
    
    .player-section,
    #franchiseSection,
    #commentsContainer {
        padding: 40px 24px;
    }
}
