/*
Theme Name: BEAST Empire
Description: Advanced Mobile-First Anime Tracking Architecture
Version: 5.0.0
*/
:root {
    --b-bg-base: #040406; --b-bg-surface: #0a0b10; --b-bg-elevated: #13151c;
    --b-accent: #e11d48; --b-accent-alt: #10b981;
    --b-text-main: #f8fafc; --b-text-muted: #64748b;
    --b-border: rgba(255, 255, 255, 0.08); --b-radius: 12px;
}
body { margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--b-bg-base); color: var(--b-text-main); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: 70px; /* Space for mobile nav */ }
* { box-sizing: border-box; } a { text-decoration: none; color: inherit; transition: 0.3s; }
.b-container { max-width: 1500px; margin: 0 auto; padding: 0 4vw; }

/* Desktop Header */
.b-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(4,4,6,0.9); backdrop-filter: blur(15px); border-bottom: 1px solid var(--b-border); padding: 15px 0; }
.b-nav { display: flex; justify-content: space-between; align-items: center; }
.b-logo { font-size: 1.8rem; font-weight: 900; color: #fff; } .b-logo span { color: var(--b-accent); }
.b-desktop-search { display: flex; flex: 1; max-width: 400px; margin: 0 30px; position: relative; }
.b-search-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--b-border); padding: 10px 20px; border-radius: 30px; color: #fff; outline: none; transition: 0.3s; }
.b-search-input:focus { border-color: var(--b-accent); }
.b-menu { display: flex; gap: 20px; list-style: none; margin: 0; font-weight: 700; text-transform: uppercase; font-size: 0.9rem;}
.b-menu a:hover { color: var(--b-accent); }
.b-actions { display: flex; gap: 15px; align-items: center; }
.b-action-btn { background: transparent; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem;}
.b-action-btn:hover { color: var(--b-accent); }

/* Global Cards */
.b-card { position: relative; display: flex; flex-direction: column; aspect-ratio: 2/3; border-radius: var(--b-radius); overflow: hidden; background: var(--b-bg-surface); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.3s; border: 1px solid transparent; }
.b-card:hover { transform: translateY(-6px); border-color: var(--b-accent); z-index: 10; }
.b-card-img-wrap { width: 100%; height: 100%; position: absolute; inset: 0; }
.b-card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.b-card:hover .b-card-img { filter: brightness(0.6); transform: scale(1.05); }
.b-card-meta { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; }
.b-badge { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 900; border: 1px solid rgba(255,255,255,0.1); }
.b-badge.score { color: #fbbf24; }
.b-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 15px 15px; background: linear-gradient(to top, rgba(4,4,6,0.95), transparent); z-index: 2; }
.b-card-title { color: #fff; font-weight: 800; font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Horizontal Sliders */
.b-section { margin-bottom: 50px; }
.b-sec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.b-sec-title { font-size: 1.4rem; font-weight: 900; margin: 0; color: #fff; border-left: 4px solid var(--b-accent); padding-left: 12px; text-transform: uppercase; }
.b-slider-track { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b-slider-track::-webkit-scrollbar { display: none; }
.b-slide-item { flex: 0 0 180px; scroll-snap-align: start; }

/* Grid & Infinite Load */
.b-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.b-load-more { display: block; width: 100%; max-width: 300px; margin: 0 auto; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--b-border); padding: 15px; border-radius: 30px; font-weight: 900; text-align: center; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.b-load-more:hover, .b-load-more.loading { background: var(--b-accent); border-color: var(--b-accent); }

/* Mobile Bottom Nav */
.b-mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(10,11,16,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--b-border); z-index: 10000; padding: 10px 20px; justify-content: space-between; align-items: center; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.b-mob-btn { color: var(--b-text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; cursor: pointer; border: none; background: transparent; outline: none; transition: 0.2s;}
.b-mob-btn:hover, .b-mob-btn.active { color: var(--b-accent); }

/* Left Drawer */
#b-left-drawer { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: var(--b-bg-surface); border-right: 1px solid var(--b-border); z-index: 100001; transition: 0.3s; padding: 20px; display: flex; flex-direction: column; box-shadow: 10px 0 30px rgba(0,0,0,0.8);}
#b-left-drawer.open { left: 0; }
.b-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100000; display: none; opacity: 0; transition: 0.3s;}
.b-drawer-overlay.active { display: block; opacity: 1; }

/* Responsiveness */
@media (max-width: 900px) {
    .b-menu, .b-desktop-search, .action-text { display: none; }
    .b-mobile-bottom-nav { display: flex; }
    .b-slide-item { flex: 0 0 140px; }
    .b-grid-container { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
