/*
Theme Name: Anime21
Theme URI: https://example.com/anime21
Author: Anime21
Description: Tema WordPress streaming anime/donghua (dark, oranye-biru) hasil konversi template Blogger. Hero slider, jadwal rilis per hari, grid kartu, player multi-server, riwayat & bookmark, serta meta SEO lengkap (title, description, canonical, robots, Open Graph, Twitter Card, JSON-LD).
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anime21
Tags: dark, entertainment, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

    :root {
      --bg-body: #0a0f1c;
      --bg-header: #0d1424;
      --bg-card: #121a2e;
      --bg-hover: #1a2540;
      --primary: #ff7a1a;
      --primary-hover: #e8650a;
      --primary-glow: rgba(255, 122, 26, 0.3);
      --accent2: #3b82f6;
      --accent2-glow: rgba(59, 130, 246, 0.35);
      --duo-gradient: linear-gradient(115deg, #ff7a1a 0%, #ff3d68 45%, #3b82f6 100%);
      --star-color: #fbbf24;
      --text-main: #eef1f8;
      --text-muted: #8892a8;
      --border: rgba(255, 255, 255, 0.07);
      --radius: 12px;
      --transition: all 0.25s ease;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar { width: 9px; height: 9px; }
    ::-webkit-scrollbar-track { background: var(--bg-body); }
    ::-webkit-scrollbar-thumb { background: var(--duo-gradient); border-radius: 20px; }
    * { scrollbar-width: thin; scrollbar-color: #ff7a1a var(--bg-body); }

    /* Mode Terang (Light Theme Option) */
    body.light-theme {
      --bg-body: #f4f5f7;
      --bg-header: #ffffff;
      --bg-card: #ffffff;
      --bg-hover: #e5e7eb;
      --text-main: #1f2937;
      --text-muted: #6b7280;
      --border: rgba(0, 0, 0, 0.08);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: var(--bg-body);
      color: var(--text-main);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.3s ease, color 0.3s ease;
    }
    a { color: inherit; text-decoration: none; transition: var(--transition); }
    ul, li { list-style: none; }

    /* Efek Matikan Lampu */
    body.light-off::before {
      content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.95); z-index: 999; pointer-events: none;
    }
    body.light-off #PlayVideo { position: relative; z-index: 1000; box-shadow: 0 0 40px rgba(245, 158, 11, 0.3); }

    /* Theater Mode */
    body.theater-mode .streaming-layout {
      grid-template-columns: 1fr;
      max-width: 1000px;
    }
    body.theater-mode .stream-right { display: none; }



    /* =========================================
       PREMIUM HEADER STYLES
       ========================================= */
    header {
      background: rgba(15, 16, 21, 0.85);
      backdrop-filter: blur(14px) saturate(140%);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      position: relative;
      z-index: 100;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
      transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    }
    
    body.light-theme header {
      background: rgba(255, 255, 255, 0.82);
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .header-wrap {
      max-width: 1320px;
      margin: 0 auto;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    /* Logo Mark - lambang geometris khas */
    .logo a {
      font-size: 21px;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 10px;
      letter-spacing: -0.3px;
    }
    .logo-mark {
      width: 38px; height: 38px; border-radius: 11px;
      background: var(--duo-gradient);
      display: flex; align-items: center; justify-content: center;
      position: relative; flex-shrink: 0;
      box-shadow: 0 6px 18px var(--primary-glow);
      transform: rotate(-6deg);
      transition: transform .3s ease;
    }
    .logo a:hover .logo-mark { transform: rotate(0deg) scale(1.05); }
    .logo-mark i { color: #fff; font-size: 17px; transform: rotate(6deg); }
    .logo-text-sub { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--accent2); text-transform: uppercase; display: block; margin-top: -2px; }

    /* Tombol Hamburger (khusus mobile) */
    .hamburger-btn {
      display: none;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid transparent;
      color: var(--text-main);
      width: 42px;
      height: 42px;
      border-radius: 12px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 17px;
      flex-shrink: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.light-theme .hamburger-btn { background: #f3f4f6; border-color: var(--border); }
    .hamburger-btn:hover { background: var(--duo-gradient); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-glow); }
    .hamburger-btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

    /* Dropdown menu mobile muncul tepat di bawah hamburger, lihat breakpoint ≤768px */
    .nav-menu-header { display: none; }
    .nav-overlay { display: none; }

    /* Navigasi Utama dengan Efek Underline Animasi */
    .nav-menu ul {
      display: flex;
      gap: 24px;
      align-items: center;
    }
    .nav-menu a {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: capitalize;
      position: relative;
      padding: 6px 0;
      transition: color 0.3s ease;
    }
    .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: var(--duo-gradient);
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 4px;
      box-shadow: 0 0 10px var(--primary-glow);
    }
    .nav-menu a:hover, .nav-menu a.active {
      color: var(--text-main);
    }
    .nav-menu a:hover::after, .nav-menu a.active::after {
      width: 100%;
    }

    /* Kotak Pencarian */
    .search-bar {
      position: relative;
      max-width: 260px;
      width: 100%;
    }
    .search-bar input {
      width: 100%;
      padding: 10px 45px 10px 18px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text-main);
      font-size: 13px;
      font-family: inherit;
      transition: all 0.3s ease;
    }
    body.light-theme .search-bar input {
      background: #f3f4f6;
    }
    .search-bar input:focus {
      background: var(--bg-hover);
      border-color: var(--accent2);
      box-shadow: 0 0 15px var(--accent2-glow);
      outline: none;
    }
    .search-bar button {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 16px;
      transition: color 0.3s ease;
    }
    .search-bar input:focus + button, .search-bar button:hover {
      color: var(--primary);
    }

    /* Action Buttons (History, Bookmark, Theme) */
    .header-right-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .action-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid transparent;
      color: var(--text-main);
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.light-theme .action-btn {
      background: #f3f4f6;
      border-color: var(--border);
    }
    .action-btn:hover {
      background: var(--duo-gradient);
      color: #fff;
      transform: translateY(-3px);
      box-shadow: 0 8px 20px var(--primary-glow);
      border-color: transparent;
    }

    /* Responsivitas header lengkap sudah diatur di bagian breakpoint terpusat di bawah */







    .main-container { max-width: 1320px; margin: 24px auto; padding: 0 16px; min-height: 75vh; }
    .streaming-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; transition: var(--transition); }
    .stream-left { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }
    .stream-right { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }

    .home-grid-title {
      font-size: 17px; font-weight: 800; margin-bottom: 18px;
      display: flex; align-items: center; gap: 8px;
      text-transform: uppercase; color: var(--text-main);
      position: relative; padding-bottom: 10px;
    }
    .home-grid-title::after {
      content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px;
      background: var(--duo-gradient); border-radius: 4px;
    }

    /* Hero Spotlight Slider */
    .hero-spotlight {
      position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 28px;
      min-height: 380px; background: #000; border: 1px solid var(--border);
      box-shadow: 0 20px 50px rgba(0,0,0,.5);
    }
    .hero-slide {
      position: absolute; inset: 0; display: flex; align-items: flex-end;
      opacity: 0; visibility: hidden; transition: opacity .7s ease;
      z-index: 1;
    }
    .hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
    .hero-slide .hero-bg {
      position: absolute; inset: 0; background-size: cover; background-position: center top;
      filter: saturate(1.15) brightness(.92);
      animation: heroZoom 9s ease-in-out infinite alternate;
    }
    @keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
    .hero-slide .hero-bg::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(8,7,12,.98) 8%, rgba(8,7,12,.75) 45%, rgba(8,7,12,.25) 80%, rgba(8,7,12,.05) 100%),
                  linear-gradient(0deg, rgba(8,7,12,.96) 0%, rgba(8,7,12,.3) 45%, transparent 75%);
    }
    .hero-content { position: relative; z-index: 2; padding: 34px 34px 30px; max-width: 620px; }
    .hero-tag {
      display: inline-flex; align-items: center; gap: 6px; background: var(--duo-gradient);
      color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
      padding: 6px 14px; border-radius: 20px; margin-bottom: 14px;
      box-shadow: 0 6px 16px var(--primary-glow);
    }
    .hero-content h2 {
      font-size: 34px; font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 12px;
      text-shadow: 0 4px 20px rgba(0,0,0,.7);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
    .hero-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #d7d3e0; }
    .hero-meta span i { color: var(--primary); }
    .hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
    .hero-actions { display: flex; align-items: center; gap: 14px; }
    .hero-btn {
      display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #111;
      font-size: 14px; font-weight: 800; padding: 13px 26px 13px 18px; border-radius: 50px;
      transition: var(--transition); box-shadow: 0 10px 26px rgba(0,0,0,.4);
    }
    .hero-btn .play-circle {
      width: 26px; height: 26px; border-radius: 50%; background: var(--duo-gradient);
      display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
      transition: transform .3s ease;
    }
    .hero-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 32px var(--primary-glow); }
    .hero-btn:hover .play-circle { transform: scale(1.15) rotate(8deg); }

    /* Navigasi Slider */
    .hero-dots { position: absolute; bottom: 18px; right: 22px; z-index: 5; display: flex; gap: 8px; }
    .hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s ease; border: none; padding: 0; }
    .hero-dot:hover { background: rgba(255,255,255,.6); }
    .hero-dot.active { width: 24px; background: var(--duo-gradient); }

    .hero-arrow {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
      width: 42px; height: 42px; border-radius: 50%;
      background: rgba(8,7,12,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,.15); color: #fff;
      display: flex; align-items: center; justify-content: center; cursor: pointer;
      transition: var(--transition); font-size: 14px;
    }
    .hero-arrow:hover { background: var(--duo-gradient); border-color: transparent; transform: translateY(-50%) scale(1.08); }
    .hero-arrow.prev { left: 18px; }
    .hero-arrow.next { right: 18px; }

    .anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
    .anime-card {
      background: var(--bg-card); overflow: hidden;
      border: 1px solid var(--border); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease, border-color .3s ease;
      position: relative; animation: cardFadeIn .5s ease both;
      clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
    }
    @keyframes cardFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .anime-card::before {
      content: ''; position: absolute; inset: 0; z-index: 4; padding: 1.5px;
      background: var(--duo-gradient);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      opacity: 0; transition: opacity .3s ease; pointer-events: none;
    }
    .anime-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.55), 0 0 24px var(--accent2-glow); }
    .anime-card:hover::before { opacity: 1; }
    .card-thumb { position: relative; width: 100%; padding-top: 142%; background: #000; overflow: hidden; }
    .card-thumb::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 100%);
      pointer-events: none; z-index: 2;
    }
    .card-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
    .anime-card:hover .card-thumb img { transform: scale(1.1); }
    
    .card-badge-fire {
      position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ff3d68, var(--primary)); color: #fff;
      width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; z-index: 3;
      box-shadow: 0 2px 8px rgba(255,61,104,.5);
    }
    .card-badge-type {
      position: absolute; top: 8px; right: 8px; background: rgba(15, 16, 21, 0.9); backdrop-filter: blur(6px);
      color: #d1d5db; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 6px; z-index: 3; border: 1px solid var(--border); text-transform: uppercase;
    }
    .card-badge-ep {
      position: absolute; bottom: 8px; left: 8px; background: rgba(168, 85, 247, 0.95); backdrop-filter: blur(4px);
      color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; z-index: 3;
    }
    .card-badge-ep:empty { display: none; }
    .card-badge-sub {
      position: absolute; bottom: 8px; right: 8px; background: var(--duo-gradient); color: #fff;
      font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; z-index: 3;
      box-shadow: 0 2px 10px var(--primary-glow);
    }

    .card-body { padding: 12px 10px; }
    .card-title {
      font-size: 12px; font-weight: 700; color: var(--text-main);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 34px; text-align: center;
      transition: color .2s ease;
    }
    .anime-card:hover .card-title { color: var(--primary); }

    .bixbox { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
    .bixbox .heading { font-size: 13.5px; font-weight: 800; color: var(--text-main); margin-bottom: 14px; padding-bottom: 10px; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }

    /* Ranking Populer Bernomor */
    .rank-list { display: flex; flex-direction: column; gap: 12px; }
    .rank-item { display: flex; align-items: center; gap: 10px; }
    .rank-number {
      font-size: 20px; font-weight: 800; font-style: italic; color: var(--bg-hover);
      -webkit-text-stroke: 1px var(--border); width: 24px; flex-shrink: 0; text-align: center;
    }
    .rank-number.top { color: transparent; background: var(--duo-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
    .rank-item img { width: 44px; height: 62px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
    .rank-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
    .rank-title {
      font-size: 12px; font-weight: 700; color: var(--text-main);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .rank-item:hover .rank-title { color: var(--primary); }
    .rank-date { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

    /* Jadwal Rilis */
    .schedule-box { margin-bottom: 26px; }
    .schedule-days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
    .schedule-day {
      position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
      background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
      padding: 10px 10px 10px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer;
      transition: var(--transition); white-space: nowrap;
    }
    .schedule-day:hover { border-color: var(--primary); color: var(--text-main); }
    .schedule-day.active { background: var(--duo-gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px var(--primary-glow); transform: translateY(-1px); }
    .day-count {
      display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
      border-radius: 50px; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 800;
    }
    .day-count:empty { visibility: hidden; }
    .schedule-day.active .day-count { background: rgba(255,255,255,.25); }

    .schedule-grid { display: flex; flex-direction: row; gap: 12px; min-height: 80px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; transition: opacity .25s ease; }
    .schedule-grid.loading { opacity: .4; }
    .schedule-card {
      display: flex; align-items: stretch; gap: 14px; overflow: hidden; background: var(--bg-card);
      border: 1px solid var(--border); border-radius: 14px; padding: 10px;
      flex: 0 0 auto; width: 300px;
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
      animation: cardFadeIn .4s ease both;
    }
    .schedule-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
    .schedule-thumb { position: relative; width: 90px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #000; }
    .schedule-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .schedule-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 6px; }
    .schedule-title {
      font-size: 15px; font-weight: 800; color: var(--text-main); line-height: 1.35;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      transition: color .2s ease;
    }
    .schedule-card:hover .schedule-title { color: var(--primary); }
    .schedule-meta { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
    .schedule-empty { text-align: center; font-size: 12.5px; color: var(--text-muted); padding: 26px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }

    /* Judul & Info Halaman Episode */
    .post-page-title { font-size: 20px; font-weight: 800; color: var(--text-main); line-height: 1.35; margin-bottom: 10px; }
    .post-page-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12.5px; color: var(--text-muted); }
    .post-page-meta i { color: var(--primary); margin-right: 4px; }
    .post-page-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

    /* Tombol Navigasi Halaman (Previous/Next) */
    .pager-btn {
      background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px;
      padding: 11px 26px; color: var(--text-main); font-size: 13px; font-weight: 700;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      text-transform: uppercase; transition: var(--transition);
    }
    .pager-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 8px 20px var(--primary-glow); transform: translateY(-2px); }
    .sinoposis { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
    .sinoposis p { margin-bottom: 12px; }

    .DagPlaArea { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
    .video-content { position: relative; width: 100%; padding-top: 56.25%; }
    #embed_holder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .player-embed, #player_embed, .pframe { width: 100%; height: 100%; }
    .video-nav {
      display: flex; justify-content: space-between; align-items: center;
      padding: 12px 16px; background: var(--bg-header); border-top: 1px solid var(--border);
      font-size: 12px; flex-wrap: wrap; gap: 10px;
    }
    .video-nav .itemleft { display: flex; align-items: center; gap: 18px; }
    .video-nav .icon { display: flex; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; }
    .video-nav .icon svg { width: 16px; height: 16px; }
    .video-nav .icon:hover { color: var(--primary); }

    /* Desain tab server & grid episode ada di bagian terpusat di bawah (.server_option, .tabs.servers, .episode-list) */

    .serverEpisode { display: grid; grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); gap: 8px; list-style: none; }
    .DagPlayOpt {
      background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-main);
      padding: 9px 0; text-align: center; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition); position: relative;
    }
    .DagPlayOpt:hover { border-color: var(--primary); color: var(--primary); }
    .DagPlayOpt.active-playing { background: var(--primary) !important; color: #000 !important; border-color: var(--primary) !important; box-shadow: 0 0 12px var(--primary-glow); }
    /* Indikator Ditonton */
    .DagPlayOpt.watched::after {
      content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
      position: absolute; top: 2px; right: 4px; font-size: 8px; color: #22c55e;
    }
    /* Modal / Drawer (Favorit & History) */
    .drawer-panel {
      position: fixed; top: 0; right: -360px; width: 340px; height: 100%;
      background: var(--bg-card); border-left: 1px solid var(--border);
      z-index: 2000; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
      transition: right 0.3s ease; padding: 20px; display: flex; flex-direction: column;
    }
    .drawer-panel.open { right: 0; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
    .drawer-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
    .drawer-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
    .drawer-close:hover { color: var(--primary); }
    .drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

    footer { background: var(--bg-header); border-top: 1px solid var(--border); margin-top: 60px; padding: 35px 16px; text-align: center; font-size: 12px; color: var(--text-muted); }
    .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
    .footer-links a { color: var(--text-muted); font-weight: 600; }
    .footer-links a:hover { color: var(--primary); }

    /* 1. SMOOTH SCROLLING */
    html { scroll-behavior: smooth; }

    /* 2. OPTIMASI PERFORMA (Anti-Lag Saat Scroll) */
    .anime-card, .card-thumb img, .DagPlayOpt { will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
    img { max-width: 100%; height: auto; display: block; }

    /* =========================================
       DESAIN TAB SERVER & GRID EPISODE
       ========================================= */
    .server_option { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 24px; }
    .server-heading {
      font-size: 13.5px; font-weight: 800; color: var(--text-main); margin-bottom: 16px;
      text-transform: uppercase; letter-spacing: .3px; display: flex; align-items: center; gap: 8px;
    }

    .tabs.servers { display: flex; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tablinks {
      background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-muted);
      padding: 9px 16px; border-radius: 50px; font-size: 12.5px; font-weight: 700; cursor: pointer;
      display: flex; align-items: center; gap: 8px; transition: var(--transition); white-space: nowrap;
    }
    .tablinks i { font-size: 11px; }
    .tablinks .ep-count { background: rgba(255, 255, 255, 0.08); padding: 3px 8px; border-radius: 50px; font-size: 10px; }
    .tablinks:hover { border-color: var(--primary); color: var(--text-main); }
    .tablinks.active { background: var(--duo-gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px var(--primary-glow); }
    .tablinks.active .ep-count { background: rgba(0, 0, 0, 0.25); }

    .episode-list {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px;
      list-style: none; padding: 2px 6px 10px 2px; margin: 0;
      max-height: 280px; overflow-y: auto;
      -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
    }
    .episode-list::-webkit-scrollbar { width: 6px; }
    .episode-list::-webkit-scrollbar-track { background: var(--bg-hover); border-radius: 10px; }
    .episode-list::-webkit-scrollbar-thumb { background: var(--duo-gradient); border-radius: 10px; }
    .episode-list li { width: auto; }
    .episode-list .DagPlayOpt {
      background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-main);
      border-radius: 9px; padding: 12px 5px; text-align: center; font-weight: 800; font-size: 13px;
      cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
      position: relative;
    }
    .episode-list .DagPlayOpt:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
    .episode-list .DagPlayOpt.active-playing {
      background: var(--duo-gradient); color: #fff; border-color: transparent;
      box-shadow: 0 0 0 3px var(--primary-glow), 0 6px 16px var(--primary-glow);
      transform: translateY(-3px);
    }
    .episode-list .DagPlayOpt.active-playing::before {
      content: ''; position: absolute; inset: -4px; border-radius: 12px;
      border: 1.5px solid var(--primary); opacity: .6; animation: epPulse 1.8s ease-out infinite;
      pointer-events: none;
    }
    @keyframes epPulse {
      0% { transform: scale(1); opacity: .6; }
      100% { transform: scale(1.18); opacity: 0; }
    }
    .episode-list .DagPlayOpt.watched:not(.active-playing) { color: var(--text-muted); border-style: dashed; background: transparent; }
    .episode-list .DagPlayOpt.watched::after {
      content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
      position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
      background: #22c55e; color: #fff; font-size: 8px; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 0 2px var(--bg-card);
    }

    /* =========================================
       RESPONSIVE - TABLET (≤1024px)
       ========================================= */
    @media (max-width: 1024px) {
      .streaming-layout { grid-template-columns: 1fr; }
      .anime-grid { grid-template-columns: repeat(4, 1fr); }
    }

    /* =========================================
       RESPONSIVE - TABLET KECIL (≤900px)
       ========================================= */
    @media (max-width: 900px) {
      .search-bar { max-width: 200px; }
      .nav-menu ul { gap: 14px; }
      .anime-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    }

    /* =========================================
       RESPONSIVE - HP (≤768px)
       ========================================= */
    @media (max-width: 900px) {
      .header-wrap { flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; position: relative; }
      .hamburger-btn { display: flex; order: 1; }
      .logo { order: 2; }
      .logo a { font-size: 18px; }
      .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
      .logo-mark i { font-size: 14px; }
      .logo-text-sub { display: none; }
      .header-right-actions { order: 3; margin-left: auto; gap: 6px; }
      .action-btn { width: 38px; height: 38px; font-size: 14px; }
      .search-bar { order: 4; flex: 1 1 100%; max-width: none; }

      /* Nav berubah menjadi dropdown ringkas tepat di bawah tombol hamburger */
      .nav-menu {
        position: absolute; top: calc(100% + 8px); left: 14px; width: 220px; max-width: 72vw;
        background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
        z-index: 1950; padding: 8px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        pointer-events: none;
      }
      .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
      .nav-menu ul { flex-direction: column; align-items: stretch; gap: 2px; }
      .nav-menu a {
        display: block; width: 100%; padding: 11px 14px; border-radius: 9px; font-size: 14px;
      }
      .nav-menu a::after { display: none; }
      .nav-menu a:hover, .nav-menu a.active { background: var(--bg-hover); }

      .main-container { margin: 16px auto; padding: 0 12px; }
      .anime-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
      .home-grid-title { font-size: 15px; }

      .hero-spotlight { min-height: 300px; }
      .hero-content { padding: 22px; }
      .hero-content h2 { font-size: 24px; }
      .hero-meta { gap: 10px; margin-bottom: 16px; }

      .schedule-card { width: 260px; }

      .bixbox { padding: 16px; }
      .server_option { padding: 14px; }
      .tabs.servers { gap: 8px; }
      .tablinks { padding: 7px 12px; font-size: 12px; }
      .episode-list { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px; max-height: 240px; }
      .serverEpisode { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }

      .drawer-panel { width: 88%; right: -100%; }
      .video-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
    }

    /* =========================================
       RESPONSIVE - HP KECIL (≤480px)
       ========================================= */
    @media (max-width: 480px) {
      .header-wrap { padding: 10px 12px; }
      .hamburger-btn { width: 38px; height: 38px; font-size: 15px; }
      .logo a { font-size: 16px; gap: 8px; }
      .action-btn { width: 36px; height: 36px; }
      .header-right-actions { gap: 5px; }

      .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .card-title { font-size: 11px; height: 30px; }
      .card-badge-fire { width: 20px; height: 20px; font-size: 9px; }
      .card-badge-type, .card-badge-ep, .card-badge-sub { font-size: 8px; padding: 2px 6px; }

      .schedule-card { width: 220px; padding: 8px; gap: 10px; }
      .schedule-thumb { width: 70px; }
      .schedule-title { font-size: 13px; }
      .schedule-meta { font-size: 11px; }

      .hero-spotlight { min-height: 260px; border-radius: 14px; }
      .hero-content { padding: 18px; }
      .hero-content h2 { font-size: 19px; }
      .hero-tag { font-size: 9px; padding: 4px 10px; }
      .hero-meta { gap: 8px; margin-bottom: 14px; }
      .hero-meta span { font-size: 11px; }
      .hero-btn { font-size: 12px; padding: 10px 18px 10px 12px; }
      .hero-btn .play-circle { width: 22px; height: 22px; font-size: 10px; }
      .hero-arrow { width: 32px; height: 32px; font-size: 12px; }
      .hero-arrow.prev { left: 10px; }
      .hero-arrow.next { right: 10px; }
      .hero-dots { bottom: 12px; right: 14px; }

      .server_option { padding: 12px; }
      .tabs.servers { gap: 8px; }
      .tablinks { padding: 6px 12px; font-size: 11px; }
      .episode-list { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
      .serverEpisode { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
      .DagPlayOpt { padding: 7px 0; font-size: 11px; }

      .drawer-panel { width: 100%; padding: 16px; }
      .pager-btn { padding: 9px 18px; font-size: 12px; }

      footer { padding: 26px 12px; }
      .footer-links { gap: 14px; font-size: 11px; }
    }

    /* =========================================
       RESPONSIVE - HP SANGAT KECIL (≤360px)
       ========================================= */
    @media (max-width: 360px) {
      .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
      .logo-mark { width: 28px; height: 28px; }
      .hamburger-btn { width: 34px; height: 34px; font-size: 14px; }
      .action-btn { width: 33px; height: 33px; font-size: 13px; }
      .header-right-actions { gap: 4px; }
      .hero-content h2 { font-size: 15px; }
    }





.resolution-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
  }
  .res-btn {
    background-color: #1e1e24; /* Warna dasar tombol */
    color: #8c8c93; /* Warna teks tidak aktif */
    border: none;
    padding: 8px 18px;
    border-radius: 8px; /* Sudut membulat */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .res-btn:hover {
    background-color: #2a2a32;
  }
  .res-btn.active {
    background-color: #a855f7; /* Warna ungu aktif */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.4);
  }

  /* Style opsional agar episode yang sedang aktif terlihat beda */
  .DagPlayOpt.active span {
    background-color: #a855f7 !important;
    color: #fff !important;
  }



/* =========================================
   TAMBAHAN KHUSUS WORDPRESS
   ========================================= */
.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal !important; }
.skip-link:focus { clip:auto; clip-path:none; width:auto; height:auto; background:var(--bg-card); color:var(--text-main); padding:10px 16px; z-index:3000; top:8px; left:8px; }
.logo img.custom-logo { max-height:42px; width:auto; }
.admin-bar header { top:0; }
.logo-text-sub { display:block; }

/* Isi artikel */
.post-body { font-size:14px; line-height:1.85; color:var(--text-main); }
.post-body p { margin-bottom:14px; }
.post-body a { color:var(--primary); }
.post-body a:hover { text-decoration:underline; }
.post-body h2, .post-body h3, .post-body h4 { margin:20px 0 10px; font-weight:800; }
.post-body ul, .post-body ol { margin:0 0 14px 20px; }
.post-body ul li { list-style:disc; }
.post-body ol li { list-style:decimal; }
.post-body img { border-radius:10px; margin:10px 0; }
.post-body blockquote { border-left:3px solid var(--primary); padding:6px 16px; color:var(--text-muted); margin:14px 0; }
.alignleft { float:left; margin:0 16px 10px 0; } .alignright { float:right; margin:0 0 10px 16px; } .aligncenter { margin:10px auto; }

/* Breadcrumb */
.breadcrumbs { font-size:12px; color:var(--text-muted); margin-bottom:14px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.breadcrumbs a:hover { color:var(--primary); }
.breadcrumbs .sep { opacity:.5; }

/* Chip genre / tag */
.chip-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chip { background:var(--bg-hover); border:1px solid var(--border); border-radius:50px; padding:5px 13px; font-size:11.5px; font-weight:700; color:var(--text-muted); }
.chip:hover { border-color:var(--primary); color:var(--primary); }

/* Info series */
.series-info { display:grid; grid-template-columns:140px 1fr; gap:18px; }
.series-info img { width:140px; border-radius:10px; }
.series-info ul li { font-size:12.5px; color:var(--text-muted); margin-bottom:5px; }
.series-info ul li b { color:var(--text-main); }
@media (max-width:520px){ .series-info { grid-template-columns:100px 1fr; gap:12px; } .series-info img { width:100px; } }

/* Navigasi prev/next episode */
.ep-nav { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:0 0 20px; }

/* Pagination */
.navigation.pagination { width:100%; margin:30px 0; }
.nav-links { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.page-numbers { background:var(--bg-card); border:1px solid var(--border); border-radius:50px; padding:9px 16px; font-size:13px; font-weight:700; }
.page-numbers.current, .page-numbers:hover { background:var(--duo-gradient); color:#fff; border-color:transparent; }

/* Sidebar & widget */
.widget { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:20px; }
.widget-title { font-size:13.5px; font-weight:800; text-transform:uppercase; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.widget ul li { padding:6px 0; font-size:13px; color:var(--text-muted); }
.widget ul li a:hover { color:var(--primary); }
.genre-cloud { display:flex; flex-wrap:wrap; gap:8px; }

/* Komentar */
.comments-area { margin-top:24px; }
.comment-list { margin:0; padding:0; }
.comment-body { background:var(--bg-hover); border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:10px; font-size:13px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width:100%; background:var(--bg-hover); border:1px solid var(--border); border-radius:10px; color:var(--text-main); padding:10px 14px; font-family:inherit; margin-bottom:10px; }
.comment-form .submit { background:var(--duo-gradient); color:#fff; border:none; padding:10px 24px; border-radius:50px; font-weight:800; cursor:pointer; }

/* Resolusi/server */
.player-note { font-size:11.5px; color:var(--text-muted); padding:10px 16px; }
.page-404 { text-align:center; padding:60px 0; }
.page-404 h1 { font-size:64px; font-weight:800; background:var(--duo-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* Panel jadwal */
.schedule-panel { display:none; }
.schedule-panel.active { display:flex; flex-direction:row; gap:12px; overflow-x:auto; padding-bottom:6px; }


/* Daftar episode: server yang tidak aktif harus benar-benar tersembunyi */
.episode-list[hidden], .serverEpisode[hidden] { display: none !important; }

/* =========================================================
   RESPONSIF PENUH (HP, tablet, laptop, layar besar) + TOMBOL EPISODE
   ========================================================= */
:root { --gutter: 16px; }
html { -webkit-text-size-adjust: 100%; }
img, video, iframe, svg { max-width: 100%; }
.main-container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.header-wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.post-body { overflow-wrap: anywhere; }
.post-body iframe, .post-body video, .post-body table { max-width: 100%; }
.post-body table { display: block; overflow-x: auto; }
.post-page-title { font-size: clamp(18px, 2.6vw, 26px); }
.drawer-panel { height: 100vh; height: 100dvh; }

/* Grid kartu: kolom menyesuaikan lebar layar */
.anime-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.hero-spotlight { min-height: clamp(260px, 42vw, 420px); }
.hero-content h2 { font-size: clamp(18px, 3.2vw, 34px); }
.series-info { grid-template-columns: clamp(100px, 22vw, 170px) 1fr; }
.series-info img { width: 100%; }

/* Tombol di bawah player */
.video-nav .itemleft { flex-wrap: wrap; gap: 8px; }
.video-nav .icon {
	background: var(--bg-hover); border: 1px solid var(--border); border-radius: 50px;
	padding: 8px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.2;
	color: var(--text-main); min-height: 38px; transition: var(--transition);
}
.video-nav .icon:hover { background: var(--duo-gradient); border-color: transparent; color: #fff; }
#btnBookmark { color: var(--primary); }

/* Toolbar daftar episode */
.episode-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ep-total { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ep-sort {
	background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-main); border-radius: 50px;
	padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
	font-family: inherit; min-height: 36px; transition: var(--transition);
}
.ep-sort:hover { border-color: var(--primary); color: var(--primary); }

/* Tombol episode (lebih rapi) */
.episode-list {
	position: relative; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px;
	max-height: 320px; padding: 8px 8px 14px 4px;
}
.episode-list .DagPlayOpt {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	width: 100%; min-height: 54px; padding: 8px 4px; border-radius: 12px; line-height: 1;
	background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-main);
	font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.episode-list .DagPlayOpt small { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; opacity: .6; }
.episode-list .DagPlayOpt span { font-size: 17px; font-weight: 800; }
.episode-list .DagPlayOpt:hover { background: var(--bg-card); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.episode-list .DagPlayOpt:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.episode-list .DagPlayOpt.active-playing,
.episode-list .DagPlayOpt.active-playing:hover { background: var(--duo-gradient); color: #fff; border-color: transparent; box-shadow: 0 0 0 3px var(--primary-glow), 0 8px 18px var(--primary-glow); transform: none; }
.episode-list .DagPlayOpt.active-playing small { opacity: .85; }
.episode-list .DagPlayOpt.watched:not(.active-playing) { background: var(--bg-hover); border-style: solid; color: var(--text-muted); }
.episode-list .DagPlayOpt.watched::after { top: -5px; right: -5px; }

/* Server tab bisa digeser di HP */
.tabs.servers { scrollbar-width: none; }
.tabs.servers::-webkit-scrollbar { display: none; }
.tablinks, .pager-btn, .schedule-day { min-height: 40px; }
.schedule-days { scroll-snap-type: x proximity; }
.schedule-day { scroll-snap-align: start; }

/* ----- Layar besar (≥1600px) ----- */
@media (min-width: 1600px) {
	.main-container, .header-wrap { max-width: 1500px; }
	.streaming-layout { grid-template-columns: 1fr 360px; }
	.anime-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
/* ----- Laptop kecil (1025–1280px) ----- */
@media (min-width: 1025px) and (max-width: 1280px) {
	.streaming-layout { grid-template-columns: 1fr 280px; gap: 20px; }
}
/* ----- Header agar tidak sesak (901–1100px) ----- */
@media (min-width: 901px) and (max-width: 1100px) {
	.logo-text-sub { display: none; }
	.search-bar { max-width: 180px; }
	.nav-menu ul { gap: 14px; }
	.nav-menu a { font-size: 13px; }
}
/* ----- Tablet (≤1024px): sidebar pindah ke bawah, 2 kolom ----- */
@media (max-width: 1024px) {
	.anime-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
	.stream-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
}
/* ----- HP besar / tablet kecil (≤900px) ----- */
@media (max-width: 900px) {
	:root { --gutter: 14px; }
	.anime-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
	.search-bar { max-width: none; }
}
/* ----- HP (≤600px) ----- */
@media (max-width: 600px) {
	.video-nav { flex-direction: column; align-items: stretch; gap: 10px; }
	.video-nav .itemleft { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
	.video-nav .icon { justify-content: center; width: 100%; padding: 9px 10px; }
	#btnBookmark { justify-content: center; width: 100%; }
	.episode-list { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; max-height: 280px; }
	.episode-list .DagPlayOpt { min-height: 50px; }
	.episode-list .DagPlayOpt span { font-size: 16px; }
	.series-info ul li { font-size: 12px; }
	.stream-right { grid-template-columns: 1fr; }
}
/* ----- HP kecil (≤480px): 2 kolom ----- */
@media (max-width: 480px) {
	:root { --gutter: 12px; }
	.anime-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.server_option, .bixbox, .widget { padding: 14px; }
	.post-page-meta { gap: 8px; font-size: 12px; }
	.page-numbers { padding: 8px 13px; font-size: 12px; }
}
@media (max-width: 340px) {
	.anime-grid { gap: 6px; }
	.episode-list { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); }
}
/* ----- HP posisi landscape ----- */
@media (max-height: 480px) and (orientation: landscape) {
	.hero-spotlight { min-height: 220px; }
	.drawer-panel { width: 60%; }
	.nav-menu { max-height: 70vh; overflow-y: auto; }
}
/* ----- Hormati pengaturan "kurangi animasi" ----- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Matikan Lampu: halaman digelapkan, area player tetap terang */
body.light-off::before { background: rgba(0, 0, 0, 0.92); z-index: 1500; }
body.light-off .DagPlaArea { position: relative; z-index: 1600; box-shadow: 0 0 60px rgba(255, 122, 26, 0.25); }
body.light-off .drawer-panel { z-index: 2000; }

/* Mode Teater: sidebar disembunyikan, player memenuhi lebar halaman */
body.theater-mode .streaming-layout { grid-template-columns: 1fr; max-width: none; }
body.theater-mode .stream-right { display: none; }
body.theater-mode .main-container, body.theater-mode .header-wrap { max-width: 1500px; }
/* Di tablet/HP sidebar sudah di bawah, jadi tombol ini tidak perlu */
@media (max-width: 1024px) { #btnTheater { display: none; } }
