/* AnimeXStream Crunchyroll collection — official dark design system with orange brand accents */
:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg2: #0f0f16;
  --bg3: #13131c;
  --card: #16161f;
  --card-hover: #1e1e2c;
  --border: rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.12);
  --primary: #f47521;
  --primary-light: #ff8a3d;
  --primary-dark: #d85d0b;
  --primary-glow: rgba(244,117,33,.35);
  --red: #f47521;
  --red-dark: #d85d0b;
  --red-glow: rgba(244,117,33,.35);
  --gold: #f5b942;
  --text: #f4f4f5;
  --text2: #a1a1aa;
  --text3: #71717a;
  --header-h: 68px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: .25s ease;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.7);
  --gutter: 4%;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.cr-modal-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: #fff; }

/* Crunchyroll-inspired header with AnimeXStream as the site brand */
.cr-header {
  position: fixed;
  z-index: 900;
  inset: 0 0 auto;
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(10,10,15,.98), rgba(10,10,15,.76) 74%, transparent);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cr-header.is-scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.cr-header-left { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 15px; }
.cr-brand { display: inline-flex; align-items: center; }
.cr-brand-wordmark { color: #f4f4f5; font-family: var(--font-display); font-size: 1.85rem; letter-spacing: 1.15px; line-height: 1; white-space: nowrap; }
.cr-brand-wordmark span { color: var(--primary); }
.cr-brand-divider { width: 1px; height: 24px; background: var(--border2); }
.cr-network-logo { display: inline-flex; max-width: 100px; max-height: 32px; align-items: center; justify-content: center; }
.cr-network-logo img { width: auto; max-width: 100px; max-height: 31px; object-fit: contain; filter: drop-shadow(0 2px 12px rgba(244,117,33,.18)); }
#crLogoFallback { color: var(--text2); font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.cr-nav { display: flex; align-items: center; gap: 1.25rem; }
.cr-nav a {
  position: relative;
  padding: 5px 0;
  color: var(--text2);
  font-size: .84rem;
  font-weight: 500;
  transition: color var(--transition);
}
.cr-nav a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.cr-nav a:hover, .cr-nav a.is-active { color: #fff; }
.cr-nav a:hover::after, .cr-nav a.is-active::after { transform: scaleX(1); }
.cr-header-actions { display: flex; align-items: center; gap: 9px; }
.cr-search-trigger, .cr-menu-trigger {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: var(--text2);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cr-search-trigger:hover, .cr-menu-trigger:hover { border-color: var(--border2); background: rgba(255,255,255,.1); color: #fff; }
.cr-search-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cr-menu-trigger { display: none; flex-direction: column; gap: 4px; }
.cr-menu-trigger span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.cr-menu-trigger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.cr-menu-trigger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.cr-mobile-nav {
  position: fixed;
  z-index: 899;
  inset: var(--header-h) 0 auto;
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 12px var(--gutter) 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,.99);
  box-shadow: 0 18px 35px rgba(0,0,0,.38);
}
.cr-mobile-nav.is-open { display: flex; }
.cr-mobile-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text2); font-size: .95rem; }
.cr-mobile-nav a:last-child { border-bottom: 0; }
.cr-mobile-nav a.is-active { color: #fff; }

/* Featured series hero */
.cr-hero {
  position: relative;
  display: flex;
  height: clamp(520px, 72vw, 760px);
  min-height: 520px;
  max-height: 820px;
  align-items: flex-end;
  overflow: hidden;
  background: #111116;
}
.cr-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 28%, rgba(244,117,33,.23), transparent 36%),
    radial-gradient(ellipse at 90% 74%, rgba(131,51,13,.18), transparent 42%),
    linear-gradient(130deg, #211710 0%, #111116 55%, #27170f 100%);
  background-position: center 28%;
  background-size: cover;
  transform: scale(1.01);
  transition: background-image .4s ease, transform .7s ease, opacity .2s ease;
}
.cr-hero-backdrop.has-image { animation: cr-hero-enter .65s ease both; }
.cr-hero-backdrop.is-changing { opacity: .25; }
@keyframes cr-hero-enter {
  from { opacity: .65; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1.01); }
}
.cr-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,15,.87) 5%, rgba(10,10,15,.07) 46%, rgba(10,10,15,.2) 100%),
    linear-gradient(90deg, rgba(10,10,15,.95) 0%, rgba(10,10,15,.76) 35%, rgba(10,10,15,.17) 78%, rgba(10,10,15,.02) 100%);
}
.cr-hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 78%);
  margin: 0 0 clamp(120px, 13vw, 156px) var(--gutter);
  padding-top: calc(var(--header-h) + 45px);
}
.cr-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; color: #d3d0cc; font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.cr-brand-symbol { display: inline-grid; width: 22px; height: 25px; place-items: center; color: var(--primary); font-size: 1.25rem; font-weight: 800; line-height: 1; }
.cr-feature-label { margin: 0 0 4px; color: var(--primary-light); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.cr-hero h1 {
  max-width: 710px;
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7.3vw, 6.3rem);
  font-weight: 400;
  letter-spacing: .012em;
  line-height: .98;
  text-shadow: 0 3px 24px rgba(0,0,0,.35);
  text-wrap: balance;
}
.cr-hero-description { max-width: 520px; margin: 0; color: #e1dedb; font-size: clamp(.86rem, 1.2vw, 1rem); line-height: 1.65; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.cr-hero-meta, .cr-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 10px; color: #d0cbc6; font-size: .78rem; }
.cr-hero-meta:empty { display: none; }
.cr-meta-dot { color: var(--primary); }
.cr-hero-actions, .cr-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.cr-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .87rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.cr-button:hover { transform: translateY(-1px); }
.cr-button svg { width: 16px; height: 16px; }
.cr-button-primary { background: var(--primary); color: #151515; }
.cr-button-primary:hover { background: var(--primary-light); }
.cr-button-primary svg { fill: currentColor; }
.cr-button-secondary { border-color: rgba(255,255,255,.16); background: rgba(58,55,52,.78); color: #fff; }
.cr-button-secondary:hover { background: rgba(81,76,72,.9); }
.cr-button-secondary svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.cr-button-watchlist { border-color: rgba(255,255,255,.12); background: rgba(20,20,23,.82); color: #fff; }
.cr-button-watchlist:hover, .cr-button-watchlist.is-active { border-color: rgba(244,117,33,.55); background: rgba(244,117,33,.18); }
.cr-list-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; color: var(--primary-light); font-size: 1.15rem; font-weight: 600; line-height: 1; }
.cr-hero-pagination { position: absolute; z-index: 3; right: var(--gutter); bottom: 92px; display: flex; align-items: center; gap: 6px; }
.cr-hero-pagination button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.43); transition: width .2s ease, background .2s ease; }
.cr-hero-pagination button.is-active { width: 22px; background: var(--primary); }
.cr-hero-pagination button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Loading state follows the poster-card dimensions from style.css */
.cr-skeleton-line, .cr-skeleton-button { position: relative; display: block; overflow: hidden; background: rgba(255,255,255,.07); }
.cr-skeleton-line::after, .cr-skeleton-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.09) 48%, transparent 76%);
  content: "";
  transform: translateX(-100%);
  animation: cr-shimmer 1.65s ease-in-out infinite;
}
@keyframes cr-shimmer { to { transform: translateX(100%); } }
.cr-hero-skeleton { width: min(600px, 78%); }
.cr-skeleton-kicker { width: 185px; height: 13px; margin: 0 0 15px; border-radius: 3px; }
.cr-skeleton-title { width: min(490px, 94%); height: clamp(50px, 7vw, 86px); margin: 0 0 9px; border-radius: 4px; }
.cr-skeleton-title-short { width: min(320px, 70%); margin-bottom: 18px; }
.cr-skeleton-copy { width: min(425px, 85%); height: 11px; margin-bottom: 8px; border-radius: 3px; }
.cr-skeleton-copy-short { width: min(280px, 65%); margin-bottom: 22px; }
.cr-skeleton-button { width: 148px; height: 43px; border-radius: 5px; }
.cr-skeleton-shell { padding: 0 var(--gutter); }
.cr-skeleton-row { margin: 0 0 26px; }
.cr-skeleton-row-title { width: 185px; height: 21px; margin: 0 0 13px; border-radius: 3px; }
.cr-skeleton-posters { display: flex; gap: .75rem; overflow: hidden; padding: 2px 1px 10px; }
.skeleton-card { width: clamp(120px, 13vw, 155px); flex: 0 0 clamp(120px, 13vw, 155px); overflow: hidden; border-radius: var(--radius); background: var(--card); }
.skeleton-card .skeleton-img { display: block; width: 100%; aspect-ratio: 2 / 3; background: linear-gradient(100deg, #16161f 20%, #22222c 48%, #16161f 76%); background-size: 200% 100%; animation: cr-shimmer-bg 1.6s ease-in-out infinite; }
@keyframes cr-shimmer-bg { to { background-position: -200% 0; } }
.skeleton-card .skeleton-info { display: block; padding: .6rem; }
.skeleton-card .skeleton-title, .skeleton-card .skeleton-meta { display: block; height: 10px; border-radius: 4px; background: rgba(255,255,255,.08); }
.skeleton-card .skeleton-title { width: 90%; margin-bottom: 6px; }
.skeleton-card .skeleton-meta { width: 55%; height: 8px; }

/* Catalogue rows and official anime-card anatomy */
.cr-catalog { position: relative; z-index: 4; margin-top: -60px; padding-bottom: 42px; }
.cr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.section { margin-bottom: 2.35rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1rem; padding: 0 var(--gutter); }
.section-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.2rem; font-weight: 700; }
.section-title::before { width: 4px; height: 20px; border-radius: var(--radius-full); background: linear-gradient(var(--primary-dark), var(--primary-light)); content: ""; }
.cards-row { display: flex; gap: .75rem; overflow-x: auto; padding: .5rem var(--gutter) .8rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cards-row::-webkit-scrollbar { display: none; }
.cr-row { scroll-margin-top: 82px; }
.cr-row-controls { display: flex; gap: 7px; }
.cr-row-count { margin-left: auto; padding-right: 14px; color: var(--text3); font-size: .75rem; }
.cr-row-arrow { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border2); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--text2); font-size: 20px; line-height: 1; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.cr-row-arrow:hover { border-color: rgba(244,117,33,.55); background: rgba(244,117,33,.15); color: #fff; }
.anime-card { position: relative; flex: 0 0 clamp(120px, 13vw, 155px); width: clamp(120px, 13vw, 155px); overflow: visible; border: 0; border-radius: 14px; background: transparent; cursor: pointer; transition: transform .28s ease, filter .28s ease; }
.anime-card:hover { z-index: 5; box-shadow: none; transform: translateY(-4px); }
.anime-card-thumb { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px; background: var(--bg3); isolation: isolate; }
.anime-card-img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg3); transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.anime-card:hover .anime-card-img { transform: scale(1.045); filter: brightness(1.05); }
.anime-card-thumb.no-img { display: grid; place-items: center; background: linear-gradient(145deg, #29221e, #151519); }
.cr-card-fallback { color: rgba(255,255,255,.25); font-family: var(--font-display); font-size: 4rem; }
.card-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.4)); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.anime-card:hover .card-overlay, .anime-card:focus-visible .card-overlay { opacity: 1; }
.card-play-icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding-left: 2px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(244,117,33,.93); box-shadow: 0 5px 18px rgba(0,0,0,.35); color: #fff; font-size: 1rem; transform: scale(.82); transition: transform .25s ease; }
.anime-card:hover .card-play-icon, .anime-card:focus-visible .card-play-icon { transform: scale(1); }
.anime-card-info { width: 100%; margin: 0; padding: 9px 2px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.anime-card-title { display: block; overflow: hidden; margin: 0; color: var(--text); font-size: .82rem; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.anime-card-meta { display: block; overflow: hidden; margin-top: 3px; color: var(--text3); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.card-watchlist-btn {
  position: absolute;
  z-index: 4;
  top: 7px;
  right: 7px;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: rgba(10,10,15,.82);
  color: #e6e3e0;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0;
  transform: scale(.82);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.anime-card:hover .card-watchlist-btn, .anime-card:focus-within .card-watchlist-btn, .card-watchlist-btn.active { opacity: 1; transform: scale(1); }
.card-watchlist-btn.active, .card-watchlist-btn:hover { border-color: var(--primary); background: var(--primary); color: #171412; }
.card-progress { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; height: 3px; background: rgba(255,255,255,.2); }
.card-progress-fill { height: 100%; border-radius: 0 2px 2px 0; background: var(--primary); }
.cr-watchlist-empty { margin: 0 var(--gutter); padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.025); color: var(--text2); font-size: .82rem; }
.cr-genre-group { scroll-margin-top: 84px; }
.cr-genre-intro { margin: 0 var(--gutter) 18px; }
.cr-section-kicker { margin: 0 0 2px; color: var(--primary); font-size: .65rem; font-weight: 700; letter-spacing: .14em; }
.cr-genre-intro h2 { margin: 0; color: var(--text); font-size: 1.35rem; font-weight: 700; }
.cr-footer { display: flex; justify-content: space-between; gap: 20px; margin: 50px var(--gutter) 0; padding: 17px 0 28px; border-top: 1px solid var(--border); color: var(--text3); font-size: .72rem; }
.cr-footer-brand { color: var(--text2); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .8px; }

/* Connection/load failure state */
.cr-empty { display: grid; min-height: 220px; align-content: center; justify-items: center; margin: 0 var(--gutter); padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, var(--bg2), var(--bg)); text-align: center; }
.cr-empty-mark { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 7px; border-radius: 50%; background: rgba(244,117,33,.12); color: var(--primary); font-size: 1.5rem; }
.cr-empty h2 { margin: 0 0 7px; color: var(--text); font-size: 1.25rem; }
.cr-empty p { max-width: 520px; margin: 0 0 16px; color: var(--text2); font-size: .84rem; line-height: 1.65; }
.cr-text-button { padding: 0; border: 0; background: transparent; color: var(--primary-light); font-size: .82rem; font-weight: 600; }
.cr-text-button span { margin-left: 4px; }

/* Search and series-detail overlays */
.cr-overlay { position: fixed; z-index: 9000; inset: 0; display: none; align-items: center; justify-content: center; overflow-y: auto; padding: 22px; background: rgba(7,7,10,.84); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); }
.cr-overlay.is-open { display: flex; }
.cr-search-panel, .cr-detail-panel { position: relative; width: min(720px, 100%); max-height: min(88vh, 850px); overflow: auto; border: 1px solid var(--border2); border-radius: var(--radius-lg); background: #111116; box-shadow: var(--shadow-lg); }
.cr-search-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: clamp(23px, 4vw, 38px);
  overflow: hidden;
}
.cr-search-panel > label { display: block; margin: 0 48px 12px 0; color: var(--text); font-size: .95rem; font-weight: 600; }
.cr-search-field { display: flex; height: 48px; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid var(--border2); border-radius: 8px; background: rgba(255,255,255,.05); }
.cr-search-field:focus-within { border-color: rgba(244,117,33,.65); box-shadow: 0 0 0 3px rgba(244,117,33,.12); }
.cr-search-field svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--text2); stroke-width: 1.8; }
.cr-search-field input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .9rem; }
.cr-search-hint { margin: 12px 0; color: var(--text3); font-size: .75rem; }
.cr-search-results {
  display: grid;
  min-width: 0;
  min-height: 0;
  max-height: min(48vh, 440px);
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.cr-search-result {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  text-align: left;
}
.cr-search-result:hover, .cr-search-result:focus-visible { outline: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.075); }
.cr-search-result img, .cr-search-result .cr-result-fallback { width: 43px; height: 59px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; }
.cr-result-fallback { display: grid; place-items: center; background: var(--bg3); color: var(--primary); font-family: var(--font-display); font-size: 1.4rem; }
.cr-search-result-copy { min-width: 0; max-width: 100%; overflow: hidden; }
.cr-search-result-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.cr-search-result-copy span { display: block; overflow: hidden; margin-top: 4px; color: var(--text3); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.cr-search-no-results { padding: 14px 4px; color: var(--text2); font-size: .84rem; }
.cr-close { position: absolute; z-index: 5; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; font-size: 24px; line-height: 1; }
.cr-close:hover { background: rgba(255,255,255,.14); }
.cr-detail-panel { display: grid; grid-template-columns: minmax(190px,.8fr) 1.2fr; }
.cr-detail-art { min-height: 390px; background-color: var(--bg3); background-position: center; background-size: cover; }
.cr-detail-content { align-self: end; padding: clamp(23px, 4vw, 38px); }
.cr-detail-content .cr-eyebrow { color: var(--primary-light); }
.cr-detail-content h2 { margin: 0 0 8px; color: var(--text); font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.cr-detail-meta { margin: 0 0 14px; color: var(--text2); font-size: .75rem; }
.cr-detail-description { margin: 0 0 22px; color: #d0d0d5; font-size: .84rem; line-height: 1.7; white-space: pre-line; }
.cr-detail-description:empty { display: none; }
.cr-detail-actions { margin-top: 0; }

.cr-seo-copy {
  padding: clamp(30px, 6vw, 60px) var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.cr-seo-copy-inner { max-width: 1120px; margin: 0 auto; }
.cr-seo-copy h2 { margin: 5px 0 12px; color: var(--text); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
.cr-seo-copy p:not(.cr-section-kicker) { max-width: 860px; margin: 0 0 10px; color: var(--text2); font-size: .9rem; line-height: 1.75; }

@media (max-width: 920px) {
  .cr-header-left { gap: 10px; }
  .cr-brand-wordmark { font-size: 1.6rem; }
  .cr-network-logo, .cr-network-logo img { max-width: 78px; }
  .cr-nav { gap: .8rem; }
  .cr-nav a { font-size: .76rem; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .cr-nav { display: none; }
  .cr-menu-trigger { display: inline-flex; }
  .cr-hero {
    height: auto;
    min-height: min(82vh, 740px);
    max-height: none;
    padding-top: calc(var(--header-h) + 58px);
    padding-bottom: clamp(64px, 9vh, 92px);
  }
  .cr-hero-content { width: min(600px, 88%); margin: 0 var(--gutter); padding-top: 0; }
  .cr-hero-skeleton { width: min(600px, 88%); margin: 0 var(--gutter); }
  .cr-hero h1 { font-size: clamp(2.65rem, 8vw, 3.75rem); line-height: 1; }
  .cr-catalog { margin-top: -43px; }
  .section-title { font-size: 1.1rem; }
  .anime-card, .skeleton-card { flex-basis: 130px; width: 130px; }
  .cr-detail-panel { grid-template-columns: 1fr; }
  .cr-detail-art { min-height: clamp(210px, 55vw, 320px); }
}
@media (max-width: 480px) {
  :root { --gutter: 4%; }
  .cr-header { gap: 10px; }
  .cr-header-left { gap: 8px; }
  .cr-header-actions { gap: 7px; }
  .cr-brand-wordmark { font-size: 1.4rem; letter-spacing: .7px; }
  .cr-brand-divider { height: 21px; }
  .cr-network-logo, .cr-network-logo img { max-width: 66px; max-height: 26px; }
  .cr-search-trigger, .cr-menu-trigger { width: 35px; height: 35px; }
  .cr-hero {
    height: auto;
    min-height: min(84vh, 720px);
    max-height: none;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: clamp(58px, 9vh, 82px);
  }
  .cr-hero-content { width: 92%; margin: 0 var(--gutter); }
  .cr-hero-skeleton { width: 92%; margin: 0 var(--gutter); }
  .cr-hero h1 { font-size: clamp(2.35rem, 10vw, 3rem); line-height: 1.02; }
  .cr-hero-description { max-width: 100%; font-size: .86rem; }
  .cr-hero-meta { font-size: .72rem; }
  .cr-hero-actions { gap: 7px; margin-top: 15px; }
  .cr-button { min-height: 40px; gap: 7px; padding: 0 11px; font-size: .76rem; }
  .cr-button-watchlist { padding: 0 9px; }
  .cr-catalog { margin-top: -32px; }
  .section-header { margin-bottom: .7rem; }
  .section-title { font-size: 1.02rem; }
  .cr-row-arrow { width: 29px; height: 29px; }
  .cards-row, .cr-skeleton-posters { gap: .65rem; }
  .anime-card, .skeleton-card { flex-basis: 120px; width: 120px; }
  .anime-card-thumb { border-radius: 13px; }
  .anime-card-info { padding-top: 8px; }
  .anime-card-title { font-size: .77rem; }
  .cr-empty { min-height: 190px; padding: 22px; }
  .cr-empty h2 { font-size: 1.1rem; }
  .cr-footer { margin-top: 34px; font-size: .64rem; }
  .cr-overlay { align-items: center; padding: 12px; }
  .cr-search-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px 16px 14px;
    border-radius: 14px;
  }
  .cr-search-panel > label { margin-right: 44px; }
  .cr-search-results { max-height: min(48vh, 360px); }
  .cr-search-result { min-height: 70px; grid-template-columns: 43px minmax(0, 1fr); gap: 10px; }
  .cr-search-result-copy strong { font-size: .8rem; }
  .cr-hero-pagination { right: var(--gutter); bottom: 22px; }
  .card-watchlist-btn { width: 28px; height: 28px; }
}
@media (hover: none) {
  .anime-card:hover { transform: none; }
  .anime-card:hover .anime-card-img { transform: none; filter: none; }
  .card-overlay { display: none; }
  .card-watchlist-btn { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* =========================================================
   CRUNCHYROLL NETWORKS
   CLEAN HORIZONTAL LOGO ROW
   ========================================================= */

.cr-networks {
  position: relative;

  width: 100%;
  margin: 0;

  padding: 32px 24px 38px;

  background: #080808;

  overflow: hidden;

  box-sizing: border-box;

  z-index: 2;
}


/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.cr-networks-header {
  display: flex;
  align-items: baseline;

  gap: 10px;

  width: 100%;

  margin: 0 0 20px;
  padding: 0;
}


.cr-networks-kicker {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #f47521;

  font-size: 10px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 1.8px;

  text-transform: uppercase;
}


.cr-networks-title {
  display: block;

  margin: 0;
  padding: 0;

  color: #f5f5f5;

  font-size: 24px;
  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -.4px;
}


/* ---------------------------------------------------------
   HORIZONTAL ROW
   --------------------------------------------------------- */

.cr-networks-row {
  display: flex;

  flex-direction: row;
  flex-wrap: nowrap;

  align-items: center;
  justify-content: flex-start;

  gap: 26px;

  width: 100%;

  height: auto;
  min-height: 0;

  margin: 0;

  padding: 4px 2px 10px;

  overflow-x: auto;
  overflow-y: hidden;

  box-sizing: border-box;

  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;
}


.cr-networks-row::-webkit-scrollbar {
  display: none;
}


/* ---------------------------------------------------------
   LOGO ITEM
   --------------------------------------------------------- */

.cr-network-card {
  flex: 0 0 72px;

  width: 72px;
  min-width: 72px;
  max-width: 72px;

  height: 52px;
  min-height: 52px;
  max-height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  background: transparent;

  border: none;
  border-radius: 0;

  box-shadow: none;

  overflow: visible;

  cursor: pointer;

  box-sizing: border-box;

  text-decoration: none;

  transition:
    transform .22s ease,
    opacity .22s ease;
}


/* ---------------------------------------------------------
   LOGO IMAGE
   --------------------------------------------------------- */

.cr-network-card img {
  display: block;

  width: 68px;
  min-width: 68px;
  max-width: 68px;

  height: 48px;
  min-height: 48px;
  max-height: 48px;

  margin: 0;
  padding: 0;

  object-fit: contain;

  background: transparent;

  border: none;
  border-radius: 0;

  box-shadow: none;
  outline: none;

  opacity: .94;

  transition:
    transform .22s ease,
    filter .22s ease,
    opacity .22s ease;
}


/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

.cr-network-card:hover {
  transform: translateY(-3px);
}


.cr-network-card:hover img {
  opacity: 1;

  transform: scale(1.08);

  filter:
    drop-shadow(
      0 6px 14px rgba(244,117,33,.18)
    );
}


/* ---------------------------------------------------------
   CLICK / TAP
   --------------------------------------------------------- */

.cr-network-card:active {
  transform: scale(.94);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .cr-networks {
    padding:
      28px 18px 34px;
  }


  .cr-networks-header {
    margin-bottom: 18px;
  }


  .cr-networks-kicker {
    font-size: 9px;

    letter-spacing: 1.5px;
  }


  .cr-networks-title {
    font-size: 22px;
  }


  .cr-networks-row {
    gap: 24px;

    padding:
      3px 2px 9px;
  }


  .cr-network-card {
    flex-basis: 68px;

    width: 68px;
    min-width: 68px;
    max-width: 68px;

    height: 48px;
    min-height: 48px;
    max-height: 48px;
  }


  .cr-network-card img {
    width: 64px;
    min-width: 64px;
    max-width: 64px;

    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }

}


/* ---------------------------------------------------------
   VERY SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 380px) {

  .cr-networks {
    padding-left: 14px;
    padding-right: 14px;
  }


  .cr-networks-row {
    gap: 20px;
  }


  .cr-network-card {
    flex-basis: 62px;

    width: 62px;
    min-width: 62px;
    max-width: 62px;
  }


  .cr-network-card img {
    width: 58px;
    min-width: 58px;
    max-width: 58px;

    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }

}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .cr-network-card,
  .cr-network-card img {
    transition: none;
  }

}