/* ============================================
   SUN_SET — Anime Platform
   iOS 26 Glass Morphism · Purple Theme
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple-50: #faf5ff; --purple-100: #f3e8ff; --purple-200: #e9d5ff;
  --purple-300: #d8b4fe; --purple-400: #c084fc; --purple-500: #a855f7;
  --purple-600: #9333ea; --purple-700: #7c3aed; --purple-800: #6d28d9;
  --purple-900: #581c87;
  --white: #fff; --gray-50: #f8f9fc; --gray-100: #f1f3f9; --gray-200: #e2e5ef;
  --gray-300: #c8cde0; --gray-400: #9ca3c0; --gray-500: #6e7599;
  --gray-600: #4a4f6a; --gray-700: #2d3049; --gray-800: #1a1b2e; --gray-900: #0d0e1a;
  --glass-bg: rgba(255,255,255,0.06); --glass-bg-h: rgba(255,255,255,0.1);
  --glass-border: rgba(255,255,255,0.1); --glass-border-h: rgba(255,255,255,0.18);
  --glass-blur: 20px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-2xl: 36px; --r-full: 9999px;
  --ease: cubic-bezier(.25,.1,.25,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --z-nav: 100; --z-dd: 110; --z-modal: 200; --z-toast: 300;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-family: "Dela Gothic One", sans-serif; }
body {
  font-family: "Dela Gothic One", sans-serif;
  background: var(--gray-900); color: var(--gray-100);
  min-height: 100vh; overflow-x: hidden; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* --- Background --- */
.bg-gradient {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(160deg, #080810 0%, #12061f 30%, #0c0a18 60%, #0d0514 100%);
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(120px); animation: orbFloat 25s ease-in-out infinite; }
.bg-orb--1 { width: 700px; height: 700px; background: radial-gradient(circle,rgba(124,58,237,.35),transparent 70%); top: -250px; right: -150px; }
.bg-orb--2 { width: 550px; height: 550px; background: radial-gradient(circle,rgba(168,85,247,.25),transparent 70%); bottom: -200px; left: -120px; animation-delay: -8s; }
.bg-orb--3 { width: 400px; height: 400px; background: radial-gradient(circle,rgba(192,132,252,.15),transparent 70%); top: 35%; left: 35%; animation-delay: -15s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(50px,-40px) scale(1.08)} 66%{transform:translate(-30px,50px) scale(.92)} }

/* --- Glass --- */
.glass {
  background: rgba(255,255,255,.05); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
}

/* --- Nav --- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1280px; height: 50px;
  border-radius: var(--r-full); display: flex; align-items: center; gap: 6px;
  padding: 0 6px 0 6px; z-index: var(--z-nav);
  background: rgba(12,10,22,.6);
  backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
  transition: all .35s var(--ease);
}
.nav--scrolled {
  top: 6px; background: rgba(8,6,18,.88);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.05);
}

.nav__logo {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0;
  padding: 0 10px 0 8px; height: 44px; border-radius: var(--r-full);
  font-family: "Dela Gothic One", sans-serif;
  transition: background .2s;
}
.nav__logo:hover { background: rgba(255,255,255,.04); }
.nav__logo-icon {
  width: 30px; height: 30px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(99,102,241,.25);
}
.nav__logo-icon svg { width: 100%; height: 100%; display: block; }
.nav__brand {
  font-size: 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(135deg,#e9d5ff 0%,#c084fc 40%,#a855f7 70%,#7c3aed 100%);
  background-size: 200% auto; animation: brandShift 5s ease-in-out infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes brandShift { 0%,100%{background-position:0% center} 50%{background-position:100% center} }

.nav__search {
  flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; height: 36px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-full); color: var(--gray-400); transition: all .25s var(--ease);
}
.nav__search:focus-within {
  background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.25);
  box-shadow: 0 0 0 3px rgba(168,85,247,.06), 0 0 16px rgba(168,85,247,.08);
}
.nav__search input { flex: 1; font-size: 13px; min-width: 0; color: var(--gray-200); }
.nav__search input::placeholder { color: var(--gray-500); }
.nav__search kbd {
  font-size: 10px; padding: 2px 5px; border-radius: 4px; line-height: 1;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: var(--gray-600); font-family: inherit;
}

.nav__links { display: flex; gap: 2px; }
.nav__link {
  padding: 6px 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 500;
  color: var(--gray-400); transition: all .2s var(--ease); white-space: nowrap;
  letter-spacing: .01em;
}
.nav__link:hover { color: var(--gray-100); background: rgba(255,255,255,.06); }
.nav__link.active {
  color: white; background: rgba(168,85,247,.14);
  box-shadow: inset 0 0 12px rgba(168,85,247,.08);
}

.nav__right { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.nav__profile-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-full);
  color: var(--gray-400); transition: all .2s;
}
.nav__profile-btn:hover { color: var(--purple-300); background: rgba(168,85,247,.1); }

.nav__burger { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--gray-300); border-radius: 2px; transition: all .25s var(--spring); }
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Avatar */
.avatar-btn {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: linear-gradient(135deg,#9333ea,#6d28d9);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  box-shadow: 0 2px 8px rgba(124,58,237,.3);
  transition: box-shadow .2s;
}
.avatar-btn:hover { box-shadow: 0 4px 16px rgba(124,58,237,.4); }
.nav__avatar { position: relative; }
.avatar-menu {
  position: absolute; top: 52px; right: -8px; min-width: 200px;
  background: rgba(16,12,28,.92);
  backdrop-filter: blur(32px) saturate(1.6); -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(168,85,247,.12);
  border-radius: var(--r-lg); padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px) scale(.94);
  transition: all .25s var(--spring);
  z-index: var(--z-dd);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 40px rgba(124,58,237,.08), inset 0 1px 0 rgba(255,255,255,.05);
}
.avatar-menu.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.avatar-menu::before {
  content: ''; position: absolute; top: -6px; right: 20px;
  width: 12px; height: 12px; background: rgba(16,12,28,.92);
  border-top: 1px solid rgba(168,85,247,.12); border-left: 1px solid rgba(168,85,247,.12);
  transform: rotate(45deg); border-radius: 2px;
}
.avatar-menu__name {
  padding: 12px 14px 10px; font-size: 14px; font-weight: 700; color: white;
  border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 6px;
}
.avatar-menu__item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  color: var(--gray-300); transition: all .15s;
}
.avatar-menu__item:hover { background: rgba(168,85,247,.1); color: white; }
.avatar-menu__item--danger { color: var(--gray-400); }
.avatar-menu__item--danger:hover { background: rgba(239,68,68,.1); color: #f87171; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  transition: all .2s var(--spring); white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg,#9333ea,#7c3aed,#6d28d9); color: white;
  box-shadow: 0 4px 16px rgba(124,58,237,.35), 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12);
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,.45), 0 2px 4px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.15);
  filter: brightness(1.1);
}
.btn--primary:active { transform: translateY(0); filter: brightness(.95); }
.btn--ghost { color: var(--gray-300); }
.btn--ghost:hover { color: white; background: rgba(255,255,255,.06); }
.btn--outline { border: 1px solid var(--glass-border); color: var(--gray-200); }
.btn--outline:hover { background: rgba(255,255,255,.06); border-color: var(--glass-border-h); }
.btn--sm { padding: 7px 14px; font-size: 12px; }
.btn--lg { padding: 12px 24px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); }

/* --- Search Dropdown --- */
.search-dd {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 480px; z-index: var(--z-dd);
}
.search-dd__inner {
  border-radius: var(--r-lg); padding: 8px; overflow-y: auto;
}
#searchResults {
  width: 480px;
  max-height: 456px;
  padding-left: 0;
  padding-right: 0;
  position: absolute;
  left: -270px;
  top: -17px;
  z-index: 603;
  opacity: 1;
}
.search-item {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--r-md);
  cursor: pointer; transition: background .15s;
}
.search-item:hover { background: rgba(168,85,247,.1); }
.search-item__img { width: 44px; height: 62px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.04); }
.search-item__info { flex: 1; min-width: 0; }
.search-item__title { font-size: 13px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item__meta { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.search-item__score { font-size: 11px; color: var(--purple-400); font-weight: 600; }
.search-dd__more { display: block; text-align: center; padding: 10px; font-size: 13px; color: var(--purple-400); font-weight: 500; border-radius: var(--r-sm); transition: background .15s; }
.search-dd__more:hover { background: rgba(168,85,247,.08); }
.search-dd__empty { padding: 24px; text-align: center; color: var(--gray-500); font-size: 13px; }

/* --- Main --- */
.main { min-height: 100vh; padding: 84px 0 100px; }

/* --- Sections --- */
.section { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section + .section { margin-top: 40px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section__title {
  font-size: 20px; font-weight: 800; color: white; letter-spacing: -.03em;
  position: relative; display: inline-block;
}
.section__title::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--purple-500), transparent);
  border-radius: 2px;
}
.section__more { font-size: 13px; color: var(--purple-400); font-weight: 500; }
.section__more:hover { color: var(--purple-300); }

/* --- Hero Banner --- */
.hero-banner {
  position: relative; max-width: 1280px; margin: 0 auto 32px; padding: 0 20px;
}
.hero-slide {
  display: block; position: relative; border-radius: var(--r-xl); overflow: hidden;
  height: 380px; cursor: pointer;
}
.hero-slide__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
  filter: brightness(.6); transition: transform 8s linear;
}
.hero-slide:hover .hero-slide__bg { transform: scale(1.03); }
.hero-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,8,16,.98) 0%, rgba(12,6,24,.6) 40%, rgba(12,6,24,.2) 70%, transparent 100%);
}
.hero-slide__content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
}
.hero-slide__badges { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.hero-slide__title {
  font-size: clamp(24px,4vw,38px); font-weight: 800; color: white; line-height: 1.1;
  margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-slide__desc { font-size: 14px; color: var(--gray-300); max-width: 500px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.hero-slide__actions { display: flex; gap: 10px; }

/* --- Anime Card --- */
.anime-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px;
}
.anime-card {
  display: block; position: relative; cursor: pointer; border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.04);
}
.anime-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(124,58,237,.2), 0 0 0 1px rgba(168,85,247,.15);
  border-color: rgba(168,85,247,.15);
}
.anime-card__img-wrap { position: relative; aspect-ratio: 3/4.3; overflow: hidden; }
.anime-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease); background: rgba(255,255,255,.04);
}
.anime-card:hover .anime-card__img { transform: scale(1.06); }
.anime-card__score {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px;
  background: rgba(13,14,26,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-full); font-size: 11px; font-weight: 700;
  color: var(--purple-300); border: 1px solid rgba(168,85,247,.2);
}
.anime-card__type {
  position: absolute; top: 8px; right: 8px; padding: 3px 8px;
  background: rgba(124,58,237,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-full); font-size: 10px; font-weight: 600; color: white; text-transform: uppercase;
}
.anime-card__info { padding: 10px 10px 12px; }
.anime-card__title {
  font-size: 13px; font-weight: 600; color: var(--gray-100);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.anime-card__meta { font-size: 11px; color: var(--gray-500); margin-top: 3px; }
.anime-card__ep { color: var(--purple-400); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { border-radius: var(--r-lg); overflow: hidden; }
.skeleton-card__img { aspect-ratio: 3/4.3; }
.skeleton-card__line { height: 14px; margin: 10px 10px 0; border-radius: 4px; }
.skeleton-card__line--short { width: 60%; height: 10px; margin-bottom: 12px; }

/* --- Anime Detail --- */
.detail { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.detail__hero { position: relative; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 24px; min-height: 320px; }
.detail__banner {
  height: 300px; background-size: cover; background-position: center;
  filter: brightness(.5) blur(2px); transform: scale(1.05);
}
.detail__banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, #080810 0%, rgba(8,8,16,.7) 40%, rgba(12,6,24,.3) 70%, transparent 100%);
}
.detail__main {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 24px; padding: 24px; align-items: flex-end;
}
.detail__poster {
  width: 160px; flex-shrink: 0; border-radius: var(--r-lg);
  overflow: hidden; border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 60px rgba(124,58,237,.15);
  transition: transform .4s var(--spring);
}
.detail__poster:hover { transform: scale(1.03); }
.detail__poster img { width: 100%; aspect-ratio: 3/4.3; object-fit: cover; }
.detail__info { flex: 1; min-width: 0; }
.detail__title { font-size: clamp(22px,3.5vw,32px); font-weight: 800; color: white; line-height: 1.15; margin-bottom: 8px; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.detail__title-jp { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.detail__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.detail__body { display: grid; grid-template-columns: 1fr 227px; gap: 24px; }
.detail__left {
  max-width: 1038px;
  width: 100%;
  min-width: 0;
}
.detail__left .section {
  max-width: 1053px;
  width: 100%;
  margin-left: -3px;
  margin-right: 75px;
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
  font-weight: 300;
}
.detail__left .section--detail-trailer {
  height: 729px;
}
.detail__right {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 1;
  border-radius: 0;
  text-align: left;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}
.detail__synopsis { font-size: 14px; color: var(--gray-300); line-height: 1.8; margin-bottom: 24px; }
.detail__synopsis-toggle { color: var(--purple-400); cursor: pointer; font-weight: 500; font-size: 13px; }

/* Info Card */
.info-card {
  border-radius: var(--r-lg); padding: 26px; margin-bottom: 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.detail__right .info-card--stats {
  width: 227px;
  height: 525px;
  box-sizing: border-box;
}
.detail__social {
  min-height: 66px;
  box-sizing: border-box;
}
.detail__status-wrap {
  margin-bottom: 12px;
  width: 232px;
  box-sizing: border-box;
}
.detail__tags-block {
  width: 232px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-sizing: border-box;
}
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row__label { color: var(--gray-500); }
.info-row__value { color: var(--gray-200); font-weight: 500; text-align: right; }

/* Episodes */
.episodes-section { margin-top: 8px; }
.episodes-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.episodes-header h3 { font-size: 18px; font-weight: 700; }
.episode-grid { display: flex; flex-direction: column; gap: 8px; }
.episode-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-md); cursor: pointer; transition: all .25s var(--ease);
}
.episode-item:hover {
  background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.2);
  box-shadow: 0 4px 16px rgba(124,58,237,.12);
  transform: translateX(4px);
}
.episode-item__num { font-size: 14px; font-weight: 700; color: var(--purple-400); min-width: 32px; }
.episode-item__info { flex: 1; min-width: 0; }
.episode-item__title { font-size: 13px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-item__meta { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.episode-item__play { color: var(--purple-400); flex-shrink: 0; }

/* Characters */
.char-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.65) rgba(255, 255, 255, 0.06);
}
.char-grid::-webkit-scrollbar {
  height: 6px;
}
.char-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin: 0 4px;
}
.char-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.85), rgba(168, 85, 247, 0.75));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.char-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.95), rgba(192, 132, 252, 0.9));
  border: 2px solid transparent;
  background-clip: padding-box;
}
.char-card { flex-shrink: 0; width: 100px; text-align: center; }
.char-card__img { width: 80px; height: 80px; border-radius: var(--r-lg); object-fit: cover; margin: 0 auto 8px; border: 2px solid rgba(255,255,255,.06); background: rgba(255,255,255,.04); }
.char-card__name { font-size: 11px; font-weight: 600; color: var(--gray-200); }
.char-card__role { font-size: 10px; color: var(--gray-500); }

/* --- Watch Page --- */
.watch { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.watch__player-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 20px;
}
.watch__player-wrap iframe { width: 100%; height: 100%; border: none; }
.watch__no-video {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; color: var(--gray-400);
}
.watch__no-video svg { opacity: .5; }
.watch__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.watch__title { font-size: 20px; font-weight: 700; color: white; }
.watch__ep-name { font-size: 14px; color: var(--gray-400); margin-top: 4px; }
.watch__ep-list { margin-top: 8px; }
.watch__ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.watch__ep-btn {
  padding: 10px 4px; text-align: center; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  font-size: 13px; font-weight: 600; color: var(--gray-400); transition: all .2s var(--spring);
}
.watch__ep-btn:hover {
  background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.25); color: white;
  box-shadow: 0 2px 8px rgba(124,58,237,.2); transform: translateY(-1px);
}
.watch__ep-btn.active {
  background: linear-gradient(135deg,#9333ea,#7c3aed); border-color: transparent; color: white;
  box-shadow: 0 4px 12px rgba(124,58,237,.35); transform: translateY(-1px);
}
.watch__ep-btn.watched { color: var(--gray-600); background: rgba(255,255,255,.01); }

/* --- Video Player --- */
.player-wrap {
  position: relative; width: 100%; background: #050508; border-radius: var(--r-xl);
  overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 16px 64px rgba(0,0,0,.5), 0 0 80px rgba(124,58,237,.08), 0 0 0 1px rgba(255,255,255,.06);
}
.player-wrap video {
  width: 100%; aspect-ratio: 16/9; display: block; background: #000;
  border-radius: var(--r-xl);
}
.player-wrap iframe {
  width: 100%; aspect-ratio: 16/9; display: block; border: none;
  border-radius: var(--r-xl);
}
.player-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: rgba(10,10,20,.85); color: var(--gray-400); z-index: 2;
  border-radius: var(--r-xl); transition: opacity .3s;
}
.player-overlay .loader__spinner { width: 40px; height: 40px; border-width: 3px; border-top-color: var(--purple-400); }
.player-overlay__text { font-size: 13px; font-weight: 500; }
.player-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 40px; color: var(--gray-500); text-align: center; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(13,14,26,.9), rgba(26,10,46,.9));
  border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.06);
}
.player-error svg { opacity: .3; }
.player-error__msg { font-size: 15px; font-weight: 600; color: var(--gray-300); }
.player-error__sub { font-size: 12px; color: var(--gray-600); }

/* Source Controls */
.source-controls {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.src-label { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.src-group { display: flex; gap: 3px; }
.src-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  padding: 5px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
  color: var(--gray-400); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .2s var(--spring);
}
.src-btn svg {
  flex-shrink: 0;
  display: block;
  overflow: visible;
  opacity: 1;
}
.src-btn:hover { color: white; background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); }
.src-btn.active { color: white; background: var(--purple-700); border-color: var(--purple-600); box-shadow: 0 2px 8px rgba(124,58,237,.3); }
.src-sep { width: 1px; height: 22px; background: rgba(255,255,255,.06); margin: 0 4px; }
.src-select {
  padding: 5px 10px; border-radius: var(--r-full); font-size: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: var(--gray-200); cursor: pointer;
}
.src-select option { background: var(--gray-800); }
.src-voice { font-size: 12px; color: var(--purple-300); font-weight: 500; margin-left: auto; }

/* Watch Layout */
.watch__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.watch__title { font-size: 22px; font-weight: 800; color: white; line-height: 1.2; }
.watch__ep-label { font-size: 13px; color: var(--gray-400); margin-top: 4px; }
.watch__actions { display: flex; gap: 6px; flex-shrink: 0; }
.watch__ep-section { margin-top: 4px; }
.watch__ep-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.watch__nav { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }

/* --- Browse Page --- */
.browse { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.browse__filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
  padding: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.filter-select {
  padding: 8px 12px; border-radius: var(--r-full); font-size: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: var(--gray-200); cursor: pointer; transition: all .2s;
}
.filter-select:focus { border-color: rgba(168,85,247,.3); box-shadow: 0 0 0 2px rgba(168,85,247,.1); }
.filter-select option { background: var(--gray-800); color: var(--gray-100); }

/* --- Badge --- */
.badge {
  display: inline-flex; padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; background: rgba(168,85,247,.12);
  color: var(--purple-300); border: 1px solid rgba(168,85,247,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.badge--green { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.2); }
.badge--yellow { background: rgba(250,204,21,.1); color: #fbbf24; border-color: rgba(250,204,21,.2); }
.badge--blue { background: rgba(99,102,241,.15); color: #818cf8; border-color: rgba(99,102,241,.2); }
.badge--red { background: rgba(239,68,68,.1); color: #f87171; border-color: rgba(239,68,68,.2); }

/* --- Score --- */
.score { display: inline-flex; align-items: center; gap: 4px; }
.score__star { color: #fbbf24; }

/* --- Schedule --- */
.schedule { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.schedule__days { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; }
.day-btn {
  padding: 8px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  color: var(--gray-400); background: var(--glass-bg); border: 1px solid var(--glass-border);
  white-space: nowrap; transition: all .2s var(--spring); flex-shrink: 0;
}
.day-btn:hover { color: white; background: rgba(168,85,247,.1); }
.day-btn.active { background: linear-gradient(135deg,#9333ea,#7c3aed); border-color: transparent; color: white; box-shadow: 0 4px 12px rgba(124,58,237,.3); }

/* --- Profile --- */
.profile { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.profile__header {
  display: flex; align-items: center; gap: 20px; padding: 28px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r-xl); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  margin-bottom: 28px;
}
.profile__avatar {
  width: 64px; height: 64px; border-radius: var(--r-lg);
  background: linear-gradient(135deg,#9333ea,#6d28d9);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(124,58,237,.3);
}
.profile__name { font-size: 22px; font-weight: 700; color: white; }
.profile__email { font-size: 13px; color: var(--gray-500); }
.profile__stats { display: flex; gap: 24px; margin-top: 8px; }
.profile__stat-val { font-weight: 700; color: var(--purple-400); }
.profile__stat-label { font-size: 12px; color: var(--gray-500); }

.profile__tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.profile__tab {
  padding: 8px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  color: var(--gray-400); transition: all .2s;
}
.profile__tab:hover { color: white; background: rgba(255,255,255,.04); }
.profile__tab.active { color: white; background: rgba(168,85,247,.15); }

.profile__empty { padding: 60px 20px; text-align: center; color: var(--gray-500); font-size: 14px; }
.profile__empty svg { margin-bottom: 12px; opacity: .4; }

/* --- Auth Modal --- */
.overlay {
  position: fixed; inset: 0; background: rgba(13,14,26,.75); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.auth-modal {
  width: 100%; max-width: 400px; border-radius: var(--r-2xl); padding: 32px;
  position: relative; animation: modalIn .3s var(--spring);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.close-btn {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: all .2s;
}
.close-btn:hover { color: white; background: rgba(255,255,255,.08); }

.auth-tabs { display: flex; position: relative; margin-bottom: 24px; background: rgba(255,255,255,.04); border-radius: var(--r-full); padding: 4px; }
.auth-tab { flex: 1; padding: 10px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--gray-400); z-index: 1; transition: color .2s; }
.auth-tab.active { color: white; }
.auth-tab__bar { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); background: rgba(168,85,247,.2); border: 1px solid rgba(168,85,247,.3); border-radius: var(--r-full); transition: transform .3s var(--spring); }
.auth-tab__bar.right { transform: translateX(calc(100% + 4px)); }

.auth-form { display: flex; flex-direction: column; gap: 16px; animation: fadeIn .2s var(--ease); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--gray-400); }
.field input {
  padding: 11px 14px; border-radius: var(--r-md); font-size: 13px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: all .2s;
}
.field input:focus { background: rgba(168,85,247,.06); border-color: rgba(168,85,247,.3); box-shadow: 0 0 0 3px rgba(168,85,247,.08); }
.field input::placeholder { color: var(--gray-600); }
.field__pass-wrap { position: relative; display: flex; }
.field__pass-wrap input { flex: 1; padding-right: 40px; }
.field__eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); padding: 4px; transition: color .2s;
}
.field__eye:hover { color: var(--purple-400); }
.field__strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.field__strength-bar { flex: 1; height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; position: relative; }
.field__strength-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: var(--str, 0%); border-radius: 2px; background: var(--str-color, var(--gray-600)); transition: all .3s; }
.field__strength span { font-size: 11px; font-weight: 600; color: var(--gray-500); min-width: 48px; }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(80px);
  padding: 12px 20px; background: rgba(13,14,26,.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--gray-200);
  z-index: var(--z-toast); opacity: 0; transition: all .35s var(--spring);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { border-color: rgba(34,197,94,.3); }
.toast--error { border-color: rgba(239,68,68,.3); }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination__btn {
  padding: 8px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  color: var(--gray-300); background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: all .2s;
}
.pagination__btn:hover:not(:disabled) { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.2); color: white; }
.pagination__btn:disabled { opacity: .3; cursor: default; }
.pagination__info { font-size: 13px; color: var(--gray-500); }

/* --- Loader --- */
.loader { display: flex; justify-content: center; padding: 40px; }
.loader__spinner { width: 32px; height: 32px; border: 3px solid rgba(168,85,247,.15); border-top-color: var(--purple-500); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Tab Bar (mobile) --- */
.tab-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: none;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: var(--z-nav);
  justify-content: space-around;
}
.tab-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 12px; border-radius: var(--r-md); font-size: 10px; font-weight: 600;
  color: var(--gray-500); transition: all .2s;
}
.tab-bar__item svg {
  width: 17px;
  height: 18px;
  margin: 0;
  display: block;
  flex-shrink: 0;
}
.tab-bar__item:hover { color: var(--purple-300); }
.tab-bar__item.active { color: var(--purple-400); background: rgba(168,85,247,.08); }
.tab-bar__item.active svg { stroke: var(--purple-400); }

/* --- Empty State --- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: var(--gray-500);
}
.empty-state__icon { margin-bottom: 16px; opacity: .4; }
.empty-state__title { font-size: 18px; font-weight: 600; color: var(--gray-300); margin-bottom: 6px; }
.empty-state__text { font-size: 13px; max-width: 300px; }

/* --- 18+ Toggle --- */
.nav__toggle-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  margin: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  color: #000;
  transition: opacity .2s;
}
.toggle-track {
  width: 32px; height: 18px; border-radius: 9px;
  background: rgba(255,255,255,.1); position: relative;
  transition: background .25s var(--ease);
}
.toggle-track .toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gray-400); transition: all .25s var(--spring);
}
.nav__toggle-18.on .toggle-track { background: rgba(239,68,68,.4); }
.nav__toggle-18.on .toggle-track .toggle-thumb { left: 16px; background: #f87171; }
.toggle-label { font-size: 10px; font-weight: 700; color: var(--gray-500); }
.nav__toggle-18 .toggle-label { color: rgba(204, 204, 204, 1); }
.nav__toggle-18.on .toggle-label { color: #f87171; }

/* --- Platforms & Languages --- */
.platform-list { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: var(--gray-200); transition: all .2s var(--spring);
}
.platform-badge:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); color: white; transform: translateY(-1px); }
.lang-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.lang-tag {
  padding: 4px 10px; border-radius: var(--r-full); font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: var(--gray-300); text-transform: uppercase; letter-spacing: .03em;
}
.lang-tag--en { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.2); color: #60a5fa; }
.lang-tag--ru { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.2); color: #4ade80; }
.lang-tag--multi { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); color: var(--purple-300); }

/* --- Comments --- */
.comments-section { margin-top: 24px; }
.comment-item {
  padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 6px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.comment-item:hover { background: rgba(255,255,255,.05); }
.comment-item__header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.comment-item__user { font-size: 12px; font-weight: 700; color: var(--purple-300); }
.comment-item__time { font-size: 11px; color: var(--gray-600); }
.comment-item__text { font-size: 13px; color: var(--gray-300); line-height: 1.6; }

/* --- Rating --- */
.rating-widget { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#ratingWidget {
  width: 800px;
  max-width: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
}
.rating-stars { display: flex; gap: 2px; }
.rating-star {
  font-size: 18px; color: var(--gray-600); cursor: pointer; transition: all .15s;
  background: none; border: none; padding: 2px;
}
.rating-star:hover, .rating-star.active { color: #fbbf24; transform: scale(1.15); }
.rating-value { font-size: 14px; font-weight: 700; color: #fbbf24; }

/* --- Status Selector --- */
.status-selector { display: flex; gap: 4px; flex-wrap: wrap; }
#statusSelector {
  height: 90px;
  padding-top: 11px;
  padding-bottom: 11px;
  box-sizing: border-box;
}
.status-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
  color: var(--gray-400); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .2s var(--spring);
}
.status-btn:hover { color: white; background: rgba(255,255,255,.06); }
.status-btn.active { color: white; background: color-mix(in srgb, var(--status-color) 25%, transparent); border-color: var(--status-color); }
.status-btn--remove { color: var(--gray-500); }
.status-btn--remove:hover { color: #f87171; background: rgba(239,68,68,.1); }

/* --- Tags --- */
.tags-widget { margin-top: 8px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
  background: rgba(168,85,247,.1); color: var(--purple-300); border: 1px solid rgba(168,85,247,.15);
}
.tag-remove { background: none; border: none; color: var(--purple-400); cursor: pointer; font-size: 14px; padding: 0 2px; }
.tag-remove:hover { color: #f87171; }
.tag-input {
  padding: 3px 8px; border-radius: var(--r-full); font-size: 11px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  color: var(--gray-300); width: 100px;
}
.tag-input:focus { border-color: rgba(168,85,247,.3); width: 140px; }

/* --- List Count Badge --- */
.list-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  font-size: 10px; font-weight: 700; background: var(--purple-700); color: white;
  margin-left: 4px;
}

/* --- News --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.news-card {
  display: flex; gap: 14px; padding: 14px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  transition: all .25s var(--ease); cursor: pointer;
}
.news-card:hover { background: rgba(168,85,247,.06); border-color: rgba(168,85,247,.12); transform: translateY(-2px); }
.news-card__img { width: 80px; height: 80px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.news-card__body { flex: 1; min-width: 0; }
.news-card__title { font-size: 13px; font-weight: 600; color: white; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__meta { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.news-card__excerpt { font-size: 12px; color: var(--gray-400); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Notifications Bell --- */
.notif-bell { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; font-size: 9px; font-weight: 700;
  background: #ef4444; color: white;
  display: flex; align-items: center; justify-content: center;
}

/* --- Player Toolbar --- */
.player-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
}
.ptool-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
  color: var(--gray-400); transition: all .2s var(--spring);
}
.ptool-btn:hover { color: white; background: rgba(168,85,247,.1); }
.ptool-btn.active { color: var(--purple-300); background: rgba(168,85,247,.12); }
.ptool-sep { width: 1px; height: 18px; background: rgba(255,255,255,.06); margin: 0 2px; }
.ptool-select {
  padding: 4px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: var(--gray-300); cursor: pointer;
}
.ptool-select option { background: var(--gray-800); }

/* Skip OP/ED */
.skip-btn-container { position: absolute; bottom: 70px; right: 16px; z-index: 5; display: flex; gap: 6px; }
.skip-btn {
  padding: 8px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  color: white; background: rgba(168,85,247,.7); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer; transition: all .2s var(--spring);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  animation: skipFadeIn .3s var(--ease);
}
.skip-btn:hover { background: rgba(168,85,247,.9); transform: scale(1.04); }
@keyframes skipFadeIn { from { opacity: 0; transform: translateY(8px); } }

/* Theater Mode */
.watch--theater { max-width: 100%; padding: 0; }
.watch--theater .player-wrap { border-radius: 0; max-width: 100vw; margin: 0 -20px; width: calc(100% + 40px); }
.watch--theater .player-wrap video,
.watch--theater .player-wrap iframe { border-radius: 0; }

/* Continue Watching */
.cw-grid { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.cw-card {
  flex-shrink: 0; width: 200px; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  cursor: pointer; transition: all .25s var(--spring);
}
.cw-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(124,58,237,.15); border-color: rgba(168,85,247,.15); }
.cw-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: rgba(255,255,255,.04); }
.cw-card__info { padding: 10px 12px; }
.cw-card__title { font-size: 12px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-card__ep { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.cw-card__bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.cw-card__bar-fill { height: 100%; background: linear-gradient(90deg, var(--purple-500), var(--purple-400)); border-radius: 2px; transition: width .3s; }

/* Random Button */
.random-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  color: var(--purple-300); background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.15);
  transition: all .2s var(--spring); cursor: pointer;
}
.random-btn:hover { background: rgba(168,85,247,.15); color: white; transform: translateY(-1px); }
.random-btn svg {
  flex-shrink: 0;
  display: block;
  overflow: visible;
  opacity: 1;
  transition: transform .3s;
}
.random-btn:hover svg { transform: rotate(180deg); }

/* --- Mobile menu dropdown --- */
.nav__links.mobile-open {
  display: flex !important; position: fixed; top: 76px; left: 12px; right: 12px;
  flex-direction: column; background: rgba(13,14,26,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 12px; border-radius: var(--r-xl); border: 1px solid var(--glass-border);
  z-index: var(--z-dd); box-shadow: 0 12px 40px rgba(0,0,0,.4);
  animation: fadeIn .2s var(--ease);
}
.nav__links.mobile-open .nav__link { padding: 12px 16px; font-size: 15px; }

/* Schedule scroll fix */
.schedule__days { -webkit-overflow-scrolling: touch; padding-right: 20px; scroll-snap-type: x mandatory; }
.day-btn { scroll-snap-align: start; }

/* --- Responsive --- */

/* Tablet (769-1024) */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav__search { max-width: 220px; }
  .nav__search kbd { display: none; }
  .nav__link { padding: 7px 10px; font-size: 12px; }
  .btn--sm { padding: 7px 12px; font-size: 11px; }
}

@media (max-width: 900px) {
  .detail__body { grid-template-columns: 1fr; }
  .detail__right { order: -1; position: static; }
}

@media (max-width: 860px) and (min-width: 769px) {
  .nav__search { display: none; }
}

/* Mobile (768 and below) */
@media (max-width: 768px) {
  .nav__links, .nav__right .nav__profile-btn { display: none; }
  .nav__burger { display: flex; }
  .tab-bar { display: flex; bottom: env(safe-area-inset-bottom, 0px); }
  .tab-bar__item { padding: 6px 8px; min-width: 64px; }
  .main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hero-slide { height: 280px; }
  .detail__hero { min-height: 300px; }
  .detail__banner { height: 220px; }
  .detail__main { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .detail__poster { width: 100px; }
  .detail__title { font-size: clamp(18px, 5vw, 26px); }
  .detail__actions { gap: 6px; }
  .detail__actions .btn { padding: 8px 14px; font-size: 12px; }
  .anime-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .browse__filters { padding: 12px; }
  .watch__ep-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .schedule__days { gap: 4px; }
  .day-btn { padding: 8px 12px; font-size: 12px; }
  .bg-orb--1 { width: 350px; height: 350px; right: -80px; top: -100px; }
  .bg-orb--2 { width: 300px; height: 300px; left: -80px; }
  .bg-orb--3 { width: 200px; height: 200px; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* Small mobile (640) */
@media (max-width: 640px) {
  .source-controls { padding: 8px 10px; gap: 4px; }
  .src-voice { margin-left: 0; width: 100%; font-size: 11px; margin-top: 2px; }
  .src-label { font-size: 10px; }
  .src-btn { padding: 4px 9px; font-size: 11px; }
  .src-group { flex-wrap: wrap; gap: 3px; }
}

/* Small phone (480) */
@media (max-width: 480px) {
  .hero-slide { height: 200px; }
  .hero-slide__content { padding: 14px 16px; }
  .hero-slide__title { font-size: 16px; margin-bottom: 4px; }
  .hero-slide__badges { margin-bottom: 6px; gap: 4px; }
  .hero-slide__desc { display: none; }
  .hero-slide__actions { gap: 6px; }
  .hero-slide__actions .btn { padding: 7px 12px; font-size: 11px; }
  .anime-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .anime-card__info { padding: 6px 6px 8px; }
  .anime-card__title { font-size: 11px; }
  .anime-card__meta { font-size: 10px; }
  .player-wrap { border-radius: var(--r-lg); }
  .player-wrap video, .player-wrap iframe { border-radius: var(--r-lg); min-height: 180px; }
  .player-error { padding: 20px; }
  .player-error__msg { font-size: 13px; }
  .watch__head { flex-direction: column; gap: 10px; }
  .watch__title { font-size: 16px; }
  .watch__ep-label { font-size: 12px; }
  .watch__actions { width: 100%; justify-content: flex-start; }
  .watch__actions .btn { padding: 8px 14px; font-size: 12px; }
  .watch__ep-btn { padding: 11px 4px; font-size: 12px; min-height: 44px; }
  .section__title { font-size: 16px; }
  .watch__ep-section h3 { font-size: 14px; }
  .episodes-header h3 { font-size: 15px; }
  .detail__synopsis { font-size: 13px; line-height: 1.7; }
  .info-row { font-size: 12px; padding: 7px 0; }
  .detail__hero { min-height: 280px; }
  .detail__banner { height: 200px; }
  .detail__main { padding: 12px; }
  .detail__poster { width: 80px; }
  .detail__title { font-size: 18px; margin-bottom: 4px; }
  .detail__badges { gap: 4px; }
  .detail__actions { flex-wrap: wrap; }
  .profile__header { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .profile__avatar { width: 52px; height: 52px; font-size: 20px; }
  .profile__name { font-size: 18px; }
  .profile__stats { gap: 16px; flex-wrap: wrap; }
  .search-dd { top: 72px; width: calc(100% - 16px); max-width: none; }
  .search-dd__inner { max-height: 320px; }
  #searchResults {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-height: 320px;
    z-index: auto;
    padding-left: 8px;
    padding-right: 8px;
  }
  .search-item__img { width: 36px; height: 50px; }
  .schedule__days { padding-right: 12px; }
  .day-btn { padding: 7px 12px; font-size: 11px; }
  .filter-select { padding: 8px 10px; font-size: 12px; width: 100%; }
  .browse__filters { flex-direction: column; }
}

/* Very small (400) */
@media (max-width: 400px) {
  .section, .watch, .detail, .browse, .profile, .schedule { padding-left: 12px; padding-right: 12px; }
  .hero-banner { padding: 0 12px; }
  .browse__filters { padding: 10px; gap: 6px; }
  .source-controls { flex-direction: column; align-items: flex-start; }
  .src-sep { display: none; }
  .src-select { width: 100%; }
}

/* Tiny (360) */
@media (max-width: 360px) {
  .hero-slide { height: 180px; }
  .hero-slide__content { padding: 10px 14px; }
  .hero-slide__title { font-size: 14px; }
  .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .watch__ep-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
  .watch__ep-btn { min-height: 44px; font-size: 11px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,85,247,.4); }
::selection { background: rgba(168,85,247,.3); color: white; }

/* ==================== Notifications ==================== */
.notif-bell { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: white; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.notif-badge:empty, .notif-badge[data-count="0"] { display: none; }
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; max-height: 420px; overflow-y: auto;
  border-radius: var(--r-lg); z-index: var(--z-dd);
  padding: 12px; display: none;
}
.notif-dropdown.open { display: block; }
.notif-dropdown__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.notif-dropdown__title { font-size: 14px; font-weight: 700; }
.notif-dropdown__mark { font-size: 11px; color: var(--purple-400); cursor: pointer; background: none; border: none; }
.notif-dropdown__mark:hover { text-decoration: underline; }
.notif-item {
  padding: 8px 10px; border-radius: var(--r-sm);
  margin-bottom: 4px; font-size: 13px; transition: background .2s;
  display: flex; gap: 8px; align-items: flex-start;
}
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-item--unread { background: rgba(168,85,247,.06); border-left: 2px solid var(--purple-500); }
.notif-item__msg { flex: 1; line-height: 1.4; }
.notif-item__time { font-size: 11px; color: var(--gray-500); white-space: nowrap; }
.notif-item__type {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: var(--r-full); line-height: 1.2;
}
.notif-item__type--info { background: rgba(59,130,246,.15); color: #60a5fa; }
.notif-item__type--success { background: rgba(34,197,94,.15); color: #4ade80; }
.notif-item__type--error { background: rgba(239,68,68,.15); color: #f87171; }

/* ==================== Reviews ==================== */
.review-item {
  padding: 14px; border-radius: var(--r-lg); margin-bottom: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.review-item__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-item__user { font-weight: 600; font-size: 13px; }
.review-item__score { color: #fbbf24; font-size: 12px; font-weight: 600; }
.review-item__title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.review-item__text { font-size: 13px; color: var(--gray-300); line-height: 1.5; }
.review-item__time { font-size: 11px; color: var(--gray-500); margin-top: 6px; }
.review-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-lg); margin-bottom: 12px; }
.review-form input, .review-form textarea, .review-form select {
  padding: 8px 12px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: 13px; color: white; resize: vertical;
}
.review-form textarea { min-height: 80px; }

/* ==================== Friends ==================== */
.friends-list { display: flex; flex-direction: column; gap: 6px; }
.friend-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.friend-item__name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.friend-item__avatar {
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.friend-item__remove { color: var(--gray-500); font-size: 12px; cursor: pointer; transition: color .2s; }
.friend-item__remove:hover { color: #ef4444; }
.friend-add { display: flex; gap: 8px; margin-bottom: 12px; }
.friend-add input {
  flex: 1; padding: 8px 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: 13px; color: white;
}

/* ==================== Avatar Picker ==================== */
.avatar-picker-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
}
.avatar-picker {
  width: 90%; max-width: 480px; max-height: 70vh; overflow-y: auto;
  padding: 20px; border-radius: var(--r-xl);
}
.avatar-picker__title { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.avatar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px;
}
.avatar-grid__item {
  width: 64px; height: 64px; border-radius: var(--r-full); overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
  object-fit: cover;
}
.avatar-grid__item:hover { border-color: var(--purple-400); transform: scale(1.08); }
.avatar-grid__item.active { border-color: var(--purple-400); box-shadow: 0 0 0 3px rgba(168,85,247,.3); }

/* ==================== Player Extras ==================== */
.brightness-control { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.brightness-control input[type="range"] {
  width: 70px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,.15); border-radius: 2px; outline: none;
}
.brightness-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple-400); cursor: pointer;
}
.brightness-control label { font-size: 11px; color: var(--gray-400); white-space: nowrap; }

/* ==================== Subtitles ==================== */
.subtitle-overlay {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  text-align: center; pointer-events: none; z-index: 10;
  max-width: 80%; padding: 4px 12px;
}
.subtitle-overlay span {
  background: rgba(0,0,0,.75); color: white; font-size: 18px; line-height: 1.5;
  padding: 2px 10px; border-radius: 4px; display: inline;
  text-shadow: 1px 1px 2px rgba(0,0,0,.8);
}
.subtitle-controls {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
}
.subtitle-controls button { font-size: 11px; }
.sub-file-btn { position: relative; overflow: hidden; }
.sub-file-btn input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

/* ==================== Franchise / Relations ==================== */
.franchise-section { margin-top: 24px; }
.franchise-group { margin-bottom: 12px; }
.franchise-group__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--purple-400); margin-bottom: 6px;
}
.franchise-list { display: flex; flex-wrap: wrap; gap: 6px; }
.franchise-item {
  padding: 6px 12px; border-radius: var(--r-sm); font-size: 13px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.franchise-item:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); }
.franchise-item__type { font-size: 10px; color: var(--gray-500); }

/* ==================== Character Wiki ==================== */
.character-detail { max-width: 800px; }
.character-detail__header { display: flex; gap: 20px; margin-bottom: 24px; }
.character-detail__img {
  width: 180px; height: 250px; border-radius: var(--r-lg); object-fit: cover; flex-shrink: 0;
}
.character-detail__name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.character-detail__kanji { font-size: 14px; color: var(--gray-400); margin-bottom: 12px; }
.character-detail__about { font-size: 14px; line-height: 1.7; color: var(--gray-200); }
.character-detail__section { margin-top: 24px; }

/* ==================== Advanced Search ==================== */
.advanced-filters {
  display: none; flex-wrap: wrap; gap: 8px; padding: 14px;
  border-radius: var(--r-lg); margin-bottom: 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.advanced-filters.open { display: flex; }
.filter-toggle {
  font-size: 12px; color: var(--purple-400); cursor: pointer;
  display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
}
.filter-toggle:hover { text-decoration: underline; }
.genre-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.genre-chip {
  padding: 4px 10px; border-radius: var(--r-full); font-size: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: all .2s; user-select: none;
}
.genre-chip.active {
  background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.3);
  color: var(--purple-300);
}
.genre-chip:hover { background: rgba(255,255,255,.08); }
.filter-range {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
}
.filter-range input {
  width: 50px; padding: 4px 8px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: white; text-align: center;
}

/* ==================== Watch Party ==================== */
.watch-party-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 320px;
  z-index: var(--z-modal); padding: 16px;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.watch-party-panel.open { transform: translateX(0); }
.watch-party-panel__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.watch-party-panel__title { font-size: 15px; font-weight: 700; }
.watch-party-chat { flex: 1; overflow-y: auto; margin-bottom: 10px; }
.watch-party-chat__msg { padding: 6px 0; font-size: 13px; }
.watch-party-chat__user { font-weight: 600; color: var(--purple-300); }
.watch-party-input {
  display: flex; gap: 6px;
}
.watch-party-input input {
  flex: 1; padding: 8px 12px; border-radius: var(--r-full);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: 13px; color: white;
}
.watch-party-members { margin-bottom: 10px; }
.watch-party-members__item {
  display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px;
}
.watch-party-members__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
}
.room-code {
  padding: 8px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06); font-family: monospace; font-size: 14px;
  letter-spacing: .1em; text-align: center; user-select: all; margin: 8px 0;
}

/* ==================== QR Auth ==================== */
.qr-modal { text-align: center; padding: 24px; max-width: 360px; border-radius: var(--r-xl); }
.qr-modal__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.qr-modal__canvas { margin: 0 auto 12px; border-radius: var(--r-md); overflow: hidden; }
.qr-modal__hint { font-size: 13px; color: var(--gray-400); }

/* ==================== Screenshots ==================== */
.screenshot-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.screenshot-item {
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  position: relative; transition: transform .2s;
}
.screenshot-item:hover { transform: scale(1.02); }
.screenshot-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.screenshot-item__actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7));
  display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transition: opacity .2s;
}
.screenshot-item:hover .screenshot-item__actions { opacity: 1; }
.screenshot-btn {
  display: flex; align-items: center; gap: 4px; font-size: 11px;
  padding: 4px 8px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  color: white; cursor: pointer; transition: background .2s;
}
.screenshot-btn:hover { background: rgba(255,255,255,.25); }

/* ==================== i18n Language Switcher ==================== */
.lang-switcher { position: relative; }
.lang-switcher__btn {
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: all .2s;
}
.lang-switcher__btn:hover { background: rgba(255,255,255,.1); }
.lang-switcher__dd {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 100px; border-radius: var(--r-md); padding: 4px;
  display: none; z-index: var(--z-dd);
}
.lang-switcher__dd.open { display: block; }
.lang-switcher__option {
  display: block; width: 100%; padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13px; text-align: left; cursor: pointer; transition: background .2s;
}
.lang-switcher__option:hover { background: rgba(255,255,255,.06); }
.lang-switcher__option.active { color: var(--purple-400); font-weight: 600; }

/* ==================== Public Profile ==================== */
.public-profile { max-width: 600px; margin: 0 auto; }
.public-profile__card { padding: 24px; border-radius: var(--r-xl); text-align: center; margin-bottom: 20px; }
.public-profile__avatar {
  width: 80px; height: 80px; border-radius: var(--r-full); margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; overflow: hidden;
}
.public-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-profile__name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.public-profile__stats { display: flex; justify-content: center; gap: 20px; margin-top: 12px; }

/* ==================== Offline Banner ==================== */
.offline-banner {
  position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%);
  padding: 8px 20px; border-radius: var(--r-full);
  background: rgba(239,68,68,.9); color: white; font-size: 13px; font-weight: 600;
  z-index: var(--z-toast); display: none; backdrop-filter: blur(8px);
}
.offline-banner.show { display: block; }

/* ==================== For You Section ==================== */
.foryou-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.foryou-grid .anime-card { width: 140px; flex-shrink: 0; }

/* ==================== Profile Avatar Edit ==================== */
.profile__avatar--editable { cursor: pointer; position: relative; }
.profile__avatar--editable::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s;
  display: flex; align-items: center; justify-content: center;
}
.profile__avatar--editable:hover::after { opacity: 1; }

/* ==================== Responsive additions ==================== */
@media (max-width: 768px) {
  .notif-dropdown { width: calc(100vw - 32px); right: -60px; }
  .watch-party-panel { width: 100%; }
  .character-detail__header { flex-direction: column; align-items: center; text-align: center; }
  .character-detail__img { width: 140px; height: 200px; }
  .advanced-filters { flex-direction: column; }
  .avatar-picker { width: 95%; }
}

/* ============================================
   Custom Video Player (iOS Glassmorphism)
   ============================================ */
.custom-player {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 10; opacity: 0; transition: opacity .3s var(--ease);
}
.player-wrap:hover .custom-player, .custom-player.active { opacity: 1; }
.custom-player * { pointer-events: auto; }

.cp-glass-panel {
  background: rgba(20, 20, 25, 0.45);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.cp-timeline {
  width: 100%; height: 20px; display: flex; align-items: center;
  cursor: pointer; position: relative;
}
.cp-progress-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; position: relative; overflow: hidden;
  transition: height .2s;
}
.cp-timeline:hover .cp-progress-bar { height: 6px; }
.cp-progress-fill {
  height: 100%; background: var(--purple-400); width: 0%;
  pointer-events: none; border-radius: 2px;
}
.cp-progress-buf {
  position: absolute; top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.3); width: 0%; z-index: -1;
}

.cp-controls {
  display: flex; align-items: center; gap: 12px;
}
.cp-btn {
  color: white; padding: 6px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; background: transparent;
}
.cp-btn:hover { background: rgba(255,255,255,0.1); color: var(--purple-300); }
.cp-btn svg { width: 22px; height: 22px; fill: currentColor; }

.cp-time { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.9; }
.cp-spacer { flex: 1; }
.cp-vol-group { display: flex; align-items: center; gap: 4px; }
.cp-vol-slider {
  width: 0px; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; cursor: pointer; position: relative;
  transition: width .3s var(--ease), opacity .3s; opacity: 0;
  overflow: hidden;
}
.cp-vol-group:hover .cp-vol-slider, .cp-vol-slider.active { width: 60px; opacity: 1; overflow: visible; }
.cp-vol-fill { height: 100%; background: white; width: 100%; pointer-events: none; border-radius: 2px; }

.cp-center-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5;
}
.cp-center-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(20,20,25,0.5); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: white;
  pointer-events: auto; opacity: 0; transform: scale(0.8);
  transition: all .3s var(--spring);
}
.cp-center-btn.show { opacity: 1; transform: scale(1); }
.cp-center-btn svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }

.cp-settings-menu {
  position: absolute; bottom: 70px; right: 16px; width: 220px;
  background: rgba(16, 12, 28, 0.85); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,0.08);
  padding: 8px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.95);
  transition: all .2s var(--spring); z-index: 20; color: white;
}
.cp-settings-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.cp-menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; font-size: 13px; font-weight: 500; border-radius: var(--r-sm);
  cursor: pointer; transition: background .2s;
}
.cp-menu-item:hover { background: rgba(255,255,255,0.08); }
.cp-menu-label { display: flex; align-items: center; gap: 8px; }
.cp-menu-label svg { width: 16px; height: 16px; opacity: 0.7; }
.cp-menu-val { color: var(--purple-300); font-size: 12px; }

@media (max-width: 480px) {
  .cp-glass-panel { padding: 8px 12px; }
  .cp-controls { gap: 8px; }
  .cp-btn svg { width: 18px; height: 18px; }
  .cp-time { font-size: 11px; }
  .cp-vol-group { display: none; } /* Hide volume on small screens */
}

