/* Aulama Anime — phones held sideways.
 *
 * A layer over the main stylesheet, active only while the app marks itself
 * .is-phone-landscape (a phone-sized screen turned sideways). Portrait,
 * tablets and desktops are untouched.
 *
 * The screen is short and wide, so what sat across the top moves to the left
 * edge as two Liquid Glass capsules of the same width, one above the other:
 * the five destinations, and below them search and the account. They sit in
 * exactly the same place on every page, the player included, so nothing
 * jumps when you move around. Pages start right beside them, use the full
 * height, and keep their main action inside the first screen.
 */

.anime-app.is-phone-landscape {
  --ls-safe-left: env(safe-area-inset-left, 0px);
  --ls-safe-top: env(safe-area-inset-top, 0px);
  --ls-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ls-rail: 64px;
  --ls-rail-x: max(8px, var(--ls-safe-left));
  --ls-edge: 8px;            /* screen edge to capsule, and capsule to capsule */
  --ls-inset: 6px;           /* capsule edge to its contents */
  --ls-btn: 44px;            /* search and account */
  --ls-foot: calc(var(--ls-btn) * 2 + var(--ls-inset) * 3);
  /* the tab capsule's height, and the five destinations share it */
  --ls-rail-h: calc(100dvh - var(--ls-safe-top) - var(--ls-safe-bottom) - var(--ls-edge) * 3 - var(--ls-foot));
  --ls-tab: clamp(34px, calc((var(--ls-rail-h) - var(--ls-inset) * 2) / 5), 60px);
  /* Pages begin at the capsules' right edge (the app's own offset for
     everything it lays out there) and every page's content keeps the same
     24px gutter from it, so the left edge never moves between pages. */
  --phone-nav-inset: calc(var(--ls-rail-x) + var(--ls-rail)) !important;
  --ls-gutter: 24px;
  --ls-left: calc(var(--phone-nav-inset) + var(--ls-gutter));
  --ls-right: calc(max(0px, env(safe-area-inset-right, 0px)) + var(--ls-gutter));
  /* posters beside text are sized from the screen height */
  --ls-poster: clamp(112px, calc((100dvh - var(--ls-safe-top) - var(--ls-safe-bottom) - 40px) * .5), 200px);
  /* nothing runs across the top any more */
  --header-height: 0px;
}

/* ------------------------------------------------------------------ tabs */
.anime-app.is-phone-landscape .mobile-nav.liquid-navigation {
  top: calc(var(--ls-safe-top) + var(--ls-edge)) !important;
  bottom: calc(var(--ls-safe-bottom) + var(--ls-edge) * 2 + var(--ls-foot)) !important;
  left: var(--ls-rail-x) !important;
  width: var(--ls-rail) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  grid-template-rows: none !important;
  grid-auto-rows: var(--ls-tab) !important;
  align-content: center !important;
  justify-items: center;
  gap: 0 !important;
  padding: var(--ls-inset) 0 !important;
  border-radius: calc(var(--ls-rail) / 2) !important;
  transform: none !important;
  translate: none !important;
}
/* Whole pixels: the glass lens places its copies of the tabs by their
   rounded offsets, so a fractional tab height would leave the magnified icon
   half a pixel off the real one. */
@supports (top: round(down, 1.5px, 1px)) {
  .anime-app.is-phone-landscape {
    --ls-tab: clamp(34px, round(down, calc((var(--ls-rail-h) - var(--ls-inset) * 2) / 5), 1px), 60px);
  }
  .anime-app.is-phone-landscape .mobile-nav.liquid-navigation {
    align-content: start !important;
    padding-top: calc(var(--ls-inset) + round(down, calc((var(--ls-rail-h) - var(--ls-inset) * 2 - var(--ls-tab) * 5) / 2), 1px)) !important;
  }
}
/* The rail moves up and down, but the app lights its glass as if it moved
   sideways: the glow under a pressed tab and the light that travels with a
   tapped selection were both placed along x. Here they run along y. */
.anime-app.is-phone-landscape .mobile-nav.liquid-navigation::before {
  background:
    radial-gradient(ellipse 110% 32% at 50% var(--nav-light-x, 50%), rgb(255 255 255 / var(--nav-light-opacity, 0)), transparent 100%),
    linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%)),
    rgb(26 32 43 / 36%) !important;
}
/* the travelling light is moved along x by the app; transposing its frame
   (x and y swapped) makes that motion run down the rail */
.anime-app.is-phone-landscape .mobile-nav.liquid-navigation > .liquid-nav-light-clip {
  inset: 0 auto auto 0 !important;
  width: calc(var(--ls-rail-h) - 2px) !important;
  height: calc(var(--ls-rail) - 2px) !important;
  transform: matrix(0, 1, 1, 0, 0, 0);
  transform-origin: 0 0;
}
/* the tabs and their copies inside the glass lens are the same size, so the
   magnified icon sits exactly over the real one */
.anime-app.is-phone-landscape .mobile-nav.liquid-navigation button { min-height: 0 !important; }
.anime-app.is-phone-landscape .mobile-nav.liquid-navigation > button {
  width: calc(var(--ls-rail) - var(--ls-inset) * 2) !important;
  height: var(--ls-tab) !important;
  border-radius: calc(var(--ls-rail) / 2 - var(--ls-inset)) !important;
}
.anime-app.is-phone-landscape .mobile-nav.liquid-navigation button > span, .anime-app.is-phone-landscape .mobile-nav.liquid-navigation button > small {
  font-size: 10.5px !important;
  letter-spacing: .02em;
}
/* below this there is no room for a label under each icon */
@media (max-height: 360px) {
  .anime-app.is-phone-landscape .mobile-nav.liquid-navigation button > span, .anime-app.is-phone-landscape .mobile-nav.liquid-navigation button > small { display: none !important; }
}
@media (max-height: 340px) {
  .anime-app.is-phone-landscape { --ls-btn: 40px; }
}

/* ------------------------------------------------------------------ search and account */
/* The header's pieces sit above the page; the rest of it lets touches
   through. It used to slide away on scroll (will-change: transform), which
   would make it the frame for its fixed pieces, so here it stays put. */
.anime-app.is-phone-landscape .app-header-shell {
  z-index: 95 !important;
  pointer-events: none !important;
}
.anime-app.is-phone-landscape .app-header {
  will-change: auto !important;
  transform: none !important;
  translate: none !important;
}
.anime-app.is-phone-landscape .page-top-blur { display: none !important; }
/* the header's wordmark has no room by the tabs; the home page shows it
   instead (see the hero below) */
.anime-app.is-phone-landscape .app-header .brand-button { display: none !important; }

.anime-app.is-phone-landscape .app-header .header-actions-pill {
  position: fixed !important;
  z-index: 3;
  top: auto !important;
  right: auto !important;
  left: var(--ls-rail-x) !important;
  bottom: calc(var(--ls-safe-bottom) + var(--ls-edge)) !important;
  width: var(--ls-rail) !important;
  height: var(--ls-foot) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--ls-inset) !important;
  padding: var(--ls-inset) 0 !important;
  margin: 0 !important;
  border-radius: calc(var(--ls-rail) / 2) !important;
  pointer-events: auto !important;
}
.anime-app.is-phone-landscape .app-header .header-actions-pill .search-trigger, .anime-app.is-phone-landscape .app-header .header-actions-pill .account-area, .anime-app.is-phone-landscape .app-header .header-actions-pill .account-trigger {
  width: var(--ls-btn) !important;
  height: var(--ls-btn) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: none !important;
}
.anime-app.is-phone-landscape .app-header .header-actions-pill .account-avatar {
  width: calc(var(--ls-btn) - 8px) !important;
  height: calc(var(--ls-btn) - 8px) !important;
}

/* ------------------------------------------------------------------ pages */
/* home: the featured artwork runs under the glass capsules to the screen
   edge, so nothing cuts the scene (or the play button's glow) short beside
   them; the title fits the screen with its actions in reach */
.anime-app.is-phone-landscape .home-editorial-flow {
  margin-left: calc(var(--phone-nav-inset) * -1) !important;
  padding-left: var(--phone-nav-inset) !important;
}
.anime-app.is-phone-landscape .today-focus-hero {
  margin-left: calc(var(--phone-nav-inset) * -1) !important;
  width: calc(100% + var(--phone-nav-inset)) !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 300px !important;
  max-height: 520px !important;
}
.anime-app.is-phone-landscape .today-focus-inner {
  min-height: 0 !important;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start !important;
  padding: calc(var(--ls-safe-top) + 14px) var(--ls-right) calc(var(--ls-safe-bottom) + 14px) 0 !important;
  margin-left: var(--ls-left) !important;
}
/* the wordmark heads the featured title and scrolls away with it */
.anime-app.is-phone-landscape .today-focus-inner::before {
  content: "";
  flex: none;
  width: 88px;
  height: 36px;
  margin: 0 0 10px;
  background: url("/anime/aulama-anime-wordmark.png") left center / contain no-repeat;
  filter: drop-shadow(0 3px 10px rgb(0 0 0 / 40%));
}
@media (max-height: 340px) {
  .anime-app.is-phone-landscape .today-focus-inner::before { display: none; }
}
.anime-app.is-phone-landscape .today-focus-copy { max-width: min(500px, 56vw) !important; }
.anime-app.is-phone-landscape .today-focus-kicker { margin-bottom: 4px !important; }
.anime-app.is-phone-landscape .today-focus-kicker strong { font-size: 13px !important; }
.anime-app.is-phone-landscape .today-focus-copy h1 {
  font-size: clamp(24px, 3.4vw, 32px) !important;
  line-height: 1.12 !important;
  margin: 4px 0 6px !important;
}
.anime-app.is-phone-landscape .today-focus-copy .meta-line {
  gap: 5px !important;
  flex-wrap: nowrap !important;
  overflow: hidden;
}
.anime-app.is-phone-landscape .today-focus-copy .meta-line > span {
  height: 24px !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  flex: none;
}
.anime-app.is-phone-landscape .today-focus-copy .feature-summary {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 8px 0 12px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: none !important;
}
.anime-app.is-phone-landscape .today-focus-copy .feature-actions { gap: 8px !important; flex-wrap: nowrap !important; }
.anime-app.is-phone-landscape .today-focus-copy .feature-actions button, .anime-app.is-phone-landscape .today-focus-copy .feature-actions a {
  height: 42px !important;
  min-height: 0 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  flex: none !important;
  width: auto !important;
  padding-inline: 18px !important;
}
.anime-app.is-phone-landscape .today-focus-pagination {
  margin-top: 12px !important;
  transform: scale(.88);
  transform-origin: left center;
}

/* section headings and their spacing below the fold */
.anime-app.is-phone-landscape .home-rail-heading, .anime-app.is-phone-landscape .timeline-heading {
  padding-left: var(--ls-gutter) !important;
}
.anime-app.is-phone-landscape :is(.home-rail-heading, .timeline-heading) h2, .anime-app.is-phone-landscape :is(.home-rail-heading, .timeline-heading) h3 {
  font-size: 20px !important;
}

/* the spotlight rails (recommendations and friends): poster, title, summary
   and actions in one screen-height band, the carousel right under it */
.anime-app.is-phone-landscape .immersive-content-rail { margin-top: 18px !important; padding-top: 22px !important; }
.anime-app.is-phone-landscape .immersive-content-rail .home-rail-heading { padding-bottom: 10px !important; }
.anime-app.is-phone-landscape .immersive-content-rail-stage {
  grid-template-columns: calc(var(--ls-poster) * .78) minmax(0, 1fr) !important;
  gap: 0 24px !important;
  align-items: center !important;
  padding: 10px var(--ls-right) 10px var(--ls-gutter) !important;
  min-height: 0 !important;
}
.anime-app.is-phone-landscape .immersive-content-rail-mobile-poster {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3;
  margin: 0 !important;
}
.anime-app.is-phone-landscape .immersive-content-rail-mobile-poster img { width: 100% !important; height: 100% !important; object-fit: cover; }
.anime-app.is-phone-landscape .immersive-content-rail-copy { gap: 8px !important; align-self: center !important; }
.anime-app.is-phone-landscape .immersive-content-rail-copy h3 {
  font-size: clamp(20px, 2.8vw, 26px) !important;
  line-height: 1.22 !important;
}
.anime-app.is-phone-landscape .immersive-content-rail-meta { flex-wrap: nowrap !important; overflow: hidden; }
.anime-app.is-phone-landscape .immersive-content-rail-meta > * { flex: none !important; }
.anime-app.is-phone-landscape .immersive-content-rail-summary {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  -webkit-line-clamp: 3 !important;
}
.anime-app.is-phone-landscape .immersive-content-rail-actions { margin-top: 2px !important; gap: 8px !important; }
.anime-app.is-phone-landscape .immersive-content-rail-actions button, .anime-app.is-phone-landscape .immersive-content-rail-actions a {
  height: 40px !important;
  min-height: 0 !important;
  font-size: 14px !important;
}
.anime-app.is-phone-landscape .immersive-content-rail-carousel { padding: 6px 0 12px !important; }
/* The carousels run on under the glass capsules to the screen edge, so cards
   slide behind the glass (and past the gap between the capsules) instead of
   vanishing at the content edge. The card still rests, and snaps, centred
   on the content area: the extra width is added on the left only, and the
   snapping area starts where the content does. */
.anime-app.is-phone-landscape .immersive-content-rail-carousel .immersive-content-rail-scroller {
  margin-left: calc(var(--phone-nav-inset) * -1) !important;
  padding-left: calc(var(--phone-nav-inset) + (100% - var(--touch-card-width, 0px)) / 2) !important;
  scroll-padding-left: var(--phone-nav-inset) !important;
}
/* ...and soften as they go: a progressive blur and dimming from the screen
   edge, fully clear again where the content starts */
.anime-app.is-phone-landscape .immersive-content-rail-carousel::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: calc(var(--phone-nav-inset) * -1);
  width: calc(var(--phone-nav-inset) + var(--ls-gutter) + 48px);
  pointer-events: none;
  background: linear-gradient(90deg, rgb(8 10 15 / 62%), rgb(8 10 15 / 30%) var(--phone-nav-inset), transparent);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-mask-image: linear-gradient(90deg, #000, #000 var(--phone-nav-inset), transparent);
  mask-image: linear-gradient(90deg, #000, #000 var(--phone-nav-inset), transparent);
}
html[data-theme="light"] .anime-app.is-phone-landscape .immersive-content-rail-carousel::before {
  background: linear-gradient(90deg, rgb(244 246 250 / 66%), rgb(244 246 250 / 30%) var(--phone-nav-inset), transparent);
}
@media (max-height: 380px) {
  .anime-app.is-phone-landscape .immersive-content-rail-summary { -webkit-line-clamp: 2 !important; }
}

/* detail: room for the rail, and the essentials in the first screen; the
   poster's size lets title, synopsis and the play button sit beside it
   without scrolling */
.anime-app.is-phone-landscape .detail-hero-inner, .anime-app.is-phone-landscape .detail-content {
  margin-left: var(--ls-left) !important;
  margin-right: var(--ls-right) !important;
  width: auto !important;
  max-width: none !important;
}
.anime-app.is-phone-landscape .detail-hero { min-height: 0 !important; }
.anime-app.is-phone-landscape .detail-hero-inner {
  grid-template-columns: var(--ls-poster) minmax(0, 1fr) !important;
  gap: 0 24px !important;
  align-items: center !important;
  min-height: calc(100dvh - 8px);
  padding: calc(var(--ls-safe-top) + 18px) 0 calc(var(--ls-safe-bottom) + 18px) !important;
}
.anime-app.is-phone-landscape .detail-poster-frame {
  width: var(--ls-poster) !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 2 / 3;
  align-self: center !important;
  border-radius: 18px !important;
}
.anime-app.is-phone-landscape .detail-poster-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.anime-app.is-phone-landscape .detail-hero-copy { gap: 0 !important; align-self: center !important; }
.anime-app.is-phone-landscape .detail-title-block { gap: 6px !important; }
.anime-app.is-phone-landscape .detail-title-block h2 {
  font-size: clamp(22px, 3.2vw, 28px) !important;
  line-height: 1.22 !important;
}
.anime-app.is-phone-landscape .detail-title-block h2 .semantic-title-unit { font-size: inherit !important; line-height: inherit !important; }
.anime-app.is-phone-landscape .detail-hero-copy > .detail-meta:not(.detail-meta-measure) {
  margin-top: 10px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  padding-right: 24px;
}
.anime-app.is-phone-landscape .detail-hero-copy > .detail-meta::-webkit-scrollbar { display: none; }
.anime-app.is-phone-landscape .detail-hero-copy > .detail-meta > span { flex: none !important; }
.anime-app.is-phone-landscape .detail-hero-synopsis { margin-top: 10px !important; }
.anime-app.is-phone-landscape .detail-hero-synopsis > p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  -webkit-line-clamp: 3 !important;
}
.anime-app.is-phone-landscape .detail-hero-synopsis > .detail-hero-synopsis-measure {
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.anime-app.is-phone-landscape .detail-synopsis-tools { min-height: 0 !important; margin-top: 2px !important; }
.anime-app.is-phone-landscape .detail-synopsis-tools button { height: 32px !important; min-height: 0 !important; font-size: 13.5px !important; }
.anime-app.is-phone-landscape .detail-actions { margin-top: 10px !important; gap: 8px !important; flex-wrap: nowrap !important; }
.anime-app.is-phone-landscape .detail-actions button, .anime-app.is-phone-landscape .detail-actions a {
  height: 42px !important;
  min-height: 0 !important;
  font-size: 14px !important;
  padding-inline: 16px !important;
  flex: none !important;
  width: auto !important;
}
@media (max-height: 380px) {
  .anime-app.is-phone-landscape .detail-hero-synopsis > p { -webkit-line-clamp: 2 !important; }
}

/* watch: the app moves its header into the details column here; its
   pieces stay in the capsules, so the slot it leaves takes no room */
.anime-app.is-phone-landscape .watch-header-slot {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.anime-app.is-phone-landscape .watch-header-slot .app-header {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}
.anime-app.is-phone-landscape .watch-stage-grid {
  /* the page already pads 12px on the right; this makes both gutters 24px */
  margin-left: var(--ls-gutter) !important;
  width: calc(100% - var(--ls-gutter) * 2 + 12px) !important;
  max-width: none !important;
}

/* The account menu grows out of the avatar at the foot of the rail. It is
   rendered outside the app, so the rail's geometry is spelled out here:
   rail x + rail width + 10px, bottom-aligned with the foot capsule. */
.anime-app.is-phone-landscape .account-menu,
.anime-app.is-phone-landscape ~ * .account-menu,
body:has(.anime-app.is-phone-landscape) .account-menu {
  top: auto !important;
  right: auto !important;
  left: calc(max(8px, env(safe-area-inset-left, 0px)) + 64px + 10px) !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  width: min(340px, calc(100vw - 110px)) !important;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px) !important;
  transform-origin: 0% 100% !important;
}

/* ------------------------------------------------------------------ list pages
   Discover, history, favourites, schedule: a compact heading, then content
   straight away. */
.anime-app.is-phone-landscape .page-section {
  padding-top: calc(var(--ls-safe-top) + 14px) !important;
}
.anime-app.is-phone-landscape .page-heading {
  margin-bottom: 12px !important;
  align-items: baseline !important;
}
.anime-app.is-phone-landscape .page-heading h1 {
  font-size: 22px !important;
  line-height: 1.2 !important;
}
/* one type scale on every list page: page title 22, groups 18, months 15 */
.anime-app.is-phone-landscape .page-section h2 {
  font-size: 18px !important;
  line-height: 1.3 !important;
}
.anime-app.is-phone-landscape .favorites-month-heading > h3 {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* discover: each filter is one line that scrolls sideways */
.anime-app.is-phone-landscape .discover-filters {
  padding: 4px 12px 6px !important;
  border-radius: 22px !important;
}
.anime-app.is-phone-landscape .discover-filter-heading {
  padding-bottom: 2px !important;
}
.anime-app.is-phone-landscape .discover-filter-heading button { height: 30px !important; }
.anime-app.is-phone-landscape .filter-row {
  min-height: 0 !important;
  padding: 3px 0 !important;
  align-items: center !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
}
.anime-app.is-phone-landscape .filter-row .filter-label {
  align-self: center !important;
  padding-top: 0 !important;
  font-size: 12.5px !important;
}
.anime-app.is-phone-landscape .filter-row .filter-options {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  padding-right: 28px !important;
  max-height: none !important;
}
.anime-app.is-phone-landscape .filter-row .filter-options::-webkit-scrollbar { display: none; }
.anime-app.is-phone-landscape .filter-row .filter-options > button {
  height: 32px !important;
  min-height: 0 !important;
  padding: 0 11px !important;
  font-size: 13.5px !important;
  flex: none !important;
  white-space: nowrap !important;
}
/* the "show more" chevrons are pointless when a row scrolls */
.anime-app.is-phone-landscape .filter-row > button:last-child:not(:only-child) { display: none !important; }
.anime-app.is-phone-landscape .discover-page .anime-grid { margin-top: 14px !important; }

/* history: the "continue watching" card leaves room for the list below it */
.anime-app.is-phone-landscape .history-feature .history-main {
  grid-template-columns: calc(var(--ls-poster) * .78) minmax(0, 1fr) !important;
  gap: 20px !important;
  padding: 12px !important;
}
.anime-app.is-phone-landscape .history-feature .history-poster {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3;
}
.anime-app.is-phone-landscape .history-feature .history-copy {
  padding: 4px 20px 4px 0 !important;
  justify-content: center !important;
  gap: 6px !important;
}
.anime-app.is-phone-landscape .history-feature .history-copy h2, .anime-app.is-phone-landscape .history-feature .history-copy h3, .anime-app.is-phone-landscape .history-feature .history-copy strong {
  font-size: clamp(19px, 2.6vw, 24px) !important;
  line-height: 1.25 !important;
}
.anime-app.is-phone-landscape .history-feature .history-copy :is(button, .primary-button, .history-resume) {
  height: 40px !important;
  min-height: 0 !important;
}

/* poster grids: columns sized for a short screen, so a whole poster and its
   title fit at once whatever the phone's width */
.anime-app.is-phone-landscape .anime-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)) !important;
  gap: 18px 14px !important;
}
.anime-app.is-phone-landscape .schedule-poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)) !important;
  gap: 18px 14px !important;
  padding-top: 12px !important;
}

/* schedule: same left edge as the other pages, less air around the filters */
.anime-app.is-phone-landscape .schedule-page { margin-inline: var(--ls-gutter) !important; }
.anime-app.is-phone-landscape .schedule-view-toolbar { margin: 12px 0 10px !important; }

/* search: a smaller heading, so recent searches start in the first screen */
body:has(.anime-app.is-phone-landscape) .search-dialog .search-results { padding-top: 96px !important; }
body:has(.anime-app.is-phone-landscape) .search-dialog .search-intro h1 { font-size: 24px !important; line-height: 1.25 !important; }


/* ================================================================== phones held sideways, 2026-10
 * Appended to the landscape layer above. The rules there for the home page lost to more
 * specific touch-shell rules (the featured block was pushed down by the old header offset, so
 * its copy sat at the bottom and its actions under the gesture bar); these win, and they also
 * give the screen's two edges the frosted glass the capsules float on. */

/* ------------------------------------------------------------------ frosted edges
   The page runs on under the capsules on the left and the status bar on top; both get a
   progressive blur, so what passes beneath them softens instead of crossing them sharply. */
:root body .anime-app.anime-app.is-phone-landscape:not(.is-watch-page) > .anime-mobile-bottom-frost {
  display: block !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: calc(var(--phone-nav-inset) + var(--ls-gutter)) !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 89 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  /* portrait's bottom frost turned on its side: a light blur, barely tinted, fading in towards
     the edge, so the rail floats on the page as the tab bar does (a dark band behind it read
     as an old solid sidebar) */
  background: linear-gradient(to left, transparent, #11172222) !important;
  -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
  backdrop-filter: blur(12px) saturate(125%) !important;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 85%) !important;
  mask-image: linear-gradient(to left, transparent, #000 85%) !important;
}
:root body .anime-app.anime-app.is-phone-landscape:has(.player-shell:is(.is-fullscreen, .is-pseudo-fullscreen)) > .anime-mobile-bottom-frost,
:root:has(:fullscreen) body .anime-app.anime-app.is-phone-landscape > .anime-mobile-bottom-frost {
  display: none !important;
}
/* the edge frost covers every carousel now; their own strip would blur twice */
:root .anime-app.anime-app.is-phone-landscape .immersive-content-rail-carousel::before { display: none !important; }

:root .anime-app.anime-app.is-phone-landscape:not(.is-watch-page) .page-top-blur {
  display: block !important;
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: auto !important;
  height: calc(var(--ls-safe-top) + 12px) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: none !important;
  transition: opacity .24s ease !important;
  background: linear-gradient(180deg, rgb(6 8 12 / 70%), rgb(6 8 12 / 0%)) !important;
  -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
  backdrop-filter: blur(12px) saturate(130%) !important;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent) !important;
  mask-image: linear-gradient(180deg, #000 55%, transparent) !important;
}
:root .anime-app.anime-app.is-phone-landscape:not(.is-watch-page) .page-top-blur.is-visible { opacity: 1 !important; }
html[data-theme="light"] .anime-app.anime-app.is-phone-landscape .page-top-blur {
  background: linear-gradient(180deg, rgb(244 246 250 / 72%), rgb(244 246 250 / 0%)) !important;
}

/* ------------------------------------------------------------------ home: featured
   One screen tall. The artwork fills the right half edge to edge and fades into a glow of its
   own colour; the copy is centred in the height left under the status bar, with its actions
   clear of the gesture bar. */
:root .anime-app.anime-app.is-phone-landscape .home-editorial-flow .today-focus-hero {
  height: 100dvh !important;
  min-height: 300px !important;
  max-height: 560px !important;
  overflow: hidden !important;
}
:root .anime-app.anime-app.is-phone-landscape .home-editorial-flow .today-focus-hero .today-focus-inner {
  position: relative !important;
  top: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  margin: 0 0 0 var(--ls-left) !important;
  padding: calc(var(--ls-safe-top) + 2px) var(--ls-right) calc(var(--ls-safe-bottom) + 12px) 0 !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-media {
  background:
    radial-gradient(62% 92% at 64% 44%, color-mix(in srgb, var(--focus-accent, rgb(108 122 153)) 30%, transparent), transparent 74%),
    radial-gradient(46% 70% at 14% 104%, color-mix(in srgb, var(--focus-accent, rgb(108 122 153)) 16%, transparent), transparent 72%),
    rgb(7 9 13) !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-art-main {
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  width: 52vw !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  opacity: 1 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 55%) 24%, #000 50%), linear-gradient(180deg, #000 70%, transparent) !important;
  -webkit-mask-composite: source-in !important;
  mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 55%) 24%, #000 50%), linear-gradient(180deg, #000 70%, transparent) !important;
  mask-composite: intersect !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-shade {
  background:
    linear-gradient(90deg, rgb(7 9 13 / 90%), rgb(7 9 13 / 74%) 32%, rgb(7 9 13 / 30%) 54%, transparent 70%),
    linear-gradient(0deg, rgb(7 9 13 / 80%), transparent 26%) !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-copy {
  width: 100% !important;
  max-width: min(460px, calc(100vw - var(--ls-left) - 36vw)) !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-inner::before {
  width: 76px !important;
  height: 30px !important;
  margin: 0 0 8px !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-copy h1 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-hero .today-focus-pagination {
  margin-top: 10px !important;
  transform: scale(.84) !important;
  transform-origin: left center !important;
}

/* ------------------------------------------------------------------ home: one left edge
   Every heading, the week selector and the cards start on the same line. The schedule
   heading carried a second 24px inset and the week selector sat centred on its own. */
:root .anime-app.anime-app.is-phone-landscape .home-update-area .timeline-heading {
  margin-inline: var(--ls-gutter) !important;
  padding-inline: 0 !important;
  width: auto !important;
}
:root .anime-app.anime-app.is-phone-landscape .home-update-area .day-selector-flow-slot .day-selector {
  width: calc(100% - var(--ls-gutter) * 2) !important;
  max-width: none !important;
  margin-inline: var(--ls-gutter) !important;
}

/* ------------------------------------------------------------------ watch: details to the edge
   The details column stopped 12px above the screen's foot (the page's bottom padding), so the
   episode buttons were cut off in mid-air. It now scrolls on to the screen's edge, where the
   page's own soft blur follows it, with room at the end for the last row to come clear of the
   gesture bar. The same at the top: it stopped under the status bar (the page's top padding)
   and now runs on behind it, under a soft blur.
   (No mask on the scroller: that would hold the fixed search capsule inside it.) */
:root .anime-app.anime-app.is-phone-landscape .watch-details-column .watch-details-scroll {
  margin-top: calc(var(--ls-safe-top) * -1) !important;
  height: calc(100% + 12px + var(--ls-safe-top)) !important;
  max-height: none !important;
  padding-top: var(--ls-safe-top) !important;
  padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)) !important;
}
:root .anime-app.anime-app.is-phone-landscape .watch-details-column .watch-scroll-edge.is-bottom {
  bottom: -12px !important;
  height: 34px !important;
}
:root .anime-app.anime-app.is-phone-landscape .watch-details-column .watch-scroll-edge.is-top {
  display: block !important;
  top: calc(var(--ls-safe-top) * -1) !important;
  height: calc(var(--ls-safe-top) + 16px) !important;
}

/* ------------------------------------------------------------------ detail
   The inline rating shares the action row; held to one line here it was squeezed to a column one
   character wide (300px tall), pushing the play button off the screen. It takes its own row. */
:root .anime-app.anime-app.is-phone-landscape .detail-actions.has-inline-rating {
  flex-wrap: wrap !important;
  row-gap: 10px !important;
}
:root .anime-app.anime-app.is-phone-landscape .detail-actions.has-inline-rating .detail-user-rating {
  flex: 1 0 100% !important;
  order: 9 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}
:root .anime-app.anime-app.is-phone-landscape .detail-actions.has-inline-rating .detail-user-rating > div:first-child {
  width: auto !important;
  height: auto !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
}
/* The loading page starts beside the capsules, as the page it stands in for does, with the
   poster at the size and place it will have. */
:root .anime-app.anime-app.is-phone-landscape .detail-loading-screen {
  padding-top: 0 !important;
  padding-left: var(--ls-left) !important;
  padding-right: var(--ls-right) !important;
}
:root .anime-app.anime-app.is-phone-landscape .detail-loading-hero {
  grid-template-columns: var(--ls-poster) minmax(0, 1fr) !important;
  gap: 0 24px !important;
  align-items: center !important;
  min-height: calc(100dvh - 8px) !important;
  padding: calc(var(--ls-safe-top) + 18px) 0 calc(var(--ls-safe-bottom) + 18px) !important;
}
:root .anime-app.anime-app.is-phone-landscape .detail-loading-poster,
:root .anime-app.anime-app.is-phone-landscape .detail-loading-artwork {
  width: var(--ls-poster) !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 18px !important;
}

/* ------------------------------------------------------------------ capsules, 2026-10-26
   The destinations take the whole left edge (five tabs were squeezed into what was left above
   search and account); search and account move to a row capsule in the top-right corner, its
   top level with the rail's, the size of the portrait header's (50px, 40px buttons, 5px inset). */
:root .anime-app.anime-app.is-phone-landscape {
  --ls-rail-h: calc(100dvh - var(--ls-safe-top) - var(--ls-safe-bottom) - var(--ls-edge) * 2);
  /* the five tabs fill the rail end to end, as on the tab bar: capped, they left 17px of empty
     rail beyond the first and last, and those ends stood out past the lens */
  --ls-tab: max(34px, calc((var(--ls-rail-h) - var(--ls-inset) * 2) / 5));
  --ls-corner-x: max(8px, env(safe-area-inset-right, 0px));
  --ls-corner-btn: 40px;
  --ls-corner-inset: 5px;
  --ls-corner-h: calc(var(--ls-corner-btn) + var(--ls-corner-inset) * 2);
  --ls-corner-w: calc(var(--ls-corner-btn) * 2 + var(--ls-corner-inset) * 3 + 2px);
}
@supports (top: round(down, 1.5px, 1px)) {
  :root .anime-app.anime-app.is-phone-landscape {
    --ls-tab: max(34px, round(down, calc((var(--ls-rail-h) - var(--ls-inset) * 2) / 5), 1px));
  }
}
:root .anime-app.anime-app.is-phone-landscape .mobile-nav.liquid-navigation {
  bottom: calc(var(--ls-safe-bottom) + var(--ls-edge)) !important;
}
:root .anime-app.anime-app.is-phone-landscape .app-header .header-actions-pill {
  top: calc(var(--ls-safe-top) + var(--ls-edge)) !important;
  bottom: auto !important;
  left: auto !important;
  right: var(--ls-corner-x) !important;
  width: auto !important;
  height: var(--ls-corner-h) !important;
  flex-direction: row !important;
  gap: var(--ls-corner-inset) !important;
  padding: 0 var(--ls-corner-inset) !important;
  border-radius: calc(var(--ls-corner-h) / 2) !important;
}
:root .anime-app.anime-app.is-phone-landscape .app-header .header-actions-pill .search-trigger, :root .anime-app.anime-app.is-phone-landscape .app-header .header-actions-pill .account-area, :root .anime-app.anime-app.is-phone-landscape .app-header .header-actions-pill .account-trigger {
  width: var(--ls-corner-btn) !important;
  height: var(--ls-corner-btn) !important;
}
:root .anime-app.anime-app.is-phone-landscape .app-header .header-actions-pill .account-avatar {
  width: calc(var(--ls-corner-btn) - 6px) !important;
  height: calc(var(--ls-corner-btn) - 6px) !important;
}
/* the account menu now grows down out of the avatar in the corner */
:root .anime-app.anime-app.is-phone-landscape .account-menu,
:root .anime-app.anime-app.is-phone-landscape ~ * .account-menu,
:root body:has(.anime-app.is-phone-landscape) .account-menu {
  top: calc(var(--ls-safe-top, env(safe-area-inset-top, 0px)) + 8px + 50px + 8px) !important;
  right: max(8px, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: auto !important;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 82px) !important;
  transform-origin: 100% 0% !important;
}
/* list pages: the heading row is the corner capsule's row, level with it and clear of it, so a
   page's count (or sort) never runs under search and account. The pages keep a plain gutter on
   the right while the capsule steps in past a camera cut-out there (the phone turned the other
   way), so the room it needs is measured from the gutter, not from --ls-right. */
:root .anime-app.anime-app.is-phone-landscape .page-section {
  padding-top: var(--ls-edge) !important;
}
:root .anime-app.anime-app.is-phone-landscape .page-section > .page-heading {
  min-height: var(--ls-corner-h) !important;
  align-items: center !important;
  padding-right: calc(var(--ls-corner-x) + var(--ls-corner-w) + 14px - var(--ls-gutter)) !important;
}
/* the active tab's lens: portrait's frosted pill. There it magnifies the covers behind the bar;
   over the rail's dark edge there is nothing to magnify, and only its thin rim showed. */
:root .anime-app.anime-app.is-phone-landscape .mobile-nav.liquid-navigation .liquid-nav-lens::after {
  background: linear-gradient(145deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 8%)) !important;
  border-color: rgb(255 255 255 / 10%) !important;
}
/* schedule: once scrolled, the weekday bar docks into the top row; it ends before the corner
   capsule and its middle is level with the capsule's */
:root .anime-app.anime-app.is-phone-landscape {
  --ls-corner-clear: calc(var(--ls-corner-x) + var(--ls-corner-w) + 12px);
}
:root .anime-app.anime-app.is-phone-landscape .schedule-header-dock {
  position: fixed !important;
  left: var(--ls-left) !important;
  right: var(--ls-corner-clear) !important;
  top: calc(var(--ls-safe-top) + var(--ls-edge) + (var(--ls-corner-h) - 52px) / 2) !important;
  width: auto !important;
  margin: 0 !important;
}
/* home: the page ends 16px under its last row of covers, the room its scroller keeps for their
   shadows (there was 84px of empty page below it: the flow's 60px, the page's 24px and the
   carousel's 12px under that 16px) */
:root .anime-app.anime-app.is-phone-landscape .home-editorial-flow {
  padding-bottom: var(--ls-safe-bottom) !important;
}
:root .anime-app.anime-app.is-phone-landscape .home-editorial-flow > .immersive-content-rail:last-child .immersive-content-rail-carousel {
  padding-bottom: 0 !important;
}
:root .anime-app.anime-app.is-phone-landscape main.app-main:has(> .home-editorial-flow),
:root .anime-app.anime-app.is-phone-landscape main.app-main:has(.home-editorial-flow) {
  padding-bottom: 0 !important;
}
/* list pages: six posters a row (five, 137px wide, made a 288px card that a 411px screen could
   not show whole under a heading), so a page's first row, poster and title, fits at once */
:root .anime-app.anime-app.is-phone-landscape .anime-grid, :root .anime-app.anime-app.is-phone-landscape .schedule-poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(104px, 100%), 1fr)) !important;
  gap: 16px 12px !important;
}
:root .anime-app.anime-app.is-phone-landscape .anime-grid .tile-copy { padding-top: 10px !important; }
/* favorites: the sort control matches the 40px pills beside it, and less air above the grid */
:root .anime-app.anime-app.is-phone-landscape .favorites-toolbar > label {
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 5px 0 12px !important;
  gap: 6px !important;
  font-size: 12px !important;
}
:root .anime-app.anime-app.is-phone-landscape .favorites-toolbar .glass-select-trigger {
  height: 30px !important;
  min-height: 0 !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}
/* one 12px step from the page's heading to a group's heading, and from that to its covers (the
   group's own 24px gap on top of the heading's margin made it 36px, three times the step above) */
:root .anime-app.anime-app.is-phone-landscape .favorites-page > .page-heading { margin-bottom: 12px !important; }
:root .anime-app.anime-app.is-phone-landscape .favorites-section { row-gap: 0 !important; gap: 0 !important; }
:root .anime-app.anime-app.is-phone-landscape .favorites-section-heading { margin: 0 0 12px !important; }
:root .anime-app.anime-app.is-phone-landscape .favorites-sections { row-gap: 28px !important; gap: 28px !important; }
/* at six a row the new-episode badge takes its compact form (新04集), as on narrow portrait
   cards, instead of cutting 新 · 第04集 short */
:root .anime-app.anime-app.is-phone-landscape .tile-latest-badge .tile-badge-full { display: none !important; }
:root .anime-app.anime-app.is-phone-landscape .tile-latest-badge .tile-badge-compact { display: inline !important; }
/* home carousels: the portrait cover-flow lights only the centre card and leaves the rest at 72%
   opacity, turned and shrunk. About 2.5 cards show upright; sideways six or seven do, so nearly
   the whole row sat greyed over the dark page. Here every card is flat and fully lit. */
:root .anime-app.anime-app.is-phone-landscape .immersive-content-rail-face {
  opacity: 1 !important;
  transform: none !important;
}
/* the rail's ends: the first and last lens sit as far from the rounded end as from the sides
   (the glass insets its lens 6.2% of the rail's width, about 4px), as on the tab bar; with the
   6px inset plus rounding the end gap was 7px and the turn looked loose */
:root .anime-app.anime-app.is-phone-landscape {
  --ls-rail-end: 4px;
}
@supports (top: round(down, 1.5px, 1px)) {
  :root .anime-app.anime-app.is-phone-landscape {
    --ls-tab: max(34px, round(down, calc((var(--ls-rail-h) - var(--ls-rail-end) * 2) / 5), 1px));
  }
  :root .anime-app.anime-app.is-phone-landscape .mobile-nav.liquid-navigation {
    padding-top: calc(var(--ls-rail-end) + round(down, calc((var(--ls-rail-h) - var(--ls-rail-end) * 2 - var(--ls-tab) * 5) / 2), 1px)) !important;
    padding-bottom: 0 !important;
  }
}
/* a work's page: its recommendations use the list pages' grid (six a row here; as many as fit) */
:root .anime-app.anime-app.is-phone-landscape .detail-recommendation-rail {
  grid-template-columns: repeat(auto-fill, minmax(min(104px, 100%), 1fr)) !important;
  gap: 16px 12px !important;
}
/* a work's page: the "集數" pointer at the foot of its first screen, centred under the page
   (detail-scroll-hint.js); it nudges down three times, then rests, and fades once the page moves */
.detail-scroll-hint { display: none; }
:root .anime-app.anime-app.is-phone-landscape .detail-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: fixed;
  z-index: 60;
  left: calc((var(--ls-left) + 100vw - var(--ls-right)) / 2);
  bottom: calc(var(--ls-safe-bottom) + 12px);
  transform: translateX(-50%);
  height: 34px;
  padding: 0 11px 0 14px;
  border-radius: 17px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(26 32 43 / 46%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  color: rgb(243 247 251 / 92%);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  transition: opacity .22s ease, translate .22s ease;
}
:root .anime-app.anime-app.is-phone-landscape .detail-scroll-hint svg {
  animation: aulama-hint-nudge 1.6s ease-in-out 3;
}
:root .anime-app.anime-app.is-phone-landscape .detail-scroll-hint.is-away {
  opacity: 0;
  translate: 0 8px;
  pointer-events: none;
}
@keyframes aulama-hint-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
/* ------------------------------------------------------------------ search, sideways
   The search field is the size of the corner capsule (50px) right under the status bar, the
   intro heading goes (the field asks the same), and recent searches and results use the list
   pages' grid: six a row here, so the first row shows whole, poster and title. The dialog sits
   outside the app, so the rail's variables are not available; its values are spelled out. */
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-header {
  margin-top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  height: 50px !important;
  min-height: 0 !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-input-wrap {
  height: 50px !important;
  min-height: 0 !important;
  padding: 0 10px 0 18px !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-input-wrap input {
  height: 48px !important;
  font-size: 16px !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-dialog-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-top-blur {
  height: calc(env(safe-area-inset-top, 0px) + 8px + 50px + 14px) !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-results {
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px + 50px + 10px) !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px) !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-intro { display: none !important; }
:root body:has(.anime-app.is-phone-landscape) .search-dialog .recent-searches > header {
  padding-bottom: 8px !important;
  min-height: 0 !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-result-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(104px, 100%), 1fr)) !important;
  gap: 16px 12px !important;
}
/* results: the heading at the list pages' group size (18px), so the first row clears the
   gesture bar */
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-result-collection > header {
  padding: 0 6px 8px !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
}
:root body:has(.anime-app.is-phone-landscape) .search-dialog .search-result-collection > header :is(h2, h3, strong, span:first-child) {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

/* home actions: sideways the base layer brings the play button down to 40px (42px in the
   featured block) but left the glass group beside it (details and bookmark) at 52px (44px),
   so the play button looked thinner than its neighbour. The group takes the button's height
   and its buttons fill it. */
:root .anime-app.anime-app.is-phone-landscape .immersive-content-rail-actions .feature-secondary-actions {
  height: 40px !important;
  min-height: 0 !important;
}
:root .anime-app.anime-app.is-phone-landscape .today-focus-copy .feature-actions .feature-secondary-actions {
  height: 42px !important;
  min-height: 0 !important;
}
:root .anime-app.anime-app.is-phone-landscape :is(.immersive-content-rail-actions, .today-focus-copy .feature-actions) .feature-secondary-actions button {
  height: 100% !important;
}

/* ================================================================== tablets, 2026-10-26
 * The list pages opened 51px below the header (62px below the logo), then left 32px under the
 * page title, 44px between a section's title and its covers and 68px between sections: on a
 * tablet's short landscape screen the first row of covers started half way down. The page
 * title now sits just under the header and every gap below it is one step of a 14-32px scale.
 * Touch shells 700px and wider; phones held sideways have their own layout above. */
@media (min-width: 700px) {
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .app-main > .page-section {
    padding-top: 16px !important;
  }
  /* the count (or sort) on the right is centred on the title, not dropped to its foot */
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .app-main > .page-section > .page-heading {
    margin-bottom: 20px !important;
    align-items: center !important;
  }
  /* history's title kept a 9px margin under it, so its row stood taller than the others' */
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .app-main > .page-section > .page-heading .page-heading-copy > h1:last-child {
    margin-bottom: 0 !important;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .favorites-sections {
    row-gap: 32px !important;
    gap: 32px !important;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .favorites-section {
    row-gap: 0 !important;
    gap: 0 !important;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .favorites-section-heading {
    margin: 0 0 14px !important;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .history-groups {
    row-gap: 32px !important;
    gap: 32px !important;
  }
  /* schedule: 22px over the all/favourites switch and 50px under it, down to 16px and 24px */
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .schedule-view-toolbar {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .schedule-poster-grid {
    padding-top: 12px !important;
  }
  /* the sort control was 57px tall beside a 42px title; now the title's height */
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .favorites-toolbar > label {
    height: 42px !important;
    min-height: 0 !important;
    padding: 0 6px 0 14px !important;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .favorites-toolbar .glass-select-trigger {
    height: 32px !important;
    min-height: 0 !important;
  }
}

/* ------------------------------------------------------------------ home loading, 2026-10-27
   The home page's placeholder drew fourteen shapes (a kicker, a caption, two title bars, three
   tags, four summary lines, a button and two round icons, the pager), each running its own
   sheen: bars of different widths flickered out of step. On phones the button row wrapped, the
   play button over an icon and the other icon on a line of its own. It now sketches the hero
   as it will look - a title, two lines of summary and the two buttons - and the shapes breathe
   together. */
:root .anime-app .route-loading-home .today-focus-kicker, :root .anime-app .route-loading-home .loading-caption, :root .anime-app .route-loading-home .loading-feature-meta, :root .anime-app .route-loading-home .loading-pagination {
  display: none !important;
}
:root .anime-app .route-loading-home .loading-feature-title > .loading-line:nth-child(n + 2),
:root .anime-app .route-loading-home .loading-feature-summary > .loading-line:nth-child(n + 3) {
  display: none !important;
}
:root .anime-app .route-loading-home .loading-feature-title > .loading-line { width: min(62%, 420px) !important; }
:root .anime-app .route-loading-home .loading-feature-summary { margin-block: 16px 20px !important; }
:root .anime-app .route-loading-home .loading-feature-summary > .loading-line:nth-child(1) { width: min(100%, 520px) !important; }
:root .anime-app .route-loading-home .loading-feature-summary > .loading-line:nth-child(2) { width: min(72%, 380px) !important; }
:root .anime-app .route-loading-home .loading-feature-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
/* the two buttons the hero will have: play, and details with its bookmark */
:root .anime-app .route-loading-home .loading-feature-actions > :is(span, i:first-of-type) {
  display: block !important;
  flex: 0 1 178px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 46px !important;
  border-radius: 999px !important;
}
:root .anime-app .route-loading-home .loading-feature-actions > i:last-of-type { display: none !important; }
:root .anime-app .route-loading-home .loading-shape {
  background: color-mix(in srgb, var(--text, #f3f7fb) 9%, transparent) !important;
  animation: aulama-home-loading 1.8s ease-in-out infinite both !important;
}
@keyframes aulama-home-loading {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :root .anime-app .route-loading-home .loading-shape { animation: none !important; opacity: .8; }
}

/* ================================================================== the website, 2026-10-27
 * Desktop and laptop windows (not touch screens): one left edge per page and one gap per kind
 * of break. Home had five left edges at 1440px (hero copy 83px, its pager's column 48px, the rails
 * 72px, the day's schedule heading 26px - left of the logo - and its day bar 101px), and they
 * drifted apart at other widths; now all follow the rails' clamp(28px, 5vw, 82px). Favorites put its
 * covers 44px under a section title where every other list uses 18px; the schedule left 50px
 * under its all/favourites switch where discover leaves 32px under its filters, and a work's
 * related titles sat closer together than covers anywhere else. */
@media (min-width: 900px) {
  /* home: everything on the rails' edge. The hero's copy sits in a box inset
     max(48px, (100vw - 1720px) / 2) from the screen; its margin makes up the rest. */
  :root .anime-app.anime-app:not(.is-touch-surface) .home-editorial-flow {
    --home-edge: clamp(28px, 5vw, 82px);
  }
  /* the pager's column is the copy's (same edge, same width), so centred it sits under the copy */
  :root .anime-app.anime-app:not(.is-touch-surface) .today-focus-copy, :root .anime-app.anime-app:not(.is-touch-surface) .today-focus-pagination {
    margin-left: calc(var(--home-edge) - max(48px, (100vw - 1720px) / 2)) !important;
  }
  :root .anime-app.anime-app:not(.is-touch-surface) .timeline-heading {
    width: auto !important;
    max-width: none !important;
    margin-inline: var(--home-edge) !important;
    padding-inline: 0 !important;
  }
  :root .anime-app.anime-app:not(.is-touch-surface) .timeline-heading h2 {
    font-size: 24px !important;
  }
  :root .anime-app.anime-app:not(.is-touch-surface) .day-selector-flow-slot > .day-selector-host > .day-selector,
  :root .anime-app.anime-app:not(.is-touch-surface) .home-editorial-flow .day-selector {
    width: auto !important;
    max-width: none !important;
    margin-inline: var(--home-edge) !important;
  }
  /* a section title sits 18px over what it names, everywhere */
  :root .anime-app.anime-app:not(.is-touch-surface) .favorites-section {
    row-gap: 0 !important;
    gap: 0 !important;
  }
  :root .anime-app.anime-app:not(.is-touch-surface) .favorites-section-heading {
    margin-bottom: 18px !important;
  }
  :root .anime-app.anime-app:not(.is-touch-surface) .history-group-heading {
    margin-bottom: 18px !important;
  }
  /* schedule: 32px from the switch to the covers, as from discover's filters to its covers */
  :root .anime-app.anime-app:not(.is-touch-surface) .schedule-view-toolbar {
    margin-bottom: 8px !important;
  }
  /* a work's related titles are spaced as every other grid of covers (22px across, 32px down;
     they had 16px and 26px) */
  :root .anime-app.anime-app:not(.is-touch-surface) .detail-recommendation-rail {
    column-gap: 22px !important;
    row-gap: 32px !important;
  }
  /* a page title's count reads on the title's line */
  :root .anime-app.anime-app:not(.is-touch-surface) .app-main > .page-section > .page-heading {
    align-items: baseline !important;
  }
}

/* A player settings card (Anime4K, speed) lifts the player above the page so the card can reach
   past it; the player's light rose with it and covered the details beside the player. Held
   sideways the card stays inside the player, so the details stay above the light. (Upright, a
   card may reach down over the details, so the player keeps its lift there.) */
@media (orientation: landscape) {
  :root .anime-app.anime-app.is-touch-surface .watch-stage-grid:has(> .watch-player-frame .player-settings) > .watch-details-column {
    z-index: 91;
  }
}

/* After YouTube's flat chips: no grey hairline round any pill, round control or glass surface,
   anywhere in the app; each is drawn by its fill alone. Glass surfaces keep their blur and
   refraction and their drop shadow, without the lit rim lines. Coloured edges (ratings, "new"
   badges) stay. (Doubled classes outrank the glass's own !important border.) */
:root:root .anime-app.anime-app.anime-app :is(.shared-liquid-glass, .header-actions-pill, .feature-secondary-actions,
  .feature-secondary-actions > *, .secondary-button, .primary-button, .icon-button, .history-poster-play, .glass-select-trigger,
  .favorites-toolbar > label, .schedule-poster-media > time, .player-center-play, .player-time-summary, .player-speed-control,
  .community-mobile-entry, .player-control-tools, .player-upper-capsule, .player-ambient-menu, .player-context-menu,
  .player-context-toast) {
  border-color: transparent !important;
}
:root:root .anime-app.anime-app.anime-app .shared-liquid-glass { box-shadow: 0 3px 9px rgb(0 0 0 / 16%) !important; }
:root:root .anime-app.anime-app.anime-app .mobile-nav.liquid-navigation::before { box-shadow: none !important; }
:root:root .anime-app.anime-app.anime-app .mobile-nav.liquid-navigation::after {
  border-color: transparent !important; box-shadow: inset 0 0 18px rgb(255 255 255 / 3%) !important;
}
:root:root .anime-app.anime-app.anime-app .liquid-nav-lens::after { border-color: transparent !important; }
:root .anime-app.anime-app .header-actions-pill.shared-liquid-glass { background: rgb(26 32 43 / 34%) !important; }
:root .anime-app.anime-app .player-shell :is(.player-time-summary, .player-speed-control, .community-mobile-entry,
  .player-control-tools, .player-upper-capsule, .player-center-play) {
  background: rgb(0 0 0 / 38%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15) !important; backdrop-filter: blur(12px) saturate(1.15) !important;
  box-shadow: none !important;
}

/* Player setting cards (playback speed, Anime4K), app and site: the slider is the card. One
   capsule row in the same dark glass: the setting's icon, the thick slider, the current value, a
   close. Titles stay for screen readers; range words, explanations and notes are gone, except an
   error, which takes a second row. */
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  grid-template-areas: "mark slider value close" "note note note note" !important;
  align-items: center !important;
  column-gap: 10px !important; row-gap: 0 !important;
  padding: 4px 6px 4px 12px !important;
  border: 0 !important; border-radius: 999px !important;
  background: rgb(14 14 16 / 72%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important; backdrop-filter: blur(18px) saturate(1.2) !important;
  box-shadow: 0 10px 28px rgb(0 0 0 / 30%) !important;
  height: auto !important; min-height: 0 !important; max-height: none !important;
  width: clamp(250px, 48%, 340px) !important; max-width: calc(100% - 16px) !important;
}
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel)::before,
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel)::after { display: none !important; }
:root .anime-app.anime-app .player-shell:is(.is-fullscreen, .is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) {
  width: 380px !important;
}
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) :is(header, .player-speed-slider-copy, .anime4k-level-control) {
  display: contents !important;
}
/* The icon, drawn anew: a solid gauge for speed, a sparkle for Anime4K (in its cyan-violet). The
   old line icon, the 4K badge and the title are hidden; the title is still read. */
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header > div {
  grid-area: mark !important; display: block !important; position: relative !important;
  width: 24px !important; height: 24px !important; min-width: 24px !important; margin: 0 !important;
}
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header > div > :is(svg, .anime4k-mark) { display: none !important; }
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header strong {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header > div::before {
  content: "" !important; position: absolute !important; inset: 0 !important;
  -webkit-mask: var(--aulama-card-icon) center / contain no-repeat !important; mask: var(--aulama-card-icon) center / contain no-repeat !important;
}
:root .anime-app.anime-app .player-shell .player-settings.player-speed-panel > header > div::before {
  --aulama-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 17.2A8.6 8.6 0 1 1 19.4 17.2' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M12 14.2l4.3-5' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='14.2' r='2.3'/%3E%3C/svg%3E");
  background: rgb(246 248 251) !important;
}
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel > header > div::before {
  --aulama-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.4 2.6c.6 4.6 3 7 7.6 7.6-4.6.6-7 3-7.6 7.6-.6-4.6-3-7-7.6-7.6 4.6-.6 7-3 7.6-7.6z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M18.2 14.6c.3 2.1 1.3 3.1 3.4 3.4-2.1.3-3.1 1.3-3.4 3.4-.3-2.1-1.3-3.1-3.4-3.4 2.1-.3 3.1-1.3 3.4-3.4z' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  background: linear-gradient(135deg, #8fe6ff 10%, #a78bfa 90%) !important;
}
/* The thick slider, unchanged, fills the row. */
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range {
  grid-area: slider !important; margin: 0 !important; min-width: 0 !important;
}
/* The value: the speed, or the Anime4K level. */
:root .anime-app.anime-app .player-shell .player-settings.player-speed-panel .player-speed-slider-copy > span { display: none !important; }
:root .anime-app.anime-app .player-shell .player-settings.player-speed-panel .player-speed-slider-copy > output,
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel .anime4k-level-labels {
  grid-area: value !important; min-width: 42px !important; margin: 0 !important; text-align: center !important;
  font-size: 16px !important; font-weight: 800 !important; line-height: 1 !important; color: rgb(246 248 251) !important;
  font-variant-numeric: tabular-nums !important;
}
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel .anime4k-level-labels {
  display: flex !important; justify-content: center !important; height: auto !important; min-height: 0 !important;
}
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel .anime4k-level-labels span { display: none !important; }
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel .anime4k-level-labels span.is-active {
  display: block !important; position: static !important; left: auto !important; transform: none !important;
  font-size: 14px !important; font-weight: 800 !important; color: inherit !important; white-space: nowrap !important;
}
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel .anime4k-level-control.is-active .anime4k-level-labels { color: rgb(161 223 255) !important; }
/* Close: a bold cross in a dark circle, like the rest of the controls. */
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header > button {
  grid-area: close !important; position: relative !important;
  width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important;
  border: 0 !important; border-radius: 50% !important; padding: 0 !important; box-shadow: none !important;
  background: rgb(255 255 255 / 10%) !important; color: transparent !important;
}
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header > button svg { display: none !important; }
:root .anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) > header > button::after {
  content: "" !important; position: absolute !important; inset: 8px !important; background: rgb(236 240 246 / 86%) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 2.5l9 9M11.5 2.5l-9 9' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 2.5l9 9M11.5 2.5l-9 9' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
/* No paragraphs, except an error, under the row. */
:root .anime-app.anime-app .player-shell .player-settings.player-speed-panel > p,
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel > p:not(.is-error) { display: none !important; }
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel > p.is-error {
  grid-area: note !important; display: flex !important; align-items: center !important; gap: 6px !important;
  margin: 2px 4px 8px !important; font-size: 11px !important; line-height: 1.35 !important; color: rgb(255 150 160) !important;
}
:root .anime-app.anime-app .player-shell .player-settings.anime4k-panel > p.is-error svg { width: 13px !important; height: 13px !important; flex: none !important; }
/* A phone held upright: the player is a strip, so the capsule lies along its foot, above the controls. */
@media (max-width: 699px) and (orientation: portrait) {
  :root .anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) {
    left: 8px !important; right: 8px !important; top: auto !important; bottom: 50px !important;
    width: auto !important; max-width: none !important;
  }
}
/* Episode cards: no outline; the fill tells them apart. A plain episode is a faint chip, the one
   playing a brighter one (its gradient ring is gone); watched (green) and progress stay. */
:root:root .anime-app.anime-app.anime-app .episode-battery .episode-battery-body {
  box-shadow: none !important; border-color: transparent !important; background: rgb(244 246 250 / 8%) !important;
}
:root:root .anime-app.anime-app.anime-app .episode-battery.is-active .episode-battery-body { background: rgb(244 246 250 / 18%) !important; }
:root:root .anime-app.anime-app.anime-app .episode-battery .episode-battery-body::after { display: none !important; }

/* Share and favourite beside the rating: one icon size. (A touch-page rule shrank only the
   bookmark to 16px, beside a 24px share arrow.) */
:root:root .anime-app.anime-app.anime-app .watch-rating-actions > button > svg { width: 22px !important; height: 22px !important; }

/* Favourite, felt at once: the button gives under the finger and springs back. */
:root .anime-app.anime-app .favorite-save-action {
  transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1), background-color 260ms ease, color 260ms ease !important;
}
:root .anime-app.anime-app .favorite-save-action:active { transform: scale(.9) !important; transition-duration: 110ms !important; }
/* Saved (while the app's sparkle layer is in the button): the bookmark pops, a pink glow blooms
   from its centre, a ring spreads past the button's edge, and the stars burst three ways. */
:root .anime-app.anime-app .favorite-save-action:has(> .favorite-save-sparkles) > svg {
  animation: aulama-favorite-pop 560ms cubic-bezier(.2, .9, .3, 1.25) both;
}
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles { border-radius: inherit; overflow: visible; }
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles::before,
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles::before {
  background: radial-gradient(closest-side, rgb(255 150 190 / 55%), rgb(255 150 190 / 0%));
  animation: aulama-favorite-bloom 520ms ease-out both;
}
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles::after {
  box-shadow: 0 0 0 2px rgb(255 160 198 / 85%);
  animation: aulama-favorite-ring 600ms cubic-bezier(.2, .7, .3, 1) both;
}
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles > i {
  top: calc(50% - 4px) !important; left: calc(50% - 4px) !important;
  animation: aulama-favorite-star 640ms cubic-bezier(.2, .8, .3, 1) both !important;
}
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles > i:nth-child(1) { --star-x: -22px; --star-y: -16px; animation-delay: 60ms !important; }
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles > i:nth-child(2) { --star-x: 2px; --star-y: -28px; animation-delay: 90ms !important; }
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles > i:nth-child(3) { --star-x: 24px; --star-y: -12px; animation-delay: 120ms !important; }
@keyframes aulama-favorite-pop {
  0% { transform: scale(.62) rotate(-14deg); }
  42% { transform: scale(1.24) rotate(6deg); }
  68% { transform: scale(.94) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes aulama-favorite-bloom {
  0% { opacity: 0; transform: scale(.3); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1); }
}
@keyframes aulama-favorite-ring {
  0% { opacity: .9; transform: scale(.86); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes aulama-favorite-star {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(-20deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--star-x), var(--star-y)) scale(1) rotate(24deg); }
}
@media (prefers-reduced-motion: reduce) {
  :root .anime-app.anime-app .favorite-save-action, :root .anime-app.anime-app .favorite-save-action:active { transition: none !important; transform: none !important; }
  :root .anime-app.anime-app .favorite-save-action:has(> .favorite-save-sparkles) > svg { animation: none; }
}
/* A saved title shows a solid bookmark everywhere, not a bookmark with a tick; on saving, it fills
   as it pops. */
:root .anime-app.anime-app svg.lucide-bookmark-check > path:first-child { fill: currentColor !important; }
:root .anime-app.anime-app svg.lucide-bookmark-check > path:nth-child(2) { display: none !important; }
:root .anime-app.anime-app .favorite-save-action:has(> .favorite-save-sparkles) svg.lucide-bookmark-check > path:first-child {
  animation: aulama-favorite-fill 420ms ease-out both;
}
@keyframes aulama-favorite-fill { 0% { fill-opacity: 0; } 100% { fill-opacity: 1; } }

/* The synopsis reads as supporting text: in the narrow details column a block of 16px white
   outweighed the title and facts above it. */
:root:not([data-theme="light"]) .anime-app.anime-app .anime-work-synopsis > p { color: rgb(229 235 243 / 80%) !important; }
:root .anime-app.anime-app .anime-work-synopsis > p { font-size: 15px !important; line-height: 1.75 !important; font-weight: 400 !important; }
:root .anime-app.anime-app.is-touch-surface .anime-work-synopsis > p { font-size: 14px !important; }
:root .anime-app.anime-app .anime-work-synopsis > h3 { font-size: 13px !important; letter-spacing: .02em !important; opacity: .72 !important; }

/* Setting capsules: the icon and the close button sit concentric with the capsule's rounded ends. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) {
  padding-left: 20px !important; padding-right: 17px !important;
}
/* The slider, redrawn from scratch: bar, fill and knob are all placed from the same
   --range-fraction, so the fill ends under the knob at every step (the old fill and knob used
   different formulas and parted near the top end). Bar 16px, knob 26px, steps as small dots on
   the knob's own path, colours from --range-level-color, in the same 56px touch row. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range {
  --knob: 26px; --bar: 16px; --level: var(--range-level-color, #b9e66b); position: relative !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::before,
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::after {
  content: "" !important; position: absolute !important; pointer-events: none !important;
  top: calc(50% - var(--bar) / 2) !important; bottom: auto !important; height: var(--bar) !important;
  left: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important;
  transform: none !important; box-shadow: none !important; opacity: 1 !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::before {
  right: 0 !important; width: auto !important; background: rgb(255 255 255 / 13%) !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::after {
  right: auto !important;
  width: calc(var(--knob) / 2 + var(--range-fraction, 0) * (100% - var(--knob)) + var(--bar) / 2) !important;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--level) 55%, transparent), color-mix(in srgb, var(--level) 92%, transparent)) !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-thumb {
  position: absolute !important; pointer-events: none !important;
  top: calc(50% - var(--knob) / 2) !important; bottom: auto !important; right: auto !important;
  left: calc(var(--range-fraction, 0) * (100% - var(--knob))) !important;
  width: var(--knob) !important; height: var(--knob) !important; margin: 0 !important;
  transform: none !important; border: 0 !important; border-radius: 50% !important;
  background: rgb(246 248 251) !important; box-shadow: 0 2px 8px rgb(0 0 0 / 35%) !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-stops {
  position: absolute !important; display: flex !important; justify-content: space-between !important; align-items: center !important;
  left: calc(var(--knob) / 2 - 2px) !important; right: calc(var(--knob) / 2 - 2px) !important;
  top: calc(50% - 2px) !important; bottom: auto !important; height: 4px !important; pointer-events: none !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-stops > i {
  position: static !important; width: 4px !important; height: 4px !important; margin: 0 !important; border-radius: 50% !important;
  background: rgb(255 255 255 / 34%) !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-stops > i.is-active {
  background: rgb(255 255 255 / 70%) !important;
}
/* Steps sit on the bar's centre line (the old stops were lifted 2px). The fill runs light to deep
   towards the knob, in the step's own colour. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-stops {
  transform: none !important; translate: none !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::after {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--level) 45%, white) 0%, var(--level) 62%, color-mix(in srgb, var(--level) 72%, black) 100%) !important;
}
/* The Anime4K icon says 4K: the letters in a rounded screen, in the cyan-violet of the feature. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings.anime4k-panel > header > div::before {
  --aulama-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.8' y='4.8' width='20.4' height='14.4' rx='4' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M9.1 15.8V8.2L5.2 13.4H10.6M13.4 8.2V15.8M18.4 8.2L13.6 12.3L18.6 15.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Beside the page (not fullscreen) both setting capsules are drawn about 18% smaller, in
   proportion: 52px tall, icon 20px, bar 13px, knob 22px, value 14px, close 26px; the icon and the
   close button stay concentric with the ends. Fullscreen keeps the full size. */
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) {
  width: clamp(220px, 40%, 280px) !important;
  padding: 3px 13px 3px 16px !important; column-gap: 8px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range {
  --knob: 22px; --bar: 13px; height: 46px !important; min-height: 46px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range input {
  height: 46px !important; min-height: 46px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-stops > i {
  width: 3.5px !important; height: 3.5px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) > header > div {
  width: 20px !important; height: 20px !important; min-width: 20px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings.player-speed-panel .player-speed-slider-copy > output {
  font-size: 14px !important; min-width: 36px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings.anime4k-panel .anime4k-level-labels {
  min-width: 36px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings.anime4k-panel .anime4k-level-labels span.is-active {
  font-size: 12.5px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) > header > button {
  width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings:is(.player-speed-panel, .anime4k-panel) > header > button::after {
  inset: 7px !important;
}

/* Setting capsules: the fill sparkles (longhand backgrounds only: an !important position would hold
   the drift still). Three sparse layers of small light points (sharp, soft-glowing,
   faint) stream leftwards at their own speeds inside the fill, anchored to its left end so they stay put as
   it grows, and a faint light sweeps along it; all background layers of the one fill, so a step
   change repaints only the bar. Still for reduced motion. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::after {
  background-image:
    radial-gradient(circle at 34% 36%, rgb(255 255 255 / 85%) 0 .7px, rgb(255 255 255 / 0%) 1.3px),
    radial-gradient(circle at 62% 68%, rgb(255 255 255 / 65%) 0 .9px, rgb(255 255 255 / 18%) 1.5px, rgb(255 255 255 / 0%) 2.4px),
    radial-gradient(circle at 20% 24%, rgb(255 255 255 / 50%) 0 .5px, rgb(255 255 255 / 0%) 1px),
    linear-gradient(100deg, rgb(255 255 255 / 0%) 40%, rgb(255 255 255 / 14%) 50%, rgb(255 255 255 / 0%) 60%),
    linear-gradient(90deg, color-mix(in srgb, var(--level) 45%, white) 0%, var(--level) 62%, color-mix(in srgb, var(--level) 72%, black) 100%) !important;
  background-color: transparent !important;
  background-size: 37px 100%, 61px 100%, 89px 100%, 220px 100%, 100% 100% !important;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat, no-repeat !important;
  animation: aulama-slider-particles 1.2s linear infinite !important;
}
/* A few points, sparsely spaced (one per 37, 61 and 89px), all streaming left, nearer ones faster
   (51-74px a second); each moves whole tiles per loop so it never jumps; the sweep runs left too. */
@keyframes aulama-slider-particles {
  from { background-position: 0 0, 0 0, 0 0, 320px 0, 0 0; }
  to { background-position: -74px 0, -61px 0, -89px 0, -220px 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-stepped-range::after { animation: none !important; }
}
/* Steps already filled are not marked: the coloured part shows only its own light. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel) .player-range-stops > i.is-active {
  opacity: 0 !important;
}

/* The Anime4K icon as a 4K badge: a solid cyan-violet plate with bold "4K" cut out of it (the
   letters subtract from the plate's mask), as streaming apps mark 4K. */
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings.anime4k-panel > header > div {
  width: 30px !important; min-width: 30px !important; height: 20px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell:not(.is-fullscreen):not(.is-pseudo-fullscreen) .player-settings.anime4k-panel > header > div {
  width: 26px !important; min-width: 26px !important; height: 17px !important;
}
:root:root .anime-app.anime-app.anime-app .player-shell .player-settings.anime4k-panel > header > div::before {
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M12.4 15.2V4.8L6.4 12.1H14.1M17.4 4.8V15.2M24 4.8L17.7 10.3L24.3 15.2' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' rx='5.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  -webkit-mask-composite: xor !important;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M12.4 15.2V4.8L6.4 12.1H14.1M17.4 4.8V15.2M24 4.8L17.7 10.3L24.3 15.2' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat exclude,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' rx='5.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  background: linear-gradient(120deg, #7fe1ff 0%, #8fa6ff 50%, #b48cff 100%) !important;
}

/* No grey edges, second pass: everything the edge scan still found. Posters, thumbnails,
   skeletons and the filter panel lose their hairline border; buttons lose the light line
   along their top (the old glass highlight); the avatar and the home hero art lose their
   ring. Borders keep their width, so nothing moves. */
:root:root .anime-app.anime-app.anime-app :is(.account-avatar, .history-poster, .tile-poster, .schedule-poster-media,
  .discover-filters, .filter-row, .loading-shape) {
  border-color: transparent !important;
}
:root:root .anime-app.anime-app.anime-app :is(.today-focus-art-main, .secondary-button, .immersive-content-rail-navigation button,
  .favorites-toolbar label, .history-show-more) {
  box-shadow: none !important;
}
/* The account menu (it opens outside the app's own tree) and the mini player keep only their
   soft drop shadow. */
:root:root:root .account-menu.account-menu { border-color: transparent !important; box-shadow: 0 3px 9px rgb(0 0 0 / 16%) !important; }
:root:root:root .account-menu-row.account-menu-row { box-shadow: none !important; }
:root:root .anime-app.anime-app.anime-app .app-main.persistent-watch.is-mini { box-shadow: 0 12px 32px rgb(0 0 0 / 38%) !important; }

/* Episode cards: the one now playing has an aurora flowing through its number. The card still
   fills with how much has been watched, as before. Past the fill the aurora is light; over the
   white fill the same aurora runs in deep tones, in step, so the whole number shimmers.
   The glyphs are see-through, so the dark text shadow the page adds while the glow is on would
   show through them as a grey veil; it is dropped, and a soft shadow is cast behind the number. */
@keyframes aulama-episode-aurora { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
:root:root .anime-app.anime-app.anime-app .episode-battery.is-active :is(.episode-battery-body > .episode-battery-label, .episode-battery-ink .episode-battery-label) {
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  animation: aulama-episode-aurora 4s linear infinite !important;
}
:root:root .anime-app.anime-app.anime-app .episode-battery.is-active .episode-battery-body > .episode-battery-label {
  background-image: linear-gradient(90deg, #a8ecff, #9ff7d3, #cdb6ff, #ffc0e2, #a8ecff) !important;
  filter: drop-shadow(0 1px 2px rgb(2 5 11 / 45%));
}
:root:root .anime-app.anime-app.anime-app .episode-battery.is-active .episode-battery-ink .episode-battery-label {
  background-image: linear-gradient(90deg, #0a6fa3, #08865c, #5b34c4, #b0237a, #0a6fa3) !important;
}
@media (prefers-reduced-motion: reduce) {
  :root:root .anime-app.anime-app.anime-app .episode-battery.is-active :is(.episode-battery-body > .episode-battery-label, .episode-battery-ink .episode-battery-label) { animation: none !important; background-position: 30% 50% !important; }
}

/* Everything that pops up arrives the same way: it fades in while growing from just under its
   size and settling a few pixels, on a soft spring. The motion uses the separate scale and
   translate properties, so each card's own positioning transform is left alone. Backdrops only
   fade. The account menu and the post-watch card keep their own entrances. */
@keyframes aulama-pop-in { from { opacity: 0; scale: 0.92; translate: 0 10px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes aulama-fade-in { from { opacity: 0; } to { opacity: 1; } }
:root:root:root :is(.anime-share-dialog, .glass-select-popup:not(.is-closing), .segment-scope-picker > div, .segment-episode-picker,
  .player-ambient-menu, .player-context-menu, .history-overflow-menu, .favorite-removal-dialog, .history-confirm-dialog,
  .artwork-editor-dialog, .native-pairing-card, .search-dialog, .player-settings-popover, .account-popover, .player-warning-card,
  .anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel)) {
  animation: aulama-pop-in 380ms cubic-bezier(0.2, 1.25, 0.32, 1) both !important;
}
:root:root:root :is(.history-overflow-menu, .glass-select-popup, .player-context-menu, .segment-scope-picker > div) { transform-origin: 50% 0% !important; }
:root:root:root :is(.modal-backdrop, .player-warning-backdrop) { animation: aulama-fade-in 240ms ease-out both !important; }
@media (prefers-reduced-motion: reduce) {
  :root:root:root :is(.anime-share-dialog, .glass-select-popup:not(.is-closing), .segment-scope-picker > div, .segment-episode-picker,
    .player-ambient-menu, .player-context-menu, .history-overflow-menu, .favorite-removal-dialog, .history-confirm-dialog,
    .artwork-editor-dialog, .native-pairing-card, .search-dialog, .player-settings-popover, .account-popover, .player-warning-card,
    .anime-app .player-shell .player-settings:is(.player-speed-panel, .anime4k-panel)) { animation: aulama-fade-in 200ms ease-out both !important; }
}

/* The Anime4K notice ("啟用前請留意裝置負載") was one tall card, about 530px, so in a player that
   is not full screen, above all on a phone, it had to be scrolled to reach its buttons. It now
   follows the room the player gives it: with room to spare it is the full card; in a shorter
   player it becomes compact (icon beside the title, smaller type, the two pictures as a low
   strip, buttons in one row); shorter still, the pictures go; in the smallest players the icon
   goes too and the type tightens, so title, note and both buttons always fit without scrolling.
   It drops the grey edge and top highlight like the other player cards. */
:root .anime-app.anime-app .player-shell.player-shell .player-warning-backdrop {
  container: aulama-warning / size;
  padding: clamp(8px, 3%, 20px);
}
:root:root:root .anime-app.anime-app .player-shell.player-shell .player-warning-card {
  border-color: transparent;
  box-shadow: 0 14px 44px rgb(0 0 0 / 30%);
}

@container aulama-warning (max-height: 540px) {
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card {
    width: min(420px, 100%);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 16px 18px;
    border-radius: 22px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > .warning-icon {
    grid-column: 1;
    grid-row: 1;
    width: 30px;
    height: 30px;
    min-width: 0;
    min-height: 0;
    border-radius: 999px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > .warning-icon svg {
    width: 16px;
    height: 16px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > :not(.warning-icon, h2) {
    grid-column: 1 / -1;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
  }
  :root .anime-app.anime-app .player-shell.player-shell .anime4k-warning-example {
    width: 100%;
    margin-top: 10px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .anime4k-warning-images {
    border-radius: 12px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .anime4k-warning-images img {
    height: clamp(64px, calc(100cqh - 290px), 150px);
    object-fit: cover;
  }
  :root .anime-app.anime-app .player-shell.player-shell .anime4k-warning-example figcaption {
    display: none;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > div:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > div:last-child > button {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
  }
}

@container aulama-warning (max-height: 340px) {
  :root .anime-app.anime-app .player-shell.player-shell .anime4k-warning-example {
    display: none;
  }
}

@container aulama-warning (max-height: 250px) {
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card {
    padding: 12px 14px;
    border-radius: 18px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > .warning-icon {
    display: none;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > h2 {
    grid-column: 1 / -1;
    font-size: 15px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > div:last-child {
    margin-top: 10px;
  }
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > div:last-child > button {
    min-height: 32px;
  }
}

/* Narrow players share the row between the two buttons. */
@container aulama-warning (max-width: 380px) {
  :root .anime-app.anime-app .player-shell.player-shell .player-warning-card > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Related titles under the player use the same title as every other card: two lines, and on a
   touch screen a second line that does not fit loops sideways instead of ending in "…". Type and
   the shadow over the glow match the plain title it replaces. */
:root .anime-app.anime-app .watch-related-catalog .watch-related-card > strong.anime-title-ticker {
  width: 100%;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: start;
}
:root:not([data-theme="light"]) .anime-app.anime-app .watch-page[data-edge-ambient="true"] .watch-related-catalog .watch-related-card > strong.anime-title-ticker {
  text-shadow: none;
  filter: drop-shadow(rgba(2, 5, 11, 0.58) 0 1px 1px) drop-shadow(rgba(2, 5, 11, 0.32) 0 2px 3px);
}
@media (hover: hover) and (pointer: fine) {
  :root .anime-app.anime-app .watch-related-catalog .watch-related-card:is(:hover, :focus-visible, :has(:focus-visible)) > strong.anime-title-ticker {
    color: var(--accent-pink, #f28cb9);
  }
}

/* A player settings card (Anime4K, speed) lifts the player over the header; the player's light
   rose with it and covered the logo, search and avatar. The header now stays above the light
   while a card is open (sideways on a phone it already sits higher). */
:root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape):has(.watch-player-frame .player-settings) > .app-header-shell {
  z-index: 91;
}

/* Now-playing episode number: over the white fill the aurora ran in deep tones that read as
   near black, so it now runs in vivid mid tones and the whole number shimmers in colour. */
:root:root .anime-app.anime-app.anime-app .episode-battery.is-active .episode-battery-ink .episode-battery-label {
  background-image: linear-gradient(90deg, #0b9be0, #0fb27e, #8a5cf5, #e8479a, #0b9be0) !important;
}

/* Player icons share one bold weight. They were drawn at different strokes (1.7 to 2) beside a
   heavy "4K", so some looked thin and the row looked uneven. Every player icon now uses the same
   heavy stroke; the intro/outro, danmaku and cast icons are redrawn in that weight, and the
   intro/outro and cast cards carry the same icon as the button that opens them. Share keeps its
   own forward arrow, drawn in the same heavy stroke. */
:root .anime-app.anime-app :is(.player-shell :is(.player-control-row, .player-center-controls, .player-embedded-cast, .player-embedded-playlist, .player-header-actions, .player-orientation-toggle, .player-cast-panel, .player-settings > header, .player-episode-panel > header), .player-segment-panel > header) svg {
  stroke-width: 2.5;
}
:root .anime-app.anime-app .player-shell .player-speed-control {
  --touch-icon-size: 17px;
}
:root .anime-app.anime-app .player-shell .player-speed-control svg.player-speed-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.75;
}
:root .anime-app.anime-app .player-shell .player-control-tools {
  --touch-icon-size: 23px;
}
:root .anime-app.anime-app .player-shell .player-control-tools :is(button.icon-button, .anime-share-trigger.is-player-share) > svg {
  flex: none;
  width: 23px;
  height: 23px;
}
:root .anime-app.anime-app .player-shell .player-control-tools .anime-share-trigger.is-player-share {
  padding: 0;
}
:root .anime-app.anime-app .player-shell .player-control-row .community-mobile-entry {
  --touch-icon-size: 20px;
}
:root .anime-app.anime-app .player-shell .player-control-row .community-mobile-entry > svg {
  width: 20px;
  height: 20px;
}
:root .anime-app.anime-app .player-shell .anime4k-control > strong {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
:root .anime-app.anime-app .player-shell :is(.player-speed-control > strong, .player-time-summary) {
  font-weight: 800;
}

/* Redrawn icons are painted from a mask in the button's own colour. */
:root .anime-app.anime-app :is(.player-shell .player-segment-entry > svg, .player-segment-panel > header > div > svg) { --aulama-player-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M7.5%203.5H6A3%203%200%200%200%203%206.5v11a3%203%200%200%200%203%203h1.5M16.5%203.5H18a3%203%200%200%201%203%203v11a3%203%200%200%201-3%203h-1.5%22%2F%3E%3Cpath%20d%3D%22M8.4%208.4v7.2a.9.9%200%200%200%201.37.77l5.4-3.6a.9.9%200%200%200%200-1.54l-5.4-3.6a.9.9%200%200%200-1.37.77z%22%2F%3E%3C%2Fsvg%3E"); }
:root .anime-app.anime-app .player-shell .player-control-row .community-mobile-entry > svg { --aulama-player-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M6.5%204h11A3.5%203.5%200%200%201%2021%207.5v6a3.5%203.5%200%200%201-3.5%203.5H13l-4.5%203.5V17h-2A3.5%203.5%200%200%201%203%2013.5v-6A3.5%203.5%200%200%201%206.5%204z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M8%209h8M8%2012.5h5%22%2F%3E%3C%2Fsvg%3E"); }
:root .anime-app.anime-app .player-shell :is(.player-embedded-cast > svg, .player-header-actions svg.lucide-cast, .player-cast-panel > header svg.lucide-cast) { --aulama-player-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M3%208V6.5A2.5%202.5%200%200%201%205.5%204h13A2.5%202.5%200%200%201%2021%206.5v11a2.5%202.5%200%200%201-2.5%202.5H14%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M3%2012a8%208%200%200%201%208%208M3%2016a4%204%200%200%201%204%204%22%2F%3E%3Ccircle%20cx%3D%223.6%22%20cy%3D%2219.4%22%20r%3D%221.6%22%2F%3E%3C%2Fsvg%3E"); }
:root .anime-app.anime-app .player-shell .player-cast-panel :is(.cast-empty, .cast-target-list) svg.lucide-tv { --aulama-player-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%223%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22m8.5%202.5%203.5%203.5%203.5-3.5%22%2F%3E%3C%2Fsvg%3E"); }
:root .anime-app.anime-app :is(.player-shell .player-segment-entry > svg, .player-segment-panel > header > div > svg, .player-shell .player-control-row .community-mobile-entry > svg, .player-shell .player-embedded-cast > svg, .player-shell .player-header-actions svg.lucide-cast, .player-shell .player-cast-panel > header svg.lucide-cast, .player-shell .player-cast-panel :is(.cast-empty, .cast-target-list) svg.lucide-tv) {
  background: currentColor;
  -webkit-mask: var(--aulama-player-icon) center / contain no-repeat;
  mask: var(--aulama-player-icon) center / contain no-repeat;
}
:root .anime-app.anime-app :is(.player-shell .player-segment-entry > svg, .player-segment-panel > header > div > svg, .player-shell .player-control-row .community-mobile-entry > svg, .player-shell .player-embedded-cast > svg, .player-shell .player-header-actions svg.lucide-cast, .player-shell .player-cast-panel > header svg.lucide-cast, .player-shell .player-cast-panel :is(.cast-empty, .cast-target-list) svg.lucide-tv) > * {
  display: none;
}

/* Cast card (投放到電視): one clear title row, the note under it, and the TVs, or the empty
   state, in a soft inset block; each TV is a row with its icon in a round chip. */
:root:root .anime-app.anime-app .player-shell .player-cast-panel {
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel > header > div {
  gap: 10px;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel > header svg.lucide-cast {
  width: 22px;
  height: 22px;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel > header strong {
  font-size: 17px;
  font-weight: 800;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel > header > .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel > p {
  margin: -4px 0 0;
  text-wrap: pretty;
  color: rgb(255 255 255 / 64%);
  font-size: 13px;
  line-height: 1.6;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 6%);
  text-align: center;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  color: #9fd8ff;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-empty strong {
  font-size: 15px;
  font-weight: 800;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-empty span {
  max-width: 30ch;
  text-wrap: balance;
  color: rgb(255 255 255 / 60%);
  font-size: 12.5px;
  line-height: 1.6;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list {
  display: grid;
  gap: 8px;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list > button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-radius: 18px;
  background: rgb(255 255 255 / 7%);
  color: inherit;
  text-align: start;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list > button > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list > button > span:first-child svg {
  width: 21px;
  height: 21px;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list strong {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-target-list small {
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
}
:root:root .anime-app.anime-app .player-shell .player-cast-panel .cast-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 7%);
  font-size: 13px;
}

/* Intro/outro card (片頭片尾): what is being edited sits in one summary block; intro and outro
   are matching blocks, each with its title, the suggested length and the "none" choice on one
   line and a row per time (label, time, 目前); save and the advanced link share the last line.
   The card stays about as tall as before so it still fits beside the player. */
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel > header strong {
  font-size: 17px;
  font-weight: 800;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel > header > div > svg {
  width: 22px;
  height: 22px;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor {
  display: grid;
  gap: 12px !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
  padding: 10px 14px 0;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: rgb(255 255 255 / 6%);
  font-size: 12px !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-status > span:last-child {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
  color: rgb(255 255 255 / 72%);
  font-size: 11.5px;
  font-weight: 700;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-status strong {
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-context {
  margin: -12px 0 0 !important;
  padding: 2px 14px 10px;
  border-radius: 0 0 16px 16px;
  background: rgb(255 255 255 / 6%);
  font-size: 13px !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-context strong {
  font-size: 13px !important;
  font-weight: 750;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-grid {
  display: grid;
  gap: 10px;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-range-group {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "title hint clear" "fields fields fields";
  align-items: center;
  gap: 8px 10px;
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  border: 0 !important;
  border-radius: 18px;
  background: rgb(255 255 255 / 5%) !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-range-group > legend {
  float: left;
  grid-area: title;
  height: 30px;
  padding: 0 !important;
  color: #fff;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 30px;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-range-group > .segment-clear {
  grid-area: clear;
  min-height: 30px;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border-color: rgb(255 255 255 / 18%);
  font-size: 12.5px;
  font-weight: 700;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-range-fields {
  display: grid !important;
  grid-area: fields;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field > label {
  margin: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px !important;
  font-weight: 700;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field > div {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field .segment-timecode {
  flex: 1 1 auto !important;
  justify-content: center;
  height: 38px;
  border-radius: 12px !important;
  background: rgb(0 0 0 / 22%);
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field .segment-timecode input:last-child {
  flex: 0 0 4.5ch !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field .segment-timecode input {
  height: 36px !important;
  min-height: 36px !important;
  font-variant-numeric: tabular-nums;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-marker-field button {
  flex: none;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  background: rgb(255 255 255 / 9%) !important;
  font-size: 13px !important;
  font-weight: 700;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-suggestion {
  grid-area: hint;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 56%);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-scope-picker {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-scope-picker > legend {
  margin-bottom: 8px;
  padding: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
  font-weight: 700;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-scope-navigation {
  width: 100%;
  margin: 0;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-actions {
  gap: 10px !important;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-actions > .segment-save {
  flex: 1 1 auto;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-actions > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%) !important;
  color: rgb(255 255 255 / 80%);
  font-size: 13px !important;
  font-weight: 700;
  text-decoration: none;
}
:root:root .anime-app.anime-app .player-segment-panel.player-segment-panel.player-segment-panel .segment-editor-actions > a svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}

/* Share card (分享這一集 / 分享作品): it stacked title, scope, preview, the title again, platforms
   and link into one column taller than a sideways screen, so it had to be scrolled. The title
   line under the preview repeated what the preview shows and is dropped; the platforms share
   the row evenly; on a wide screen the preview sits on the left with scope, platforms and link
   beside it, so the whole card fits without scrolling. The card opened from the page (beside
   為作品評分) sits outside the app, directly in the page body, so both places are covered. */
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog > header {
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog > header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-close {
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgb(255 255 255 / 9%);
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-scope {
  margin: 0;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-scope > button {
  min-height: 38px;
  font-weight: 750;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-preview-frame {
  margin: 0;
  border-radius: 18px;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog > p {
  display: none;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-platforms {
  margin: 0;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options {
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 6px;
  padding: 0;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options > :is(a, button) {
  min-height: 0;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options > :is(a, button) > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .share-platform-icon {
  width: 50px;
  height: 50px;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-copy {
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: rgb(0 0 0 / 20%);
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-copy > input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 72%);
  font-size: 13px;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-status {
  margin: 0;
  font-size: 13px;
  text-align: center;
}
:root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-copy-button {
  flex: none;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}

/* Wide screens: preview on the left, everything to act on beside it. */
@media (orientation: landscape) and (min-width: 700px) {
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog {
    width: min(860px, calc(100vw - 48px));
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "head head" "preview scope" "preview platforms" "preview copy";
    column-gap: 22px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog > header { grid-area: head; }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-scope { grid-area: scope; }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-preview-frame { grid-area: preview; }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-platforms { grid-area: platforms; }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-copy { grid-area: copy; }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-status { grid-column: 2; }
  /* With six platforms (更多 included) the right side widens a little so every name fits. */
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog:has(.anime-share-options > :nth-child(6)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options:has(> :nth-child(6)) {
    gap: 2px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options:has(> :nth-child(6)) > :is(a, button) {
    font-size: 11.5px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options:has(> :nth-child(6)) .share-platform-icon {
    width: 46px;
    height: 46px;
  }
  /* Sharing a whole title (詳情頁) has no episode/title choice. */
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog:not(:has(.anime-share-scope)) {
    grid-template-areas: "head head" "preview platforms" "preview copy";
  }
}
/* Short sideways screens (phones) keep the same layout a little tighter. */
@media (orientation: landscape) and (max-height: 480px) {
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog {
    gap: 10px;
    padding: 16px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .share-platform-icon {
    width: 44px;
    height: 44px;
  }
}
/* Narrow phones held upright: five platforms share one row; six (with 更多) sit three a row. */
@media (max-width: 420px) {
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options:has(> :nth-child(6)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    row-gap: 12px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog {
    padding: 18px 16px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .share-platform-icon {
    width: 44px;
    height: 44px;
  }
  :root:root :is(.anime-app, body) .anime-share-scrim .anime-share-dialog .anime-share-options > :is(a, button) {
    font-size: 11.5px;
  }
}

/* Home rails (為你推薦, 今日更新, 最新劇場版) on a touch screen held sideways: each one, heading,
   featured title and row of covers, stood about one and a half screens tall, so while its covers
   were in view its title and tags had slid under the header and faded out. Each rail now sizes
   itself to the room between the header and the bottom bar: the featured poster and the covers
   share that room, and the text beside the poster tightens to match. Where the room is larger
   the poster and covers stop at today's sizes. */
@media (orientation: landscape) and (min-width: 700px) and (min-height: 481px) and (max-height: 900px) {
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail {
    --rail-room: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px) - 64px - max(10px, env(safe-area-inset-bottom, 0px)));
    --rail-share: calc(var(--rail-room) - 110px);
    --rail-poster-h: clamp(170px, calc(var(--rail-share) * .52), 330px);
    --rail-cover-h: clamp(150px, calc(var(--rail-share) * .48), 260px);
    padding-top: 12px;
  }
  /* The page ends with the last row of covers resting 12px above the bottom bar (the row's own
     14px of space below the covers is counted). */
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow {
    padding-bottom: calc(62px + max(10px, env(safe-area-inset-bottom, 0px)));
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail .home-rail-heading {
    padding-bottom: 8px;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage {
    grid-template-columns: calc(var(--rail-poster-h) * 2 / 3) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    min-height: 0;
    padding-block: 8px;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage .immersive-content-rail-mobile-poster {
    width: calc(var(--rail-poster-h) * 2 / 3);
    height: var(--rail-poster-h);
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage .immersive-content-rail-copy {
    gap: 8px;
    max-height: var(--rail-poster-h);
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage .immersive-content-rail-copy h3 {
    max-height: 2.6em;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage :is(.immersive-content-rail-summary, .immersive-content-rail-summary-skeleton) {
    max-height: calc(1.7em * 2);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage .immersive-content-rail-actions {
    min-height: 44px;
    margin-top: 2px;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-carousel {
    padding-top: 4px;
    padding-bottom: 0;
  }
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-carousel .immersive-content-rail-scroller {
    --touch-card-width: calc(var(--rail-cover-h) * 2 / 3);
    padding-top: 8px;
    padding-bottom: 14px;
  }
}
/* With a little more height the summary keeps a third line. */
@media (orientation: landscape) and (min-width: 700px) and (min-height: 761px) and (max-height: 900px) {
  :root .anime-app.anime-app.is-touch-surface:not(.is-phone-landscape) .home-editorial-flow .immersive-content-rail-stage :is(.immersive-content-rail-summary, .immersive-content-rail-summary-skeleton) {
    max-height: calc(1.7em * 3);
    -webkit-line-clamp: 3;
  }
}

/* Line menu (播放線路): a solid card. It had picked up the app's see-through liquid glass,
   so the episode list and its green highlight showed through, and on the web the header
   was a lone chevron. Now: a titled header, main and backup lines under their own
   headings, each line's subtitle language as a small tag, the chosen line tinted in the
   accent with a filled check, and lines without this title marked 暫無. */
:root:root:root body .glass-select-popup.is-provider-popup.is-provider-popup {
  padding: 0 8px 8px;
  border: 1px solid rgb(255 255 255 / 9%) !important;
  color: #f3f6fa;
  background: #1b212b !important;
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 62%), 0 2px 8px rgb(0 0 0 / 28%) !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup.is-provider-popup {
  border-color: rgb(17 24 39 / 9%) !important;
  color: #17202b;
  background: #ffffff !important;
  box-shadow: 0 24px 48px -18px rgb(15 23 42 / 30%), 0 2px 8px rgb(15 23 42 / 10%) !important;
}
:root:root:root body .glass-select-popup.is-provider-popup button.glass-select-collapse {
  justify-content: space-between;
  flex: 0 0 48px;
  min-height: 48px;
  margin: 0 0 1px;
  padding: 0 4px 0 12px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup button.glass-select-collapse {
  border-bottom-color: rgb(17 24 39 / 8%);
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-collapse > .glass-select-title {
  display: block;
  color: rgb(243 246 250 / 62%);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup .glass-select-collapse > .glass-select-title {
  color: rgb(23 32 43 / 58%);
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-chevron {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup .glass-select-chevron {
  background: rgb(17 24 39 / 6%);
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-group-label {
  display: flex;
  align-items: flex-end;
  height: 30px;
  padding: 0 12px 6px;
  color: rgb(243 246 250 / 48%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup .glass-select-group-label {
  color: rgb(23 32 43 / 48%);
}
:root:root:root body .glass-select-popup.is-provider-popup [role="option"] {
  justify-content: flex-start;
  gap: 10px;
  min-height: 50px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}
:root:root:root body .glass-select-popup.is-provider-popup [role="option"]:not(:disabled):is(:hover, :focus-visible) {
  background: rgb(255 255 255 / 6%);
  outline: none;
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup [role="option"]:not(:disabled):is(:hover, :focus-visible) {
  background: rgb(17 24 39 / 5%);
}
:root:root:root body .glass-select-popup.is-provider-popup [role="option"][aria-selected="true"] {
  border: 0;
  background: color-mix(in srgb, var(--accent, #08a7fa) 18%, transparent);
}
:root:root:root body .glass-select-popup.is-provider-popup [role="option"]:disabled {
  opacity: .5;
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-tag,
:root:root:root body .glass-select-trigger .glass-select-tag {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  /* drawn from the text colour, so it reads on dark and light pickers alike */
  background: color-mix(in srgb, currentColor 13%, transparent);
  color: color-mix(in srgb, currentColor 80%, transparent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
:root:root:root body .glass-select-popup.is-provider-popup [aria-selected="true"] .glass-select-tag {
  background: color-mix(in srgb, var(--accent, #08a7fa) 26%, transparent);
  color: inherit;
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent, #08a7fa);
  color: #fff;
}
:root:root:root body .glass-select-popup.is-provider-popup .glass-select-note {
  flex: none;
  margin-left: auto;
  color: rgb(243 246 250 / 70%);
  font-size: 12px;
  font-weight: 700;
}
:root:root:root[data-theme="light"] body .glass-select-popup.is-provider-popup .glass-select-note {
  color: rgb(23 32 43 / 70%);
}
/* the closed picker shows the same name and tag */
:root:root:root body .glass-select-trigger > .glass-select-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
:root:root:root body .glass-select-trigger > .glass-select-line > .glass-select-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:root:root body .glass-select-trigger .glass-select-tag {
  padding: 1px 6px;
  font-size: 11.5px;
}
/* the narrow watch-page picker on phones */
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch {
  padding: 0 5px 5px;
  border-radius: 16px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch button.glass-select-collapse {
  flex-basis: 29px;
  min-height: 29px;
  padding: 0 2px 0 9px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-title {
  font-size: 12px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-chevron {
  width: 24px;
  height: 24px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-chevron svg {
  width: 14px;
  height: 14px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-group-label {
  height: 24px;
  padding: 0 9px 4px;
  font-size: 11px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch [role="option"] {
  min-height: 44px;
  gap: 8px;
  padding: 0 7px 0 9px;
  border-radius: 10px;
  font-size: 14px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-tag {
  padding: 1px 6px;
  font-size: 11px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-check {
  width: 20px;
  height: 20px;
}
:root:root:root body .glass-select-popup.is-provider-popup.is-compact-watch .glass-select-check svg {
  width: 12px;
  height: 12px;
}

/* 片頭片尾 button shows what the playing episode has: the left bracket turns green when it has an
   intro, the right bracket when it has an outro, and the play triangle turns orange when a person
   corrected the times (人工修正). The icon is one mask, so its fill is painted in three regions:
   a centre box that holds only the triangle, over a left half and a right half for the brackets.
   (The shared icon rule above reaches 0,7,1 through its :is() list, hence the repeated selectors.) */
:root:root:root .anime-app.anime-app.anime-app .player-shell .player-segment-entry > svg {
  --segment-intro: currentColor;
  --segment-outro: currentColor;
  --segment-play: currentColor;
  background:
    linear-gradient(var(--segment-play), var(--segment-play)) 50% 50% / 36% 42% no-repeat,
    linear-gradient(90deg, var(--segment-intro) 50%, var(--segment-outro) 50%);
}
:root:root:root .anime-app.anime-app.anime-app .player-shell .player-segment-entry[data-intro] > svg { --segment-intro: #4ade80; }
:root:root:root .anime-app.anime-app.anime-app .player-shell .player-segment-entry[data-outro] > svg { --segment-outro: #4ade80; }
:root:root:root .anime-app.anime-app.anime-app .player-shell .player-segment-entry[data-manual] > svg { --segment-play: #fb923c; }

/* The volume button sat outside the shared pill list above, so it kept the older tinted glass
   (a lighter blue-grey with a white rim and saturate 1.4, which also brightened whatever colour
   was behind it) and read as a different colour beside the time and speed pills. */
:root .anime-app.anime-app .player-shell .player-controls .volume-control {
  background: rgb(0 0 0 / 38%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
  backdrop-filter: blur(12px) saturate(1.15) !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Every control icon carries drop-shadow(0 1px 2px rgba(0,0,0,.88)) on its svg, but the 片頭片尾 icon
   is drawn with a mask, and a mask is applied after filters, so its shadow was clipped away. The
   shadow moves to the (transparent) button, which is drawn after the mask. */
:root:root:root .anime-app.anime-app.anime-app .player-shell .player-controls .player-segment-entry {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .88));
}
:root:root:root .anime-app.anime-app.anime-app .player-shell .player-controls .player-segment-entry > svg {
  filter: none;
}

/* 彈幕 bar (2026-11-05). It sat apart from the rest of the player: thin 1.7 strokes beside the bold
   icons, a placeholder as loud as typed text, and a grey send disc that looked the same whether or not
   there was anything to send. Now: the same bold strokes, the toggle draws the speech bubble already
   used by the touch entry, settings are two thick sliders, a hairline divides the tools from the
   message, the placeholder steps back, and the send disc lights up in the Aulama cyan-violet only when
   there is text. The sent tick (data-sent) keeps its stroke animation. Glyph changes need CSS `d`;
   browsers without it keep the original shapes, only bolder. */
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-controls-pill {
  gap: 2px !important;
  /* no white rim, like the time and speed pills; and the send circle sits concentric with the
     pill end: 1px border + 0 + the form's 2px = the 3px left above and below it */
  border-color: transparent !important;
  padding-inline: 4px 0 !important;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell :is(.community-toggle, .community-settings-button) {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  align-self: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell :is(.community-toggle, .community-settings-button) svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
@supports (d: path("M0 0")) {
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-toggle svg rect { display: none; }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-toggle svg path:not(.community-off-slash) {
    d: path("M6.5 4h11A3.5 3.5 0 0 1 21 7.5v6a3.5 3.5 0 0 1-3.5 3.5H13l-4.5 3.5V17h-2A3.5 3.5 0 0 1 3 13.5v-6A3.5 3.5 0 0 1 6.5 4zM8 9h8M8 12.5h5");
  }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-toggle svg .community-off-slash {
    d: path("M4.5 20 19.5 3.5");
  }
  /* off: the empty bubble under the slash, a little dimmer, so the two never tangle */
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-toggle[aria-pressed="false"] svg path:not(.community-off-slash) {
    d: path("M6.5 4h11A3.5 3.5 0 0 1 21 7.5v6a3.5 3.5 0 0 1-3.5 3.5H13l-4.5 3.5V17h-2A3.5 3.5 0 0 1 3 13.5v-6A3.5 3.5 0 0 1 6.5 4z");
  }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-toggle[aria-pressed="false"] { color: rgb(255 255 255 / 72%) !important; }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-settings-button svg path {
    d: path("M4 8h16M4 16h16");
  }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-settings-button svg circle { r: 2.5px; stroke-width: 2.75; }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-settings-button svg circle:nth-of-type(1) { cx: 9px; cy: 8px; }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-settings-button svg circle:nth-of-type(2) { cx: 15px; cy: 16px; }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-settings-button svg circle:nth-of-type(3) { display: none; }
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-send .community-send-plane path {
    d: path("M4.6 4.4 20.2 11.3a.8.8 0 0 1 0 1.4L4.6 19.6a.75.75 0 0 1-1-.95L6.3 12 3.6 5.35a.75.75 0 0 1 1-.95z");
  }
}
/* the message side, set off by a hairline */
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-controls-pill > .community-composer {
  position: relative !important;
  margin-inline-start: 4px !important;
  padding-inline-start: 12px !important;
  gap: 8px !important;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-controls-pill > .community-composer::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: rgb(255 255 255 / 30%);
  transform: translateY(-50%);
  pointer-events: none;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-composer input {
  color: #fff !important;
  caret-color: #5ee7ff;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-composer input::placeholder {
  color: rgb(255 255 255 / 55%) !important;
  font-weight: 700;
}
/* send: a quiet solid plane until there is something to send */
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .player-controls .community-composer .community-send {
  /* a true circle: the older rule pinned min/max-height to 28px, which squashed a 36px-wide disc */
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  aspect-ratio: 1 / 1;
  align-self: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgb(255 255 255 / 72%) !important;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms ease !important;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .player-controls .community-composer:has(input:not(:placeholder-shown)) .community-send {
  background: linear-gradient(135deg, #3fd2ff, #8b6cff) !important;
  box-shadow: none !important; /* a glow would spill past the pill end */
  color: #fff !important;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .player-controls .community-composer .community-send:active { transform: scale(.94); }
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .player-controls .community-composer .community-send:focus-visible {
  outline: 2px solid rgb(94 231 255 / 85%) !important;
  outline-offset: 2px;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .player-controls .community-composer .community-send svg {
  width: 20px !important;
  height: 20px !important;
  overflow: visible;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-send .community-send-plane path {
  fill: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
:root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .community-send .community-send-check { stroke-width: 3.2; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  :root:root .anime-app.anime-app .player-shell.player-shell.player-shell.player-shell.player-shell.player-shell .player-controls .community-composer .community-send { transition: none !important; }
}
