/* SquishyBliss — Squishy Toons watch pages and episode hub grid
   New file rather than an addition to cartoons.css on purpose: a fresh
   filename has nothing in anyone's cache, so this ships without waiting
   out the month-long Expires header on the existing stylesheets.
   Plain CSS throughout, because css/tailwind.css is a purged build and
   any utility class not already used on the site does nothing. */

/* ── Previous / next episode, sits on the dark toon-stage ───────────── */

.toon-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-width: 46rem;
  margin: 2.25rem auto 0;
}

@media (min-width: 720px) {
  .toon-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.toon-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 44px;
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

/* When there is no previous episode the next link is the only child, so
   push it to the right-hand column on wide screens to keep the pairing
   readable rather than leaving it stranded on the left. */
.toon-nav-link--next { text-align: right; }
.toon-nav-link--next:only-child { grid-column: 2; }

@media (max-width: 719px) {
  .toon-nav-link--next { text-align: left; }
  .toon-nav-link--next:only-child { grid-column: 1; }
}

.toon-nav-link:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.toon-nav-link:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }

.toon-nav-dir {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

.toon-nav-name { font-weight: 700; line-height: 1.3; }

.toon-back { display: inline-block; margin-top: 1.75rem; }

/* ── Parent note block on the watch pages ───────────────────────────── */

.toon-parent {
  background: #fff;
  border: 4px solid #fbcfe8;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.10);
}

@media (min-width: 820px) { .toon-parent { padding: 2rem; } }

/* ── Episode grid on the hub ────────────────────────────────────────── */

.toon-featured {
  display: block;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  border-radius: 1.35rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 38px -14px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.15s ease;
}

.toon-featured:hover { transform: translateY(-3px); }
.toon-featured:focus-visible { outline: 3px solid #fde68a; outline-offset: 4px; }

.toon-featured img { display: block; width: 100%; height: auto; }

.toon-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
}

.toon-play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #db2777;
  font-size: 1.6rem;
  padding-left: 0.35rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.toon-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
  text-align: left;
}

.toon-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  color: #fff;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.toon-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.2); }
.toon-card:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }

.toon-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.toon-card-body { padding: 0.9rem 1rem 1.1rem; }

.toon-card-ep {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

.toon-card-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; margin: 0.2rem 0 0.35rem; }
.toon-card-meta { font-size: 0.85rem; opacity: 0.85; }

.toon-card--soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.07);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .toon-nav-link, .toon-card, .toon-featured { transition: none; }
}
