:root {
    --primary: #ff4757; /* Jonli qizil-to'q sariq (Aniclub uslubi) */
    --surface: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass: rgba(255, 255, 255, 0.8);
    --text-dark: #2f3542;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body { background: var(--bg-gradient); color: var(--text-dark); min-height: 100vh; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: var(--glass); backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { font-size: 22px; font-weight: 800; color: var(--text-dark); letter-spacing: -1px; }
.logo span { color: var(--primary); }

.search-container input {
    border: none; background: rgba(0,0,0,0.05); padding: 10px 20px;
    border-radius: 50px; outline: none; width: 150px; transition: 0.3s;
}
.search-container input:focus { width: 200px; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Hero Slider */
.hero { width: 100%; height: 420px; position: relative; overflow: hidden; background: #000; }
.slide { 
    position: absolute; inset: 0; opacity: 0; transition: 1s ease-in-out;
    display: flex; align-items: flex-end; padding: 40px 5%;
}
.slide.active { opacity: 1; }
.slide-bg { 
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.6); z-index: 1;
}
.slide-info { position: relative; z-index: 2; color: #fff; max-width: 600px; }
.slide-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Grid */
.main-container { padding: 30px 5%; }
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.section-title { font-size: 24px; font-weight: 800; color: var(--text-dark); }

.btn-all { 
    background: var(--primary); color: #fff; border: none; padding: 8px 20px; 
    border-radius: 50px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

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

@media (min-width: 1024px) {
    .anime-grid { grid-template-columns: repeat(5, 1fr); gap: 25px; }
}

/* Card */
.card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.4s; position: relative;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card-poster { aspect-ratio: 2/3; overflow: hidden; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.card-title { padding: 12px; font-size: 14px; font-weight: 700; text-align: center; }

/* Modal */
.glass-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.glass-modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(10px); }
.modal-content { 
    position: relative; background: #fff; width: 100%; max-width: 450px;
    padding: 30px; border-radius: 30px; animation: pop 0.3s ease-out;
}
@keyframes pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.btn-watch {
    display: block; width: 100%; background: var(--primary); color: #fff;
    padding: 16px; border-radius: 15px; text-align: center; text-decoration: none;
    font-weight: 800; margin-top: 20px; font-size: 16px;
}