:root {
  --bg: #0d0d18;
  --bg2: #12121f;
  --bg3: #1a1a2e;
  --bg4: #1f1f35;
  --border: #ffffff0f;
  --accent: #c084fc;
  --accent2: #a855f7;
  --accent3: #7c3aed;
  --text: #f0f0f8;
  --muted: #6b6b8a;
  --muted2: #9090b0;
  --radius: 12px;
  --radius-sm: 8px;
  --bottom-nav: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--bottom-nav);
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent3); border-radius: 4px; }

/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 9999; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 16px;
  transition: opacity 0.5s, visibility 0.5s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--bg3);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.loader-inner span {
  color: var(--accent); font-weight: 800;
  font-size: 1.1rem; letter-spacing: 3px;
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOP NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(13,13,24,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  height: 58px;
}
.navbar.scrolled { background: rgba(13,13,24,0.98); }
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; font-weight: 900;
  color: var(--accent); flex-shrink: 0;
  letter-spacing: -0.5px;
}
.nav-logo i { font-size: 1.4rem; }
.nav-search-bar {
  flex: 1; display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 24px; padding: 8px 16px; gap: 8px;
  max-width: 400px; margin-left: auto;
}
.nav-search-bar i { color: var(--muted); font-size: 0.875rem; flex-shrink: 0; }
.nav-search-bar input {
  background: transparent; border: none; color: var(--text);
  font-size: 0.875rem; width: 100%; min-width: 0;
}
.nav-search-bar input:focus { outline: none; }
.nav-search-bar button {
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: 0; display: flex;
}
.nav-menu-btn {
  background: none; border: none; color: var(--text);
  font-size: 1.3rem; cursor: pointer; padding: 4px;
  display: flex; align-items: center;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  background: rgba(13,13,24,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  height: var(--bottom-nav);
  padding: 0 8px;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 8px 4px;
  color: var(--muted); font-size: 0.65rem;
  font-weight: 600; transition: color 0.2s;
  text-align: center;
}
.bottom-nav a i { font-size: 1.2rem; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:hover { color: var(--muted2); }

/* ===== DRAWER ===== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: all 0.3s; backdrop-filter: blur(4px);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; background: var(--bg2);
  border-right: 1px solid var(--border);
  z-index: 201; transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 24px 0;
}
.drawer.open { transform: translateX(0); }
.drawer-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 24px;
  font-size: 1.3rem; font-weight: 900; color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.drawer-logo i { font-size: 1.6rem; }
.drawer-menu { flex: 1; padding: 16px 0; overflow-y: auto; }
.drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; color: var(--muted2);
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; cursor: pointer;
}
.drawer-item:hover, .drawer-item.active {
  color: var(--accent); background: #c084fc0f;
}
.drawer-item i { font-size: 1.1rem; width: 20px; text-align: center; }
.drawer-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative; margin-top: 58px;
  height: 260px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,13,24,0.95) 30%, rgba(13,13,24,0.3) 100%),
              linear-gradient(to top, rgba(13,13,24,1) 0%, transparent 60%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero-title {
  font-size: 1.3rem; font-weight: 800;
  line-height: 1.3; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 8px; }
.hero-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 24px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s;
}
.hero-btn.primary { background: var(--accent); color: #fff; }
.hero-btn.primary:hover { background: var(--accent2); }
.hero-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text); border: 1px solid rgba(255,255,255,0.2);
}
.hero-dots {
  position: absolute; bottom: 8px; right: 16px;
  display: flex; gap: 5px; align-items: center;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s; cursor: pointer; border: none;
}
.hero-dot.active {
  background: var(--accent); width: 18px;
}

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px 20px; }

/* ===== SECTION ===== */
.section { margin-bottom: 32px; }
.section-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.section-head h2 i { color: var(--accent); font-size: 1.1rem; }
.see-all {
  font-size: 0.78rem; color: var(--muted2);
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 20px;
  border: 1px solid var(--border); transition: all 0.2s;
}
.see-all:hover { color: var(--accent); border-color: var(--accent); }

/* ===== ANIME GRID ===== */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.anime-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg2); border: 1px solid var(--border);
  transition: all 0.25s; cursor: pointer;
}
.anime-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.anime-card[data-aos] { opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.4s; }
.anime-card[data-aos].visible { opacity: 1; transform: translateY(0); }
.card-thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.anime-card:hover .card-thumb img { transform: scale(1.05); }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.card-overlay i { font-size: 2.5rem; color: #fff; }
.anime-card:hover .card-overlay { opacity: 1; }
.card-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  padding: 2px 7px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-badge.ongoing { color: #4ade80; }
.card-badge.completed { color: #60a5fa; }
.card-badge.movie { color: var(--accent); }
.card-ep {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  padding: 2px 7px; border-radius: 4px;
  font-size: 0.65rem; color: var(--muted2);
}
.card-body { padding: 8px 10px; }
.card-body h3 {
  font-size: 0.78rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.card-meta { font-size: 0.68rem; color: var(--muted); }

/* ===== LANDSCAPE CARD (Jadwal) ===== */
.landscape-grid { display: flex; flex-direction: column; gap: 10px; }
.landscape-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  transition: all 0.2s; cursor: pointer;
}
.landscape-card:hover { border-color: var(--accent); background: var(--bg3); }
.landscape-thumb {
  width: 60px; height: 84px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
}
.landscape-thumb img { width: 100%; height: 100%; object-fit: cover; }
.landscape-info { flex: 1; min-width: 0; }
.landscape-info h3 {
  font-size: 0.85rem; font-weight: 700; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.landscape-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.landscape-meta span {
  font-size: 0.7rem; color: var(--muted);
  display: flex; align-items: center; gap: 3px;
}
.landscape-meta i { color: var(--accent); font-size: 0.65rem; }
.landscape-badge {
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase;
}
.landscape-badge.ongoing { background: #4ade8020; color: #4ade80; }
.landscape-badge.finished { background: #60a5fa20; color: #60a5fa; }

/* ===== GENRE PAGE ===== */
.genre-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.genre-banner-card {
  position: relative; height: 100px;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; border: 1px solid var(--border);
  transition: all 0.2s;
}
.genre-banner-card:hover { transform: scale(1.02); border-color: var(--accent); }
.genre-banner-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5);
}
.genre-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(192,132,252,0.3), transparent);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px;
}
.genre-banner-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 3px;
}
.genre-banner-name { font-size: 0.95rem; font-weight: 800; color: #fff; }

/* ===== SCHEDULE PAGE ===== */
.schedule-day-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 20px;
  scrollbar-width: none;
}
.schedule-day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; border-radius: 24px;
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; color: var(--muted2);
  min-width: 70px;
}
.day-tab span.count {
  font-size: 0.65rem; color: var(--muted);
  margin-top: 2px;
}
.day-tab.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}
.day-tab.active span.count { color: rgba(255,255,255,0.7); }
.schedule-section { display: none; }
.schedule-section.active { display: block; }
.schedule-day-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 800;
  color: var(--accent); margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

/* ===== DETAIL PAGE ===== */
.detail-hero {
  position: relative; margin-top: 58px;
  min-height: 280px; overflow: hidden;
}
.detail-bg {
  position: absolute; inset: 0;
  filter: blur(20px) brightness(0.3);
  transform: scale(1.1);
}
.detail-bg img { width: 100%; height: 100%; object-fit: cover; }
.detail-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
.detail-content {
  position: relative; z-index: 2;
  display: flex; gap: 16px; padding: 70px 16px 20px;
  align-items: flex-end;
}
.detail-poster-wrap {
  width: 110px; flex-shrink: 0;
}
.detail-poster-wrap img {
  width: 100%; border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.detail-meta-wrap { flex: 1; min-width: 0; }
.detail-meta-wrap h1 {
  font-size: 1.2rem; font-weight: 900;
  line-height: 1.3; margin-bottom: 6px;
}
.detail-jp { color: var(--muted2); font-size: 0.78rem; margin-bottom: 8px; }
.detail-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.detail-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--muted2);
}
.detail-stat i { color: var(--accent); font-size: 0.7rem; }
.detail-actions { display: flex; gap: 8px; margin-top: 12px; }
.detail-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 24px;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.2s;
}
.detail-btn.primary { background: var(--accent); color: #fff; }
.detail-btn.secondary {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border);
}
.detail-body { padding: 0 16px; }
.genre-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.genre-pill {
  padding: 4px 12px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--muted2);
  transition: all 0.2s;
}
.genre-pill:hover { border-color: var(--accent); color: var(--accent); }
.synopsis-text {
  color: var(--muted2); font-size: 0.85rem;
  line-height: 1.8; margin-bottom: 20px;
}
.synopsis-text.collapsed {
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.synopsis-toggle {
  background: none; border: none; color: var(--accent);
  font-size: 0.8rem; cursor: pointer; margin-top: -8px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 4px;
}

/* ===== EPISODE GRID ===== */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px; margin-bottom: 24px;
}
.ep-btn {
  padding: 8px 6px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted2); font-size: 0.75rem; font-weight: 700;
  text-align: center; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.ep-btn:hover { border-color: var(--accent); color: var(--accent); }
.ep-btn.active-ep { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== WATCH PAGE ===== */
.yt-watch { padding-top: 58px; }
.yt-player-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #000;
}
.yt-player-loading {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; background: #000;
}
.yt-player-loading p { color: var(--muted); font-size: 0.82rem; }
.yt-spinner {
  width: 44px; height: 44px;
  border: 3px solid #ffffff10;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#mainPlayer {
  position: absolute; inset: 0; width: 100%;
  height: 100%; border: none; z-index: 2;
}
.yt-body { padding: 14px 16px 20px; }
.yt-title-section { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.yt-title { font-size: 0.95rem; font-weight: 800; line-height: 1.5; margin-bottom: 6px; }
.yt-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.75rem; }
.yt-meta span { display: flex; align-items: center; gap: 4px; }
.yt-meta i { color: var(--accent); }
.yt-ep-nav { display: flex; gap: 8px; margin-bottom: 16px; }
.yt-nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted2); font-size: 0.78rem; font-weight: 700;
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
}
.yt-nav-btn:hover:not(.disabled) { border-color: var(--accent); color: var(--accent); }
.yt-nav-btn.disabled { opacity: 0.3; pointer-events: none; }
.yt-nav-btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; flex: 0.8; }
.yt-server-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 16px;
}
.yt-server-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 800;
}
.yt-server-header i { color: var(--accent); }
.server-tip { margin-left: auto; font-size: 0.7rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.yt-quality-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.yt-quality-row:last-child { border-bottom: none; }
.yt-quality-pill {
  display: flex; align-items: center; gap: 5px;
  background: #c084fc18; border: 1px solid #c084fc30;
  color: var(--accent); padding: 4px 10px;
  border-radius: 20px; font-size: 0.7rem; font-weight: 800;
  white-space: nowrap; min-width: 80px; justify-content: center;
}
.yt-srv-list { display: flex; flex-wrap: wrap; gap: 5px; }
.yt-srv-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted2); font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; text-transform: capitalize;
}
.yt-srv-btn:hover { border-color: var(--accent); color: var(--accent); }
.yt-srv-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.watch-anime-card {
  display: flex; gap: 14px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; margin-bottom: 16px; transition: border-color 0.2s;
}
.watch-anime-card:hover { border-color: var(--accent); }
.watch-anime-card img {
  width: 80px; height: 112px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
}
.watch-anime-detail { flex: 1; min-width: 0; }
.watch-anime-detail h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 4px; }
.watch-anime-jp { color: var(--muted); font-size: 0.72rem; margin-bottom: 8px; }
.watch-anime-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.72rem; color: var(--muted2); margin-bottom: 8px; }
.watch-anime-meta i { color: var(--accent); }
.watch-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.watch-genres .genre-pill { font-size: 0.65rem; padding: 2px 8px; }
.watch-synopsis { color: var(--muted); font-size: 0.75rem; line-height: 1.6; }

/* ===== SEARCH PAGE ===== */
.search-container { padding-top: 70px; }
.search-title { font-size: 0.9rem; color: var(--muted2); margin-bottom: 16px; }
.search-title span { color: var(--accent); font-weight: 700; }

/* ===== LIST PAGE ===== */
.list-container { padding-top: 78px; }
.list-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.list-header h1 { font-size: 1.1rem; font-weight: 800; }
.list-header i { color: var(--accent); font-size: 1.2rem; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
  margin-top: 30px; padding-bottom: 10px;
}
.page-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 24px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 0.82rem; font-weight: 700;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-info { color: var(--muted); font-size: 0.8rem; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px; text-align: center;
  margin-bottom: var(--bottom-nav);
}
.footer-logo { color: var(--accent); font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
footer p { color: var(--muted); font-size: 0.75rem; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; color: var(--accent); }
.empty-state p { font-size: 0.9rem; }

/* ===== BADGE STATUS ===== */
.badge-status {
  display: inline-flex; padding: 2px 8px;
  border-radius: 4px; font-size: 0.68rem; font-weight: 700;
}
.badge-status.ongoing { background: #4ade8020; color: #4ade80; }
.badge-status.completed { background: #60a5fa20; color: #60a5fa; }
.badge-type {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.68rem; color: var(--muted2);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: calc(var(--bottom-nav) + 16px); right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); border: none; color: #fff;
  font-size: 1rem; cursor: pointer; z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(192,132,252,0.4);
}
.scroll-top.visible { opacity: 1; visibility: visible; }

/* ===== AOS ===== */
[data-aos] { opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.4s; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .anime-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .genre-banner-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-banner { height: 320px; }
}
@media (min-width: 1024px) {
  .anime-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .genre-banner-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-content { padding: 80px 24px 24px; }
  .detail-poster-wrap { width: 140px; }
  .yt-body { max-width: 900px; margin: 0 auto; }
  .hero-banner { height: 380px; }
}

/* ===== FIX LOGO NAVBAR & DRAWER ===== */
.logo-img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain;
  flex-shrink: 0;
}

/* cegah gambar logo melebar */
.nav-logo img,
.drawer-logo img {
  max-width: 100%;
  height: auto;
}

/* rapihin container logo */
.nav-logo,
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

/* extra safety biar ga keluar layout */
.navbar {
  overflow: hidden;
}


/* ===== FIX SIZE LOGO (FINAL) ===== */

/* Navbar logo */
.nav-logo .logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Drawer logo (lebih besar biar balance) */
.drawer-logo .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Glow effect biar keliatan premium */
.logo-img {
  filter: drop-shadow(0 0 6px #a855f7);
}

/* Responsive HP kecil */
@media (max-width: 480px) {
  .nav-logo .logo-img {
    width: 28px;
    height: 28px;
  }
}

