:root {
  --bg: #000;
  --bg-soft: #0b0b0b;
  --ink: #fff;
  --muted: #a5a5a5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #3b82f6;
  --accent-hot: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.2);
  --good: #46c37b;
  --danger: #ff5c5c;
  --pad: clamp(0.85rem, 3.2vw, 3.5rem);
  --max: 1480px;
  --topbar-h: 3.75rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --font-display: "Unbounded", "Onest", sans-serif;
  --font-body: "Onest", "Segoe UI", sans-serif;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    #000;
}

body.theater-open {
  overflow: hidden;
}

body.theater-open .topbar {
  visibility: hidden;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 320;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  min-height: var(--topbar-h);
  padding: calc(0.55rem + var(--safe-top)) calc(var(--pad) + var(--safe-right)) 0.55rem calc(var(--pad) + var(--safe-left));
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
}

.topbar .brand {
  grid-column: 1;
  justify-self: start;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  grid-column: 3;
  justify-self: end;
}

.nav-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.nav-backdrop[hidden] {
  display: none !important;
}

.topbar.is-solid,
.topbar:has(.search-wrap.is-open) {
  background: rgba(0, 0, 0, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.account-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.account-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.account-menu {
  position: relative;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 240px;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 120;
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown-head {
  padding: 0.55rem 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.25rem;
}

.account-dropdown-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.account-dropdown-email {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.account-dropdown-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
}

.account-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-dropdown-logout {
  color: #ff8f8f;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0 10px 10px;
}

/* Account / devices — fullscreen cinema wall */
.acc-stage {
  position: relative;
  min-height: calc(100vh - 0px);
  overflow: hidden;
}

.acc-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050505;
}

.acc-bg-rail {
  position: absolute;
  inset: -8% -4%;
  display: grid;
  grid-template-columns: repeat(12, minmax(9vw, 1fr));
  gap: 0.55rem;
  transform: rotate(-8deg) scale(1.18);
  animation: accWallDrift 48s linear infinite;
  opacity: 0.88;
}

.acc-bg-tile {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background-color: #121212;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: accTilePulse 9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.18s);
}

.acc-bg-tile.is-empty {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #141414;
}

.acc-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.78) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.55));
}

.acc-foreground {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.acc-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 2.5rem) var(--pad) 4.5rem;
  animation: rise 0.45s ease both;
}

.acc-sheet {
  padding: 1.6rem 1.7rem 1.8rem;
  border-radius: 20px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.acc-sheet-narrow {
  max-width: 440px;
  margin: 0 auto;
}

.acc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.acc-lead {
  margin: 0.85rem 0 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.5;
}

.acc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.acc-top {
  margin-bottom: 1.5rem;
}

.acc-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.15rem 0 0;
}

.acc-identity strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.acc-email {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.acc-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1e3a8a);
}

.acc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-nav a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 1rem;
  margin-bottom: -1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.acc-nav a:hover {
  color: #fff;
}

.acc-nav a.is-on {
  color: #fff;
  border-bottom-color: #fff;
}

.acc-block + .acc-block {
  margin-top: 2.5rem;
}

.acc-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.acc-block-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.acc-text-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 500;
}

.acc-text-link:hover {
  color: #93c5fd;
}

.acc-muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.acc-muted a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.acc-device-list,
.acc-history {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-device {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-device-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.acc-device-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.acc-device-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.acc-device-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: lowercase;
}

.acc-device-sub {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.acc-device-out {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.acc-device-out:hover {
  color: #fda4a4;
}

.acc-history li a {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
}

.acc-history li a:hover span:first-child {
  color: #93c5fd;
}

.acc-history time {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.acc-link-page {
  width: min(520px, 100%);
  text-align: center;
}

.acc-link-page .acc-lead {
  margin-left: auto;
  margin-right: auto;
}

.acc-link-page .acc-actions {
  justify-content: center;
}

.acc-back {
  display: inline-block;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.acc-back:hover {
  color: #fff;
}

.acc-code-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  justify-items: stretch;
}

.acc-code-form input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0.85rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
  text-indent: 0.42em;
  outline: none;
  transition: border-color 0.15s ease;
}

.acc-code-form input::placeholder {
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.42em;
}

.acc-code-form input:focus {
  border-bottom-color: #fff;
}

.acc-code-form .btn {
  justify-self: center;
  min-width: 11rem;
}

.acc-ok {
  margin: 0;
  color: #86efac;
  font-weight: 600;
}

.acc-howto {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
  counter-reset: acc-step;
}

.acc-howto li {
  position: relative;
  padding-left: 1.6rem;
}

.acc-howto li::before {
  content: counter(acc-step);
  counter-increment: acc-step;
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

@keyframes accWallDrift {
  from {
    transform: rotate(-8deg) scale(1.18) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-8deg) scale(1.18) translate3d(-4%, -3%, 0);
  }
}

@keyframes accTilePulse {
  0%,
  100% {
    filter: brightness(0.78) saturate(0.9);
  }
  50% {
    filter: brightness(1.05) saturate(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-bg-rail,
  .acc-bg-tile {
    animation: none;
  }
}

@media (max-width: 560px) {
  .acc-sheet {
    padding: 1.25rem 1.15rem 1.4rem;
    border-radius: 16px;
  }

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

  .acc-device-out {
    grid-column: 2;
    justify-self: start;
  }

  .acc-history li a {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-logo,
.footer-logo {
  display: block;
  height: 44px;
  width: auto;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.48);
  padding-left: 0.08rem;
}

.nav {
  position: fixed;
  z-index: 310;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.2rem;
  min-height: var(--topbar-h);
  max-width: min(42rem, calc(100vw - 22rem));
  padding: calc(0.55rem + var(--safe-top)) 0.75rem 0.55rem;
  transform: translateX(-50%);
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: none;
}

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

.nav a {
  position: relative;
  pointer-events: auto;
  padding: 0.45rem 0.05rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a.is-active {
  color: #fff;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05rem;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 2.45rem;
  min-height: 2.45rem;
}

.search-toggle {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.search-wrap.is-open .search-toggle {
  opacity: 0;
  pointer-events: none;
}

.search {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(340px, 78vw);
  height: 2.45rem;
  padding: 0.2rem 0.25rem 0.2rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #141414;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0.35rem, -50%) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.search-wrap.is-open .search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-ai-btn {
  appearance: none;
  flex: 0 0 auto;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-ai-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.search-ai-btn[aria-pressed="true"] {
  background: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

.search-submit {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-submit:hover {
  background: rgba(255, 255, 255, 0.2);
}

.search-ai-note,
.search-ai-titles {
  margin: 0 0 1rem;
  max-width: 70ch;
}

.app {
  min-height: 100vh;
  padding-top: var(--topbar-h);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 2.5rem var(--pad) 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-logo {
  height: 22px;
}

.muted {
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: calc(var(--topbar-h) * -1);
}

.hero-carousel {
  display: block;
}

.hero-viewport {
  overflow: hidden;
  min-height: min(82vh, 720px);
}

.hero-track {
  display: flex;
  height: min(82vh, 720px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hero-nav:hover {
  background: rgba(59, 130, 246, 0.55);
}

.hero-nav-prev {
  left: 0.75rem;
}

.hero-nav-next {
  right: 0.75rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  width: 1.1rem;
  background: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #111 center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 16s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 22%, transparent 42%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.15) 72%, transparent 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.55) 28%, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 5rem var(--pad) 3.25rem;
  animation: rise 0.7s ease both;
}

.hero-brand {
  display: none;
}

.hero-logo {
  display: block;
  width: auto;
  max-width: min(420px, 72vw);
  max-height: clamp(3.2rem, 10vw, 6.5rem);
  margin: 0 0 1rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.hero-title {
  margin: 0 0 0.9rem;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-title.has-logo,
.title-hero-content h1.has-logo,
.title-heading.has-logo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.title-logo {
  display: block;
  width: auto;
  max-width: min(380px, 78vw);
  max-height: 4.8rem;
  margin: 0 0 1rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(80, 80, 80, 0.85);
}

.rating-badge.is-good {
  background: var(--good);
  color: #062214;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-accent {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 0.1rem;
}

.btn-trailer-icon {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
  flex: 0 0 auto;
  opacity: 0.92;
}

.btn-trailer-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6.5px;
  border-color: transparent transparent transparent currentColor;
  transform: translate(-30%, -50%);
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.4rem var(--pad) 0.15rem;
  animation: rise 0.55s ease both;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.section-ai .section-head {
  flex-wrap: wrap;
  align-items: flex-end;
}

.section-ai-lead {
  max-width: min(52ch, 100%);
  font-size: 0.92rem;
  line-height: 1.35;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 380px);
  gap: 0.95rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.section-top10 {
  --top10-poster-h: clamp(11.5rem, 28vw, 16.5rem);
  --top10-poster-w: calc(var(--top10-poster-h) * 2 / 3);
  --top10-num-size: calc(var(--top10-poster-h) * 1.12);
  --top10-overlap: calc(var(--top10-poster-w) * 0.42);
}

.section-top10 .section-head {
  margin-bottom: 0.55rem;
}

.top10-title {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: #c4b5fd;
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top10-bolt {
  color: #a78bfa;
  flex-shrink: 0;
}

.top10-rail {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.85rem, 2.2vw, 1.6rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.35rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top10-rail::-webkit-scrollbar {
  display: none;
}

.top10-item {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: calc(var(--top10-poster-w) + var(--top10-overlap));
  height: var(--top10-poster-h);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  animation: tileIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}

.top10-item[data-rank="10"] {
  width: calc(var(--top10-poster-w) + var(--top10-overlap) * 1.35);
}

.top10-num {
  position: absolute;
  left: 0;
  bottom: -0.06em;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  height: var(--top10-num-size);
  font-family: var(--font-display);
  font-size: var(--top10-num-size);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.1em;
  pointer-events: none;
  user-select: none;
}

.top10-digit {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2.5px #d8dbe6;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.top10-item[data-rank="10"] .top10-digit-0 {
  margin-left: -0.28em;
}

.top10-art {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: var(--top10-poster-w);
  height: var(--top10-poster-h);
  border-radius: 6px;
  overflow: hidden;
  background: #121212;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.top10-art img,
.top10-art-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.top10-art-empty {
  background: linear-gradient(160deg, #222, #111);
}

.top10-item:hover .top10-art,
.top10-item:focus-visible .top10-art {
  transform: translateY(-5px) scale(1.035);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 40px rgba(0, 0, 0, 0.65);
}

.top10-item:focus-visible {
  outline: none;
}

.top10-item:focus-visible .top10-art {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.section-showcase .section-head h2 {
  letter-spacing: -0.03em;
}

.section-showcase-boxoffice .section-head h2 {
  color: #f0d9a8;
}

.section-showcase-series .section-head h2 {
  color: #9fd4c8;
}

.showcase-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 176px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.55rem 0 1.55rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase-rail::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  scroll-snap-align: start;
  display: grid;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  animation: tileIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}

.showcase-art {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #141414;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.section-showcase-boxoffice .showcase-art {
  outline: 1px solid rgba(240, 217, 168, 0.18);
}

.section-showcase-series .showcase-art {
  outline: 1px solid rgba(159, 212, 200, 0.16);
}

.showcase-art img,
.showcase-art-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-art-empty {
  background: linear-gradient(160deg, #222, #111);
}

.showcase-art .rating-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
}

.showcase-card:hover .showcase-art,
.showcase-card:focus-visible .showcase-art {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.showcase-card:focus-visible {
  outline: none;
}

.showcase-card:focus-visible .showcase-art {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.showcase-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.showcase-title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 550;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.section-showcase-boxoffice .showcase-tag {
  color: #e8c98a;
}

.section-showcase-series .showcase-tag {
  color: #8fcabb;
}

.home-feed-more {
  padding: 0.35rem var(--pad) 3rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tile {
  position: relative;
  scroll-snap-align: start;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #151515;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: tileIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.tile-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
}

.tile-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.tile-progress i {
  display: block;
  height: 100%;
  background: var(--accent, #3b82f6);
}

.tile-continue {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
}

.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  animation: imgReveal 0.5s ease forwards;
  animation-delay: 0.05s;
}

.tile-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
  pointer-events: none;
}

.tile .rating-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
}

.tile-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(6px);
}

.tile-has-remove:hover .tile-remove,
.tile-has-remove:focus-within .tile-remove,
.tile-remove:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.tile-remove:hover {
  background: rgba(220, 38, 38, 0.88);
}

.tile-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}

@media (hover: none) {
  .tile-remove {
    opacity: 0.92;
    transform: none;
  }
}

.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.8rem 0.85rem;
}

.tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.15rem 0.9rem;
  padding-bottom: 2.5rem;
}

.grid .tile-art::after,
.grid .tile-caption {
  display: none;
}

.grid .tile {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.grid .tile:hover {
  transform: scale(1.03);
  box-shadow: none;
}

.grid .tile-art {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
}

.grid .tile-meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.1rem 0;
}

.grid .tile-title {
  -webkit-line-clamp: 2;
}

.catalog-more {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 3rem;
  min-height: 2.5rem;
}

.catalog-sentinel {
  width: 100%;
  height: 1px;
}

.catalog-spinner {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: spin 0.7s linear infinite;
}

.tile-skeleton {
  pointer-events: none;
  background: transparent;
}

.tile-skeleton .tile-art {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite, tileIn 0.4s ease both;
  animation-delay: 0s, var(--tile-delay, 0ms);
  border-radius: 10px;
}

.skel-line {
  height: 0.7rem;
  margin-top: 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.skel-line.skel-short {
  width: 42%;
  margin-top: 0.35rem;
}

.page-enter {
  animation: rise 0.55s ease both;
  animation-delay: var(--page-delay, 0ms);
}

.title-page {
  position: relative;
  background: #000;
  animation: rise 0.55s ease both;
  margin-top: calc(var(--topbar-h) * -1);
}

.title-hero {
  position: relative;
  min-height: min(72vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: var(--topbar-h);
}

.title-page-hero-only {
  min-height: 100vh;
  min-height: 100dvh;
}

.title-hero-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.title-hero-screen .title-hero-content {
  margin-top: auto;
  padding-bottom: max(2.75rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
}

.title-hero-media {
  position: absolute;
  inset: 0;
  background: #111 center / cover no-repeat;
}

.title-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.18) 72%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 48%, rgba(0, 0, 0, 0.75) 78%, #000 100%);
}

.title-tabs-bar {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0.55rem var(--pad) 0;
}

.title-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: auto auto 0;
  padding: 1.5rem var(--pad) 2.5rem;
}

.title-hero-flat {
  min-height: 0;
  overflow: visible;
  padding-top: var(--topbar-h);
}

.title-hero-flat .title-tabs-bar {
  padding-top: 0.45rem;
}

.title-hero-flat .title-hero-content {
  margin: 0 auto;
  padding-top: 0.85rem;
  padding-bottom: 0.35rem;
}

.title-page-flat .title-body {
  padding-top: 0;
}

.title-hero-flat .title-hero-content:empty {
  display: none;
}

.title-heading,
.title-hero-content h1 {
  margin: 0 0 0.9rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.title-meta-section .section-head {
  margin-bottom: 0.85rem;
}

.title-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.title-meta-item {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.title-meta-item dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-meta-item dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.people-block + .people-block {
  margin-top: 1.15rem;
}

.people-subhead {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-synopsis-section .title-desc-full {
  max-width: 52rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.title-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  background: transparent;
}

.title-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  margin: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.title-tab:hover {
  color: #fff;
}

.title-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-bottom-color: transparent;
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.genre-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.season-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.15rem;
}

.season-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
}

.season-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.season-chip {
  appearance: none;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.season-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.season-chip.is-active {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.episodes-block {
  margin-top: 0;
  animation: rise 0.45s ease both;
}

.episodes-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.5rem;
  margin: 0 calc(var(--pad) * -1);
  padding-left: var(--pad);
  padding-right: var(--pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.episodes-rail::-webkit-scrollbar {
  display: none;
}

.ep-card {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  animation: tileIn 0.4s ease both;
}

.ep-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ep-card:hover .ep-art {
  transform: translateY(-2px);
}

.ep-card.is-active .ep-art {
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.9);
}

.ep-runtime {
  position: absolute;
  right: 0.45rem;
  bottom: 0.4rem;
  padding: 0.12rem 0.35rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
}

.ep-meta {
  padding: 0.55rem 0.1rem 0;
}

.ep-num {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.ep-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent-hot);
  flex: 0 0 auto;
}

.ep-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

.title-heading-compact {
  max-width: 28ch;
  margin-bottom: 0.35rem !important;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem) !important;
  text-transform: none;
}

.title-page-flat .title-body:has(.details-view) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 3.5rem;
  overflow-x: clip;
}

.title-page-details {
  overflow-x: clip;
}

.details-view {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.details-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--topbar-h) + 0.35rem) 0 2.25rem;
  background: #050505;
}

.details-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    var(--details-art) center / cover no-repeat;
  filter: saturate(1.05) brightness(0.55);
  transform: scale(1.04);
}

.details-banner-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.35) 68%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 28%, rgba(0, 0, 0, 0.55) 78%, #000 100%);
}

.details-banner .title-tabs-bar {
  position: relative;
  z-index: 3;
  margin-bottom: 1.15rem;
}

.details-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 1.5rem 2.25rem;
  align-items: end;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.details-poster {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #161616;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.details-poster img,
.details-poster-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-poster-empty {
  background: linear-gradient(160deg, #2a2a2a, #111);
}

.details-banner-copy {
  min-width: 0;
  max-width: 46rem;
  padding-bottom: 0.15rem;
}

.details-tagline {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.details-name {
  margin: 0 0 0.75rem;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.details-rate {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.details-rate.is-good {
  color: #6ee7a8;
}

.details-rate-label {
  margin-left: -0.25rem;
  margin-right: 0.15rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details-synopsis {
  margin: 0.15rem 0 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

.details-original {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.88rem;
  font-weight: 550;
}

.details-stack {
  display: grid;
  gap: 0.35rem;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem var(--pad) 3.5rem;
  min-width: 0;
  overflow-x: clip;
}

.details-sec {
  padding: 1.35rem 0 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.details-sec .section-head {
  margin-bottom: 0.85rem;
}

.details-sec .section-head h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.details-sec .trailers-rail,
.details-sec .stills-rail,
.details-sec .people-rail,
.details-sec .facts-rail {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.details-stack .reviews-section {
  margin-top: 0.85rem;
  padding-top: 1.35rem;
  max-width: 46rem;
}

.details-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.details-card {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-card-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.details-card-value {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.details-card.is-good .details-card-value {
  color: #6ee7a8;
}

.details-card.is-money .details-card-value {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.details-meta-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem 1.1rem;
}

.details-meta-block {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.details-meta-block h3 {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.details-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.details-chip {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
}

.details-chip.is-soft {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 550;
}

@media (max-width: 720px) {
  .details-banner {
    padding-top: calc(var(--topbar-h) + 0.2rem);
  }

  .details-banner-inner {
    grid-template-columns: minmax(108px, 128px) minmax(0, 1fr);
    gap: 1rem 1.1rem;
    align-items: start;
  }

  .details-banner-copy {
    max-width: none;
  }

  .details-name {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .details-synopsis {
    font-size: 0.95rem;
    -webkit-line-clamp: 7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .details-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .details-banner-inner {
    grid-template-columns: 1fr;
  }

  .details-poster {
    max-width: 168px;
  }
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 2rem 3.5rem;
  align-items: start;
  margin-top: 0.5rem;
}

.details-rating {
  margin: 0 0 1rem;
}

.details-rating-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.details-rating-value.is-good {
  color: #4ade80;
}

.details-main .title-desc-full {
  max-width: none;
  -webkit-line-clamp: unset;
  display: block;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.details-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 1.1rem;
}

.details-kv .muted {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.details-side {
  display: grid;
  gap: 1.5rem;
}

.details-block h3,
.details-episodes-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

.details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.details-episodes {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reviews-section {
  margin: 2.25rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin-bottom: 1.15rem;
}

.reviews-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.reviews-list {
  display: grid;
  gap: 0;
}

.review-item {
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.review-item:last-child {
  border-bottom: 0;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.review-meta strong {
  font-size: 0.95rem;
}

.review-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.review-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .nav {
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
  }

  .brand-logo,
  .footer-logo {
    height: 40px;
  }

  .rail {
    grid-auto-columns: minmax(280px, 42vw);
  }

  .showcase-rail {
    grid-auto-columns: minmax(132px, 28vw);
    gap: 0.8rem;
  }
}

@media (max-width: 860px) {
  .details-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: auto auto 1fr;
    gap: 0.55rem 0.7rem;
  }

  .nav-toggle {
    display: grid;
    grid-column: 2;
  }

  .brand {
    grid-column: 1;
  }

  .topbar-right {
    grid-column: 3;
    justify-self: end;
  }

  .nav {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 310;
    width: min(19rem, 86vw);
    max-width: none;
    min-height: 0;
    height: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(var(--topbar-h) + 0.85rem) 1rem calc(1.4rem + var(--safe-bottom));
    background: #0a0a0c;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.5);
    transform: translate3d(-102%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    overscroll-behavior: contain;
  }

  body.nav-open .nav {
    transform: translate3d(0, 0, 0);
  }

  body.nav-open .topbar {
    background: rgba(0, 0, 0, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav a {
    padding: 0.9rem 1rem;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav a.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .nav a.is-active::after {
    display: none;
  }

  .account-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.86rem;
  }

  .search {
    width: min(100vw - 1.5rem, 360px);
    right: -0.25rem;
  }

  .hero,
  .hero-viewport,
  .hero-track {
    min-height: min(68vh, 560px);
  }

  .hero-track {
    height: min(68vh, 560px);
  }

  .hero-content {
    padding: 4.25rem var(--pad) 2.4rem;
  }

  .hero-nav {
    display: none;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 18%, transparent 40%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%),
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.65) 32%, transparent 68%);
  }

  .rail {
    grid-auto-columns: minmax(255px, 82vw);
    gap: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .showcase-rail {
    grid-auto-columns: minmax(118px, 36vw);
    gap: 0.7rem;
    padding-bottom: 1.25rem;
  }

  .section-top10 {
    --top10-poster-h: clamp(10.5rem, 42vw, 13.5rem);
  }

  .title-hero:not(.title-hero-screen):not(.title-hero-flat) {
    min-height: min(62vh, 520px);
  }

  .title-hero-screen {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .title-hero-media {
    background-position: center top;
  }

  .title-hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 28%),
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.72) 34%, transparent 70%);
  }

  .title-actions,
  .hero-actions {
    flex-wrap: wrap;
  }

  .title-actions .btn,
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 9.5rem);
    justify-content: center;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
  }

  .catalog-filters {
    gap: 0.65rem;
  }

  .catalog-filter {
    min-width: min(100%, 46vw);
    flex: 1 1 140px;
  }

  .theater-stage {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .theater-close {
    top: calc(0.65rem + var(--safe-top));
    right: calc(0.65rem + var(--safe-right));
    left: auto;
  }

  .auth-card,
  .trailer-card,
  .still-card {
    width: min(100% - 1.25rem, 420px);
    max-height: min(92vh, 100%);
    overflow: auto;
  }

  .account-dropdown {
    right: 0;
    left: auto;
    width: min(18rem, calc(100vw - 1.5rem));
  }
}

@media (max-width: 560px) {
  .brand-logo,
  .footer-logo {
    height: 34px;
  }

  .topbar {
    gap: 0.4rem 0.5rem;
  }

  .hero,
  .hero-viewport,
  .hero-track {
    min-height: min(58vh, 460px);
  }

  .hero-track {
    height: min(58vh, 460px);
  }

  .hero-content {
    padding: 3.6rem var(--pad) 2rem;
  }

  .hero-content h1,
  .title-heading,
  .title-hero-content h1 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .hero-lead,
  .title-lead {
    font-size: 0.92rem;
    max-width: 36ch;
  }

  .section {
    padding-top: 1.1rem;
  }

  .section-head h2 {
    font-size: 1.12rem;
  }

  .rail {
    grid-auto-columns: minmax(220px, 86vw);
  }

  .showcase-rail {
    grid-auto-columns: minmax(108px, 40vw);
  }

  .section-top10 {
    --top10-poster-h: clamp(9.75rem, 48vw, 12rem);
  }

  .top10-rail {
    gap: 0.65rem;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-rail,
  .stills-rail,
  .episodes-rail {
    grid-auto-columns: minmax(7.5rem, 42vw);
  }

  .acc-sheet {
    padding: 1.25rem 1.15rem 1.4rem;
    border-radius: 16px;
  }

  .acc-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .acc-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .btn {
    min-height: 2.65rem;
  }

  .account-btn {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-ai-btn {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tile:hover,
  .top10-item:hover .top10-art {
    transform: none;
  }

  .nav a,
  .account-btn,
  .search-toggle,
  .nav-toggle {
    min-height: 2.65rem;
  }
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
  max-width: 720px;
  margin-bottom: 0.25rem;
}

.details-grid .muted {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
  align-items: end;
}

.catalog-filter {
  display: grid;
  gap: 0.35rem;
  min-width: min(160px, 42vw);
}

.catalog-filter span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.catalog-filter select {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.catalog-filter select:disabled {
  opacity: 0.65;
  cursor: default;
}

.catalog-filter select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.catalog-filter select option {
  color: #111;
}

.catalog-intro {
  padding-top: 1.75rem;
}

.catalog-intro .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
}

.catalog-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.5;
}

.people-section {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.people-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 110px;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.2rem;
  scrollbar-width: none;
}

.people-rail::-webkit-scrollbar {
  display: none;
}

.person {
  display: grid;
  gap: 0.4rem;
}

a.person-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

a.person-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

a.person-link:hover .person-photo {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.person-photo {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1c1c;
  display: grid;
  place-items: center;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-fallback {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.person-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.person-role {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
}

.person-page {
  margin-top: calc(var(--topbar-h) * -1);
  overflow-x: clip;
}

.person-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--topbar-h) + 1rem) 0 2.25rem;
  background: #050505;
}

.person-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--person-art) center / cover no-repeat;
  filter: saturate(1.05) brightness(0.42) blur(18px);
  transform: scale(1.12);
}

.person-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
}

.person-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1.4rem 2rem;
  align-items: end;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.person-avatar {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-hero-copy {
  min-width: 0;
  padding-bottom: 0.2rem;
}

.person-kicker {
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-name-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.person-aka {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  line-height: 1.4;
}

.person-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.7rem 1rem;
}

.person-fact {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.person-fact span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.person-fact strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.person-body {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem var(--pad) 3.5rem;
}

.person-sec {
  padding: 1.4rem 0 0.4rem;
}

.person-sec .section-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.person-bio {
  margin: 0;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.person-highlights-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(7.8rem, 9.5rem);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 0 1rem;
  scrollbar-width: none;
}

.person-highlights-rail::-webkit-scrollbar {
  display: none;
}

.person-highlights-rail .tile-art {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  display: grid;
  place-items: center;
}

.person-highlights-rail .person-fallback {
  font-size: 1.4rem;
}

.person-award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.person-award-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.person-award-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.person-award-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.person-award-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.person-trivia-stack {
  display: grid;
  gap: 0.7rem;
  max-width: 46rem;
}

.person-trivia-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.person-trivia-num {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.person-trivia-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.5;
}

.person-grid {
  grid-template-columns: repeat(auto-fill, minmax(7.8rem, 1fr));
}

.tile-disabled {
  opacity: 0.72;
  cursor: default;
}

.person-photos-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 150px);
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.2rem 0 1rem;
  scrollbar-width: none;
}

.person-photos-rail::-webkit-scrollbar {
  display: none;
}

.person-photo-tile {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.person-photo-tile span {
  display: block;
  width: 100%;
  height: 100%;
  background: #1a1a1a center / cover no-repeat;
}

@media (max-width: 720px) {
  .person-hero-inner {
    grid-template-columns: minmax(110px, 132px) minmax(0, 1fr);
    gap: 1rem 1.1rem;
    align-items: start;
  }

  .person-name-title {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }
}

@media (max-width: 520px) {
  .person-hero-inner {
    grid-template-columns: 1fr;
  }

  .person-avatar {
    max-width: 168px;
  }
}

.title-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.title-facts-sep {
  color: rgba(255, 255, 255, 0.35);
}

.title-desc {
  margin: 0 0 1.4rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 1.02rem;
  white-space: normal;
}

.title-desc-full {
  max-width: 68ch;
  white-space: pre-wrap;
}

.title-body {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0.25rem var(--pad) 3.5rem;
}

.title-section {
  padding: 1.75rem 0 0.5rem;
}

.title-section + .title-section {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.title-episodes-section .section-head {
  margin-bottom: 0.85rem;
}

.title-episodes-section .section-head h2 {
  font-size: 1.25rem;
}

.controls {
  display: grid;
  gap: 1rem;
  padding: 0.25rem 0 0;
}

.control-block {
  display: grid;
  gap: 0.45rem;
}

.control-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #93c5fd;
}

.theater {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  background: #000;
  color: #fff;
}

.theater.is-open {
  display: block;
  animation: theaterIn 0.25s ease both;
}

.theater-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: auto;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.theater-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.theater-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theater-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: stretch;
}

.theater-logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.15rem 1.25rem 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 28%, transparent 55%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.theater-logo-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.theater-logo-overlay.is-fade {
  opacity: 0;
  visibility: hidden;
}

.theater-logo-overlay img {
  width: auto;
  max-width: min(420px, 72vw);
  max-height: min(11vh, 88px);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75));
  animation: theaterLogoIn 0.55s ease both;
}

@keyframes theaterLogoIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theater-stage video,
.theater-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  display: block;
}

.theater-stage iframe[hidden],
.theater-stage video[hidden] {
  display: none;
}

.theater-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.theater-status.is-hidden {
  display: none;
}

.device-link-page .catalog-lead {
  max-width: 42ch;
}

.device-link-form {
  display: grid;
  gap: 1rem;
  max-width: 24rem;
  margin-top: 1.5rem;
}

.device-link-field {
  display: grid;
  gap: 0.45rem;
}

.device-link-field span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.device-link-field input {
  appearance: none;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}

.device-link-field input:focus {
  outline: 0;
  border-color: rgba(255, 255, 255, 0.35);
}

.device-link-ok {
  margin: 0;
  color: var(--good);
  font-weight: 600;
}

.state.error {
  color: var(--danger);
}

.preloader {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.15rem;
  min-height: min(58vh, 520px);
  padding: 3.5rem var(--pad);
  text-align: center;
}

.preloader.is-compact {
  min-height: 8rem;
  padding: 1.75rem var(--pad);
}

.preloader-mark {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
}

.preloader-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-right-color: rgba(255, 255, 255, 0.35);
  animation: spin 0.9s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

.preloader-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.21rem 0 0 -0.21rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  animation: preloadPulse 1.35s ease-in-out infinite;
}

.preloader-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  animation: preloadFade 1.6s ease-in-out infinite;
}

@keyframes preloadPulse {
  0%,
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

@keyframes preloadFade {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.trailer-modal[hidden] {
  display: none !important;
}

.trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.trailer-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  animation: rise 0.35s ease both;
}

.trailer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trailer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trailer-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.trailer-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailers-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.4rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.trailers-rail::-webkit-scrollbar {
  display: none;
}

.trailer-tile {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.trailer-tile-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a center / cover no-repeat;
}

.trailer-tile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}

.trailer-tile-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.trailer-tile-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
}

.trailer-tile-name {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trailer-tile:hover .trailer-tile-art {
  filter: brightness(1.08);
}

.stills-section,
.facts-section {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.stills-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.4rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.stills-rail::-webkit-scrollbar {
  display: none;
}

.still-tile {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.still-tile-art {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a center / cover no-repeat;
  transition: filter 0.25s ease;
}

.still-tile:hover .still-tile-art {
  filter: brightness(1.08);
}

.facts-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.4rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.facts-rail::-webkit-scrollbar {
  display: none;
}

.fact-card {
  scroll-snap-align: start;
  min-height: 168px;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
}

.fact-card.is-spoiler {
  border-color: rgba(232, 184, 74, 0.28);
}

.fact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fact-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.fact-card.is-spoiler .fact-badge {
  color: #e8b84a;
}

.fact-num {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.fact-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.still-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.still-modal[hidden] {
  display: none;
}

.still-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.still-card {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(90vh, 820px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1014;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.still-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.still-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.still-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.still-close:hover {
  color: #fff;
}

.still-frame {
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000;
  padding: 0.5rem;
}

.still-frame img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

body.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  width: min(100%, 420px);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 18px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.auth-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.auth-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-form[hidden],
.auth-switch[hidden],
.auth-user[hidden],
.auth-field[hidden],
.auth-name-field[hidden],
.auth-error[hidden] {
  display: none !important;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-field input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.75rem 0.9rem;
  outline: 0;
}

.auth-field input:focus {
  border-color: rgba(59, 130, 246, 0.6);
}

.auth-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.auth-submit {
  width: 100%;
}

.auth-switch {
  margin-top: 0.85rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--accent-hot);
  cursor: pointer;
  font-weight: 600;
}

.auth-user {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-user .btn {
  width: 100%;
  justify-content: center;
}

.auth-user-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 0.55rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-item:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tileIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes imgReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes theaterIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tile,
  .tile-art img,
  .page-enter,
  .hero-media,
  .tile-skeleton .tile-art,
  .preloader-orbit,
  .preloader-dot,
  .preloader-label {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.55);
  }
  .preloader-dot {
    box-shadow: none;
  }
  .nav {
    transition: none;
  }
}
