/* --- GLOBAL RESETS & THEME DEFINITIONS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background-color: #0b0c10;
    color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 60px;
}
a {
    text-decoration: none;
    color: inherit;
}

/* --- PREMIUM NAVIGATION HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 4%;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: baseline;
}
.Anima { font-size: 28px; font-weight: 700; letter-spacing: 0.5px; color: #fff; }
.X { color: #ff4a57; font-size: 32px; font-weight: 800; }

.nav-menu { list-style: none; display: flex; gap: 30px; }
.nav-menu li a {
    color: #b3b3b3;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}
.nav-menu li a:hover, .nav-menu li a.active { color: #ffffff; }
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0;
    background-color: #ff4a57; border-radius: 2px; transition: width 0.3s ease;
}
.nav-menu li a:hover::after, .nav-menu li a.active::after { width: 100%; }

.search-container { position: relative; display: flex; align-items: center; }
.search-container i { position: absolute; left: 15px; color: #666; font-size: 14px; }
.search-box {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 8px 15px 8px 38px; color: white; font-size: 14px;
    outline: none; width: 220px; transition: all 0.3s ease;
}
.search-box:focus { width: 280px; border-color: #ff4a57; background: #000; box-shadow: 0 0 15px rgba(255, 74, 87, 0.2); }

/* --- SITE CONTENT CONTAINER LABELS --- */
.main-container { max-width: 1400px; margin: 0 auto; padding: 40px 4%; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.section-title { font-size: 24px; font-weight: 600; position: relative; padding-left: 15px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 4px; background: #ff4a57; border-radius: 2px; }

/* --- CARD DISPLAY CORE ENGINE --- */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
.anime-card { background: #1f2833; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.03); cursor: pointer; }
.anime-card:hover { transform: translateY(-8px); border-color: rgba(255, 74, 87, 0.4); box-shadow: 0 12px 24px rgba(0,0,0,0.5); }
.card-img-wrapper { position: relative; width: 100%; padding-top: 140%; overflow: hidden; }
.card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.anime-card:hover .card-img-wrapper img { transform: scale(1.06); }
.episode-tag { position: absolute; top: 10px; left: 10px; background: rgba(11, 12, 16, 0.85); color: #ff4a57; padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 6px; }
.card-info { padding: 15px; }
.card-type { font-size: 11px; color: #ff4a57; font-weight: 600; margin-bottom: 5px; text-transform: uppercase; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.4; height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
