:root {
  --bg: #07070d;
  --surface: #0d0d16;
  --surface-2: #13131e;
  --surface-3: #1a1a27;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.15);
  --text: #f7f7fb;
  --muted: #9696a8;
  --faint: #5f5f72;
  --brand: #ff2d63;
  --brand-2: #8b5cf6;
  --green: #4ade80;
  --amber: #fbbf24;
  --radius: 18px;
  --font-title: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4, p { margin-top: 0; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { border: 2px solid var(--surface); border-radius: 20px; background: #29293a; }

.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(52rem 38rem at 8% -8%, rgba(255,45,99,.15), transparent 64%), radial-gradient(48rem 34rem at 96% 0, rgba(139,92,246,.14), transparent 62%), radial-gradient(40rem 30rem at 50% 110%, rgba(14,165,233,.07), transparent 65%); }
#api-progress { position: fixed; z-index: 200; left: 0; top: 0; width: 0; height: 2px; opacity: 0; background: linear-gradient(90deg, var(--brand), #ff7298, var(--brand-2)); box-shadow: 0 0 12px var(--brand); transition: width .35s, opacity .35s; }
#api-progress.busy { width: 76%; opacity: 1; animation: progress-pulse 1.4s ease-in-out infinite alternate; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; transition: background .25s, border .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(8,8,15,.82); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.28); backdrop-filter: blur(18px) saturate(150%); }
.nav-shell { width: min(100%, 1600px); height: 66px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.logo b { background: linear-gradient(105deg, #ff668a, var(--brand), #ac8bff); color: transparent; background-clip: text; }
.logo-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 28px rgba(255,45,99,.25); transition: transform .25s; }
.logo:hover .logo-mark { transform: scale(1.06) rotate(-3deg); }
.logo-mark svg { width: 17px; fill: white; stroke: none; }
.desktop-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.desktop-nav a { padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 700; transition: .2s; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { color: white; background: rgba(255,255,255,.075); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: #e9e9f0; background: rgba(255,255,255,.045); transition: .2s; }
.icon-button:hover, .icon-button.active { color: #fff; border-color: rgba(255,45,99,.4); background: rgba(255,45,99,.16); }
.icon-button svg { width: 17px; height: 17px; }
.top-search { position: relative; display: block; }
.top-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; color: var(--faint); transform: translateY(-50%); }
.top-search input { width: 195px; height: 38px; padding: 0 12px 0 37px; outline: none; color: white; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); font-size: 12px; transition: .25s; }
.top-search input::placeholder { color: var(--faint); }
.top-search input:focus { width: 235px; border-color: rgba(255,45,99,.5); background: rgba(255,255,255,.07); }
.rate-button { height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; color: var(--green); background: rgba(255,255,255,.045); font-size: 10px; font-weight: 800; }
.rate-ring { position: relative; width: 15px; height: 15px; border-radius: 50%; background: conic-gradient(currentColor var(--rate, 0%), rgba(255,255,255,.12) 0); }
.rate-ring::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; background: #11111b; }
.rate-button.warning { color: var(--amber); }
.rate-button.danger { color: var(--brand); }
.mobile-only, .mobile-search { display: none; }

.drawer { position: fixed; z-index: 150; inset: 0; pointer-events: none; visibility: hidden; }
.drawer.open { pointer-events: auto; visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; opacity: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(82vw, 300px); padding: 20px; border-right: 1px solid var(--line); background: #0b0b14; transform: translateX(-102%); transition: transform .32s cubic-bezier(.22,1,.36,1); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav { margin-top: 28px; display: grid; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; border-radius: 12px; color: #c5c5d1; font-size: 13px; font-weight: 700; }
.drawer-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.drawer-nav span { color: var(--faint); font-size: 20px; }
.rate-notice { margin-top: 24px; padding: 14px; display: flex; gap: 10px; border: 1px solid rgba(74,222,128,.2); border-radius: 16px; color: var(--green); background: rgba(74,222,128,.07); }
.rate-notice svg { flex: 0 0 auto; width: 18px; height: 18px; }
.rate-notice b, .rate-notice small { display: block; }
.rate-notice b { font-size: 11px; }
.rate-notice small { margin-top: 3px; color: #8b9f94; font-size: 9px; line-height: 1.5; }

.rate-popover { position: fixed; z-index: 170; right: 24px; top: 60px; width: min(300px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: 17px; color: #d5d5df; background: rgba(13,13,22,.97); box-shadow: 0 20px 55px rgba(0,0,0,.55); backdrop-filter: blur(18px); animation: pop-in .2s both; }
.popover-title { display: flex; align-items: center; gap: 8px; color: white; font-family: var(--font-title); font-size: 14px; font-weight: 800; }
.popover-title svg { width: 17px; color: var(--brand); }
.rate-popover p { margin: 9px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.rate-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rate-stats span { padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--faint); background: rgba(255,255,255,.035); font-size: 8px; text-transform: uppercase; }
.rate-stats b { display: block; margin-top: 2px; color: white; font-size: 11px; }

#app { position: relative; z-index: 1; min-height: 75vh; padding-bottom: 60px; outline: 0; }
.page { width: min(100%, 1600px); margin: auto; padding: 108px 24px 30px; animation: rise-in .4s cubic-bezier(.22,1,.36,1) both; }
.route-loader { min-height: 75vh; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 12px; }
.route-loader span, .spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.route-loader p { margin-top: 12px; }

.hero { position: relative; isolation: isolate; min-height: 84vh; overflow: hidden; padding: 92px 24px 50px; display: flex; align-items: center; }
.hero-bg { position: absolute; z-index: -3; inset: 0; background-position: center 20%; background-size: cover; filter: blur(12px); transform: scale(1.08); opacity: .35; transition: background-image .5s; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7,7,13,.98) 5%, rgba(7,7,13,.76) 52%, rgba(7,7,13,.78)), linear-gradient(0deg, var(--bg), transparent 55%); }
.hero-inner { width: min(100%, 1548px); margin: auto; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); align-items: center; gap: clamp(30px,6vw,90px); }
.hero-copy { max-width: 720px; }
.eyebrows { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: #c5c5d1; background: rgba(255,255,255,.055); font-size: 9px; font-weight: 800; }
.badge.brand { border-color: rgba(255,45,99,.28); color: #ff8ba7; background: rgba(255,45,99,.12); }
.badge.purple { border-color: rgba(139,92,246,.3); color: #bda8ff; background: rgba(139,92,246,.12); }
.badge.green { border-color: rgba(74,222,128,.28); color: var(--green); background: rgba(74,222,128,.1); }
.hero h1 { margin: 20px 0 0; max-width: 690px; font-family: var(--font-title); font-size: clamp(42px,5vw,72px); line-height: 1.02; letter-spacing: -2.6px; font-weight: 900; text-wrap: balance; }
.gradient-text { background: linear-gradient(105deg, #ff7296, var(--brand) 48%, #a98aff); color: transparent; background-clip: text; }
.hero-lead { margin: 19px 0 0; max-width: 650px; color: #c2c2cf; font-size: 15px; line-height: 1.7; }
.hero-lead b { color: white; }
.hero-lead em { color: #ff6c8e; font-style: normal; font-weight: 700; }
.button-row { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-bright); border-radius: 14px; color: white; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 800; transition: .22s; }
.button:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }
.button.primary { border: 0; background: linear-gradient(120deg, var(--brand), #e11d66 52%, var(--brand-2)); box-shadow: 0 15px 35px rgba(255,45,99,.2); }
.button.primary:hover { filter: brightness(1.12); }
.button.small { min-height: 36px; padding: 0 13px; border-radius: 11px; font-size: 10px; }
.button.danger:hover { border-color: rgba(255,45,99,.4); background: rgba(255,45,99,.16); }
.button svg { width: 15px; height: 15px; }
.hero-genres { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.hero-genres a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #b5b5c2; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 700; transition: .2s; }
.hero-genres a:hover { border-color: rgba(255,45,99,.4); color: white; }
.hero-posters { display: flex; align-items: flex-end; gap: 12px; }
.hero-mini { position: relative; flex: 1; aspect-ratio: 2/3; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 19px; opacity: .72; box-shadow: 0 25px 50px rgba(0,0,0,.4); transition: .4s; }
.hero-mini.active, .hero-mini:hover { opacity: 1; transform: translateY(-8px) scale(1.03); border-color: rgba(255,45,99,.6); }
.hero-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.hero-mini:hover img { transform: scale(1.06); }
.hero-mini::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.hero-mini-info { position: absolute; z-index: 1; inset: auto 9px 9px; }
.hero-mini-info b { display: -webkit-box; overflow: hidden; color: white; font-size: 9px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-mini-info span { display: inline-block; margin-top: 5px; padding: 3px 6px; border-radius: 6px; color: white; background: rgba(255,45,99,.9); font-size: 7px; font-weight: 800; }

.home-stack { display: grid; gap: 62px; padding-top: 15px; }
.content-section { width: min(100%, 1600px); margin: auto; padding: 0 24px; }
.section-head { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-icon { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--brand); background: rgba(255,255,255,.04); }
.section-icon svg { width: 18px; height: 18px; }
.section-head h1, .section-head h2 { margin: 0; font-family: var(--font-title); font-size: 24px; line-height: 1.2; letter-spacing: -.4px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.more-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: #c3c3ce; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 800; white-space: nowrap; transition: .2s; }
.more-link:hover { color: white; background: rgba(255,255,255,.08); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 155px)); justify-content: start; gap: 18px 12px; }
.card-row { margin: 0 -24px; padding: 0 24px 6px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.card-row::-webkit-scrollbar, .tab-scroll::-webkit-scrollbar { display: none; }
.card-row .anime-card { width: 150px; flex: 0 0 auto; scroll-snap-align: start; }
.anime-card { position: relative; min-width: 0; animation: rise-in .45s both; }
.poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface-3)); box-shadow: 0 18px 38px -22px #000; transition: border .25s, transform .25s; }
.anime-card:hover .poster-wrap { border-color: rgba(255,45,99,.55); transform: translateY(-3px); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.anime-card:hover .poster-wrap img { transform: scale(1.065); }
.poster-wrap::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.83)); pointer-events: none; }
.poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); background: linear-gradient(145deg, var(--surface-2), #23233a); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.card-type, .card-episode { position: absolute; z-index: 2; padding: 4px 7px; border-radius: 7px; color: white; font-size: 8px; font-weight: 800; }
.card-type { top: 8px; left: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.6); backdrop-filter: blur(6px); text-transform: uppercase; }
.card-episode { right: 8px; bottom: 8px; background: rgba(237,11,75,.9); }
.card-episode.complete { background: rgba(5,150,105,.9); }
.card-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; opacity: 0; color: white; background: rgba(255,45,99,.92); box-shadow: 0 12px 28px rgba(255,45,99,.35); transform: translate(-50%,-42%) scale(.85); transition: .28s; }
.anime-card:hover .card-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.card-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.fav-button { position: absolute; z-index: 4; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 9px; opacity: 0; color: white; background: rgba(0,0,0,.58); backdrop-filter: blur(6px); transition: .2s; }
.anime-card:hover .fav-button, .fav-button.saved { opacity: 1; }
.fav-button.saved { border-color: var(--brand); background: var(--brand); }
.fav-button svg { width: 14px; height: 14px; }
.fav-button.saved svg { fill: currentColor; }
.anime-card h3 { margin: 9px 1px 0; display: -webkit-box; overflow: hidden; color: #ededf3; font-size: 11px; line-height: 1.5; font-weight: 700; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .2s; }
.anime-card:hover h3 { color: #ff6f91; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
.skeleton-card .skeleton { aspect-ratio: 2/3; border-radius: var(--radius); }
.skeleton-card i { display: block; width: 80%; height: 9px; margin-top: 10px; border-radius: 10px; }
.skeleton-card i:last-child { width: 45%; margin-top: 6px; }

.error-state, .empty-state { min-height: 250px; padding: 40px 20px; display: grid; place-content: center; justify-items: center; border: 1px dashed var(--line-bright); border-radius: 24px; text-align: center; background: rgba(13,13,22,.55); }
.state-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,45,99,.25); border-radius: 16px; color: var(--brand); background: rgba(255,45,99,.09); }
.state-icon svg { width: 25px; height: 25px; }
.error-state h3, .empty-state h3 { margin: 14px 0 5px; font-family: var(--font-title); font-size: 18px; }
.error-state p, .empty-state p { max-width: 450px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.error-state .button, .empty-state .button { margin-top: 15px; }

.pager { padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pager a { min-width: 39px; height: 39px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #c9c9d4; background: rgba(255,255,255,.04); font-size: 10px; font-weight: 800; transition: .2s; }
.pager a:hover, .pager a.current { border-color: transparent; color: white; background: linear-gradient(120deg,var(--brand),var(--brand-2)); }
.pager a.disabled { pointer-events: none; opacity: .3; }

.tab-scroll { margin: 0 -24px 22px; padding: 2px 24px 5px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.day-tab, .chip { flex: 0 0 auto; border: 1px solid var(--line); color: #c5c5d1; background: rgba(255,255,255,.04); transition: .2s; }
.day-tab { position: relative; padding: 10px 15px; border-radius: 11px; font-size: 10px; font-weight: 800; }
.day-tab span { margin-left: 6px; color: var(--faint); font-size: 8px; }
.day-tab.today::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border: 2px solid var(--bg); border-radius: 50%; background: var(--green); }
.day-tab.active, .chip.active { border-color: transparent; color: white; background: linear-gradient(120deg,var(--brand),var(--brand-2)); }
.schedule-grid { display: none; }
.schedule-grid.active { display: grid; }

.search-box { position: relative; margin-bottom: 13px; }
.search-box > svg { position: absolute; left: 18px; top: 50%; color: var(--faint); transform: translateY(-50%); }
.search-box input { width: 100%; height: 56px; padding: 0 110px 0 54px; outline: 0; border: 1px solid var(--line); border-radius: 16px; color: white; background: rgba(13,13,22,.8); font-size: 13px; }
.search-box input:focus { border-color: rgba(255,45,99,.5); }
.search-box .button { position: absolute; right: 7px; top: 7px; height: 42px; min-height: 42px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chips > span { color: var(--faint); font-size: 9px; }
.chip { padding: 6px 10px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.chip:hover { color: white; background: rgba(255,255,255,.09); }
.result-note { margin: 25px 0 15px; color: var(--muted); font-size: 10px; }
.result-note b { color: white; }

.detail-backdrop { position: absolute; z-index: -1; inset: 0 0 auto; height: 68vh; overflow: hidden; }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: blur(26px); transform: scale(1.12); }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7,7,13,.55), rgba(7,7,13,.92) 70%, var(--bg)); }
.detail-main { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 34px; }
.detail-poster { position: sticky; top: 90px; height: fit-content; }
.detail-poster .poster-image { aspect-ratio: 2/3; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 24px; box-shadow: 0 25px 55px rgba(0,0,0,.45); }
.poster-image img { width: 100%; height: 100%; object-fit: cover; }
.rating { margin-top: 10px; padding: 10px; display: flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid rgba(251,191,36,.2); border-radius: 14px; color: var(--amber); background: rgba(251,191,36,.08); font-family: var(--font-title); font-size: 16px; font-weight: 900; }
.detail-info { padding-top: 5px; }
.detail-info h1 { max-width: 950px; margin: 12px 0 0; font-family: var(--font-title); font-size: clamp(32px,4vw,54px); line-height: 1.04; letter-spacing: -1.6px; text-wrap: balance; }
.alt-title { margin: 7px 0 0; color: var(--muted); font-size: 11px; font-style: italic; }
.synopsis { max-width: 1020px; margin-top: 24px; }
.synopsis h3, .episode-section h2, .download-section h2 { font-family: var(--font-title); }
.synopsis h3 { margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.synopsis p { color: #bcbcc8; font-size: 11px; line-height: 1.8; white-space: pre-line; }
.genre-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.genre-list a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #c6c6d1; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 700; }
.meta-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.meta-grid div { padding: 10px 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 13px; background: rgba(255,255,255,.025); }
.meta-grid dt { color: var(--faint); font-size: 7px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.meta-grid dd { margin: 4px 0 0; overflow: hidden; color: #dedee7; font-size: 10px; font-weight: 700; text-overflow: ellipsis; }
.episode-section { margin-top: 48px; }
.episode-toolbar { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.episode-toolbar h2 { margin: 0; font-size: 22px; }
.episode-toolbar h2 span { color: var(--faint); font-family: var(--font-body); font-size: 9px; }
.episode-filter { width: 180px; height: 36px; padding: 0 12px; outline: 0; border: 1px solid var(--line); border-radius: 10px; color: white; background: rgba(255,255,255,.04); font-size: 9px; }
.episode-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.episode-link { min-width: 0; padding: 9px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 14px; background: rgba(13,13,22,.7); transition: .2s; }
.episode-link:hover { border-color: rgba(255,45,99,.4); background: var(--surface-2); }
.episode-num { width: 40px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #d9d9e3; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 900; }
.episode-link:hover .episode-num { border-color: transparent; color: white; background: var(--brand); }
.episode-copy { min-width: 0; }
.episode-copy b { display: block; overflow: hidden; color: #e7e7ef; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.episode-copy small { color: var(--faint); font-size: 7px; }

.breadcrumb { margin-bottom: 14px; display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--faint); font-size: 8px; white-space: nowrap; }
.breadcrumb a:hover { color: var(--brand); }
.watch-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; }
.player-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: black; box-shadow: 0 25px 55px rgba(0,0,0,.5); }
.player { position: relative; aspect-ratio: 16/9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.no-player { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.no-player svg { width: 38px; height: 38px; color: var(--faint); }
.no-player b { margin-top: 10px; color: white; font-size: 12px; }
.no-player small { margin-top: 5px; font-size: 8px; }
.player-bar { padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border-top: 1px solid var(--line); background: var(--surface); }
.player-bar .button { min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 8px; }
.episode-nav { margin-left: auto; display: flex; gap: 6px; }
.watch-title-row { margin-top: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.watch-title-row h1 { margin: 0; font-family: var(--font-title); font-size: clamp(21px,3vw,31px); line-height: 1.15; }
.server-list { margin-top: 17px; }
.server-list > p { margin-bottom: 8px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.server-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.server-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: #c7c7d3; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 800; transition: .2s; }
.server-button:hover, .server-button.active { border-color: transparent; color: white; background: linear-gradient(120deg,var(--brand),var(--brand-2)); }
.server-hint { margin-top: 7px; color: var(--faint); font-size: 8px; }
.watch-aside { padding: 14px; height: fit-content; border: 1px solid var(--line); border-radius: 22px; background: rgba(13,13,22,.75); }
.aside-anime { display: flex; gap: 10px; align-items: center; }
.aside-anime-img { width: 45px; height: 62px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.aside-anime-img img { width: 100%; height: 100%; object-fit: cover; }
.aside-anime b { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aside-anime small { color: var(--faint); font-size: 7px; }
.watch-aside h3 { margin: 15px 0 8px; color: var(--muted); font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
.aside-episodes { max-height: 520px; padding-right: 2px; display: grid; gap: 5px; overflow-y: auto; }
.aside-ep { padding: 7px 9px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.045); border-radius: 10px; color: #cfcfda; background: rgba(255,255,255,.025); font-size: 8px; font-weight: 700; }
.aside-ep span { width: 30px; padding: 4px; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.05); text-align: center; font-weight: 900; }
.aside-ep.current { border-color: transparent; color: white; background: linear-gradient(120deg,var(--brand),var(--brand-2)); }
.aside-ep.current span { color: white; background: rgba(255,255,255,.18); }
.download-section { margin-top: 30px; }
.download-section h2 { font-size: 17px; }
.download-group { margin-bottom: 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,13,22,.7); }
.download-head { width: 100%; padding: 11px 13px; display: flex; align-items: center; gap: 8px; border: 0; color: white; background: transparent; text-align: left; }
.download-head strong { padding: 4px 7px; border-radius: 7px; color: #ff91aa; background: rgba(255,45,99,.13); font-size: 8px; }
.download-head span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.download-head small { margin-left: auto; color: var(--faint); font-size: 7px; }
.download-links { display: none; padding: 10px 13px; gap: 7px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.download-group.open .download-links { display: flex; }
.download-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: #d0d0db; background: rgba(255,255,255,.04); font-size: 8px; font-weight: 700; }
.download-links a:hover { color: white; background: var(--brand); }

.filter-layout { display: grid; grid-template-columns: 285px minmax(0,1fr); gap: 24px; }
.filter-panel { position: sticky; top: 86px; height: fit-content; padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: rgba(13,13,22,.72); }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.field select, .field input { width: 100%; height: 39px; padding: 0 10px; outline: 0; border: 1px solid var(--line); border-radius: 10px; color: white; background: var(--surface-2); font-size: 9px; }
.filter-actions { display: flex; gap: 7px; }
.filter-actions .button { flex: 1; padding: 0 10px; }
.active-filters { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters span { padding: 5px 8px; border: 1px solid rgba(255,45,99,.25); border-radius: 999px; color: #ff8da7; background: rgba(255,45,99,.1); font-size: 8px; font-weight: 700; }
.filter-toggle { display: none; }

.az-toolbar { position: sticky; z-index: 20; top: 65px; margin: 0 -24px 20px; padding: 12px 24px; background: rgba(7,7,13,.88); backdrop-filter: blur(15px); }
.az-search { width: 100%; height: 42px; padding: 0 13px; outline: 0; border: 1px solid var(--line); border-radius: 11px; color: white; background: rgba(255,255,255,.045); font-size: 10px; }
.letters { margin-top: 9px; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.letters::-webkit-scrollbar { display: none; }
.letter { min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 8px; font-weight: 900; }
.letter.active { border-color: transparent; color: white; background: linear-gradient(120deg,var(--brand),var(--brand-2)); }
.az-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.az-item { min-width: 0; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.05); border-radius: 11px; color: #d5d5df; background: rgba(13,13,22,.6); font-size: 9px; font-weight: 600; transition: .2s; }
.az-item:hover { border-color: rgba(255,45,99,.35); color: white; background: var(--surface-2); }
.az-letter { width: 25px; height: 25px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 8px; font-weight: 900; }
.az-item:hover .az-letter { color: white; background: var(--brand); }
.az-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.library-tabs { width: fit-content; margin-bottom: 22px; padding: 4px; display: flex; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.library-tab { padding: 8px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; }
.library-tab.active { color: white; background: linear-gradient(120deg,var(--brand),var(--brand-2)); }
.history-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.history-item { padding: 9px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 14px; background: rgba(13,13,22,.7); }
.history-img { width: 42px; height: 58px; flex: 0 0 auto; overflow: hidden; border-radius: 9px; }
.history-img img { width: 100%; height: 100%; object-fit: cover; }
.history-copy { min-width: 0; flex: 1; }
.history-copy b { display: block; overflow: hidden; color: #e6e6ee; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-copy small { display: block; margin-top: 3px; color: var(--faint); font-size: 7px; }
.history-copy a { display: inline-block; margin-top: 6px; color: #ff7898; font-size: 8px; font-weight: 800; }
.remove-history { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); background: rgba(255,255,255,.035); }
.remove-history:hover { color: white; background: var(--brand); }
.remove-history svg { width: 13px; height: 13px; }

.continue-row { margin: 0 -24px; padding: 0 24px 5px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.continue-row::-webkit-scrollbar { display: none; }
.continue-item { width: 260px; flex: 0 0 auto; padding: 9px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 14px; background: rgba(13,13,22,.7); }
.continue-item img { width: 40px; height: 55px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.continue-item div { min-width: 0; }
.continue-item b { display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.continue-item small { color: var(--faint); font-size: 7px; }

.site-footer { position: relative; z-index: 1; margin-top: 70px; border-top: 1px solid var(--line); background: rgba(13,13,22,.62); }
.footer-grid { width: min(100%, 1600px); margin: auto; padding: 42px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 560px; margin: 13px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.footer-safe { display: inline-block; padding: 7px 10px; border: 1px solid rgba(74,222,128,.18); border-radius: 9px; color: #74e9a0; background: rgba(74,222,128,.07); font-size: 8px; font-weight: 700; }
.footer-grid h3 { margin: 3px 0 12px; font-family: var(--font-title); font-size: 12px; }
.footer-grid > div:not(.footer-brand) a { display: block; margin: 8px 0; color: var(--muted); font-size: 9px; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--brand); }
.copyright { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.045); color: var(--faint); text-align: center; font-size: 8px; }
.back-top { position: fixed; z-index: 80; right: 18px; bottom: 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; opacity: 0; pointer-events: none; color: white; background: rgba(13,13,22,.9); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(10px); transition: .25s; }
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.toast { position: fixed; z-index: 220; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 11px 16px; border: 1px solid var(--line-bright); border-radius: 12px; opacity: 0; pointer-events: none; color: white; background: rgba(20,20,30,.97); box-shadow: 0 16px 45px rgba(0,0,0,.5); font-size: 10px; font-weight: 700; transform: translate(-50%,15px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-5px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes progress-pulse { to { width: 92%; filter: brightness(1.4); } }

@media (max-width: 1240px) {
  .desktop-nav { display: none; }
  .mobile-only { display: grid; }
  .card-grid { grid-template-columns: repeat(auto-fill,minmax(120px,150px)); }
  .episode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .az-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 115px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-posters { width: min(100%,560px); }
  .card-grid { grid-template-columns: repeat(auto-fill,minmax(115px,145px)); }
  .detail-main { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-aside { position: static; }
  .aside-episodes { max-height: 350px; }
  .filter-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: none; }
  .filter-panel.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .az-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  input, select { font-size: 16px !important; }
  .nav-shell { padding: 0 14px; }
  .top-search, .rate-button { display: none; }
  .mobile-search { display: grid; }
  .page { padding: 88px 12px 18px; }
  .hero { min-height: 610px; padding: 92px 14px 38px; }
  .hero-inner { display: block; }
  .hero-copy { max-width: 560px; }
  .hero h1 { max-width: 520px; margin-top: 15px; font-size: clamp(36px,11vw,51px); letter-spacing: -1.5px; }
  .hero-lead { margin-top: 14px; }
  .hero-posters { display: none; }
  .hero-genres { margin-top: 17px; gap: 5px; }
  .hero-genres a { padding: 5px 8px; font-size: 8px; }
  .hero .button-row { margin-top: 20px; }
  .hero .button { min-height: 42px; padding: 0 14px; }
  .content-section { padding: 0 14px; }
  .home-stack { gap: 42px; padding-top: 8px; }
  .section-head { margin-bottom: 13px; align-items: center; }
  .section-head h1, .section-head h2 { font-size: 18px; }
  .section-head p { font-size: 8px; line-height: 1.45; }
  .section-icon { width: 34px; height: 34px; border-radius: 10px; }
  .section-icon svg { width: 16px; height: 16px; }
  .more-link { padding: 7px 9px; font-size: 8px; }
  .card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); justify-content: stretch; gap: 14px 7px; }
  .card-row { margin: 0 -14px; padding: 0 14px 6px; gap: 8px; }
  .card-row .anime-card { width: 118px; }
  .card-row > .skeleton { width: 118px !important; border-radius: 13px !important; }
  .poster-wrap { border-radius: 13px; box-shadow: 0 12px 25px -18px #000; }
  .anime-card h3 { margin-top: 6px; font-size: 10px; line-height: 1.4; }
  .card-type { top: 5px; left: 5px; padding: 3px 5px; border-radius: 5px; font-size: 6px; }
  .card-episode { right: 5px; bottom: 5px; padding: 3px 5px; border-radius: 5px; font-size: 7px; }
  .fav-button { top: 5px; right: 5px; width: 25px; height: 25px; border-radius: 7px; opacity: 1; }
  .fav-button svg { width: 12px; height: 12px; }
  .card-play { display: none; }
  .detail-main { grid-template-columns: 1fr; }
  .detail-poster { position: static; width: 125px; margin: auto; }
  .detail-poster .poster-image { border-radius: 16px; }
  .rating { margin-top: 7px; padding: 7px; border-radius: 10px; font-size: 13px; }
  .detail-info { text-align: center; }
  .detail-info h1 { margin-top: 10px; font-size: clamp(27px,8vw,38px); letter-spacing: -.8px; }
  .detail-info .eyebrows, .detail-info .button-row, .detail-info .genre-list { justify-content: center; }
  .detail-info .synopsis { text-align: left; }
  .meta-grid { grid-template-columns: repeat(2,minmax(0,1fr)); text-align: left; }
  .episode-toolbar { align-items: flex-start; flex-direction: column; }
  .episode-filter { width: 100%; }
  .episode-grid { grid-template-columns: 1fr; }
  .watch-title-row { flex-direction: column; }
  .watch-layout { gap: 16px; }
  .player-shell { margin: 0 -12px; border-right: 0; border-left: 0; border-radius: 0; }
  .player-bar { padding: 8px 10px; }
  .player-bar .button { min-height: 34px; }
  .episode-nav { width: 100%; margin-left: 0; }
  .episode-nav .button { flex: 1; }
  .watch-title-row { margin-top: 14px; }
  .watch-aside { padding: 12px; border-radius: 16px; }
  .server-button { min-height: 36px; }
  .day-tab { min-height: 40px; }
  .chip { min-height: 32px; }
  .az-toolbar { top: 65px; margin: 0 -14px 18px; padding: 10px 14px; }
  .history-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 35px 14px; }
  .footer-brand { grid-column: 1 / -1; }
  .rate-popover { right: 16px; }
}

@media (max-width: 480px) {
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; }
  .nav-actions { gap: 6px; }
  .icon-button { width: 35px; height: 35px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 12px; }
  .hero-genres a:nth-child(n+4) { display: none; }
  .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 7px; }
  .card-row .anime-card { width: 104px; }
  .card-row > .skeleton { width: 104px !important; }
  .section-title { gap: 9px; }
  .section-head p { max-width: 175px; }
  .search-box input { padding-right: 85px; }
  .search-box .button { padding: 0 13px; }
  .az-list { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
}

@media (max-width: 360px) {
  .nav-shell { gap: 8px; padding: 0 10px; }
  .logo > span:last-child { font-size: 15px; }
  .hero { min-height: 570px; padding-inline: 12px; }
  .hero h1 { font-size: 35px; }
  .hero .eyebrows .badge:nth-child(3) { display: none; }
  .content-section { padding-inline: 10px; }
  .card-grid { gap-inline: 6px; }
  .card-row { margin-inline: -10px; padding-inline: 10px; }
  .card-row .anime-card, .card-row > .skeleton { width: 98px !important; }
  .section-icon { display: none; }
  .section-head p { max-width: 155px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}