/* code made by kasan | dibuat oleh: kasanvx */
.anime-wrap { padding-bottom: 24px }

/* ---------- hero ---------- */
.anime-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding: 46px 0 22px; min-height: 380px }
.hero-copy h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -.055em; line-height: .98; margin: 20px 0 }
.hero-copy h1 span { color: var(--gold-text) }
.hero-copy > p { color: var(--muted); max-width: 35em; font-size: 1.08rem }
.anime-search { display: flex; gap: 9px; align-items: center; margin-top: 24px; padding: 7px; background: var(--glass); border: 1px solid var(--line-2); border-radius: 18px; max-width: 560px }
.anime-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 6px; color: inherit }
.anime-search .search-ico { font-size: 1.5rem; color: var(--muted); padding-left: 8px }
.hero-tags { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-top: 17px }
.hero-art { height: 280px; position: relative; display: grid; place-items: center }
.art-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--blob-a), transparent 68%); filter: blur(8px) }
.art-card { position: absolute; width: 195px; height: 260px; border: 1px solid var(--line-2); border-radius: 25px; box-shadow: var(--shadow); overflow: hidden }
.art-back { transform: rotate(-13deg) translate(-34px, 8px); background: linear-gradient(145deg, #1A9BD7, #0A2A5E 65%) }
.art-front { transform: rotate(8deg) translate(26px, -2px); background: linear-gradient(160deg, #F9D45C 0 28%, #D48B17 29%, #123C73 62%, #0A2A5E); padding: 18px; color: #222F38; display: flex; flex-direction: column; justify-content: space-between }
.art-top { font-family: var(--f-display); font-weight: 800; font-size: .75rem; letter-spacing: .15em }
.art-star { font-size: 6rem; line-height: 1; text-align: center; text-shadow: 0 5px 0 rgba(0, 0, 0, .1) }
.art-bottom { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; line-height: .95; color: #fff; letter-spacing: -.04em }

/* ---------- chip / tab ---------- */
.a-chips { display: flex; gap: 8px; flex-wrap: wrap }
.a-chips.a-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.a-chips.a-tabs::-webkit-scrollbar { display: none }
.a-chip { display: inline-flex; align-items: center; flex: none; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s }
.a-chip:hover { background: var(--glass-2); color: var(--text) }
.a-chip.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink) }
.a-chip.sm { padding: 5px 12px; font-size: .82rem }
.a-chip.dead { opacity: .45; text-decoration: line-through }
.a-chips.sub { margin-bottom: 18px }
.a-chips.sm-row { margin: 14px 0 }
.genre-wrap { display: flex; gap: 8px; flex-wrap: wrap; max-height: 148px; overflow-y: auto; padding: 2px }

/* ---------- grid ---------- */
.anime-section { padding: 18px 0 12px }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px }
.eyebrow { color: var(--gold-text); font-size: .75rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 7px }
.section-heading h2 { font-size: clamp(1.5rem, 4vw, 2.3rem) }
.anime-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px }
.anime-card { min-width: 0; text-decoration: none; display: block; transition: transform .18s }
.anime-card:hover { transform: translateY(-4px) }
.poster { aspect-ratio: 2/3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--glass-2); position: relative }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s }
.anime-card:hover .poster img { transform: scale(1.04) }
.poster .score { position: absolute; top: 9px; left: 9px; background: rgba(10, 42, 94, .85); backdrop-filter: blur(8px); padding: 5px 9px; border-radius: 10px; font-size: .78rem; font-weight: 700; color: #F9D45C }
.poster .format { position: absolute; bottom: 9px; right: 9px; background: rgba(10, 42, 94, .85); color: #F4F8FD; padding: 5px 8px; border-radius: 8px; font-size: .7rem }
.poster .ep { position: absolute; top: 9px; right: 9px; background: var(--gold); color: var(--gold-ink); padding: 4px 8px; border-radius: 8px; font-size: .7rem; font-weight: 800 }
.anime-card h3 { font-size: 1rem; margin: 10px 2px 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.25em }
.anime-card small { color: var(--muted); margin: 0 2px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.anime-status { color: var(--muted); padding: 14px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.anime-status.error { color: var(--bad) }
.more-wrap { display: flex; justify-content: center; margin-top: 26px }
.a-empty { grid-column: 1/-1; padding: 28px; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); text-align: center }

/* ---------- detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 14px; color: var(--muted); font-weight: 600; text-decoration: none; max-width: 100% }
.back:hover { color: var(--text) }
.detail { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--glass); overflow: hidden }
.detail-banner { height: 190px; position: relative; overflow: hidden; background: var(--glass-2) }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: blur(2px); transform: scale(1.05) }
.detail-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg) 120%) }
.detail-main { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 26px }
.detail.has-banner .detail-main { margin-top: -80px; padding-top: 0; position: relative }
.detail-poster { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); align-self: start; background: var(--glass-2); aspect-ratio: 2/3 }
.detail-poster img { width: 100%; height: 100%; object-fit: cover }
.detail-info { min-width: 0 }
.detail.has-banner .detail-info { padding-top: 84px }
.detail-info h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0 4px }
.detail-info .alt { color: var(--faint); font-size: .88rem; margin: 0 0 10px }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 }
.syn { color: var(--muted); line-height: 1.65; margin: 12px 0; white-space: pre-line }
.stat { color: var(--faint); font-size: .85rem; margin: 8px 0 0 }

/* ---------- episode ---------- */
.eps { margin: 30px 0 }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px }
.ep-btn { display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s }
.ep-btn:hover { background: var(--glass-2); border-color: var(--line-2) }
.ep-btn.seen { color: var(--faint); background: var(--glass-3) }
.ep-btn.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink) }

/* ---------- player ---------- */
.player-card { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--glass); padding: 20px }
.player-head h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem) }
.player-head p { margin: 4px 0 14px }
.player-box { aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden }
.player-box video { width: 100%; height: 100%; background: #000; display: block }
.vid-wrap { position: relative }
/* kontrol video 100% native: tidak ada overlay di atas video, jadi timeline & tombol layar penuh selalu bisa dipencet */
.player-box iframe { width: 100%; height: 100%; border: 0; display: block; background: #000 }
.srv-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px }
.player-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap }
.player-nav .auto { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; cursor: pointer }

/* ---------- catatan ---------- */
.anime-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); margin: 30px 0 0; color: var(--muted); font-size: .88rem }
.anime-note span { color: var(--gold-text); font-size: 1.2rem }
.anime-note p { margin: 0 }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .anime-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .anime-hero { gap: 12px }
  .hero-art { transform: scale(.9) }
}
@media (max-width: 650px) {
  .anime-hero { grid-template-columns: 1fr; padding: 30px 0 14px; min-height: 0 }
  .hero-art { height: 210px; order: -1 }
  .art-card { width: 150px; height: 200px }
  .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 3.8rem) }
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .anime-search { border-radius: 15px }
  .anime-search .btn { padding: 10px 15px }
  .section-heading { align-items: center }
  .detail-banner { height: 130px }
  .detail-main { grid-template-columns: 112px 1fr; gap: 14px; padding: 16px }
  .detail.has-banner .detail-main { margin-top: -50px; padding-top: 0 }
  .detail.has-banner .detail-info { padding-top: 54px }
  .player-card { padding: 12px; border-radius: var(--r-lg) }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) }
}

/* ---------- pemilih bahasa ---------- */
.lang-bar { display: flex; justify-content: flex-end; gap: 6px; padding: 14px 0 0 }
.lang-bar button { font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--muted); cursor: pointer }
.lang-bar button:hover { color: inherit }
.lang-bar button.on { background: var(--gold); color: var(--gold-ink); border-color: transparent }

/* ---------- tombol Nobar di halaman tonton ---------- */
.player-head .nb-open { margin-top: 10px }

/* ---------- entry point Nobar: hero + detail ---------- */
.nb-hero-btn { margin-top: 20px }
.nb-btn { white-space: nowrap }
