:root {
  color-scheme: dark;
  --bg: #070c11;
  --panel: #10171d;
  --panel-2: #151d25;
  --panel-3: #1b242d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --muted: #93a1ad;
  --soft: #c6d0d8;
  --orange: #f15d3c;
  --orange-2: #ca4b32;
  --green: #25d26c;
  --green-dark: #0b7e44;
  --cyan: #54b6d8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(21, 47, 54, 0.26) 0, rgba(7, 12, 17, 0) 320px),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(280px, 520px) 44px 1fr auto 44px;
  align-items: center;
  gap: 18px;
  width: min(1814px, calc(100% - 96px));
  min-height: 64px;
  margin: 20px auto 0;
  padding: 10px 28px;
  border-radius: 8px;
  background: rgba(8, 13, 18, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 188px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.brand strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 78px;
  margin-left: 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, #31d574, #61e58e 52%, #13844a);
  color: #0c2617;
  font-size: 21px;
  font-style: italic;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.16);
}

.searchbar {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
}

.searchbar:focus-within {
  outline: 2px solid rgba(84, 182, 216, 0.44);
}

.search-mark {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 3px solid #f5f8fb;
  border-radius: 50%;
}

.search-mark::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 3px;
  border-radius: 2px;
  background: #f5f8fb;
  transform: rotate(45deg);
}

.searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.searchbar input::placeholder {
  color: #a3afb9;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.filter-mark {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 11px solid #fff;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-button:hover,
.nav-links button:hover,
.language-toggle button:hover,
.tabs button:hover,
.episode-list button:hover {
  color: var(--orange);
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.profile-button.is-signed-in {
  box-shadow: 0 0 0 2px rgba(37, 210, 108, 0.52), 0 12px 28px rgba(37, 210, 108, 0.14);
}

.random-button span {
  font-size: 18px;
  font-weight: 900;
  transform: rotate(18deg);
}

.profile-button span {
  position: relative;
  width: 18px;
  height: 18px;
}

.profile-button span::before,
.profile-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
}

.profile-button span::before {
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.profile-button span::after {
  bottom: 1px;
  width: 16px;
  height: 8px;
  border-radius: 9px 9px 3px 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}

.nav-links button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  min-width: 88px;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel);
}

.language-toggle button {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.language-toggle button.is-active {
  background: linear-gradient(135deg, #ff774f, var(--orange) 55%, #cf3e2d);
  color: #fff;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero {
  position: relative;
  min-height: 760px;
  margin-top: -84px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("./assets/hero-one-piece.png");
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
  transition: background-image 320ms ease, filter 320ms ease, transform 650ms ease;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, #071017 0, rgba(7, 16, 23, 0.92) 18%, rgba(7, 16, 23, 0.48) 48%, rgba(7, 16, 23, 0.14) 72%),
    linear-gradient(180deg, rgba(7, 12, 17, 0.74) 0, rgba(7, 12, 17, 0.12) 34%, #071017 100%);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(0deg, #071017 0, rgba(7, 16, 23, 0) 240px);
}

.hero-content {
  width: min(620px, calc(100% - 56px));
  padding: 250px 0 0;
  margin-left: max(28px, calc((100vw - 1814px) / 2 + 28px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.anime-info h1 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.08;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.meta-row.centered {
  justify-content: center;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.chip-orange {
  border: 1px solid var(--orange);
  background: rgba(241, 93, 60, 0.15);
  color: var(--orange);
}

.chip-green {
  border: 1px solid var(--green);
  background: rgba(37, 210, 108, 0.13);
  color: var(--green);
}

.format {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.summary {
  max-width: 610px;
  margin: 28px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.summary.small {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.35;
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(402px, 100%);
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.86);
}

.stat-panel dt,
.stat-panel dd,
.details-list dt,
.details-list dd {
  margin: 0;
}

.stat-panel dt {
  color: var(--muted);
  font-size: 12px;
}

.stat-panel dd {
  margin-top: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  height: 50px;
  border: 0;
  border-radius: 7px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(241, 93, 60, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button:hover,
.server-actions button.is-active:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.bookmark-button {
  position: relative;
  width: 40px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bookmark-button span {
  position: absolute;
  inset: 8px 12px 8px;
  border: 0;
  border-radius: 3px 3px 1px 1px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.bookmark-button.is-active span {
  background: var(--green);
}

.bookmark-button span::after {
  display: none;
}

.hero-pager {
  position: absolute;
  right: max(32px, calc((100vw - 1814px) / 2 + 28px));
  bottom: 118px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.hero-pager button,
.section-arrows button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #26313b;
  cursor: pointer;
  font-weight: 900;
}

.home-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 398px;
  gap: 42px;
  width: min(1814px, calc(100% - 96px));
  margin: -42px auto 80px;
  align-items: start;
}

.home-feed {
  min-width: 0;
}

.share-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 20px 22px;
  border-radius: 7px;
  background: rgba(16, 23, 29, 0.92);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 4px solid #ffd76a;
  border-radius: 50%;
  background: #fff4cf;
  color: var(--orange);
  font-weight: 900;
}

.share-strip h2 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
  line-height: 1.1;
}

.share-strip p,
.notice-strip,
.native-title {
  margin: 4px 0 0;
  color: var(--muted);
}

.notice-strip {
  margin-top: 42px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #d7f7df;
  color: #306b43;
}

.content-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}

.section-heading h2,
.trending-panel h2,
.episodes-panel h2,
.rating-box h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.section-heading h2 {
  text-transform: uppercase;
}

.section-heading h2 span {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  text-transform: lowercase;
  vertical-align: middle;
}

.section-arrows {
  display: inline-flex;
  gap: 8px;
}

.continue-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 208px;
  gap: 22px;
  max-width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px 14px 0;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 47, 154, 0.72) rgba(255, 255, 255, 0.08);
}

.continue-row > * {
  scroll-snap-align: start;
}

.continue-row::-webkit-scrollbar {
  height: 8px;
}

.continue-row::-webkit-scrollbar-track {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.continue-row::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: linear-gradient(90deg, #ff2f9a, #a000ff);
}

.watch-card,
.poster-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.trending-list button {
  transition: transform 160ms ease, filter 160ms ease;
}

.watch-card:hover,
.poster-card:hover,
.trending-list button:hover {
  transform: translateY(-3px);
}

.remove-watch {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 8, 12, 0.76);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.remove-watch:hover {
  background: var(--orange);
}

.watch-card:focus-visible,
.poster-card:focus-visible,
.share-strip:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(84, 182, 216, 0.85);
  outline-offset: 3px;
}

.watch-card img,
.poster-card img {
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel-2);
}

.watch-card h3,
.poster-card h3 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-meta,
.poster-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.watch-meta {
  justify-content: space-between;
}

.progress {
  height: 2px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
}

.latest-section {
  margin-top: 76px;
}

.latest-heading {
  align-items: end;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tabs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.tabs button.is-active {
  color: var(--green);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.poster-card.is-hidden {
  display: none;
}

.empty-state {
  display: none;
  margin: 22px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 23, 29, 0.96);
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

.continue-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 23, 29, 0.96);
  color: var(--muted);
}

.trending-panel {
  position: sticky;
  top: 104px;
  padding: 22px 20px;
  border-radius: 8px;
  background: rgba(16, 23, 29, 0.96);
  box-shadow: var(--shadow);
}

.trending-panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
}

.trending-panel h2 span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 16px;
}

.trending-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trending-list button {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 126px;
  align-items: center;
  width: 100%;
  min-height: 90px;
  overflow: hidden;
  padding: 10px 0 10px 0;
  border: 0;
  border-radius: 7px;
  background: #121a20;
  cursor: pointer;
  text-align: left;
}

.trending-list button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0, rgba(18, 26, 32, 0.22) 50%, #121a20 100%);
  pointer-events: none;
}

.rank {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #121a20;
  color: #fff;
  font-weight: 800;
}

.trend-copy {
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-right: 10px;
}

.trend-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-copy span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.trend-copy b {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  color: var(--orange);
  font-size: 11px;
}

.trend-copy b.green {
  border-color: var(--green);
  color: var(--green);
}

.trending-list img {
  position: relative;
  width: 126px;
  height: 90px;
  object-fit: cover;
  opacity: 0.72;
}

.watch-page {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 400px;
  gap: 28px;
  width: min(1814px, calc(100% - 96px));
  min-height: calc(100vh - 120px);
  margin: 64px auto 32px;
  padding: 0 0 2px;
}

.view-watch {
  min-height: 100vh;
  padding-bottom: 48px;
  background:
    linear-gradient(120deg, rgba(49, 104, 118, 0.72) 0, rgba(47, 52, 95, 0.76) 46%, rgba(10, 15, 21, 0.88) 100%),
    #071018;
}

.view-list {
  min-height: 100vh;
  padding: 42px 0 72px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 47, 154, 0.18), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(118, 61, 255, 0.18), transparent 32%),
    #070711;
}

.anime-list-page {
  width: min(1480px, calc(100% - 96px));
  margin: 0 auto;
}

.anime-list-hero,
.anime-list-signed-out,
.anime-list-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(14, 9, 22, 0.88);
  box-shadow: var(--shadow);
}

.anime-list-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.anime-list-hero h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.anime-list-hero p:not(.eyebrow),
.anime-list-signed-out p,
.anime-list-card p,
.anime-list-empty-page p {
  color: var(--muted);
}

.anime-list-signed-out,
.anime-list-empty-page {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 28px;
}

.anime-list-dashboard[hidden],
.anime-list-signed-out[hidden] {
  display: none;
}

.anime-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.anime-list-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #efe8f6;
  cursor: pointer;
  font-weight: 800;
}

.anime-list-tabs button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
}

.anime-list-tabs button.is-active {
  border-color: rgba(255, 47, 154, 0.72);
  background: linear-gradient(135deg, rgba(255, 47, 154, 0.24), rgba(160, 0, 255, 0.18));
  color: #fff;
}

.anime-list-groups {
  display: grid;
  gap: 22px;
}

.anime-list-group {
  padding: 22px;
}

.anime-list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.anime-list-group-head h2,
.anime-list-signed-out h2,
.anime-list-empty-page h2 {
  margin: 0;
  color: #fff;
}

.anime-list-group-head span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 47, 154, 0.16);
  color: #ff5fbc;
  font-weight: 900;
}

.anime-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.anime-list-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.anime-list-poster {
  position: relative;
  overflow: hidden;
  width: 76px;
  height: 108px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #120b19;
  cursor: pointer;
}

.anime-list-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-list-poster span {
  position: absolute;
  inset: auto 8px 8px;
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2f9a, #a000ff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.anime-list-card h3 {
  margin: 4px 0 6px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-list-card select {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 6, 12, 0.92);
  color: #fff;
}

.anime-info,
.player-panel,
.episodes-panel {
  border-radius: 8px;
  background: rgba(13, 20, 26, 0.96);
  box-shadow: var(--shadow);
}

.anime-info {
  overflow: hidden;
}

.info-hero {
  display: grid;
  place-items: end center;
  min-height: 188px;
  padding-top: 28px;
  background:
    linear-gradient(180deg, rgba(12, 18, 23, 0.2), #111a21 100%),
    url("./assets/watch-still.png") center / cover;
}

.info-hero img {
  width: 112px;
  height: 162px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.info-body {
  padding: 24px 24px 20px;
  text-align: center;
}

.anime-info h1 {
  font-size: 22px;
}

.native-title {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  text-align: left;
}

.details-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  min-width: 0;
}

.details-list dt {
  color: var(--muted);
}

.details-list dd {
  color: #fff;
  min-width: 0;
}

.rating-box {
  padding: 24px;
  background: #10171d;
  text-align: center;
}

.rating-box h2 {
  color: var(--orange);
  font-size: 18px;
}

.rating-box p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stars span {
  width: 24px;
  height: 24px;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  background: var(--orange-2);
}

.stars span.off {
  background: #44505b;
}

.player-panel {
  overflow: hidden;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.crumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.crumbs strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-frame.is-poster-fallback {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.84)),
    var(--fallback-art) center / cover;
}

.video-frame iframe,
.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
}

.video-frame video,
.video-frame img {
  object-fit: cover;
}

.video-frame iframe {
  display: none;
  border: 0;
  background: #000;
}

.video-frame iframe.is-active {
  display: block;
}

.video-frame iframe.is-active ~ .player-controls,
.video-frame iframe.is-active ~ .play-overlay {
  display: none;
}

.video-frame.is-poster-fallback img {
  width: min(34%, 260px);
  height: min(78%, 430px);
  margin: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.video-frame video {
  display: none;
  background: #000;
}

.video-frame video.is-active {
  display: block;
}

.video-frame .plyr {
  display: none;
  width: 100%;
  height: 100%;
  --plyr-color-main: #ff2f9a;
  --plyr-video-background: #050408;
  --plyr-control-radius: 8px;
  --plyr-menu-background: rgba(16, 12, 25, 0.98);
  --plyr-menu-color: #fff8fd;
  --plyr-tooltip-background: rgba(16, 12, 25, 0.96);
  --plyr-tooltip-color: #fff8fd;
}

.video-frame.is-direct-player .plyr {
  display: block;
}

.video-frame.is-direct-player > video.is-active {
  display: block;
}

.video-frame.is-direct-player .plyr,
.video-frame.is-direct-player .plyr__video-wrapper,
.video-frame.is-direct-player .plyr video {
  height: 100%;
}

.video-frame.is-direct-player .player-controls,
.video-frame.is-direct-player .play-overlay,
.video-frame.is-direct-player .fullscreen-button {
  display: none;
}

.video-frame.is-direct-player .plyr__controls {
  padding: 22px 18px 16px;
  background: linear-gradient(180deg, rgba(5, 4, 8, 0), rgba(5, 4, 8, 0.82));
}

.video-frame.is-direct-player .plyr__control--overlaid {
  background: linear-gradient(135deg, #ff2f9a, #a000ff);
  box-shadow: 0 20px 60px rgba(255, 47, 154, 0.32);
}

.video-frame img.is-hidden {
  display: none;
}

.fullscreen-button {
  position: absolute;
  right: 18px;
  bottom: 184px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 116px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.video-frame:hover .play-overlay,
.play-overlay:not(.is-playing) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 12px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78));
}

.scrub {
  height: 3px;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.42);
}

.scrub span {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
}

.control-row button,
.watch-toolbar button,
.episode-tools button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.control-row button.is-on,
.episode-tools button.is-on {
  color: var(--green);
}

.control-row button {
  min-width: 24px;
  min-height: 24px;
}

.control-spacer {
  flex: 1;
}

.watch-toolbar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  min-height: 58px;
  padding: 0 16px;
  background: #1b2229;
}

.watch-toolbar button {
  color: var(--muted);
}

.watch-toolbar button.is-on {
  color: #fff;
}

.watch-toolbar button.is-on::first-letter {
  color: var(--orange);
}

.server-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px;
}

.server-panel p {
  margin: 0;
  color: var(--muted);
}

.server-panel p + p {
  margin-top: 16px;
}

.server-panel .server-hint {
  max-width: 520px;
  margin-top: 8px;
  color: #f7c36a;
  font-size: 12px;
  line-height: 1.45;
}

.server-panel strong {
  color: #fff;
}

.server-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  max-width: 340px;
}

.server-actions span {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.server-actions b {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-right: 6px;
  padding: 0 5px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  color: var(--orange);
  font-size: 11px;
}

.server-actions button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #66717d, #424b55);
  color: #0c1218;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease, filter 150ms ease;
}

.language-actions {
  display: inline-flex;
  gap: 6px;
}

.language-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #202a34, #141c24);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  border: 0;
}

.language-actions button.is-active {
  background: linear-gradient(135deg, #44ec8c, var(--green));
  color: #071017;
}

.server-actions button.is-active {
  background: linear-gradient(135deg, #44ec8c, var(--green));
}

.anime-list-control {
  display: grid;
  gap: 7px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.anime-list-control select {
  border: 1px solid rgba(255, 47, 154, 0.35);
  background: linear-gradient(135deg, rgba(255, 47, 154, 0.18), rgba(151, 34, 255, 0.16)), var(--panel-3);
  color: #fff;
}

.anime-list-control.is-signed-out select {
  opacity: 0.7;
}

.player-panel.is-expanded {
  position: fixed;
  z-index: 80;
  inset: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-panel.is-expanded .video-frame {
  flex: 1;
  aspect-ratio: auto;
}

.player-panel.is-expanded .server-panel {
  display: none;
}

body.focus-mode .anime-info,
body.focus-mode .episodes-panel {
  display: none;
}

body.focus-mode .watch-page {
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
}

.episodes-panel {
  padding: 22px 20px;
  max-height: calc(100vh - 130px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.episodes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.episodes-head h2 {
  font-size: 16px;
}

.episode-tools {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.episode-tools input {
  width: 84px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  outline: 0;
  padding: 0 10px;
  background: var(--panel-3);
  color: #fff;
}

.episode-tools button {
  min-width: 36px;
  height: 30px;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--orange);
  font-size: 12px;
}

.episode-range {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  height: 28px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--muted);
  text-align: center;
}

.episode-range button {
  height: 28px;
  border: 0;
  background: transparent;
  color: #53606c;
  cursor: pointer;
  font-weight: 900;
}

.episode-range button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.episode-range-select {
  color: #fff !important;
  font-size: 13px;
}

.episode-range-menu {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 10, 16, 0.96);
}

.episode-range-menu.is-open {
  display: grid;
}

.episode-range-menu button {
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.episode-range-menu button.is-active {
  background: linear-gradient(135deg, var(--green), #38bdf8);
  color: #061110;
}

.episode-list {
  display: grid;
  gap: 5px;
  max-height: min(58vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  scrollbar-width: thin;
}

.episode-list button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: #0f171c;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.episode-list button.is-active {
  background: var(--orange);
}

.episode-list span {
  margin-right: 4px;
}

.episode-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-results,
.filter-panel,
.profile-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 21, 27, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-results {
  left: clamp(180px, 23vw, 360px);
  width: min(520px, calc(100vw - 40px));
  max-height: 470px;
  overflow: auto;
  padding: 8px;
  display: none;
}

.search-results.is-open {
  display: grid;
  gap: 6px;
}

.search-results button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.search-results button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-results img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.search-results span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-results strong,
.search-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results small,
.search-results p {
  color: var(--muted);
}

.search-results b {
  font-size: 12px;
}

.filter-panel {
  right: 180px;
  display: none;
  grid-template-columns: repeat(4, minmax(118px, 1fr)) auto auto;
  gap: 12px;
  width: min(900px, calc(100vw - 40px));
  padding: 16px;
}

.filter-panel.is-open {
  display: grid;
}

.filter-panel label,
.profile-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-panel select,
.profile-panel input,
.profile-panel select,
.anime-list-control select {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 7px;
  outline: 0;
  padding: 0 10px;
  background: var(--panel-3);
  color: #fff;
}

.filter-panel button,
.profile-panel button {
  align-self: end;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.filter-panel [data-clear-filter] {
  background: #2a333c;
}

.profile-panel {
  right: 12px;
  display: none;
  width: 260px;
  padding: 18px;
}

.profile-panel.is-open {
  display: grid;
  gap: 14px;
}

.profile-panel h2,
.profile-panel p {
  margin: 0;
}

.profile-panel h2 {
  font-size: 18px;
}

.profile-panel p {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 22, 28, 0.98);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1480px) {
  .topbar {
    grid-template-columns: auto minmax(240px, 460px) auto auto auto;
  }

  .nav-links {
    display: none;
  }

  .language-toggle {
    justify-self: end;
  }

  .watch-page {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .episodes-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1220px) {
  .topbar,
  .home-grid,
  .watch-page {
    width: min(100% - 40px, 1080px);
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .trending-panel {
    position: static;
  }

  .poster-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .hero-content {
    margin-left: 20px;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 150px;
  }

  .searchbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 214px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-pager {
    bottom: 54px;
  }

  .continue-row {
    grid-auto-columns: 190px;
  }

  .poster-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .watch-page {
    grid-template-columns: 1fr;
  }

  .episodes-panel {
    grid-column: auto;
  }

  .anime-info {
    display: grid;
    grid-template-columns: 220px 1fr;
  }

  .rating-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .topbar,
  .home-grid,
  .watch-page {
    width: calc(100% - 24px);
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .random-button,
  .language-toggle {
    display: none;
  }

  .hero {
    min-height: 770px;
  }

  .hero-content {
    width: calc(100% - 24px);
    margin-left: 12px;
    padding-top: 210px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .summary {
    font-size: 14px;
  }

  .stat-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .primary-button {
    min-width: 214px;
  }

  .hero-pager {
    display: none;
  }

  .hero-actions {
    gap: 12px;
  }

  .share-strip {
    align-items: flex-start;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .continue-row {
    grid-auto-columns: minmax(168px, 46vw);
    gap: 18px;
  }

  .latest-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .trending-list button {
    grid-template-columns: 42px minmax(0, 1fr) 92px;
  }

  .trending-list img {
    width: 92px;
  }

  .anime-info {
    display: block;
  }

  .watch-toolbar {
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
  }

  .server-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-actions {
    justify-items: start;
  }

  .episodes-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-results,
  .filter-panel,
  .profile-panel {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .player-panel.is-expanded {
    inset: 8px;
  }
}

/* RemAnime visual refresh */
:root {
  --bg: #0b090f;
  --panel: #16131a;
  --panel-2: #201a24;
  --panel-3: #292230;
  --line: rgba(255, 255, 255, 0.11);
  --text: #fff9fb;
  --muted: #a99eac;
  --soft: #ddd3df;
  --orange: #ff4d75;
  --orange-2: #d93c63;
  --green: #2dd4bf;
  --green-dark: #168f82;
  --cyan: #f7c948;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 77, 117, 0.12) 0, rgba(11, 9, 15, 0) 220px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.08), rgba(247, 201, 72, 0.04), rgba(255, 77, 117, 0.06)),
    var(--bg);
}

.topbar {
  width: min(1760px, calc(100% - 48px));
  min-height: 72px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(18, 15, 22, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.brand {
  min-width: 172px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--orange);
}

.brand strong {
  height: auto;
  min-width: 0;
  margin-left: 0;
  padding-left: 2px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 22px;
  font-style: normal;
}

.searchbar,
.language-toggle,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
}

.filter-button,
.nav-links button {
  text-transform: none;
}

.language-toggle button,
.filter-button,
.nav-links button {
  font-weight: 760;
}

.language-toggle button.is-active,
.primary-button,
.filter-panel button,
.profile-panel button,
.episode-list button.is-active {
  background: linear-gradient(135deg, var(--orange), #a855f7);
}

.hero {
  min-height: 590px;
  margin-top: -90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-art {
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.04);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(11, 9, 15, 0.98) 0, rgba(11, 9, 15, 0.86) 31%, rgba(11, 9, 15, 0.24) 66%, rgba(11, 9, 15, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 9, 15, 0.82) 0, rgba(11, 9, 15, 0.16) 48%, #0b090f 100%);
}

.hero::after {
  background:
    linear-gradient(110deg, rgba(255, 77, 117, 0.22) 0, rgba(255, 77, 117, 0) 34%),
    linear-gradient(0deg, #0b090f 0, rgba(11, 9, 15, 0) 180px);
}

.hero-content {
  padding-top: 200px;
}

.eyebrow {
  color: var(--cyan);
}

.hero h1,
.anime-info h1 {
  letter-spacing: 0;
}

.stat-panel,
.share-strip,
.notice-strip,
.trending-panel,
.anime-info,
.player-panel,
.episodes-panel,
.search-results,
.filter-panel,
.profile-panel,
.empty-state,
.continue-empty {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(20, 17, 24, 0.92);
}

.stat-panel {
  background: rgba(255, 255, 255, 0.06);
}

.home-grid {
  width: min(1760px, calc(100% - 48px));
  margin-top: 28px;
}

.share-strip {
  min-height: 82px;
}

.avatar {
  border-color: var(--cyan);
  border-radius: 6px;
  background: #221c17;
  color: var(--cyan);
}

.share-strip h2,
.tabs button.is-active,
.chip-green,
.trend-copy b.green,
.control-row button.is-on,
.episode-tools button.is-on {
  color: var(--green);
}

.notice-strip {
  margin-top: 24px;
  background: rgba(45, 212, 191, 0.1);
  color: #c8fff7;
}

.section-heading h2,
.trending-panel h2 {
  text-transform: none;
  font-size: 20px;
}

.section-heading h2 span {
  border-radius: 4px;
  background: var(--green);
  color: #07100f;
}

.poster-grid {
  gap: 18px;
}

.watch-card img,
.poster-card img {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.watch-card:hover,
.poster-card:hover,
.trending-list button:hover {
  filter: saturate(1.12);
  transform: translateY(-4px);
}

.trending-list button {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.trending-list button::before {
  background: linear-gradient(90deg, rgba(20, 17, 24, 0.08) 0, rgba(20, 17, 24, 0.44) 54%, rgba(20, 17, 24, 0.96) 100%);
}

.rank {
  border-radius: 6px;
  background: rgba(255, 77, 117, 0.16);
  color: var(--orange);
}

.view-watch {
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.13), rgba(11, 9, 15, 0) 330px),
    linear-gradient(90deg, rgba(255, 77, 117, 0.08), rgba(247, 201, 72, 0.06)),
    var(--bg);
}

.watch-page {
  width: min(1760px, calc(100% - 48px));
  margin-top: 42px;
}

.info-hero {
  background:
    linear-gradient(180deg, rgba(20, 17, 24, 0.08), #151119 100%),
    url("./assets/watch-still.png") center / cover;
}

.video-frame {
  background: #050407;
}

.watch-toolbar {
  background: rgba(255, 255, 255, 0.045);
}

.server-actions button,
.language-actions button {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.server-actions button.is-active,
.language-actions button.is-active {
  background: linear-gradient(135deg, var(--green), #38bdf8);
  color: #061110;
}

.episode-list button {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.toast {
  border-radius: 6px;
  background: rgba(20, 17, 24, 0.96);
}

@media (max-width: 920px) {
  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 190px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .home-grid,
  .watch-page {
    width: calc(100% - 24px);
  }
}

/* RemAnime neon suite */
:root {
  --bg: #07050c;
  --panel: #11101a;
  --panel-2: #171325;
  --panel-3: #211637;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff8fd;
  --muted: #b7aabb;
  --soft: #eee4f2;
  --orange: #ff2f9a;
  --orange-2: #a700ff;
  --green: #39e6d4;
  --green-dark: #13998c;
  --cyan: #ffc857;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 72% 0%, rgba(129, 52, 255, 0.24), rgba(129, 52, 255, 0) 34%),
    radial-gradient(circle at 16% 18%, rgba(255, 47, 154, 0.16), rgba(255, 47, 154, 0) 28%),
    linear-gradient(145deg, #050408 0%, #090711 48%, #0d0717 100%);
  color: var(--text);
}

.app-shell {
  padding-bottom: 42px;
}

.topbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
  width: min(1820px, calc(100% - 48px));
  min-height: 86px;
  margin-top: 8px;
  padding: 14px 28px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px 8px 0 0;
  background: rgba(8, 7, 14, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.brand {
  width: 224px;
  min-width: 224px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(255, 47, 154, 0.32));
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  justify-self: start;
  justify-content: flex-start;
  gap: 28px;
}

.nav-links button {
  position: relative;
  height: 58px;
  color: #fff;
  font-weight: 800;
}

.nav-links button::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2f9a, #b000ff);
  box-shadow: 0 0 18px rgba(255, 47, 154, 0.84);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links button:hover,
.nav-links button.is-active {
  color: #ff4db0;
}

.nav-links button:hover::after,
.nav-links button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.searchbar {
  flex: 0 0 330px;
  margin-left: auto;
  width: 330px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-button {
  color: #d8c7df;
  font-size: 11px;
}

.language-toggle {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.language-toggle button {
  min-width: 46px;
  border-radius: 6px;
}

.language-toggle button.is-active,
.primary-button,
.filter-panel button,
.profile-panel button,
.episode-list button.is-active {
  background: linear-gradient(135deg, #ff2f9a 0%, #a000ff 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 47, 154, 0.28);
}

.profile-button {
  position: relative;
  flex: 0 0 auto;
  justify-self: end;
  width: 54px;
  height: 54px;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--profile-avatar, url("./assets/poster-one-piece.png")) var(--profile-avatar-pos, 50% 35%) / cover;
  box-shadow: 0 0 24px rgba(255, 47, 154, 0.34);
}

.profile-button.is-signed-in {
  box-shadow: 0 0 0 2px rgba(255, 47, 154, 0.5), 0 0 28px rgba(255, 47, 154, 0.36);
}

.profile-button::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 47, 154, 0.48);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.profile-button span {
  display: none;
}

.profile-panel {
  width: 344px;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.avatar-choice {
  display: grid;
  gap: 6px;
  justify-items: center;
  height: auto;
  min-height: 94px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.avatar-choice span {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: var(--avatar-image) var(--avatar-pos, 50% 35%) / cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.avatar-choice b {
  max-width: 100%;
  overflow: hidden;
  color: #efe4f4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-choice.is-selected {
  border-color: rgba(255, 47, 154, 0.72);
  background: linear-gradient(135deg, rgba(255, 47, 154, 0.18), rgba(160, 0, 255, 0.16));
}

.avatar-choice.is-selected span {
  border-color: #ff4db0;
  box-shadow: 0 0 22px rgba(255, 47, 154, 0.5);
}

.profile-anime-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.profile-panel.is-list-focus .profile-anime-list,
.profile-panel.is-list-focus .anime-list-empty {
  padding: 10px;
  border: 1px solid rgba(255, 47, 154, 0.45);
  border-radius: 8px;
  background: rgba(255, 47, 154, 0.08);
  box-shadow: inset 0 0 24px rgba(174, 0, 255, 0.16);
}

.profile-anime-row {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 8px;
  align-items: center;
}

.profile-anime-row button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 48px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.profile-anime-row img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
}

.profile-anime-row span {
  display: grid;
  min-width: 0;
}

.profile-anime-row strong,
.profile-anime-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-anime-row small,
.anime-list-empty {
  color: var(--muted);
  font-size: 12px;
}

.profile-anime-row select {
  height: 48px;
  font-size: 12px;
}

.random-button {
  display: none;
}

.hero {
  width: min(1820px, calc(100% - 48px));
  min-height: 512px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0b0712;
  box-shadow: var(--shadow);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(8, 5, 12, 0.94) 0%, rgba(8, 5, 12, 0.76) 30%, rgba(8, 5, 12, 0.18) 58%, rgba(8, 5, 12, 0.26) 100%),
    radial-gradient(circle at 78% 35%, rgba(157, 64, 255, 0.24), rgba(157, 64, 255, 0) 36%),
    linear-gradient(180deg, rgba(8, 5, 12, 0.12) 0%, rgba(8, 5, 12, 0.66) 100%);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 47, 154, 0.22), rgba(255, 47, 154, 0) 28%),
    linear-gradient(0deg, rgba(7, 5, 12, 0.98), rgba(7, 5, 12, 0) 42%);
}

.hero-art {
  filter: saturate(1.18) contrast(1.1) hue-rotate(18deg);
  transform: scale(1.03);
}

.hero-content {
  width: min(620px, 56vw);
  padding-top: 74px;
}

.eyebrow {
  color: #ff4db0;
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.96;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.64);
}

.summary {
  max-width: 580px;
  color: #dfd3e6;
  font-size: 17px;
  line-height: 1.7;
}

.stat-panel {
  display: none;
}

.hero-actions {
  gap: 16px;
  margin-top: 28px;
}

.primary-button {
  min-width: 202px;
  min-height: 60px;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0;
}

.primary-button::before {
  content: "▶";
  margin-right: 10px;
  font-size: 13px;
}

.bookmark-button {
  width: 188px;
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.bookmark-button::before {
  color: #fff;
  content: "+  ADD TO LIST";
  font-size: 14px;
  font-weight: 900;
}

.bookmark-button span {
  display: none;
}

.hero-pager {
  right: 22px;
  bottom: 205px;
  gap: 14px;
}

.hero-pager span {
  display: none;
}

.hero-pager button,
.section-arrows button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(10, 8, 18, 0.7);
  color: #fff;
}

.home-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
  width: min(1820px, calc(100% - 48px));
  margin-top: 12px;
  gap: 18px;
}

.share-strip,
.notice-strip {
  display: none;
}

.content-section {
  margin-top: 24px;
}

.section-heading {
  min-height: 46px;
}

.section-heading h2,
.trending-panel h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 24px;
  letter-spacing: 0;
  text-transform: none;
}

.section-heading h2::before,
.trending-panel h2::before {
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff2f9a, #bf32ff);
  box-shadow: 0 0 18px rgba(255, 47, 154, 0.72);
  content: "";
}

.section-heading h2 span {
  display: none;
}

.tabs {
  gap: 14px;
}

.tabs button {
  color: #d8cbe0;
  font-weight: 800;
}

.tabs button.is-active,
.chip-green,
.trend-copy b.green,
.control-row button.is-on,
.episode-tools button.is-on {
  color: #ff4db0;
}

.poster-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
}

.poster-card {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #120d1c;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.poster-card::before {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2f9a, #c321ff);
  color: #fff;
  content: "TOP";
  font-size: 11px;
  font-weight: 900;
}

.poster-card img {
  width: 100%;
  height: 100%;
  min-height: 286px;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.78;
}

.poster-card h3,
.poster-meta {
  position: absolute;
  right: 14px;
  left: 14px;
  z-index: 2;
}

.poster-card h3 {
  bottom: 46px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.poster-meta {
  bottom: 14px;
  gap: 12px;
  color: #dfd0e8;
}

.poster-card .chip {
  display: none;
}

.poster-card::after,
.watch-card::after {
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(180deg, rgba(8, 5, 12, 0), rgba(8, 5, 12, 0.9));
  content: "";
}

.watch-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #120d1c;
}

.watch-card img {
  border-radius: 8px;
  filter: saturate(1.08);
}

.remove-watch {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  border-radius: 50%;
  background: rgba(8, 5, 12, 0.82);
}

.continue-empty,
.empty-state {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.trending-panel {
  position: sticky;
  top: 112px;
  align-self: start;
  min-height: 520px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 47, 154, 0.1), rgba(117, 43, 255, 0.08)),
    rgba(16, 12, 25, 0.88);
  box-shadow: var(--shadow);
}

.trending-panel h2 span {
  display: none;
}

.trending-list {
  gap: 13px;
}

.trending-list button {
  min-height: 80px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.trending-list button::before {
  background: linear-gradient(90deg, rgba(17, 13, 25, 0.06), rgba(17, 13, 25, 0.54) 54%, rgba(17, 13, 25, 0.96));
}

.rank {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 47, 154, 0.22), rgba(117, 43, 255, 0.18));
  color: #fff;
}

.trend-copy strong {
  color: #fff;
}

.trend-copy b {
  border-radius: 4px;
  background: rgba(255, 47, 154, 0.14);
  color: #ff6dbf;
}

.watch-page {
  width: min(1820px, calc(100% - 48px));
}

.view-watch {
  background:
    radial-gradient(circle at 78% 0%, rgba(129, 52, 255, 0.22), rgba(129, 52, 255, 0) 30%),
    linear-gradient(145deg, #050408 0%, #0d0717 100%);
}

.anime-info,
.player-panel,
.episodes-panel,
.search-results,
.filter-panel,
.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 47, 154, 0.06), rgba(117, 43, 255, 0.05)),
    rgba(16, 12, 25, 0.92);
  box-shadow: var(--shadow);
}

.video-frame {
  background: #050408;
}

.watch-toolbar {
  background: rgba(255, 255, 255, 0.045);
}

.server-actions button,
.language-actions button,
.episode-tools button,
.control-row button {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.server-actions button.is-active,
.language-actions button.is-active {
  background: linear-gradient(135deg, #ff2f9a, #a000ff);
  color: #fff;
}

.episode-list button {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(16, 12, 25, 0.96);
}

@media (max-width: 1240px) {
  .topbar {
    flex-wrap: wrap;
  }

  .searchbar {
    flex-basis: min(420px, 100%);
    justify-self: end;
  }

  .language-toggle {
    margin-left: 0;
  }

  .profile-button {
    margin-left: 0;
  }

  .nav-links {
    order: 5;
    width: 100%;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .trending-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .home-grid,
  .anime-list-page,
  .watch-page {
    width: calc(100% - 20px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    width: 156px;
    min-width: 0;
    height: 40px;
  }

  .anime-list-hero {
    display: grid;
    padding: 20px;
  }

  .anime-list-hero h1 {
    font-size: 34px;
  }

  .anime-list-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .anime-list-tabs button {
    flex: 0 0 auto;
  }

  .anime-list-group {
    padding: 14px;
  }

  .anime-list-grid {
    grid-template-columns: 1fr;
  }

  .language-toggle {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: 42px;
    padding: 0 4px;
  }

  .language-toggle button {
    min-width: 38px;
    font-size: 12px;
  }

  .profile-button {
    display: block;
    grid-column: 3;
    grid-row: 1;
    width: 42px;
    height: 42px;
  }

  .searchbar {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-basis: auto;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 10px;
  }

  .searchbar input {
    min-width: 0;
    font-size: 14px;
  }

  .filter-button {
    padding: 0 8px;
    font-size: 10px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links button {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 13px;
  }

  .nav-links button::after {
    bottom: -3px;
  }

  .search-results,
  .filter-panel,
  .profile-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  .hero {
    min-height: 430px;
    margin-top: 10px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 42px 0 0;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    max-width: 300px;
    font-size: 38px;
    line-height: 1;
  }

  .summary {
    display: -webkit-box;
    max-width: 300px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .meta-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .chip,
  .format {
    font-size: 11px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(260px, 100%);
    margin-top: 20px;
  }

  .primary-button,
  .bookmark-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    font-size: 13px;
  }

  .bookmark-button::before {
    content: "+  ADD TO LIST";
    font-size: 12px;
  }

  .hero-pager {
    right: 14px;
    bottom: 14px;
  }

  .hero-pager button,
  .section-arrows button {
    width: 38px;
    height: 38px;
  }

  .home-grid {
    gap: 12px;
    margin-top: 10px;
  }

  .content-section {
    margin-top: 28px;
  }

  .section-heading {
    align-items: flex-start;
    min-height: 38px;
  }

  .latest-heading {
    display: grid;
    gap: 10px;
  }

  .section-heading h2,
  .trending-panel h2 {
    font-size: 20px;
  }

  .section-heading h2::before,
  .trending-panel h2::before {
    height: 22px;
  }

  .tabs {
    gap: 12px;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
  }

  .poster-card {
    min-height: 232px;
  }

  .poster-card img {
    min-height: 232px;
  }

  .poster-card h3 {
    right: 10px;
    bottom: 38px;
    left: 10px;
    font-size: 14px;
  }

  .poster-meta {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 8px;
    font-size: 11px;
  }

  .continue-row {
    gap: 12px;
  }

  .trending-panel {
    min-height: 0;
    padding: 18px 14px;
  }

  .trending-list button {
    min-height: 68px;
  }

  .trending-list img {
    width: 88px;
    height: 66px;
  }

  .rank {
    width: 30px;
    height: 30px;
  }

  .trend-copy strong {
    font-size: 14px;
  }

  .watch-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    margin: 12px auto 24px;
  }

  .player-panel {
    order: 1;
  }

  .anime-info {
    order: 2;
  }

  .episodes-panel {
    order: 3;
    max-height: none;
    padding: 14px;
  }

  .crumbs {
    min-height: 42px;
    padding: 0 12px;
    gap: 6px;
    font-size: 12px;
  }

  .video-frame {
    aspect-ratio: 16 / 10;
  }

  .video-frame.is-poster-fallback img {
    width: min(42%, 150px);
    height: min(82%, 230px);
  }

  .fullscreen-button {
    right: 10px;
    bottom: 70px;
    width: 34px;
    height: 34px;
  }

  .player-controls {
    padding: 0 8px 8px;
  }

  .control-row {
    gap: 7px;
    font-size: 12px;
  }

  .control-row [data-player-action="back"],
  .control-row [data-player-action="forward"],
  .control-row [data-player-action="settings"] {
    display: none;
  }

  .watch-toolbar {
    grid-template-columns: repeat(4, 1fr);
    min-height: 48px;
    padding: 0 8px;
  }

  .watch-toolbar button {
    font-size: 12px;
  }

  .watch-toolbar [data-player-action="expand"],
  .watch-toolbar [data-player-action="focus"],
  .watch-toolbar [data-report] {
    display: none;
  }

  .server-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .server-panel p + p {
    margin-top: 8px;
  }

  .server-actions {
    justify-content: stretch;
    max-width: none;
    gap: 8px;
  }

  .language-actions {
    width: 100%;
  }

  .language-actions button,
  .server-actions > button {
    flex: 1 1 calc(50% - 4px);
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .info-hero {
    min-height: 120px;
    padding-top: 14px;
  }

  .info-hero img {
    width: 74px;
    height: 108px;
  }

  .info-body {
    padding: 16px;
  }

  .anime-info h1 {
    font-size: 19px;
  }

  .native-title {
    margin-top: 8px;
  }

  .info-body .summary {
    display: block;
    max-width: none;
    font-size: 13px;
    text-align: left;
  }

  .details-list {
    display: none;
  }

  .rating-box {
    padding: 16px;
  }

  .rating-box h2 {
    font-size: 16px;
  }

  .stars span {
    width: 21px;
    height: 21px;
  }

  .episodes-head {
    align-items: flex-start;
    gap: 10px;
  }

  .episode-tools {
    flex: 1;
    justify-content: flex-end;
  }

  .episode-tools input {
    width: min(118px, 100%);
  }

  .episode-list {
    max-height: 360px;
    margin-top: 12px;
  }

  .episode-list button {
    height: 38px;
  }

  .episode-range-menu {
    grid-template-columns: 1fr;
  }
}
