/* ============================================
   OKAERI — Design tokens
   Paleta inspirada en el póster de referencia:
   negro cálido + un único acento naranja, tipografía
   stencil/glitch para el título.
   ============================================ */
:root{
  --bg: #0b0906;
  --bg-panel: #16120e;
  --bg-panel-2: #1e1812;
  --gold: #ff7a29;        /* acento principal — naranja */
  --crimson: #ff4a1c;     /* acento secundario — naranja-rojizo, para el "live dot" y badges */
  --text: #f5f0e8;
  --text-muted: #948b7d;
  --border: rgba(245,240,232,.09);
  --font-display: 'Anton', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 4px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input{ font-family: inherit; }

.grain{
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .5rem;
}
.dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 8px var(--crimson); animation: pulse 1.6s infinite; }
@keyframes pulse{ 50%{ opacity: .3; } }

.section-title{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: .02em;
  margin-top: .4rem;
  text-transform: uppercase;
}

.btn{
  border: none; border-radius: 100px;
  padding: .8rem 1.6rem; font-weight: 700; font-size: .85rem;
  letter-spacing: .02em; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn--accent{ background: var(--gold); color: #140d08; }
.btn--accent:hover{ background: #ff8f4d; transform: translateY(-1px); }
.btn--outline{ background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--outline:hover{ border-color: var(--gold); color: var(--gold); }
.btn--ghost{ background: transparent; color: var(--text-muted); padding: .7rem 1rem; }
.btn--ghost:hover{ color: var(--text); }
.btn--lg{ padding: .95rem 2rem; font-size: .95rem; }

.tag{
  font-size: .72rem; padding: .35rem .7rem; border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-muted); letter-spacing: .03em;
}
.tag--mono{ font-family: var(--font-mono); color: var(--gold); border-color: rgba(255,122,41,.25); }

/* ============================================
   TICKER — broadcast strip (signature element)
   ============================================ */
.ticker{
  position: relative; z-index: 40;
  background: var(--gold);
  overflow: hidden;
  height: 32px;
}
.ticker__track{
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap; height: 100%;
  animation: scroll-left 32s linear infinite;
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: #140d08;
  font-weight: 700;
}
.ticker__track span.sep{ opacity: .55; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */
.header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,9,6,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.logo{
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .04em;
}
.logo span{ color: var(--gold); }
.nav{ display: flex; gap: 2.2rem; }
.nav__link{
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
  position: relative; padding-bottom: 4px; transition: color .2s ease;
}
.nav__link::after{
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav__link:hover, .nav__link.is-active{ color: var(--text); }
.nav__link.is-active::after, .nav__link:hover::after{ width: 100%; }
.header__actions{ display: flex; align-items: center; gap: .6rem; }
.icon-btn{
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover{ border-color: var(--gold); color: var(--gold); }
.burger{ display: none; flex-direction: column; gap: 5px; background: none; border: none; }
.burger span{ width: 22px; height: 2px; background: var(--text); }

.search-panel{
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  border-bottom: 1px solid transparent;
}
.search-panel.is-open{ max-height: 320px; border-color: var(--border); }
.search-panel input{
  width: 100%; max-width: 1280px; margin: 0 auto; display: block;
  background: transparent; border: none; color: var(--text);
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .02em;
  padding: 1.2rem 2rem; outline: none;
}
.search-results{ max-width: 1280px; margin: 0 auto; padding: 0 2rem 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.search-results .chip{ pointer-events: none; }
.search-results .chip.hit{ pointer-events: auto; border-color: var(--gold); color: var(--gold); }

/* ============================================
   HERO — retrato a la derecha, título stencil/glitch,
   CTA tipo "Book now", paginación numerada real
   (cambia entre los animes en emisión) + redes.
   ============================================ */
.hero{
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 2rem clamp(4rem, 8vw, 6rem);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
  min-height: 74vh;
}
.hero__glow{
  position: absolute; top: -15%; right: -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,122,41,.22), transparent 70%);
  filter: blur(50px); z-index: -1;
}
.hero__title{
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  line-height: .95; letter-spacing: .01em;
  margin: 1rem 0 1rem;
  text-transform: uppercase;
  position: relative;
  -webkit-text-stroke: 1px rgba(255,122,41,.35);
}
.hero__title.glitching{ animation: glitch .28s steps(2, end) 3; }
@keyframes glitch{
  0%{ transform: translate(0,0); text-shadow: none; }
  20%{ transform: translate(-3px, 2px); text-shadow: 3px 0 var(--gold), -3px 0 var(--crimson); }
  40%{ transform: translate(3px, -2px); text-shadow: -3px 0 var(--gold), 3px 0 var(--crimson); }
  60%{ transform: translate(-2px, 0); text-shadow: 2px 0 var(--gold); }
  100%{ transform: translate(0,0); text-shadow: none; }
}
.hero__desc{ color: var(--text-muted); max-width: 44ch; font-size: .92rem; }
.hero__meta{ display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; }

.hero__ctarow{ display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero__format{ display: flex; flex-direction: column; gap: .15rem; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }
.hero__format span:first-child{ color: var(--text); font-weight: 600; }

.hero__social{ display: flex; gap: 1rem; margin-top: 1.8rem; }
.hero__social a{
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted);
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.hero__social a:hover{ color: var(--gold); border-color: var(--gold); }

.hero__reel{ position: relative; display: flex; justify-content: center; }
.reel-card{
  width: 100%; max-width: 340px; aspect-ratio: 2/3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,.18) 8px 9px),
    linear-gradient(155deg, var(--gold), #7a3512 55%, #140d08);
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(255,122,41,.35);
}
.reel-card::before, .reel-card::after{
  content: ''; position: absolute; left: 0; right: 0; height: 22px;
  background-image: radial-gradient(circle, var(--bg) 5px, transparent 5.5px);
  background-size: 26px 22px; background-repeat: repeat-x; background-position: center;
}
.reel-card::before{ top: 0; }
.reel-card::after{ bottom: 0; }

.hero__playcircle{
  position: absolute; right: 8%; bottom: 22%;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--text); color: #140d08; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.hero__playcircle:hover{ transform: scale(1.08); }

.hero__pager{
  position: absolute; right: 2rem; bottom: 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero__pager[hidden]{ display: none; }
.hero__arrow{
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  width: 30px; height: 30px; border-radius: 50%; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.hero__arrow:hover{ color: var(--gold); border-color: var(--gold); }
.hero__pagenums{ display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .8rem; }
.hero__num{ background: transparent; border: none; color: var(--text-muted); font-family: var(--font-mono); font-size: .8rem; padding: .2rem; }
.hero__num.is-active{ color: var(--gold); font-weight: 700; }

/* ============================================
   SECTION HEAD (shared)
   ============================================ */
.section-head{ max-width: 1280px; margin: 0 auto; padding: 5rem 2rem 2rem; }

/* ============================================
   SCHEDULE — TV guide table
   ============================================ */
.schedule{ background: var(--bg-panel); }
.schedule__grid{
  max-width: 1280px; margin: 0 auto; padding: 0 2rem 5rem;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.schedule__day{ background: var(--bg-panel); padding: 1.1rem .8rem; min-height: 150px; }
.schedule__day.is-today{ background: var(--bg-panel-2); }
.schedule__day h4{
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: .9rem;
}
.schedule__day.is-today h4{ color: var(--gold); }
.schedule__item{ font-size: .8rem; font-weight: 600; padding: .4rem 0; border-top: 1px solid var(--border); }
.schedule__item:first-of-type{ border-top: none; }
.schedule__item span{ display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--crimson); font-weight: 400; margin-top: .15rem; }
.schedule__empty{ color: var(--text-muted); font-size: .75rem; opacity: .5; }

/* ============================================
   CATALOG — filmstrip cards (signature element)
   ============================================ */
.filters{ display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.6rem; }
.chip{
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 100px; padding: .5rem 1rem; font-size: .78rem; font-weight: 600;
  transition: all .2s ease;
}
.chip:hover{ color: var(--text); }
.chip.is-active{ background: var(--gold); color: #140d08; border-color: var(--gold); }

.catalog__grid{
  max-width: 1280px; margin: 0 auto; padding: 0 2rem 6rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem;
}
.card{
  background: var(--bg-panel); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease;
  cursor: pointer;
}
.card:hover{ transform: translateY(-6px); border-color: rgba(255,122,41,.4); }
.card__poster{
  aspect-ratio: 2/3; position: relative;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(0,0,0,.12) 8px 9px);
}
.card__poster::before, .card__poster::after{
  content: ''; position: absolute; left: 0; right: 0; height: 16px;
  background-image: radial-gradient(circle, var(--bg-panel) 4px, transparent 4.4px);
  background-size: 20px 16px; background-repeat: repeat-x; background-position: center; z-index: 2;
}
.card__poster::before{ top: 0; }
.card__poster::after{ bottom: 0; }
.card__play{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11,9,6,0); transition: background .25s ease; opacity: 0;
}
.card:hover .card__play{ opacity: 1; background: rgba(11,9,6,.4); }
.card__play span{
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #140d08;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; transform: scale(.8);
  transition: transform .25s ease;
}
.card:hover .card__play span{ transform: scale(1); }
.card__badge{
  position: absolute; top: 20px; left: 10px; z-index: 3;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em;
  background: var(--crimson); color: #fff; padding: .2rem .5rem; border-radius: 2px;
  text-transform: uppercase;
}
.card__body{ padding: 1rem; }
.card__title{ font-weight: 800; font-size: .95rem; margin-bottom: .3rem; }
.card__sub{ font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.card__sub .rating{ color: var(--gold); }

/* ============================================
   SUBSCRIBE
   ============================================ */
.subscribe{
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg));
  padding: 6rem 2rem; text-align: center; position: relative;
  border-top: 1px solid var(--border);
}
.subscribe__inner{ max-width: 560px; margin: 0 auto; }
.subscribe__desc{ color: var(--text-muted); margin: .9rem 0 1.8rem; }
.subscribe__form{ display: flex; gap: .6rem; }
.subscribe__form input{
  flex: 1; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: .8rem 1rem; outline: none; font-size: .9rem;
}
.subscribe__form input:focus{ border-color: var(--gold); }
.subscribe__note{ margin-top: .9rem; font-size: .8rem; color: var(--gold); font-family: var(--font-mono); min-height: 1.2em; }

/* ============================================
   MODAL
   ============================================ */
.modal{
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(6,5,4,.82); backdrop-filter: blur(4px);
  padding: 1rem;
}
.modal.is-open{ display: flex; }
.modal__box{
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 560px; width: 100%; padding: 2rem; position: relative;
}
.modal__close{
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  color: var(--text-muted); font-size: 1.1rem;
}
.modal__close:hover{ color: var(--text); }
.modal__eyebrow{ font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--gold); margin-bottom: .5rem; }
.modal__player h3{ font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 1.4rem; }
.modal__video{
  width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius);
  border: 1px solid var(--border); display: block;
}
.modal__novideo{
  background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-muted); font-size: .8rem; padding: 1.5rem;
}
.modal__episodes{ display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.modal__episodes .chip{ padding: .4rem .8rem; font-size: .72rem; }
.modal__episodes .chip.is-active{ background: var(--gold); color: #140d08; border-color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.footer{ border-top: 1px solid var(--border); padding: 2.4rem 2rem; }
.footer__inner{
  max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer__inner p{ color: var(--text-muted); font-size: .8rem; }
.footer__social{ display: flex; gap: 1rem; }
.footer__social a{ font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }
.footer__social a:hover{ color: var(--gold); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; padding-top: 2.5rem; min-height: 0; }
  .hero__reel{ order: -1; }
  .reel-card{ max-width: 220px; }
  .hero__pager{ position: static; margin-top: 1.6rem; justify-content: flex-start; }
  .hero__playcircle{ right: 12%; bottom: 8%; }
  .nav{ position: fixed; top: 63px; left: 0; right: 0; background: var(--bg); flex-direction: column;
    padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .25s ease; z-index: 45; }
  .nav.is-open{ transform: translateY(0); }
  .burger{ display: flex; }
  .header__actions .btn--ghost{ display: none; }
  .schedule__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .subscribe__form{ flex-direction: column; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}