/* ============================================================
   ObitoNakudo — Main Stylesheet
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --orange:       #FF6B00;
  --orange-light: #FF8C3A;
  --orange-glow:  #FF6B0044;
  --dark:         #0A0A0F;
  --dark2:        #111118;
  --dark3:        #1A1A24;
  --dark4:        #22222F;
  --dark5:        #2A2A3A;
  --text:         #E8E8F0;
  --text-muted:   #8888AA;
  --border:       #2A2A3A;
  --card-bg:      #13131C;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --transition:   0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 130px; /* nav 65px + banner ~60px */
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ===== PARTICLES BG ===== */
.bg-particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100px) translateX(40px); opacity: 0; }
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 60px;
  background: linear-gradient(180deg, rgba(10,10,15,.98) 0%, rgba(10,10,15,.88) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,0,.15);
}
.logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900; font-size: 1.15rem;
  color: var(--orange);
  text-shadow: 0 0 20px var(--orange-glow);
  letter-spacing: 2px; flex: 1;
  animation: logoPulse 3s ease-in-out infinite;
}
.logo span { color: #fff; }
@keyframes logoPulse {
  0%,100% { text-shadow: 0 0 15px var(--orange-glow); }
  50%     { text-shadow: 0 0 30px #FF6B0088, 0 0 60px #FF6B0022; }
}
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 7px 14px;
  transition: var(--transition); width: 200px;
}
.topbar-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 15px var(--orange-glow);
  width: 230px;
}
.topbar-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: 'Nunito', sans-serif;
  font-size: .85rem; width: 100%;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search i { color: var(--text-muted); font-size: .85rem; }

/* ===== MAIN ===== */
.main { padding-top: 68px; position: relative; z-index: 1; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 270px;
  overflow: hidden; margin-bottom: 20px;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0A0A0F 0%, #1a0a00 50%, #0A0A0F 100%);
}
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,0,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255,107,0,.08) 0%, transparent 50%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(40px); } }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,107,0,.2); border: 1px solid rgba(255,107,0,.4);
  border-radius: 50px; padding: 4px 12px;
  font-size: .7rem; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; letter-spacing: 2px; color: var(--orange-light);
  text-transform: uppercase; margin-bottom: 12px; width: fit-content;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,0,.2); }
  50%     { box-shadow: 0 0 0 8px rgba(255,107,0,0); }
}
.hero__title {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: 1.9rem; line-height: 1.1; color: #fff; margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero__title span { color: var(--orange); }
.hero__subtitle { font-family: 'Rajdhani', sans-serif; font-size: .95rem; color: var(--text-muted); margin-bottom: 20px; }
.hero__btns { display: flex; gap: 10px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; border: none;
  border-radius: 50px; padding: 10px 20px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: .9rem; transition: var(--transition); letter-spacing: 1px;
}
.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 0 25px rgba(255,107,0,.5);
  transform: translateY(-2px);
}
.btn-primary.btn-large { padding: 13px 28px; font-size: 1rem; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid rgba(255,255,255,.15); border-radius: 50px;
  padding: 10px 20px; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: .9rem; transition: var(--transition); letter-spacing: 1px;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex; margin: 0 16px 20px;
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.stat-item {
  flex: 1; padding: 14px 8px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1.05rem; color: var(--orange); }
.stat-label { font-family: 'Rajdhani', sans-serif; font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* ===== SECTION ===== */
.section { padding: 0 16px; margin-bottom: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 18px;
  background: var(--orange); border-radius: 2px;
  box-shadow: 0 0 10px var(--orange-glow);
}
.section-link {
  font-family: 'Rajdhani', sans-serif; font-size: .85rem;
  color: var(--orange); display: flex; align-items: center; gap: 4px;
  font-weight: 600; transition: all .2s;
}
.section-link:hover { color: var(--orange-light); gap: 8px; }

/* ===== GENRE CHIPS ===== */
.genre-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.genre-row::-webkit-scrollbar { display: none; }
.genre-chip {
  flex: 0 0 auto; background: var(--dark3); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .8rem;
  cursor: pointer; transition: all .2s; color: var(--text-muted); letter-spacing: .5px;
}
.genre-chip:hover, .genre-chip.active {
  background: rgba(255,107,0,.15); border-color: var(--orange); color: var(--orange);
}

/* ===== SCROLL ROW ===== */
.scroll-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ===== ANIME CARD ===== */
.anime-card {
  flex: 0 0 130px;
  background: var(--card-bg); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  transition: var(--transition); border: 1px solid var(--border);
  position: relative;
}
.anime-card--grid { flex: unset; }
.anime-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 20px var(--orange-glow);
}
.anime-card__thumb { position: relative; overflow: hidden; }
.anime-card__thumb img {
  width: 100%; height: 175px; object-fit: cover;
  transition: transform .5s;
}
.anime-card:hover .anime-card__thumb img { transform: scale(1.05); }
.anime-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.anime-card:hover .anime-card__overlay { opacity: 1; }
.play-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(255,107,0,.7);
}
.play-btn i { color: #fff; font-size: .9rem; margin-left: 3px; }
.anime-card__ep-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.75); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 7px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .65rem; color: var(--orange);
}
.anime-card__info { padding: 8px; }
.anime-card__title {
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .8rem;
  line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.anime-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.anime-score { display: flex; align-items: center; gap: 3px; font-size: .7rem; color: #FFB800; font-weight: 700; }
.anime-status { font-size: .62rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-family: 'Rajdhani', sans-serif; }
.status-ongoing   { background: rgba(0,200,100,.2); color: #00c864; }
.status-completed { background: rgba(100,100,255,.2); color: #8888ff; }
.anime-card__remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,50,50,.8); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .7rem; opacity: 0; transition: opacity .2s; z-index: 2;
}
.anime-card:hover .anime-card__remove { opacity: 1; }

/* ===== ANIME GRID ===== */
.anime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ===== LATEST ITEM ===== */
.latest-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg); border-radius: var(--radius-md);
  padding: 10px; border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition); color: var(--text);
}
.latest-item:hover {
  border-color: var(--orange); background: var(--dark3);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--orange), 0 0 20px var(--orange-glow);
}
.latest-item__thumb { width: 60px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.latest-item__info { flex: 1; min-width: 0; }
.latest-item__title {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem;
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.latest-item__ep { font-size: .75rem; color: var(--orange); font-weight: 600; margin-bottom: 4px; font-family: 'Rajdhani', sans-serif; }
.latest-item__badge {
  display: inline-block; background: rgba(255,107,0,.15);
  border: 1px solid rgba(255,107,0,.3); border-radius: 4px;
  padding: 2px 7px; font-size: .65rem; color: var(--orange-light);
  font-weight: 700; letter-spacing: .5px; font-family: 'Rajdhani', sans-serif; text-transform: uppercase;
}
.latest-item__arrow { color: var(--orange); font-size: 1.5rem; flex-shrink: 0; }
.latest-list { display: flex; flex-direction: column; gap: 10px; }

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--dark3) 25%, var(--dark4) 50%, var(--dark3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite; border-radius: var(--radius-md);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.anime-card__skeleton { height: 220px; }
.latest-item__skeleton { height: 80px; }

/* ===== EXPLORE PAGE ===== */
.page-explore { padding-top: 16px; }
.search-box-big {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
  margin: 0 16px 16px; transition: var(--transition);
}
.search-box-big:focus-within { border-color: var(--orange); box-shadow: 0 0 25px var(--orange-glow); }
.search-box-big input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: 'Nunito', sans-serif; font-size: 1rem;
}
.search-box-big input::placeholder { color: var(--text-muted); }
.search-clear { color: var(--text-muted); font-size: 1rem; transition: color .2s; }
.search-clear:hover { color: var(--orange); }
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 24px; padding-bottom: 8px;
}
.page-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 18px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .85rem;
  color: var(--text); transition: var(--transition);
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-current { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--orange); }

/* ===== DETAIL PAGE ===== */
.detail-hero { position: relative; height: 290px; overflow: hidden; }
.detail-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(22px) brightness(.28); transform: scale(1.1);
}
.detail-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,.3) 0%, rgba(10,10,15,1) 100%);
}
.detail-back {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,10,15,.7); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1rem; transition: var(--transition);
}
.detail-back:hover { background: var(--orange); }
.detail-hero__header {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px; z-index: 2; display: flex; gap: 14px; align-items: flex-end;
}
.detail-cover {
  width: 90px; height: 128px; object-fit: cover;
  border-radius: 10px; border: 2px solid var(--orange);
  box-shadow: 0 8px 25px rgba(0,0,0,.5); flex-shrink: 0;
}
.detail-meta { flex: 1; min-width: 0; }
.detail-title {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1rem;
  line-height: 1.3; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.detail-tag {
  font-size: .65rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(255,107,0,.15); border: 1px solid rgba(255,107,0,.3);
  color: var(--orange-light); font-family: 'Rajdhani', sans-serif; font-weight: 600;
  transition: var(--transition);
}
.detail-tag:hover { background: rgba(255,107,0,.3); }
.detail-body { padding: 16px; }
.detail-info-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-info-item { display: flex; flex-direction: column; gap: 2px; }
.detail-info-label { font-size: .65rem; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.detail-info-value { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem; color: var(--orange); }
.synopsis-wrap { margin-bottom: 16px; }
.synopsis-text {
  font-size: .85rem; line-height: 1.75; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  transition: all .3s;
}
.synopsis-text.expanded { -webkit-line-clamp: unset; }
.synopsis-toggle {
  margin-top: 6px; font-size: .8rem; color: var(--orange);
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  background: none; border: none; padding: 0; display: flex; align-items: center; gap: 4px;
}
.detail-actions { display: flex; gap: 10px; margin-bottom: 24px; }
.btn-wishlist {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid rgba(255,255,255,.15); border-radius: 50px;
  padding: 10px 20px; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: .9rem; transition: var(--transition); letter-spacing: 1px;
  cursor: pointer;
}
.btn-wishlist.active { background: rgba(255,184,0,.15); border-color: #FFB800; color: #FFB800; }
.episode-section { margin-top: 8px; }
.episode-section__title {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.episode-count { font-size: .75rem; color: var(--text-muted); font-weight: 400; }
.episode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.episode-btn {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 4px; text-align: center;
  cursor: pointer; transition: all .2s;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .8rem; color: var(--text-muted);
}
.episode-btn:hover, .episode-btn.active {
  background: rgba(255,107,0,.15); border-color: var(--orange); color: var(--orange);
}
.ep-range-wrap { margin-bottom: 12px; }
.ep-range-select {
  width: 100%; background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .9rem; outline: none;
  transition: border-color .2s;
}
.ep-range-select:focus { border-color: var(--orange); }

/* ===== WATCH PAGE ===== */
.player-page { background: #000; min-height: calc(100vh - 140px); }
.player-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,107,0,.2);
}
.player-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: .9rem; transition: var(--transition); flex-shrink: 0;
}
.player-back:hover { background: var(--orange); }
.player-title-info { flex: 1; min-width: 0; }
.player-anime-title {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-ep-info { font-size: .75rem; color: var(--orange); font-family: 'Rajdhani', sans-serif; }
.btn-wishlist-player {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: .9rem; transition: var(--transition); flex-shrink: 0;
}
.btn-wishlist-player.active { background: rgba(255,184,0,.2); border-color: #FFB800; color: #FFB800; }
.video-wrapper {
  width: 100%; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.video-wrapper video { width: 100%; max-height: 60vw; aspect-ratio: 16/9; }
.video-error {
  padding: 40px 20px; text-align: center; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: 'Rajdhani', sans-serif;
}
.video-error i { font-size: 2.5rem; color: var(--orange); }
.player-controls { padding: 14px 16px; background: rgba(0,0,0,.9); }
.control-section { margin-bottom: 12px; }
.control-label {
  font-family: 'Rajdhani', sans-serif; font-size: .75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.reso-row { display: flex; gap: 8px; flex-wrap: wrap; }
.reso-btn {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .8rem;
  cursor: pointer; color: var(--text-muted); transition: var(--transition);
}
.reso-btn:hover, .reso-btn.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
.ep-nav { display: flex; gap: 8px; }
.ep-nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .85rem;
  color: var(--text); transition: var(--transition);
}
.ep-nav-btn:hover { background: var(--dark4); border-color: var(--orange); }
.ep-nav-btn--disabled { opacity: .35; pointer-events: none; }
.ep-nav-btn--list { flex: 0 0 auto; background: rgba(255,107,0,.1); border-color: rgba(255,107,0,.3); color: var(--orange); }

/* ===== WISHLIST PAGE ===== */
.page-wishlist .page-heading {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}

/* ===== PROFILE PAGE ===== */
.page-profile { padding: 16px; }
.profile-hero { text-align: center; padding: 30px 0 20px; }
.profile-avatar {
  position: relative; width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8C3A);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 2rem;
  box-shadow: 0 0 30px var(--orange-glow);
}
.profile-avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--orange), transparent, var(--orange)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  animation: ringRotate 4s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.profile-name { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.profile-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.profile-stats-row { display: flex; justify-content: center; gap: 24px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1.1rem; color: var(--orange); }
.profile-stat-label { font-size: .7rem; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; text-transform: uppercase; }
.profile-menu-list {
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px;
}
.profile-menu-item {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border: none; background: none; color: var(--text);
  border-bottom: 1px solid var(--border); text-align: left;
  transition: background .2s; font-size: .95rem;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: rgba(255,107,0,.05); }
.profile-menu-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,107,0,.1); display: flex; align-items: center; justify-content: center;
  color: var(--orange); flex-shrink: 0;
}
.profile-menu-label { flex: 1; font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.profile-menu-badge {
  font-size: .65rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(255,107,0,.2); color: var(--orange); font-family: 'Rajdhani', sans-serif; font-weight: 700;
}
.profile-menu-arrow { color: var(--text-muted); font-size: .8rem; }
.profile-footer { text-align: center; font-size: .75rem; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; line-height: 1.8; }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; gap: 16px; color: var(--text-muted);
  text-align: center;
}
.empty-state i { font-size: 3rem; color: var(--border); }
.empty-state h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.empty-state p { font-size: .85rem; }

/* ===== IN-PAGE PUSH BANNER (nap5k.com) ===== */
/* Script inject div fixed ke body — kita geser ke atas bottom-nav */
/* Selector umum yang dipakai ad network sejenis */
body > div[style*="position: fixed"][style*="bottom"],
body > div[style*="position:fixed"][style*="bottom"] {
  bottom: 65px !important; /* di atas bottom-nav */
  z-index: 99 !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,17,24,.97); backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,107,0,.15);
  display: flex; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 0; cursor: pointer; transition: all .3s; position: relative;
  border: none; background: none; color: var(--text-muted);
}
.nav-item::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--orange); border-radius: 0 0 4px 4px;
  transition: width .3s; box-shadow: 0 0 10px var(--orange-glow);
}
.nav-item.active::before { width: 24px; }
.nav-item.active .nav-icon { color: var(--orange); }
.nav-item.active .nav-label { color: var(--orange); }
.nav-item:hover .nav-icon { color: var(--orange-light); transform: translateY(-2px); }
.nav-icon { font-size: 1.3rem; transition: all .3s; }
.nav-label { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .5px; text-transform: uppercase; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--dark3); border: 1px solid var(--orange);
  border-radius: 50px; padding: 10px 20px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .85rem;
  color: var(--text); opacity: 0; transition: all .3s;
  z-index: 500; white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .anime-grid { grid-template-columns: repeat(4, 1fr); }
  .episode-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) {
  .anime-grid { grid-template-columns: repeat(5, 1fr); }
  .hero { height: 340px; }
  .hero__title { font-size: 2.4rem; }
  .topbar { padding: 0 24px; }
  .section { padding: 0 24px; }
  .stats-bar { margin: 0 24px 24px; }
  .search-box-big { margin: 0 24px 16px; }
}
