/* 🎯 Perfect 3D Flip Card - بدون جابجایی! */
/* Title Section */
.title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

.anime-card:hover .title-section {
    background: linear-gradient(to top, rgba(255,0,128,0.25), transparent);
}

.anime-title {
    text-align:center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

/* بقیه CSS همون بمونه */
/* 🎯 PERFECT FLIP - بدون جابجایی! */
.anime-card {
    width: 300px;
    height: 530px;
    display: inline-block;
    margin: 15px;
    perspective: 1200px;
}

.anime-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-origin: center;
}

.anime-card:hover .anime-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back */
.anime-card-front, .anime-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}
/* رده سنی DIV بزرگ */
.age-rating-box {
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255,193,7,0.2);
}
/* Back اطلاعات */
.back-info-grid {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #adb5bd;
    min-width: 45px;
}
.age-rating-simple {
    color: white;
    padding: 3px;
    margin-bottom: 0px;
    margin-top: -20px;
}
/* Front رده سنی ساده */
.age-rating-simple span {

     color: #ffc107 !important;
    font-size: 0.75rem !important;
}

.age-rating-box i {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* رده سنی */
.age-rating-badge {
    font-size: 0.65rem;
    border: 1px solid #ffc107;
}
/* رده سنی بزرگ + برجسته */
.age-rating-item {
    padding: 2px 6px;
    background: linear-gradient(45deg, rgba(255,193,7,0.1), rgba(255,152,0,0.1));
    border-radius: 6px;
    border: 1px solid rgba(255,193,7,0.3);
}

.age-rating-item .text-warning {
    font-size: 0.85em !important;
    font-weight: 700 !important;
}

/* استودیو حذف شد - جای خالیش رو رده سنی گرفت */

.anime-card-front {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.anime-card-back {
    background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,0,150,0.3);
    transform: rotateY(180deg);
    display: flex;
    padding: 25px;
}

/* Poster Container */
.poster-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Season Badge */
.season-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255,0,128,0.4);
}

/* Play Button */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.anime-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(255,0,128,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    background: #ff0080;
    transform: scale(1.1);
}

/* Info Panel - عادی flow */
.info-panel {

    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    flex: 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.anime-card:hover .info-panel {
    background: linear-gradient(to top, rgba(255,0,128,0.2), transparent);
}

/* Back Content */
.back-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: white;
    padding: 10px 0;
}

.title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff0080, #00d4ff);
    -webkit-text-fill-color: transparent;
}

.categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.category-badge {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.description {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 20px;
    overflow: hidden;
}

.back-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .anime-card {
        width: 250px;
        height: 400px;
    }
    .poster-container {
        height: 290px;
    }
}
/* کیفیت + دوبله */
.quality-row {
    display: flex;
    justify-content: space-between !important;
    margin-bottom: 12px;
}

.quality-badge {
    background: linear-gradient(45deg, #00d4ff, #0099ff);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,212,255,0.4);
}

.subtitle-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.subtitle-badge.sub {
    background: rgba(255,193,7,0.2);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.5);
}

.subtitle-badge.dub {
    background: rgba(40,167,69,0.2);
    color: #28a745;
    border: 1px solid rgba(40,167,69,0.5);
}

/* بازدید counter */
.view-badge {
    align-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-badge:hover {

    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(220,53,69,0.6);
}

/* عنوان انگلیسی */
.title-en {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    font-weight: 500;
}

/* بقیه CSS همون */
/* نوع انیمه */
.type-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255,215,0,0.4);
}

/* عنوان انگلیسی */
.anime-title-en {
    text-align:center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin: 4px 0 12px 0;
    font-weight: 500;
}

/* بقیه CSS همون */
/* Hero Featured */
.hero-banner {
    min-height: 50vh;
    position: relative;
}

.featured-slider {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 10;
}

.featured-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    transition: all 0.4s ease;
    overflow: hidden;
    height: 140px;
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(220,53,69,0.4);
}

.featured-card img {
    height: 90px;
    object-fit: cover;
    width: 100%;
}

.featured-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.featured-card-link {
    text-decoration: none;
}

.hero-poster {
    max-height: 400px;
    border-radius: 25px !important;
}
/* برف ستاره‌ای backdrop */
body {
    background: linear-gradient(135deg, #2e1226 0%, #053052 50%, #000000 100%);
    overflow-x: hidden;
}
.dark body {
    background: linear-gradient(135deg, #ee08c8 0%, #0e1f32 50%, #490481 100%);
    overflow-x: hidden;
}

/* Hero با برف */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0,0,0,0.85), 
        rgba(20,0,40,0.95)) !important;
    backdrop-filter: blur(1px);
}

/* Performance optimization */
#snowflakes-canvas {
    will-change: transform;
}
.hero-banner {
    display: flex;
    align-items: center;
}

.hero-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.hero-card {
    flex: 0 0 auto;
    height: 500px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.hero-poster-container {
    position: relative;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #1a0033, #000);
    transition: all 0.4s ease;
}

.hero-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-poster-container:hover .hero-poster {
    transform: scale(1.1);
}

.hero-poster-container:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 35px 70px rgba(220,53,69,0.4) !important;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 25px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.hero-poster-container:hover .hero-overlay {
    transform: translateY(0);
}

.hero-title {
    color: #fff;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-info .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Navigation دکمه‌ها */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-nav:hover {
    background: rgba(220,53,69,0.9) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(220,53,69,0.4);
}

.prev-btn {
    right: 20px;
}

.next-btn {
    left: 20px;
}

.hero-poster-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}
