/* ==========================================================
   REIKURO ANIME - responsive.css
   Mobile-first: file ini hanya menambah aturan untuk layar
   yang lebih besar. Dimuat setelah style.css dan components.css.
   ========================================================== */

/* ---------- HP sangat kecil ---------- */
@media (max-width: 359px) {
  .brand-name { font-size: .8rem; letter-spacing: .04em; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: .6rem; }
  .hero-title { font-size: 1.3rem; }
  .detail-poster-wrap { width: 120px; }
  .btn { padding: .6rem .95rem; }
}

/* ---------- HP landscape ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { aspect-ratio: auto; height: 80vh; }
  .hero-synopsis { display: none; }
  .detail-hero, .detail-loading .detail-banner-skeleton { height: 160px; }
}

/* ---------- Perangkat sentuh: tanpa efek hover ---------- */
@media (hover: none) {
  .anime-card:hover .card-poster { border-color: var(--border); box-shadow: none; }
  .anime-card:hover .card-poster img { transform: none; }
  .list-item:hover { border-color: var(--border); box-shadow: none; }
}

/* ---------- Tablet kecil (>= 600px) ---------- */
@media (min-width: 600px) {
  .page-title { font-size: 2rem; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }

  .hero { aspect-ratio: 16 / 8; }
  .hero-btn { display: grid; }
  .hero-title { font-size: 2rem; }
  .hero-synopsis { font-size: .92rem; -webkit-line-clamp: 3; }
  .hero-content { padding-bottom: 2.8rem; }

  .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .list-poster { width: 80px; }

  .detail-hero,
  .detail-loading .detail-banner-skeleton { height: 300px; }
  .detail-main { flex-direction: row; align-items: flex-start; gap: 1.5rem; margin-top: -120px; }
  .detail-info { flex: 1; min-width: 0; padding-top: 3.2rem; }
  .detail-poster-wrap { width: 180px; }
  .detail-title { font-size: 2rem; }
  .meta-list { grid-template-columns: repeat(4, auto); justify-content: start; gap: .7rem 2rem; }

  .episode-list { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }

  .watch-info { flex-direction: row; align-items: center; justify-content: space-between; }
  .episode-nav { max-width: 420px; }
}

/* ---------- Desktop (>= 900px) ---------- */
@media (min-width: 900px) {
  /* Navigasi: atas di tengah, navbar bawah hilang */
  .main-nav { display: flex; }
  .bottom-nav { display: none; }
  body[data-page] { padding-bottom: 0; }

  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-search-btn { justify-self: end; }
  .brand-name { font-size: 1rem; }

  .section { margin-block: 2.25rem; }
  .site-footer { margin-top: 3rem; }

  .search-section { max-width: 760px; margin-inline: auto; }
  .search-results { max-height: 70vh; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card-title { font-size: .88rem; }

  .hero { aspect-ratio: 21 / 9; }
  .hero-title { font-size: 2.6rem; }
  .hero-content { padding-bottom: 3.2rem; }
  .hero-dots { bottom: 1.2rem; }
  .hero-btn { width: 48px; height: 48px; }

  /* Katalog: filter selalu tampil */
  .filter-toggle { display: none; }
  .filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    align-items: end;
  }
  .filter-panel > .btn { grid-column: auto; }

  /* Jadwal & history dua kolom */
  .schedule-list, .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-item { padding: .85rem; }

  .detail-hero,
  .detail-loading .detail-banner-skeleton { height: 380px; }
  .detail-main { margin-top: -150px; }
  .detail-info { padding-top: 4.5rem; }
  .detail-poster-wrap { width: 220px; }

  .player-wrap { border-radius: 18px; }
  .episode-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* ---------- Layar lebar (>= 1280px) ---------- */
@media (min-width: 1280px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .hero { max-height: 620px; }
}