:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --accent: #0a84ff;
  --accent2: #34aadc;
  --accent-glow: rgba(10, 132, 255, 0.22);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.36);
  --muted2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.055);
  --border-hi: rgba(255, 255, 255, 0.1);
  --glass: rgba(12, 12, 14, 0.94);
  --glass-light: rgba(255, 255, 255, 0.035);
  --radius: 18px;
  --radius-lg: 24px;
  --tile-h: 310px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 12px 60px rgba(0, 0, 0, 0.8);
  --font-ui:
    -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --plexi-bg: rgba(22, 22, 26, 0.72);
  --plexi-border: rgba(255, 255, 255, 0.12);
  --plexi-border-top: rgba(255, 255, 255, 0.2);
  --plexi-blur: blur(60px) saturate(2.2) brightness(0.9);
  --plexi-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.85), 0 8px 24px rgba(0, 0, 0, 0.6);
}
body,
html {
  font-family: var(--font-ui) !important;
}
.bg-glow {
  background:
    radial-gradient(
      ellipse 70% 40% at 15% 5%,
      rgba(10, 132, 255, 0.04) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 60% at 85% 95%,
      rgba(52, 170, 220, 0.025) 0,
      transparent 65%
    ) !important;
  animation: none !important;
}
body::after {
  display: none !important;
}
.logo {
  font-family: var(--font-ui) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  text-shadow: none !important;
}
.logo span {
  color: var(--accent) !important;
  filter: none !important;
}
.logo-progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent2)) !important;
  box-shadow: none !important;
}
.streak-widget {
  background: rgba(16, 16, 24, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
}
.streak-count {
  color: #ff9f0a !important;
  text-shadow: none !important;
}
.streak-fire {
  filter: none !important;
}
.streak-today-count {
  color: var(--accent) !important;
}
.mood-box {
  background: rgba(14, 14, 20, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: var(--radius-lg) !important;
}
.mood-title {
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
}
.mood-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
}
.mood-btn.selected,
.mood-btn:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  box-shadow: none !important;
  transform: scale(1.02) !important;
}
.mood-btn.selected .mood-name {
  color: var(--accent) !important;
}
.mood-result-label {
  color: var(--accent) !important;
}
.mood-ep-card:hover {
  background: rgba(0, 122, 255, 0.07) !important;
  border-color: rgba(0, 122, 255, 0.25) !important;
}
.mood-ep-show {
  color: var(--accent) !important;
}
.mood-close-btn {
  border-radius: 12px !important;
}
.timer-fab {
  background: rgba(14, 14, 22, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: var(--shadow) !important;
}
.timer-fab:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  color: var(--accent) !important;
}
.timer-fab.active {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.45) !important;
  color: var(--accent) !important;
  box-shadow:
    0 0 24px rgba(0, 122, 255, 0.15),
    var(--shadow) !important;
}
.timer-fab-label {
  color: var(--accent) !important;
}
.timer-panel {
  background: rgba(14, 14, 22, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.timer-panel-title {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
}
.timer-display {
  color: var(--accent) !important;
  text-shadow: none !important;
  font-family: var(--font-ui) !important;
  font-weight: 300 !important;
  letter-spacing: -1.5px !important;
  font-size: 2.6rem !important;
}
.timer-preset-btn.active,
.timer-preset-btn:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  color: var(--accent) !important;
}
.timer-start-btn {
  background: var(--accent) !important;
  border-radius: 12px !important;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
}
.timer-progress-ring {
  border-color: rgba(0, 122, 255, 0.25) !important;
}
#syncStatusBadge {
  background: rgba(14, 14, 22, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(16px) !important;
  font-family: var(--font-ui) !important;
  font-size: 0.6rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.sync-box {
  background: rgba(14, 14, 22, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.sync-title {
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
}
.sync-btn {
  background: #007aff !important;
  font-family: var(--font-ui) !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 18px rgba(0,122,255,0.45), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  transition: all 0.2s ease !important;
}
.sync-code-input {
  font-family: var(--font-ui) !important;
  border-radius: 14px !important;
}
.sync-code-input:focus {
  border-color: rgba(0, 122, 255, 0.4) !important;
}
.sync-gen-btn {
  background: transparent !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.4) !important;
  border-radius: 12px !important;
  padding: 12px 13px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}
.sync-now-btn {
  color: #007aff !important;
  border-color: rgba(0,122,255,0.2) !important;
  background: rgba(0,122,255,0.07) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.sync-status-dot.online {
  background: #30d158 !important;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.5) !important;
}
.autosave-indicator.saving {
  color: var(--accent) !important;
}
.autosave-indicator.saved {
  color: rgba(48, 209, 88, 0.9) !important;
}
.cw-inner {
  background: rgba(14, 14, 22, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
.cw-label {
  color: var(--accent) !important;
}
.toast {
  background: rgba(22, 22, 32, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
}
#mfProfileBadge {
  background: rgba(14, 14, 22, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 50px !important;
  backdrop-filter: blur(16px) !important;
  font-family: var(--font-ui) !important;
}
.mpb-name {
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
}
.pg-logo {
  font-family: var(--font-ui) !important;
  font-weight: 900 !important;
  letter-spacing: -1.5px !important;
}
.pg-logo span {
  color: #007aff !important;
  filter: drop-shadow(0 0 18px rgba(0, 122, 255, 0.7)) !important;
}
.pg-avatar {
  border-radius: 28px !important;
  background: linear-gradient(
    145deg,
    rgba(28, 28, 42, 0.9) 0,
    #12121c 100%
  ) !important;
}
.pg-profile-item:hover .pg-avatar {
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: scale(1.08) translateY(-6px) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.pg-add-btn {
  border-radius: 28px !important;
}
.pg-manage-btn {
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
  border-radius: 20px !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
}
.pm-box {
  background: #0e0e16 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.pm-title {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
}
.pm-dot.filled {
  background: var(--accent) !important;
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.4) !important;
}
.notif-bell {
  background: rgba(14, 14, 22, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow) !important;
}
.notif-panel {
  background: rgba(14, 14, 22, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.notif-panel-title {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
}
#searchInput,
.search-bar,
.search-input {
  font-family: var(--font-ui) !important;
  border-radius: 14px !important;
}
.search-container,
.search-wrap {
  border-radius: 14px !important;
}
.ep-card,
.movie-tile,
.series-tile,
.tile {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
}
.movie-tile:hover,
.tile:hover {
  transform: scale(1.01) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
#seriesModal .modal-inner,
.modal-box,
.modal-content {
  background: rgba(12, 12, 18, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.bottom-nav,
.tab-bar,
nav {
  background: rgba(10, 10, 16, 0.92) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) saturate(2) !important;
}
.nav-btn,
.tab-btn {
  font-family: var(--font-ui) !important;
  font-size: 0.58rem !important;
  font-weight: 500 !important;
}
.nav-btn.active,
.tab-btn.active {
  color: var(--accent) !important;
}
button:not(.mood-btn):not(.timer-preset-btn):not(.pg-add-btn):not(
    .sync-disconnect-btn
  ) {
  font-family: var(--font-ui) !important;
}
.ep-card {
  background: rgba(18, 18, 26, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.ep-card:hover {
  background: #181824 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: none !important;
}
.ep-card.watched {
  opacity: 0.45 !important;
}
.watchlist-btn,
.wl-btn {
  border-radius: 10px !important;
}
.ruleta-overlay {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
}
.ruleta-box {
  background: rgba(12, 12, 20, 0.99) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}
.section-title,
.shelf-title,
h2,
h3 {
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
}
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: 0 0;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
::selection {
  background: rgba(0, 122, 255, 0.25);
}
.speech-mic-btn {
  background: rgba(14, 14, 22, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow) !important;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body,
html {
  background: #080808;
  color: var(--text);
  font-family:
    -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overscroll-behavior: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 45% at 20% 10%,
      rgba(0, 122, 255, 0.055) 0,
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 55% at 80% 90%,
      rgba(90, 200, 250, 0.03) 0,
      transparent 70%
    );
  animation: bgShift 30s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% {
    transform: scale(1) rotate(0);
  }
  100% {
    transform: scale(1.06) rotate(1.5deg);
  }
}
body::after {
  display: none;
}
.logo {
  position: fixed;
  top: max(22px, env(safe-area-inset-top, 22px));
  left: 28px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  z-index: 10;
  text-shadow: none;
}
.logo span {
  color: var(--accent);
  filter: none;
}
.logo-progress {
  position: fixed;
  top: max(64px, env(safe-area-inset-top, 64px));
  left: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-progress-bar {
  width: 110px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.logo-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: none;
  transition: width 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.logo-progress-text {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.streak-widget {
  position: fixed;
  top: max(22px, env(safe-area-inset-top, 22px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  padding: 5px 14px 5px 10px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform: translateX(-50%) translateY(-4px);
}
.streak-widget.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.streak-fire {
  font-size: 1rem;
  line-height: 1;
  filter: none;
  animation: firePulse 3s ease-in-out infinite;
}
@keyframes firePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.streak-count {
  font-family: -apple-system, "SF Pro Display", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ff9f0a;
  letter-spacing: -0.3px;
  text-shadow: none;
}
.streak-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255, 140, 0, 0.55);
  letter-spacing: 0.3px;
}
.streak-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 2px;
}
.streak-today {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}
.streak-today-count {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--accent);
}
.mood-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mood-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mood-box {
  background: rgba(8, 8, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 36px 32px 28px;
  width: min(520px, 94vw);
  box-shadow:
    0 60px 160px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 122, 255, 0.05) inset;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.mood-overlay.open .mood-box {
  transform: translateY(0) scale(1);
}
.mood-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.mood-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.mood-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.mood-btn.selected,
.mood-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.4);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 122, 255, 0.15);
}
.mood-btn .mood-emoji {
  font-size: 1.8rem;
  line-height: 1;
}
.mood-btn .mood-name {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.mood-btn.selected .mood-name {
  color: var(--accent);
}
.mood-result-section {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.mood-result-section.visible {
  display: flex;
}
.mood-result-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.mood-ep-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.mood-ep-card:hover {
  background: rgba(0, 122, 255, 0.07);
  border-color: rgba(0, 122, 255, 0.3);
}
.mood-ep-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}
.mood-ep-info {
  flex: 1;
  min-width: 0;
}
.mood-ep-show {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.mood-ep-title {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mood-ep-meta {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
}
.mood-play-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.6;
}
.mood-close-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.mood-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 8px 22px;
  cursor: pointer;
  transition: all 0.18s;
}
.mood-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.timer-fab {
  position: fixed;
  bottom: max(130px, calc(env(safe-area-inset-bottom, 0px) + 130px));
  right: 24px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(8, 8, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.timer-fab:hover {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.4);
  color: var(--accent);
  transform: scale(1.1);
}
.timer-fab.active {
  background: rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.55);
  color: var(--accent);
  box-shadow:
    0 0 20px rgba(0, 122, 255, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.5);
}
.timer-fab-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.52rem;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s;
}
.timer-fab.active .timer-fab-label {
  opacity: 1;
}
.timer-panel {
  position: fixed;
  bottom: max(192px, calc(env(safe-area-inset-bottom, 0px) + 192px));
  right: 18px;
  z-index: 51;
  width: 228px;
  background: var(--plexi-bg);
  border: 1px solid var(--plexi-border);
  border-top-color: var(--plexi-border-top);
  border-radius: var(--radius-lg);
  padding: 20px 18px 16px;
  box-shadow: var(--plexi-shadow);
  backdrop-filter: var(--plexi-blur);
  -webkit-backdrop-filter: var(--plexi-blur);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transform-origin: bottom right;
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.timer-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.timer-panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.timer-display {
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: -3px;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  margin: 10px 0 16px;
  line-height: 1;
}
.timer-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.timer-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.timer-preset-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
}
.timer-preset-btn.active {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.32);
  color: #0a84ff;
}
.timer-controls {
  display: flex;
  gap: 8px;
}
.timer-start-btn {
  flex: 1;
  background: #0a84ff;
  border: none;
  border-radius: 12px;
  padding: 11px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 20px rgba(10, 132, 255, 0.4);
  transition: all 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.timer-start-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.55);
}
.timer-stop-btn {
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.22);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.72rem;
  color: rgba(255, 100, 90, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  display: none;
}
.timer-stop-btn:hover {
  background: rgba(255, 69, 58, 0.15);
  color: #ff6b6b;
}
.timer-stop-btn.visible {
  display: block;
}
.timer-progress-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid rgba(0, 122, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}
.timer-fab.active .timer-progress-ring {
  opacity: 1;
}
.mf-dock {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--plexi-bg);
  backdrop-filter: var(--plexi-blur);
  -webkit-backdrop-filter: var(--plexi-blur);
  border: 1px solid var(--plexi-border);
  border-top-color: var(--plexi-border-top);
  border-radius: 28px;
  padding: 6px 8px;
  box-shadow: var(--plexi-shadow);
}
.mf-dock:hover {
  padding: 6px 8px;
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 22px;
  border: none;
  background: 0 0;
  color: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: all 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  min-width: 56px;
}
.dock-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.26s cubic-bezier(0.34, 1.5, 0.64, 1),
    filter 0.2s,
    stroke 0.2s;
}
.dock-btn .dock-label {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.22s ease;
  opacity: 0.8;
}
.dock-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.07);
}
.dock-btn:hover svg {
  transform: scale(1.16);
}
.dock-btn:active {
  transform: scale(0.88);
  transition-duration: 70ms;
}
.dock-btn.active {
  color: #0a84ff;
  background: rgba(10, 132, 255, 0.1);
}
.dock-btn.active svg {
  stroke: #0a84ff;
  filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.6));
}
.dock-btn.active .dock-label {
  color: #0a84ff;
  font-weight: 700;
}
.dock-btn.dock-ai {
  background: linear-gradient(
    160deg,
    rgba(10, 132, 255, 0.9) 0,
    rgba(0, 102, 204, 0.95) 100%
  );
  color: #fff;
  padding: 9px 20px;
  border-radius: 24px;
  border: 1px solid rgba(10, 132, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 28px rgba(10, 132, 255, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.5);
  min-width: 68px;
}
.dock-btn.dock-ai svg {
  stroke: #fff !important;
  filter: none !important;
  width: 21px;
  height: 21px;
}
.dock-btn.dock-ai .dock-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 700;
}
.dock-btn.dock-ai:hover {
  background: linear-gradient(145deg, #34aadc 0, #0a84ff 60%, #007aff 100%);
  transform: translateY(-5px) scale(1.08);
  box-shadow:
    0 0 0 1px rgba(0, 122, 255, 0.8),
    0 12px 36px rgba(0, 122, 255, 0.62),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}
.dock-badge {
  position: absolute;
  top: 3px;
  right: 6px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.46rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px rgba(16, 16, 24, 0.8);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.dock-badge.visible {
  opacity: 1;
  transform: scale(1);
}
.dock-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
  margin: 0 3px;
  flex-shrink: 0;
}
.mf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top, 16px)) 28px 16px;
  padding-right: 120px;
  gap: 12px;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.92) 0,
    rgba(8, 8, 8, 0.75) 60%,
    transparent 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: none;
  transition: background 0.4s ease;
}
.mf-header.scrolled {
  background: rgba(8, 8, 8, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.mf-header-logo {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: rgba(255, 255, 255, 0.96);
  flex-shrink: 0;
}
.mf-header-logo span {
  color: var(--accent);
}
.mf-header-spacer {
  flex: 1;
}
.mf-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mf-header-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mf-header-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}
.mf-header-btn.active-btn {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(10, 132, 255, 0.28);
  color: var(--accent);
}
.mf-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: 2px;
  right: 2px;
  transition: all 0.3s;
}
.mf-sync-dot.online {
  background: #30d158;
  box-shadow: 0 0 5px rgba(48, 209, 88, 0.7);
}
.mf-sync-dot.syncing {
  background: #007aff;
  animation: dotBlink 0.8s infinite;
}
.mf-sync-dot.error {
  background: #ff3b30;
}
.autosave-indicator {
  display: none !important;
}
#syncStatusBadge {
  display: none !important;
}
.timer-fab {
  bottom: max(110px, calc(env(safe-area-inset-bottom, 0px) + 110px)) !important;
}
.timer-panel {
  bottom: max(172px, calc(env(safe-area-inset-bottom, 0px) + 172px)) !important;
}
.speech-mic-btn {
  bottom: max(110px, calc(env(safe-area-inset-bottom, 0px) + 110px)) !important;
}
.notif-bell {
  top: max(14px, env(safe-area-inset-top, 14px)) !important;
  right: 200px !important;
}
.notif-panel {
  top: max(58px, calc(env(safe-area-inset-top, 0px) + 58px)) !important;
  left: 50% !important;
  right: auto !important;
}
#mfProfileBadge {
  top: max(10px, env(safe-area-inset-top, 10px)) !important;
  right: 200px !important;
}
.continue-widget {
  top: auto !important;
  bottom: max(100px, calc(env(safe-area-inset-bottom, 0px) + 100px)) !important;
  right: 16px !important;
  left: auto !important;
  max-width: 260px !important;
}
.logo-progress {
  top: max(54px, calc(env(safe-area-inset-top, 0px) + 54px)) !important;
  left: 20px !important;
}
.logo {
  display: none !important;
}
.ps-menu-scene {
  margin-top: 60px !important;
}
.streak-widget {
  top: max(58px, calc(env(safe-area-inset-top, 0px) + 58px)) !important;
}
#syncStatusBadge {
  position: fixed;
  top: max(22px, env(safe-area-inset-top, 22px));
  right: 180px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 4px 10px;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}
#syncStatusBadge:hover {
  background: rgba(20, 20, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
#syncStatusBadge.syncing span:first-child {
  animation: spinIcon 1s linear infinite;
  display: inline-block;
}
@keyframes spinIcon {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
#syncModal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#syncModal.open {
  opacity: 1;
  pointer-events: auto;
}
.sync-box {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  width: min(480px, 93vw);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 60px 140px rgba(0, 0, 0, 0.98),
    0 20px 50px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.42s cubic-bezier(0.34, 1.18, 0.64, 1);
}
#syncModal.open .sync-box {
  transform: translateY(0) scale(1);
}
.sync-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sync-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
  line-height: 1.5;
}
.sync-section-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}
.sync-code-row {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  align-items: stretch;
}
.sync-code-input {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  outline: 0;
  transition: border-color 0.2s;
}
.sync-code-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.sync-code-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.sync-btn {
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.18s, transform 0.18s;
}
.sync-btn:hover {
  background: #0a84ff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,122,255,0.6), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
.sync-btn:active {
  transform: scale(0.97) translateY(0) !important;
}
.sync-btn-sec {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 10px 22px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sync-btn-sec:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.14);
}
.sync-btn-sec:active {
  transform: scale(0.97);
}
.sync-gen-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.sync-gen-btn:hover {
  background: rgba(162, 155, 254, 0.2);
}
.sync-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 16px;
}
.sync-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #636e72;
  flex-shrink: 0;
}
.sync-status-dot.online {
  background: #00b894;
  box-shadow: 0 0 8px rgba(0, 184, 148, 0.6);
}
.sync-status-dot.syncing {
  background: #007aff;
  animation: dotBlink 0.6s infinite;
}
.sync-status-dot.error {
  background: #e17055;
}
.sync-status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
}
.sync-now-btn {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.18s;
}
.sync-now-btn:hover {
  background: rgba(0, 122, 255, 0.15);
}
.sync-info-box {
  background: rgba(162, 155, 254, 0.07);
  border: 1px solid rgba(162, 155, 254, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 18px;
}
.sync-info-box strong {
  color: rgba(162, 155, 254, 0.9);
}
.sync-footer-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.sync-disconnect-btn {
  background: transparent;
  border: 1px solid rgba(255,60,60,0.15);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,80,80,0.42);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sync-disconnect-btn:hover {
  background: rgba(255,50,50,0.07);
  color: rgba(255,80,80,0.9);
  border-color: rgba(255,60,60,0.35);
  box-shadow: 0 0 12px rgba(255,50,50,0.1);
}
.sync-disconnect-btn:active {
  transform: scale(0.97);
}
.sync-firebase-warn {
  background: rgba(10, 132, 255, 0.06);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.65rem;
  color: rgba(10, 132, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 16px;
}
.sync-firebase-warn a {
  color: #fdcb6e;
  text-decoration: underline;
}
.autosave-indicator {
  position: fixed;
  bottom: max(72px, env(safe-area-inset-bottom, 72px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.35s ease;
  opacity: 0.25;
  pointer-events: none;
}
.autosave-indicator.saving {
  color: var(--accent);
  opacity: 1;
}
.autosave-indicator.saved {
  color: rgba(100, 255, 100, 0.8);
  opacity: 1;
}
.autosave-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.autosave-indicator.saving .autosave-dot {
  animation: dotBlink 0.6s ease-in-out infinite;
}
@keyframes dotBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
.continue-widget {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: 20px;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 0;
  background: 0 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  max-width: 320px;
}
.continue-widget.visible {
  display: flex;
}
.cw-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 26, 0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 16px 8px 8px;
  transition: all 0.38s cubic-bezier(0.34, 1.28, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.cw-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.06) 0,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.cw-inner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), rgba(0, 122, 255, 0.2));
  border-radius: 2px 0 0 2px;
}
.continue-widget:hover .cw-inner {
  border-color: rgba(0, 122, 255, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 122, 255, 0.12),
    0 0 40px rgba(0, 122, 255, 0.06),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-4px) scale(1.02);
}
.continue-widget:hover .cw-inner::before {
  opacity: 1;
}
.cw-thumb {
  width: 64px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.cw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.continue-widget:hover .cw-thumb img {
  transform: scale(1.08);
}
.cw-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}
.continue-widget:hover .cw-play-icon {
  background: rgba(0, 0, 0, 0.1);
}
.cw-play-icon svg {
  width: 12px;
  height: 12px;
  fill: white;
  margin-left: 1px;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 1));
  transform: scale(1);
  transition: transform 0.2s;
}
.continue-widget:hover .cw-play-icon svg {
  transform: scale(1.15);
}
.cw-info {
  flex: 1;
  min-width: 0;
}
.cw-label {
  font-size: 0.44rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cw-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.9);
}
.cw-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.cw-ep {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  font-weight: 500;
}
.cw-chevron {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.18);
  transition: all 0.25s;
}
.cw-chevron svg {
  width: 14px;
  height: 14px;
}
.continue-widget:hover .cw-chevron {
  color: var(--accent);
  transform: translateX(3px) scale(1.1);
}
.key-hint {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.55rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 6px 18px;
  opacity: 0;
  animation: fadeInHint 1s 2.5s forwards;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@keyframes fadeInHint {
  to {
    opacity: 0.65;
  }
}
.kh-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kh-sep {
  width: 1px;
  height: 9px;
  background: var(--border);
}
.key-hint kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.5);
}
.key-hint kbd.ak {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
}
.ps-menu-scene {
  position: relative;
  z-index: 5;
}
.ps-menu {
  display: flex;
  gap: 16px;
  padding: 24px 36px 40px;
  align-items: flex-end;
  position: relative;
  z-index: 5;
}
.ps-tile-wrapper {
  position: relative;
  width: 210px;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 1;
  outline: 0;
  transform: translateZ(0);
  transition:
    transform 0.44s cubic-bezier(0.34, 1.28, 0.64, 1),
    filter 0.38s ease,
    z-index 0s 0.44s;
  will-change: transform;
}
.ps-tile-wrapper.kb-focus,
.ps-tile-wrapper:hover {
  z-index: 10;
  transition:
    transform 0.44s cubic-bezier(0.34, 1.28, 0.64, 1),
    filter 0.38s ease,
    z-index 0s 0s;
  transform: translateY(-6px) scale(1.02) translateZ(0);
}
.ps-tile-wrapper:active {
  transform: translateY(-4px) scale(1.01) translateZ(0) !important;
  transition-duration: 90ms !important;
}
.ps-tile-wrapper.compact {
  width: 158px;
}
.ps-tile-wrapper.compact .ps-tile {
  height: 240px;
}
.ps-tile-wrapper.kb-focus .ps-tile {
  box-shadow:
    0 0 0 2.5px rgba(10, 132, 255, 0.85),
    0 40px 80px rgba(0, 0, 0, 0.95),
    0 0 70px rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.5) !important;
}
.ps-tile {
  width: 100%;
  height: var(--tile-h);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #111;
  transition:
    box-shadow 0.44s cubic-bezier(0.34, 1.1, 0.64, 1),
    border-color 0.38s ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 12px 36px rgba(0, 0, 0, 0.5);
}
.ps-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18) 50%,
    transparent
  );
  z-index: 12;
  pointer-events: none;
  border-radius: 1px;
}
.ps-tile-wrapper.kb-focus .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.92),
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}
.ps-tile .tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition:
    transform 0.58s cubic-bezier(0.25, 0.8, 0.25, 1),
    filter 0.45s ease,
    opacity 0.52s ease;
  filter: saturate(0.88) brightness(0.92);
}
.ps-tile .tile-bg.loaded {
  opacity: 1;
}
.ps-tile-wrapper.kb-focus .tile-bg,
.ps-tile-wrapper:hover .tile-bg {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1);
}
.ps-tile .tile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.06) 68%,
    transparent 100%
  );
  z-index: 1;
}
.tile-depth-shadow {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 1px);
  box-shadow:
    inset 0 -70px 50px -10px rgba(0, 0, 0, 0.8),
    inset 3px 0 16px -6px rgba(0, 0, 0, 0.5),
    inset -3px 0 16px -6px rgba(0, 0, 0, 0.5);
  z-index: 3;
  pointer-events: none;
}
.ps-tile .tile-logo {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-height: 68px;
  object-fit: contain;
  z-index: 4;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 1))
    drop-shadow(0 1px 6px rgba(0, 0, 0, 0.9));
  transition:
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.35s ease;
  opacity: 1 !important;
}
.ps-tile-wrapper.kb-focus .tile-logo,
.ps-tile-wrapper:hover .tile-logo {
  transform: translateX(-50%) translateY(-4px) scale(1.05);
  opacity: 1 !important;
}
.tile-glare {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: radial-gradient(
    ellipse 80% 50% at 30% 15%,
    rgba(255, 255, 255, 0.09) 0,
    transparent 60%
  );
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}
.ps-tile-wrapper.kb-focus .tile-glare,
.ps-tile-wrapper:hover .tile-glare {
  opacity: 1;
}
.tile-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 8;
}
.tile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 0 2px 2px 0;
  transition: width 0.7s cubic-bezier(0.34, 1.1, 0.64, 1);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.55);
}
.tile-continue-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9;
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 122, 255, 0.28);
  border-radius: 20px;
  padding: 3px 10px 3px 7px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.tile-continue-badge.visible {
  display: flex;
}

/* ── KDO SE DÍVÁ — watcher badge na dlaždicích ── */
.tile-watcher-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 9;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.twa {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
  margin-left: -6px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  transition: margin 0.2s cubic-bezier(0.34,1.3,0.64,1), transform 0.2s ease;
}
.twa:first-child {
  margin-left: 0;
}
.twa-rest {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(30, 30, 40, 0.88) !important;
  border-color: rgba(255,255,255,0.15) !important;
  letter-spacing: -0.3px;
}
.twa-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ps-tile-wrapper:hover .tile-watcher-badge .twa,
.ps-tile-wrapper.focused .tile-watcher-badge .twa,
.ps-tile-wrapper.kb-focus .tile-watcher-badge .twa {
  margin-left: -2px;
}
.ps-tile-wrapper:hover .twa-label,
.ps-tile-wrapper.focused .twa-label,
.ps-tile-wrapper.kb-focus .twa-label {
  opacity: 1;
  transform: translateX(0);
}
.tcb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px #007aff;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.tcb-text {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.tile-watchlist-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(4, 4, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.ps-tile-wrapper.kb-focus .tile-watchlist-btn,
.ps-tile-wrapper:hover .tile-watchlist-btn {
  opacity: 1;
  pointer-events: auto;
}
.tile-watchlist-btn:hover {
  background: rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.5);
  color: var(--accent);
  transform: scale(1.12);
}
.tile-watchlist-btn.in-watchlist {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.4);
  color: var(--accent);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 0 14px rgba(0, 122, 255, 0.2);
}
.tile-trailer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  border-radius: 19px;
  overflow: hidden;
  opacity: 0;
  background: #000;
  will-change: opacity;
}
.tr-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  will-change: transform;
  clip-path: inset(8% 0 8% 0);
}
/* Extra layer that sits above the iframe, blocking any YouTube chrome/UI */
.tr-video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: transparent;
}
/* Skryje play button na dlaždici když běží trailer */
.ps-tile-wrapper.focused .disco-play-btn,
.ps-tile-wrapper.kb-focus .disco-play-btn,
.ps-tile-wrapper:has(.tile-trailer) .disco-play-btn,
.disco-card:has(.tile-trailer) .disco-play-btn,
.sh-card:has(iframe) .sh-card-play-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}
.tr-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400%;
  height: 400%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  border: none;
  filter: contrast(1.04) saturate(1.08);
}
.tr-grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}
.tile-for-you-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.tile-for-you-inner .fyi-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tile-for-you-inner .fyi-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}
.fyi-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(0, 122, 255, 0.18);
  border: 1px solid rgba(0, 122, 255, 0.5);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.fyi-title {
  position: relative;
  z-index: 2;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  padding: 0 10px;
}
.fyi-genre {
  position: relative;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(0, 122, 255, 0.8);
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.fyi-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}
.fyi-loading-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(0, 122, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fyi-loading-text {
  font-size: 0.65rem;
  color: var(--muted);
}
.tile-search-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #06060e 0, #0a0a14 50%, #060610 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tile-search-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 122, 255, 0.3) 40%,
    var(--accent) 50%,
    rgba(0, 122, 255, 0.3) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.ps-tile-wrapper.kb-focus .tile-search-inner::before,
.ps-tile-wrapper:hover .tile-search-inner::before {
  opacity: 1;
}
.tsi-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 122, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: gridDrift 10s linear infinite;
  transition: background-image 0.3s;
}
@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 24px 24px;
  }
}
.ps-tile-wrapper.kb-focus .tsi-grid,
.ps-tile-wrapper:hover .tsi-grid {
  background-image:
    linear-gradient(rgba(0, 122, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.09) 1px, transparent 1px);
}
.tsi-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 122, 255, 0.6),
    transparent
  );
  animation: scanLine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.25);
}
@keyframes scanLine {
  0% {
    top: -2px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.tsi-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  transition: all 0.35s;
}
.tsi-bracket::after,
.tsi-bracket::before {
  content: "";
  position: absolute;
  background: rgba(0, 122, 255, 0.35);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.tsi-bracket::before {
  width: 2px;
  height: 14px;
}
.tsi-bracket::after {
  width: 14px;
  height: 2px;
}
.tsi-br-tl {
  top: 12px;
  left: 12px;
}
.tsi-br-tl::before {
  top: 0;
  left: 0;
}
.tsi-br-tl::after {
  top: 0;
  left: 0;
}
.tsi-br-tr {
  top: 12px;
  right: 12px;
}
.tsi-br-tr::before {
  top: 0;
  right: 0;
}
.tsi-br-tr::after {
  top: 0;
  right: 0;
}
.tsi-br-bl {
  bottom: 12px;
  left: 12px;
}
.tsi-br-bl::before {
  bottom: 0;
  left: 0;
}
.tsi-br-bl::after {
  bottom: 0;
  left: 0;
}
.tsi-br-br {
  bottom: 12px;
  right: 12px;
}
.tsi-br-br::before {
  bottom: 0;
  right: 0;
}
.tsi-br-br::after {
  bottom: 0;
  right: 0;
}
.ps-tile-wrapper.kb-focus .tsi-bracket::after,
.ps-tile-wrapper.kb-focus .tsi-bracket::before,
.ps-tile-wrapper:hover .tsi-bracket::after,
.ps-tile-wrapper:hover .tsi-bracket::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.7);
}
.tsi-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tsi-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tsi-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: rgba(0, 122, 255, 0.35);
  transition:
    color 0.3s,
    filter 0.3s;
  position: relative;
  z-index: 1;
}
.tsi-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 122, 255, 0.18);
  animation: iconRingPulse 2.8s ease-in-out infinite;
}
@keyframes iconRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.12;
  }
}
.ps-tile-wrapper.kb-focus .tsi-icon-wrap svg,
.ps-tile-wrapper:hover .tsi-icon-wrap svg {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.9));
}
.ps-tile-wrapper.kb-focus .tsi-icon-ring,
.ps-tile-wrapper:hover .tsi-icon-ring {
  border-color: rgba(0, 122, 255, 0.65);
  box-shadow: 0 0 14px rgba(0, 122, 255, 0.3);
}
.tsi-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 3px;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}
.ps-tile-wrapper.kb-focus .tsi-label,
.ps-tile-wrapper:hover .tsi-label {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
}
.tsi-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.tsi-tags span {
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s;
}
.ps-tile-wrapper.kb-focus .tsi-tags span,
.ps-tile-wrapper:hover .tsi-tags span {
  border-color: rgba(0, 122, 255, 0.22);
  color: rgba(0, 122, 255, 0.55);
  background: rgba(0, 122, 255, 0.04);
}
.ps-tile-wrapper .tile-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0,
    rgba(0, 0, 0, 0.55) 30%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
  pointer-events: none;
}
.ps-tile-wrapper.kb-focus .tile-hero-overlay,
.ps-tile-wrapper:hover .tile-hero-overlay {
  opacity: 1;
}
.tile-hero-overlay-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.3s ease;
}
.ps-tile-wrapper.kb-focus .tile-hero-overlay-title,
.ps-tile-wrapper:hover .tile-hero-overlay-title {
  transform: translateY(0);
  opacity: 1;
}
.tile-hero-overlay-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 122, 255, 0.85);
  margin-top: 6px;
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.38s 50ms cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.32s 50ms ease;
}
.ps-tile-wrapper.kb-focus .tile-hero-overlay-open,
.ps-tile-wrapper:hover .tile-hero-overlay-open {
  transform: translateY(0);
  opacity: 1;
}
.ps-menu.focus-mode .ps-tile-wrapper:not(.focused) {
  filter: brightness(0.4) saturate(0.5);
  transform: scale(0.96) !important;
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}
.ps-menu.focus-mode .ps-tile-wrapper.focused {
  transform: translateY(-12px) scale(1.06) !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.ps-separator {
  width: 1px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  align-self: center;
  margin: 0 4px;
}
.sh-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.22s ease;
  aspect-ratio: 2/3;
}
.sh-card:hover {
  will-change: transform;
}
.sh-card.sh-focused,
.sh-card:hover {
  transform: scale(1.1) translateY(-8px);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.95),
    0 0 0 1.5px rgba(0, 122, 255, 0.35),
    0 0 30px rgba(0, 122, 255, 0.1);
  z-index: 10;
  border-color: rgba(0, 122, 255, 0.4);
}
.sh-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    filter 0.4s,
    transform 0.4s;
}
.sh-card.sh-focused img,
.sh-card:hover img {
  filter: brightness(1.15) saturate(1.1);
  transform: scale(1.04);
}
.sh-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.97) 0,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.28s;
}
.sh-card.sh-focused .sh-card-overlay,
.sh-card:hover .sh-card-overlay {
  opacity: 1;
}
.sh-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px 10px;
  opacity: 0;
  transition:
    opacity 0.28s,
    transform 0.28s;
  transform: translateY(8px);
}
.sh-card.sh-focused .sh-card-info,
.sh-card:hover .sh-card-info {
  opacity: 1;
  transform: translateY(0);
}
.sh-card-name {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 5px;
  text-shadow: 0 1px 8px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sh-card-rating {
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--accent);
}
.sh-card-type-badge {
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.8);
}
.sh-card-type-badge.movie {
  background: rgba(0, 122, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(0, 122, 255, 0.2);
}
.sh-card-copy-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
}
.sh-card.sh-focused .sh-card-copy-hint,
.sh-card:hover .sh-card-copy-hint {
  opacity: 1;
}
.sh-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.5, 0.64, 1);
  box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  pointer-events: none;
}
.sh-card-play-btn svg {
  width: 14px;
  height: 14px;
  fill: #000;
  margin-left: 3px;
}
.sh-card.sh-focused .sh-card-play-btn,
.sh-card:hover .sh-card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 0 24px rgba(0, 122, 255, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.6);
}
.universe-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #050507;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.16s ease;
  overflow: hidden;
  will-change: opacity;
}
.universe-overlay.open {
  display: flex;
}
.universe-overlay.visible {
  opacity: 1;
}
/* ════════════════════════════════════════════════════════
   DISCOVERY — Moderní magazín / Netflix · Apple TV+ styl
   ════════════════════════════════════════════════════════ */

.disco-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: max(22px, env(safe-area-inset-top, 22px)) 48px 16px;
  flex-shrink: 0;
  background: rgba(6, 6, 9, 0.9);
  backdrop-filter: blur(44px) saturate(1.8);
  -webkit-backdrop-filter: blur(44px) saturate(1.8);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.028), 0 1px 0 rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 20;
}
.disco-header-left {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 2px;
}
.disco-logo {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.5;
}
.disco-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #fff;
  line-height: 1;
}
.disco-title span {
  color: var(--accent);
}
.disco-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.disco-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.08);
}

/* ── NAV ── */
.disco-nav {
  display: flex;
  gap: 6px;
  padding: 6px 48px 18px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
.disco-nav::-webkit-scrollbar {
  display: none;
}
.disco-nav::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, #040406 0, transparent 100%);
  pointer-events: none;
}
.disco-nav-item {
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  position: relative;
}
.disco-nav-item::before {
  content: none;
}
.disco-nav-item:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.disco-nav-item:hover::before {
  opacity: 0;
}
.disco-nav-item.active {
  color: #fff;
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(10, 132, 255, 0.34);
  font-weight: 800;
  box-shadow: none;
}
.disco-nav-item.active::before {
  display: none;
}

/* ── BODY ── */
.disco-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 120px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
}
.disco-body::-webkit-scrollbar {
  width: 3px;
}
.disco-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
}

/* ── HERO ── */
.disco-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  margin-bottom: 36px;
  flex-shrink: 0;
  cursor: pointer;
}
.disco-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 14s cubic-bezier(0.2, 0, 0.1, 1);
  transform-origin: center 30%;
  filter: brightness(0.68) saturate(1.18);
}
.disco-hero:hover img {
  transform: scale(1.04);
}
.disco-hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 4, 6, 0.98) 0,
      rgba(4, 4, 6, 0.7) 40%,
      rgba(4, 4, 6, 0.15) 75%,
      rgba(4, 4, 6, 0.35) 100%
    ),
    linear-gradient(to top, rgba(4, 4, 6, 1) 0, rgba(4, 4, 6, 0.55) 22%, transparent 50%),
    linear-gradient(to bottom, rgba(4, 4, 6, 0.6) 0, transparent 18%);
}
.disco-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 52px 48px;
  max-width: 55%;
}
.disco-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.disco-hero-badge-type {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 3px;
}
.disco-hero-badge-rating {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2px;
}
.disco-hero-badge-year {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
}
.disco-hero-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 14px;
  color: #fff;
}
.disco-hero-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 420px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.disco-hero-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.disco-hero-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  border: none;
  letter-spacing: 0.3px;
}
.disco-hero-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.36);
}
.disco-hero-btn.primary:hover {
  background: #1a8fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.5);
}
.disco-hero-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}
.disco-hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ── SEKCE & ŘÁDKY ── */
.disco-section {
  padding: 0;
}
.disco-row {
  margin-bottom: 44px;
}
.disco-row-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 0 48px;
}
.disco-row-title {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  color: #fff;
  letter-spacing: -0.35px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.disco-row-title .drt-tag {
  font-size: 0.38rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: middle;
}
.disco-row-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.disco-row-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.disco-row-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.disco-row-nav-btn svg {
  width: 12px;
  height: 12px;
}
.disco-row-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 48px 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}
.disco-row-scroll::-webkit-scrollbar {
  display: none;
}

/* ── KARTY ── */
.disco-card {
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: #111;
  border: none;
  transition:
    transform 0.38s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  width: 154px;
  box-shadow: none;
  will-change: transform;
  isolation: isolate;
}
.disco-card-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 231px;
}
.disco-card:hover {
  transform: scale(1.07) translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 10;
}
.disco-card:active {
  transform: scale(0.98) !important;
  transition-duration: 0.08s !important;
}
.disco-card-img {
  width: 154px;
  height: 231px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}
.disco-card:hover .disco-card-img {
  transform: scale(1.08);
  filter: brightness(0.85);
}
.disco-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0,
    rgba(0, 0, 0, 0.72) 30%,
    rgba(0, 0, 0, 0.18) 58%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.32s ease;
}
.disco-card:hover .disco-card-overlay {
  opacity: 1;
}
.disco-card::before {
  content: none;
}
.disco-card::after {
  content: none;
}
.disco-card-glow {
  display: none;
}
.disco-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px 10px;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(8px);
  z-index: 5;
}
.disco-card:hover .disco-card-info {
  opacity: 1;
  transform: translateY(0);
}
.disco-card-name {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.disco-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.disco-card-type {
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
.disco-card-rating {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 200, 50, 0.82);
}

/* ── PLAY BTN — skrytý (trailerová logika ho řeší) ── */
.disco-play-btn {
  display: none;
}
.disco-card:hover .disco-play-btn {
  display: none;
}
.disco-card:hover .disco-play-btn:hover {
  display: none;
}

/* ── FINDER BTN ── */
.disco-card-finder-btn {
  position: absolute;
  bottom: 38px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: scale(0.6) translateY(4px);
  transition:
    opacity 0.24s ease,
    transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  z-index: 8;
  cursor: pointer;
}
.disco-card:hover .disco-card-finder-btn {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.disco-card-finder-btn:hover {
  background: rgba(0, 122, 255, 0.7) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: scale(1.1) translateY(0) !important;
}

/* ── LOADING / SPINNER ── */
.disco-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  gap: 14px;
  flex-direction: column;
}
.disco-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* ── SCROLL HINT ── */
.disco-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  animation: scrollHintFade 1s 2s forwards;
}
@keyframes scrollHintFade {
  to { opacity: 1; }
}
.disco-header-left {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 1px;
}
.disco-logo {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.65;
}
.disco-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
}
.disco-title span {
  color: var(--accent);
}
.disco-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.22s;
  flex-shrink: 0;
}
.disco-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}
/* ── OVERRIDE starého nav bloku ── */
.disco-nav {
  background: transparent !important;
  padding: 6px 48px 18px !important;
}
.disco-nav-item {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.42) !important;
  padding: 6px 16px !important;
  font-size: 0.7rem !important;
  overflow: visible !important;
}
.disco-nav-item::before {
  display: none !important;
}
.disco-nav-item:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
}
.disco-nav-item.active {
  color: #fff !important;
  background: rgba(10, 132, 255, 0.15) !important;
  border-color: rgba(10, 132, 255, 0.38) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.disco-hero {
  height: 480px !important;
  margin-bottom: 36px !important;
}
.disco-nav::-webkit-scrollbar {
  display: none;
}
.disco-nav::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to left, #050507 0, transparent 100%);
  pointer-events: none;
}
.disco-nav-item {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: all 0.22s;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.1px;
  position: relative;
  overflow: hidden;
}
.disco-nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: radial-gradient(
    circle at 50% 0,
    rgba(0, 122, 255, 0.08) 0,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.disco-nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.disco-nav-item:hover::before {
  opacity: 1;
}
.disco-nav-item.active {
  color: #fff;
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.38);
  box-shadow: 0 2px 14px rgba(10, 132, 255, 0.2);
  font-weight: 800;
}
.disco-nav-item.active::before {
  display: none;
}
.disco-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 100px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}
.disco-body::-webkit-scrollbar {
  width: 3px;
}
.disco-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.disco-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-bottom: 44px;
  flex-shrink: 0;
  cursor: pointer;
}
.disco-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 10s ease;
  transform-origin: center 40%;
}
.disco-hero:hover img {
  transform: scale(1.06);
}
.disco-hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 7, 0.97) 0,
      rgba(5, 5, 7, 0.6) 45%,
      rgba(5, 5, 7, 0.1) 100%
    ),
    linear-gradient(to top, #050507 0, rgba(5, 5, 7, 0.3) 30%, transparent 60%),
    linear-gradient(to bottom, rgba(5, 5, 7, 0.5) 0, transparent 25%);
}
.disco-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 44px 44px;
  max-width: 52%;
}
.disco-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.disco-hero-badge-type {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 5px;
  padding: 3px 9px;
}
.disco-hero-badge-rating {
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 3px 8px;
}
.disco-hero-badge-year {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}
.disco-hero-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.02;
  margin-bottom: 12px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}
.disco-hero-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 440px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.disco-hero-btns {
  display: flex;
  gap: 10px;
}
.disco-hero-btn {
  padding: 11px 26px;
  border-radius: 10px;
  font-size: 0.77rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  border: none;
  letter-spacing: 0.2px;
}
.disco-hero-btn.primary {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.38) !important;
}
.disco-hero-btn.primary:hover {
  background: var(--accent);
  box-shadow: 0 6px 28px rgba(0, 122, 255, 0.35);
  transform: translateY(-1px);
}
.disco-hero-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.disco-hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.disco-section {
  padding: 0 44px;
}
.disco-row {
  margin-bottom: 48px;
}
.disco-row-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.disco-row-title {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  color: #fff;
  letter-spacing: -0.4px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.disco-row-title .drt-tag {
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 4px;
  padding: 2px 7px;
}
.disco-row-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.disco-row-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s;
  flex-shrink: 0;
}
.disco-row-nav-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.35);
  color: var(--accent);
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.15);
}
.disco-row-nav-btn svg {
  width: 13px;
  height: 13px;
}
.disco-row-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  padding-top: 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}
.disco-row-scroll::-webkit-scrollbar {
  display: none;
}
/* ── OVERRIDE starého bloku — nový magazínový styl vynutěn ── */
.disco-card {
  border-radius: 8px !important;
  background: #111 !important;
  border: none !important;
  box-shadow: none !important;
  width: 154px !important;
  transition:
    transform 0.38s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.38s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.disco-card-inner {
  border-radius: 8px !important;
  height: 231px !important;
}
.disco-card:hover {
  transform: scale(1.07) translateY(-6px) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  border-color: transparent !important;
  z-index: 10;
}
.disco-card:active {
  transform: scale(0.98) !important;
  transition-duration: 0.08s !important;
}
.disco-card-img {
  width: 154px !important;
  height: 231px !important;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.1, 0.64, 1),
    filter 0.45s ease;
  transform-origin: center center;
  border-radius: 0;
}
.disco-card:hover .disco-card-img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.25) contrast(1.04);
}
.disco-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.97) 0,
    rgba(0, 0, 0, 0.65) 38%,
    rgba(0, 0, 0, 0.2) 65%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.disco-card:hover .disco-card-overlay {
  opacity: 1;
}
.disco-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.13) 0,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  border-radius: 20px 20px 60% 60%/20px 20px 40% 40%;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.disco-card:hover::before {
  opacity: 1;
}
.disco-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.16) 0,
    rgba(255, 255, 255, 0.06) 25%,
    transparent 48%,
    rgba(255, 255, 255, 0.02) 70%,
    rgba(0, 0, 0, 0.08) 100%
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9;
  pointer-events: none;
}
.disco-card:hover::after {
  opacity: 1;
}
.disco-card-glow {
  position: absolute;
  bottom: -30px;
  left: 10%;
  right: 10%;
  height: 50px;
  background: radial-gradient(
    ellipse 80% 100% at 50% 0,
    rgba(0, 122, 255, 0.35) 0,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
  border-radius: 50%;
}
.disco-card:hover .disco-card-glow {
  opacity: 1;
}
.disco-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 12px;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.42s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform: translateY(14px);
  z-index: 5;
}
.disco-card:hover .disco-card-info {
  opacity: 1;
  transform: translateY(0);
}
.disco-card-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  text-shadow:
    0 1px 12px #000,
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.disco-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.disco-card-type {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.disco-card-rating {
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
}
.disco-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.25) rotate(-8deg);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(2.2) brightness(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(2.2) brightness(1.15);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.5s cubic-bezier(0.34, 1.6, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.3s ease;
  pointer-events: none;
  z-index: 7;
}
.disco-play-btn svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.95);
  margin-left: 4px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}
.disco-card:hover .disco-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0);
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.05),
    0 0 0 24px rgba(255, 255, 255, 0.02),
    0 16px 48px rgba(0, 0, 0, 0.65),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.disco-card:hover .disco-play-btn:hover {
  background: rgba(0, 122, 255, 0.55);
  border-color: rgba(0, 122, 255, 0.7);
  box-shadow:
    0 0 0 12px rgba(0, 122, 255, 0.08),
    0 0 0 24px rgba(0, 122, 255, 0.03),
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(0, 122, 255, 0.4),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(1.06) !important;
  pointer-events: auto;
}
.disco-card-finder-btn {
  position: absolute;
  bottom: 44px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: scale(0.5) translateY(4px);
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.2s;
  pointer-events: none;
  z-index: 8;
  cursor: pointer;
}
.disco-card:hover .disco-card-finder-btn {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.disco-card-finder-btn:hover {
  background: rgba(0, 122, 255, 0.65) !important;
  border-color: rgba(0, 122, 255, 0.8) !important;
  color: #fff !important;
  transform: scale(1.12) translateY(0) !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.45) !important;
}
.disco-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  gap: 14px;
  flex-direction: column;
}
.disco-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 122, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.disco-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  animation: scrollHintFade 1s 2s forwards;
}
@keyframes scrollHintFade {
  to {
    opacity: 1;
  }
}
.disco-scroll-hint:hover {
  opacity: 1 !important;
}
.disco-scroll-hint-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowBounce 2s ease-in-out infinite;
  transition: all 0.22s;
}
.disco-scroll-hint:hover .disco-scroll-hint-icon {
  background: rgba(0, 122, 255, 0.22);
  border-color: rgba(0, 122, 255, 0.45);
  box-shadow:
    0 4px 20px rgba(0, 122, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.disco-scroll-hint-icon svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.disco-scroll-hint:hover .disco-scroll-hint-icon svg {
  color: #fff;
}
.disco-scroll-hint-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3px 10px;
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
#aiVoiceFab,
.ai-voice-fab-btn {
  display: none !important;
}
#speechMicBtn,
.speech-mic-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.uni-search-wrap {
  position: relative;
  min-width: 0;
}
.uni-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.uni-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  padding: 11px 42px 11px 44px;
  color: #fff;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  outline: 0;
  transition: all 0.25s;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
}
.uni-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.07),
    0 2px 20px rgba(0, 0, 0, 0.3);
}
.uni-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}
.uni-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.uni-clear-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.32s ease,
    backdrop-filter 0.32s ease,
    -webkit-backdrop-filter 0.32s ease;
  will-change: opacity, backdrop-filter;
}
.modal-overlay.open {
  display: flex;
}
.modal-overlay.visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.modal-content {
  background: #090909;
  width: 94%;
  max-width: 1060px;
  height: 92vh;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 60px 140px rgba(0, 0, 0, 0.98),
    0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(28px) scale(0.95);
  opacity: 0;
  transition:
    transform 0.44s cubic-bezier(0.34, 1.18, 0.64, 1),
    opacity 0.3s ease;
  will-change: transform, opacity;
}
.modal-overlay.visible .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-hero {
  position: relative;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: #060606;
}
.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition:
    transform 0.62s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.45s ease;
  filter: brightness(0.48);
  will-change: transform, filter;
  transform: scale(1.06);
}
.modal-overlay.visible .modal-hero-img {
  transform: scale(1);
  filter: brightness(0.5);
}
.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 6, 6, 0.22) 0,
      rgba(6, 6, 6, 0) 22%,
      rgba(6, 6, 6, 0.6) 60%,
      #090909 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 6, 6, 0.88) 0,
      rgba(6, 6, 6, 0.12) 38%,
      transparent 62%,
      rgba(6, 6, 6, 0.3) 100%
    );
}
.modal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 65% at 76% 28%,
    rgba(10, 132, 255, 0.07) 0,
    transparent 60%
  );
}
.modal-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 5;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(10, 132, 255, 0.25) 50%,
    transparent
  );
}
.modal-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 30px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.modal-hero-left {
  flex: 1;
  min-width: 0;
}
.modal-hero-left h2 {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.04;
  margin-bottom: 9px;
  text-shadow: 0 2px 40px #000;
}
.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.modal-meta-text {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 500;
}
.tmdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(1, 180, 228, 0.08);
  border: 1px solid rgba(1, 180, 228, 0.2);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(1, 180, 228, 0.8);
  letter-spacing: 0.5px;
}
.modal-sc-pills {
  display: flex;
  gap: 5px;
}
.msc {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
}
.msc kbd {
  font-size: 0.5rem;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: rgba(255, 255, 255, 0.4);
  background: 0 0;
  border: none;
  padding: 0;
}
.msc kbd.a {
  color: var(--accent);
}
.msc span {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}
.panel-progress-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  max-width: 200px;
}
.panel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.6s ease;
}
.panel-progress-text {
  font-size: 0.54rem;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}
.panel-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-continue {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 13px 26px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 32px rgba(10, 132, 255, 0.45);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.btn-continue:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 14px 44px rgba(10, 132, 255, 0.55);
}
.btn-continue svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.btn-shuffle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 13px 18px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.22s ease;
}
.btn-shuffle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.btn-shuffle svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.btn-shuffle .kb {
  font-size: 0.6rem;
  opacity: 0.35;
  margin-left: 2px;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.24s cubic-bezier(0.34, 1.3, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
  min-height: 0;
  position: relative;
  z-index: 2;
  background: #090909;
}
.episode-grid {
  min-height: 100px;
  background: 0 0 !important;
  display: flex;
  flex-direction: column;
}
.modal-body::-webkit-scrollbar {
  width: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.season-pills {
  display: none !important;
}
.season-pill {
  display: none !important;
}
.season-header {
  display: none !important;
}
.season-counter {
  display: none !important;
}
.ep-view-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(9, 9, 9, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}
.ep-view-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 6px 14px 6px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
  color: rgba(255, 255, 255, 0.6);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ep-view-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(-2px);
}
.ep-view-back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.ep-view-title {
  flex: 1;
  min-width: 0;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-view-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 122, 255, 0.07);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.ep-view-season-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.9);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
.ep-view-season-text {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.3px;
}
.season-all-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  height: 28px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.season-all-btn.active,
.season-all-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.season-select-view {
  display: none;
  flex-direction: column;
  padding: 20px 16px 32px;
  gap: 0;
}
.season-select-view.active {
  display: flex;
}
.ssv-label {
  font-size: 0.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 16px;
  padding-left: 2px;
}
.ssv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.ssv-card {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #0e0e18;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1),
    border-color 0.25s,
    box-shadow 0.28s;
  aspect-ratio: 2/3;
  flex-shrink: 0;
}
.ssv-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.ssv-card.ssv-active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent, #007aff) 25%, transparent),
    0 14px 40px color-mix(in srgb, var(--accent, #007aff) 30%, transparent);
}
.ssv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) saturate(0.82);
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.3s;
}
.ssv-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.95) saturate(1.1);
}
.ssv-card.ssv-active img {
  filter: brightness(1) saturate(1.1);
}
.ssv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0,
    rgba(0, 0, 0, 0.3) 45%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}
.ssv-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 10px 10px 12px;
}
.ssv-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ssv-card.ssv-active .ssv-num {
  color: var(--accent);
}
.ssv-name {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.ssv-ep-count {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 3px;
}
.ssv-active-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 122, 255, 0.7);
}
.ssv-card.ssv-active .ssv-active-badge {
  display: flex;
}
.ssv-active-badge svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #000;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.ssv-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s;
}
.ssv-card:hover .ssv-play-overlay {
  opacity: 1;
}
.ssv-play-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 122, 255, 0.92);
  color: #000;
  border: none;
  border-radius: 9px;
  padding: 9px 18px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
  transition:
    transform 0.18s,
    background 0.18s;
}
.ssv-play-btn:hover {
  background: #fff;
  transform: scale(1.05);
}
.ssv-play-btn svg {
  width: 13px;
  height: 13px;
  fill: #000;
}
.episode-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px 120px;
  background: transparent;
}
.episode-card {
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  z-index: 1;
}
.episode-card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.episode-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  z-index: 10;
  filter: none;
  transform: translateX(3px);
}
.episode-card.next-ep {
  background: rgba(0, 122, 255, 0.07);
  border-color: rgba(0, 122, 255, 0.2);
}
.episode-card.next-ep::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: none;
  z-index: 6;
  border-radius: 0;
}
.episode-card.watched {
  opacity: 0.32;
}
.episode-card.watched:hover {
  opacity: 0.6;
}
.episode-card.kb-focus {
  outline: 1.5px solid
    color-mix(in srgb, var(--accent, #007aff) 50%, transparent);
  outline-offset: -1.5px;
}
.ep-thumb {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #080812;
  flex-shrink: 0;
  border-radius: 0;
}
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(0.85);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.3s ease;
}
.episode-card:hover .ep-thumb img {
  transform: scale(1.08);
  filter: brightness(0.55) saturate(0.7);
}
.ep-thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.episode-card:hover .ep-thumb::after {
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0, transparent 100%);
}
.ep-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 3;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.56rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-shadow: 0 1px 8px #000;
}
.next-ep .ep-badge {
  color: var(--accent);
}
.ep-next-tag {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  border-radius: 3px;
  box-shadow: none;
}
.next-ep .ep-next-tag {
  display: block;
}
.ep-seen-dot {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(80, 220, 130, 0.9);
  opacity: 0;
  transition: opacity 0.22s;
  z-index: 2;
}
.watched .ep-seen-dot {
  opacity: 1;
}
.ep-hover-play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0,0,0,0.15);
}
.episode-card:hover .ep-hover-play {
  opacity: 1;
}
.ep-play-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.ep-play-ring:hover {
  background: #fff;
  transform: scale(1.1);
}
.ep-play-ring:hover svg {
  fill: #000;
}
.ep-play-ring svg {
  width: 13px;
  height: 13px;
  fill: #111;
  margin-left: 3px;
}























.spoiler-blur .ep-thumb img {
  filter: blur(20px) brightness(0.3) saturate(0);
}
.spoiler-label {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
}
.ep-body {
  flex: 1;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ep-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ep-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.next-ep .ep-num {
  color: var(--accent);
}
.ep-runtime {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.22);
}
.ep-rating {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 200, 60, 0.6);
}
/* Netflix right-side play chevron */
.episode-card::after {
  content: "";
  width: 44px;
  min-width: 44px;
  height: 100%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.15s;
}
.episode-card:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}
.ep-title {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  transition: color 0.15s;
}
.episode-card:hover .ep-title {
  color: #fff;
  white-space: nowrap;
}
.ep-desc {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  opacity: 1;
  max-height: 44px;
}
.episode-card:hover .ep-desc {
  color: rgba(255, 255, 255, 0.58);
}
.ep-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s 20ms ease,
    margin-top 0.22s ease;
}
.episode-card:hover .ep-actions {
  max-height: 34px;
  opacity: 1;
  overflow: visible;
  margin-top: 7px;
}
.ep-btn-play-hbo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 7px;
  padding: 6px 16px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.18s;
}
.ep-btn-play-hbo:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: scale(1.02);
}
.ep-btn-mark {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}
.ep-btn-mark:hover {
  background: rgba(80, 230, 140, 0.12);
  border-color: rgba(80, 230, 140, 0.5);
  color: rgba(80, 230, 140, 0.9);
}
.watched .ep-btn-mark {
  background: rgba(80, 230, 140, 0.1);
  border-color: rgba(80, 230, 140, 0.4);
  color: rgba(80, 230, 140, 0.75);
}
.ep-btn-play {
  display: none;
}
.ep-thumb-title {
  display: none;
}
.ep-name {
  display: none;
}
.ep-progress-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 5;
}
.ep-progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
  box-shadow: 0 0 8px
    color-mix(in srgb, var(--accent, #007aff) 60%, transparent);
}
.ep-card-partial .ep-num {
  color: var(--accent);
}
.episode-grid > div[style*="grid-column"] {
  grid-column: 1/-1;
}
.shuffle-highlight {
  background: color-mix(in srgb, var(--accent, #007aff) 5%, #0e0e16) !important;
  box-shadow: inset 0 0 0 1.5px
    color-mix(in srgb, var(--accent, #007aff) 45%, transparent) !important;
}
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.confirm-overlay.open {
  display: flex;
}
.confirm-overlay.visible {
  opacity: 1;
}
.confirm-box {
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px 24px;
  width: min(360px, 90vw);
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.85);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-overlay.visible .confirm-box {
  transform: scale(1) translateY(0);
}
.confirm-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.confirm-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.confirm-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.confirm-btns {
  display: flex;
  gap: 8px;
}
.confirm-ok {
  flex: 1;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 11px;
  cursor: pointer;
  transition: opacity 0.18s;
}
.confirm-ok:hover {
  opacity: 0.88;
}
.confirm-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 11px;
  cursor: pointer;
  transition: all 0.18s;
}
.confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.next-ep-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
  pointer-events: none;
}
.next-ep-overlay.open {
  display: flex;
}
.next-ep-toast {
  background: rgba(10, 10, 14, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 20px 24px;
  width: min(440px, 92vw);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transform: translateY(100px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.35s ease;
}
.next-ep-overlay.open .next-ep-toast {
  transform: translateY(0);
  opacity: 1;
}
.next-ep-thumb {
  width: 72px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
  position: relative;
}
.next-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.next-ep-info {
  flex: 1;
  min-width: 0;
}
.next-ep-label {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.next-ep-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.9);
  animation: dotPulse 2s ease-in-out infinite;
}
.next-ep-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
  color: #fff;
}
.next-ep-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.next-ep-countdown {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 50px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.next-ep-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.next-ep-play {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.next-ep-play:hover {
  opacity: 0.88;
  transform: scale(1.03);
}
.next-ep-dismiss {
  background: 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  text-align: center;
}
.next-ep-dismiss:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.mf-fab {
  position: fixed;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
}
.mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.mf-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0,
    transparent 55%
  );
  border-radius: inherit;
  pointer-events: none;
}
.mf-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s;
  opacity: 0.55;
}
.mf-fab:hover .mf-fab-icon {
  transform: translateY(-4px) scale(1.07);
}
.mf-fab:hover .mf-fab-label {
  opacity: 1;
}
.mf-fab:active .mf-fab-icon {
  transform: scale(0.94);
}
.watchlist-fab {
  left: 96px;
}
.watchlist-fab .mf-fab-icon {
  background: rgba(10, 12, 28, 0.94);
  border: 1px solid rgba(100, 160, 255, 0.35);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(100, 160, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.watchlist-fab .mf-fab-label {
  color: rgba(100, 160, 255, 0.85);
}
.watchlist-fab:hover .mf-fab-icon {
  border-color: rgba(100, 160, 255, 0.7);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(100, 160, 255, 0.2);
}
.watchlist-fab svg {
  width: 22px;
  height: 22px;
  color: rgba(100, 160, 255, 0.85);
  transition:
    color 0.2s,
    filter 0.2s;
}
.watchlist-fab:hover svg {
  color: #64a0ff;
  filter: drop-shadow(0 0 6px rgba(100, 160, 255, 0.7));
}
.watchlist-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  background: var(--accent);
  color: #000;
  font-size: 0.56rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.watchlist-fab-badge.visible {
  display: flex;
}
.watchlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}
.watchlist-overlay.open {
  display: flex;
}
.watchlist-overlay.visible {
  opacity: 1;
}
.watchlist-box {
  background: rgba(11, 11, 11, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 32px 28px;
  width: min(560px, 94vw);
  max-height: 85vh;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.85);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.watchlist-overlay.visible .watchlist-box {
  transform: translateY(0) scale(1);
}
.wl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.wl-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.wl-title span {
  color: var(--accent);
}
.wl-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.18s;
}
.wl-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}
.wl-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.wl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
  padding-right: 4px;
}
.wl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  transition: background 0.18s;
}
.wl-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.wl-item-thumb {
  width: 52px;
  height: 32px;
  border-radius: 7px;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
}
.wl-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wl-item-info {
  flex: 1;
  min-width: 0;
}
.wl-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-item-meta {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
}
.wl-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.wl-search-btn {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.wl-search-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.wl-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 60, 60, 0.08);
  border: 1px solid rgba(255, 60, 60, 0.2);
  color: rgba(255, 100, 100, 0.7);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.wl-remove-btn:hover {
  background: rgba(255, 60, 60, 0.2);
  color: #ff6464;
}
.rating-overlay {
  position: fixed;
  bottom: 90px;
  right: 18px;
  z-index: 600;
  display: none !important;
  opacity: 0;
  transition:
    opacity 0.28s,
    transform 0.32s cubic-bezier(0.34, 1.25, 0.64, 1);
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
}
.rating-overlay.open {
  display: none !important;
  pointer-events: none;
}
.rating-overlay.visible {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
}
.rating-box {
  background: rgba(14, 14, 16, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px 16px 12px;
  width: 260px;
  text-align: left;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 122, 255, 0.06);
  backdrop-filter: blur(8px);
}
.rating-movie-thumb {
  width: 100%;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 10px;
  position: relative;
}
.rating-movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rating-movie-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.8) 0, transparent 60%);
}
.rating-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}
.rating-subtitle {
  font-size: 0.62rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.rating-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.rating-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.rating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.rating-btn:hover {
  transform: scale(1.04);
}
.rating-btn.loved.selected,
.rating-btn.loved:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.4);
}
.rating-btn.liked.selected,
.rating-btn.liked:hover {
  background: rgba(100, 200, 255, 0.08);
  border-color: rgba(100, 200, 255, 0.3);
}
.rating-btn.ok.selected,
.rating-btn.ok:hover {
  background: rgba(10, 132, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.3);
}
.rating-btn.meh.selected,
.rating-btn.meh:hover {
  background: rgba(255, 100, 100, 0.08);
  border-color: rgba(255, 100, 100, 0.3);
}
.rating-btn-emoji {
  font-size: 1.3rem;
}
.rating-btn-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted);
}
.rating-skip {
  background: 0 0;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.18s;
  display: block;
  margin: 0 auto;
}
.rating-skip:hover {
  color: var(--muted);
}
.export-trigger,
.import-trigger {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  z-index: 500;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.export-trigger {
  right: 20px;
}
.import-trigger {
  right: 70px;
}
.export-trigger:hover,
.import-trigger:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  transform: scale(1.06);
}
.wrapped-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.wrapped-overlay.open {
  display: flex;
}
.wrapped-overlay.visible {
  opacity: 1;
}
.wrapped-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.5s cubic-bezier(0.34, 1.1, 0.64, 1);
  pointer-events: none;
}
.wrapped-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.wrapped-slide.exit {
  opacity: 0;
  transform: translateX(-60px);
}
.wrapped-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wrapped-content {
  position: relative;
  z-index: 1;
}
.wrapped-emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}
.wrapped-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}
.wrapped-number {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 8px;
}
.wrapped-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}
.wrapped-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}
.wrapped-progress {
  display: flex;
  gap: 6px;
  margin-top: 32px;
  justify-content: center;
}
.wrapped-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}
.wrapped-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
.wrapped-tap-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  animation: pulseHint 2s ease-in-out infinite;
}
@keyframes pulseHint {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}
.wrapped-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.wrapped-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.ai-film-link {
  color: var(--accent);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1.5px solid rgba(0, 122, 255, 0.35);
  transition: all 0.18s;
  padding: 0 2px;
  border-radius: 3px;
  text-decoration: none;
  display: inline;
}
.ai-film-link:hover {
  background: rgba(0, 122, 255, 0.1);
  border-bottom-color: var(--accent);
}
.ai-fab {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom, 28px));
  left: 22px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  box-shadow:
    0 8px 32px rgba(0, 122, 255, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-fab:hover {
  transform: scale(1.09) rotate(-3deg);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.5);
}
.ai-fab.open {
  transform: scale(0.9) rotate(45deg);
  border-radius: 50%;
}
.ai-fab svg {
  width: 26px;
  height: 26px;
}
.ai-fab .fab-label {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.stats-fab {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  left: 160px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
}
.stats-fab .mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 10, 28, 0.94);
  border: 1px solid rgba(160, 100, 255, 0.35);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(160, 100, 255, 0.06) inset;
  backdrop-filter: blur(20px);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.stats-fab .mf-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0,
    transparent 55%
  );
  border-radius: inherit;
  pointer-events: none;
}
.stats-fab .mf-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(160, 100, 255, 0.85);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.stats-fab:hover .mf-fab-icon {
  transform: translateY(-4px) scale(1.07);
  border-color: rgba(160, 100, 255, 0.7);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(160, 100, 255, 0.25);
}
.stats-fab:hover .mf-fab-label {
  opacity: 1;
}
.stats-fab:active .mf-fab-icon {
  transform: scale(0.94);
}
.stats-fab svg {
  width: 22px;
  height: 22px;
  color: rgba(160, 100, 255, 0.85);
  transition:
    color 0.2s,
    filter 0.2s;
}
.stats-fab:hover svg {
  color: #a064ff;
  filter: drop-shadow(0 0 6px rgba(160, 100, 255, 0.7));
}
.ai-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: #07070a;
  flex-direction: row;
}
.ai-fullscreen.open {
  display: flex;
}
.ai-fullscreen.visible {
  opacity: 1;
}
.ai-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.ai-sidebar::-webkit-scrollbar {
  width: 3px;
}
.ai-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
@media (max-width: 680px) {
  .ai-sidebar {
    display: none;
  }
}
.ai-sidebar-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-sidebar-logo {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.ai-sidebar-logo span {
  color: var(--accent);
}
.ai-status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.18s;
}
.ai-status-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.25);
}
.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.6);
}
.ai-status-dot.warn {
  background: #ffbe00;
  box-shadow: 0 0 6px rgba(255, 190, 0, 0.6);
}
.ai-status-dot.error {
  background: #ff4f4f;
  box-shadow: 0 0 6px rgba(255, 80, 80, 0.6);
}
.ai-status-info {
  min-width: 0;
}
.ai-status-model {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-status-sub {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 1px;
}
.ai-sidebar-section {
  padding: 14px 18px 8px;
  flex-shrink: 0;
}
.ai-sidebar-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.ai-watch-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 10px;
  min-height: 0;
  max-height: 280px;
}
.ai-watch-list::-webkit-scrollbar {
  width: 3px;
}
.ai-watch-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.ai-watch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.ai-watch-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ai-watch-poster {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.ai-watch-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-watch-info {
  min-width: 0;
  flex: 1;
}
.ai-watch-name {
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.ai-watch-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.ai-watch-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.ai-watch-pct {
  font-size: 0.55rem;
  color: var(--muted);
  flex-shrink: 0;
}
.ai-watch-progress-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ai-sidebar-profile {
  border-top: 1px solid var(--border);
  padding: 14px;
  flex-shrink: 0;
}
.ai-profile-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ai-profile-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  line-height: 1.5;
  padding: 9px 11px;
  resize: none;
  height: 80px;
  transition: border-color 0.18s;
  outline: 0;
}
.ai-profile-textarea:focus {
  border-color: rgba(0, 122, 255, 0.35);
}
.ai-profile-textarea::placeholder {
  color: var(--muted);
}
.ai-profile-save {
  margin-top: 6px;
  width: 100%;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 8px;
  color: var(--accent);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 7px;
  cursor: pointer;
  transition: all 0.18s;
}
.ai-profile-save:hover {
  background: rgba(0, 122, 255, 0.18);
}
.ai-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ai-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-topbar-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  flex: 1;
}
.ai-topbar-title span {
  color: var(--accent);
}
.ai-topbar-sub {
  font-size: 0.6rem;
  color: var(--muted);
  display: block;
  font-weight: 400;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.ai-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.18s;
  flex-shrink: 0;
}
.ai-topbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}
.ai-topbar-btn.tts-on {
  color: var(--accent);
  border-color: rgba(0, 122, 255, 0.3);
  background: rgba(0, 122, 255, 0.06);
}
.ai-quick-row {
  display: flex;
  gap: 7px;
  padding: 10px 18px;
  overflow-x: auto;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.ai-quick-row::-webkit-scrollbar {
  display: none;
}
.ai-quick-btn {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.ai-quick-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
}
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-messages::-webkit-scrollbar {
  width: 4px;
}
.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.ai-msg-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 760px;
}
.ai-msg-wrap.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.ai-msg-wrap.ai {
  align-self: flex-start;
}
.ai-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.ai-msg-wrap.ai .ai-msg-avatar {
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: var(--accent);
}
.ai-msg-wrap.user .ai-msg-avatar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.ai-msg-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: calc(100% - 50px);
}
.ai-msg-wrap.ai .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
}
.ai-msg-wrap.user .ai-msg-bubble {
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 16px 4px 16px 16px;
  color: var(--text);
}
.ai-msg-label {
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.ai-msg-feedback {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.ai-fb-btn {
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.18s;
}
.ai-fb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.ai-thinking-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ai-thinking-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.ai-thinking-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: thinkDot 1.2s ease-in-out infinite;
}
.ai-thinking-bubble span:nth-child(2) {
  animation-delay: 0.2s;
}
.ai-thinking-bubble span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes thinkDot {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
.ai-add-form {
  margin: 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.06);
  border: 1px solid rgba(0, 122, 255, 0.2);
  display: none;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.ai-add-form.visible {
  display: flex;
}
.ai-add-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  padding: 8px 11px;
  outline: 0;
  transition: border-color 0.18s;
}
.ai-add-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.ai-add-confirm-btn {
  flex-shrink: 0;
  background: rgba(0, 122, 255, 0.15);
  border: 1px solid rgba(0, 122, 255, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.ai-add-confirm-btn:hover {
  background: rgba(0, 122, 255, 0.25);
}
.ai-input-area {
  padding: 14px 18px max(18px, env(safe-area-inset-bottom, 18px));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 8px 8px 16px;
  transition: border-color 0.18s;
}
.ai-input-row:focus-within {
  border-color: rgba(0, 122, 255, 0.3);
}
.ai-input {
  flex: 1;
  background: 0 0;
  border: none;
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  outline: 0;
  resize: none;
  max-height: 140px;
  min-height: 24px;
  padding: 4px 0;
}
.ai-input::placeholder {
  color: var(--muted);
}
.ai-input-actions {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}
.ai-voice-fab-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  font-size: 1rem;
}
.ai-voice-fab-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
}
.ai-voice-fab-btn.listening {
  background: rgba(0, 122, 255, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}
.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.ai-send-btn:hover {
  transform: scale(1.08);
}
.ai-send-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.ai-apikey-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}
.ai-apikey-overlay.open {
  display: flex;
}
.ai-apikey-overlay.visible {
  opacity: 1;
}
.ai-apikey-box {
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 30px 28px;
  width: min(460px, 90vw);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-apikey-overlay.visible .ai-apikey-box {
  transform: scale(1) translateY(0);
}
.ai-apikey-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.ai-apikey-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.ai-apikey-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.ai-key-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ai-key-tab {
  flex: 1;
  padding: 10px 6px 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  line-height: 1.2;
  letter-spacing: 0;
}
.ai-key-tab.active {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.35);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.12);
}
.ai-key-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
}
.ai-key-panel {
  display: none;
}
.ai-key-panel.active {
  display: block;
}
.ai-key-desc {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ai-key-desc a {
  color: var(--accent);
  text-decoration: none;
}
.ai-apikey-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  padding: 12px 14px;
  outline: 0;
  margin-bottom: 10px;
  transition: border-color 0.18s;
}
.ai-apikey-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.ai-apikey-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.ai-apikey-btn {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #000;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 13px;
  cursor: pointer;
  transition: opacity 0.18s;
  margin-bottom: 8px;
}
.ai-apikey-btn:hover {
  opacity: 0.88;
}
.ai-apikey-skip {
  width: 100%;
  background: 0 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  padding: 10px;
  cursor: pointer;
  transition: all 0.18s;
}
.ai-apikey-skip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.ai-apikey-note {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.ai-voice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(28px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.28s;
}
.ai-voice-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  border: 2px solid rgba(0, 122, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: voicePulse 1.5s ease-in-out infinite;
}
@keyframes voicePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.25);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 18px rgba(0, 122, 255, 0);
  }
}
.ai-voice-text {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.ai-voice-transcript {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  max-width: 80%;
}
.ai-voice-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  max-width: 80%;
}
.ai-voice-cancel {
  padding: 10px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s;
}
.ai-voice-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.listening {
  border-left: 4px solid #007aff;
  box-shadow: inset -4px 0 12px rgba(0, 122, 255, 0.15);
  transition: all 0.3s;
}
body.listening::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #007aff 0, transparent 50%, #007aff 100%);
  z-index: 9999;
  animation: listenPulse 1s ease-in-out infinite;
}
@keyframes listenPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.speech-mic-btn {
  position: fixed;
  top: max(22px, env(safe-area-inset-top, 22px));
  right: 32px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.8);
  border: 2px solid rgba(0, 122, 255, 0.2);
  color: rgba(0, 122, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
}
.speech-mic-btn:hover {
  border-color: rgba(0, 122, 255, 0.6);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.2);
}
.speech-mic-btn.listening {
  background: rgba(0, 122, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 122, 255, 0.5);
  animation: micPulse 0.6s ease-in-out infinite;
}
@keyframes micPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
#ai-voice-bubble-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#ai-voice-bubble-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#ai-voice-bubble-overlay .bubble-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px) saturate(0.4);
}
#ai-bubble-canvas {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  filter: drop-shadow(0 0 60px rgba(0, 122, 255, 0.35))
    drop-shadow(0 0 120px rgba(0, 122, 255, 0.15));
}
#ai-bubble-label {
  position: absolute;
  bottom: calc(50% - 160px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 122, 255, 0.8);
  text-shadow: 0 0 20px rgba(0, 122, 255, 0.6);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
#ai-voice-bubble-overlay.active #ai-bubble-label {
  opacity: 1;
}
#ai-bubble-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  pointer-events: auto;
}
#ai-bubble-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}
.popular-section {
  display: none !important;
}
.popular-section.visible {
  opacity: 1;
  pointer-events: auto;
}
.popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.popular-label {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.popular-tabs {
  display: flex;
  gap: 4px;
}
.pop-tab {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: 0 0;
  color: var(--muted);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.54rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.pop-tab.active {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
}
.popular-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.popular-list::-webkit-scrollbar {
  display: none;
}
.pop-item {
  flex-shrink: 0;
  width: 52px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.22s,
    box-shadow 0.22s;
}
.pop-item:hover {
  transform: translateY(-7px) scale(1.1);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}
.pop-item img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}
.pop-item-name {
  padding: 3px 4px;
  font-size: 0.38rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #0d0d0d;
}
.pop-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.38rem;
  font-weight: 900;
  color: var(--accent);
}
.provider-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.provider-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.provider-pill img {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.adaptive-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition:
    background 1.5s ease,
    opacity 1.5s ease;
  opacity: 0;
}
.adaptive-bg.active {
  opacity: 1;
}
.ps-menu.focus-mode .ps-tile-wrapper:not(.focused) {
  filter: brightness(0.4) saturate(0.3);
  transform: scale(0.96) !important;
  transition:
    filter 0.38s ease,
    transform 0.38s ease;
}
.ps-menu.focus-mode .ps-tile-wrapper.focused {
  transform: translateY(-12px) scale(1.06) !important;
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.tile-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 20;
  background: rgba(8, 8, 14, 0.94);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
.ps-tile-wrapper:hover .tile-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tt-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.tt-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 6px;
}
.tt-genre {
  font-size: 0.5rem;
  color: rgba(0, 122, 255, 0.65);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tt-stars {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 0.58rem;
}
.tt-rating-num {
  font-size: 0.55rem;
  color: rgba(0, 122, 255, 0.7);
  font-weight: 700;
  margin-left: 3px;
}
.tile-bg {
  filter: none;
  transition: transform 0.4s ease !important;
}
.tile-bg.loaded {
  filter: none;
}
.magnetic {
  display: inline-flex;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.wrapped-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow: hidden;
}
.wrapped-overlay.open {
  display: flex;
}
.wrapped-overlay.visible {
  opacity: 1;
}
.wrapped-canvas-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wrapped-poster-blur {
  position: absolute;
  inset: -30px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(0.4);
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.1);
}
.wrapped-poster-blur.vis {
  opacity: 0.35;
}
.wrapped-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.8) 100%
  );
}
.wrapped-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}
.wrapped-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}
.wrapped-slides-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wrapped-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 36px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(80px) scale(0.94);
  transition:
    opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.55s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.wrapped-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.wrapped-slide.exit {
  opacity: 0;
  transform: translateX(-80px) scale(0.96);
  transition:
    opacity 0.38s ease,
    transform 0.38s ease;
}
.w-card {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 44px 48px;
  max-width: 500px;
  width: 100%;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}
.w-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% -10%,
    rgba(0, 122, 255, 0.06) 0,
    transparent 70%
  );
  pointer-events: none;
}
.w-eyebrow {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 22px;
}
.w-emoji {
  font-size: 5rem;
  margin-bottom: 18px;
  display: block;
  animation: emojiFloat 3.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes emojiFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  50% {
    transform: translateY(-10px) rotate(2deg) scale(1.05);
  }
}
.w-number {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 7.5rem;
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 1;
  background: linear-gradient(
    135deg,
    var(--accent) 0,
    rgba(255, 255, 255, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  display: block;
}
.w-number.text {
  font-size: 2.8rem;
  letter-spacing: -2px;
}
.w-number.counting {
  -webkit-text-fill-color: var(--accent);
}
.w-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}
.w-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 auto;
}
.w-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.w-badge {
  padding: 7px 15px;
  border-radius: 50px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.28);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: badgePop 0.5s cubic-bezier(0.34, 1.6, 0.64, 1) backwards;
}
@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(6px);
  }
}
.w-ai-text {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin-top: 18px;
  border-left: 2px solid rgba(0, 122, 255, 0.5);
  padding-left: 16px;
  text-align: left;
}
.w-chart-wrap {
  width: 100%;
  position: relative;
  margin: 18px 0 4px;
}
.w-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.w-bar-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  width: 76px;
  text-align: right;
  flex-shrink: 0;
  text-transform: capitalize;
}
.w-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}
.w-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 122, 255, 0.45));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.w-bar-fill.animated {
  transform: scaleX(1);
}
.w-bar-pct {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--accent);
  width: 28px;
  flex-shrink: 0;
}
.wrapped-nav {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.wrapped-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
  cursor: pointer;
}
.wrapped-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 3px;
}
.w-tap-hint {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.18);
  animation: pulseHint 3s ease-in-out infinite;
  white-space: nowrap;
  z-index: 5;
}
@keyframes pulseHint {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}
.w-spark-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 28px;
  overflow: hidden;
}
.fyi-badge {
  background: rgba(0, 122, 255, 0.2);
  border: 1px solid rgba(0, 122, 255, 0.6);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.2);
}
.fyi-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 20px #000;
  padding: 0 10px;
  line-height: 1.2;
}
.fyi-genre {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(0, 122, 255, 0.9);
  margin-top: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.fyi-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fyi-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.52rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  width: fit-content;
}
.fyi-reroll {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}
.ps-tile-wrapper.kb-focus .fyi-reroll,
.ps-tile-wrapper:hover .fyi-reroll {
  opacity: 1;
}
.fyi-reroll:hover {
  background: rgba(0, 122, 255, 0.15);
  color: var(--accent);
  border-color: rgba(0, 122, 255, 0.3);
  transform: rotate(180deg);
}
.tile-trailer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: #000;
  overflow: hidden;
  border-radius: inherit;
  will-change: opacity;
}
.tr-video-container {
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform;
  overflow: hidden;
  clip-path: inset(8% 0 8% 0);
}
.tr-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400%;
  height: 400%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
  filter: contrast(1.04) saturate(1.08);
}
.tr-video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: transparent;
}
.tile-trailer .tr-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.tile-bg {
  transition: transform 0.4s ease !important;
}
.tile-logo {
  transition: transform 0.35s ease !important;
}
.ps-tile-wrapper.focused .tile-trailer,
.ps-tile-wrapper.kb-focus .tile-trailer {
  z-index: 8 !important;
}
.ps-tile-wrapper.kb-focus .ps-tile {
  transform: perspective(900px) rotateX(0) rotateY(0) scale(1.04)
    translateY(-8px);
  box-shadow:
    0 0 0 2.5px var(--accent),
    0 28px 56px rgba(0, 0, 0, 0.8),
    0 0 36px rgba(0, 122, 255, 0.15);
  border-color: var(--accent);
  filter: brightness(1.1) saturate(1.2);
}
.ps-tile-wrapper.kb-focus .tile-glare {
  opacity: 1;
}
.ps-tile-wrapper.kb-focus .tile-bg {
  transform: scale(1.04);
}
.ps-tile-wrapper.kb-focus .tile-logo {
  transform: translateX(-50%) scale(1.03) !important;
}
.ps-tile-wrapper.kb-focus .tile-watchlist-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.discover-arrow {
  display: none !important;
}
.discover-arrow-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 16px;
  border-radius: 50px;
  background: rgba(8, 8, 12, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.discover-arrow-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 122, 255, 0.06),
    transparent
  );
  animation: searchPillShine 4s ease-in-out infinite;
}
@keyframes searchPillShine {
  0%,
  100%,
  60% {
    left: -100%;
  }
  40% {
    left: 100%;
  }
}
.discover-arrow:hover .discover-arrow-icon {
  background: rgba(10, 10, 16, 0.96);
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(0, 122, 255, 0.07),
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 122, 255, 0.18);
  transform: scale(1.04);
  gap: 12px;
}
.da-lens {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  border: 1.5px solid rgba(0, 122, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  animation: lensBreath 3s ease-in-out infinite;
}
@keyframes lensBreath {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
  50% {
    box-shadow: 0 0 14px 4px rgba(0, 122, 255, 0.18);
  }
}
.discover-arrow:hover .da-lens {
  background: rgba(0, 122, 255, 0.18);
  border-color: rgba(0, 122, 255, 0.7);
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
  transform: scale(1.08) rotate(-8deg);
}
.da-lens svg {
  width: 18px;
  height: 18px;
  color: rgba(0, 122, 255, 0.8);
  transition: all 0.3s;
}
.discover-arrow:hover .da-lens svg {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(0, 122, 255, 0.9));
}
.da-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.da-text-main {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: -0.2px;
  transition: color 0.25s;
}
.da-text-sub {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.25s;
}
.discover-arrow:hover .da-text-main {
  color: var(--accent);
}
.discover-arrow:hover .da-text-sub {
  color: rgba(0, 122, 255, 0.45);
}
.discover-arrow-icon > svg {
  display: none;
}
.genre-editor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.genre-editor-overlay.open {
  display: flex;
}
.genre-editor-overlay.visible .genre-editor-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.genre-editor-box {
  background: #0d0d10;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: min(420px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 122, 255, 0.2) transparent;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.3s;
}
.genre-editor-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.genre-slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.genre-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.genre-slider-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.genre-slider-pct {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--accent);
}
.genre-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
  border-radius: 2px;
}
.genre-editor-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 8px;
}
.genre-editor-save {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}
.genre-editor-save:hover {
  background: #fff;
  transform: scale(1.04);
}
.genre-editor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}
.genre-editor-overlay.open {
  display: flex;
}
.genre-editor-overlay.visible {
  opacity: 1;
}
.genre-editor-box {
  background: #0d0d0f;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  width: min(460px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 122, 255, 0.06);
}
.genre-editor-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.genre-slider-row {
  margin-bottom: 14px;
}
.genre-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.genre-slider-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.genre-slider-pct {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
}
.genre-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
  border-radius: 2px;
}
.genre-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.genre-editor-save {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}
.genre-editor-save:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}
.voice-mode-fab {
  position: fixed;
  bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px));
  left: 22px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
}
.voice-mode-fab .mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 6, 0.95);
  border: 1px solid rgba(80, 255, 140, 0.28);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(80, 255, 140, 0.05) inset;
  backdrop-filter: blur(20px);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  overflow: hidden;
  color: rgba(80, 255, 140, 0.75);
}
.voice-mode-fab .mf-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0,
    transparent 55%
  );
  border-radius: inherit;
  pointer-events: none;
}
.voice-mode-fab .mf-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(80, 255, 140, 0.7);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.voice-mode-fab:hover .mf-fab-icon {
  transform: translateY(-4px) scale(1.07);
  border-color: rgba(80, 255, 140, 0.6);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(80, 255, 140, 0.2);
}
.voice-mode-fab:hover .mf-fab-label {
  opacity: 1;
}
.voice-mode-fab.active .mf-fab-icon {
  border-color: rgba(80, 255, 140, 0.9);
  box-shadow:
    0 0 0 3px rgba(80, 255, 140, 0.15),
    0 8px 30px rgba(80, 255, 140, 0.2);
  animation: voiceFabPulse 1.4s ease-in-out infinite;
  color: #50ff8c;
}
@keyframes voiceFabPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(80, 255, 140, 0.15),
      0 8px 30px rgba(80, 255, 140, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(80, 255, 140, 0.08),
      0 8px 30px rgba(80, 255, 140, 0.3);
  }
}
.voice-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(ellipse at 50% 60%, #030d06 0, #020508 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  gap: 32px;
}
.voice-mode-overlay.open {
  display: flex;
}
.voice-mode-overlay.visible {
  opacity: 1;
}
.vm-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.vm-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(90deg);
}
.vm-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(80, 255, 140, 0.5);
  margin-bottom: -20px;
}
.vm-orb-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}
.vm-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(80, 255, 140, 0.25) 0,
    rgba(20, 120, 60, 0.1) 50%,
    transparent 80%
  );
  border: 1.5px solid rgba(80, 255, 140, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.vm-orb:hover {
  border-color: rgba(80, 255, 140, 0.7);
}
.vm-orb.listening {
  animation: vmOrbPulse 1.2s ease-in-out infinite;
  border-color: rgba(80, 255, 140, 0.8);
  background: radial-gradient(
    circle at 35% 35%,
    rgba(80, 255, 140, 0.35) 0,
    rgba(20, 120, 60, 0.15) 50%,
    transparent 80%
  );
}
@keyframes vmOrbPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(80, 255, 140, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 40px 10px rgba(80, 255, 140, 0.12);
  }
}
.vm-orb-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(80, 255, 140, 0.12);
  animation: vmRingBreath 3s ease-in-out infinite;
}
.vm-orb-ring:nth-child(2) {
  inset: -28px;
  animation-delay: 0.5s;
  opacity: 0.6;
}
.vm-orb-ring:nth-child(3) {
  inset: -42px;
  animation-delay: 1s;
  opacity: 0.3;
}
@keyframes vmRingBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.08;
  }
}
.vm-mic-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(80, 255, 140, 0.5));
}
.vm-transcript {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  max-width: 400px;
  line-height: 1.55;
  min-height: 60px;
  transition: all 0.3s;
}
.vm-status {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(80, 255, 140, 0.55);
}
.vm-commands-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 460px;
  margin-top: -10px;
}
.vm-cmd-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(80, 255, 140, 0.6);
  border: 1px solid rgba(80, 255, 140, 0.18);
  background: rgba(80, 255, 140, 0.04);
}
.vm-tap-hint {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 1px;
}
.customize-overlay {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(28px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.customize-overlay.open {
  display: flex;
}
.customize-overlay.visible {
  opacity: 1;
}
.customize-box {
  background: linear-gradient(160deg, #0d0d12 0, #090910 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  width: min(620px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.93) translateY(20px);
  transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.customize-overlay.visible .customize-box {
  transform: scale(1) translateY(0);
}
.customize-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.customize-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.customize-header-text {
  flex: 1;
}
.customize-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.customize-title span {
  color: var(--accent);
}
.customize-subtitle {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}
.customize-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.customize-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}
.customize-tabs {
  display: flex;
  padding: 0 24px;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.customize-tab {
  padding: 12px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.customize-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.customize-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.6);
}
.customize-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.customize-body::-webkit-scrollbar {
  width: 3px;
}
.customize-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.customize-section {
  margin-bottom: 24px;
}
.customize-section-title {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}
.customize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 7px;
  gap: 12px;
}
.customize-row-left {
  flex: 1;
  min-width: 0;
}
.customize-row-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}
.customize-row-desc {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
}
.accent-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.accent-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s;
  position: relative;
}
.accent-swatch.active {
  border-color: #fff;
  transform: scale(1.15);
}
.accent-swatch.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.8);
}
.font-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.font-option {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.18s;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.font-option.active {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.35);
  color: var(--accent);
}
.font-option:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}
.cust-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.cust-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cust-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.28s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cust-toggle-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.28s;
}
.cust-toggle input:checked + .cust-toggle-slider {
  background: rgba(0, 122, 255, 0.25);
  border-color: rgba(0, 122, 255, 0.45);
}
.cust-toggle input:checked + .cust-toggle-slider::before {
  transform: translateX(18px);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
}
.cust-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
}
.customize-save-bar {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cust-save-btn {
  flex: 1;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.25);
}
.cust-save-btn:hover {
  opacity: 0.88;
  transform: scale(1.01);
}
.cust-reset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.18s;
}
.cust-reset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}
.cust-profile-hint {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.2);
}
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 99100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px) saturate(0.5);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.admin-overlay.open {
  display: flex;
}
.admin-overlay.visible {
  opacity: 1;
}
.admin-box {
  background: linear-gradient(160deg, #0a0a0d 0, #060608 100%);
  border: 1px solid rgba(255, 50, 50, 0.18);
  border-radius: 22px;
  width: min(680px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 50, 50, 0.06) inset;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.admin-overlay.visible .admin-box {
  transform: scale(1) translateY(0);
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(255, 50, 50, 0.12);
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 30, 30, 0.04) 0,
    transparent 100%
  );
}
.admin-header-badge {
  padding: 4px 10px;
  background: rgba(255, 30, 30, 0.15);
  border: 1px solid rgba(255, 30, 30, 0.35);
  border-radius: 6px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f44;
  flex-shrink: 0;
}
.admin-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  flex: 1;
}
.admin-title span {
  color: #f44;
}
.admin-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.admin-close:hover {
  background: rgba(255, 60, 60, 0.12);
  color: #f44;
  border-color: rgba(255, 60, 60, 0.3);
  transform: rotate(90deg);
}
.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 50, 50, 0.15) transparent;
}
.admin-body::-webkit-scrollbar {
  width: 3px;
}
.admin-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-card:hover {
  background: rgba(255, 50, 50, 0.06);
  border-color: rgba(255, 50, 50, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.admin-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.admin-card-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}
.admin-card-desc {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.45;
}
.admin-card.danger:hover {
  background: rgba(255, 50, 50, 0.1);
  border-color: rgba(255, 50, 50, 0.35);
}
.admin-card.danger .admin-card-label {
  color: #f66;
}
.admin-card.success:hover {
  background: rgba(50, 230, 100, 0.08);
  border-color: rgba(50, 230, 100, 0.25);
}
.admin-card.success .admin-card-label {
  color: #50e680;
}
.admin-stats-bar {
  grid-column: 1/-1;
  background: rgba(255, 50, 50, 0.04);
  border: 1px solid rgba(255, 50, 50, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-stat {
  text-align: center;
}
.admin-stat-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #f44;
}
.admin-stat-label {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.admin-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 50, 50, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-version {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.18);
  flex: 1;
}
.admin-logout {
  padding: 9px 18px;
  background: rgba(255, 50, 50, 0.12);
  border: 1px solid rgba(255, 50, 50, 0.28);
  border-radius: 8px;
  color: #f44;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.admin-logout:hover {
  background: rgba(255, 50, 50, 0.22);
}
.admin-fab {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
}
.admin-fab.visible {
  display: flex;
}
.admin-fab .mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(12, 4, 4, 0.95);
  border: 1px solid rgba(255, 50, 50, 0.35);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(255, 50, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f44;
  font-size: 1.3rem;
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.admin-fab:hover .mf-fab-icon {
  transform: translateY(-4px) scale(1.07);
  border-color: rgba(255, 50, 50, 0.7);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(255, 50, 50, 0.2);
}
.admin-fab .mf-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 80, 80, 0.7);
  opacity: 0.6;
}
.customize-fab {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  left: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px 8px 10px;
  border-radius: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.7);
}
.customize-fab .mf-fab-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(120, 80, 255, 0.18);
  border: 1px solid rgba(120, 80, 255, 0.3);
  flex-shrink: 0;
}
.customize-fab .mf-fab-icon::after {
  display: none;
}
.customize-fab .mf-fab-label {
  font-family:
    Inter,
    -apple-system,
    sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}
.customize-fab:hover {
  background: rgba(28, 28, 38, 0.98);
  border-color: rgba(120, 80, 255, 0.4);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(120, 80, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}
.customize-fab:hover .mf-fab-label {
  opacity: 1;
  color: #fff;
}
body.theme-blue {
  --accent: #00b4ff;
  --accent2: #4dd8ff;
}
body.theme-red {
  --accent: #ff3355;
  --accent2: #ff6680;
}
body.theme-green {
  --accent: #00ff88;
  --accent2: #55ffaa;
}
body.theme-orange {
  --accent: #ff7700;
  --accent2: #ffaa44;
}
body.theme-pink {
  --accent: #ff44cc;
  --accent2: #ff88dd;
}
body.theme-white {
  --accent: #ffffff;
  --accent2: #cccccc;
}
body.theme-yellow {
  --accent: #007aff;
  --accent2: #34aadc;
}
body.font-syne * {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
}
body.bg-dark {
  --bg: #060608;
}
body.bg-darker {
  --bg: #020203;
}
body.bg-navy {
  --bg: #04050f;
}
body.bg-warm {
  --bg: #0a0806;
}
body.bg-green-dark {
  --bg: #04080a;
}
body.grain-none::after {
  opacity: 0 !important;
}
body.grain-strong::after {
  opacity: 0.06 !important;
}
body.grain-off::after {
  display: none !important;
}
.screensaver {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  cursor: pointer;
}
.screensaver.open {
  display: flex;
}
.screensaver.visible {
  opacity: 1;
}
.ss-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ss-img {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 2s ease,
    transform 12s ease;
  transform: scale(1.1);
}
.ss-img.active {
  opacity: 0.35;
  transform: scale(1);
}
.ss-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.ss-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.ss-logo {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  opacity: 0.85;
}
.ss-logo span {
  color: var(--accent);
}
.ss-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
  animation: pulseHint 3s ease-in-out infinite;
}
.ss-clock {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  letter-spacing: 2px;
}
.ss-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: pulseHint 3s ease-in-out infinite;
}
.ps-tile-wrapper[data-slug="the-simpsons"] .tile-logo {
  filter: drop-shadow(0 0 18px rgba(255, 200, 0, 0.7))
    drop-shadow(0 4px 24px rgba(0, 0, 0, 1)) !important;
  transform: translateX(-50%) scale(1.08);
}
.ps-tile-wrapper[data-slug="the-simpsons"].kb-focus .tile-logo,
.ps-tile-wrapper[data-slug="the-simpsons"]:hover .tile-logo {
  filter: drop-shadow(0 0 28px rgba(255, 200, 0, 0.9))
    drop-shadow(0 4px 28px rgba(0, 0, 0, 1)) !important;
}
.ps-tile-wrapper[data-slug="family-guy"] .tile-logo {
  filter: drop-shadow(0 0 20px rgba(50, 100, 255, 0.7))
    drop-shadow(0 4px 24px rgba(0, 0, 80, 1)) !important;
  transform: translateX(-50%) scale(1.05);
  max-height: 100px !important;
}
.ps-tile-wrapper[data-slug="family-guy"].kb-focus .tile-logo,
.ps-tile-wrapper[data-slug="family-guy"]:hover .tile-logo {
  filter: drop-shadow(0 0 32px rgba(80, 140, 255, 1))
    drop-shadow(0 0 60px rgba(50, 100, 255, 0.5))
    drop-shadow(0 4px 30px rgba(0, 0, 80, 1)) !important;
  transform: translateX(-50%) scale(1.1) !important;
}
.ps-tile-wrapper[data-slug="south-park"] .tile-logo {
  filter: drop-shadow(0 0 14px rgba(255, 80, 0, 0.55))
    drop-shadow(0 4px 22px rgba(0, 0, 0, 0.95)) !important;
  transform: translateX(-50%) scale(1.07);
}
.ps-tile-wrapper[data-slug="south-park"].kb-focus .tile-logo,
.ps-tile-wrapper[data-slug="south-park"]:hover .tile-logo {
  filter: drop-shadow(0 0 24px rgba(255, 80, 0, 0.8))
    drop-shadow(0 4px 28px rgba(0, 0, 0, 1)) !important;
}
.ps-tile-wrapper[data-slug="futurama"] .tile-logo {
  filter: drop-shadow(0 0 14px rgba(0, 180, 255, 0.55))
    drop-shadow(0 4px 22px rgba(0, 0, 0, 0.95)) !important;
  transform: translateX(-50%) scale(1.06);
}
.ps-tile-wrapper[data-slug="futurama"].kb-focus .tile-logo,
.ps-tile-wrapper[data-slug="futurama"]:hover .tile-logo {
  filter: drop-shadow(0 0 24px rgba(0, 200, 255, 0.8))
    drop-shadow(0 4px 28px rgba(0, 0, 0, 1)) !important;
}
.notif-bell {
  position: fixed;
  top: max(22px, env(safe-area-inset-top, 22px));
  left: 170px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.45);
}
.notif-bell:hover {
  border-color: rgba(0, 122, 255, 0.35);
  color: var(--accent);
  transform: scale(1.08);
}
.notif-bell.has-notifs {
  color: var(--accent);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.2);
  animation: bellRing 2s ease-in-out infinite;
}
@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(12deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(8deg);
  }
  40% {
    transform: rotate(0);
  }
}
.notif-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4040;
  border: 1.5px solid var(--bg);
  display: none;
  font-size: 0;
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.8);
}
.notif-bell-badge.visible {
  display: block;
}
.notif-panel {
  position: fixed;
  top: max(62px, env(safe-area-inset-top, 62px));
  left: 50%;
  right: auto;
  z-index: 200;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 340px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.22s;
}
.notif-panel.open {
  display: flex;
}
.notif-panel.visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.notif-panel-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  flex: 1;
}
.notif-panel-close {
  background: 0 0;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.18s;
}
.notif-panel-close:hover {
  color: var(--text);
}
.notif-panel-list {
  overflow-y: auto;
  max-height: 320px;
  padding: 6px 0;
}
.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: background 0.18s;
  cursor: pointer;
}
.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.notif-item-poster {
  width: 36px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}
.notif-item-info {
  flex: 1;
  min-width: 0;
}
.notif-item-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-ep {
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}
.notif-item-date {
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 1px;
}
.notif-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 20px 14px;
}
.sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}
.sync-overlay.open {
  display: flex;
}
.sync-overlay.visible {
  opacity: 1;
}
.sync-box {
  background: rgba(10, 10, 12, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px 26px;
  width: min(440px, 92vw);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sync-overlay.visible .sync-box {
  transform: scale(1) translateY(0);
}
.sync-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.sync-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  flex: 1;
}
.sync-title span {
  color: var(--accent);
}
.sync-close {
  background: 0 0;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.18s;
}
.sync-close:hover {
  color: var(--text);
}
.sync-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.sync-key-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.sync-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  padding: 10px 12px;
  outline: 0;
  transition: border-color 0.18s;
}
.sync-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.sync-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}
.sync-key-btn {
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.35);
  color: var(--accent);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.sync-key-btn:hover {
  background: rgba(0, 122, 255, 0.22);
}
.sync-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sync-btn-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #000;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 13px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.25);
}
.sync-btn-upload:hover {
  opacity: 0.88;
  transform: scale(1.01);
}
.sync-code-display {
  background: rgba(0, 122, 255, 0.07);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.sync-code-label {
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sync-code-value {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
}
.sync-code-hint {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 6px;
}
.sync-divider {
  text-align: center;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}
.sync-download-row {
  display: flex;
  gap: 8px;
}
.sync-note {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ruleta-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: #06050a;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ruleta-overlay.open {
  display: flex;
}
.ruleta-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0,
      rgba(200, 150, 0, 0.07) 0,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 80% at 0 50%,
      rgba(120, 60, 0, 0.05) 0,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 80% at 100% 50%,
      rgba(80, 40, 120, 0.04) 0,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 50% 100%,
      rgba(200, 100, 0, 0.04) 0,
      transparent 60%
    );
  animation: ruletaBgPulse 8s ease-in-out infinite alternate;
}
@keyframes ruletaBgPulse {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
.ruleta-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.028) 0,
    rgba(0, 0, 0, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
}
.ruleta-bulbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 0;
  overflow: hidden;
  height: 18px;
}
.ruleta-bulb {
  flex: 1;
  height: 18px;
  background: rgba(15, 10, 2, 0.97);
  border-radius: 0 0 50% 50%;
  border-bottom: 1px solid rgba(200, 164, 0, 0.1);
  transition:
    background 80ms,
    box-shadow 80ms;
}
.ruleta-bulb.on {
  background: rgba(255, 200, 0, 0.97);
  box-shadow:
    0 4px 16px rgba(255, 185, 0, 0.9),
    0 0 6px #ffdc00;
}
.ruleta-bulb.on-r {
  background: rgba(255, 65, 0, 0.92);
  box-shadow:
    0 4px 14px rgba(255, 55, 0, 0.75),
    0 0 6px #ff5000;
}
.ruleta-bulb.winner {
  background: var(--accent, #007aff) !important;
  box-shadow:
    0 4px 20px var(--accent, #007aff),
    0 0 10px var(--accent, #007aff) !important;
}
.ruleta-bulbs-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 0;
  overflow: hidden;
  height: 18px;
  transform: scaleY(-1);
}
.ruleta-casino-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  align-items: stretch;
  width: min(1040px, 98vw);
  height: min(680px, 94vh);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 220, 100, 0.06) inset,
    0 2px 0 rgba(255, 220, 100, 0.12) inset,
    0 40px 120px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(200, 150, 0, 0.08);
}
.ruleta-box {
  width: 360px;
  flex-shrink: 0;
  background: rgba(8, 6, 2, 0.99);
  border-right: 1px solid rgba(200, 164, 0, 0.13);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ruleta-box::-webkit-scrollbar {
  display: none;
}
.ruleta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 164, 0, 0.5) 40%,
    rgba(255, 220, 100, 0.8) 50%,
    rgba(200, 164, 0, 0.5) 60%,
    transparent
  );
  pointer-events: none;
  z-index: 5;
}
.ruleta-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle at 0 0,
    rgba(200, 164, 0, 0.04) 0,
    transparent 70%
  );
  pointer-events: none;
}
.ruleta-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  border-radius: 0;
}
.ruleta-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 4px 10px;
  font-size: 0.54rem;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: 2px;
  transition: all 0.18s;
}
.ruleta-close:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.ruleta-spin-count {
  position: absolute;
  top: 13px;
  left: 14px;
  font-size: 0.5rem;
  font-weight: 900;
  color: rgba(200, 164, 0, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s;
}
.ruleta-spin-count.visible {
  opacity: 1;
}
.ruleta-inner-pad {
  padding: 22px 20px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.ruleta-inner-pad::-webkit-scrollbar {
  display: none;
}
.ruleta-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.ruleta-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(200, 164, 0, 0.12) 0,
    rgba(120, 80, 0, 0.06) 100%
  );
  border: 1px solid rgba(200, 164, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(200, 164, 0, 0.06);
}
.ruleta-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.ruleta-title span {
  color: #c8a400;
  text-shadow: 0 0 22px rgba(200, 164, 0, 0.45);
}
.ruleta-subtitle {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 3px;
}
.ruleta-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.ruleta-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.ruleta-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 30px 10px 32px;
  color: #fff;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  outline: 0;
  box-sizing: border-box;
  transition: all 0.22s;
}
.ruleta-search-input:focus {
  border-color: rgba(200, 164, 0, 0.32);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(200, 164, 0, 0.06);
}
.ruleta-search-input::placeholder {
  color: rgba(255, 255, 255, 0.16);
}
.ruleta-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: 0 0;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0.7rem;
  display: none;
  padding: 4px;
  transition: color 0.15s;
}
.ruleta-search-clear:hover {
  color: rgba(255, 255, 255, 0.55);
}
.ruleta-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(8, 6, 2, 0.99);
  border: 1px solid rgba(200, 164, 0, 0.2);
  border-radius: 11px;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9);
  scrollbar-width: none;
}
.ruleta-search-results.open {
  display: block;
}
.ruleta-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.ruleta-search-item:last-child {
  border-bottom: none;
}
.ruleta-search-item:hover {
  background: rgba(200, 164, 0, 0.06);
}
.ruleta-search-item img {
  width: 32px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: #111;
}
.ruleta-search-item-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.ruleta-search-item-meta {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}
.ruleta-search-item-pin {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 800;
  color: #c8a400;
  background: rgba(200, 164, 0, 0.09);
  border: 1px solid rgba(200, 164, 0, 0.22);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ruleta-search-pinned {
  display: none;
  align-items: center;
  gap: 9px;
  background: rgba(200, 164, 0, 0.06);
  border: 1px solid rgba(200, 164, 0, 0.2);
  border-radius: 10px;
  padding: 7px 11px;
  margin-bottom: 10px;
}
.ruleta-search-pinned.visible {
  display: flex;
}
.ruleta-search-pinned-img {
  width: 24px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.ruleta-search-pinned-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #c8a400;
  flex: 1;
}
.ruleta-search-pinned-clear {
  background: 0 0;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0.72rem;
  transition: color 0.15s;
}
.ruleta-search-pinned-clear:hover {
  color: rgba(255, 255, 255, 0.55);
}
.ruleta-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ruleta-filter-btn {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.32);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  text-align: center;
}
.ruleta-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
}
.ruleta-filter-btn.active {
  border-color: rgba(200, 164, 0, 0.45);
  color: #c8a400;
  background: rgba(200, 164, 0, 0.09);
  box-shadow: 0 0 12px rgba(200, 164, 0, 0.09);
}
.ruleta-jackpot {
  text-align: center;
  padding: 10px 0;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.35s cubic-bezier(0.34, 1.5, 0.64, 1);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}
.ruleta-jackpot.visible {
  opacity: 1;
  transform: scale(1);
  height: auto;
  pointer-events: auto;
}
.rj-text {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #c8a400;
  letter-spacing: 4px;
  text-shadow:
    0 0 24px rgba(200, 164, 0, 0.9),
    0 0 50px rgba(200, 164, 0, 0.4);
  animation: jackpotPulse 0.5s ease-in-out infinite alternate;
}
@keyframes jackpotPulse {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}
.rj-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}
.ruleta-croupier {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.ruleta-croupier.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ruleta-croupier-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.ruleta-croupier-text {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.ruleta-result {
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 13px;
  display: none;
  position: relative;
  border: 1px solid rgba(200, 164, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.ruleta-result.visible {
  display: block;
}
.ruleta-result-poster {
  width: 100%;
  overflow: hidden;
  background: #080600;
  position: relative;
  aspect-ratio: 16/9;
}
.ruleta-result-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ruleta-result-poster::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(8, 6, 2, 0.95) 0, transparent 100%);
  z-index: 1;
}
.ruleta-result-info {
  background: rgba(8, 6, 2, 0.97);
  padding: 12px 13px 13px;
  border-top: 1px solid rgba(200, 164, 0, 0.1);
}
.ruleta-result-verdict {
  font-size: 0.38rem;
  font-weight: 900;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(200, 164, 0, 0.55);
  margin-bottom: 5px;
}
.ruleta-result-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.2;
}
.ruleta-result-meta {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ruleta-result-trailer {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.ruleta-result-trailer iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  display: block;
}
.tile-trailer .tr-video-container {
  position: relative;
  overflow: hidden;
  clip-path: inset(8% 0 8% 0);
}
.tile-trailer .tr-video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.disco-card-trailer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.ruleta-result-trailer {
  position: relative;
  margin-top: 0;
  border-radius: 10px;
}
.ruleta-result-trailer::after,
.ruleta-result-trailer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}
.ruleta-result-trailer::before {
  top: 0;
  height: 42px;
  background: linear-gradient(to bottom, #0c0c14 60%, transparent);
}
.ruleta-result-trailer::after {
  bottom: 0;
  height: 52px;
  background: linear-gradient(to top, #0c0c14 60%, transparent);
}
.ruleta-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.ruleta-spin-btn {
  flex: 1;
  min-width: 120px;
  padding: 13px 16px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #c8a400 0, #7a6000 50%, #c8a400 100%);
  background-size: 200% 100%;
  color: #000;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  letter-spacing: 0.8px;
  box-shadow:
    0 4px 22px rgba(200, 164, 0, 0.28),
    0 1px 0 rgba(255, 240, 150, 0.35) inset;
  position: relative;
  overflow: hidden;
}
.ruleta-spin-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 36px rgba(200, 164, 0, 0.45),
    0 1px 0 rgba(255, 240, 150, 0.4) inset;
  background-position: 100% 0;
}
.ruleta-spin-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ruleta-overlay.spinning .ruleta-spin-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  animation: shimmer 0.9s ease-in-out infinite;
}
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.ruleta-again-btn,
.ruleta-play-btn {
  padding: 13px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.ruleta-again-btn.visible,
.ruleta-play-btn.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.ruleta-play-btn:hover {
  background: rgba(200, 164, 0, 0.09);
  color: #c8a400;
  border-color: rgba(200, 164, 0, 0.28);
}
.ruleta-again-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.ruleta-wheel-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  background: rgba(6, 5, 1, 0.98);
  overflow: hidden;
}
.ruleta-wheel-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 65% 65% at 50% 50%,
      rgba(200, 150, 0, 0.07) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 40% at 50% 90%,
      rgba(100, 50, 0, 0.06) 0,
      transparent 60%
    );
}
.ruleta-wheel-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(200, 164, 0, 0.07) 0, transparent 40px),
    linear-gradient(to bottom, rgba(200, 164, 0, 0.06) 0, transparent 40px),
    linear-gradient(to left, rgba(200, 164, 0, 0.07) 0, transparent 40px),
    linear-gradient(to top, rgba(200, 164, 0, 0.06) 0, transparent 40px);
}
.ruleta-wheel-canvas-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}
.ruleta-wheel-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(200, 164, 0, 0.16);
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.ruleta-wheel-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 0, 0.07);
}
.ruleta-wheel-marker {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 20px solid #c8a400;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(200, 164, 0, 0.9));
}
.ruleta-wheel-canvas-wrap canvas {
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 2.5px rgba(200, 164, 0, 0.32),
    0 0 0 5px rgba(0, 0, 0, 0.6),
    0 28px 80px rgba(0, 0, 0, 0.95),
    0 0 70px rgba(200, 164, 0, 0.08);
}
.ruleta-wheel-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 164, 0, 0.12) 0,
    rgba(200, 164, 0, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: wheelGlowPulse 3s ease-in-out infinite alternate;
}
@keyframes wheelGlowPulse {
  from {
    opacity: 0.4;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}
.ruleta-overlay.spinning .ruleta-wheel-canvas-wrap::before {
  animation: wheelGlowSpin 0.55s ease-in-out infinite alternate;
}
@keyframes wheelGlowSpin {
  from {
    background: radial-gradient(
      circle,
      rgba(200, 164, 0, 0.28) 0,
      transparent 60%
    );
  }
  to {
    background: radial-gradient(
      circle,
      rgba(255, 120, 0, 0.15) 0,
      transparent 60%
    );
  }
}
.ruleta-number-strip {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 360px;
}
.rns-num {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}
.rns-num.red {
  background: #7a1515;
}
.rns-num.black {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rns-num.green {
  background: #165230;
}
.rns-num.active-win {
  box-shadow:
    0 0 12px #c8a400,
    0 0 22px rgba(200, 164, 0, 0.5);
  transform: scale(1.3);
}
.ruleta-lever {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  width: 38px;
}
.lever-pole {
  width: 7px;
  height: 60px;
  background: linear-gradient(to bottom, #e0b800, #7a6200, #e0b800);
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
  transform-origin: bottom center;
  box-shadow:
    2px 0 10px rgba(0, 0, 0, 0.6),
    inset 1px 0 0 rgba(255, 240, 100, 0.2);
}
.lever-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff7070, #c03030, #7a1010);
  border: 2px solid rgba(255, 110, 110, 0.4);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
}
.lever-base {
  width: 32px;
  height: 12px;
  background: linear-gradient(to bottom, #3a2a00, #1a1200);
  border-radius: 4px 4px 7px 7px;
  border: 1px solid rgba(200, 164, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}
.ruleta-lever:hover .lever-pole {
  transform: rotate(-8deg);
}
.ruleta-lever.pulled .lever-pole {
  transform: rotate(35deg);
  transition: transform 0.14s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.ruleta-wheel-label {
  font-size: 0.38rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(200, 164, 0, 0.3);
  text-align: center;
}
.ai-croupier-bubble {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 6, 2, 0.98);
  border: 1px solid rgba(200, 164, 0, 0.3);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  display: none;
  white-space: nowrap;
  z-index: 10;
  animation: bubblePop 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(200, 164, 0, 0.09);
}
@keyframes bubblePop {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.75);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.ruleta-box.shake {
  animation: boxShake 0.38s ease;
}
@keyframes boxShake {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateX(-6px) rotate(-0.4deg);
  }
  60% {
    transform: translateX(6px) rotate(0.4deg);
  }
}
@media (max-width: 720px) {
  .ruleta-casino-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: auto;
    max-height: 94vh;
    overflow-y: auto;
  }
  .ruleta-box {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(200, 164, 0, 0.12);
  }
  .ruleta-wheel-section {
    width: 100%;
    padding: 20px 0;
  }
  .ruleta-wheel-canvas-wrap {
    width: 270px;
    height: 270px;
  }
  .ruleta-wheel-canvas-wrap canvas {
    width: 270px !important;
    height: 270px !important;
  }
}
@keyframes ruletaGlowPulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
.ruleta-fab {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  left: 224px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
}
.ruleta-fab .mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(18, 14, 6, 0.98) 0,
    rgba(12, 10, 4, 0.99) 100%
  );
  border: 1px solid rgba(200, 164, 0, 0.38);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(200, 164, 0, 0.08) inset,
    0 1px 0 rgba(255, 220, 100, 0.12) inset;
  backdrop-filter: blur(20px);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.ruleta-fab .mf-fab-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 164, 0, 0.07) 0,
    transparent 60%
  );
  pointer-events: none;
}
.ruleta-fab .mf-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0,
    transparent 55%
  );
  border-radius: inherit;
  pointer-events: none;
}
.ruleta-fab .mf-fab-label,
.ruleta-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(200, 164, 0, 0.85);
  opacity: 0.6;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.ruleta-fab:hover .mf-fab-icon,
.ruleta-fab:hover .ruleta-fab-inner-icon-wrap {
  transform: translateY(-4px) scale(1.07);
  border-color: rgba(200, 164, 0, 0.7);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(200, 164, 0, 0.22);
}
.ruleta-fab:hover .mf-fab-label,
.ruleta-fab:hover .ruleta-fab-label {
  opacity: 1;
}
.ruleta-fab:active .mf-fab-icon {
  transform: scale(0.94);
}
.ruleta-fab-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(200, 164, 0, 0.9);
  filter: drop-shadow(0 0 4px rgba(200, 164, 0, 0.4));
  transition: all 0.28s;
}
.ruleta-fab:hover .ruleta-fab-icon {
  color: #c8a400;
  filter: drop-shadow(0 0 8px rgba(200, 164, 0, 0.75));
  animation: reelSpin 1.8s linear infinite;
}
.ruleta-fab:active .ruleta-fab-icon {
  animation: reelSpin 0.45s linear infinite;
}
@keyframes reelSpin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.trakt-fab {
  position: fixed;
  bottom: max(190px, env(safe-area-inset-bottom, 190px));
  right: 18px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid rgba(237, 95, 52, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(237, 95, 52, 0.15);
  transition: all 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
  padding: 0;
  overflow: hidden;
}
.trakt-fab:hover {
  border-color: rgba(237, 95, 52, 0.9);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(237, 95, 52, 0.4);
  transform: scale(1.1);
}
.trakt-fab svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.trakt-fab .trakt-sync-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ed5f34;
  border: 1.5px solid #1a1a1a;
  display: none;
}
.trakt-fab.connected .trakt-sync-dot {
  display: block;
  animation: traktPulse 2s ease-in-out infinite;
}
@keyframes traktPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
.trakt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.trakt-overlay.open {
  display: flex;
}
.trakt-overlay.visible {
  opacity: 1;
}
.trakt-box {
  background: #111114;
  border: 1px solid rgba(237, 95, 52, 0.25);
  border-radius: 20px;
  width: min(480px, 94vw);
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(237, 95, 52, 0.08),
    0 0 60px rgba(237, 95, 52, 0.06);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.trakt-overlay.visible .trakt-box {
  transform: scale(1) translateY(0);
}
.trakt-box::-webkit-scrollbar {
  display: none;
}
.trakt-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.trakt-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ed5f34, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(237, 95, 52, 0.4);
}
.trakt-logo-wrap svg {
  width: 28px;
  height: 28px;
}
.trakt-header-text h2 {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 2px;
  letter-spacing: -0.3px;
}
.trakt-header-text p {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.trakt-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: 0 0;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0.65rem;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}
.trakt-close:hover {
  color: #ed5f34;
  border-bottom-color: rgba(237, 95, 52, 0.4);
}
.trakt-body {
  padding: 20px 24px 24px;
}
.trakt-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.trakt-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s;
}
.trakt-status.ok .trakt-status-dot {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}
.trakt-status.pending .trakt-status-dot {
  background: #f39c12;
  animation: traktPulse 1s infinite;
}
.trakt-status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
}
.trakt-status.ok .trakt-status-text {
  color: rgba(255, 255, 255, 0.85);
}
.trakt-status-user {
  font-size: 0.65rem;
  color: #ed5f34;
  font-weight: 800;
}
.trakt-section {
  margin-bottom: 20px;
}
.trakt-section-title {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}
.trakt-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  border: none;
  letter-spacing: 0.2px;
}
.trakt-btn-primary {
  background: linear-gradient(135deg, #ed5f34, #c0392b);
  color: #fff;
  box-shadow: 0 4px 20px rgba(237, 95, 52, 0.35);
}
.trakt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(237, 95, 52, 0.5);
}
.trakt-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}
.trakt-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.trakt-btn-danger {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: rgba(231, 76, 60, 0.7);
  margin-top: 8px;
}
.trakt-btn-danger:hover {
  background: rgba(231, 76, 60, 0.15);
  color: rgba(231, 76, 60, 0.95);
}
.trakt-pin-wrap {
  display: none;
  margin-top: 14px;
}
.trakt-pin-wrap.visible {
  display: block;
}
.trakt-pin-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  font-weight: 600;
}
.trakt-pin-row {
  display: flex;
  gap: 8px;
}
.trakt-pin-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(237, 95, 52, 0.3);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  outline: 0;
  transition: border-color 0.2s;
}
.trakt-pin-input:focus {
  border-color: #ed5f34;
  box-shadow: 0 0 0 2px rgba(237, 95, 52, 0.15);
}
.trakt-pin-submit {
  background: #ed5f34;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.trakt-pin-submit:hover {
  background: #c0392b;
}
.trakt-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.trakt-stat-card {
  background: rgba(237, 95, 52, 0.06);
  border: 1px solid rgba(237, 95, 52, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.trakt-stat-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ed5f34;
  line-height: 1;
}
.trakt-stat-lbl {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.trakt-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trakt-toggle-row:last-child {
  border-bottom: none;
}
.trakt-toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}
.trakt-toggle-sub {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 2px;
}
.trakt-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.trakt-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.trakt-toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: all 0.3s;
}
.trakt-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s;
}
.trakt-toggle input:checked + .trakt-toggle-slider {
  background: #ed5f34;
}
.trakt-toggle input:checked + .trakt-toggle-slider::before {
  transform: translateX(16px);
  background: #fff;
}
.ruleta-wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 420px;
  margin: 80px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 40px 20px;
  perspective: 1000px;
  animation: ruletaPulse 3s ease-in-out infinite;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 122, 255, 0.08) 0,
    transparent 70%
  );
  border-radius: 30px;
  border: 1px solid rgba(0, 122, 255, 0.15);
}
@keyframes ruletaPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}
.ruleta-drum {
  position: relative;
  width: 160px;
  height: 380px;
  border: 2px solid rgba(0, 122, 255, 0.8);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 30, 0.95) 0,
    rgba(40, 40, 80, 0.6) 50%,
    rgba(15, 15, 30, 0.95) 100%
  );
  box-shadow:
    0 0 50px rgba(0, 122, 255, 0.35),
    inset 0 0 40px rgba(0, 122, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.ruleta-drum:hover {
  border-color: #007aff;
  box-shadow:
    0 0 70px rgba(0, 122, 255, 0.5),
    inset 0 0 40px rgba(0, 122, 255, 0.12),
    0 20px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(-4px);
}
.ruleta-drum-inner {
  position: absolute;
  width: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 60px 8px;
  transition: transform 50ms linear;
}
.ruleta-item {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.25) 0,
    rgba(0, 122, 255, 0.08) 100%
  );
  border: 1.5px solid rgba(0, 122, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}
.ruleta-item-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  loading: lazy;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.ruleta-drum-inner .ruleta-item:nth-child(2) .ruleta-item-poster {
  opacity: 1;
  filter: brightness(1.1) contrast(1.1);
}
.ruleta-item:hover .ruleta-item-poster {
  opacity: 1;
}
.ruleta-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 8px;
  z-index: 2;
}
.ruleta-item-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  text-align: center;
  width: 100%;
}
.ruleta-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.8rem;
  color: var(--accent);
  z-index: 10;
  filter: drop-shadow(0 0 12px rgba(0, 122, 255, 1))
    drop-shadow(0 0 25px rgba(0, 122, 255, 0.6));
  animation: pointerGlow 1.5s ease-in-out infinite;
}
@keyframes pointerGlow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(0, 122, 255, 0.8),
      0 0 25px rgba(0, 122, 255, 0.4);
  }
  50% {
    text-shadow:
      0 0 20px #007aff,
      0 0 40px rgba(0, 122, 255, 0.6);
  }
}
.ruleta-drum .ruleta-pointer {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  margin-bottom: 10px;
}
.ruleta-drum-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 90px;
  border-top: 2px solid rgba(0, 122, 255, 0.6);
  border-bottom: 2px solid rgba(0, 122, 255, 0.6);
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 122, 255, 0.15) 50%,
    transparent 100%
  );
  z-index: 5;
  pointer-events: none;
  box-shadow:
    0 0 20px rgba(0, 122, 255, 0.2),
    inset 0 -10px 20px rgba(0, 122, 255, 0.1);
}
#spinDrumWrap {
  cursor: pointer;
  user-select: none;
}
#spinDrumWrap:hover {
  border-color: rgba(0, 122, 255, 0.5) !important;
}
.spin-drum-item {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  transition: none;
}
.spin-drum-item img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}
.spin-drum-item-logo {
  width: 110px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}
.spin-drum-item-name {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  flex: 1;
}
.spin-drum-item.winner-item .spin-drum-item-name {
  color: var(--accent);
}
.spin-drum-item.winner-item img {
  box-shadow:
    0 0 20px rgba(0, 122, 255, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.7);
}
.ruleta-wheel-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 164, 0, 0.12) 0,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: wheelGlowPulse 2.5s ease-in-out infinite alternate;
}
@keyframes wheelGlowPulse {
  from {
    opacity: 0.6;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}
.ruleta-overlay.spinning .ruleta-wheel-canvas-wrap::before {
  animation: wheelGlowSpin 0.8s ease-in-out infinite alternate;
}
@keyframes wheelGlowSpin {
  from {
    opacity: 0.8;
    background: radial-gradient(
      circle,
      rgba(200, 164, 0, 0.25) 0,
      transparent 65%
    );
  }
  to {
    opacity: 1;
    background: radial-gradient(
      circle,
      rgba(255, 100, 100, 0.15) 0,
      transparent 65%
    );
  }
}
.ruleta-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}
.rns-num.active-win {
  box-shadow:
    0 0 8px #c8a400,
    0 0 16px rgba(200, 164, 0, 0.5);
  transform: scale(1.25);
  transition: all 0.2s;
}
#_mfUserBadge:hover {
  border-color: rgba(200, 164, 0, 0.5);
  background: rgba(14, 14, 16, 0.98) !important;
  color: #c8a400 !important;
  transform: translateY(-2px);
}
#mfProfileGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% -10%,
      rgba(0, 80, 200, 0.12) 0,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 100%,
      rgba(0, 40, 120, 0.08) 0,
      transparent 50%
    ),
    linear-gradient(160deg, #0a0b12 0, #06070d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: auto;
  padding: 40px 20px;
}
#mfProfileGate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 0%,
    transparent 75%
  );
  z-index: 1;
}
#mfProfileGate::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 122, 255, 0.5) 40%,
    rgba(90, 200, 250, 0.8) 50%,
    rgba(0, 122, 255, 0.5) 60%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}
#mfProfileGate > * {
  position: relative;
  z-index: 2;
}
#mfProfileGate.hiding {
  opacity: 0;
  pointer-events: none;
}
.pg-logo {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 6px;
  animation: pgFadeUp 0.7s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.pg-logo span {
  color: #007aff;
  filter: drop-shadow(0 0 18px rgba(0, 122, 255, 0.7));
}
@keyframes pgFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.pg-title {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 56px;
  letter-spacing: 5px;
  text-transform: uppercase;
  animation: pgFadeUp 0.7s 0.12s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.pg-profiles {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 52px;
  animation: pgFadeUp 0.7s 0.2s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.pg-profile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.pg-avatar {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(28, 28, 42, 0.9) 0, #12121c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  transition: all 0.32s cubic-bezier(0.34, 1.25, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: pgAvatarIn 0.55s cubic-bezier(0.34, 1.25, 0.64, 1) both;
  backdrop-filter: blur(10px);
}
.pg-profile-item:first-child .pg-avatar {
  animation-delay: 0.22s;
}
.pg-profile-item:nth-child(2) .pg-avatar {
  animation-delay: 0.3s;
}
.pg-profile-item:nth-child(3) .pg-avatar {
  animation-delay: 0.38s;
}
.pg-profile-item:nth-child(4) .pg-avatar {
  animation-delay: 0.46s;
}
.pg-profile-item:nth-child(5) .pg-avatar {
  animation-delay: 0.54s;
}
@keyframes pgAvatarIn {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(14px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}
.pg-avatar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0,
    transparent 100%
  );
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 1;
}
.pg-avatar::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pg-color, rgba(0, 122, 255, 0.6));
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.pg-profile-item:hover .pg-avatar::after {
  opacity: 0.55;
}
.pg-profile-item:hover .pg-avatar {
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.08) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.pg-profile-item.active-profile .pg-avatar {
  border-color: var(--pg-color, #007aff);
  box-shadow:
    0 0 0 3px var(--pg-color, #007aff),
    0 0 0 4px rgba(0, 0, 0, 0.6),
    0 12px 50px rgba(0, 0, 0, 0.7);
}
.pg-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.22s;
  letter-spacing: 0.1px;
}
.pg-profile-item:hover .pg-name {
  color: rgba(255, 255, 255, 0.92);
}
.pg-add-btn {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pg-add-btn:hover {
  border-color: rgba(0, 122, 255, 0.45);
  border-style: solid;
  color: rgba(0, 122, 255, 0.85);
  background: rgba(0, 122, 255, 0.07);
  transform: scale(1.05) translateY(-4px);
  box-shadow:
    0 0 0 0.5px rgba(0, 122, 255, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(0, 122, 255, 0.1);
}
.pg-manage-btn {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 9px 28px;
  background: rgba(255, 255, 255, 0.03);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.24s ease;
  animation: pgFadeUp 0.7s 0.38s cubic-bezier(0.34, 1.1, 0.64, 1) both;
  backdrop-filter: blur(20px);
}
.pg-manage-btn:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
#mfPinModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
#mfPinModal.show {
  display: flex;
}
.pm-box {
  background: linear-gradient(160deg, #141418 0, #0e0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 300px;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: pmSlideIn 0.3s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
@keyframes pmSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.pm-avatar {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
  background: #1a1a1e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
.pm-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: -14px;
}
.pm-dots {
  display: flex;
  gap: 14px;
}
.pm-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: 0 0;
  transition: all 0.15s;
}
.pm-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
}
.pm-dot.error {
  background: #f44;
  border-color: #f44;
  animation: pinShake 0.4s ease;
}
@keyframes pinShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.pm-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 220px;
}
.pm-num {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  height: 56px;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-num:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}
.pm-num:active {
  transform: scale(0.96);
}
.pm-num.del {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
}
.pm-cancel {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: 0 0;
  border: none;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  padding: 4px 10px;
  transition: color 0.2s;
}
.pm-cancel:hover {
  color: rgba(255, 255, 255, 0.6);
}
/* ═══ BUG FIX: z-index 100001 > mfProfileGate (99999) ═══
   Původně stejný z-index způsoboval, že modal byl skryt za gate.
   Přidána animace pro lepší UX. */
#mfProfileCreate {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#mfProfileCreate.show {
  display: flex;
  animation: pcFadeIn 0.28s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
@keyframes pcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#mfProfileCreate.show .pc-box {
  animation: pcSlideUp 0.32s cubic-bezier(0.34, 1.28, 0.64, 1) both;
}
@keyframes pcSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pc-box {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 40px;
  width: min(420px, 95vw);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}
.pc-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
}
.pc-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pc-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  outline: 0;
  box-sizing: border-box;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}
.pc-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.pc-emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.pc-emoji-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}
.pc-emoji-btn.selected {
  border-color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
}
.pc-color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pc-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.pc-color-swatch.selected {
  border-color: #fff;
  transform: scale(1.15);
}
.pc-color-swatch::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 900;
  opacity: 0;
}
.pc-color-swatch.selected::after {
  opacity: 1;
}
.pc-pin-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.pc-pin-digit {
  width: 48px;
  height: 52px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  outline: 0;
}
.pc-pin-digit:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.pc-trakt-note {
  font-size: 0.62rem;
  color: rgba(237, 95, 52, 0.7);
  background: rgba(237, 95, 52, 0.06);
  border: 1px solid rgba(237, 95, 52, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.pc-btn-row {
  display: flex;
  gap: 10px;
}
.pc-btn-save {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #007aff, #b8cc00);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  transition: all 0.15s;
}
.pc-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}
.pc-btn-cancel {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.pc-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
#mfProfileBadge {
  position: fixed;
  top: max(11px, env(safe-area-inset-top, 11px));
  right: 16px;
  z-index: 9500;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--plexi-bg);
  border: 1px solid var(--plexi-border);
  border-top-color: var(--plexi-border-top);
  border-radius: 28px;
  padding: 5px 10px 5px 5px;
  cursor: pointer;
  backdrop-filter: var(--plexi-blur);
  -webkit-backdrop-filter: var(--plexi-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.25s ease;
}
#mfProfileBadge:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 40px rgba(0, 0, 0, 0.7);
}
.mpb-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mpb-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.2px;
}
.mpb-arrow {
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.28);
  margin-left: 1px;
}
.trakt-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(237, 95, 52, 0.1);
  border: 1px solid rgba(237, 95, 52, 0.3);
  color: #ed5f34;
  letter-spacing: 0.5px;
}
.trakt-profile-pill.connected {
  background: rgba(237, 95, 52, 0.15);
}
.trakt-profile-pill.disconnected {
  opacity: 0.5;
}
.premiere-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px) saturate(0.5);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.premiere-overlay.open {
  display: flex;
}
.premiere-overlay.visible {
  opacity: 1;
}
.premiere-box {
  background: #090910;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  width: min(860px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.premiere-overlay.visible .premiere-box {
  transform: translateY(0) scale(1);
}
.premiere-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.premiere-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.12),
    rgba(0, 122, 255, 0.04)
  );
  border: 1px solid rgba(0, 122, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.premiere-header-text {
  flex: 1;
}
.premiere-header-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 2px;
}
.premiere-header-title span {
  color: var(--accent);
}
.premiere-header-sub {
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 500;
}
.premiere-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.premiere-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(90deg);
}
.premiere-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.premiere-month-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.premiere-month-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.premiere-month-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  flex: 1;
  text-align: center;
}
.premiere-filter-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.premiere-filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.premiere-filter-chip.active {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
}
.premiere-calendar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.premiere-calendar-body::-webkit-scrollbar {
  width: 3px;
}
.premiere-calendar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.premiere-week-label {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin: 14px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.premiere-day-group {
  margin-bottom: 6px;
}
.premiere-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.premiere-day-date {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s;
}
.premiere-day-date.today {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.35);
}
.premiere-day-date.today .premiere-day-num {
  color: var(--accent);
}
.premiere-day-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}
.premiere-day-name {
  font-size: 0.42rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.premiere-ep-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.premiere-ep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.premiere-ep-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.premiere-ep-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.premiere-ep-item:hover::before {
  opacity: 1;
}
.premiere-ep-item.is-tracked {
  border-color: rgba(0, 122, 255, 0.18);
}
.premiere-ep-item.is-tracked::before {
  opacity: 0.6;
}
.premiere-ep-poster {
  width: 44px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.premiere-ep-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.premiere-ep-info {
  flex: 1;
  min-width: 0;
}
.premiere-ep-show {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.premiere-ep-detail {
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.premiere-ep-badge-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.premiere-ep-badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.premiere-ep-badge.tracked {
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: var(--accent);
}
.premiere-ep-badge.new {
  background: rgba(100, 200, 255, 0.1);
  border: 1px solid rgba(100, 200, 255, 0.25);
  color: rgba(100, 200, 255, 0.9);
}
.premiere-ep-badge.network {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}
.premiere-ep-time {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  font-weight: 600;
}
.premiere-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.premiere-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.premiere-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 14px;
}
.premiere-loading-spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid rgba(0, 122, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.premiere-loading-text {
  font-size: 0.72rem;
  color: var(--muted);
}
.premiere-fab {
  position: fixed;
  bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px));
  left: 90px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
}
.premiere-fab .mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 26, 0.94);
  border: 1px solid rgba(100, 180, 255, 0.32);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(100, 180, 255, 0.06) inset;
  backdrop-filter: blur(20px);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-size: 1.4rem;
}
.premiere-fab .mf-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0,
    transparent 55%
  );
  border-radius: inherit;
  pointer-events: none;
}
.premiere-fab-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.premiere-fab .mf-fab-label,
.premiere-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(100, 180, 255, 0.85);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.premiere-fab:hover .mf-fab-icon {
  transform: translateY(-4px) scale(1.07);
  border-color: rgba(100, 180, 255, 0.65);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(100, 180, 255, 0.2);
}
.premiere-fab:hover .mf-fab-label,
.premiere-fab:hover .premiere-fab-label {
  opacity: 1;
}
.premiere-fab:active .mf-fab-icon {
  transform: scale(0.94);
}
.premiere-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: rgba(0, 122, 255, 0.95);
  color: #000;
  font-size: 0.42rem;
  font-weight: 900;
  border-radius: 50px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.premiere-fab-badge.has-items {
  display: block;
}
.collections-overlay {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px) saturate(0.4);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.collections-overlay.open {
  display: flex;
}
.collections-overlay.visible {
  opacity: 1;
}
.collections-box {
  background: #08080f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  width: min(920px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.95);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.collections-overlay.visible .collections-box {
  transform: translateY(0) scale(1);
}
.collections-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.collections-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 160, 0, 0.15),
    rgba(255, 100, 0, 0.05)
  );
  border: 1px solid rgba(255, 160, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.collections-header-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  flex: 1;
}
.collections-header-title span {
  color: #ffa020;
}
.collections-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.collections-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(90deg);
}
.collections-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.collections-body::-webkit-scrollbar {
  width: 3px;
}
.collections-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.collections-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
}
.collections-breadcrumb-home {
  cursor: pointer;
  color: var(--muted);
  transition: color 0.18s;
}
.collections-breadcrumb-home:hover {
  color: #fff;
}
.collections-breadcrumb-sep {
  opacity: 0.3;
}
.collections-breadcrumb-current {
  color: rgba(255, 160, 0, 0.85);
  font-weight: 700;
}
.collections-grid-view {
  padding: 20px 26px 30px;
}
.collections-grid-label {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.collection-card {
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0e0e18;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.3s,
    border-color 0.25s;
  aspect-ratio: 2/3;
}
.collection-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 160, 0, 0.4);
}
.collection-card-banner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.collection-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collection-card-banner-img:first-child {
  border-radius: 0;
  grid-column: 1/-1;
  height: 60%;
}
.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.97) 0,
    rgba(0, 0, 0, 0.3) 55%,
    transparent 100%
  );
}
.collection-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 14px;
}
.collection-card-universe {
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 160, 0, 0.7);
  margin-bottom: 4px;
}
.collection-card-name {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  line-height: 1.15;
  color: #fff;
}
.collection-card-count {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
}
.collection-card-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
}
.collections-detail-view {
  display: none;
  flex-direction: column;
  flex: 1;
}
.collections-detail-view.active {
  display: flex;
}
.collections-detail-hero {
  position: relative;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #06060a;
}
.collections-detail-hero-bg {
  position: absolute;
  inset: -20px;
  filter: blur(16px) saturate(0.6) brightness(0.4);
  background-size: cover;
  background-position: center;
}
.collections-detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 26px;
  gap: 16px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 15, 0.95) 0,
    rgba(8, 8, 15, 0.3) 60%,
    transparent 100%
  );
}
.collections-detail-icon-big {
  font-size: 3rem;
  flex-shrink: 0;
}
.collections-detail-meta {
  flex: 1;
}
.collections-detail-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}
.collections-detail-subtitle {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}
.collections-detail-films {
  flex: 1;
  overflow-y: auto;
  padding: 16px 26px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.collections-detail-films::-webkit-scrollbar {
  width: 3px;
}
.collections-detail-films::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.collections-film-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s;
  margin-bottom: 5px;
  border: 1px solid transparent;
}
.collections-film-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}
.collections-film-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: rgba(255, 160, 0, 0.4);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.collections-film-poster {
  width: 40px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.collections-film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collections-film-info {
  flex: 1;
  min-width: 0;
}
.collections-film-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.collections-film-meta {
  font-size: 0.6rem;
  color: var(--muted);
}
.collections-film-rating {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fbbf24;
  flex-shrink: 0;
}
.collections-film-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.18s;
  flex-shrink: 0;
}
.collections-film-play:hover {
  background: rgba(255, 160, 0, 0.15);
  color: #ffa020;
  border-color: rgba(255, 160, 0, 0.35);
}
.collections-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
}
.collections-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 160, 0, 0.15);
  border-top-color: #ffa020;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.collections-fab {
  position: fixed;
  bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px));
  left: 158px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
}
.collections-fab .mf-fab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 10, 4, 0.95);
  border: 1px solid rgba(255, 160, 0, 0.32);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 160, 0, 0.06) inset;
  backdrop-filter: blur(20px);
  transition: all 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  overflow: hidden;
  font-size: 1.4rem;
}
.collections-fab .mf-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0,
    transparent 55%
  );
  border-radius: inherit;
  pointer-events: none;
}
.collections-fab-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.collections-fab .mf-fab-label,
.collections-fab-label {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 160, 0, 0.85);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.collections-fab:hover .mf-fab-icon {
  transform: translateY(-4px) scale(1.07);
  border-color: rgba(255, 160, 0, 0.65);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(255, 160, 0, 0.22);
}
.collections-fab:hover .collections-fab-label,
.collections-fab:hover .mf-fab-label {
  opacity: 1;
}
.collections-fab:active .mf-fab-icon {
  transform: scale(0.94);
}
/* ══════════════════════════════════════════════════════
   VOICE — 3D ORB AI ASSISTANT
══════════════════════════════════════════════════════ */
.voice-cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.voice-cmd-overlay.open  { display: flex; }
.voice-cmd-overlay.visible { opacity: 1; }

.voice-cmd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(50px) saturate(1.6);
  -webkit-backdrop-filter: blur(50px) saturate(1.6);
}

/* ── Box ── */
.voice-cmd-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(440px, 92vw);
  padding: 0;
  background: transparent;
  perspective: 800px;
}

/* ── Close ── */
.voice-cmd-close-btn {
  position: absolute;
  top: -8px;
  right: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  z-index: 10;
}
.voice-cmd-close-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ══ JARVIS ORB ══ */
.vc-orb-wrap {
  position: relative;
  width: 240px; height: 240px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* SVG vrstva — prstence + sphere */
.vc-svg-rings {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(0,140,255,0.5));
  animation: svgBreathe 3s ease-in-out infinite;
}
@keyframes svgBreathe {
  0%,100% { filter: drop-shadow(0 0 14px rgba(0,130,255,0.45)); }
  50%      { filter: drop-shadow(0 0 32px rgba(0,180,255,0.75)); }
}
.voice-cmd-overlay.listening .vc-svg-rings {
  animation: svgListening 0.5s ease-in-out infinite alternate;
}
@keyframes svgListening {
  from { filter: drop-shadow(0 0 20px rgba(0,160,255,0.6)); }
  to   { filter: drop-shadow(0 0 50px rgba(0,220,255,1)); }
}

/* Sphere pulsace */
.vc-sphere {
  animation: spherePulse 2.8s ease-in-out infinite;
}
@keyframes spherePulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.88; }
}
.voice-cmd-overlay.listening .vc-sphere {
  animation: sphereActive 0.6s ease-in-out infinite alternate;
}
@keyframes sphereActive {
  from { opacity: 0.9; }
  to   { opacity: 1; }
}

/* Core dot pulsace */
.vc-core-pulse {
  transform-origin: center;
  animation: corePulse 1.6s ease-in-out infinite;
}
@keyframes corePulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.5); opacity: 0.3; }
}

/* Orbitální skupiny */
.vc-ring-g1 { animation: ringOrbit1 7s linear infinite; transform-origin: center; }
.vc-ring-g2 { animation: ringOrbit2 11s linear infinite; transform-origin: center; }
.vc-ring-g3 { animation: ringOrbit3 9s linear infinite; transform-origin: center; }
.vc-ring-g4 { animation: ringOrbit1 18s linear infinite reverse; transform-origin: center; }

@keyframes ringOrbit1 { to { transform: rotateY(360deg); } }
@keyframes ringOrbit2 { to { transform: rotateX(360deg); } }
@keyframes ringOrbit3 {
  0%   { transform: rotate3d(1,1,0, 0deg); }
  100% { transform: rotate3d(1,1,0, 360deg); }
}

/* Orbitální tečky */
.vc-dot-orbit {
  animation: dotGlow 1.4s ease-in-out infinite alternate;
}
@keyframes dotGlow {
  from { opacity: 0.6; r: 2; }
  to   { opacity: 1;   r: 3.5; filter: blur(0.5px); }
}

/* Halo kroužky za SVG */
.vc-orb-halo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,160,255,0.12);
  pointer-events: none;
}
.vc-h1 {
  inset: -22px;
  animation: haloBreath 4s ease-in-out infinite;
}
.vc-h2 {
  inset: -42px;
  border-color: rgba(0,120,255,0.06);
  animation: haloBreath 4s ease-in-out infinite 1s;
}
@keyframes haloBreath {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* Partikly */
.vc-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(100,200,255,0.85);
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0,180,255,0.8);
}
.vc-p1 { width:3px; height:3px; top:8%;  left:58%; animation: pFloat1 3.8s ease-in-out infinite; }
.vc-p2 { width:2px; height:2px; top:78%; left:18%; animation: pFloat2 5.2s ease-in-out infinite 0.4s; }
.vc-p3 { width:4px; height:4px; top:18%; left:82%; animation: pFloat1 3.3s ease-in-out infinite 0.9s; }
.vc-p4 { width:2px; height:2px; top:68%; left:78%; animation: pFloat2 6.1s ease-in-out infinite 0.2s; }
.vc-p5 { width:3px; height:3px; top:88%; left:42%; animation: pFloat1 4.3s ease-in-out infinite 1.4s; }
.vc-p6 { width:2px; height:2px; top:38%; left:4%;  animation: pFloat2 5.8s ease-in-out infinite 0.7s; }
@keyframes pFloat1 {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%      { transform: translateY(-14px) scale(1.6); opacity: 1; }
}
@keyframes pFloat2 {
  0%,100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50%      { transform: translateY(12px) translateX(-8px); opacity: 0.95; }
}

/* ══ WAVEFORM ══ */
.vc-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 24px;
  width: 100%;
}
.vc-wave span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(0,100,255,0.3), rgba(0,160,255,0.9));
  height: 4px;
  animation: vcWaveBar 1s ease-in-out infinite;
  transform-origin: bottom;
}
.vc-wave span:nth-child(1)  { animation-delay: 0s; }
.vc-wave span:nth-child(2)  { animation-delay: 0.07s; }
.vc-wave span:nth-child(3)  { animation-delay: 0.14s; }
.vc-wave span:nth-child(4)  { animation-delay: 0.21s; }
.vc-wave span:nth-child(5)  { animation-delay: 0.28s; }
.vc-wave span:nth-child(6)  { animation-delay: 0.21s; }
.vc-wave span:nth-child(7)  { animation-delay: 0.14s; }
.vc-wave span:nth-child(8)  { animation-delay: 0.07s; }
.vc-wave span:nth-child(9)  { animation-delay: 0s; }
.vc-wave span:nth-child(10) { animation-delay: 0.1s; }
.vc-wave span:nth-child(11) { animation-delay: 0.2s; }
.vc-wave span:nth-child(12) { animation-delay: 0.3s; }
.vc-wave span:nth-child(13) { animation-delay: 0.2s; }
.vc-wave span:nth-child(14) { animation-delay: 0.1s; }
.vc-wave span:nth-child(15) { animation-delay: 0s; }
@keyframes vcWaveBar {
  0%,100% { height: 4px; opacity: 0.3; }
  50%      { height: 30px; opacity: 1; }
}
.voice-cmd-overlay:not(.listening) .vc-wave span {
  animation: none;
  height: 4px;
  opacity: 0.15;
}

/* ══ TRANSCRIPT ══ */
.vc-transcript-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  min-height: 64px;
  width: 100%;
}
.vc-transcript {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.3px;
  line-height: 1.35;
  min-height: 1.6em;
  transition: opacity 0.2s;
  text-shadow: 0 0 30px rgba(0,140,255,0.4);
}
.vc-transcript:empty::before {
  content: "Poslouchám…";
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  font-style: italic;
}
.vc-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,160,255,0.6);
}

/* ══ RESULT ══ */
.voice-cmd-result {
  width: 100%;
  background: rgba(0,122,255,0.07);
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: 16px;
  padding: 14px 16px;
  display: none;
  margin-bottom: 20px;
}
.voice-cmd-result.visible { display: block; }
.voice-cmd-result-label {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,160,255,0.7);
  margin-bottom: 5px;
}
.voice-cmd-result-text {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

/* ══ HINTS ══ */
.vc-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  width: 100%;
}
.vc-hints span {
  padding: 6px 13px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  font-family: -apple-system, sans-serif;
  cursor: default;
  transition: all 0.18s;
  white-space: nowrap;
}
.vc-hints span:hover {
  background: rgba(0,122,255,0.08);
  border-color: rgba(0,122,255,0.2);
  color: rgba(255,255,255,0.6);
}

.ruleta-wheel-canvas-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}
.ruleta-wheel-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: none;
  background: 0 0;
  box-shadow:
    0 0 0 2px rgba(200, 164, 0, 0.12),
    0 0 0 8px rgba(0, 0, 0, 0.8),
    0 0 0 10px rgba(200, 164, 0, 0.08),
    0 0 0 16px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(200, 164, 0, 0.15);
  pointer-events: none;
  z-index: 1;
  animation: ringGlow 4s ease-in-out infinite alternate;
}
@keyframes ringGlow {
  from {
    box-shadow:
      0 0 0 2px rgba(200, 164, 0, 0.12),
      0 0 0 8px rgba(0, 0, 0, 0.8),
      0 0 0 10px rgba(200, 164, 0, 0.08),
      0 0 0 16px rgba(0, 0, 0, 0.6),
      0 0 80px rgba(200, 164, 0, 0.12);
  }
  to {
    box-shadow:
      0 0 0 2px rgba(200, 164, 0, 0.3),
      0 0 0 8px rgba(0, 0, 0, 0.8),
      0 0 0 10px rgba(200, 164, 0, 0.18),
      0 0 0 16px rgba(0, 0, 0, 0.6),
      0 0 100px rgba(200, 164, 0, 0.3);
  }
}
.ruleta-wheel-marker {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 24px solid #c8a400;
  z-index: 10;
  filter: drop-shadow(0 0 12px rgba(200, 164, 0, 1))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9));
}
.ruleta-wheel-canvas-wrap canvas {
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(200, 164, 0, 0.4),
    0 0 0 6px rgba(0, 0, 0, 0.9),
    0 32px 100px rgba(0, 0, 0, 0.98),
    0 0 100px rgba(200, 164, 0, 0.12),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
}
.ruleta-overlay.spinning .ruleta-wheel-canvas-wrap canvas {
  box-shadow:
    0 0 0 3px rgba(200, 164, 0, 0.7),
    0 0 0 6px rgba(0, 0, 0, 0.9),
    0 32px 100px rgba(0, 0, 0, 0.98),
    0 0 140px rgba(200, 164, 0, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
}
.ruleta-wheel-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 164, 0, 0.18) 0,
    rgba(200, 164, 0, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: wheelGlowPulse 3s ease-in-out infinite alternate;
}
.ruleta-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff8e0, #c8a400, #7a6000);
  border: 2.5px solid rgba(255, 240, 160, 0.5);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(200, 164, 0, 0.8),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4);
}
.ruleta-wheel-hub::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}
.lever-pole {
  width: 9px;
  height: 70px;
  background: linear-gradient(
    to right,
    #b89000,
    #e8d060,
    #c8a400,
    #7a6200,
    #e0b800
  );
  border-radius: 5px;
  transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
  transform-origin: bottom center;
  box-shadow:
    3px 0 16px rgba(0, 0, 0, 0.7),
    -1px 0 4px rgba(255, 240, 100, 0.15),
    inset 2px 0 4px rgba(255, 255, 255, 0.1);
}
.lever-knob {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff9090, #e03030, #8a0000);
  border: 2px solid rgba(255, 120, 120, 0.5);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(220, 50, 50, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 150, 150, 0.4);
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
}
.lever-knob::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.lever-base {
  width: 36px;
  height: 14px;
  background: linear-gradient(to bottom, #4a3500, #2a1e00, #1a1200);
  border-radius: 5px 5px 8px 8px;
  border: 1px solid rgba(200, 164, 0, 0.35);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(200, 164, 0, 0.2);
}
.ruleta-wheel-stand {
  width: 60px;
  height: 20px;
  margin-top: -4px;
  background: linear-gradient(
    to bottom,
    rgba(200, 164, 0, 0.3),
    rgba(200, 164, 0, 0.08)
  );
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(200, 164, 0, 0.2);
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes vt-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes vt-slide-up {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
::view-transition-old(root) {
  animation: 280ms cubic-bezier(0.4, 0, 0.2, 1) vt-fade-out both;
}
::view-transition-new(root) {
  animation: 360ms cubic-bezier(0.34, 1.12, 0.64, 1) vt-slide-up both;
}
::view-transition-old(movie-poster) {
  animation: 320ms cubic-bezier(0.4, 0, 0.2, 1) both vt-fade-out;
  mix-blend-mode: normal;
}
::view-transition-new(movie-poster) {
  animation: 420ms cubic-bezier(0.34, 1.1, 0.64, 1) both vt-slide-up;
}
.vt-poster {
  view-transition-name: none;
}
@keyframes sk-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.15;
  }
}
.sk-block {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  animation: sk-pulse 1.6s ease-in-out infinite;
}
.sk-block.dark {
  background: rgba(255, 255, 255, 0.06);
}
.sk-block.light {
  background: rgba(255, 255, 255, 0.14);
}
:root {
  --sys-blue: #007aff;
  --sys-blue-dark: #0a84ff;
  --sys-blue-glow: rgba(0, 122, 255, 0.2);
  --sys-blue-tint: rgba(0, 122, 255, 0.12);
  --sys-blue-subtle: rgba(0, 122, 255, 0.07);
  --sys-green: #30d158;
  --sys-orange: #ff9f0a;
  --sys-red: #ff453a;
  --sys-pink: #ff375f;
  --sys-purple: #bf5af2;
  --sys-teal: #5ac8fa;
  --sys-indigo: #5e5ce6;
  --sys-yellow: #ffd60a;
  --sys-bg: #000000;
  --sys-bg1: #1c1c1e;
  --sys-bg2: #2c2c2e;
  --sys-bg3: #3a3a3c;
  --sys-bg4: #48484a;
  --sys-grouped: #000000;
  --sys-grouped2: #1c1c1e;
  --sys-label: rgba(255, 255, 255, 1);
  --sys-label2: rgba(235, 235, 245, 0.6);
  --sys-label3: rgba(235, 235, 245, 0.3);
  --sys-label4: rgba(235, 235, 245, 0.18);
  --sys-fill: rgba(120, 120, 128, 0.36);
  --sys-fill2: rgba(120, 120, 128, 0.32);
  --sys-fill3: rgba(118, 118, 128, 0.24);
  --sys-fill4: rgba(118, 118, 128, 0.18);
  --sys-sep: rgba(84, 84, 88, 0.65);
  --sys-sep-non: rgba(56, 56, 58, 1);
  --mat-chrome: rgba(28, 28, 30, 0.92);
  --mat-thick: rgba(22, 22, 24, 0.95);
  --mat-thin: rgba(36, 36, 40, 0.75);
  --mat-ultra-thin: rgba(44, 44, 46, 0.6);
  --mat-blur: saturate(200%) blur(28px);
  --mat-blur-heavy: saturate(180%) blur(20px);
  --mat-blur-light: saturate(160%) blur(16px);
  --font-sf:
    -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --accent: #007aff !important;
  --accent2: #5ac8fa !important;
  --accent-glow: rgba(0, 122, 255, 0.18) !important;
  --bg: #000000 !important;
  --bg2: #1c1c1e !important;
  --border: rgba(84, 84, 88, 0.4) !important;
  --border-hi: rgba(84, 84, 88, 0.65) !important;
  --glass: rgba(28, 28, 30, 0.95) !important;
  --radius: 13px !important;
  --radius-lg: 20px !important;
  --radius-xl: 28px !important;
}
*,
::after,
::before {
  box-sizing: border-box;
}
body,
html {
  font-family: var(--font-sf) !important;
  background: #000 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}
body::after,
body::before {
  display: none !important;
}
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: 0 0;
}
::-webkit-scrollbar-thumb {
  background: rgba(84, 84, 88, 0.55);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(84, 84, 88, 0.8);
}
::selection {
  background: rgba(0, 122, 255, 0.3);
  color: #fff;
}
.bg-glow {
  background:
    radial-gradient(
      ellipse 70% 40% at 15% 5%,
      rgba(10, 132, 255, 0.035) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 55% at 88% 95%,
      rgba(52, 170, 220, 0.02) 0,
      transparent 65%
    ),
    #080808 !important;
  animation: none !important;
}
.mf-header,
header.mf-header {
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.94) 0,
    rgba(8, 8, 8, 0.6) 65%,
    transparent 100%
  ) !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease !important;
}
.mf-header.scrolled {
  background: rgba(8, 8, 8, 0.97) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.logo,
.mf-header-logo {
  font-family: var(--font-sf) !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em !important;
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: none !important;
  filter: none !important;
}
.logo span,
.mf-header-logo span {
  color: #0a84ff !important;
  filter: none !important;
}
.mf-header-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  transition:
    all 0.2s ease,
    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-header-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
.mf-header-btn:active {
  transform: scale(0.9) !important;
}
.mf-header-btn svg {
  stroke: currentColor !important;
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.8px !important;
}
.mf-dock,
nav.mf-dock {
  background: var(--plexi-bg) !important;
  backdrop-filter: var(--plexi-blur) !important;
  -webkit-backdrop-filter: var(--plexi-blur) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top-color: var(--plexi-border-top) !important;
  border-radius: 32px !important;
  box-shadow: var(--plexi-shadow) !important;
}
.dock-btn .dock-icon,
.dock-btn svg {
  stroke: rgba(255, 255, 255, 0.38) !important;
  width: 22px !important;
  height: 22px !important;
  transition:
    transform 0.24s cubic-bezier(0.34, 1.5, 0.64, 1),
    stroke 0.2s !important;
}
.dock-btn:hover {
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  transform: translateY(-4px) scale(1.06) !important;
}
.dock-btn:hover svg {
  transform: scale(1.14) !important;
}
.dock-btn.active {
  color: #007aff !important;
  background: rgba(0, 122, 255, 0.13) !important;
}
.dock-btn.active .dock-icon,
.dock-btn.active svg {
  stroke: #007aff !important;
  filter: drop-shadow(0 0 7px rgba(0, 122, 255, 0.55)) !important;
}
.dock-btn:active {
  transform: scale(0.88) translateY(0) !important;
  transition-duration: 80ms !important;
}
.dock-btn.dock-ai {
  background: linear-gradient(
    145deg,
    #0a84ff 0,
    #007aff 60%,
    #005fcc 100%
  ) !important;
  border-radius: 22px !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(0, 122, 255, 0.7),
    0 6px 22px rgba(0, 122, 255, 0.5),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.3) !important;
}
.dock-btn.dock-ai svg {
  stroke: #fff !important;
  filter: none !important;
}
.dock-btn.dock-ai:hover {
  background: linear-gradient(
    145deg,
    #34aadc 0,
    #0a84ff 60%,
    #007aff 100%
  ) !important;
  transform: translateY(-5px) scale(1.08) !important;
  box-shadow:
    0 0 0 1px rgba(0, 122, 255, 0.8),
    0 12px 36px rgba(0, 122, 255, 0.62),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
#dockMoreSheet {
  background: var(--mat-thick) !important;
  backdrop-filter: var(--mat-blur-heavy) !important;
  -webkit-backdrop-filter: var(--mat-blur-heavy) !important;
  border-top: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -1px 0 rgba(84, 84, 88, 0.4) !important;
}
.ps-tile-wrapper {
  transition:
    transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.22s ease !important;
}
.ps-tile-wrapper:hover {
  transform: translateY(-8px) scale(1.04) !important;
}
.ps-tile-wrapper:active {
  transform: scale(0.96) !important;
  transition-duration: 80ms !important;
}
.ps-tile {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.55),
    0 16px 48px rgba(0, 0, 0, 0.35) !important;
}
.ps-tile img {
  border-radius: 16px !important;
}
.tile-info {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0,
    rgba(0, 0, 0, 0.6) 40%,
    transparent 100%
  ) !important;
}
.tile-title {
  font-family: var(--font-sf) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: -0.01em !important;
}
.tile-progress-bar {
  height: 2px !important;
  border-radius: 1px !important;
  background: rgba(255, 255, 255, 0.15) !important;
}
.tile-progress-fill {
  background: #007aff !important;
  box-shadow: none !important;
  border-radius: 1px !important;
}
.tile-continue-badge {
  background: rgba(28, 28, 30, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 7px !important;
  font-family: var(--font-sf) !important;
  font-size: 0.55rem !important;
  font-weight: 600 !important;
}
.tcb-dot {
  background: #007aff !important;
  box-shadow: none !important;
  width: 5px !important;
  height: 5px !important;
}
.tile-watchlist-btn {
  background: rgba(28, 28, 30, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}
.tile-watchlist-btn:hover {
  background: rgba(0, 122, 255, 0.18) !important;
  border-color: rgba(0, 122, 255, 0.4) !important;
}
.collections-overlay,
.modal-overlay,
.mood-overlay,
.premiere-overlay,
.sync-overlay,
.trakt-overlay,
.voice-cmd-overlay,
.watchlist-overlay {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(4px) !important;
}
.collections-box,
.confirm-box,
.modal-box,
.modal-content,
.modal-inner,
.mood-box,
.premiere-box,
.sync-box,
.voice-cmd-box {
  background: linear-gradient(
    160deg,
    rgba(18, 20, 32, 0.82) 0,
    rgba(10, 12, 22, 0.9) 100%
  ) !important;
  backdrop-filter: blur(80px) saturate(2.5) !important;
  -webkit-backdrop-filter: blur(80px) saturate(2.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 24px !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.8),
    0 8px 30px rgba(0, 0, 0, 0.5) !important;
}
.modal-handle,
.sheet-handle {
  width: 36px !important;
  height: 4px !important;
  background: rgba(84, 84, 88, 0.65) !important;
  border-radius: 2px !important;
  margin: 0 auto 16px !important;
}
.collections-header-title,
.confirm-title,
.modal-header,
.modal-title,
.mood-title,
.premiere-header-title,
.sync-title,
.wl-title {
  font-family: var(--font-sf) !important;
  font-weight: 700 !important;
  font-size: 1.0625rem !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.collections-header-title span,
.modal-title span,
.premiere-header-title span,
.sync-title span,
.wl-title span {
  color: #007aff !important;
}
#seriesModal .modal-inner {
  background: var(--sys-bg1) !important;
  border-radius: 20px !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
}
.modal-show-title,
.series-modal-header {
  font-family: var(--font-sf) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  letter-spacing: -0.03em !important;
  line-height: 1.18 !important;
}
.badge-imdb,
.badge-rt,
.modal-rating-badge {
  border-radius: 7px !important;
  font-family: var(--font-sf) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  padding: 3px 8px !important;
}
.modal-play-btn,
.modal-watch-btn,
.ssv-play-btn {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35) !important;
  border: none !important;
  transition: all 0.15s ease !important;
}
.modal-play-btn:hover,
.modal-watch-btn:hover,
.ssv-play-btn:hover {
  background: #0a84ff !important;
  box-shadow: 0 6px 28px rgba(0, 122, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}
.modal-play-btn:active,
.modal-watch-btn:active {
  transform: scale(0.97) !important;
  transition-duration: 70ms !important;
}
.add-watchlist-btn,
.modal-wl-btn {
  background: var(--sys-blue-tint) !important;
  border: 0.5px solid rgba(0, 122, 255, 0.3) !important;
  color: #007aff !important;
  border-radius: 14px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
}
.episode-grid {
  background: var(--sys-bg) !important;
  gap: 0 !important;
  flex-direction: column !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.episode-card .ep-thumb {
  display: none !important;
}
.episode-card {
  background: var(--sys-bg1) !important;
  border-radius: 0 !important;
  border-bottom: 0.5px solid rgba(84, 84, 88, 0.25) !important;
  transition: background 0.12s ease !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 0 !important;
}
.episode-card:last-child {
  border-bottom: none !important;
}
.episode-card:hover {
  background: var(--sys-bg2) !important;
  clip-path: none !important;
  filter: none !important;
}
.episode-card.next-ep {
  background: color-mix(in srgb, #007aff 8%, var(--sys-bg1)) !important;
}
.episode-card.next-ep::before {
  background: #007aff !important;
  box-shadow: none !important;
  width: 3px !important;
}
.next-ep .ep-badge,
.next-ep .ep-num {
  color: #007aff !important;
}
.episode-card .ep-body {
  padding: 10px 14px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}
.episode-card .ep-meta-row {
  flex-shrink: 0;
}
.episode-card .ep-num {
  font-size: 0.62rem !important;
  color: rgba(255, 255, 255, 0.32) !important;
  min-width: 28px !important;
}
.episode-card .ep-title {
  font-size: 0.82rem !important;
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.episode-card:hover .ep-title {
  white-space: nowrap !important;
}
.episode-card .ep-desc {
  display: none !important;
}
.episode-card .ep-actions {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}
.episode-card .ep-actions::after {
  content: "›";
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.18);
  margin-left: 4px;
}
.ep-next-tag {
  background: #007aff !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  font-size: 0.6rem !important;
  padding: 2px 6px !important;
  box-shadow: none !important;
  position: static !important;
}
.ep-progress-bar-fill {
  background: #007aff !important;
  box-shadow: none !important;
}
.ep-play-ring {
  width: 30px !important;
  height: 30px !important;
  background: var(--sys-fill3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  transition: all 0.15s ease !important;
}
.ep-play-ring svg {
  width: 10px !important;
  height: 10px !important;
}
.ep-hover-play {
  display: none !important;
}
.ep-play-ring:hover {
  background: #007aff !important;
  border-color: #007aff !important;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.4) !important;
}
.ep-btn-play-hbo {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  padding: 5px 12px !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3) !important;
  transition: all 0.15s ease !important;
}
.ep-btn-play-hbo:hover {
  background: #0a84ff !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.45) !important;
}
.ep-btn-mark {
  width: 26px !important;
  height: 26px !important;
}
.ep-btn-mark:hover {
  background: rgba(48, 209, 88, 0.1) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
  color: #30d158 !important;
}
.watched .ep-btn-mark {
  background: rgba(48, 209, 88, 0.1) !important;
  border-color: rgba(48, 209, 88, 0.35) !important;
  color: #30d158 !important;
}
.ssv-card {
  background: var(--sys-bg2) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 14px !important;
}
.ssv-card.ssv-active {
  border-color: rgba(0, 122, 255, 0.55) !important;
  background: color-mix(in srgb, #007aff 10%, var(--sys-bg2)) !important;
}
.ssv-active-badge {
  background: #007aff !important;
  box-shadow: none !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
}
.toast {
  background: var(--mat-chrome) !important;
  backdrop-filter: var(--mat-blur) !important;
  -webkit-backdrop-filter: var(--mat-blur) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 14px !important;
  box-shadow:
    0 0 0 0.5px rgba(84, 84, 88, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.55) !important;
  font-family: var(--font-sf) !important;
  font-weight: 500 !important;
  font-size: 0.84rem !important;
  padding: 12px 18px !important;
}
.next-ep-toast {
  background: var(--mat-chrome) !important;
  backdrop-filter: var(--mat-blur) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65) !important;
}
.next-ep-play {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.35) !important;
}
.next-ep-label {
  color: #007aff !important;
  font-weight: 600 !important;
}
.streak-widget {
  background: rgba(28, 28, 30, 0.88) !important;
  backdrop-filter: var(--mat-blur) !important;
  -webkit-backdrop-filter: var(--mat-blur) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}
.streak-count {
  color: #ff9f0a !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
.streak-today-count {
  color: #007aff !important;
  font-weight: 700 !important;
}
.notif-bell,
button[onclick="openNotifPanel()"] {
  color: #007aff !important;
}
.notif-bell.has-notifs {
  animation: none !important;
  box-shadow: none !important;
}
.notif-panel {
  background: var(--mat-thick) !important;
  backdrop-filter: var(--mat-blur) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6) !important;
}
.notif-panel-title {
  font-family: var(--font-sf) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}
.notif-item-ep {
  color: #007aff !important;
  font-weight: 600 !important;
}
.timer-fab {
  background: var(--mat-chrome) !important;
  backdrop-filter: var(--mat-blur-light) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
  border-radius: 20px !important;
}
.timer-fab.active {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.45) !important;
  color: #007aff !important;
}
.timer-panel {
  background: var(--sys-bg1) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7) !important;
}
.timer-display {
  font-family: var(--font-sf) !important;
  font-weight: 200 !important;
  font-size: 3rem !important;
  letter-spacing: -0.03em !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: none !important;
}
.timer-preset-btn {
  background: var(--sys-bg2) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 10px !important;
  font-family: var(--font-sf) !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  transition: all 0.15s ease !important;
}
.timer-preset-btn.active,
.timer-preset-btn:hover {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.4) !important;
  color: #007aff !important;
}
.timer-start-btn {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 13px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35) !important;
}
#searchInput,
.search-bar,
.search-input,
input[type="search"] {
  background: rgba(118, 118, 128, 0.24) !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: var(--font-sf) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  padding: 8px 14px !important;
}
#searchInput:focus,
.search-bar:focus,
.search-input:focus {
  background: rgba(118, 118, 128, 0.3) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 2.5px rgba(0, 122, 255, 0.5) !important;
}
input::placeholder {
  color: rgba(235, 235, 245, 0.45) !important;
}
input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea {
  font-family: var(--font-sf) !important;
  background: rgba(118, 118, 128, 0.24) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 122, 255, 0.55) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 2.5px rgba(0, 122, 255, 0.2) !important;
}
.ai-sidebar {
  background: #000 !important;
  border-right: 0.5px solid rgba(84, 84, 88, 0.4) !important;
}
.ai-sidebar-logo span {
  color: #007aff !important;
}
.ai-status-badge {
  background: rgba(118, 118, 128, 0.2) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 12px !important;
  font-family: var(--font-sf) !important;
}
.ai-status-dot {
  background: #007aff !important;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.6) !important;
}
.ai-msg-bubble.user-bubble {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 20px 20px 5px 20px !important;
  font-family: var(--font-sf) !important;
}
.ai-msg-bubble.ai-bubble {
  background: var(--sys-bg2) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 20px 20px 20px 5px !important;
  font-family: var(--font-sf) !important;
}
.ai-input-send,
.ai-send-btn {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.4) !important;
}
.ai-quick-btn:hover {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  color: #007aff !important;
}
.ai-topbar-title span {
  color: #007aff !important;
}
.ai-topbar-btn.tts-on {
  color: #007aff !important;
  background: var(--sys-blue-subtle) !important;
}
.ai-profile-save {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  color: #007aff !important;
}
.ai-watch-bar-fill {
  background: #007aff !important;
  box-shadow: none !important;
}
.ai-msg-wrap.ai .ai-msg-avatar {
  background: var(--sys-blue-tint) !important;
  border: 0.5px solid rgba(0, 122, 255, 0.25) !important;
  color: #007aff !important;
}
.mood-btn {
  background: var(--sys-bg2) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 14px !important;
  transition: all 0.15s ease !important;
}
.mood-btn.selected,
.mood-btn:hover {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.4) !important;
  transform: scale(1.03) !important;
  box-shadow: none !important;
}
.mood-btn.selected .mood-name {
  color: #007aff !important;
}
.mood-result-label {
  color: #007aff !important;
  font-weight: 600 !important;
}
.mood-ep-card:hover {
  background: var(--sys-blue-subtle) !important;
  border-color: rgba(0, 122, 255, 0.25) !important;
}
.mood-ep-show {
  color: #007aff !important;
}
.mood-close-btn {
  background: var(--sys-bg2) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 13px !important;
  font-family: var(--font-sf) !important;
  font-weight: 500 !important;
}
.sync-btn,
.sync-btn-primary,
.sync-btn-upload {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 13px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.3) !important;
}
.sync-code-input,
.sync-input {
  background: var(--sys-bg2) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 12px !important;
  font-family: var(--font-sf) !important;
}
.sync-gen-btn,
.sync-key-btn {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.28) !important;
  color: #007aff !important;
  border-radius: 12px !important;
}
.sync-status-dot.online {
  background: #30d158 !important;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.55) !important;
}
.sync-code-display {
  background: var(--sys-blue-subtle) !important;
  border-color: rgba(0, 122, 255, 0.22) !important;
  border-radius: 12px !important;
}
.sync-code-value {
  color: #007aff !important;
  text-shadow: none !important;
  font-family: "SF Mono", "Courier New", monospace !important;
  font-weight: 600 !important;
}
.confirm-box {
  background: var(--sys-bg1) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.75) !important;
  max-width: 280px !important;
}
.confirm-ok {
  background: #007aff !important;
  color: #fff !important;
  border-radius: 11px !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
}
.tile-tooltip {
  background: var(--mat-chrome) !important;
  backdrop-filter: var(--mat-blur) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
  font-family: var(--font-sf) !important;
}
.tt-genre {
  color: rgba(0, 122, 255, 0.85) !important;
}
.tt-rating-num {
  color: rgba(0, 122, 255, 0.85) !important;
}
/* voice-cmd starý override — odstraněn */
.cw-inner {
  background: var(--mat-chrome) !important;
  backdrop-filter: var(--mat-blur) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 16px !important;
}
.cw-label {
  color: #007aff !important;
  font-family: var(--font-sf) !important;
  font-weight: 600 !important;
}
.pg-logo span {
  color: #007aff !important;
}
.pg-avatar {
  border-radius: 14px !important;
  background: var(--sys-bg2) !important;
}
.pm-dot.filled {
  background: #007aff !important;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.45) !important;
}
#mfProfileBadge {
  background: var(--mat-chrome) !important;
  backdrop-filter: var(--mat-blur-light) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 50px !important;
}
.w-card {
  background: rgba(18, 18, 20, 0.75) !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 28px !important;
}
.w-number {
  background: linear-gradient(
    135deg,
    #007aff 0,
    rgba(255, 255, 255, 0.9) 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.w-badge {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.28) !important;
  color: #007aff !important;
  border-radius: 8px !important;
}
.w-bar-fill {
  background: linear-gradient(
    90deg,
    #007aff,
    rgba(0, 122, 255, 0.5)
  ) !important;
}
.w-bar-pct {
  color: #007aff !important;
}
.w-ai-text {
  border-left-color: rgba(0, 122, 255, 0.55) !important;
}
button {
  font-family: var(--font-sf) !important;
}
button:active {
  opacity: 0.75;
}
.section-title,
.shelf-title {
  font-family: var(--font-sf) !important;
  font-weight: 700 !important;
  font-size: 1.0625rem !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.premiere-filter-chip.active {
  background: var(--sys-blue-tint) !important;
  border-color: rgba(0, 122, 255, 0.4) !important;
  color: #007aff !important;
}
.autosave-indicator.saving {
  color: #007aff !important;
}
.autosave-indicator.saved {
  color: #30d158 !important;
}
.logo-progress-fill {
  background: #007aff !important;
  box-shadow: none !important;
}
#pwaInstallBtn {
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.15),
    rgba(0, 122, 255, 0.08)
  ) !important;
  border: 0.5px solid rgba(0, 122, 255, 0.38) !important;
  border-radius: 14px !important;
  font-family: var(--font-sf) !important;
}
#pwaInstallBtn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.22),
    rgba(0, 122, 255, 0.12)
  ) !important;
  border-color: rgba(0, 122, 255, 0.55) !important;
}
.divider,
[class*="-divider"],
[class*="-sep"],
hr {
  border-color: rgba(84, 84, 88, 0.4) !important;
  border-width: 0.5px !important;
}
.collections-box,
.modal-box,
.modal-inner,
.mood-box,
.sync-box {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.25s ease !important;
}
:focus-visible {
  outline: 2px solid #007aff !important;
  outline-offset: 2px !important;
}
#voiceModeFab,
button.voice-mode-fab {
  display: none !important;
}
#timerFab,
button.timer-fab {
  display: none !important;
}
#aiFab:not(.dock-btn),
button.collections-fab,
button.premiere-fab,
button.ruleta-fab,
button.stats-fab,
button.watchlist-fab.mf-fab {
  display: none !important;
}
div.streak-widget#streakWidget {
  display: none !important;
}
#editModeTrigger,
#voiceModeFab,
button.edit-mode-trigger#editModeTrigger,
button.voice-mode-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.edit-mode-trigger {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: 0 0 !important;
  border: none !important;
  color: #007aff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease !important;
}
.edit-mode-trigger:hover {
  background: rgba(0, 122, 255, 0.12) !important;
}
.edit-mode-trigger:active {
  background: rgba(0, 122, 255, 0.22) !important;
  transform: scale(0.92) !important;
}
.edit-mode-trigger svg {
  stroke: #007aff !important;
  width: 18px;
  height: 18px;
  stroke-width: 1.8px;
}
.edit-mode-overlay {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px) !important;
}
.edit-topbar {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: saturate(200%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(20px) !important;
  border-bottom: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: none !important;
  align-items: center !important;
  padding: 0 16px !important;
  height: 52px !important;
}
.edit-topbar.visible {
  display: flex !important;
}
.edit-topbar-title {
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.edit-topbar-badge {
  background: rgba(0, 122, 255, 0.14) !important;
  border: 0.5px solid rgba(0, 122, 255, 0.35) !important;
  color: #007aff !important;
  border-radius: 6px !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  padding: 2px 7px !important;
  margin-left: 8px !important;
}
.edit-topbar-hint {
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 0.72rem !important;
  color: rgba(235, 235, 245, 0.45) !important;
  flex: 1 !important;
  margin-left: 10px !important;
}
.edit-topbar-actions {
  display: flex;
  gap: 8px;
}
.edit-topbar-btn {
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.edit-topbar-btn.reset {
  background: rgba(118, 118, 128, 0.22) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}
.edit-topbar-btn.reset:hover {
  background: rgba(118, 118, 128, 0.32) !important;
}
.edit-topbar-btn.done {
  background: #007aff !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.35) !important;
}
.edit-topbar-btn.done:hover {
  background: #0a84ff !important;
}
.edit-fab-tray {
  background: #1c1c1e !important;
  border: none !important;
  border-top: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 8px 20px 40px !important;
}
.edit-fab-tray::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(84, 84, 88, 0.65);
  border-radius: 2px;
  margin: 4px auto 16px;
}
.edit-tray-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.edit-tray-fab-name {
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  flex: 1;
}
.edit-tray-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.24) !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.edit-section-label {
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: rgba(235, 235, 245, 0.45) !important;
  margin: 14px 0 8px !important;
}
.edit-fab-chip {
  background: #2c2c2e !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 12px !important;
  transition: all 0.15s ease !important;
}
.edit-fab-chip.selected {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.45) !important;
}
.edit-fab-chip:hover {
  background: #3a3a3c !important;
}
.edit-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.edit-pos-btn {
  background: #2c2c2e !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 10px !important;
  color: rgba(235, 235, 245, 0.7) !important;
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  padding: 8px 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.edit-pos-btn:hover {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.4) !important;
  color: #007aff !important;
}
.edit-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.edit-slider-label {
  font-family: -apple-system, sans-serif !important;
  font-size: 0.72rem !important;
  color: rgba(235, 235, 245, 0.6) !important;
  width: 58px;
  flex-shrink: 0;
}
.edit-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(118, 118, 128, 0.3) !important;
  border-radius: 2px;
  outline: 0;
  cursor: pointer;
}
.edit-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35) !important;
  cursor: grab;
}
.edit-slider-val {
  font-family: -apple-system, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: rgba(235, 235, 245, 0.7) !important;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.edit-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.edit-action-btn {
  background: #2c2c2e !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 10px !important;
  color: rgba(235, 235, 245, 0.8) !important;
  font-family: -apple-system, "SF Pro Text", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex: 1;
}
.edit-action-btn:hover {
  background: #3a3a3c !important;
}
.edit-action-btn.accent {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  color: #007aff !important;
  font-weight: 600 !important;
}
.edit-action-btn.danger {
  background: rgba(255, 69, 58, 0.08) !important;
  border-color: rgba(255, 69, 58, 0.3) !important;
  color: #ff453a !important;
}
.edit-color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.edit-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  border: 2px solid transparent !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}
.edit-color-swatch:hover {
  transform: scale(1.15) !important;
}
.edit-color-swatch.selected-swatch {
  border-color: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.15) !important;
}
.edit-color-custom {
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  background: 0 0;
}
.edit-toggle-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.edit-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2c2c2e !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 10px !important;
  padding: 7px 10px !important;
  font-family: -apple-system, sans-serif !important;
  font-size: 0.68rem !important;
  color: rgba(235, 235, 245, 0.6) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex: 1;
  min-width: 90px;
}
.edit-toggle.on {
  background: rgba(48, 209, 88, 0.1) !important;
  border-color: rgba(48, 209, 88, 0.3) !important;
  color: #30d158 !important;
}
.edit-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(235, 235, 245, 0.3);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.edit-toggle.on .edit-toggle-dot {
  background: #30d158 !important;
}
.edit-preset-row {
  display: flex;
  gap: 6px;
}
.edit-preset-btn {
  background: #2c2c2e !important;
  border: 0.5px solid rgba(84, 84, 88, 0.4) !important;
  border-radius: 10px !important;
  color: rgba(235, 235, 245, 0.65) !important;
  font-family: -apple-system, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  padding: 7px 10px !important;
  cursor: pointer !important;
  flex: 1;
  text-align: center;
  transition: all 0.15s ease !important;
}
.edit-preset-btn:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  color: #007aff !important;
}
.edit-snap-line-h,
.edit-snap-line-v {
  background: rgba(0, 122, 255, 0.6) !important;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.4) !important;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}
.mf-dock {
  will-change: transform;
  transform: translateX(-50%) translateZ(0);
  transition:
    padding 0.4s cubic-bezier(0.34, 1.24, 0.64, 1),
    gap 0.4s cubic-bezier(0.34, 1.24, 0.64, 1),
    box-shadow 0.35s ease !important;
}
.mf-dock:hover {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 0 0.5px rgba(255, 255, 255, 0.07),
    0 28px 80px rgba(0, 0, 0, 0.88),
    0 10px 32px rgba(0, 0, 0, 0.6) !important;
}
.dock-btn {
  transform: translateZ(0);
  will-change: transform;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.32s cubic-bezier(0.34, 1.42, 0.64, 1) !important;
}
.dock-btn:hover {
  transform: translateY(-6px) scale(1.1) translateZ(0) !important;
}
.dock-btn:active {
  transform: scale(0.84) translateY(2px) translateZ(0) !important;
  transition: transform 70ms ease !important;
}
.dock-btn svg {
  transition:
    transform 0.32s cubic-bezier(0.34, 1.55, 0.64, 1),
    stroke 0.22s ease,
    filter 0.22s ease !important;
  will-change: transform;
}
.dock-btn:hover svg {
  transform: scale(1.22) translateZ(0) !important;
}
.dock-btn.active svg {
  filter: drop-shadow(0 0 9px rgba(0, 122, 255, 0.7)) !important;
}
.mf-header-btn {
  transform: translateZ(0);
  will-change: transform;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
.mf-header-btn:hover {
  transform: scale(1.1) translateZ(0) !important;
}
.mf-header-btn:active {
  transform: scale(0.88) translateZ(0) !important;
  transition: transform 70ms ease !important;
}
#aiFab,
.ai-fab {
  transition:
    transform 0.36s cubic-bezier(0.34, 1.42, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.25s ease,
    border-radius 0.3s ease !important;
  will-change: transform;
  transform: translateZ(0);
}
.ai-fab:hover {
  transform: scale(1.1) rotate(-4deg) translateZ(0) !important;
}
.ai-fab:active {
  transform: scale(0.9) translateZ(0) !important;
  transition: transform 70ms ease !important;
}
.ai-fab.open {
  transform: scale(0.92) rotate(45deg) translateZ(0) !important;
}
#aiMessages,
#modalBody,
.admin-body,
.ai-messages,
.ai-sidebar,
.ai-watch-list,
.collections-body,
.customize-body,
.disco-body,
.episode-grid,
.modal-body,
.premiere-calendar-body,
.season-select-view,
.universe-body,
.watchlist-list {
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  overscroll-behavior: contain !important;
}
.ps-menu {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.ps-menu::-webkit-scrollbar {
  display: none;
}
.ps-tile-wrapper {
  scroll-snap-align: start;
}
.ps-tile-wrapper {
  transition:
    transform 0.44s cubic-bezier(0.34, 1.28, 0.64, 1),
    filter 0.38s ease,
    z-index 0s 0.44s !important;
  will-change: transform;
  transform: translateZ(0);
}
.ps-tile-wrapper.kb-focus,
.ps-tile-wrapper:hover {
  transform: translateY(-12px) scale(1.048) translateZ(0) !important;
  filter: brightness(1.06) !important;
  z-index: 10;
  transition:
    transform 0.44s cubic-bezier(0.34, 1.28, 0.64, 1),
    filter 0.38s ease,
    z-index 0s 0s !important;
}
.ps-tile-wrapper:active {
  transform: translateY(-4px) scale(1.01) translateZ(0) !important;
  transition: transform 90ms ease !important;
}
.ps-tile .tile-bg {
  transition:
    transform 0.62s cubic-bezier(0.25, 0.8, 0.25, 1),
    filter 0.46s ease,
    opacity 0.55s ease !important;
  will-change: transform;
}
.ps-tile-wrapper.kb-focus .tile-bg,
.ps-tile-wrapper:hover .tile-bg {
  transform: scale(1.1) !important;
  filter: saturate(1.18) brightness(1.03) !important;
}
.ps-tile .tile-logo {
  transition:
    transform 0.48s cubic-bezier(0.34, 1.26, 0.64, 1),
    opacity 0.4s ease !important;
}
.ps-tile-wrapper.kb-focus .tile-logo,
.ps-tile-wrapper:hover .tile-logo {
  transform: translateX(-50%) translateY(-6px) scale(1.07) !important;
}
.tile-hero-overlay {
  transition: opacity 0.38s ease !important;
}
.tile-hero-overlay-title {
  transition:
    transform 0.44s cubic-bezier(0.34, 1.24, 0.64, 1),
    opacity 0.34s ease !important;
}
.tile-hero-overlay-open {
  transition:
    transform 0.46s 70ms cubic-bezier(0.34, 1.24, 0.64, 1),
    opacity 0.36s 70ms ease !important;
}
.tile-glare {
  transition: opacity 0.5s ease !important;
}
.tile-watchlist-btn {
  transition:
    opacity 0.28s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  will-change: transform;
  transform: translateZ(0);
}
.tile-watchlist-btn:hover {
  transform: scale(1.18) translateZ(0) !important;
}
.tile-watchlist-btn:active {
  transform: scale(0.9) translateZ(0) !important;
}
.modal-overlay {
  transition:
    opacity 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.34s ease,
    backdrop-filter 0.34s ease,
    -webkit-backdrop-filter 0.34s ease !important;
}
.modal-content {
  transition:
    transform 0.46s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.3s ease !important;
}
.modal-hero-img {
  transition:
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.5s ease !important;
}
.episode-card {
  transform: translateZ(0);
  transition:
    background 0.3s ease,
    clip-path 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.34s ease !important;
}
.episode-card:hover {
  transition:
    background 0.3s ease,
    clip-path 0.46s cubic-bezier(0.34, 1.24, 0.64, 1),
    filter 0.36s ease,
    z-index 0s !important;
}
.ep-thumb img {
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.36s ease !important;
}
.ep-play-ring {
  transition: all 0.26s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  will-change: transform;
}
.ep-desc {
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    margin-top 0.3s ease !important;
}
.ep-actions {
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s 50ms ease,
    margin-top 0.3s ease !important;
}
.ssv-card {
  transform: translateZ(0);
  will-change: transform;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.34, 0.64, 1),
    border-color 0.26s ease,
    box-shadow 0.34s ease !important;
}
.ssv-card img {
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.32s ease !important;
}
.watchlist-box {
  transition: transform 0.42s cubic-bezier(0.34, 1.24, 0.64, 1) !important;
}
.confirm-box {
  transition: transform 0.38s cubic-bezier(0.34, 1.5, 0.64, 1) !important;
}
.customize-box,
.sync-box {
  transition: transform 0.42s cubic-bezier(0.34, 1.22, 0.64, 1) !important;
}
.next-ep-toast {
  transition:
    transform 0.52s cubic-bezier(0.34, 1.28, 0.64, 1),
    opacity 0.38s ease !important;
}
.ai-fullscreen {
  transform: translateX(18px);
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.34, 1.18, 0.64, 1) !important;
}
.ai-fullscreen.visible {
  transform: translateX(0) !important;
}
.ai-msg-wrap {
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
#mf-toast {
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.34, 1.32, 0.64, 1) !important;
}
.cw-inner {
  transition:
    transform 0.36s cubic-bezier(0.34, 1.22, 0.64, 1),
    box-shadow 0.3s ease,
    opacity 0.3s ease !important;
  transform: translateZ(0);
}
.cw-inner:hover {
  transform: translateY(-3px) scale(1.02) translateZ(0) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 122, 255, 0.2) !important;
}
#dockMoreSheet {
  transition: transform 0.46s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
.magnetic {
  transition: transform 0.45s cubic-bezier(0.34, 1.42, 0.64, 1) !important;
  will-change: transform;
}
.mood-btn {
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.25s ease !important;
  transform: translateZ(0);
}
.mood-btn:hover {
  transform: scale(1.04) translateZ(0) !important;
}
.mood-btn:active {
  transform: scale(0.96) translateZ(0) !important;
}
.ruleta-drum {
  transition:
    transform 0.36s cubic-bezier(0.34, 1.3, 0.64, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease !important;
  transform: translateZ(0);
  will-change: transform;
}
#statsFab,
.premiere-fab,
.ruleta-fab,
.watchlist-fab {
  transition:
    transform 0.36s cubic-bezier(0.34, 1.38, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.25s ease !important;
  will-change: transform;
  transform: translateZ(0);
}
.premiere-fab:hover,
.ruleta-fab:hover,
.watchlist-fab:hover {
  transform: translateY(-5px) scale(1.08) translateZ(0) !important;
}
.premiere-fab:active,
.ruleta-fab:active,
.watchlist-fab:active {
  transform: scale(0.92) translateZ(0) !important;
  transition: transform 70ms ease !important;
}
.sh-card {
  transition:
    transform 0.34s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.24s ease !important;
  transform: translateZ(0);
  will-change: transform;
}
.sh-card:hover {
  transform: translateY(-6px) scale(1.02) translateZ(0) !important;
}
.dock-badge {
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.34, 1.5, 0.64, 1) !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
.edit-mode-overlay {
  display: none;
}
.edit-mode-overlay.open {
  display: block;
}
.edit-topbar {
  display: none;
}
.edit-topbar.visible {
  display: flex;
}
.edit-fab-tray {
  display: none;
}
.edit-fab-tray.visible {
  display: block;
}
body.edit-mode-active #hdrEditBtn {
  background: rgba(0, 122, 255, 0.15) !important;
  color: #007aff !important;
}
body.edit-mode-active #hdrEditBtn svg {
  animation: editPencilWiggle 0.6s ease-in-out;
}
@keyframes editPencilWiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}
body.edit-mode-active .collections-fab,
body.edit-mode-active .mf-fab,
body.edit-mode-active .premiere-fab,
body.edit-mode-active .ruleta-fab,
body.edit-mode-active .stats-fab,
body.edit-mode-active .voice-mode-fab,
body.edit-mode-active .watchlist-fab {
  animation: fabWiggle 0.8s ease-in-out infinite !important;
}
@keyframes fabWiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-4deg) scale(1.03);
  }
  60% {
    transform: rotate(4deg) scale(1.03);
  }
}
#dockMoreSheet button:not(#pwaInstallBtn):hover {
  opacity: 0.8;
  transform: scale(0.97);
}
#dockMoreSheet button:not(#pwaInstallBtn):active {
  opacity: 0.65;
  transform: scale(0.94);
  transition-duration: 80ms !important;
}
#epRatingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
  opacity: 0;
}
#epRatingOverlay.open {
  opacity: 1;
}
#epRatingSheet {
  background: #1c1c1e;
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 36px;
  width: 100%;
  max-width: 480px;
  transform: translateY(30px);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}
#epRatingOverlay.open #epRatingSheet {
  transform: translateY(0);
}
.er-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 18px;
}
.er-series-name {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.er-ep-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}
.er-stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.er-star {
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.25;
  transition:
    opacity 0.15s,
    transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.er-star.active {
  opacity: 1;
}
.er-star:hover {
  transform: scale(1.2);
}
.er-star.bounce {
  animation: erBounce 0.3s ease;
}
@keyframes erBounce {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
}
.er-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  min-height: 20px;
  margin-bottom: 22px;
  transition: color 0.2s;
}
.er-label.rated {
  color: rgba(255, 159, 10, 0.9);
  font-weight: 600;
}
.er-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.er-btn-skip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.er-btn-skip:hover {
  background: rgba(255, 255, 255, 0.13);
}
.er-btn-save {
  background: rgba(255, 159, 10, 0.15);
  color: rgba(255, 159, 10, 0.4);
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.er-btn-save.enabled {
  background: rgba(255, 159, 10, 0.9);
  color: #000;
  border-color: transparent;
}
.er-btn-save.enabled:hover {
  background: #ff9f0a;
}
.ep-user-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: rgba(255, 159, 10, 0.9);
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 5px;
  padding: 1px 6px;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.15s;
}
.ep-user-rating:hover {
  background: rgba(255, 159, 10, 0.22);
}
.er-star-mini {
  font-size: 0.65rem;
}
#panelRatingSummary {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: -apple-system, sans-serif;
}
#panelRatingAvg {
  font-size: 0.75rem;
  color: rgba(255, 159, 10, 0.9);
  font-weight: 600;
}
#panelRatingCount {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}
:root {
  --ios-bg: #000000;
  --ios-bg1: #0a0a0f;
  --ios-bg2: #111118;
  --ios-glass: rgba(28, 28, 36, 0.72);
  --ios-glass-hi: rgba(40, 40, 54, 0.8);
  --ios-glass-border: rgba(255, 255, 255, 0.1);
  --ios-glass-border-hi: rgba(255, 255, 255, 0.18);
  --ios-blur: blur(52px) saturate(2.2);
  --ios-blur-med: blur(32px) saturate(1.8);
  --ios-blue: #007aff;
  --ios-blue-glow: rgba(0, 122, 255, 0.35);
  --ios-blue-soft: rgba(0, 122, 255, 0.14);
  --ios-teal: #5ac8fa;
  --ios-separator: rgba(84, 84, 88, 0.3);
  --ios-label: rgba(255, 255, 255, 0.92);
  --ios-label2: rgba(255, 255, 255, 0.55);
  --ios-label3: rgba(255, 255, 255, 0.3);
  --ios-radius-sm: 12px;
  --ios-radius: 18px;
  --ios-radius-lg: 24px;
  --ios-radius-xl: 32px;
  --ios-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  --ios-shadow-lg:
    0 24px 80px rgba(0, 0, 0, 0.8), 0 8px 32px rgba(0, 0, 0, 0.5);
  --ios-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
body,
html {
  background: var(--ios-bg) !important;
}
.bg-glow {
  background:
    radial-gradient(
      ellipse 70% 50% at 15% 5%,
      rgba(0, 122, 255, 0.07) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 60% at 85% 95%,
      rgba(90, 200, 250, 0.05) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 35% at 50% 50%,
      rgba(0, 122, 255, 0.025) 0,
      transparent 70%
    ) !important;
  animation: bgShift 35s ease-in-out infinite alternate !important;
}
.mf-header {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: var(--ios-blur) !important;
  -webkit-backdrop-filter: var(--ios-blur) !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.mf-header-logo {
  font-weight: 800 !important;
  letter-spacing: -0.6px !important;
  font-size: 1.2rem !important;
}
.mf-header-btn {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.15s ease !important;
}
.mf-header-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: scale(1.08) !important;
}
.mf-dock {
  background: rgba(12, 12, 18, 0.72) !important;
  backdrop-filter: blur(70px) saturate(2.8) brightness(0.9) !important;
  -webkit-backdrop-filter: blur(70px) saturate(2.8) brightness(0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 32px !important;
  padding: 7px 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.04) !important;
  transition:
    padding 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-radius 0.3s ease !important;
}
.mf-dock:hover {
  padding: 10px 18px !important;
  border-radius: 36px !important;
}
.dock-btn {
  border-radius: 16px !important;
  padding: 6px 12px !important;
  min-width: 44px !important;
  transition: all 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
.dock-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.7 !important;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 0.2s !important;
}
.dock-btn .dock-label {
  font-size: 0.5rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05px !important;
  transition: font-size 0.22s ease !important;
}
.mf-dock:hover .dock-btn svg {
  width: 21px !important;
  height: 21px !important;
}
.mf-dock:hover .dock-btn .dock-label {
  font-size: 0.54rem !important;
}
.dock-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-5px) scale(1.08) !important;
}
.dock-btn:hover svg {
  transform: scale(1.15) !important;
}
.dock-btn:active {
  transform: scale(0.88) !important;
}
.dock-btn.active {
  color: var(--ios-blue) !important;
  background: rgba(0, 122, 255, 0.14) !important;
}
.dock-btn.active svg {
  stroke: var(--ios-blue) !important;
  filter: drop-shadow(0 0 6px rgba(0, 122, 255, 0.5)) !important;
}
.dock-btn.dock-ai {
  background: linear-gradient(140deg, #007aff 0, #0a84ff 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0, 122, 255, 0.6),
    0 6px 24px rgba(0, 122, 255, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  border-radius: 18px !important;
}
.dock-btn.dock-ai:hover {
  background: linear-gradient(140deg, #0a84ff 0, #34aadc 100%) !important;
  transform: translateY(-6px) scale(1.1) !important;
  box-shadow:
    0 14px 40px rgba(0, 122, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.dock-btn.dock-ai svg {
  stroke: #fff !important;
  filter: none !important;
}
.dock-btn.dock-ai .dock-label {
  color: rgba(255, 255, 255, 0.88) !important;
}
.dock-sep {
  background: rgba(255, 255, 255, 0.06) !important;
  margin: 0 4px !important;
}
.ps-tile {
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
.ps-tile-wrapper.kb-focus .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  box-shadow:
    0 16px 56px rgba(0, 0, 0, 0.75),
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.1) inset !important;
}
.tile-gradient {
  background: linear-gradient(
    180deg,
    transparent 0,
    transparent 30%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.92) 100%
  ) !important;
}
.modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(60px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(60px) saturate(1.6) !important;
}
.modal-content {
  background: rgba(10, 10, 16, 0.95) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 28px !important;
  box-shadow:
    var(--ios-inset),
    var(--ios-shadow-lg),
    0 0 0 0.5px rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) !important;
}
.modal-body {
  background: rgba(8, 8, 13, 0.98) !important;
}
.modal-hero-img {
  filter: saturate(0.9) brightness(0.48) !important;
}
.modal-hero-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0,
      transparent 20%,
      rgba(0, 0, 0, 0.6) 60%,
      #08080d 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 8, 13, 0.8) 0,
      rgba(8, 8, 13, 0.1) 40%,
      transparent 70%
    ) !important;
}
.modal-hero-left h2 {
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  letter-spacing: -1.4px !important;
  text-shadow:
    0 2px 40px #000,
    0 1px 8px rgba(0, 0, 0, 0.8) !important;
}
.btn-continue {
  background: linear-gradient(140deg, #007aff, #0a84ff) !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  box-shadow:
    0 8px 28px rgba(0, 122, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
  letter-spacing: -0.1px !important;
}
.btn-continue:hover {
  transform: scale(1.05) translateY(-2px) !important;
  box-shadow:
    0 14px 40px rgba(0, 122, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.btn-shuffle {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px) !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  box-shadow: var(--ios-inset) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}
.btn-shuffle:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px) !important;
}
.close-btn {
  background: rgba(40, 40, 50, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    var(--ios-inset) !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 0.78rem !important;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: rotate(90deg) scale(1.12) !important;
}
.ep-view-bar {
  background: rgba(8, 8, 14, 0.92) !important;
  backdrop-filter: blur(52px) saturate(2) !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.45) !important;
}
.ep-view-back {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 11px !important;
  color: var(--ios-blue) !important;
  font-weight: 600 !important;
}
.ep-view-back:hover {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.25) !important;
}
.ep-view-season-badge {
  background: rgba(0, 122, 255, 0.12) !important;
  border: 0.5px solid rgba(0, 122, 255, 0.28) !important;
  border-radius: 20px !important;
}
.ep-view-season-badge-dot {
  width: 6px !important;
  height: 6px !important;
  background: var(--ios-blue) !important;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.7) !important;
}
.season-all-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.65rem !important;
}
.episode-grid {
  background: rgba(12, 12, 18, 0) !important;
  gap: 0 !important;
  flex-direction: column !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 8px 12px 120px !important;
}
.episode-card {
  background: rgba(24, 24, 34, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  margin-bottom: 6px !important;
  flex-direction: row !important;
  align-items: center !important;
  clip-path: none !important;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease !important;
}
.episode-card:hover {
  background: rgba(32, 32, 46, 0.88) !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 0 0.5px rgba(255, 255, 255, 0.1) !important;
}
.episode-card.next-ep {
  background: rgba(0, 122, 255, 0.1) !important;
  border-color: rgba(0, 122, 255, 0.25) !important;
  box-shadow: 0 0 0 0.5px rgba(0, 122, 255, 0.2) !important;
}
.episode-card.next-ep::before {
  border-radius: 3px 0 0 3px !important;
  background: linear-gradient(180deg, #007aff, #0a84ff) !important;
  box-shadow: 1px 0 8px rgba(0, 122, 255, 0.4) !important;
}
.episode-card.watched {
  opacity: 0.38 !important;
}
.episode-card .ep-thumb {
  display: none !important;
}
.episode-card .ep-body {
  padding: 12px 14px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}
.episode-card .ep-num {
  font-size: 0.6rem !important;
  color: var(--ios-label3) !important;
  min-width: 30px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}
.episode-card.next-ep .ep-num {
  color: var(--ios-blue) !important;
}
.episode-card .ep-title {
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--ios-label) !important;
}
.episode-card:hover .ep-title {
  white-space: nowrap !important;
  color: #fff !important;
}
.episode-card .ep-desc {
  display: none !important;
}
.episode-card .ep-actions {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
}
.ep-btn-play-hbo {
  background: linear-gradient(135deg, #007aff, #0a84ff) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  padding: 6px 14px !important;
  border: none !important;
  box-shadow:
    0 3px 12px rgba(0, 122, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  letter-spacing: -0.1px !important;
}
.ep-btn-play-hbo:hover {
  background: linear-gradient(135deg, #0a84ff, #34aadc) !important;
  transform: scale(1.04) !important;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.55) !important;
}
.ep-btn-mark {
  width: 28px !important;
  height: 28px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  transition: all 0.15s ease !important;
}
.ep-btn-mark:hover {
  background: rgba(48, 209, 88, 0.14) !important;
  border-color: rgba(48, 209, 88, 0.45) !important;
  color: #30d158 !important;
  transform: scale(1.1) !important;
}
.watched .ep-btn-mark {
  background: rgba(48, 209, 88, 0.12) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
  color: #30d158 !important;
}
.ep-hover-play,
.ep-play-ring {
  display: none !important;
}
.ep-progress-bar-fill {
  background: linear-gradient(90deg, #007aff, #5ac8fa) !important;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.5) !important;
}
.ep-next-tag {
  position: static !important;
  background: rgba(0, 122, 255, 0.18) !important;
  color: var(--ios-blue) !important;
  border: 0.5px solid rgba(0, 122, 255, 0.35) !important;
  border-radius: 6px !important;
  font-size: 0.55rem !important;
  padding: 2px 7px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: none !important;
}
.ssv-card {
  background: rgba(24, 24, 36, 0.72) !important;
  backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    var(--ios-inset) !important;
  transition: all 0.18s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
.ssv-card:hover {
  background: rgba(32, 32, 48, 0.85) !important;
  transform: scale(1.03) translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}
.ssv-card.ssv-active {
  background: rgba(0, 122, 255, 0.13) !important;
  border-color: rgba(0, 122, 255, 0.38) !important;
  box-shadow:
    0 4px 20px rgba(0, 122, 255, 0.22),
    var(--ios-inset) !important;
}
.ssv-play-btn {
  background: rgba(0, 122, 255, 0.85) !important;
  border: none !important;
  box-shadow: 0 3px 12px rgba(0, 122, 255, 0.45) !important;
}
.ssv-play-btn:hover {
  background: #007aff !important;
  transform: scale(1.1) !important;
}
.ai-apikey-box {
  background: rgba(14, 14, 22, 0.92) !important;
  backdrop-filter: blur(60px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(60px) saturate(2.2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 26px !important;
  box-shadow: var(--ios-inset), var(--ios-shadow-lg) !important;
}
.ai-apikey-title {
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.4px !important;
}
.ai-apikey-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 13px 16px !important;
  font-size: 0.8rem !important;
  transition:
    border-color 0.18s,
    box-shadow 0.18s !important;
}
.ai-apikey-input:focus {
  border-color: rgba(0, 122, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12) !important;
}
.ai-apikey-btn {
  background: linear-gradient(135deg, #007aff, #0a84ff) !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow:
    0 6px 20px rgba(0, 122, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  letter-spacing: -0.1px !important;
  transition: all 0.18s ease !important;
}
.ai-apikey-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.52) !important;
  opacity: 1 !important;
}
.ai-apikey-skip {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  color: var(--ios-label2) !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}
.ai-apikey-skip:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--ios-label) !important;
}
.ai-key-tab {
  border-radius: 14px !important;
  padding: 11px 6px 9px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transition: all 0.15s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
.ai-key-tab.active {
  background: rgba(0, 122, 255, 0.15) !important;
  border-color: rgba(0, 122, 255, 0.38) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.2) !important;
}
.ai-key-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) scale(1.02) !important;
}
.ai-panel {
  background: linear-gradient(
    160deg,
    rgba(14, 16, 26, 0.78) 0,
    rgba(8, 10, 20, 0.88) 100%
  ) !important;
  backdrop-filter: blur(80px) saturate(2.8) brightness(0.95) !important;
  -webkit-backdrop-filter: blur(80px) saturate(2.8) brightness(0.95) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    -12px 0 60px rgba(0, 0, 0, 0.55),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
}
.ai-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 40% at 30% 0,
    rgba(0, 122, 255, 0.06) 0,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}
.ai-panel > * {
  position: relative;
  z-index: 1;
}
.ai-msg-bubble {
  border-radius: 18px !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
.ai-input-row {
  background: rgba(8, 10, 18, 0.75) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(60px) saturate(2) !important;
  box-shadow: 0 -1px 0 rgba(0, 122, 255, 0.08) !important;
}
.ai-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  color: var(--ios-label) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
.ai-input:focus {
  border-color: rgba(0, 122, 255, 0.5) !important;
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.12),
    inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.ai-send-btn {
  background: linear-gradient(135deg, #007aff, #0a84ff) !important;
  box-shadow:
    0 4px 18px rgba(0, 122, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
}
#mf-toast {
  background: rgba(20, 20, 28, 0.95) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(2) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    var(--ios-inset) !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  letter-spacing: -0.1px !important;
}
.watchlist-overlay,
.wl-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(50px) saturate(1.8) !important;
}
.watchlist-box,
.wl-box {
  background: rgba(14, 14, 22, 0.95) !important;
  backdrop-filter: blur(60px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 26px !important;
  box-shadow: var(--ios-inset), var(--ios-shadow-lg) !important;
}
.mood-box {
  background: rgba(12, 12, 20, 0.96) !important;
  backdrop-filter: blur(60px) saturate(2.2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 26px !important;
  box-shadow: var(--ios-inset), var(--ios-shadow-lg) !important;
}
.mood-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  transition: all 0.18s cubic-bezier(0.34, 1.3, 0.64, 1) !important;
}
.mood-btn.selected,
.mood-btn:hover {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  transform: scale(1.04) translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.18) !important;
}
.streak-widget {
  background: rgba(18, 18, 26, 0.85) !important;
  backdrop-filter: blur(20px) saturate(2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    var(--ios-inset) !important;
}
.pg-overlay {
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(60px) saturate(1.6) !important;
}
.pg-avatar {
  border-radius: 28px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.32s cubic-bezier(0.34, 1.25, 0.64, 1) !important;
}
.pg-profile-item:hover .pg-avatar {
  transform: scale(1.08) translateY(-6px) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.notif-panel {
  background: rgba(12, 12, 20, 0.97) !important;
  backdrop-filter: blur(60px) saturate(2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 22px !important;
  box-shadow: var(--ios-inset), var(--ios-shadow-lg) !important;
}
.universe-overlay {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(60px) saturate(1.6) !important;
}
.disco-box,
.universe-box {
  background: rgba(12, 12, 20, 0.95) !important;
  backdrop-filter: blur(60px) saturate(2.2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 26px !important;
  box-shadow: var(--ios-inset), var(--ios-shadow-lg) !important;
}
.disco-card {
  background: rgba(22, 22, 34, 0.72) !important;
  backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
/* DUPLIKÁT ODSTRANĚN — hover transform nyní výhradně v hlavní definici (viz řádek ~3105) */
.disco-card:hover {
  /* background override zachován pro glassmorphism patch */
  background: rgba(30, 30, 46, 0.88) !important;
  /* transform NEOVERRIDUJEME — nechaj hlavní definici bez !important */
}
#searchInput,
.disco-search-input,
.search-input {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(10px) !important;
}
#searchInput:focus,
.disco-search-input:focus,
.search-input:focus {
  border-color: rgba(0, 122, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12) !important;
}
.cw-inner {
  background: rgba(18, 18, 26, 0.9) !important;
  backdrop-filter: blur(20px) saturate(2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.5),
    var(--ios-inset) !important;
}
#syncStatusBadge {
  background: rgba(14, 14, 22, 0.82) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}
.timer-fab {
  background: rgba(18, 18, 26, 0.88) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    var(--ios-inset) !important;
  transition: all 0.18s cubic-bezier(0.34, 1.3, 0.64, 1) !important;
}
.timer-fab:hover {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.3) !important;
  transform: scale(1.08) !important;
  color: var(--ios-blue) !important;
}
#dockMoreSheet {
  background: rgba(10, 10, 16, 0.88) !important;
  backdrop-filter: blur(60px) saturate(2.2) !important;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 -8px 48px rgba(0, 0, 0, 0.55),
    var(--ios-inset) !important;
}
.ruleta-box {
  background: rgba(12, 12, 20, 0.97) !important;
  backdrop-filter: blur(60px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 26px !important;
  box-shadow: var(--ios-inset), var(--ios-shadow-lg) !important;
}
.mf-header-logo {
  color: rgba(255, 255, 255, 0.95) !important;
}
.mf-header-logo span {
  color: #007aff !important;
}
.disco-nav-item[data-type="movie"].active {
  background: rgba(255, 159, 10, 0.14) !important;
  border-color: rgba(255, 159, 10, 0.45) !important;
  color: #ff9f0a !important;
}
.disco-nav-item[data-type="tv"].active {
  background: rgba(48, 209, 88, 0.12) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
  color: #30d158 !important;
}
::-webkit-scrollbar {
  width: 3px !important;
  height: 3px !important;
}
::-webkit-scrollbar-track {
  background: 0 0 !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 3px !important;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}
::selection {
  background: rgba(0, 122, 255, 0.28) !important;
}
:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.6) !important;
  outline-offset: 2px !important;
}
#cinemaBottomBar,
#cinemaModal,
#cinemaTopBar,
.mf-header,
.mood-box,
.ps-tile,
.ps-tile-wrapper,
.tile-bg,
.tile-logo,
.timer-panel,
.toast {
  will-change: transform;
  transform: translateZ(0);
}
* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mf-header {
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
}
#hdrStreakPill,
#mfProfileBadge,
.streak-widget {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.mood-box,
.sync-box,
.timer-panel,
.universe-overlay {
  backdrop-filter: blur(24px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.3) !important;
}
#cinemaBottomBar,
#cinemaTopBar {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
#cinNextEpOverlay,
#cinemaLoader {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
.ps-tile .tile-bg {
  filter: none !important;
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.ps-tile-wrapper.kb-focus .tile-bg,
.ps-tile-wrapper:hover .tile-bg {
  filter: none !important;
  transform: scale(1.05) !important;
}
.ps-tile-wrapper {
  transition: transform 0.22s cubic-bezier(0.34, 1.1, 0.64, 1) !important;
}
.ps-tile-wrapper.kb-focus,
.ps-tile-wrapper:hover {
  transform: translateY(-7px) scale(1.03) !important;
}
.ps-tile {
  transition: box-shadow 0.22s ease !important;
}
.tile-logo {
  transition: transform 0.22s cubic-bezier(0.34, 1.1, 0.64, 1) !important;
}
.ps-tile-wrapper.kb-focus .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}
.bg-glow {
  animation: none !important;
}
.tile-logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9)) !important;
}
.tile-glare {
  mix-blend-mode: normal !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0,
    transparent 60%
  ) !important;
}
.ps-row,
.ps-row-scroll,
[class*="scroll"] {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
#cinemaModal {
  contain: strict;
}
:root {
  --bg: #07090f;
  --bg2: #0c0f1a;
  --bg3: #111520;
  --accent: #0a84ff;
  --accent2: #30aaff;
  --accent-glow: rgba(10, 132, 255, 0.28);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.4);
  --muted2: rgba(255, 255, 255, 0.16);
  --plexi-fill: rgba(18, 22, 36, 0.68);
  --plexi-fill-light: rgba(28, 34, 54, 0.55);
  --plexi-border: rgba(255, 255, 255, 0.1);
  --plexi-border-hi: rgba(255, 255, 255, 0.22);
  --plexi-edge: rgba(255, 255, 255, 0.28);
  --plexi-blur: blur(28px) saturate(1.8) brightness(0.95);
  --plexi-blur-heavy: blur(40px) saturate(2);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.55);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.85), 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 40px 120px rgba(0, 0, 0, 0.95), 0 12px 40px rgba(0, 0, 0, 0.7);
  --radius: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --tile-h: 318px;
}
body,
html {
  background: var(--bg) !important;
}
.bg-glow {
  background:
    radial-gradient(
      ellipse 90% 55% at 10% -5%,
      rgba(10, 132, 255, 0.09) 0,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 90% 105%,
      rgba(94, 92, 230, 0.06) 0,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 50%,
      rgba(20, 28, 60, 0.4) 0,
      transparent 80%
    ) !important;
  animation: none !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.logo {
  font-weight: 800 !important;
  letter-spacing: -0.6px !important;
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 18px rgba(10, 132, 255, 0.3) !important;
}
.logo span {
  color: var(--accent) !important;
  text-shadow: 0 0 20px rgba(10, 132, 255, 0.5) !important;
}
.mf-header {
  background: rgba(7, 9, 15, 0.78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.4) !important;
}
.ps-tile-wrapper {
  transition:
    transform 0.38s cubic-bezier(0.34, 1.32, 0.64, 1),
    filter 0.32s ease !important;
}
.ps-tile-wrapper.kb-focus,
.ps-tile-wrapper:hover {
  transform: translateY(-12px) scale(1.04) translateZ(0) !important;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)) !important;
}
.ps-tile {
  border-radius: var(--radius) !important;
  border: 1px solid var(--plexi-border) !important;
  background: linear-gradient(
    160deg,
    rgba(30, 36, 58, 0.6) 0,
    rgba(12, 15, 26, 0.8) 100%
  ) !important;
  backdrop-filter: var(--plexi-blur) !important;
  -webkit-backdrop-filter: var(--plexi-blur) !important;
  box-shadow:
    inset 0 1.5px 0 var(--plexi-edge),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
  transition:
    box-shadow 0.38s cubic-bezier(0.34, 1.1, 0.64, 1),
    border-color 0.3s ease !important;
}
.ps-tile::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 6% !important;
  right: 6% !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32) 40%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.32) 60%,
    transparent
  ) !important;
  z-index: 14 !important;
}
.ps-tile::after {
  content: "" !important;
  position: absolute !important;
  top: 5% !important;
  left: 0 !important;
  width: 1px !important;
  height: 50% !important;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent
  ) !important;
  z-index: 14 !important;
  pointer-events: none !important;
}
.ps-tile-wrapper.kb-focus .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 28px 70px rgba(0, 0, 0, 0.75),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(10, 132, 255, 0.06) !important;
}
.ps-tile-wrapper.kb-focus .ps-tile {
  box-shadow:
    0 0 0 2px rgba(10, 132, 255, 0.9),
    0 0 0 4px rgba(10, 132, 255, 0.2),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    0 28px 70px rgba(0, 0, 0, 0.75),
    0 0 50px rgba(10, 132, 255, 0.18) !important;
  border-color: rgba(10, 132, 255, 0.5) !important;
}
.ps-tile .tile-bg {
  filter: saturate(0.9) brightness(0.85) !important;
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  opacity: 0;
}
.ps-tile .tile-bg.loaded {
  opacity: 1 !important;
}
.ps-tile-wrapper.kb-focus .tile-bg,
.ps-tile-wrapper:hover .tile-bg {
  transform: scale(1.07) !important;
  filter: saturate(1.05) brightness(0.95) !important;
}
.ps-tile .tile-gradient {
  background: linear-gradient(
    to top,
    rgba(4, 6, 14, 0.98) 0,
    rgba(6, 9, 20, 0.65) 40%,
    rgba(10, 14, 28, 0.12) 68%,
    transparent 100%
  ) !important;
}
.tile-glare {
  background: radial-gradient(
    ellipse 85% 55% at 28% 12%,
    rgba(255, 255, 255, 0.11) 0,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 70%
  ) !important;
  mix-blend-mode: normal !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}
.ps-tile-wrapper.kb-focus .tile-glare,
.ps-tile-wrapper:hover .tile-glare {
  opacity: 1 !important;
}
.tile-depth-shadow {
  box-shadow:
    inset 0 -80px 55px -10px rgba(4, 6, 16, 0.9),
    inset 4px 0 18px -6px rgba(0, 0, 0, 0.45),
    inset -4px 0 18px -6px rgba(0, 0, 0, 0.45) !important;
}
.tile-progress {
  background: rgba(255, 255, 255, 0.04) !important;
}
.tile-progress-fill {
  background: linear-gradient(90deg, #0a84ff, #30d2ff) !important;
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.6) !important;
}
.tile-continue-badge {
  background: var(--plexi-fill) !important;
  border: 1px solid var(--plexi-border) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--shadow-sm) !important;
}
#seriesModal .modal-inner,
.modal-box,
.modal-content {
  background: rgba(9, 12, 22, 0.92) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--shadow-xl) !important;
  backdrop-filter: blur(40px) saturate(1.9) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.9) !important;
}
.mood-box {
  background: rgba(9, 12, 22, 0.94) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--shadow-xl) !important;
  backdrop-filter: blur(36px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.8) !important;
}
.timer-panel {
  background: rgba(10, 13, 24, 0.96) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--shadow-lg) !important;
  backdrop-filter: blur(32px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.7) !important;
}
.notif-panel {
  background: rgba(9, 12, 22, 0.96) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--shadow-xl) !important;
  backdrop-filter: blur(36px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.8) !important;
}
.sync-box {
  background: rgba(10, 13, 24, 0.97) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    var(--shadow-xl) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
}
.streak-widget {
  background: rgba(12, 16, 28, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-sm) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
}
#mfProfileBadge {
  background: rgba(12, 16, 28, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--shadow-sm) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
#syncStatusBadge {
  background: rgba(12, 16, 28, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-top-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.toast {
  background: rgba(14, 18, 32, 0.95) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--shadow-lg) !important;
  backdrop-filter: blur(28px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.7) !important;
}
.timer-fab {
  background: rgba(14, 18, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-sm) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
.timer-fab:hover {
  border-color: rgba(10, 132, 255, 0.35) !important;
  background: rgba(10, 132, 255, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(10, 132, 255, 0.12),
    var(--shadow) !important;
}
.cw-inner {
  background: rgba(12, 16, 28, 0.92) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--shadow-lg) !important;
  backdrop-filter: blur(28px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.7) !important;
}
.speech-mic-btn {
  background: rgba(14, 18, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-sm) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.pg-avatar {
  background: linear-gradient(
    160deg,
    rgba(28, 34, 60, 0.88) 0,
    rgba(14, 18, 34, 0.96) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow) !important;
}
.pg-profile-item:hover .pg-avatar {
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(10, 132, 255, 0.08) !important;
  transform: scale(1.08) translateY(-8px) !important;
}
#cinemaBottomBar,
#cinemaTopBar {
  background: rgba(6, 8, 16, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
}
#seriesModal {
  backdrop-filter: blur(6px) brightness(0.6) !important;
  -webkit-backdrop-filter: blur(6px) brightness(0.6) !important;
}
.mood-btn {
  background: rgba(20, 24, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.mood-btn.selected,
.mood-btn:hover {
  background: rgba(10, 132, 255, 0.12) !important;
  border-color: rgba(10, 132, 255, 0.4) !important;
  border-top-color: rgba(10, 132, 255, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(10, 132, 255, 0.2),
    0 0 20px rgba(10, 132, 255, 0.1) !important;
}
.notif-bell {
  background: rgba(12, 16, 28, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--shadow-sm) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.pm-box {
  background: rgba(9, 12, 22, 0.98) !important;
  border: 1px solid var(--plexi-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    var(--shadow-xl) !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}
@keyframes plexiGlow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(10, 132, 255, 0.15);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(10, 132, 255, 0.3);
  }
}
.admin-trigger {
  position: fixed;
  bottom: max(130px, env(safe-area-inset-bottom, 130px));
  right: 20px;
  z-index: 200;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.3);
  color: rgba(255, 80, 80, 0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
}
.admin-trigger.visible {
  opacity: 1;
  pointer-events: auto;
}
.admin-trigger:hover {
  background: rgba(255, 60, 60, 0.22);
  color: #ff5050;
  transform: scale(1.1);
}
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px) saturate(1.5);
  display: none;
  flex-direction: column;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.admin-overlay.open {
  display: flex;
}
.admin-overlay.visible {
  animation: adminFadeIn 0.28s ease forwards;
}
@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 60, 60, 0.2);
  background: rgba(255, 30, 30, 0.06);
}
.admin-header-badge {
  background: linear-gradient(135deg, #ff3c3c, #ff7060);
  color: #fff;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(255, 60, 60, 0.4);
}
.admin-header-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}
.admin-header-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}
.admin-header-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.admin-header-close:hover {
  background: rgba(255, 60, 60, 0.2);
  color: #ff5050;
}
.admin-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 16px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.18s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}
.admin-nav-item.active {
  color: #ff5050;
  background: rgba(255, 60, 60, 0.08);
  border-left-color: #ff5050;
}
.admin-nav-item .ani {
  font-size: 1rem;
}
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.admin-section-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s;
}
.admin-stat-card:hover {
  border-color: rgba(255, 60, 60, 0.3);
}
.admin-stat-value {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ff5050;
  line-height: 1;
}
.admin-stat-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-stat-sub {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 2px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.admin-table .admin-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 700;
}
.admin-badge.green {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}
.admin-badge.yellow {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.25);
}
.admin-badge.red {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.25);
}
.admin-badge.blue {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.25);
}
.admin-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #fff;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.75rem;
  outline: 0;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}
.admin-input:focus {
  border-color: rgba(255, 80, 80, 0.5);
}
.admin-btn {
  padding: 9px 18px;
  border-radius: 9px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.3px;
}
.admin-btn.primary {
  background: linear-gradient(135deg, #ff3c3c, #ff6060);
  color: #fff;
}
.admin-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 60, 60, 0.3);
}
.admin-btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}
.admin-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.admin-btn.danger {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #e74c3c;
}
.admin-btn.danger:hover {
  background: rgba(231, 76, 60, 0.25);
}
.admin-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 12px;
}
.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-toggle-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
.admin-toggle-sub {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}
.admin-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}
.admin-toggle.on {
  background: #ff5050;
}
.admin-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.admin-toggle.on::after {
  transform: translateX(18px);
}
.admin-algo-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.admin-algo-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-algo-bar-label {
  width: 130px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.admin-algo-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.admin-algo-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.admin-algo-bar-val {
  width: 38px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  flex-shrink: 0;
}
.admin-log {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.7;
}
.admin-log .log-info {
  color: rgba(100, 200, 255, 0.8);
}
.admin-log .log-warn {
  color: rgba(255, 200, 50, 0.8);
}
.admin-log .log-ok {
  color: rgba(80, 220, 120, 0.8);
}
.admin-log .log-err {
  color: rgba(255, 80, 80, 0.8);
}
.admin-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.admin-series-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-series-card img {
  width: 36px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}
.admin-series-card-info {
  flex: 1;
  min-width: 0;
}
.admin-series-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-series-card-meta {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}
.admin-series-card-actions {
  display: flex;
  gap: 5px;
}
.admin-series-action-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}
.admin-series-action-btn:hover {
  background: rgba(255, 60, 60, 0.15);
  border-color: rgba(255, 60, 60, 0.3);
  color: #ff6060;
}
.admin-score-result {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
}
.admin-score-title {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ff9090;
}
.admin-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-search-row .admin-input {
  margin-bottom: 0;
}
.admin-pin-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.admin-pin-gate.open {
  display: flex;
}
.admin-pin-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ff5050;
}
.admin-pin-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}
.admin-pin-input {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 80, 80, 0.3);
  border-radius: 12px;
  color: #ff9090;
  padding: 10px 24px;
  outline: 0;
  width: 240px;
  transition: border-color 0.2s;
}
.admin-pin-input:focus {
  border-color: rgba(255, 80, 80, 0.6);
}
.admin-pin-hint {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
}
.edit-mode-trigger {
  display: none !important;
  visibility: hidden !important;
}
.edit-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9201;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(6, 6, 10, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 122, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.edit-topbar.visible {
  display: flex;
}
.edit-topbar-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
}
.edit-topbar-badge {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 20px;
  padding: 3px 9px;
}
.edit-topbar-hint {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  flex: 1;
}
.edit-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.edit-topbar-btn {
  padding: 7px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  transition: all 0.18s;
}
.edit-topbar-btn.reset {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.22);
  color: rgba(255, 100, 100, 0.75);
}
.edit-topbar-btn.reset:hover {
  background: rgba(255, 80, 80, 0.16);
  color: #ff6464;
}
.edit-topbar-btn.done {
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: 900;
}
.edit-topbar-btn.done:hover {
  opacity: 0.88;
  transform: scale(1.04);
}
.edit-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px) saturate(0.5);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.edit-mode-overlay.open {
  display: block;
  pointer-events: auto;
}
.edit-mode-overlay.visible {
  opacity: 1;
}
.edit-mode-active .ai-fab,
.edit-mode-active .collections-fab,
.edit-mode-active .import-trigger,
.edit-mode-active .mf-fab,
.edit-mode-active .premiere-fab,
.edit-mode-active .ruleta-fab,
.edit-mode-active .speech-mic-btn,
.edit-mode-active .stats-fab,
.edit-mode-active .voice-mode-fab,
.edit-mode-active .watchlist-fab {
  z-index: 9203 !important;
  pointer-events: auto !important;
  cursor: grab !important;
  outline: 2px dashed rgba(0, 122, 255, 0.3);
  outline-offset: 4px;
  transition:
    outline 0.2s,
    box-shadow 0.2s,
    transform 0.2s !important;
}
.edit-mode-active .ai-fab:active,
.edit-mode-active .collections-fab:active,
.edit-mode-active .mf-fab:active,
.edit-mode-active .premiere-fab:active,
.edit-mode-active .ruleta-fab:active,
.edit-mode-active .stats-fab:active,
.edit-mode-active .voice-mode-fab:active,
.edit-mode-active .watchlist-fab:active {
  cursor: grabbing !important;
}
.edit-mode-active .fab-selected {
  outline: 2px solid var(--accent) !important;
  outline-offset: 5px;
  z-index: 9205 !important;
  filter: drop-shadow(0 0 12px rgba(0, 122, 255, 0.5)) !important;
}
.edit-snap-line-h,
.edit-snap-line-v {
  position: fixed;
  background: rgba(0, 122, 255, 0.55);
  pointer-events: none;
  z-index: 9300;
  display: none;
}
.edit-snap-line-h {
  left: 0;
  right: 0;
  height: 1px;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.4);
}
.edit-snap-line-v {
  top: 0;
  bottom: 0;
  width: 1px;
  box-shadow: 0 0 6px rgba(0, 122, 255, 0.4);
}
.edit-fab-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9210;
  background: rgba(8, 8, 14, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  padding: 16px 20px max(20px, env(safe-area-inset-bottom, 20px));
  gap: 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.15, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}
.edit-fab-tray.open {
  display: flex;
}
.edit-fab-tray.visible {
  transform: translateY(0);
}
.edit-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.edit-tray-fab-name {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}
.edit-tray-fab-name span {
  color: var(--accent);
}
.edit-tray-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.edit-tray-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.edit-section-label {
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
  margin-top: 14px;
}
.edit-section-label:first-of-type {
  margin-top: 0;
}
.edit-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.edit-pos-btn {
  padding: 8px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.edit-pos-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
}
.edit-pos-btn.active {
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.4);
  color: var(--accent);
}
.edit-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.edit-slider-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 52px;
  flex-shrink: 0;
}
.edit-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: 0;
  cursor: pointer;
}
.edit-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
  cursor: pointer;
}
.edit-slider-val {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 30px;
  text-align: right;
}
.edit-color-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.edit-color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.edit-color-swatch:hover {
  transform: scale(1.15);
}
.edit-color-swatch.active {
  border-color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.edit-color-custom {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: 0 0;
  padding: 0;
}
.edit-toggle-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.edit-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.18s;
  user-select: none;
}
.edit-toggle .edit-toggle-dot {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.edit-toggle .edit-toggle-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition:
    left 0.2s,
    background 0.2s;
}
.edit-toggle.on .edit-toggle-dot {
  background: rgba(0, 122, 255, 0.3);
}
.edit-toggle.on .edit-toggle-dot::after {
  left: 14px;
  background: var(--accent);
}
.edit-toggle.on {
  border-color: rgba(0, 122, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}
.edit-action-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.edit-action-btn {
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.18s;
  flex: 1;
  text-align: center;
}
.edit-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.edit-action-btn.danger {
  border-color: rgba(255, 80, 80, 0.22);
  background: rgba(255, 80, 80, 0.07);
  color: rgba(255, 100, 100, 0.7);
}
.edit-action-btn.danger:hover {
  background: rgba(255, 80, 80, 0.16);
  color: #ff6464;
}
.edit-action-btn.accent {
  border-color: rgba(0, 122, 255, 0.25);
  background: rgba(0, 122, 255, 0.07);
  color: var(--accent);
}
.edit-action-btn.accent:hover {
  background: rgba(0, 122, 255, 0.15);
}
.fab-hidden-by-user {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.7) !important;
}
.edit-mode-active .fab-hidden-by-user {
  opacity: 0.25 !important;
  pointer-events: auto !important;
  transform: none !important;
  filter: grayscale(1);
}
.edit-fab-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}
.edit-fab-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
  font-size: 0.52rem;
  font-weight: 700;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.edit-fab-chip:hover {
  border-color: rgba(0, 122, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 122, 255, 0.06);
}
.edit-fab-chip.selected {
  border-color: var(--accent);
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent);
}
.edit-fab-chip.hidden-fab {
  opacity: 0.35;
}
.edit-fab-chip-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.edit-preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.edit-preset-btn {
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.18s;
  text-align: center;
}
.edit-preset-btn:hover {
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--accent);
  background: rgba(0, 122, 255, 0.08);
}
#ai-voice-bubble-overlay,
#epRatingOverlay,
#syncModal,
#syncOverlay,
#voiceCmdOverlay,
.collections-overlay,
.genre-editor-overlay,
.mood-overlay,
.pm-overlay,
.premiere-overlay,
.ruleta-overlay,
.trakt-overlay,
.universe-overlay,
.voice-cmd-overlay,
.watchlist-overlay,
.wrapped-overlay {
  z-index: 9999000 !important;
  isolation: isolate;
}
#ai-bubble-close,
.collections-close,
.genre-editor-close,
.mood-close-btn,
.notif-panel-close,
.pm-close,
.premiere-close,
.ruleta-close,
.sync-close,
.trakt-close,
.voice-cmd-close,
.wl-close,
.wrapped-close {
  position: absolute !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}
#mfProfileBadge {
  position: fixed !important;
  top: 8px !important;
  right: 16px !important;
  z-index: 9100 !important;
  pointer-events: auto !important;
  transition:
    opacity 0.2s,
    transform 0.2s !important;
}
body.mf-panel-open #mfProfileBadge {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
}
body.mf-section-protebe #mfProfileBadge {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
}
#adminTriggerBtn,
#aiFab,
#statsFab,
#syncBtn,
#voiceModeFab,
#watchlistFab,
.collections-fab,
.notif-bell,
.premiere-fab,
.ruleta-fab,
.speech-mic-btn,
.timer-fab {
  z-index: 9000 !important;
}
body.modal-open #adminTriggerBtn,
body.modal-open #aiFab,
body.modal-open #statsFab,
body.modal-open #syncBtn,
body.modal-open #voiceModeFab,
body.modal-open #watchlistFab,
body.modal-open .collections-fab,
body.modal-open .premiere-fab,
body.modal-open .ruleta-fab,
body.modal-open .timer-fab {
  z-index: 100 !important;
  pointer-events: none !important;
}
#syncStatusBadge {
  right: 220px !important;
  top: max(22px, env(safe-area-inset-top, 22px)) !important;
  z-index: 9200 !important;
}
.speech-mic-btn {
  right: auto !important;
  left: 16px !important;
  z-index: 9000 !important;
}
.notif-bell {
  display: none !important;
}
#adminTriggerBtn {
  z-index: 9000 !important;
}
#tmdbAvatarModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}
#tmdbAvatarModal.open {
  display: flex;
}
.tmdb-av-box {
  background: rgba(14, 14, 22, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px 24px;
  width: min(500px, 95vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
}
.tmdb-av-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.tmdb-av-search-row {
  display: flex;
  gap: 8px;
}
.tmdb-av-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: 0;
  font-family: -apple-system, sans-serif;
  transition: border-color 0.2s;
}
.tmdb-av-input:focus {
  border-color: rgba(0, 122, 255, 0.45);
}
.tmdb-av-search-btn {
  padding: 10px 18px;
  border-radius: 11px;
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.tmdb-av-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  overflow-y: auto;
  max-height: 340px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.tmdb-av-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 4px;
  border: 2px solid transparent;
  transition: all 0.18s;
}
.tmdb-av-item:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
}
.tmdb-av-item.selected {
  border-color: var(--accent);
  background: rgba(0, 122, 255, 0.15);
}
.tmdb-av-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.tmdb-av-name {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.3;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tmdb-av-close-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.tmdb-av-cancel {
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  cursor: pointer;
}
.tmdb-av-confirm {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}
.tmdb-av-hint {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: -6px;
}
.tmdb-av-loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  padding: 24px;
}
.pc-tmdb-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(0, 122, 255, 0.07);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: rgba(0, 122, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-bottom: 2px;
  transition: all 0.18s;
  font-family: -apple-system, sans-serif;
}
.pc-tmdb-btn:hover {
  background: rgba(0, 122, 255, 0.13);
  border-color: rgba(0, 122, 255, 0.35);
}
#adminProfileApiModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}
#adminProfileApiModal.open {
  display: flex;
}
.apk-box {
  background: rgba(8, 8, 12, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px 26px;
  width: min(560px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.95);
  scrollbar-width: thin;
}
.apk-title {
  font-family: -apple-system, "SF Pro Display", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.apk-profile-name {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: var(--accent);
  font-weight: 700;
}
.apk-section-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
}
.apk-key-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apk-key-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.apk-key-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.apk-key-input-row {
  display: flex;
  gap: 7px;
  align-items: center;
}
.apk-key-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.75rem;
  outline: 0;
  font-family: Outfit, monospace, sans-serif;
  letter-spacing: 0.3px;
  transition: border-color 0.2s;
}
.apk-key-input:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.apk-save-btn {
  padding: 9px 14px;
  border-radius: 9px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.apk-save-btn:hover {
  background: rgba(0, 122, 255, 0.18);
}
.apk-clear-btn {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 60, 60, 0.08);
  border: 1px solid rgba(255, 60, 60, 0.2);
  color: rgba(255, 100, 100, 0.75);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.apk-clear-btn:hover {
  background: rgba(255, 60, 60, 0.15);
}
.apk-status {
  font-size: 0.58rem;
  color: rgba(80, 220, 120, 0.8);
  display: none;
}
.apk-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.apk-close-btn {
  padding: 10px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  cursor: pointer;
}
#mfFbModal {
  position: fixed;
  inset: 0;
  z-index: 19000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#mfFbModal.open {
  display: flex;
}
.mfFbBox {
  background: rgba(12, 12, 19, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 24px 20px 20px;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.9);
}
.mfFbBox::-webkit-scrollbar {
  width: 3px;
}
.mfFbBox::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.mfFbTitle {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}
.mfFbSub {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
  margin-bottom: 18px;
}
.mfFbSub a {
  color: #007aff;
  text-decoration: none;
}
.mfFbLbl {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
  margin-top: 10px;
}
.mfFbInp {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.75rem;
  font-family: monospace;
  outline: 0;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.mfFbInp:focus {
  border-color: rgba(0, 122, 255, 0.5);
}
.mfFbSep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 16px 0 12px;
}
.mfFbGroupRow {
  display: flex;
  gap: 7px;
}
.mfFbGroupInp {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.78rem;
  font-family: monospace;
  outline: 0;
}
.mfFbGroupInp:focus {
  border-color: rgba(0, 122, 255, 0.45);
}
.mfFbGenBtn {
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}
.mfFbActions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.mfFbSave {
  flex: 1;
  padding: 12px;
  border-radius: 13px;
  background: #007aff;
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: -apple-system, sans-serif;
}
.mfFbSave:hover {
  background: #06d;
}
.mfFbCancel {
  padding: 12px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  cursor: pointer;
}
.mfFbStatus {
  margin-top: 10px;
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  min-height: 16px;
}
#mfPerProfileSection {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.mfPPS-title {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.mfPPS-sub {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 12px;
}
.mfPPS-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 9px;
}
.mfPPS-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mfPPS-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  overflow: hidden;
}
.mfPPS-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mfPPS-name {
  font-size: 0.82rem;
  font-weight: 700;
}
.mfPPS-id {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.26);
  font-family: monospace;
  margin-top: 1px;
}
.mfPPS-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.mfPPS-row:last-child {
  margin-bottom: 0;
}
.mfPPS-lbl {
  font-size: 0.59rem;
  font-weight: 700;
  min-width: 80px;
}
.mfPPS-inp {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.67rem;
  font-family: monospace;
  outline: 0;
}
.mfPPS-inp:focus {
  border-color: rgba(0, 122, 255, 0.4);
}
.mfPPS-save {
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: #007aff;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.mfPPS-del {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 80, 80, 0.07);
  border: 1px solid rgba(255, 80, 80, 0.2);
  color: rgba(255, 100, 100, 0.7);
  font-size: 0.6rem;
  cursor: pointer;
}
#aiFab:not(.dock-btn) {
  display: none !important;
}
#syncStatusBadge {
  z-index: 9050 !important;
}
#aiFullscreen {
  z-index: 8600 !important;
}
.pg-gate {
  z-index: 9400 !important;
}
#mfPinModal {
  z-index: 9500 !important;
}
#adminOverlay {
  z-index: 9200 !important;
}
#dockPlex.active {
  background: rgba(229, 160, 13, 0.16) !important;
}
#dockPlex.active svg {
  stroke: #e5a00d !important;
}
#dockPlex.active .dock-label {
  color: #e5a00d !important;
}
#dockFilmy.active {
  background: rgba(0, 122, 255, 0.18) !important;
}
#dockFilmy.active svg {
  stroke: #007aff !important;
}
#dockFilmy.active .dock-label {
  color: #007aff !important;
}
#dockProtebe.active {
  background: rgba(10, 132, 255, 0.15) !important;
}
#dockProtebe.active svg {
  stroke: #0a84ff !important;
}
#dockProtebe.active .dock-label {
  color: #0a84ff !important;
}
#dockHome.active {
  background: rgba(50, 215, 75, 0.15) !important;
}
#dockHome.active svg {
  stroke: #32d74b !important;
}
#dockHome.active .dock-label {
  color: #32d74b !important;
}
:root {
  --glass-bg: rgba(28, 28, 36, 0.72);
  --glass-bg-light: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-lo: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px) saturate(1.5);
  --glass-blur-sm: blur(20px) saturate(1.6);
  --glass-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-shadow-sm:
    0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ios-red: #ff375f;
  --ios-orange: #ff9f0a;
  --ios-green: #30d158;
  --ios-blue: #0a84ff;
  --ios-indigo: #5e5ce6;
  --ios-purple: #bf5af2;
  --ios-teal: #5ac8fa;
}
#mfHeader,
.mf-header,
header.mf-header {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 0.5px solid var(--glass-border) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
#mfDock,
.mf-dock,
nav.mf-dock {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 0.5px solid var(--glass-border) !important;
  box-shadow:
    var(--glass-shadow),
    0 0 0 0.5px rgba(255, 255, 255, 0.04) inset !important;
}
.dock-btn {
  transition:
    transform 0.15s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.18s ease,
    opacity 0.15s ease !important;
}
.dock-btn:active {
  transform: scale(0.88) !important;
  opacity: 0.7 !important;
}
.ps-tile {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1),
    box-shadow 0.4s ease !important;
}
.ps-tile-wrapper.focused .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 40px rgba(0, 122, 255, 0.08) !important;
}
.modal-content {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 0.5px solid var(--glass-border) !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
#watchlistOverlay .watchlist-inner,
.watchlist-inner {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-left: 0.5px solid var(--glass-border) !important;
}
#searchOverlay,
.search-overlay {
  background: rgba(7, 7, 10, 0.85) !important;
  backdrop-filter: blur(48px) saturate(2) !important;
  -webkit-backdrop-filter: blur(48px) saturate(2) !important;
}
#searchInput,
.mf-search-input,
.search-input {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 0.5px solid var(--glass-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s !important;
}
#searchInput:focus,
.search-input:focus {
  border-color: rgba(10, 132, 255, 0.5) !important;
  box-shadow:
    0 0 0 3px rgba(10, 132, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
#dockMoreSheet {
  background: rgba(18, 18, 28, 0.82) !important;
  backdrop-filter: blur(56px) saturate(2) !important;
  -webkit-backdrop-filter: blur(56px) saturate(2) !important;
  border-top: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -24px 64px rgba(0, 0, 0, 0.5) !important;
}
#dockMoreSheet [style*="grid"] button {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition:
    transform 0.15s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.18s ease !important;
}
#dockMoreSheet [style*="grid"] button:active {
  transform: scale(0.93) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
#dockMoreSheet [style*="flex-direction:column"] {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
#discoHeader,
.disco-header {
  background: rgba(7, 7, 10, 0.75) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-bottom: 0.5px solid var(--glass-border-lo) !important;
}
:root {
  --ios26-glass-bg: rgba(255, 255, 255, 0.08);
  --ios26-glass-border: rgba(255, 255, 255, 0.18);
  --ios26-glass-blur: blur(32px) saturate(2.2) brightness(1.08);
  --ios26-glass-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  --ios26-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
  --ios26-accent-glow:
    0 0 40px rgba(0, 122, 255, 0.22), 0 0 80px rgba(0, 122, 255, 0.08);
}
.disco-nav-item {
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  transition: all 0.28s var(--ios26-spring) !important;
}
.disco-nav-item:hover {
  transform: scale(1.05) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
.disco-nav-item:active {
  transform: scale(0.94) !important;
  transition-duration: 80ms !important;
}
.disco-nav-item.active {
  background: rgba(10, 132, 255, 0.16) !important;
  border-color: rgba(10, 132, 255, 0.38) !important;
  color: #fff !important;
  box-shadow:
    0 2px 14px rgba(10, 132, 255, 0.2),
    0 0 0 0.5px rgba(10, 132, 255, 0.42) !important;
  backdrop-filter: blur(24px) saturate(2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(2) !important;
}
.disco-hero {
  border-radius: 0 0 20px 20px;
  overflow: hidden !important;
}
.disco-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 20% 85%,
    rgba(0, 122, 255, 0.07) 0,
    transparent 60%
  );
  pointer-events: none;
  z-index: 2;
}
.disco-hero-btn.secondary {
  backdrop-filter: var(--ios26-glass-blur) !important;
  -webkit-backdrop-filter: var(--ios26-glass-blur) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.disco-row-nav-btn {
  backdrop-filter: blur(16px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
  transition: all 0.28s var(--ios26-spring) !important;
}
.disco-row-nav-btn:active {
  transform: scale(0.88) !important;
  transition-duration: 80ms !important;
}
.disco-row-scroll {
  mask-image: linear-gradient(
    to right,
    transparent 0px,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0px,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  ) !important;
}
.disco-header {
  backdrop-filter: blur(20px) saturate(2) brightness(0.92) !important;
  -webkit-backdrop-filter: blur(20px) saturate(2) brightness(0.92) !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07) !important;
}
.disco-close {
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.28s var(--ios26-spring) !important;
}
.disco-close:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.4) !important;
  background: rgba(255, 255, 255, 0.16) !important;
}
.disco-close:active {
  transform: scale(0.9) rotate(90deg) !important;
  transition-duration: 0.1s !important;
}
.ps-tile-wrapper.kb-focus,
.ps-tile-wrapper:hover {
  transform: translateY(-14px) scale(1.05) !important;
}
.ps-tile-wrapper.kb-focus .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(0, 122, 255, 0.12),
    0 0 60px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.universe-overlay {
  background:
    radial-gradient(
      ellipse 80% 50% at 15% 5%,
      rgba(0, 122, 255, 0.06) 0,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 60% at 85% 95%,
      rgba(90, 200, 250, 0.04) 0,
      transparent 60%
    ),
    #050507 !important;
}
.disco-scroll-hint-icon {
  backdrop-filter: blur(28px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(28px) saturate(2.2) !important;
}
.disco-row-scroll:has(.disco-card:hover) .disco-card:not(:hover) {
  filter: brightness(0.72) saturate(0.75);
  transform: scale(0.96);
  transition:
    filter 0.4s ease,
    transform 0.45s var(--ios26-spring) !important;
}
.disco-card-watchlist-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
.drt-tag {
  animation: drtTagPulse 3s ease-in-out infinite;
}
@keyframes drtTagPulse {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(0, 122, 255, 0.15);
  }
  50% {
    box-shadow:
      0 0 14px rgba(0, 122, 255, 0.35),
      0 0 24px rgba(0, 122, 255, 0.1);
  }
}
.disco-card.sh-focused {
  transform: scale(1.13) translateY(-18px) !important;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.9),
    0 0 0 2px rgba(0, 122, 255, 0.8),
    0 0 60px rgba(0, 122, 255, 0.2) !important;
  border-color: rgba(0, 122, 255, 0.6) !important;
}
@keyframes discoCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.disco-card {
  animation: discoCardIn 0.5s var(--ios26-spring) both;
}
.disco-card:first-child {
  animation-delay: 20ms;
}
.disco-card:nth-child(2) {
  animation-delay: 60ms;
}
.disco-card:nth-child(3) {
  animation-delay: 0.1s;
}
.disco-card:nth-child(4) {
  animation-delay: 0.14s;
}
.disco-card:nth-child(5) {
  animation-delay: 0.18s;
}
.disco-card:nth-child(6) {
  animation-delay: 0.22s;
}
.disco-card:nth-child(7) {
  animation-delay: 0.26s;
}
.disco-card:nth-child(8) {
  animation-delay: 0.3s;
}
.disco-card:nth-child(9) {
  animation-delay: 0.34s;
}
.disco-card:nth-child(10) {
  animation-delay: 0.38s;
}
.disco-row-title {
  transition: letter-spacing 0.3s ease;
}
.disco-row:hover .disco-row-title {
  letter-spacing: -0.6px !important;
}
.disco-spinner {
  border: 2px solid rgba(255, 255, 255, 0.06) !important;
  border-top-color: rgba(0, 122, 255, 0.7) !important;
  border-right-color: rgba(0, 122, 255, 0.3) !important;
  width: 28px !important;
  height: 28px !important;
  box-shadow: 0 0 16px rgba(0, 122, 255, 0.15) !important;
}
.genre-pill:active {
  transform: scale(0.94) !important;
}
.disco-genre-pill.active,
.genre-pill.active {
  background: rgba(10, 132, 255, 0.2) !important;
  border-color: rgba(10, 132, 255, 0.4) !important;
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.2) !important;
}
#ruletaResult,
.ruleta-result-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 0.5px solid var(--glass-border) !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.ai-sidebar {
  background: rgba(14, 14, 22, 0.7) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-right: 0.5px solid var(--glass-border-lo) !important;
}
.ai-input-wrap {
  background: rgba(14, 14, 22, 0.8) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  border-top: 0.5px solid var(--glass-border-lo) !important;
}
#mfToast,
.mf-toast,
.toast-msg {
  background: rgba(40, 40, 52, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
#mfProfileBadge,
.mpb-wrap {
  background: rgba(28, 28, 40, 0.75) !important;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: var(--glass-shadow-sm) !important;
}
#streakDisplay,
.streak-display,
[id*="streak"] {
  background: rgba(28, 28, 40, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}
#continueWidget,
.continue-widget {
  background: rgba(22, 22, 32, 0.82) !important;
  backdrop-filter: blur(28px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
  border: 0.5px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}
.key-hint,
.kh-group kbd {
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}
#syncStatusBadge {
  background: rgba(28, 28, 40, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}
#adminOverlay .adm-sidebar {
  background: rgba(12, 12, 20, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 0.5px solid var(--glass-border-lo) !important;
}
.btn,
[role="button"],
button {
  -webkit-tap-highlight-color: transparent !important;
}
.modal-overlay.open .modal-content,
.ruleta-overlay.open .ruleta-inner {
  animation: iosSlideUp 0.42s cubic-bezier(0.34, 1.12, 0.64, 1) both !important;
}
@keyframes iosSlideUp {
  from {
    transform: translateY(48px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
#watchlistOverlay.open .watchlist-inner {
  animation: iosSlideRight 0.38s cubic-bezier(0.34, 1.1, 0.64, 1) both !important;
}
@keyframes iosSlideRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.ps-tile {
  border: 0.5px solid rgba(255, 255, 255, 0.07) !important;
}
.ps-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0,
    transparent 50%,
    rgba(0, 0, 0, 0.06) 100%
  );
  z-index: 1;
}
.autosave-indicator {
  background: rgba(28, 28, 40, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--glass-shadow-sm) !important;
}
#mfFbModal > div,
.mfFbBox {
  background: rgba(12, 12, 20, 0.88) !important;
  backdrop-filter: blur(48px) saturate(2) !important;
  -webkit-backdrop-filter: blur(48px) saturate(2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
#syncModal .sync-modal-inner,
.sync-modal-inner {
  background: rgba(14, 14, 22, 0.9) !important;
  backdrop-filter: blur(48px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(48px) saturate(1.8) !important;
  border: 0.5px solid var(--glass-border) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75) !important;
}
#mfSectionProtebe button {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition:
    transform 0.15s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.18s !important;
}
#mfSectionProtebe button:active {
  transform: scale(0.96) !important;
}
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent !important;
}
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-track {
  background: 0 0;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
.disco-card {
  perspective: 800px;
  border-radius: 12px !important;
}
.ps-tile {
  perspective: 1200px;
}
.modal-hero::before {
  background: radial-gradient(
    ellipse 55% 65% at 75% 25%,
    color-mix(in srgb, var(--accent, #007aff) 10%, transparent) 0,
    transparent 60%
  ) !important;
}
.mf-toast,
.toast {
  border-radius: 20px !important;
  padding: 12px 20px !important;
  backdrop-filter: blur(20px) saturate(2.2) brightness(1.1) !important;
  -webkit-backdrop-filter: blur(20px) saturate(2.2) brightness(1.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.65),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
  animation: ios26ToastIn 0.5s cubic-bezier(0.34, 1.28, 0.64, 1) both !important;
}
@keyframes ios26ToastIn {
  from {
    transform: translateX(-50%) translateY(-16px) scale(0.88);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}
.sh-card {
  border-radius: 18px !important;
  transition: all 0.45s cubic-bezier(0.34, 1.28, 0.64, 1) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}
.sh-card.sh-focused,
.sh-card:hover {
  transform: scale(1.12) translateY(-10px) !important;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.95),
    0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(0, 122, 255, 0.18),
    0 0 50px rgba(0, 122, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
.sh-card:active {
  transform: scale(0.95) translateY(-2px) !important;
  transition-duration: 0.1s !important;
}
.sh-card-play-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(24px) saturate(2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(2) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.5) !important;
  width: 50px !important;
  height: 50px !important;
  transform: translate(-50%, -50%) scale(0.5) rotate(-10deg) !important;
  transition: all 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) !important;
}
.sh-card.sh-focused .sh-card-play-btn,
.sh-card:hover .sh-card-play-btn {
  transform: translate(-50%, -50%) scale(1) rotate(0) !important;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.05),
    0 0 0 20px rgba(255, 255, 255, 0.02),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.6) !important;
}
#ruletaResult,
.ruleta-box {
  backdrop-filter: blur(50px) saturate(2.2) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(50px) saturate(2.2) brightness(1.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.9),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}
.pg-avatar {
  transition:
    transform 0.32s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.22s ease !important;
}
.pg-profile-item:hover .pg-avatar {
  transform: scale(1.08) translateY(-6px) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.ep-card:hover {
  background: rgba(28, 28, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateX(4px) scale(1.005);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
.notif-bell {
  backdrop-filter: blur(24px) saturate(2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(2) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.28, 0.64, 1) !important;
}
.notif-bell:hover {
  transform: scale(1.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 122, 255, 0.1) !important;
}
.notif-bell:active {
  transform: scale(0.92) !important;
  transition-duration: 80ms !important;
}
.timer-fab {
  backdrop-filter: blur(28px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(28px) saturate(2.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.32s cubic-bezier(0.34, 1.28, 0.64, 1) !important;
}
.timer-fab:active {
  transform: scale(0.9) !important;
  transition-duration: 80ms !important;
}
.key-hint,
.kh-group kbd {
  backdrop-filter: blur(20px) saturate(2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(2) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.bg-glow {
  background:
    radial-gradient(
      ellipse 70% 55% at 18% 8%,
      rgba(0, 122, 255, 0.07) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 60% at 82% 92%,
      rgba(90, 200, 250, 0.045) 0,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 30% at 50% 50%,
      rgba(0, 122, 255, 0.018) 0,
      transparent 70%
    ) !important;
}
.ps-menu:has(.ps-tile-wrapper:hover) .ps-tile-wrapper:not(:hover) {
  filter: brightness(0.78) saturate(0.7);
  transition: filter 0.35s ease !important;
}
.ps-menu:has(.ps-tile-wrapper:hover) .ps-tile-wrapper:not(:hover) .ps-tile {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
.disco-hero-btn {
  transition: all 0.32s cubic-bezier(0.34, 1.28, 0.64, 1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.disco-hero-btn:active {
  transform: scale(0.93) translateY(1px) !important;
  transition-duration: 80ms !important;
}
.disco-hero-btn.primary {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow:
    0 5px 22px rgba(10, 132, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.disco-hero-btn.primary:hover {
  background: #1a8fff !important;
  box-shadow:
    0 9px 32px rgba(10, 132, 255, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  transform: translateY(-2px) scale(1.02) !important;
}
.tile-watchlist-btn {
  backdrop-filter: blur(24px) saturate(2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(2) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.32s cubic-bezier(0.34, 1.5, 0.64, 1) !important;
}
.tile-watchlist-btn:hover {
  transform: scale(1.18) !important;
  background: rgba(0, 122, 255, 0.2) !important;
  border-color: rgba(0, 122, 255, 0.55) !important;
  box-shadow:
    0 0 20px rgba(0, 122, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.tile-watchlist-btn:active {
  transform: scale(0.9) !important;
  transition-duration: 80ms !important;
}
@keyframes cinSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cinGlassFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes cinBarFadeInTop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cinBarFadeInBottom {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#cinemaTopBar {
  opacity: 1;
  transition: opacity 0.35s;
  animation: cinBarFadeInTop 0.4s ease;
}
#cinemaBottomBar {
  display: none !important;
}
#cinemaModal:fullscreen #cinemaTopBar {
  opacity: 0;
  pointer-events: none;
}
#cinemaModal:fullscreen #cinemaTopBar:hover {
  opacity: 1;
  pointer-events: auto;
}
#cinemaModal:-webkit-full-screen #cinemaTopBar {
  opacity: 0;
  pointer-events: none;
}
#cinemaModal:-webkit-full-screen #cinemaTopBar:hover {
  opacity: 1;
  pointer-events: auto;
}
#cinemaModal:fullscreen::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 9;
  pointer-events: auto;
}
#cinemaSourceBar button {
  font-size: 0.75rem !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 650 !important;
  font-family: -apple-system, Inter, sans-serif !important;
  letter-spacing: 0.1px !important;
  transition: all 0.18s !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(20px) !important;
}
#cinemaSourceBar button:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
#cinAIBadge {
  font-size: 0.72rem !important;
  padding: 7px 13px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
}
#cinemaEpSel option,
#cinemaSeasonSel option {
  background: #1c1c2e;
  color: #fff;
}
#cinNextEpOverlay > div {
  animation: cinGlassFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.disco-card,
.ep-card,
.movie-tile,
.ps-tile-wrapper,
.sh-card {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ps-tile-wrapper {
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.28s ease !important;
}
.ps-tile-wrapper.kb-focus,
.ps-tile-wrapper:hover {
  transform: translateY(-6px) scale(1.02) translateZ(0) !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)) !important;
  z-index: 10;
}
.ps-tile-wrapper:active {
  transform: translateY(-4px) scale(1.02) translateZ(0) !important;
  transition-duration: 80ms !important;
}
.ps-tile-wrapper.kb-focus .ps-tile,
.ps-tile-wrapper:hover .ps-tile {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 3px rgba(10, 132, 255, 0.12),
    0 28px 72px rgba(0, 0, 0, 0.95),
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
.ps-tile .tile-bg {
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    filter 0.32s ease,
    opacity 0.4s ease !important;
}
.ps-tile-wrapper.kb-focus .tile-bg,
.ps-tile-wrapper:hover .tile-bg {
  transform: scale(1.1) !important;
  filter: saturate(1.2) brightness(1.05) !important;
}
.disco-card {
  transition:
    transform 0.28s cubic-bezier(0.34, 1.5, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease !important;
}
/* DUPLIKÁT KONSOLIDOVÁN — transform odstraněn, pouze box-shadow + border override */
.disco-card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  border-color: transparent !important;
}
.disco-card-img {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1),
    filter 0.32s ease !important;
}
.disco-card:hover .disco-card-img {
  transform: scale(1.08) !important;
  filter: brightness(0.82) saturate(1.1) !important;
}
.disco-card-overlay,
.disco-card::after,
.disco-card::before {
  transition: opacity 0.22s ease !important;
}
.disco-card-glow {
  display: none !important;
}
.sh-card {
  transition:
    transform 0.24s cubic-bezier(0.34, 1.5, 0.64, 1),
    box-shadow 0.24s ease !important;
}
.sh-card.sh-focused,
.sh-card:hover {
  transform: translateY(-10px) scale(1.04) translateZ(0) !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(10, 132, 255, 0.15) !important;
}
.sh-card img {
  transition:
    filter 0.28s ease,
    transform 0.28s ease !important;
}
.sh-card.sh-focused img,
.sh-card:hover img {
  filter: brightness(1.12) saturate(1.15) !important;
  transform: scale(1.05) !important;
}
.disco-row-scroll,
.ps-list,
[class*="row-scroll"],
[class*="tile-row"] {
  scroll-snap-type: x proximity !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
}
.disco-row-scroll::-webkit-scrollbar,
.ps-list::-webkit-scrollbar {
  display: none !important;
}
.disco-card,
.ps-tile-wrapper {
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
}
@keyframes mf-smooth-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes mf-smooth-enter-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.disco-section {
  animation: mf-smooth-enter 0.38s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
.disco-row-header {
  animation: mf-smooth-enter-left 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes mf-shimmer-smooth {
  0% {
    background-position: -800px 0;
  }
  100% {
    background-position: 800px 0;
  }
}
.mf-disco-skel {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(255, 255, 255, 0.04) 100%
  ) !important;
  background-size: 800px 100% !important;
  animation: mf-shimmer-smooth 1.6s ease-in-out infinite !important;
}
.mf-disco-skel::after {
  display: none !important;
}
.ep-btn-play,
.ep-card {
  transition:
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.18s ease,
    box-shadow 0.2s ease !important;
}
.ep-card:hover {
  transform: none !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
.btn,
[role="button"],
button {
  transition:
    transform 0.15s cubic-bezier(0.34, 1.5, 0.64, 1),
    opacity 0.15s ease,
    background 0.18s ease !important;
}
.btn:active,
button:active {
  transform: scale(0.94) !important;
  transition-duration: 70ms !important;
}
@keyframes mf-page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#cinemaModal > *,
#discoBody,
#mainContent,
#ratingOverlay,
#watchlistOverlay {
  animation: mf-page-enter 0.26s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.tile-logo {
  transition:
    opacity 0.28s ease,
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}
.ps-tile-wrapper:hover .tile-logo {
  transform: scale(1.04) translateY(-2px) !important;
}
:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.8) !important;
  outline-offset: 3px !important;
  transition: outline-color 0.15s ease !important;
}

/* ═══════════════════════════════════════
   DOCK — trvale zvětšená velikost, bez hover animací
   ═══════════════════════════════════════ */
.mf-dock,
nav.mf-dock {
  padding: 8px 10px !important;
  border-radius: 32px !important;
  transition: none !important;
}
.mf-dock:hover {
  padding: 8px 10px !important;
  border-radius: 32px !important;
  box-shadow: var(--plexi-shadow) !important;
}
.dock-btn {
  padding: 10px 16px !important;
  min-width: 58px !important;
  border-radius: 22px !important;
  transform: none !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  will-change: unset !important;
}
.dock-btn:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.dock-btn svg,
.dock-btn .dock-icon {
  width: 22px !important;
  height: 22px !important;
  transition: none !important;
  will-change: unset !important;
}
.dock-btn:hover svg,
.dock-btn:hover .dock-icon {
  transform: none !important;
}
.mf-dock:hover .dock-btn svg,
.mf-dock:hover .dock-btn .dock-icon {
  width: 22px !important;
  height: 22px !important;
}
.dock-btn .dock-label {
  font-size: 0.56rem !important;
  font-weight: 600 !important;
  transition: none !important;
}
.mf-dock:hover .dock-btn .dock-label {
  font-size: 0.56rem !important;
}
.dock-btn:active {
  transform: scale(0.92) !important;
  transition: transform 70ms ease !important;
}
.dock-btn.dock-ai {
  padding: 11px 22px !important;
  min-width: 72px !important;
}
.dock-btn.dock-ai:hover {
  transform: none !important;
}

/* ══ EPISODE REDESIGN OVERRIDE ══
   Musí být na konci — přebíjí TV/AppleTV bloky které schovávají ep-thumb */
body:not(.tv-mode):not(.appletv-mode) .episode-card {
  flex-direction: row !important;
  align-items: center !important;
  background: rgba(255,255,255,0.02) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  padding: 0 !important;
  clip-path: none !important;
  margin-bottom: 2px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card:hover {
  background: rgba(255,255,255,0.055) !important;
  border-color: rgba(255,255,255,0.1) !important;
  transform: translateX(3px) !important;
  filter: none !important;
  clip-path: none !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-thumb {
  display: block !important;
  width: 160px !important;
  min-width: 160px !important;
  aspect-ratio: 16/9 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #080812 !important;
  position: relative !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: brightness(0.82) saturate(0.85) !important;
  transition: transform 0.4s ease, filter 0.3s ease !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card:hover .ep-thumb img {
  transform: scale(1.08) !important;
  filter: brightness(0.55) saturate(0.7) !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-body {
  flex: 1 !important;
  padding: 0 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  width: auto !important;
  align-items: flex-start !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-meta-row {
  flex-direction: row !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-num {
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.28) !important;
  letter-spacing: 0.5px !important;
  min-width: unset !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card.next-ep .ep-num {
  color: var(--accent) !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.92) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: unset !important;
  width: 100% !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  opacity: 1 !important;
  max-height: 44px !important;
  font-size: 0.68rem !important;
  color: rgba(255,255,255,0.38) !important;
  margin-top: 2px !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card .ep-actions {
  flex-direction: row !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  flex-shrink: unset !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-card:hover .ep-actions {
  max-height: 34px !important;
  opacity: 1 !important;
  overflow: visible !important;
  margin-top: 7px !important;
}
body:not(.tv-mode):not(.appletv-mode) .episode-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 8px 16px 120px !important;
  background: transparent !important;
  grid-template-columns: unset !important;
}

/* ══ SKRYTÍ DOCKU + PROFILU PŘI OTEVŘENÉM MODALU ══ */
body.modal-open #mfDock,
body.modal-open .mf-dock,
body.modal-open nav.mf-dock,
body.modal-open [id*="Dock"],
body.modal-open .dock {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(120%) !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, transform 0.25s ease !important;
}

body.modal-open #mfProfileBadge {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-12px) scale(0.88) !important;
  visibility: hidden !important;
  transition: opacity 0.18s ease, transform 0.2s ease !important;
}

/* Smooth show when modal closes */
#mfProfileBadge {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ══ FINÁLNÍ OVERRIDE — modal-open skrývání ══ */
body.modal-open #mfProfileBadge,
body.modal-open .mpb-wrap {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-10px) scale(0.9) !important;
  visibility: hidden !important;
}

body.modal-open #mfDock,
body.modal-open .mf-dock,
body.modal-open [class*="dock"]:not(.dock-btn) {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(100%) !important;
  visibility: hidden !important;
}

/* ══ MODAL FULLSCREEN — dock + profil schované ══ */
body.modal-open #mfDock,
body.modal-open .mf-dock,
body.modal-open nav.mf-dock {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(110%) !important;
  visibility: hidden !important;
  transition: all 0.25s ease !important;
}

body.modal-open #mfProfileBadge,
body.modal-open .mf-profile-badge {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease !important;
}

/* ══ MODAL FULLSCREEN ══ */
#seriesModal .modal-content {
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ══ Hero scroll transition ══ */
.modal-hero {
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}
.modal-hero-content {
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}
