@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --green: #58CC02;
  --green-dark: #46a800;
  --green-shadow: #3a8c00;
  --blue: #1CB0F6;
  --blue-dark: #0a96de;
  --blue-shadow: #0077b5;
  --yellow: #FFD900;
  --yellow-dark: #e6c500;
  --red: #FF4B4B;
  --purple: #CE82FF;
  --bg: #111827;
  --bg2: #1a2332;
  --bg3: #222d3d;
  --card: #1e2b3c;
  --card-hover: #243347;
  --border: #2d3f55;
  --text: #ffffff;
  --text-muted: #7a8fa8;
  --text-dim: #3a5068;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --site-header-h: 58px;
  --site-nav-h: 44px;
  --nav-h: calc(var(--site-header-h) + var(--site-nav-h));
  --bottom-nav-h: 62px;
}

/* ══ Light theme ══ */
html[data-theme="light"] {
  --bg: #f0f4f8;
  --bg2: #e2e8f0;
  --bg3: #d0d9e6;
  --card: #ffffff;
  --card-hover: #f1f5f9;
  --border: #c4d0de;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

/* ══ Theme toggle button ══ */
.theme-toggle {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg3);
  border: 2px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--blue); background: var(--bg2); }

/* ══ Bottom nav (mobile) ══ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  z-index: 300;
  background: var(--bg2);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: color .15s;
  padding: 8px 0;
}
.bottom-nav-item:hover,
.bottom-nav-item.active { color: var(--green); }
.bottom-nav-icon { font-size: 22px !important; line-height: 1; }
.bottom-nav-label { line-height: 1; }

/* ══════════════════════════════
   SITE HEADER  (logo left / search right)
══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--site-header-h);
  z-index: 300;
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
  box-shadow: 0 0 10px rgba(88,204,2,0.35);
  flex-shrink: 0;
}

.site-brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  user-select: none;
}

.site-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.site-search input {
  width: 100%;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 12px;
  padding: 10px 36px 10px 42px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color .2s, background .2s;
}
.site-search input::placeholder { color: var(--text-muted); }
.site-search input:focus { border-color: var(--blue); background: var(--bg3); }
.site-search .si {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

/* Header right-side button group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Clear (×) button inside search input */
.search-clear-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 2px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.search-clear-btn:hover { color: var(--text); background: var(--bg2); }

/* Mobile search toggle (hidden on desktop) */
.search-toggle {
  display: none;
  align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: color .15s;
}
.search-toggle:hover { color: var(--text); }

/* ══════════════════════════════
   SITE NAV  (links bar below header)
══════════════════════════════ */
.site-nav {
  position: fixed;
  top: var(--site-header-h);
  left: 0; right: 0;
  height: var(--site-nav-h);
  z-index: 299;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--green); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
button { font-family: 'Nunito', sans-serif; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* legacy nav-logo kept for any pages that still reference it */
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 900; white-space: nowrap; flex-shrink: 0; }
.nav-logo .x { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-links a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 800; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--green); }
.nav-label { font-size: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  border-bottom: 4px solid transparent;
  transition: transform .1s, border-bottom-width .1s, background .15s;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn svg { flex-shrink: 0; }

.btn-green { background: var(--green); color: #fff; border-bottom-color: var(--green-shadow); }
.btn-green:hover { background: var(--green-dark); }

.btn-blue { background: var(--blue); color: #fff; border-bottom-color: var(--blue-shadow); }
.btn-blue:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-bottom: 4px solid var(--blue-shadow);
  padding: 10px 22px;
}
.btn-ghost:hover { background: rgba(28,176,246,0.1); }

.btn-dark {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  padding: 10px 20px;
}
.btn-dark:hover { border-color: var(--blue); color: var(--blue); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-bottom-width: 3px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.page { padding-top: calc(var(--site-header-h) + var(--site-nav-h)); min-height: 100vh; width: 100%; max-width: 100vw; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--bg2);
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }

.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(17,24,39,0.96) 30%,
    rgba(17,24,39,0.55) 60%,
    rgba(17,24,39,0.1) 100%
  );
}

.hero-content {
  position: absolute; left: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 60px;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 99px;
  border-bottom: 3px solid var(--green-shadow);
  margin-bottom: 16px;
  width: fit-content;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-titlejp {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background .2s, width .25s;
  border: none;
}
.hero-dot.active { background: var(--green); width: 26px; }

.hero-arrows {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex; justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
  pointer-events: none;
}
.hero-arrow {
  pointer-events: all;
  width: 44px; height: 44px;
  background: rgba(30,43,60,0.88);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--blue); border-color: var(--blue-shadow); }

.section { padding: 44px 0 8px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .title-icon {
  width: 32px; height: 32px;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(88,204,2,0.15);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(88,204,2,0.4);
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.section-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap .2s;
  white-space: nowrap;
}
.section-link:hover { gap: 9px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.cards-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.cards-row::-webkit-scrollbar { height: 4px; }
.cards-row::-webkit-scrollbar-track { background: transparent; }
.cards-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.anime-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
  flex-shrink: 0;
  width: 200px;
}
.cards-grid .anime-card { width: auto; }
.cards-row .anime-card { width: 280px; }

.anime-card:hover { transform: translateY(-4px); border-color: var(--blue); background: var(--card-hover); }
.anime-card:active { transform: translateY(0); border-bottom-width: 2px; }

.anime-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg2);
}

.anime-card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.anime-card-body { padding: 12px; }

.anime-card-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
}

.anime-card-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.pill svg { flex-shrink: 0; }
.pill-green { background: rgba(88,204,2,0.12); color: var(--green); }
.pill-blue { background: rgba(28,176,246,0.12); color: var(--blue); }
.pill-yellow { background: rgba(255,217,0,0.12); color: var(--yellow); }
.pill-muted { background: var(--bg3); color: var(--text-muted); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.schedule-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.schedule-card:hover { transform: translateY(-3px); border-color: var(--green); background: var(--card-hover); }
.schedule-card:active { transform: translateY(0); border-bottom-width: 2px; }

.schedule-card-thumb {
  width: 68px;
  height: 88px;
  border-radius: 10px;
  background: var(--bg3);
  border: 2px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}
.schedule-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.schedule-card-placeholder {
  width: 68px; height: 88px;
  border-radius: 10px;
  background: var(--bg3);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
}

.schedule-info { flex: 1; min-width: 0; }
.schedule-title {
  font-size: 13px; font-weight: 800;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.schedule-ep { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.schedule-timer {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800;
  color: var(--yellow);
  background: rgba(255,217,0,0.1);
  padding: 3px 9px;
  border-radius: 99px;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-skeleton {
  position: absolute; inset: 0;
  display: flex;
  align-items: stretch;
}
.hero-skeleton-img {
  position: absolute; inset: 0;
  border-radius: 0;
}
.hero-skeleton-content {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 60px;
  gap: 16px;
  width: 480px;
  max-width: 90%;
}
.hero-skeleton-badge {
  width: 110px;
  height: 26px;
  border-radius: 99px;
}
.hero-skeleton-title {
  width: 90%;
  height: 36px;
  border-radius: 10px;
}
.hero-skeleton-title-sm {
  width: 65%;
  height: 36px;
}
.hero-skeleton-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.hero-skeleton-btn {
  width: 130px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.search-hero {
  background: var(--bg2);
  padding: 56px 0 40px;
  border-bottom: 3px solid var(--border);
}
.search-hero h1 {
  font-size: 32px; font-weight: 900;
  margin-bottom: 24px; text-align: center;
}
.search-hero h1 span { color: var(--green); }
.season-hero-label {
  text-align: center;
  font-size: 12px; font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
#heroSeason h1 { margin-bottom: 0; }

.search-box {
  max-width: 580px; margin: 0 auto;
  position: relative;
}
.search-box input {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 70px 17px 22px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 17px; font-weight: 700;
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--blue); }
.search-box input::placeholder { color: var(--text-dim); }
.search-box .search-btn {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
}

.filter-row {
  display: flex; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.season-picker-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
  margin-bottom: 0;
  overflow: hidden;
}
.season-picker-wrap.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 24px;
}
.season-picker-wrap > .season-list-row {
  min-height: 0;
}
.season-list-row {
  display: flex;
  gap: 8px;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.season-list-row::-webkit-scrollbar { height: 4px; }
.season-list-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.season-list-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 800;
  cursor: pointer;
  background: var(--card);
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  transition: all .15s;
  white-space: nowrap;
}
.season-list-btn:hover:not(.active) { border-color: var(--green); color: var(--green); }
.season-list-btn.active {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  border-bottom-color: var(--green-shadow);
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer;
  background: var(--card);
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--green); color: #fff; border-color: var(--green-shadow); }

/* ══════════════════════════════
   ANIME INFO PAGE  (ai-*)
══════════════════════════════ */
.ai-banner {
  position: relative;
  height: 300px;
  background: var(--bg2);
  overflow: hidden;
}
.ai-banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: blur(3px) brightness(0.5);
  transform: scale(1.1);
}
.ai-banner-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,24,39,0.15) 0%, rgba(17,24,39,0.55) 60%, var(--bg) 100%);
}

/* Two-column layout */
.ai-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Sidebar ── */
.ai-sidebar {
  margin-top: -140px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.ai-poster-wrap {
  position: relative;
  margin-bottom: 16px;
}
.ai-poster-wrap .ai-poster { margin-bottom: 0; }
.ai-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,.65), 0 0 0 2px rgba(88,204,2,0.18), 0 0 40px rgba(88,204,2,0.08);
  display: block;
  background: var(--bg3);
}
.ai-poster-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
}
.ai-stats-grid {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
}
.ai-stat {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.ai-stat:last-child { border-right: none; }
.ai-stat-label {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ai-stat-value { font-size: 18px; font-weight: 900; }

/* Anime page container — extra bottom padding without touching left/right */
.ai-page-container { padding-bottom: 60px; }

/* Mobile-only sidebar header — hidden on desktop */
.ai-mobile-header { display: none; }
/* Mobile-only extras below sidebar — hidden on desktop */
.ai-mobile-extras { display: none; }

/* ── Main ── */
.ai-main {
  padding-top: 28px;
  min-width: 0;
}
.ai-desktop-header { margin-bottom: 24px; }
.ai-title {
  font-size: 28px; font-weight: 900; line-height: 1.2;
  margin-bottom: 6px;
}
.ai-titlejp {
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.ai-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.ai-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 0;
}
.ai-synopsis {
  margin: 24px 0;
  border-left: 3px solid var(--green);
  padding-left: 16px;
}
.ai-section-label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ai-synopsis-text {
  font-size: 14px; line-height: 1.8;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ai-layout { grid-template-columns: 190px 1fr; gap: 24px; }
  .ai-sidebar { margin-top: -120px; }
  .ai-title { font-size: 22px; }
}

@media (max-width: 640px) {
  .ai-banner { height: 130px; }

  /* Single column, no gap */
  .ai-layout { grid-template-columns: 1fr; gap: 0; }

  /* NO negative margin on mobile — was causing the cut-off */
  .ai-sidebar {
    margin-top: 0;
    position: static;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-top: 16px;
  }

  .ai-poster-wrap {
    width: 110px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .ai-poster {
    width: 110px;
    margin-bottom: 0;
    border-width: 2px;
    box-shadow: 0 6px 24px rgba(0,0,0,.5);
  }

  /* Title + pills beside the poster */
  .ai-mobile-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    padding-top: 0;
    color: var(--text);
  }

  /* Hide desktop blocks */
  .ai-desktop-header   { display: none; }
  .ai-desktop-extras   { display: none; }
  .ai-desktop-synopsis { display: none; }

  /* Mobile extras */
  .ai-mobile-extras { display: block; }

  .ai-mobile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
  }
  .ai-mobile-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Compact stats strip on mobile */
  .ai-stats-grid {
    margin-bottom: 18px;
  }
  .ai-stat        { padding: 8px 6px; }
  .ai-stat-value  { font-size: 15px; }

  .ai-synopsis        { margin: 0 0 16px; }
  .ai-synopsis-text   { font-size: 13px; line-height: 1.7; }
  .ai-mobile-genres   { margin-bottom: 16px; }

  .ai-main    { padding-top: 0; }
  .ai-title   { font-size: 15px; margin-bottom: 4px; line-height: 1.3; }
  .ai-titlejp { font-size: 11px; margin-bottom: 8px; }
  .ai-pills   { gap: 5px; margin-bottom: 0; }
  .ai-pills .pill { font-size: 10px; padding: 3px 8px; }
}

@media (max-width: 390px) {
  .ai-poster { width: 95px; }
  .ai-title  { font-size: 13px; }
}

.tabs {
  display: flex; gap: 2px;
  border-bottom: 3px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs::-webkit-scrollbar { height: 0; }
.tab-btn {
  padding: 13px 20px;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ep-group { margin-bottom: 10px; }
.ep-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: all .15s;
  user-select: none;
}
.ep-group-header:hover { border-color: var(--blue); color: var(--blue); }
.ep-group-header.open { border-color: var(--green); color: var(--green); }
.ep-group-chevron { font-size: 20px; transition: transform .2s; }
.ep-group-header.open .ep-group-chevron { transform: rotate(180deg); }

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}
.ep-btn {
  background: var(--card);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px 9px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: 'Nunito', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.ep-play { font-size: 10px; opacity: 0.5; line-height: 1; }
.ep-num  { font-size: 12px; font-weight: 800; line-height: 1; }
.ep-aired { font-size: 9px; font-weight: 600; opacity: 0.45; line-height: 1; margin-top: 1px; }
.ep-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); background: var(--card-hover); }
.ep-btn:hover .ep-play { opacity: 0.8; }
.ep-btn:hover .ep-aired { opacity: 0.7; }
.ep-btn.active { background: var(--green); border-color: var(--green-shadow); color: #fff; }

/* View toggle */
.ep-view-bar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}
.ep-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .15s;
}
.ep-view-btn .material-symbols-rounded { font-size: 18px; }
.ep-view-btn:hover { border-color: var(--blue); color: var(--blue); }
.ep-view-btn.active { background: var(--green); border-color: var(--green-shadow); color: #fff; }

/* List view */
.ep-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.ep-list-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: var(--text-muted);
  transition: all .15s;
  text-align: left;
  width: 100%;
}
.ep-list-left { display: flex; align-items: center; gap: 10px; }
.ep-list-play { font-size: 11px; opacity: 0.45; }
.ep-list-num  { font-size: 14px; font-weight: 800; }
.ep-list-aired { font-size: 11px; font-weight: 600; opacity: 0.45; }
.ep-list-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--card-hover); }
.ep-list-btn:hover .ep-list-play,
.ep-list-btn:hover .ep-list-aired { opacity: 0.7; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.info-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.info-card .label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.info-card .value {
  font-size: 22px; font-weight: 900;
}

.genres-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-tag {
  background: var(--bg3);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: default;
  transition: all .15s;
}
.genre-tag:hover { border-color: var(--purple); color: var(--purple); background: rgba(206,130,255,0.07); }

.player-wrapper {
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.player-wrapper video { width: 100%; height: 100%; outline: none; }

.seek-zone {
  position: absolute;
  top: 0;
  height: 70%;
  width: 28%;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.seek-zone-left  { left: 0; }
.seek-zone-right { right: 0; }

.seek-feedback {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(.85);
  background: rgba(0,0,0,.65);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  padding: 14px 22px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 3;
  letter-spacing: .02em;
}
.seek-feedback.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: seekFbFade .7s ease forwards;
}
.seek-feedback-left  { left: 8%; }
.seek-feedback-right { right: 8%; }
@keyframes seekFbFade {
  0%   { opacity: 0; transform: translateY(-50%) scale(.85); }
  20%  { opacity: 1; transform: translateY(-50%) scale(1); }
  80%  { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(.95); }
}

.player-no-stream {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 48px 24px;
}
.player-no-stream .ns-icon { color: var(--border); }

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.player-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--text-dim); }

.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state .es-icon { color: var(--border); margin: 0 auto 16px; }
.empty-state h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-weight: 600; margin-bottom: 24px; }

.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  border-bottom: 4px solid var(--green-shadow);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--green-dark); }
.back-to-top:active { transform: translateY(2px); border-bottom-width: 2px; }

/* ══ Hamburger button ══ */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 38px; height: 38px;
  background: transparent; border: none; cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm);
}
.hb-bar {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              opacity 0.25s ease,
              width 0.3s ease;
  transform-origin: center;
}
.hamburger.open .hb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ Drawer overlay ══ */
.drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ══ Slide-in drawer ══ */
.drawer {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: 270px; height: 100dvh;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,0.4);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer-close {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  padding: 4px; border-radius: var(--radius-sm); transition: color 0.2s;
}
.drawer-close:hover { color: var(--text); }
.drawer-nav {
  display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; overflow-y: auto;
}
.drawer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.drawer-link:hover { color: var(--text); background: var(--bg3); }
.drawer-link.active { color: var(--green); background: var(--bg3); }
.drawer-link-icon { font-size: 20px !important; }

@media (max-width: 768px) {
  /* Show bottom nav, hide top nav bar */
  .site-nav { display: none; }
  .bottom-nav { display: flex; }
  /* Page needs bottom padding so content doesn't hide behind bottom nav */
  .page { padding-bottom: var(--bottom-nav-h); }
  /* Back-to-top sits above bottom nav */
  .back-to-top { bottom: calc(var(--bottom-nav-h) + 12px); right: 16px; width: 40px; height: 40px; }
  /* Page top padding: only site-header (no site-nav on mobile) */
  .page { padding-top: var(--site-header-h); }

  /* Mobile: hide search input, show toggle icon instead */
  .site-search { display: none; max-width: none; }
  .search-toggle { display: flex; }

  /* When search is open: show full-width search, hide brand + theme toggle */
  .site-header.search-open .site-search {
    display: flex;
    flex: 1;
    max-width: none;
  }
  .site-header.search-open .site-brand { display: none; }
  .site-header.search-open .theme-toggle { display: none; }
  .site-header.search-open .hamburger { display: none; }

  /* Show hamburger on mobile */
  .hamburger { display: flex; }
  .drawer-overlay { display: block; }
}

.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--card);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease;
  min-width: 240px; max-width: 340px;
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }
.toast.info { border-color: var(--blue); color: var(--blue); }
.toast span.toast-msg { color: var(--text); }
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.section-desc {
  font-size: 15px; font-weight: 600;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.section-label {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer {
  background: var(--bg2);
  border-top: 3px solid var(--border);
  padding: 40px 24px;
  margin-top: 60px;
  text-align: center;
}
.footer p { color: var(--text-muted); font-size: 13px; font-weight: 600; }

/* ───── 404 Not Found ───── */
.notfound-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 80vh; text-align: center;
  padding: 40px 20px; gap: 16px;
}
.notfound-logo {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%; box-shadow: 0 0 40px rgba(0,0,0,.5);
}
.notfound-code {
  font-size: 96px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound-msg { color: var(--text-muted); font-size: 18px; }
.notfound-btn {
  margin-top: 8px; padding: 12px 32px; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 700;
  font-size: 15px; text-decoration: none; transition: opacity .2s;
}
.notfound-btn:hover { opacity: .8; }

.nav-center { position: relative; }
.nav-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 600;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}
.nav-search-dropdown.open { display: block; }
.nsd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.nsd-item:last-child { border-bottom: none; }
.nsd-item:hover { background: var(--bg3); }
.nsd-img {
  width: 36px; height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}
.nsd-img-placeholder {
  width: 36px; height: 50px;
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
}
.nsd-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nsd-loading {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.nsd-no-results { padding: 14px 16px; text-align: center; }
.nsd-empty {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.nsd-empty strong { color: var(--text); }
.nsd-suggestions {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.nsd-sugg-link {
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  transition: color .15s;
}
.nsd-sugg-link:hover { color: var(--green); }
.nsd-sugg-sep { color: var(--text-dim); }
.mobile-nsd {
  top: calc(100% + 4px);
  left: 0; right: 0;
  max-height: 280px;
}

@media (max-width: 1024px) {
  .nav-center { max-width: 320px; }
  .hero-content { padding: 40px 40px; max-width: 460px; }
  .hero-title { font-size: 30px; }
  .schedule-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}

.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  height: 54px;
  background: rgba(17, 24, 39, 0.92);
  border-bottom: 1px solid rgba(45, 63, 85, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 0 14px;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mobile-top-bar.floating {
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(88, 204, 2, 0.12);
  border-bottom-color: rgba(88, 204, 2, 0.15);
}
.mobile-top-bar .mtb-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}
.mobile-top-bar .mtb-logo .x { color: var(--green); }
.mobile-top-bar .mtb-logo .logo-icon {
  width: 30px; height: 30px;
  background: var(--green);
  border-radius: 8px;
  border-bottom: 3px solid var(--green-shadow);
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.mobile-top-bar .mtb-search {
  flex: 1;
  position: relative;
}
.mobile-top-bar .mtb-search input {
  width: 100%;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px 8px 36px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  transition: border-color .2s, background .2s;
}
.mobile-top-bar .mtb-search input::placeholder { color: var(--text-muted); }
.mobile-top-bar .mtb-search input:focus { border-color: var(--blue); background: var(--bg3); }
.mtb-dev-wrap {
  position: relative;
  flex-shrink: 0;
  display: none;
}
.mtb-dev {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--green-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
.mtb-dev:active { transform: scale(0.92); }
.mtb-dev-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.mtb-dev-card.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mtb-dev-card::before {
  content: '';
  position: absolute;
  top: -8px; right: 10px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--border);
}
.mobile-top-bar .mtb-search .mtb-si {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }

  .mobile-top-bar { display: flex; }

  .navbar {
    top: auto; bottom: 0; left: 0; right: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(45,63,85,0.5);
    background: rgba(13, 19, 33, 0.95);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    padding: 0;
    justify-content: stretch;
    gap: 0;
    height: var(--nav-h);
    width: 100%;
  }
  .nav-logo { display: none; }
  .nav-center { display: none !important; }

  .nav-links {
    display: contents;
  }

  .nav-links a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    min-width: 0;
    background: none !important;
    color: var(--text-muted);
    height: 100%;
  }
  .nav-links a.active,
  .nav-links a:hover { color: var(--green); background: none !important; }
  .nav-links a svg { width: 22px; height: 22px; flex-shrink: 0; }
  .nav-links a .nav-label { font-size: 9px; display: block; }

  .page { padding-top: 54px; padding-bottom: var(--nav-h); }

  .hero { height: 55vw; min-height: 300px; max-height: 460px; }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(17,24,39,0.98) 0%,
      rgba(17,24,39,0.72) 42%,
      rgba(17,24,39,0.1) 85%,
      rgba(17,24,39,0) 100%
    );
  }
  .hero-content {
    position: absolute;
    top: auto; bottom: 0; left: 0; right: 0;
    justify-content: flex-end;
    padding: 20px 20px 48px;
    max-width: 100%;
    width: 100%;
  }
  .hero-title { font-size: 22px; margin-bottom: 10px; }
  .hero-badge { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
  .hero-desc { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 10px 18px; font-size: 13px; }
  .hero-arrows { display: none; }
  .hero-dots { bottom: 28px; }

  .hero-skeleton-content {
    top: auto; bottom: 0; justify-content: flex-end;
    padding: 20px 20px 48px; width: 100%; max-width: 100%;
  }

  .container { padding: 0 16px; width: 100%; }
  .section { padding: 28px 0 8px; }
  .section-title { font-size: 15px; }

  .cards-row { -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .anime-card { width: 200px; }
  .cards-grid .anime-card { width: auto; }
  .cards-row .anime-card { width: 220px; }

  .schedule-grid { grid-template-columns: 1fr; gap: 10px; }
  .schedule-card { padding: 12px 14px; gap: 12px; }
  .schedule-card-thumb { width: 64px; height: 84px; }

  .anime-hero { min-height: 300px; height: auto; }
  .anime-hero-inner { padding: 0 16px; }
  .anime-hero-title { font-size: 20px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .player-wrapper { max-height: 56vw; border-radius: 0; }
  .player-bar { flex-direction: column; align-items: flex-start; }

  .search-hero { padding: 40px 0 28px; }
  .search-hero h1 { font-size: 24px; }

  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
  .tabs { gap: 0; }
  .tab-btn { padding: 12px 14px; font-size: 13px; }

  .toast-container { right: 16px; bottom: calc(var(--nav-h) + 12px); }
  .toast { min-width: unset; max-width: calc(100vw - 32px); }

  .footer { margin-top: 40px; padding: 32px 20px; }
}

@media (max-width: 600px) {

  .hero { height: 62vw; min-height: 260px; max-height: 340px; }
  .hero-content { padding: 14px 16px 46px; }
  .hero-title { font-size: 19px; margin-bottom: 10px; }
  .hero-badge { font-size: 9px; padding: 3px 9px; margin-bottom: 8px; }
  .hero-desc { display: none; }
  .hero-actions { gap: 8px; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 9px 14px; font-size: 12px; flex: 1; justify-content: center; max-width: 160px; }
  .hero-dots { bottom: 26px; gap: 6px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 20px; }

  .hero-skeleton-content { padding: 14px 16px 46px; }
  .hero-skeleton-title { height: 19px; width: 70%; }
  .hero-skeleton-title-sm { height: 19px; width: 50%; }
  .hero-skeleton-btn { width: 90px; height: 36px; }

  .container { padding: 0 14px; }
  .section { padding: 20px 0 4px; }
  .section-header { margin-bottom: 14px; }
  .section-title { font-size: 13px; letter-spacing: 0.3px; }
  .section-title .title-icon { width: 26px; height: 26px; }
  .section-link { font-size: 11px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cards-grid .anime-card { width: auto; }
  .anime-card { width: 160px; }
  .cards-row { gap: 10px; -webkit-overflow-scrolling: touch; }
  .cards-row .anime-card { width: 175px; }
  .anime-card-body { padding: 8px 10px; }
  .anime-card-title { font-size: 12px; }
  .anime-card-meta { font-size: 10px; gap: 4px; }

  .schedule-grid { grid-template-columns: 1fr; gap: 8px; }
  .schedule-card { padding: 10px 12px; gap: 10px; }
  .schedule-card-thumb,
  .schedule-card-placeholder { width: 58px; height: 78px; border-radius: 8px; }
  .schedule-title { font-size: 13px; }

  .filter-btn { padding: 7px 12px; font-size: 11px; }
  .filters-bar { gap: 6px; }

  .anime-hero { min-height: 220px; height: auto; }
  .anime-poster { width: 80px; height: 110px; }
  .anime-poster-placeholder { width: 80px; height: 110px; }
  .anime-hero-inner { gap: 12px; padding: 0 12px; }
  .anime-hero-title { font-size: 15px; }
  .anime-hero-meta { font-size: 12px; }
  .anime-hero-actions { gap: 8px; }
  .anime-hero-actions .btn { padding: 8px 12px; font-size: 11px; }

  .info-grid { gap: 8px; }
  .info-card { padding: 12px 10px; }
  .info-card .label { font-size: 10px; }
  .info-card .value { font-size: 16px; }

  .tabs { gap: 0; border-bottom-width: 2px; }
  .tab-btn { padding: 10px 10px; font-size: 12px; flex: 1; text-align: center; justify-content: center; }

  .synopsis-text { font-size: 13px; line-height: 1.6; }

  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 5px; }
  .ep-btn { padding: 8px 4px; }
  .ep-play { font-size: 9px; }
  .ep-num  { font-size: 11px; }
  .ep-aired { font-size: 8px; }
  .ep-group-header { font-size: 12px; padding: 8px 12px; }
  .ep-view-btn { width: 40px; height: 40px; }
  .ep-list-btn { padding: 9px 12px; }
  .ep-list-num { font-size: 13px; }
  .ep-list-aired { font-size: 10px; }

  .breadcrumb { font-size: 11px; }

  .player-wrapper { max-height: 57vw; }
  .player-bar { padding: 10px 12px; gap: 8px; }
  .player-nav { width: 100%; justify-content: space-between; gap: 6px; }
  .player-nav .btn-sm { padding: 8px 10px; font-size: 12px; flex: 1; min-width: 0; justify-content: center; }

  .search-hero { padding: 24px 0 20px; }
  .search-hero h1 { font-size: 20px; }
  .search-box input { font-size: 14px; padding: 12px 50px 12px 14px; }
  .search-box-btn { width: 40px; }

  .toast-container { right: 10px; bottom: calc(var(--nav-h) + 10px); }
  .toast { font-size: 13px; padding: 10px 14px; gap: 8px; }

  .footer { padding: 24px 12px; font-size: 12px; }
}

@media (max-width: 390px) {
  .hero { height: 60vw; min-height: 220px; }
  .hero-content { padding: 12px 12px 44px; }
  .hero-title { font-size: 18px; }

  .container { padding: 0 10px; }
  .section { padding: 16px 0 4px; }

  .cards-grid { gap: 8px; }
  .anime-card { width: 140px; }

  .anime-hero { min-height: 200px; height: auto; }
  .anime-poster { width: 72px; height: 100px; }
  .anime-poster-placeholder { width: 72px; height: 100px; }
  .anime-hero-title { font-size: 14px; }
  .anime-hero-actions .btn { padding: 7px 10px; font-size: 11px; }

  .tab-btn { padding: 9px 8px; font-size: 11px; }
  .ep-btn { font-size: 11px; }
}

/* ───── Inner page hero (Popular / New / Schedule / Season) ───── */
.inner-page-hero {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  padding: 40px 0 32px;
}
.inner-page-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 8px;
}
.inner-page-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
}
.inner-page-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .inner-page-hero { padding: 28px 0 22px; }
  .inner-page-title { font-size: 24px; }
}

/* ───── Developer Page ───── */
.dev-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dev-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  opacity: .18;
  pointer-events: none;
}
.dev-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  z-index: 1;
}
.dev-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg2);
  box-shadow: 0 0 0 3px var(--green), 0 8px 24px rgba(0,0,0,.4);
  display: block;
  background: var(--bg3);
}
.dev-status-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 1px var(--green);
}
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 204, 2, 0.15);
  border: 1.5px solid rgba(88, 204, 2, 0.4);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.dev-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.1;
}
.dev-name .x {
  color: var(--green);
}
.dev-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.dev-kiss {
  display: inline-block;
  animation: kissPulse 1.6s ease-in-out infinite;
}
@keyframes kissPulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.25) rotate(-8deg); }
}
.dev-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 24px;
  max-width: 440px;
}
.dev-bio strong { color: var(--text); }
.dev-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}
.dev-stat {
  background: var(--bg);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
}
.dev-stat-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.dev-stat-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.dev-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .dev-card { padding: 32px 20px 24px; }
  .dev-avatar-wrap, .dev-avatar { width: 120px; height: 120px; }
  .dev-name { font-size: 26px; }
  .dev-stat-num { font-size: 17px; }
}

/* ───── Welcome Modal ───── */
.intro-page {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center;
  overflow-y: auto; overflow-x: hidden;
  background: #0b1120;
}

.intro-skip {
  position: fixed; top: 18px; right: 18px; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, color .15s, border-color .15s;
}
.intro-skip:hover {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* ── Background ── */
.intro-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.intro-bg-grad {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0d1a2e 0%, #0b1120 50%, #0a1a10 100%);
}
.intro-bg-radial {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(88,204,2,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(28,176,246,.06) 0%, transparent 70%);
}

/* Floating orbs */
.intro-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: .45;
}
.intro-orb-1 {
  width: 320px; height: 320px;
  background: rgba(88,204,2,.12);
  top: -80px; left: -60px;
  animation: orbFloat 9s ease-in-out infinite;
}
.intro-orb-2 {
  width: 260px; height: 260px;
  background: rgba(28,176,246,.1);
  bottom: 60px; right: -60px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.intro-orb-3 {
  width: 180px; height: 180px;
  background: rgba(206,130,255,.09);
  bottom: 30%; left: 15%;
  animation: orbFloat 13s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.05); }
}

/* ── Poster strip ── */
.intro-poster-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px; overflow: hidden; pointer-events: none;
}
.intro-poster-track {
  display: flex; gap: 8px; height: 100%;
  animation: posterScroll 28s linear infinite;
  width: max-content;
}
.intro-poster-img {
  height: 100%; width: 110px;
  object-fit: cover; border-radius: 8px;
  opacity: .22; filter: blur(1.5px) saturate(1.4);
  flex-shrink: 0;
}
.intro-poster-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #0b1120 0%, transparent 45%, #0b1120 100%);
}
@keyframes posterScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Body ── */
.intro-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 24px;
  flex: 1; justify-content: center;
}

.intro-jp-greeting {
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; margin-bottom: 18px;
}
.intro-jp-line {
  margin: 0; font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 700; color: #fff;
}
.intro-jp-en {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted); letter-spacing: .2px;
}
.intro-jp-romaji {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500; color: var(--text-muted);
  font-style: italic;
}
.intro-jp-line-in {
  animation: introLineIn .4s ease both;
}
@keyframes introLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-title {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 900; letter-spacing: -2px;
  color: #fff; margin: 0 0 12px;
}

.intro-tagline {
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--text-muted); font-weight: 500;
  margin: 0 0 32px; min-height: 1.4em;
}
.intro-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--green);
  margin-left: 2px; vertical-align: middle;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.intro-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 36px;
}
.intro-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 7px 14px;
}
.intro-pill .material-symbols-rounded {
  font-size: 16px !important; color: var(--green);
}

.intro-cta {
  font-size: 16px; padding: 14px 48px;
  border-radius: 999px; font-weight: 800; letter-spacing: .3px;
}

.intro-notice {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  max-width: 360px; text-align: left;
}
.intro-notice strong { color: #fff; }

.intro-credit {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim); letter-spacing: .3px;
}
.intro-version-badge {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  letter-spacing: .2px;
}

/* ── Footer skip links ── */
.intro-footer-links {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px 20px;
}
.intro-footer-link {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 700;
  color: var(--text-dim); letter-spacing: .3px;
  transition: color .2s; padding: 0;
}
.intro-footer-link:hover { color: var(--text-muted); }
.intro-footer-sep {
  font-size: 12px; color: var(--text-dim); user-select: none;
}

.wm-checkbox-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; font-size: 13px; font-weight: 700;
  color: var(--text-muted); cursor: pointer; user-select: none;
}
.wm-checkbox {
  width: 16px; height: 16px; accent-color: var(--green); cursor: pointer;
}


.watch-notice {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
  color: var(--text-muted);
}
.watch-notice .material-symbols-rounded { color: var(--green); flex-shrink: 0; }

.wm-checkbox-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; font-size: 13px; font-weight: 700;
  color: var(--text-muted); cursor: pointer; user-select: none;
}
.wm-checkbox {
  width: 16px; height: 16px; accent-color: var(--green); cursor: pointer;
}

/* ───── Favourite button (heart overlay on anime cards) ───── */
.anime-card { position: relative; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: color .2s, background .2s;
}
.fav-btn:hover { background: rgba(0,0,0,.75); color: #ff6b8a; }
.fav-btn.fav-btn-active { color: #ff4d72; }
.fav-btn .material-symbols-rounded { font-size: 17px !important; }

/* ───── Continue Watching card ───── */
.continue-card {
  background: var(--card); border-radius: var(--radius);
  border: 2px solid var(--border); border-bottom: 4px solid var(--border);
  overflow: hidden; cursor: pointer; flex-shrink: 0; width: 200px;
  transition: transform .15s, border-color .15s, background .15s;
  position: relative;
}
.continue-card:hover { transform: translateY(-4px); border-color: var(--blue); background: var(--card-hover); }
.cards-row .continue-card { width: 220px; }
.cw-progress-bar {
  height: 3px; background: var(--border); width: 100%;
}
.cw-progress-fill {
  height: 100%; background: var(--green); transition: width .3s;
}
.cw-remove {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; backdrop-filter: blur(4px); transition: background .2s;
}
.cw-remove:hover { background: rgba(220,50,50,.8); }


/* ───── Material Symbols Rounded ───── */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
