﻿:root {
  --bg: #07080d;
  --bg-2: #111219;
  --surface: #14151d;
  --surface-2: #1c1e29;
  --surface-3: #252838;
  --text: #f3f4f8;
  --muted: #a8acb8;
  --accent: #f11424;
  --accent-2: #ff5a3a;
  --accent-3: #ffc861;
  --good: #22c55e;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 26px 68px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior-y: none;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.startup-lock {
  overflow: hidden;
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #04050a 0%, #090b12 54%, #07080d 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 560ms ease, visibility 560ms ease;
  overflow: hidden;
}

.startup-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 54%),
    radial-gradient(circle at 50% 50%, rgba(241, 20, 36, 0.14), transparent 70%);
  animation: startup-backdrop-pulse 2600ms ease-in-out both;
}

.startup-splash::after {
  content: none;
}

.startup-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.78);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8.4vw, 6.2rem);
  color: #ffffff;
  z-index: 3;
  white-space: nowrap;
  text-shadow:
    0 14px 36px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: startup-title-in 920ms cubic-bezier(0.17, 0.79, 0.24, 1) 240ms both;
}

.startup-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(5px, 0.9vw, 12px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 20, 36, 0.96) 0%, rgba(255, 90, 58, 0.88) 52%, rgba(255, 200, 97, 0.84) 100%);
  box-shadow:
    0 0 18px rgba(241, 20, 36, 0.36),
    0 0 42px rgba(241, 20, 36, 0.22);
  opacity: 0;
  z-index: 2;
}

.startup-bar-top {
  top: clamp(22px, 4.6vw, 48px);
  transform: scaleX(0.08);
  transform-origin: center;
  animation: startup-bar-expand 840ms cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

.startup-bar-bottom {
  bottom: clamp(22px, 4.6vw, 48px);
  transform: scaleX(0.08);
  transform-origin: center;
  animation: startup-bar-expand 840ms cubic-bezier(0.2, 0.8, 0.18, 1) 140ms both;
}

.startup-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-splash.is-replaying::before,
.startup-splash.is-replaying .startup-title,
.startup-splash.is-replaying .startup-bar {
  animation: none !important;
}

@keyframes startup-backdrop-pulse {
  0% {
    opacity: 0.36;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes startup-bar-expand {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes startup-title-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    letter-spacing: 0.11em;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: 0.16em;
  }
}

.app-canvas {
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.3), transparent 38%),
    radial-gradient(circle at 100% 18%, rgba(255, 90, 58, 0.2), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(255, 200, 97, 0.12), transparent 50%),
    linear-gradient(162deg, #08080b 0%, #0d0f18 54%, #111625 100%);
}

.app-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 3px 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.94), rgba(8, 9, 13, 0.86));
  backdrop-filter: blur(14px);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f11424 0%, #ff6e42 55%, #ffcb67 100%);
  box-shadow: 0 0 14px rgba(241, 20, 36, 0.45);
  transition: width 120ms linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 110, 124, 0.28), transparent 45%),
    linear-gradient(160deg, #0b0c14 0%, #15040a 50%, #090a12 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 10px 24px rgba(241, 20, 36, 0.36);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 9px;
  background:
    linear-gradient(130deg, rgba(255, 76, 78, 0.2), rgba(229, 9, 20, 0.08) 50%, rgba(255, 157, 77, 0.2));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 30%, rgba(255, 255, 255, 0.24) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: brand-sheen 5.2s ease-in-out infinite;
}

.brand-mark-letter {
  position: relative;
  z-index: 1;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.72rem;
  line-height: 1;
  letter-spacing: 0.015em;
  color: #ff2230;
  text-shadow:
    -1px 0 #94030c,
    1px 0 #ff7c80,
    0 8px 14px rgba(229, 9, 20, 0.44);
}

.brand-text {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.7rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  padding: 8px 13px;
  min-height: 40px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-pill:hover,
.nav-pill.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: min(340px, 38vw);
}

.search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  padding: 10px 106px 10px 14px;
}

.search-input[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-input::-ms-clear {
  display: none;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f0f2f8;
  font: inherit;
  font-size: 0.72rem;
  min-height: 30px;
  padding: 5px 9px;
  cursor: pointer;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 72;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 19, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.48);
  padding: 8px;
  display: grid;
  gap: 5px;
}

.search-suggest-item {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7fc;
  font: inherit;
  text-align: left;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  cursor: pointer;
}

.search-suggest-item:hover {
  border-color: rgba(255, 123, 88, 0.55);
  background: rgba(255, 112, 82, 0.16);
}

.search-suggest-title {
  display: block;
  font-weight: 600;
}

.search-suggest-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: #b8becc;
}

.net-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(22, 197, 94, 0.16);
  color: #c7ffd7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  white-space: nowrap;
}

.net-badge.offline {
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.46);
  color: #ffd4d4;
}

.calendar-search-input {
  min-width: 160px;
  width: min(260px, 42vw);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  padding: 8px 10px;
}

.calendar-search-input::placeholder {
  color: #9aa2b0;
}

.search-input::placeholder {
  color: #9398a6;
}

.free-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(229, 9, 20, 0.17);
  color: #ffd1d4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 10px;
}

.layout {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: grid;
  gap: 16px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(500px, 58vh, 660px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 7% -8%, rgba(255, 98, 73, 0.36), transparent 44%),
    radial-gradient(circle at 92% 0%, rgba(241, 20, 36, 0.25), transparent 43%),
    linear-gradient(120deg, #0a0c12 0%, #0f1422 46%, #1a2336 100%);
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(98deg, rgba(4, 5, 9, 0.95) 0%, rgba(5, 6, 10, 0.83) 34%, rgba(5, 6, 10, 0.42) 62%, rgba(7, 8, 12, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 7, 11, 0.05) 0%, rgba(6, 7, 11, 0.68) 100%),
    radial-gradient(circle at 78% 50%, rgba(255, 154, 110, 0.16), transparent 44%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 73% 45%, rgba(255, 188, 122, 0.24), transparent 39%),
    radial-gradient(circle at 94% 0%, rgba(255, 74, 104, 0.22), transparent 33%);
  animation: hero-glow 9s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  width: 100%;
  padding: clamp(24px, 3.2vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(780px, 72%);
}

.hero-kicker {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: #ffd8da;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(230, 15, 28, 0.26);
  padding: 6px 10px;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow:
    0 10px 34px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(255, 125, 97, 0.24);
}

.hero p {
  margin: 0;
  color: #d5dae6;
  line-height: 1.5;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 2px;
}

.hero-actions .btn {
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 12px;
}

.hero-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.hero-tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.74rem;
  color: #edf0f8;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(4px);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.08) contrast(1.06) brightness(0.82);
  pointer-events: none;
  transform-origin: center;
  animation: hero-pan 22s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero.hero-swap .hero-art {
  animation: hero-slide-in 760ms cubic-bezier(0.2, 0.8, 0.16, 1) both;
}

.hero.hero-swap .hero-content > * {
  animation: hero-text-in 560ms ease both;
}

.hero.hero-swap .hero-content > *:nth-child(1) {
  animation-delay: 60ms;
}

.hero.hero-swap .hero-content > *:nth-child(2) {
  animation-delay: 110ms;
}

.hero.hero-swap .hero-content > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero.hero-swap .hero-content > *:nth-child(4) {
  animation-delay: 200ms;
}

.hero.hero-swap .hero-content > *:nth-child(5) {
  animation-delay: 240ms;
}

.status-strip {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 90, 58, 0.2), rgba(255, 200, 97, 0.07), rgba(255, 255, 255, 0.03));
}

.status-strip {
  display: none !important;
}

.status-strip p {
  margin: 0;
  color: #d6d9e2;
  font-size: 0.86rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.quick-link {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #f1f3f8;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.quick-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 58, 0.72);
  background: rgba(255, 90, 58, 0.16);
}

.feature-rail {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 11px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 90, 58, 0.16), transparent 36%),
    linear-gradient(160deg, rgba(12, 14, 22, 0.95), rgba(8, 10, 16, 0.95));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.feature-rail::before {
  content: "";
  position: absolute;
  inset: auto -18% -70% -18%;
  pointer-events: none;
  height: 62%;
  background: radial-gradient(circle at center, rgba(241, 20, 36, 0.19), transparent 66%);
  opacity: 0.62;
}

.feature-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 2px 2px 0;
}

.feature-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  color: #f8f9fd;
}

.feature-head p {
  margin: 0;
  color: #b8becc;
  font-size: 0.84rem;
}

.feature-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 108, 69, 0.15), transparent 42%),
    linear-gradient(160deg, rgba(15, 17, 25, 0.94), rgba(9, 11, 17, 0.97));
  padding: 12px 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.feature-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 14px;
  animation: feature-scroll 54s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.feature-window:hover .feature-track {
  animation-play-state: paused;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 276px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  padding: 0;
  cursor: pointer;
  color: #fff;
  text-align: left;
  background: #0f1119;
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.04);
  transition: transform 340ms ease, filter 340ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 124, 88, 0.45);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.feature-card:hover img {
  transform: scale(1.08);
  filter: contrast(1.1) saturate(1.12);
}

.feature-card span,
.feature-card small {
  position: absolute;
  left: 10px;
  z-index: 1;
}

.feature-card span {
  right: 10px;
  bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.55);
}

.feature-card small {
  top: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(6, 6, 11, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 66%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.8rem;
}

.section-head p {
  margin: 0;
  color: #a9aebb;
  font-size: 0.9rem;
}

.top-section {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.18), transparent 43%),
    linear-gradient(160deg, rgba(19, 21, 32, 0.95), rgba(11, 13, 20, 0.95));
  padding: 12px;
  box-shadow: var(--shadow-md);
}

#topGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filters-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: none !important;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7dae4;
  font: inherit;
  font-size: 0.8rem;
  padding: 8px 12px;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  border-color: rgba(229, 9, 20, 0.7);
  background: rgba(229, 9, 20, 0.2);
  color: #fff;
}

.community-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(229, 9, 20, 0.07));
  padding: 12px;
  display: grid;
  gap: 12px;
  display: none !important;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.stat-label {
  margin: 0;
  color: #aeb4c2;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin: 3px 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.community-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.field-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d0d4de;
  font-size: 0.84rem;
}

.field-inline select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 27, 40, 0.96), rgba(17, 19, 29, 0.96)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  padding: 8px 36px 8px 10px;
  appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.92) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) calc(50% + 1px),
    calc(100% - 10px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select,
.player-source-control select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #151a27;
  color: #fff;
  font: inherit;
}

.field-inline select option,
.field select option,
.player-source-control select option {
  background: #121722;
  color: #f4f6fb;
}

.spotlight {
  display: grid;
  gap: 8px;
}

.my-list {
  display: grid;
  gap: 8px;
}

.info-section {
  display: grid;
  gap: 10px;
}

.info-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.2), transparent 46%),
    linear-gradient(160deg, rgba(22, 24, 34, 0.96), rgba(10, 11, 17, 0.96));
  padding: 18px;
  box-shadow: var(--shadow-md);
  animation: info-rise 380ms ease both;
}

.info-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff9da4;
  font-size: 0.75rem;
}

.info-card h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.info-rights {
  margin: 6px 0 0;
  color: #d8dbe4;
  font-weight: 700;
}

.info-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, rgba(255, 90, 58, 0.55), rgba(255, 255, 255, 0.12), transparent);
}

.info-card h4 {
  margin: 0 0 6px;
  color: #f2f4fa;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  color: #b7bdc9;
  line-height: 1.58;
  max-width: 82ch;
}

.suggestion-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.suggestion-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.suggestion-status {
  margin: 0;
  color: #c8ccda;
  font-size: 0.86rem;
}

.suggestion-status.error {
  color: #ff8f9a;
}

@media (max-width: 740px) {
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-section,
.feature-rail,
.top-section,
.spotlight,
.continue,
.catalog-section,
.sponsor-slot,
.my-list {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.sponsor-slot {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.12), transparent 46%),
    linear-gradient(164deg, rgba(18, 20, 30, 0.94), rgba(11, 13, 20, 0.94));
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.sponsor-slot-inline {
  margin-top: 10px;
}

.native-banner-mount {
  width: 100%;
  min-height: 120px;
}

.native-banner-wrap {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.native-banner-wrap > [id^="container-"] {
  width: 100%;
}

.detail-native-ad {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 8px;
}

.detail-native-ad-title {
  margin: 0;
  color: #a9aebb;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-section.search-mode {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.16), transparent 42%),
    linear-gradient(160deg, rgba(18, 19, 29, 0.94), rgba(12, 14, 21, 0.94));
}

.calendar-section {
  display: grid;
  gap: 12px;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.calendar-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(168deg, rgba(20, 21, 31, 0.96), rgba(12, 14, 22, 0.96));
  box-shadow: var(--shadow-md);
  padding: 12px;
}

.calendar-card-merged {
  padding: 14px;
}

.calendar-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.calendar-card-head h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
}

.calendar-card-head p {
  margin: 0;
  color: #afb4c1;
  font-size: 0.84rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.calendar-merged-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.16), transparent 45%),
    linear-gradient(160deg, rgba(22, 24, 36, 0.95), rgba(13, 15, 23, 0.95));
  padding: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  overflow: clip;
}

.calendar-merged-card.clickable {
  cursor: pointer;
}

.calendar-media-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.calendar-merged-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-merged-body {
  display: grid;
  gap: 6px;
  padding: 2px 1px 0;
}

.calendar-merged-meta {
  margin: 0;
  gap: 6px;
  color: #aeb4c2;
  font-size: 0.74rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.calendar-merged-actions {
  display: grid;
}

.calendar-merged-actions .btn-small {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.calendar-date-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 12, 19, 0.72);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 9px;
  backdrop-filter: blur(4px);
}

.calendar-merged-card .media-title-link:disabled {
  opacity: 0.82;
  cursor: default;
}

.top-grid,
.continue-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.media-card {
  background: transparent;
  border: 0;
  transition: transform 190ms cubic-bezier(0.2, 0.75, 0.2, 1);
  transform: translateZ(0);
  will-change: transform;
  cursor: pointer;
  touch-action: pan-y;
}

.media-card:hover {
  transform: translateY(-3px);
}

.media-card:focus-within {
  transform: translateY(-2px);
}

.top-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.16), transparent 45%),
    linear-gradient(160deg, rgba(22, 24, 36, 0.95), rgba(13, 15, 23, 0.95));
  padding: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  transition: transform 190ms cubic-bezier(0.2, 0.75, 0.2, 1), border-color 190ms ease, box-shadow 190ms ease;
  transform: translateZ(0);
  will-change: transform;
  cursor: pointer;
  touch-action: pan-y;
}

.top-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 58, 0.44);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}

.top-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 58, 0.48);
}

.top-shell,
.media-shell {
  display: grid;
  gap: 10px;
}

.top-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 12, 19, 0.72);
  color: #f8fafc;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 8px;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.top-thumb,
.media-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #1f2330, #10131b);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  isolation: isolate;
}

.top-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.media-thumb {
  aspect-ratio: 2 / 3;
}

.top-thumb img,
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 220ms ease;
  will-change: transform;
}

.top-card:hover img,
.media-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.07) contrast(1.03);
}

.top-thumb::after,
.media-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
  z-index: 1;
}

.media-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.card-hover-actions {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.top-card:hover .card-hover-actions,
.top-card:focus-within .card-hover-actions,
.media-card:hover .card-hover-actions,
.media-card:focus-within .card-hover-actions {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card-action-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #0d101b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  pointer-events: auto;
}

.card-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.card-action-fav.active {
  background: linear-gradient(135deg, #db2a37, #f11424);
  color: #fff;
}

.card-action-like.active {
  background: linear-gradient(135deg, #0da86b, #17c57e);
  color: #fff;
}

.card-action-dislike.active {
  background: linear-gradient(135deg, #d3384b, #ef2035);
  color: #fff;
}

.continue-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 7;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 12, 19, 0.76);
  color: #f3f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.continue-remove-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.continue-remove-btn:hover,
.continue-remove-btn:focus-visible {
  border-color: rgba(255, 105, 117, 0.88);
  background: rgba(44, 14, 20, 0.88);
  color: #ffe6eb;
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #cc111b, #ff5b5b);
}

.top-body,
.media-body {
  display: grid;
  gap: 6px;
  padding: 0 1px;
}

.top-body {
  padding: 2px 2px 2px;
}

.title-link {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #edf0f7;
  text-align: left;
  font: inherit;
  font-weight: 700;
  line-height: 1.24;
  cursor: pointer;
}

.title-link:hover,
.title-link:focus-visible {
  color: #fff;
}

.top-meta,
.media-meta {
  margin: 0;
  color: #98a0b5;
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.top-title-link,
.media-title-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-title-link {
  font-size: 0.93rem;
}

.media-title-link {
  font-size: 0.99rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(241, 20, 36, 0.34);
  background: rgba(241, 20, 36, 0.13);
  color: #ffb2b9;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  padding: 2px 7px;
}

.meta-pill-new {
  border-color: rgba(255, 200, 97, 0.56);
  background: rgba(255, 200, 97, 0.2);
  color: #fff0c7;
}

.meta-pill-soon {
  border-color: rgba(179, 139, 255, 0.62);
  background: rgba(179, 139, 255, 0.2);
  color: #f0e4ff;
}

.meta-pill-resume {
  border-color: rgba(142, 208, 255, 0.56);
  background: rgba(142, 208, 255, 0.18);
  color: #d9f4ff;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(188, 196, 213, 0.66);
}

.media-resume {
  margin: 0;
  color: #ffccd2;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
}

.media-card,
.media-card *,
.top-card,
.top-card *,
.feature-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn,
.btn-small {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn {
  padding: 10px 15px;
}

.btn-small {
  font-size: 0.76rem;
  padding: 8px 10px;
}

.btn-compact {
  font-size: 0.78rem;
  padding: 8px 12px;
  min-height: 40px;
}

.btn-primary,
.btn-play {
  color: #fff;
  background: linear-gradient(135deg, #b80d17 0%, var(--accent) 52%, var(--accent-2) 100%);
}

.btn-soft,
.btn-info {
  color: #f0f2f8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.btn-soft.is-active {
  color: #fff6f7;
  border-color: rgba(229, 9, 20, 0.65);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.28), rgba(178, 12, 30, 0.22));
  box-shadow: 0 8px 20px rgba(168, 12, 27, 0.25);
}

.btn-soft.is-positive {
  color: #ecfff5;
  border-color: rgba(44, 201, 126, 0.72);
  background: linear-gradient(135deg, rgba(19, 166, 103, 0.34), rgba(11, 122, 77, 0.24));
  box-shadow: 0 8px 20px rgba(10, 95, 60, 0.28);
}

.btn-soft.is-negative {
  color: #ffecef;
  border-color: rgba(240, 58, 88, 0.75);
  background: linear-gradient(135deg, rgba(201, 24, 55, 0.34), rgba(146, 18, 43, 0.26));
  box-shadow: 0 8px 20px rgba(120, 12, 29, 0.26);
}

.btn-ghost {
  color: #f0f2f8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn-fav {
  color: #f0f2f8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.btn-fav.active {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.2);
  color: #ffe6e8;
}

.btn,
.btn-small,
.nav-pill,
.chip,
.quick-link {
  transition: transform 140ms ease, filter 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.nav-pill,
.chip,
.quick-link,
.modal-close {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.btn-small.is-disabled {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.catalog-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.empty {
  margin: 8px 0 0;
  color: #b1b6c3;
  text-align: center;
}

.detail-modal,
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: start center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-panel,
.player-panel {
  width: min(1120px, 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  position: relative;
  overflow: auto;
  margin: auto 0;
}

.detail-panel {
  --detail-backdrop-image: none;
  max-height: min(92vh, 980px);
  overflow: auto;
  background: linear-gradient(165deg, #121320 0%, #0d0f18 100%);
}

.detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(8, 8, 12, 0.94) 0%, rgba(8, 9, 14, 0.78) 43%, rgba(8, 8, 12, 0.92) 100%),
    var(--detail-backdrop-image);
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  pointer-events: none;
}

.detail-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(241, 20, 36, 0.2), transparent 38%),
    radial-gradient(circle at 100% 10%, rgba(255, 140, 72, 0.12), transparent 40%);
}

.detail-modal:not([hidden]) {
  animation: modal-fade 260ms ease both;
}

.detail-modal:not([hidden]) .detail-panel {
  animation: detail-pop 340ms cubic-bezier(0.2, 0.8, 0.16, 1) both;
}

.player-panel {
  --player-backdrop-image: none;
  width: min(1320px, 100%);
  max-height: min(92vh, 980px);
  padding: 14px;
  background: linear-gradient(165deg, #10121d 0%, #0a0d16 100%);
}

.player-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, rgba(7, 8, 12, 0.94) 0%, rgba(7, 8, 12, 0.72) 48%, rgba(7, 8, 12, 0.92) 100%),
    var(--player-backdrop-image);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.player-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 2% 0%, rgba(241, 20, 36, 0.22), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 130, 70, 0.12), transparent 38%);
}

.player-overlay:not([hidden]) {
  animation: modal-fade 240ms ease both;
}

.player-overlay:not([hidden]) .player-panel {
  animation: detail-pop 300ms cubic-bezier(0.2, 0.8, 0.16, 1) both;
}

.player-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.player-main {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(13, 17, 29, 0.92), rgba(9, 12, 19, 0.82)),
    rgba(9, 12, 19, 0.76);
  padding: 10px;
}

.player-video-wrap {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.player-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 20, 36, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.24));
}

.player-side {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 19, 0.76);
  padding: 10px;
}

.player-side-section {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
}

.player-side-title {
  margin: 0;
  color: #b6bdd0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-source-control {
  display: grid;
  gap: 8px;
}

.player-source-control .field {
  gap: 6px;
}

.player-source-control .btn {
  width: 100%;
  justify-content: center;
}

.player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eff2fb;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 10px;
}

.player-pill.accent {
  border-color: rgba(241, 20, 36, 0.44);
  background: rgba(241, 20, 36, 0.22);
  color: #ffe4e7;
}

.player-quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-quickbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.player-quickbar .btn[disabled] {
  opacity: 0.48;
  cursor: default;
}

.player-side .series-controls {
  display: grid;
  gap: 8px;
}

.player-side .field {
  gap: 6px;
}

.player-side .field select {
  width: 100%;
  min-width: 0;
}

.modal-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font: inherit;
  padding: 7px 12px;
  cursor: pointer;
}

.detail-panel .modal-close {
  position: relative;
  z-index: 1;
}

.detail-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.detail-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

.detail-content {
  display: grid;
  gap: 10px;
  align-content: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 11, 18, 0.7);
  backdrop-filter: blur(7px);
  padding: 12px;
}

.detail-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffa0a5;
  font-size: 0.74rem;
}

.detail-content h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.detail-meta,
.detail-overview {
  margin: 0;
  color: #bcc1cd;
}

.detail-overview {
  line-height: 1.5;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eceef5;
  font-size: 0.76rem;
  padding: 6px 10px;
}

.badge-compat {
  border-color: rgba(71, 179, 255, 0.55);
  background: linear-gradient(135deg, rgba(55, 137, 255, 0.24), rgba(53, 202, 255, 0.16));
  color: #d6efff;
  box-shadow: 0 0 0 1px rgba(69, 173, 255, 0.16) inset;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-actions .btn {
  padding: 11px 15px;
}

.detail-actions .btn-primary {
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4);
}

.series-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
  color: #b8bdc9;
  font-size: 0.8rem;
}

.field input,
.field textarea,
.field select {
  min-width: 150px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 27, 40, 0.96), rgba(17, 19, 29, 0.96)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  padding: 8px 36px 8px 10px;
  appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.92) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) calc(50% + 1px),
    calc(100% - 10px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input,
.field textarea {
  background-image: none;
  padding: 10px;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-inline select option,
.field input,
.field textarea,
.field select option {
  color: #f3f4f8;
  background: #121624;
}

.field-inline select:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.search-input:focus-visible {
  outline: 2px solid rgba(255, 90, 58, 0.9);
  outline-offset: 1px;
}

.trailer-wrap {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: #000;
}

.trailer-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 11, 18, 0.78);
  padding: 10px 12px;
}

.player-head-main {
  display: grid;
  gap: 2px;
}

.player-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: #ffb3b7;
}

.player-head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.1;
}

.player-subtitle {
  margin: 0;
  color: #d6deef;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.player-status {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(155, 223, 255, 0.34);
  background: rgba(23, 37, 48, 0.68);
  color: #9bdfff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 9px 10px;
}

.player-status.error {
  border-color: rgba(255, 107, 107, 0.48);
  background: rgba(68, 22, 28, 0.64);
  color: #ffc9d0;
}

.player-source {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e6ff;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  word-break: break-word;
}

#playerVideo {
  width: 100%;
  max-height: min(74vh, 760px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  display: block;
}

#playerEmbedFrame {
  width: 100%;
  max-height: min(74vh, 760px);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  border-radius: 12px;
  display: block;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 24px));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(19, 22, 31, 0.95);
  color: #eef1f7;
  padding: 10px 12px;
  font-size: 0.86rem;
  box-shadow: var(--shadow-md);
}

.toast.error {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(58, 21, 27, 0.95);
}

.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 115;
  min-width: 52px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 12, 19, 0.86);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

body.compact-cards .catalog-grid,
body.compact-cards .top-grid,
body.compact-cards .continue-grid {
  gap: 10px;
}

body.compact-cards .media-body,
body.compact-cards .top-body {
  padding: 9px 9px 10px;
}

body.compact-cards .media-title-link,
body.compact-cards .top-title-link {
  font-size: 0.88rem;
}

body.compact-cards .media-meta,
body.compact-cards .top-meta {
  font-size: 0.73rem;
}

@media (max-width: 1240px) {
  .community-stats,
  .top-grid,
  .continue-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .main-nav {
    justify-content: flex-start;
  }

  .header-tools {
    justify-content: space-between;
  }

  .search-wrap {
    min-width: 0;
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .community-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: clamp(430px, 62vh, 560px);
  }

  .hero-art {
    object-position: center 20%;
  }

  .hero-content {
    gap: 12px;
    padding: 20px;
    max-width: min(84%, 700px);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .player-panel {
    padding: 12px;
    max-height: none;
  }

  .player-layout {
    grid-template-columns: 1fr;
  }

  .player-side {
    grid-template-columns: 1fr;
  }

  .top-grid,
  .continue-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .feature-card {
    width: 228px;
  }

}

@media (max-width: 740px) {
  .layout {
    padding: 14px;
  }

  .startup-bar {
    display: none;
  }

  .startup-title {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: clamp(4.2rem, 22vw, 9rem);
    letter-spacing: 0.08em;
    animation: startup-title-in-mobile 860ms cubic-bezier(0.17, 0.79, 0.24, 1) 160ms both;
  }

  .catalog-section,
  .top-section,
  .catalog-grid,
  .top-grid,
  .continue-grid {
    contain: none;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .hero {
    min-height: clamp(470px, 78svh, 660px);
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 7, 11, 0.04) 0%, rgba(6, 7, 11, 0.18) 36%, rgba(6, 7, 11, 0.62) 62%, rgba(6, 7, 11, 0.95) 100%),
      linear-gradient(104deg, rgba(7, 8, 12, 0.4) 0%, rgba(7, 8, 12, 0.06) 58%, rgba(7, 8, 12, 0.38) 100%);
  }

  .hero::after {
    inset: -18%;
    opacity: 0.24;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border: 0;
    object-position: center 18%;
    animation: hero-pan 18s ease-in-out infinite alternate;
    transform: scale(1.03);
    filter: saturate(1.14) contrast(1.05) brightness(0.88);
  }

  .hero.hero-swap .hero-art {
    animation: hero-mobile-fade 420ms ease both;
  }

  .hero-content {
    position: absolute;
    inset: auto auto calc(10px + env(safe-area-inset-bottom)) 10px;
    z-index: 2;
    min-height: auto;
    width: min(84%, 360px);
    max-width: none;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(7, 8, 12, 0.2) 0%, rgba(7, 8, 12, 0.74) 36%, rgba(7, 8, 12, 0.94) 100%);
    backdrop-filter: blur(8px) saturate(1.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  }

  .hero-kicker {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.95rem);
    line-height: 0.94;
    text-wrap: balance;
    text-shadow:
      0 8px 24px rgba(0, 0, 0, 0.54),
      0 0 14px rgba(255, 123, 88, 0.2);
  }

  .hero p {
    font-size: 0.92rem;
    max-width: none;
    color: #e0e4ee;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.84rem;
    justify-content: center;
  }

  .hero-actions .btn-ghost,
  .hero-actions .btn-soft:last-child {
    display: none;
  }

  .hero-meta {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .hero-meta::-webkit-scrollbar {
    display: none;
  }

  .hero-meta .hero-tag:nth-child(n + 5) {
    display: none;
  }

  .hero-tag {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 0.68rem;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
  }

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

  .community-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .field-inline {
    justify-content: space-between;
  }

  .field-inline select {
    width: min(240px, 100%);
  }

  .net-badge {
    display: none;
  }

  .quick-link {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

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

  #topGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    contain: none;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  #topGrid .top-card {
    min-width: 0;
  }

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

  .trailer-wrap iframe {
    min-height: 230px;
  }

  .player-panel {
    padding: 10px;
    border-radius: 14px;
    margin-top: 0;
  }

  .card-hover-actions {
    opacity: 1;
    transform: translate(-50%, 0);
    bottom: 10px;
  }

  .top-card .top-rank {
    min-width: 34px;
    height: 24px;
    font-size: 0.9rem;
    padding-inline: 6px;
  }

  .player-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .player-head .modal-close {
    margin-left: 0;
  }

  .player-side-section {
    padding: 8px;
  }

  .player-quickbar .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .feature-card {
    width: 200px;
  }

}

@media (hover: none) {
  .top-card:hover,
  .media-card:hover {
    transform: none;
  }

  .top-card:hover img,
  .media-card:hover img {
    transform: none;
    filter: none;
  }

  .card-hover-actions {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .btn:hover,
  .btn-small:hover,
  .quick-link:hover,
  .chip:hover {
    transform: none;
    filter: none;
  }

  .nav-pill:hover {
    color: var(--muted);
    border-color: transparent;
    background: transparent;
  }

  .quick-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
  }

  .chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #d7dae4;
  }

  .btn:active,
  .btn-small:active,
  .nav-pill:active,
  .chip:active,
  .quick-link:active,
  .modal-close:active {
    transform: scale(0.98);
  }
}

@media (max-width: 520px) {
  .startup-title {
    font-size: clamp(4.8rem, 26vw, 10rem);
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: clamp(450px, 74svh, 600px);
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(1.66rem, 9.8vw, 2.45rem);
  }

  .hero p {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .hero-actions .btn {
    min-height: 37px;
    font-size: 0.78rem;
    padding-inline: 8px;
  }

  .hero-art {
    object-position: center 16%;
  }

  .hero-content {
    inset: auto auto calc(8px + env(safe-area-inset-bottom)) 8px;
    width: min(86%, 320px);
    padding: 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .hero-meta {
    display: none;
  }

  .hero p {
    display: none;
  }

  .hero-tag {
    font-size: 0.68rem;
  }

  .community-stats {
    grid-template-columns: 1fr 1fr;
  }

  .top-grid,
  .continue-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .top-rank {
    min-width: 32px;
    height: 22px;
    font-size: 0.86rem;
    padding-inline: 5px;
  }

  .card-action-btn {
    width: 36px;
    height: 36px;
  }

  .card-action-btn svg {
    width: 16px;
    height: 16px;
  }

  .startup-logo {
    width: min(46vw, 206px);
  }

  .startup-word {
    bottom: -56px;
    font-size: clamp(1.3rem, 6.4vw, 2.06rem);
    letter-spacing: 0.17em;
  }

  .quick-link {
    flex-basis: 100%;
  }

  .feature-card {
    width: 176px;
  }

  .player-overlay,
  .detail-modal {
    padding: 6px;
  }

  .player-panel,
  .detail-panel {
    max-height: none;
  }

  .back-to-top {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

}

@keyframes startup-title-in-mobile {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    letter-spacing: 0.03em;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: 0.08em;
  }
}

@keyframes startup-bg-pulse {
  0% {
    transform: scale(1.18) rotate(-1.4deg);
    opacity: 0.06;
  }
  46% {
    opacity: 0.9;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes startup-glow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  48% {
    opacity: 0.96;
  }
  100% {
    opacity: 0.64;
    transform: scale(1);
  }
}

@keyframes startup-grid-shift {
  0% {
    opacity: 0;
    transform: perspective(680px) rotateX(58deg) translateY(30%);
  }
  28% {
    opacity: 0.28;
  }
  100% {
    opacity: 0.18;
    transform: perspective(680px) rotateX(58deg) translateY(8%);
  }
}

@keyframes startup-beam-sweep {
  0% {
    opacity: 0;
    transform: translate(-58%, 16%) rotate(-10deg) scaleX(0.76);
  }
  40% {
    opacity: 0.92;
  }
  100% {
    opacity: 0.34;
    transform: translate(14%, -24%) rotate(-6deg) scaleX(1.02);
  }
}

@keyframes startup-radial-left {
  0% {
    opacity: 0;
    transform: translate(-14%, 16%) scale(0.75);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes startup-radial-right {
  0% {
    opacity: 0;
    transform: translate(14%, -12%) scale(0.78);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes startup-z-top-in {
  0% {
    opacity: 0;
    filter: brightness(2.4);
    transform: translateX(-116%) scaleX(0.05) skewX(-14deg);
  }
  54% {
    opacity: 1;
    filter: brightness(1.44);
    transform: translateX(0) scaleX(1.08) skewX(0deg);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: translateX(0) scaleX(1) skewX(0deg);
  }
}

@keyframes startup-z-bottom-in {
  0% {
    opacity: 0;
    filter: brightness(2.4);
    transform: translateX(116%) scaleX(0.05) skewX(-14deg);
  }
  54% {
    opacity: 1;
    filter: brightness(1.44);
    transform: translateX(0) scaleX(1.08) skewX(0deg);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: translateX(0) scaleX(1) skewX(0deg);
  }
}

@keyframes startup-z-diag-in {
  0% {
    opacity: 0;
    filter: brightness(2.4);
    transform: translateY(44%) scaleY(0.05) rotate(26deg);
  }
  62% {
    opacity: 1;
    filter: brightness(1.44);
    transform: translateY(-1%) scaleY(1.08) rotate(26deg);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: translateY(0) scaleY(1) rotate(26deg);
  }
}

@keyframes startup-word-in {
  0% {
    opacity: 0;
    letter-spacing: 0.5em;
    filter: blur(4px);
    transform: translate(-50%, 18px) scale(0.92);
  }
  62% {
    opacity: 1;
    letter-spacing: 0.24em;
    filter: blur(0);
    transform: translate(-50%, -2px) scale(1.02);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.22em;
    filter: blur(0);
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes startup-logo-zoom {
  0% {
    transform: translateY(18px) scale(0.72);
  }
  58% {
    transform: translateY(-1px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1.01);
  }
}

@keyframes startup-logo-aura {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 0.96;
    transform: scale(1);
  }
}

@keyframes startup-z-flare {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  44% {
    opacity: 0.96;
  }
  100% {
    opacity: 0.24;
    transform: scale(1.06);
  }
}

@keyframes startup-logo-sheen {
  0% {
    opacity: 0;
    transform: translateX(-125%) skewX(-16deg);
  }
  30% {
    opacity: 0.56;
  }
  100% {
    opacity: 0;
    transform: translateX(132%) skewX(-16deg);
  }
}

@keyframes startup-logo-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes hero-slide-in {
  from {
    opacity: 0.16;
    transform: translateX(72px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes hero-mobile-fade {
  from {
    opacity: 0.12;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-pan {
  0% {
    transform: scale(1) translateX(0);
  }
  100% {
    transform: scale(1.08) translateX(-1.8%);
  }
}

@keyframes hero-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.34;
  }
  50% {
    transform: translate3d(-2%, 1.5%, 0);
    opacity: 0.52;
  }
}

@keyframes brand-sheen {
  0% {
    transform: translateX(-130%);
  }
  34% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes feature-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes detail-pop {
  from {
    opacity: 0.2;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-text-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-track {
    animation: none;
  }

  .hero::after {
    animation: none;
  }

  .hero-art {
    animation: none;
  }

  .detail-modal:not([hidden]),
  .detail-modal:not([hidden]) .detail-panel {
    animation: none;
  }

  .info-card {
    animation: none;
  }

  .hero.hero-swap .hero-art,
  .hero.hero-swap .hero-content > * {
    animation: none;
  }

  .top-card,
  .media-card,
  .btn,
  .btn-small,
  .quick-link,
  .chip,
  .nav-pill {
    transition: none;
  }
}


.media-card:active {
  transform: scale(0.995);
}
