/* ==============================================
   WATCH ANIME IN HINDI — Premium Design System
   ============================================== */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

/* 2. CSS VARIABLES */
:root {
  --bg: #0a0a0f;
  --bg2: #0f0f16;
  --bg3: #13131c;
  --card: #16161f;
  --card-hover: #1e1e2c;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);

  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --primary-glow: rgba(124,58,237,0.35);

  --red: #e50914;
  --red-dark: #b20710;
  --red-glow: rgba(229,9,20,0.35);

  --gold: #f59e0b;
  --green: #10b981;
  --blue: #3b82f6;

  /* Warm accent — pulled from anime key-art (sunset orange → magenta), used
     for hero/section accents and badges alongside the cooler primary purple. */
  --warm: #ff7a3d;
  --warm-light: #ffab6b;
  --warm-glow: rgba(255,122,61,0.4);
  --accent-gradient: linear-gradient(120deg, var(--warm) 0%, var(--primary) 100%);

  --text: #f4f4f5;
  --text2: #a1a1aa;
  --text3: #71717a;

  --header-h: 68px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;

  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.7);
  --glow: 0 0 30px var(--primary-glow);
}

/* Light theme override (toggled via [data-theme="light"] on <html>) */
html[data-theme="light"] {
  --bg: #f6f5fa;
  --bg2: #ffffff;
  --bg3: #eeecf6;
  --card: #ffffff;
  --card-hover: #f1effa;
  --border: rgba(20,10,40,0.08);
  --border2: rgba(20,10,40,0.14);
  --text: #17131f;
  --text2: #4b465a;
  --text3: #6f6a80;
  --shadow: 0 4px 20px rgba(20,10,40,0.08);
  --shadow-lg: 0 8px 40px rgba(20,10,40,0.14);
}
html[data-theme="light"] #main-header {
  background: linear-gradient(180deg, rgba(246,245,250,0.98) 0%, rgba(246,245,250,0) 100%);
}
html[data-theme="light"] #main-header.scrolled {
  background: rgba(246,245,250,0.96);
}

.theme-toggle-btn { font-size: 1.05rem; }

.back-to-top-btn {
  position: fixed; right: 20px; bottom: 24px; z-index: 850;
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: var(--primary); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top-btn:hover { background: var(--primary-light); }

/* Numbered "Most-Watched" rank badge */
.card-rank-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  font-family: var(--font-display);
  font-size: 1.6rem; line-height: 1;
  color: #fff; -webkit-text-stroke: 1.5px var(--bg);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.ranked-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.ranked-row .anime-card { min-width: 200px; scroll-snap-align: start; }
.ranked-row .anime-card-thumb { padding-left: 28px; }

/* Prev/next episode nav */
.ep-nav-row { display: flex; gap: 0.75rem; margin: 1rem 0; }
.ep-nav-btn {
  flex: 1; padding: 0.7rem 1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border2); color: var(--text);
  font-weight: 600; font-size: 0.9rem; transition: background var(--transition), border-color var(--transition);
}
.ep-nav-btn:hover:not(:disabled) { background: var(--card-hover); border-color: var(--primary); }
.ep-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Autoplay-next overlay */
.autoplay-overlay {
  position: absolute; inset: 0; background: rgba(10,10,15,0.88);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; z-index: 20; text-align: center; padding: 1rem;
}
.autoplay-overlay.visible { display: flex; }
.autoplay-overlay .ap-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--border2); border-top-color: var(--primary);
  animation: ap-spin 1s linear infinite;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }
.autoplay-overlay button { background: var(--primary); color: #fff; padding: 0.5rem 1.2rem; border-radius: var(--radius-full); font-weight: 600; }

/* Contact page */
.contact-form-box { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form-box input, .contact-form-box textarea {
  background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 0.75rem 1rem; color: var(--text); font-size: 0.95rem;
}
.contact-form-box textarea { min-height: 120px; resize: vertical; }
.contact-form-box button { background: var(--primary); color: #fff; padding: 0.8rem; border-radius: var(--radius); font-weight: 600; }

/* 3. BASE RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
ul, ol { list-style: none; }

/* 4. SCROLLBARS */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }
* { scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg2); }

/* 5. HEADER / NAVBAR */
#main-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 900;
  transition: background var(--transition);
}
#main-header.scrolled {
  background: rgba(10,10,15,0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.header-left { display: flex; align-items: center; gap: 2rem; }
.site-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  display: flex; align-items: center; gap: 6px;
}
.site-logo span { color: var(--primary-light); }
.site-logo:hover { opacity: 0.85; }
header nav { display: flex; gap: 1.2rem; }
header nav a {
  color: var(--text2); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition); padding: 4px 0;
  position: relative;
}
header nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--primary-light);
  transition: width var(--transition);
}
header nav a:hover, header nav a.active { color: var(--text); }
header nav a:hover::after, header nav a.active::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 1rem; }
.header-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text2); font-size: 1rem; cursor: pointer;
  transition: all var(--transition);
}
.header-icon:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: var(--border2); }
.watchlist-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(10,10,15,0.99); backdrop-filter: blur(20px);
  padding: 1.5rem 4%; flex-direction: column; gap: 1rem;
  border-bottom: 1px solid var(--border); z-index: 899;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.1rem; font-weight: 500; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }

/* 6. SEARCH OVERLAY */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  z-index: 9000; flex-direction: column; overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.search-overlay.open { display: flex; }
.search-header {
  position: sticky; top: 0; z-index: 1;
  padding: 1.5rem 4%;
  background: rgba(10,10,15,0.95);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.search-header input {
  flex: 1; padding: 0.9rem 1.2rem;
  background: var(--card); border: 1.5px solid var(--border2);
  border-radius: var(--radius); color: var(--text);
  font-size: 1.05rem; outline: none;
  transition: border-color var(--transition);
}
.search-header input:focus { border-color: var(--primary); }
.search-header input::placeholder { color: var(--text3); }
.search-close-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border2);
  color: var(--text2); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.search-close-btn:hover { background: var(--card-hover); color: var(--text); transform: rotate(90deg); }
.search-body { padding: 1.5rem 4%; flex: 1; }
.search-empty {
  text-align: center; padding: 4rem 0; color: var(--text3);
  font-size: 1.1rem;
}
.search-empty .search-icon-big { font-size: 3rem; margin-bottom: 1rem; }

/* Search results grid */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

/* 7. MAIN LAYOUT */
main { padding-top: var(--header-h); min-height: 100vh; }

/* 8. INTRO SCREEN */
.intro-screen {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; justify-content: center; align-items: center;
  z-index: 99999; flex-direction: column; gap: 1rem;
}
.intro-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 5rem);
  letter-spacing: 4px; color: var(--text);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.intro-logo span { opacity: 0; transform: translateY(30px); animation: letterIn 0.5s forwards; }
.intro-logo .hi { color: var(--primary-light); }
.intro-sub {
  font-size: 0.9rem; color: var(--text3); letter-spacing: 3px;
  text-transform: uppercase; opacity: 0;
  animation: fadeIn 0.5s 2.5s forwards;
}
.intro-bar {
  width: 200px; height: 2px; background: var(--border);
  border-radius: var(--radius-full); overflow: hidden; opacity: 0;
  animation: fadeIn 0.5s 2.5s forwards;
}
.intro-bar-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-light));
  animation: barFill 2s 2.7s ease forwards;
}

/* 9. HERO BANNER */
.hero {
  position: relative; width: 100%;
  height: clamp(400px, 65vh, 720px);
  overflow: hidden; margin-bottom: 2rem;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,15,0.92) 0%,
    rgba(10,10,15,0.6) 50%,
    rgba(10,10,15,0.2) 100%
  ),
  linear-gradient(
    to top,
    rgba(10,10,15,0.95) 0%,
    transparent 40%
  );
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 5% 4rem;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-gradient); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 1rem; width: fit-content;
  box-shadow: 0 4px 16px var(--warm-glow);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1.02; margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.85);
}
.hero-title .hl {
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-desc {
  color: var(--text2); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.8rem;
  background: var(--red); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; transition: all var(--transition);
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-play:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 28px var(--red-glow); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text); border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.hero-dots {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { width: 24px; border-radius: 3px; background: var(--primary-light); }

/* 10. GENRE PILLS */
.genre-strip {
  padding: 0.5rem 4%; margin-bottom: 2rem;
  display: flex; gap: 0.6rem;
  overflow-x: auto; scrollbar-width: none;
}
.genre-strip::-webkit-scrollbar { display: none; }
.genre-pill {
  flex-shrink: 0; padding: 0.45rem 1rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); color: var(--text2);
  font-size: 0.82rem; font-weight: 500;
  transition: all var(--transition); white-space: nowrap;
  cursor: pointer;
}
.genre-pill:hover, .genre-pill.active {
  background: var(--accent-gradient); border-color: transparent;
  color: #fff; box-shadow: 0 2px 14px var(--warm-glow);
}

/* 11. SECTION ROWS */
.section { margin-bottom: 2.5rem; }
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; padding: 0 4%; margin-bottom: 1rem;
}
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: linear-gradient(var(--warm), var(--primary));
  border-radius: var(--radius-full);
}

/* Language badge — top-right of every card thumb; the site's core promise
   ("watch anime in Hindi") made visible at a glance, not buried in copy. */
.card-lang-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: rgba(10,10,15,0.72); backdrop-filter: blur(4px);
  color: var(--warm-light); border: 1px solid rgba(255,122,61,0.5);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: var(--radius-full);
  text-transform: uppercase;
}
.section-link {
  font-size: 0.82rem; color: var(--text3); font-weight: 500;
  transition: color var(--transition); display: flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--primary-light); }
.cards-row {
  display: flex; gap: 0.75rem;
  padding: 0.5rem 4%;
  overflow-x: auto; scrollbar-width: none;
}
.cards-row::-webkit-scrollbar { display: none; }

/* 12. ANIME CARDS */
.anime-card {
  position: relative; flex-shrink: 0;
  width: 155px; border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
  display: block; text-decoration: none; color: inherit;
}
.anime-card:hover {
  transform: scale(1.05) translateY(-4px);
  z-index: 10; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 0 1.5px var(--primary);
}
/* Thumb — wraps image + overlay + badge + watchlist btn */
.anime-card-thumb {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 2/3;
}
.anime-card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
  background: var(--bg3);
}
.anime-card-thumb.no-img {
  background: var(--bg3);
}
.anime-card:hover .anime-card-img { transform: scale(1.06); }
/* Hover overlay with play icon */
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,15,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.anime-card:hover .card-overlay { opacity: 1; }
.card-play-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(124,58,237,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
  transform: scale(0.8); transition: transform var(--transition);
  padding-left: 3px;
}
.anime-card:hover .card-play-icon { transform: scale(1); }
/* Card info bar */
.anime-card-info {
  padding: 0.6rem 0.6rem 0.55rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.anime-card-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.anime-card-meta { font-size: 0.7rem; color: var(--text3); }
/* Watchlist heart button */
.card-watchlist-btn {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--border2); color: var(--text2);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  opacity: 0; transform: scale(0.8);
}
.anime-card:hover .card-watchlist-btn { opacity: 1; transform: scale(1); }
.card-watchlist-btn.active { background: var(--red); border-color: var(--red); color: #fff; opacity: 1; transform: scale(1); }
.card-watchlist-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
/* Badge */
.card-badge {
  position: absolute; top: 6px; left: 6px; z-index: 3;
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--green); color: #fff;
}
.badge-hd { background: var(--primary); }
.badge-ep { background: rgba(0,0,0,0.75); color: var(--text2); border: 1px solid var(--border2); }
/* Rating stars on card */
.card-stars {
  display: flex; gap: 1px; margin-top: 2px;
}
.card-stars .star {
  font-size: 0.6rem; color: var(--text3);
  cursor: pointer; transition: color 0.15s;
}
.card-stars .star.filled { color: var(--gold); }
/* Progress bar (continue watching) */
.card-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.15);
}
.card-progress-fill { height: 100%; background: var(--red); border-radius: 0 2px 2px 0; }

/* 13. GRID LAYOUT (category pages, search) */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem; padding: 0 4%;
}
.anime-grid .anime-card { width: 100%; }

/* 14. VIDEO PLAYER PAGE */
.player-page { padding: 0 0 3rem; }
.player-container-wrapper {
  position: relative; width: 100%;
  max-width: 1100px; margin: 0 auto;
  padding: 0 4%;
}
.player-container {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: #000; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.8);
}
.player-container iframe,
.player-container video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none; z-index: 2;
}
.player-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg3); gap: 1rem; z-index: 1;
  color: var(--text2); font-size: 0.9rem;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
/* Server buttons */
.server-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: 1rem 0; padding: 0 4%;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.server-btn {
  padding: 0.55rem 1.2rem;
  background: var(--card); border: 1.5px solid var(--border2);
  color: var(--text2); border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  transition: all var(--transition);
}
.server-btn:hover { border-color: var(--primary); color: var(--text); }
.server-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 12px var(--primary-glow); }
/* Player info */
.player-info {
  max-width: 1100px; margin: 1.5rem auto 0;
  padding: 0 4%;
}
.episode-title-text {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem;
}
.player-actions {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.55rem 1.1rem;
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--text2); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500;
  transition: all var(--transition);
}
.action-btn:hover { border-color: var(--border2); color: var(--text); background: var(--card-hover); }
.action-btn.like-active { border-color: var(--red); color: var(--red); }
.action-btn.watchlist-active { border-color: var(--primary); color: var(--primary-light); }
#download-btn { border-color: var(--green); color: var(--green); }
#download-btn:hover { background: var(--green); color: #fff; }
/* Season/Episode selectors */
.episode-nav {
  max-width: 1100px; margin: 0 auto 1.5rem;
  padding: 0 4%;
}
.season-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.season-tab {
  padding: 0.5rem 1.2rem;
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--text2); border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.season-tab:hover { border-color: var(--primary); color: var(--text); }
.season-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.episodes-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-height: 240px; overflow-y: auto;
  padding: 1rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.episode-btn {
  min-width: 58px; padding: 0.55rem 0.8rem;
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text2); border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.episode-btn:hover { border-color: var(--primary-light); color: var(--text); }
.episode-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px var(--primary-glow); }
/* Rating on player */
.rating-row {
  display: flex; align-items: center; gap: 10px;
  margin: 0.5rem 0;
}
.rating-stars { display: flex; gap: 4px; }
.rating-stars .star {
  font-size: 1.4rem; cursor: pointer; color: var(--text3);
  transition: color 0.15s, transform 0.15s;
}
.rating-stars .star:hover, .rating-stars .star.filled { color: var(--gold); transform: scale(1.15); }
.rating-count { font-size: 0.85rem; color: var(--text3); }

/* 15. COMMENTS */
.comments-section {
  max-width: 1100px; margin: 2rem auto;
  padding: 2rem 4%; background: var(--bg2);
  border-radius: var(--radius-lg);
}
.comments-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.comment-list { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.comment-item {
  padding: 1rem; background: var(--card);
  border-radius: var(--radius); border-left: 3px solid var(--primary);
}
.comment-author { font-weight: 700; color: var(--primary-light); font-size: 0.9rem; margin-bottom: 4px; }
.comment-text { color: var(--text2); line-height: 1.6; font-size: 0.9rem; }
.comment-time { font-size: 0.75rem; color: var(--text3); margin-top: 4px; }
.comment-reply {
  margin-top: 0.75rem; padding: 0.75rem;
  background: var(--bg3); border-radius: 8px;
  font-size: 0.85rem; color: var(--text2);
}
.comment-reply-author { color: var(--green); font-weight: 700; font-size: 0.82rem; }
.comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-input-field {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.9rem; transition: border-color var(--transition); outline: none;
}
.comment-input-field:focus { border-color: var(--primary); }
.comment-input-field::placeholder { color: var(--text3); }
textarea.comment-input-field { resize: vertical; min-height: 90px; }
.comment-submit {
  align-self: flex-start; padding: 0.7rem 1.8rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  font-size: 0.9rem; transition: all var(--transition);
}
.comment-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.no-comments { text-align: center; color: var(--text3); padding: 2rem 0; }

/* 16. WATCHLIST PAGE */
.page-hero {
  padding: 3rem 4% 2rem;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border-bottom: 1px solid var(--border);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-hero-sub { color: var(--text2); font-size: 0.95rem; }
.watchlist-empty {
  text-align: center; padding: 5rem 4%;
  color: var(--text3);
}
.watchlist-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.watchlist-empty h3 { color: var(--text2); margin-bottom: 0.5rem; font-size: 1.3rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8rem 2rem; margin-top: 1.5rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  transition: all var(--transition); font-size: 0.95rem;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 20px var(--primary-glow); }

/* 17. ADMIN PANEL */
.admin-page { max-width: 1200px; margin: 2rem auto; padding: 0 4%; }
.admin-login-card {
  max-width: 420px; margin: 6rem auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  text-align: center;
}
.admin-logo { font-family: var(--font-display); font-size: 2rem; color: var(--primary-light); margin-bottom: 0.5rem; }
.admin-login-card h2 { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text2); }
.admin-input {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.95rem; outline: none; margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.admin-input:focus { border-color: var(--primary); }
.admin-btn {
  width: 100%; padding: 0.85rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  transition: all var(--transition);
}
.admin-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }
.admin-panel { display: none; }
.admin-panel.visible { display: block; }
.admin-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem;
  flex-wrap: wrap; border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.admin-tab {
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  color: var(--text2); transition: all var(--transition);
  border: 1.5px solid transparent;
}
.admin-tab:hover { color: var(--text); border-color: var(--border); }
.admin-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-section { display: none; }
.admin-section.visible { display: block; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text3); margin-top: 4px; }
.admin-comments-list { display: flex; flex-direction: column; gap: 1rem; }
.admin-comment-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
}
.admin-comment-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 0.75rem;
  flex-wrap: wrap; gap: 0.5rem;
}
.admin-comment-user { font-weight: 700; color: var(--primary-light); font-size: 0.9rem; }
.admin-comment-episode { font-size: 0.78rem; color: var(--text3); }
.admin-comment-text { color: var(--text2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }
.admin-comment-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-action-btn {
  padding: 0.4rem 0.9rem; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text2);
  transition: all var(--transition);
}
.admin-action-btn:hover { border-color: var(--border2); color: var(--text); }
.admin-action-btn.delete { border-color: var(--red); color: var(--red); }
.admin-action-btn.delete:hover { background: var(--red); color: #fff; }
.admin-reply-input {
  flex: 1; padding: 0.5rem 0.75rem;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.85rem; outline: none;
  transition: border-color var(--transition);
}
.admin-reply-input:focus { border-color: var(--primary); }
.admin-announce {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem;
}
.admin-announce textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  resize: vertical; min-height: 100px;
  font-size: 0.9rem; outline: none; margin-bottom: 1rem;
}
.announcement-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 0.75rem 4%;
  display: none; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.announcement-bar.visible { display: flex; }
.announcement-close {
  background: rgba(255,255,255,0.2); border-radius: 50%;
  width: 24px; height: 24px; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; transition: var(--transition);
}
.announcement-close:hover { background: rgba(255,255,255,0.35); }

/* 18. CATEGORY PAGE */
.category-page-header {
  padding: 3rem 4% 2rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(10,10,15,0));
  border-bottom: 1px solid var(--border);
}
.category-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.category-page-desc { color: var(--text2); font-size: 0.95rem; max-width: 600px; }
.filter-bar {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 1.5rem 4% 0; flex-wrap: wrap;
}
.sort-select {
  padding: 0.55rem 1rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.85rem; outline: none; cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--primary); }
.results-count { font-size: 0.85rem; color: var(--text3); }

/* 19. SEARCH RESULTS PAGE */
.search-page { padding: 2rem 4%; }
.search-page-header { margin-bottom: 2rem; }
.search-page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.search-page-query { color: var(--text2); font-size: 0.95rem; }
.search-page-query strong { color: var(--primary-light); }

/* 20. TOAST NOTIFICATIONS */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 99000; display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
}
.toast {
  padding: 0.85rem 1.2rem;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  max-width: 320px; pointer-events: auto;
  transform: translateX(110%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--primary); }
.toast.warning { border-left: 3px solid var(--gold); }
.toast-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--border2); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; flex-shrink: 0;
  font-weight: 700;
}

/* 21. POPUP / MODAL */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 1rem;
}
.popup-box {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 440px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s ease;
}
.popup-box img { width: 80px; border-radius: 50%; margin: 0 auto 1rem; }
.popup-box h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.popup-box p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.popup-label {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; color: var(--text2); font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.popup-label input { accent-color: var(--primary); }
.popup-continue {
  width: 100%; padding: 0.85rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition);
  opacity: 0.5; pointer-events: none;
}
.popup-continue.enabled { opacity: 1; pointer-events: auto; }
.popup-continue.enabled:hover { background: var(--primary-dark); }

/* 22. SUPPORT AD POPUP */
.support-popup-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.support-popup-overlay.active { opacity: 1; visibility: visible; }
.support-popup-box {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 400px; width: 90%; text-align: center;
  transform: scale(0.9); transition: transform 0.4s ease;
}
.support-popup-overlay.active .support-popup-box { transform: scale(1); }
.support-popup-box h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.support-popup-box h5 { color: var(--text2); font-weight: 400; margin-bottom: 1rem; }
.support-popup-box p { font-size: 0.88rem; color: var(--text3); line-height: 1.7; margin-bottom: 1.5rem; }
.watch-ad-btn {
  width: 100%; padding: 0.85rem;
  background: var(--red); color: #fff;
  border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition);
}
.watch-ad-btn:hover { background: var(--red-dark); }

/* 23. INTRO ANIMATION KEYFRAMES */
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barFill { to { width: 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer {
  from { background-position: -400px 0; }
  to { background-position: 400px 0; }
}

/* 24. SKELETON LOADING */
.skeleton {
  background: linear-gradient(90deg,
    var(--card) 0%,
    var(--bg3) 40%,
    var(--card-hover) 50%,
    var(--bg3) 60%,
    var(--card) 100%);
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius);
}
/* Skeleton card — matches anime-card structure */
.skeleton-card {
  width: 155px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card);
}
.skeleton-card .skeleton-img {
  width: 100%; aspect-ratio: 2/3;
  border-radius: 0;
}
.skeleton-card .skeleton-info {
  padding: 0.6rem;
}
.skeleton-card .skeleton-title {
  height: 11px; border-radius: 4px; margin-bottom: 6px;
  width: 90%;
}
.skeleton-card .skeleton-meta {
  height: 9px; border-radius: 4px; width: 55%;
}

/* Utility */
.empty-row {
  color: var(--text3); font-size: 0.88rem;
  padding: 0.5rem 0; white-space: nowrap;
}
.empty-grid {
  grid-column: 1 / -1; text-align: center;
  padding: 3rem; color: var(--text3);
}

/* SEO section at bottom of homepage */
.seo-section {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2.5rem 4%; margin-top: 2rem;
}
.seo-section h2 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text);
}
.seo-section p {
  color: var(--text2); line-height: 1.85; font-size: 0.88rem; max-width: 860px;
}
.seo-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem;
}
.seo-links a {
  padding: 0.35rem 0.85rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  color: var(--text2); font-size: 0.8rem;
  transition: all var(--transition);
}
.seo-links a:hover { border-color: var(--primary); color: var(--primary-light); }

/* FAQ section */
.faq-section {
  background: var(--bg1); padding: 2.5rem 4% 3rem;
}
.faq-list {
  display: flex; flex-direction: column; gap: 0.6rem; max-width: 900px;
}
.faq-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border2); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  color: var(--text); list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--text3);
  flex-shrink: 0; transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 0.7rem; color: var(--text2); font-size: 0.87rem; line-height: 1.7;
}

/* 25. FOOTER */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 4% 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 0.75rem;
}
.footer-brand .footer-logo span { color: var(--primary-light); }
.footer-brand p { font-size: 0.85rem; color: var(--text3); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text3); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text3);
}
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text2);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* 26. NOTIFICATION / UPDATE BANNER */
.update-popup {
  position: fixed; inset: 0;
  background: rgba(10,10,15,0.88); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; padding: 1rem;
}
.update-card {
  background: var(--card); border: 1px solid var(--primary);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 0 40px var(--primary-glow);
  animation: popIn 0.35s ease;
}
.update-card .live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green); margin-right: 6px;
  animation: pulse 1.5s infinite;
}
.update-card h3 { font-size: 1.3rem; margin: 1rem 0 0.75rem; }
.update-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.update-close-btn {
  width: 100%; padding: 0.8rem;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  transition: all var(--transition);
}
.update-close-btn:hover { background: var(--primary-dark); }

/* 27. CONTINUE WATCHING */
.continue-card {
  position: relative;
}
.continue-card .play-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,15,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  border-radius: var(--radius);
}
.continue-card:hover .play-overlay { opacity: 1; }
.play-icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(229,9,20,0.9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transform: scale(0.8); transition: transform 0.2s;
}
.continue-card:hover .play-icon-circle { transform: scale(1); }

/* 28. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  header nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .site-logo { font-size: 1.4rem; }
  .hero { height: clamp(320px, 55vw, 480px); }
  .hero-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .hero-desc { display: none; }
  .hero-content { padding: 0 4% 2.5rem; }
  .anime-card { width: 130px; }
  .skeleton-card { width: 130px; }
  .skeleton-card .skeleton-img { height: 195px; }
  .anime-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .search-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .player-page { padding: 0; }
  .episodes-grid { max-height: 180px; }
  .comments-section { margin: 1.5rem 0; border-radius: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs { gap: 0.4rem; }
  .admin-tab { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .anime-card { width: 120px; }
  .hero-actions { gap: 0.5rem; }
  .btn-play, .btn-outline { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
  .genre-strip { padding: 0.5rem 4%; }
  .section-title { font-size: 1.05rem; }
  .episode-btn { min-width: 50px; padding: 0.45rem 0.6rem; font-size: 0.78rem; }
  .server-btn { padding: 0.45rem 0.9rem; font-size: 0.78rem; }
  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { max-width: 100%; }
}
.backup-platform{

max-width:700px;
margin:45px auto 0;
padding:35px 25px;

background:rgba(255,255,255,.04);
border:1px solid rgba(80,170,255,.25);
border-radius:22px;

backdrop-filter:blur(16px);

text-align:center;

box-shadow:
0 0 25px rgba(0,140,255,.15),
0 20px 45px rgba(0,0,0,.35);

animation:fadeUp .8s ease;

}

.backup-icon{

font-size:55px;
margin-bottom:15px;

animation:float 2.5s ease-in-out infinite;

}

.backup-platform h2{

color:#fff;
font-size:28px;
margin-bottom:15px;

}

.backup-platform p{

color:#cfcfcf;
font-size:16px;
line-height:1.7;

}

.backup-btn{

display:inline-block;

margin:28px 0 20px;

padding:14px 32px;

border-radius:14px;

text-decoration:none;

font-size:17px;
font-weight:bold;

color:#fff;

background:linear-gradient(135deg,#008cff,#53b7ff);

transition:.35s;

box-shadow:0 0 18px rgba(0,140,255,.35);

}

.backup-btn:hover{

transform:translateY(-4px) scale(1.03);

box-shadow:
0 0 30px rgba(0,140,255,.6);

}

.backup-note{

font-size:14px;
opacity:.85;

}

@keyframes float{

0%,100%{
transform:translateY(0);
}

50%{
transform:translateY(-8px);
}

}

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(35px);

}

to{

opacity:1;

transform:translateY(0);

}

}

@media(max-width:600px){

.backup-platform{

margin-top:30px;

padding:25px 18px;

}

.backup-platform h2{

font-size:22px;

}

.backup-platform p{

font-size:14px;

}

.backup-btn{

width:100%;

}

}
/* 29. MISC UTILITIES */
.container { max-width: 1400px; margin: 0 auto; padding: 0 4%; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.loading-text { color: var(--text3); text-align: center; padding: 3rem; }
.error-msg {
  background: rgba(229,9,20,0.1); border: 1px solid rgba(229,9,20,0.25);
  border-radius: var(--radius); padding: 1rem; color: var(--red);
  text-align: center; margin: 1rem 0;
}
.section-pad { padding: 2rem 4%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* 30. CATEGORY BADGE COLORS */
.cat-action { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.cat-romance { background: rgba(236,72,153,0.15); color: #f9a8d4; border-color: rgba(236,72,153,0.3); }
.cat-comedy { background: rgba(234,179,8,0.15); color: #fde68a; border-color: rgba(234,179,8,0.3); }
.cat-mystery { background: rgba(99,102,241,0.15); color: #c7d2fe; border-color: rgba(99,102,241,0.3); }
.cat-fantasy { background: rgba(168,85,247,0.15); color: #ddd6fe; border-color: rgba(168,85,247,0.3); }
.cat-horror { background: rgba(107,114,128,0.15); color: #d1d5db; border-color: rgba(107,114,128,0.3); }
.cat-sports { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.cat-isekai { background: rgba(59,130,246,0.15); color: #93c5fd; border-color: rgba(59,130,246,0.3); }
