/*
Theme Name: My Anime Roll
Theme URI: https://myanimeroll.me/
Author: My Anime Roll Team
Author URI: https://myanimeroll.me/
Description: Custom, high-speed anime streaming & download theme with instant Ajax filtering, live search, Running Anime slider, and AnimeDrive-style posts.
Version: 1.3.0
Text Domain: myanimeroll
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #101115;
  --bg-surface: #181920;
  --bg-surface-elevated: #20222c;
  --bg-card: #181920;
  --border-color: #272935;
  --border-hover: #3d4052;
  
  --brand-red: #e50914;
  --brand-red-hover: #c10712;
  
  --text-white: #ffffff;
  --text-body: #d1d5db;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-full: 9999px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   SITE HEADER (LARGER LOGO, SEARCH BUTTON, ZERO EMOJIS)
   ============================================================ */
header.site-header {
  background: rgba(16, 17, 21, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 20px;
}

/* Bolder & Larger Logo (Prominent Branding) */
.site-brand img {
  height: 72px; /* Sized up significantly for bold look */
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.site-brand:hover img {
  transform: scale(1.03);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.header-search input {
  width: 100%;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 16px 0 42px;
  color: var(--text-white);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}
.header-search input:focus {
  border-color: var(--brand-red);
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* LIVE SEARCH POPUP DROPDOWN */
.live-search-popup {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  background: #14151c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 2000;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}
.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.live-search-item:hover {
  background: #1d1f2b;
}
.search-item-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.search-item-info {
  flex: 1;
  min-width: 0;
}
.search-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.search-tag-red {
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.search-tag-gray {
  background: #252836;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}
.live-search-loading, .live-search-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* HEADER NAV & GENRES DROPDOWN */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--text-white);
}
.header-nav a.active {
  color: var(--brand-red);
}
.nav-dropdown-item {
  position: relative;
}
.nav-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #14151c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  list-style: none;
  min-width: 160px;
  padding: 8px 0;
  z-index: 1500;
}
.nav-dropdown-item:hover .nav-sub-menu {
  display: block;
}
.nav-sub-menu li a {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-body);
  display: block;
  transition: all 0.15s;
}
.nav-sub-menu li a:hover {
  background: #1e212d;
  color: var(--brand-red);
  padding-left: 20px;
}

/* MOBILE-FIRST SEARCH TOGGLE BUTTON */
.header-search-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  display: none; /* hidden on wide desktop, shown on mobile */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.header-search-toggle-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-red);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
}

/* MOBILE SEARCH OVERLAY */
.mobile-search-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 17, 21, 0.98);
  padding: 0 16px;
  align-items: center;
  z-index: 1002;
}
.mobile-search-overlay.open {
  display: flex;
}
.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.mobile-search-inner input {
  width: 100%;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 18px;
  color: var(--text-white);
  font-size: 14px;
  outline: none;
}
.mobile-search-inner input:focus {
  border-color: var(--brand-red);
}
.close-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0 6px;
}
.mobile-popup {
  top: 76px;
  left: 16px;
  right: 16px;
  width: auto;
}

/* ============================================================
   MOBILE DRAWER (NO EMOJIS, CLEAN)
   ============================================================ */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 270px;
  height: 100vh;
  background: #14151c;
  border-right: 1px solid var(--border-color);
  z-index: 9999;
  transition: left 0.25s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  left: 0;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}
.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
}
.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-nav-list a {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.drawer-nav-list a:hover {
  color: var(--brand-red);
}
.drawer-tg-link {
  display: block;
  text-align: center;
  background: #0088cc;
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9998;
}
.drawer-overlay.open {
  display: block;
}

/* ============================================================
   RUNNING ANIME SLIDER (AIRING)
   ============================================================ */
.running-anime-section {
  padding: 22px 0 10px;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.airing-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #112217;
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 1.8s infinite;
}
@keyframes dotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.slider-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-arrow-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.running-slider-container {
  position: relative;
  width: 100%;
}
.running-slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.running-slider-track::-webkit-scrollbar {
  display: none;
}
.slider-item-card {
  flex: 0 0 172px;
  max-width: 172px;
  scroll-snap-align: start;
}

/* PORTRAIT POST CARD (SLEEK STREAMING AESTHETIC - ZERO BULK) */
.post-card {
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(229, 9, 20, 0.15);
}
.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0d0e14;
}
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-card:hover .card-thumb {
  transform: scale(1.06);
}
/* Subtle Vignette Gradient at Bottom of Poster */
.card-vignette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(16, 17, 21, 0.9) 0%, rgba(16, 17, 21, 0.4) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Top Micro Badges (Sleek, Minimal, Never Bulky) */
.card-top-badges {
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.micro-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2.5px 6.5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}
.badge-dub-red {
  background: rgba(229, 9, 20, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-multi-purple {
  background: rgba(139, 92, 246, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-dual-blue {
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-sub-amber {
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-ep-pill {
  background: rgba(11, 15, 25, 0.85);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 700;
}
.posts-section .badge-ep-pill {
  display: none !important;
}
/* Sleek Hover Download Button Overlay */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: inherit;
}
.post-card:hover .card-hover-overlay {
  opacity: 1;
}
.download-action-btn {
  background: var(--brand-red, #e50914);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.65);
  transform: scale(0.85);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.15s ease, box-shadow 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.download-action-btn svg {
  stroke: #ffffff;
}
.post-card:hover .download-action-btn {
  transform: scale(1);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.85);
}
.play-action-circle {
  display: none !important;
}
.sub-dot {
  color: var(--text-dim);
  font-size: 10px;
  margin: 0 2px;
}
.sub-quality {
  color: #34d399;
  font-weight: 600;
}

/* 2-Column Responsive Screenshots Grid */
.anime-screenshots-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin: 24px auto !important;
  max-width: 720px !important;
  width: 100% !important;
}
.anime-screenshots-grid img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--border-color) !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.anime-screenshots-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
}
.anime-screenshots-grid br,
.anime-screenshots-grid p {
  display: none !important;
}
@media (max-width: 600px) {
  .anime-screenshots-grid {
    gap: 8px !important;
  }
}
.card-meta-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover .card-title {
  color: #ff3b47;
}
.card-sub-info {
  display: none !important;
}
.airing-pulse-badge {
  display: none !important;
}

/* ============================================================
   CATEGORY FILTER PILLS (AJAX READY)
   ============================================================ */
.filters-bar {
  padding: 14px 0 18px;
}
.filters-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters-scroll::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.filter-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-white);
}
.filter-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* ============================================================
   MAIN POSTS GRID
   ============================================================ */
.main-posts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
  transition: opacity 0.2s ease;
}

/* PAGINATION */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 50px;
}
.pagination-wrap .page-numbers {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pagination-wrap .page-numbers:hover {
  background: var(--bg-surface-elevated);
}
.pagination-wrap .page-numbers.current {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* ============================================================
   SINGLE ANIME POST PAGE (BREADCRUMBS & DETAILS)
   ============================================================ */
.site-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.site-breadcrumbs a {
  color: var(--text-muted);
}
.site-breadcrumbs a:hover {
  color: var(--brand-red);
}
.site-breadcrumbs .current {
  color: var(--text-white);
  font-weight: 600;
}
.site-breadcrumbs .sep {
  color: var(--border-color);
}

.post-view-wrapper {
  padding: 20px 0 50px;
}
.post-article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.post-h1-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  text-align: center;
  line-height: 1.35;
  margin-bottom: 18px;
}
.post-banner-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 28px auto !important;
  max-width: 460px !important;
  width: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}
.post-banner-wrap img {
  width: 100% !important;
  max-width: 460px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}
.entry-content img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

.anime-master-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-red) !important;
  color: #ffffff !important;
  padding: 14px 38px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
}
.anime-master-dl-btn:hover {
  background: var(--brand-red-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.55);
}
.single-download-block {
  text-align: center;
  margin: 28px 0 14px 0;
}
.tg-block {
  text-align: center;
  margin: 10px 0 30px 0;
}
.tg-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(0, 136, 204, 0.35);
  color: #29b6f6;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
}

/* ============================================================
   RICH 4-COLUMN FOOTER
   ============================================================ */
footer.site-footer {
  background: #090a0d;
  border-top: 1px solid var(--border-color);
  padding: 45px 0 20px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 35px;
}
.footer-logo {
  height: 44px;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-social-row {
  display: flex;
  gap: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.social-btn.tg {
  background: #0088cc;
}
.social-btn.disc {
  background: #5865f2;
}
.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--brand-red);
  border-radius: 1px;
}
.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col-list a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s;
}
.footer-col-list a:hover {
  color: var(--brand-red);
}
.footer-bottom-bar {
  border-top: 1px solid #1a1c26;
  padding-top: 18px;
  text-align: center;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE QUERIES (MOBILE FIRST FOCUS)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .slider-item-card {
    flex: 0 0 156px;
    max-width: 156px;
  }
  .main-posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .header-search {
    display: none; /* Hide wide input on mobile */
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-search-toggle-btn {
    display: flex; /* Show prominent round search icon on mobile */
  }
  .site-brand img {
    height: 52px;
  }
  .slider-item-card {
    flex: 0 0 142px;
    max-width: 142px;
  }
  .main-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-article {
    padding: 18px 16px;
  }
  .post-h1-title {
    font-size: 18px;
  }
  .anime-master-dl-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
  }
}
@media (max-width: 520px) {
  .slider-item-card {
    flex: 0 0 132px;
    max-width: 132px;
  }
  .main-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .site-brand img {
    height: 52px;
  }
}

/* ============================================================
   CATEGORY & ARCHIVE HERO SECTION
   ============================================================ */
.category-hero-section {
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.12) 0%, rgba(16, 17, 21, 0) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 32px 0 24px;
  margin-bottom: 28px;
}
.cat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff4d61;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.category-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 10px;
}
.category-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 14px;
}
.category-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #34d399;
  font-weight: 600;
}
.cat-seo-feature-pills {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cat-feat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ============================================================
   STANDARD STATIC PAGES (DMCA, About, Contact, Privacy, Terms)
   ============================================================ */
.page-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 960px;
  margin: 0 auto;
}
.page-h1-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.page-meta-updated {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.page-content h2, .page-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-white);
  margin: 28px 0 12px;
}
.page-content h2 {
  font-size: 20px;
  border-left: 4px solid var(--brand-red);
  padding-left: 12px;
}
.page-content h3 {
  font-size: 17px;
  color: #f1f5f9;
}
.page-content p {
  margin-bottom: 16px;
}
.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.page-content li {
  margin-bottom: 8px;
}
.page-notice-alert {
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-left: 4px solid var(--brand-red);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #fca5a5;
  font-size: 14px;
}
@media (max-width: 768px) {
  .page-article {
    padding: 22px 18px;
  }
  .page-h1-title {
    font-size: 22px;
  }
  .category-h1 {
    font-size: 22px;
  }
}

/* ============================================================
   MAIN CHARACTERS & VOICE CAST GRID (BULLETPROOF FLEX & GRID)
   ============================================================ */
.anime-characters-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 14px 0 24px 0 !important;
}
.anime-characters-grid br, .anime-char-card br {
  display: none !important;
}
.anime-characters-grid p, .anime-char-card p {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}
.anime-char-card {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-width: 0 !important;
}
.anime-char-card img {
  width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
}
.anime-char-card > div {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.anime-char-card span {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}


/* ============================================================
   POST CONTENT DOWNLOAD BOX (EPISODE BUTTONS & ZIP)
   ============================================================ */
.anime-download-box {
  margin: 24px auto 26px auto !important;
  max-width: 480px !important;
  width: 100% !important;
}
.mar-ep-list br, .anime-download-box br {
  display: none !important;
}
.mar-ep-list p, .anime-download-box p {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}
.mar-ep-btn:hover {
  border-color: #ff3344 !important;
  background: rgba(229, 9, 20, 0.2) !important;
  transform: translateX(3px) !important;
}

/* ============================================================
   IMAGE LIGHTBOX MODAL (POSTER & SCREENSHOTS ZOOM + BLUR)
   ============================================================ */
.anime-zoomable-img {
  cursor: zoom-in !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease, box-shadow 0.25s ease !important;
}
.anime-zoomable-img:hover {
  transform: scale(1.025) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

#mar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 24px;
  box-sizing: border-box;
}

#mar-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mar-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  object-fit: contain;
  display: block;
  user-select: none;
}

#mar-lightbox.active #mar-lightbox-img {
  transform: scale(1);
}

.mar-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mar-lightbox-close:hover {
  background: #e50914;
  border-color: #e50914;
  transform: rotate(90deg);
}

.mar-lightbox-hint {
  position: absolute;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}



