/* ============================================================
  Movie + — Cinema Observatory Design System
   ============================================================ */

/* ─── CSS VARIABLES (Dark Theme Default) ─── */
:root {
  --bg-deep: #06090f;
  --bg-body: #0c1117;
  --bg-surface: #141c25;
  --bg-elevated: #1a2332;
  --bg-glass: rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.06);
  --accent: #e8a948;
  --accent-soft: rgba(232,169,72,0.12);
  --accent-glow: 0 0 20px rgba(232,169,72,0.25);
  --accent-strong: #d4952e;
  --secondary: #a78bfa;
  --secondary-soft: rgba(167,139,250,0.12);
  --text-primary: #eae6f0;
  --text-secondary: #9b97ab;
  --text-muted: #5e5b6e;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --danger: #ef4444;
  --success: #22c55e;
  --info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --font-scale: 1;
  --sidebar-width: 260px;
  --focus-ring: rgba(232,169,72,0.5);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ─── LIGHT THEME ─── */
body[data-theme="light"] {
  --bg-deep: #eef0f4;
  --bg-body: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255,255,255,0.85);
  --bg-glass-hover: rgba(255,255,255,0.95);
  --accent: #d4952e;
  --accent-soft: rgba(212,149,46,0.1);
  --accent-glow: 0 0 16px rgba(212,149,46,0.15);
  --accent-strong: #b87d1e;
  --secondary: #7c3aed;
  --secondary-soft: rgba(124,58,237,0.08);
  --text-primary: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #9999aa;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --focus-ring: rgba(212,149,46,0.4);
}

/* ─── BASE RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(16px * var(--font-scale));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Nunito Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Mobile touch improvements */
button, a, [role="button"], .nav-btn, .filter-chip, .movie-card, .auth-lamp,
.pref-btn, .theme-switch, .settings-toggle, .topbar-mobile__hamburger {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, .auth-lamp, .pref-btn, .theme-switch, .settings-toggle,
.topbar-mobile__hamburger, .filter-chip, .movie-card {
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

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

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  padding: 24px 16px 16px;
  overflow-y: auto;
  transition: transform var(--transition-base);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.sidebar__logo {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(232,169,72,0.4));
}

.sidebar__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar__tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Sidebar nav */
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-btn__icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.nav-btn__label {
  position: relative;
  z-index: 1;
}

/* Sidebar divider */
.sidebar__divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Sidebar preferences */
.sidebar__prefs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar__section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.sidebar__caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -4px;
}

.sidebar__font-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar__font-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: center;
}

/* Preference buttons */
.pref-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pref-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.pref-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pref-btn--wide {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.pref-btn--wide.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Theme switch */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.theme-switch__icon {
  font-size: 1rem;
  transition: opacity var(--transition-fast);
}

.theme-switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background var(--transition-fast);
}

.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform var(--transition-base), background var(--transition-fast);
}

.theme-switch.is-dark .theme-switch__thumb {
  transform: translateX(18px);
  background: var(--accent);
}

/* Familiar mode badge */
.familiar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(46,204,113,0.15), rgba(52,152,219,0.1));
  border: 1px solid rgba(46,204,113,0.35);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2ecc71;
  letter-spacing: 0.02em;
}

/* Sidebar footer / auth */
.sidebar__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar__auth-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-lamp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.auth-lamp:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--accent-glow);
}

.auth-lamp.lamp-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--accent-glow);
}

/* ─── MOBILE TOP BAR ─── */
.topbar-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 35;
  padding: 0 16px;
  align-items: center;
  gap: 12px;
}

.topbar-mobile__hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.topbar-mobile__hamburger:hover {
  background: var(--bg-glass-hover);
}

.topbar-mobile__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.topbar-mobile__brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 38;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.sidebar-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ─── DASHBOARD (MAIN CONTENT) ─── */
.dashboard {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 32px 40px;
}

/* ─── VIEW SECTIONS ─── */
.view {
  display: none;
  animation: fadeIn var(--transition-base) ease;
}

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

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.view-header__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.view-header__sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ─── HERO SEARCH ─── */
.hero-search {
  padding: 48px 0 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-search__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #f5c76e, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-search__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search__form {
  max-width: 560px;
  margin: 0 auto;
}

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

.search-controls__input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-controls__icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.5;
}

.search-controls__input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.search-controls__input-wrap input::placeholder {
  color: var(--text-muted);
}

.search-controls__input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
  outline: none;
}

#searchBtn {
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

#searchBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
}

#searchBtn:active {
  transform: translateY(0);
}

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  justify-content: center;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #000;
  font-weight: 700;
}

/* ─── CAROUSEL ─── */
.carousel-section {
  margin: 24px 0;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.carousel-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.carousel-viewport {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 auto;
  width: 130px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: fadeSlide 300ms ease both;
}

.carousel-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent);
  box-shadow: var(--accent-glow), var(--shadow-md);
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.carousel-card__label {
  padding: 6px 8px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ─── CARDS GRID ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  animation: fadeSlide 300ms ease both;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--accent-glow), var(--shadow-md);
}

.poster-btn {
  display: block;
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.poster-btn img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.card:hover .poster-btn img {
  transform: scale(1.05);
}

.poster-btn::after {
  content: "Ver detalle";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--transition-base);
}

.card:hover .poster-btn::after {
  opacity: 1;
  transform: translateY(0);
}

.card-footer {
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.card-footer__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer__year {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
}

.watch-icon-btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.watch-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Card skeleton */
.card-skeleton {
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  aspect-ratio: 2/3.5;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ─── STATUS INDICATORS ─── */
.status {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  min-height: 1.5em;
}

.status.is-loading {
  color: var(--secondary);
}

.status.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.status.is-success {
  color: var(--success);
}

/* ─── BUTTONS ─── */
.secondary-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.secondary-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.save-btn {
  padding: 12px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  transition: all var(--transition-fast);
  width: 100%;
}

.save-btn:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

.save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.save-btn.remove {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
}

.remove-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.remove-btn:hover {
  background: rgba(239,68,68,0.1);
}

.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  border: none;
}

.btn-primary:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

/* ─── ABOUT SECTION ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.about-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.about-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.about-card-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--secondary-soft));
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  transition: all var(--transition-fast);
}

.about-cta:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

/* ─── MOVIE MODAL ─── */
.movie-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.movie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,9,15,0.88);
  backdrop-filter: blur(8px);
}

.movie-modal__content {
  position: relative;
  z-index: 1;
  width: min(960px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.movie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition-fast);
}

.movie-modal__close:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239,68,68,0.1);
}

.movie-modal__media {
  margin: 0;
}

.movie-modal__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.movie-modal__info {
  display: grid;
  align-content: start;
  gap: 12px;
}

.movie-modal__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.movie-modal__info h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.movie-modal__meta {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.movie-modal__description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.movie-modal__actions {
  margin-top: 4px;
}

/* Modal player section */
.movie-modal__player {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.movie-modal__player h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.movie-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-link-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.movie-link-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.player-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.player-container[hidden] {
  display: none;
}

.player-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal providers */
.movie-modal__providers {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.movie-modal__providers h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.movie-modal__providers-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.movie-modal__providers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.provider-chip--link {
  color: var(--accent);
  border-color: var(--accent-soft);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.provider-chip--link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-region {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  pointer-events: auto;
  animation: toastIn 280ms ease;
  box-shadow: var(--shadow-md);
}

.toast.success {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}

.toast.error {
  background: var(--danger);
  border-color: var(--danger);
}

.toast.info {
  background: var(--info);
  border-color: var(--info);
}

/* ─── COLORBLIND MODE ─── */
body[data-vision="colorblind"] .nav-btn.is-active {
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0, var(--accent-soft) 8px, transparent 8px, transparent 16px);
}

body[data-vision="colorblind"] .filter-chip.is-active {
  background: repeating-linear-gradient(135deg, var(--accent) 0, var(--accent) 6px, var(--accent-strong) 6px, var(--accent-strong) 12px);
}

body[data-vision="colorblind"] .status.is-success,
body[data-vision="colorblind"] .status.is-error {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

body[data-vision="colorblind"] .card,
body[data-vision="colorblind"] .about-card,
body[data-vision="colorblind"] .movie-modal__content {
  border-width: 2px;
}

body[data-vision="colorblind"] .toast.success {
  background: #1f4e79;
}

body[data-vision="colorblind"] .toast.error {
  background: #8b3d13;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 1024px) {
  .dashboard {
    padding: 28px 24px;
  }

  .hero-search__title {
    font-size: 2rem;
  }

  .movie-modal__content {
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.sidebar--open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .topbar-mobile {
    display: flex;
  }

  .dashboard {
    margin-left: 0;
    padding: 72px 16px 24px;
  }

  .hero-search {
    padding: 24px 0 20px;
  }

  .hero-search__title {
    font-size: 1.6rem;
  }

  .hero-search__subtitle {
    font-size: 0.9rem;
  }

  .search-controls {
    flex-direction: column;
  }

  #searchBtn {
    width: 100%;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .movie-modal__content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    max-height: 95vh;
  }

  .movie-modal__media img {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
  }

  .movie-modal__close {
    top: 8px;
    right: 8px;
  }

  .view-header {
    flex-direction: column;
    gap: 10px;
  }

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

  .toast-region {
    right: 12px;
    left: 12px;
    top: 68px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-search__title {
    font-size: 1.35rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════
   SETTINGS PANEL
   ═══════════════════════════════════════════════════════ */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.settings-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.settings-card--wide {
  grid-column: 1 / -1;
}

.settings-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.settings-card__icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.settings-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.settings-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.settings-card__info {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.settings-card__info strong {
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.settings-card__info ol {
  list-style: none;
  display: grid;
  gap: 5px;
  line-height: 1.55;
}

/* ─── Settings field ─── */
.settings-field {
  margin-bottom: 20px;
}

.settings-field:last-of-type {
  margin-bottom: 4px;
}

.settings-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ─── Settings toggle switch ─── */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.settings-toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-toggle-row:first-of-type {
  padding-top: 4px;
}

.settings-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.settings-toggle-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-toggle {
  flex-shrink: 0;
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.settings-toggle[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.settings-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition-base), background var(--transition-fast);
  pointer-events: none;
}

.settings-toggle[aria-checked="true"] .settings-toggle__thumb {
  transform: translateX(22px);
  background: #000;
}

/* ─── Selector group (replaces <select> elements) ─── */
.selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selector-group--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.selector-group--scroll::-webkit-scrollbar {
  display: none;
}

.selector-option {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.selector-option:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.selector-option.is-active,
.selector-option[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #000;
  font-weight: 700;
}

.selector-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ─── Font scale control bar ─── */
.font-scale-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scale-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.scale-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.scale-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.scale-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.scale-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.scale-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 44px;
  text-align: right;
}

/* ─── API URL field ─── */
.settings-url-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.settings-url-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: "Courier New", Courier, monospace;
  transition: all var(--transition-fast);
}

.settings-url-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--accent-glow);
}

.settings-url-input::placeholder {
  color: var(--text-muted);
}

.settings-url-status {
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 1.3em;
  color: var(--text-muted);
}

/* ─── Torrent selector rows (in movie modal) ─── */
.torrent-selector-row {
  margin-bottom: 10px;
  display: grid;
  justify-items: center;
  width: 100%;
}

.torrent-selector-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.movie-modal__player .selector-group,
.movie-modal__player .selector-group--scroll {
  justify-content: center;
  max-width: 100%;
}

.movie-modal__player .selector-option {
  font-size: 0.78rem;
  padding: 5px 11px;
}

.torrent-compat-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0 10px;
  line-height: 1.6;
}

.torrent-search-btn {
  width: auto;
  max-width: 100%;
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.84rem;
}

.torrent-results {
  width: 100%;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.torrent-result-btn {
  margin: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
  position: relative;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Player controls bar ─── */
.player-controls-bar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}

.player-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 100px;
}

.player-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITY MODES
   ═══════════════════════════════════════════════════════ */

/* ─── High contrast ─── */
body[data-vision="high-contrast"] {
  --bg-deep: #000000;
  --bg-body: #000000;
  --bg-surface: #0d0d0d;
  --bg-elevated: #1a1a1a;
  --bg-glass: rgba(255,255,255,0.05);
  --bg-glass-hover: rgba(255,255,255,0.1);
  --accent: #FFD700;
  --accent-soft: rgba(255,215,0,0.18);
  --accent-strong: #FFC200;
  --accent-glow: 0 0 16px rgba(255,215,0,0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #DDDDDD;
  --text-muted: #AAAAAA;
  --border: rgba(255,255,255,0.28);
  --border-strong: rgba(255,255,255,0.55);
  --success: #00FF88;
  --danger: #FF5555;
  --info: #55AAFF;
  --focus-ring: rgba(255,215,0,0.7);
}

body[data-vision="high-contrast"] .card,
body[data-vision="high-contrast"] .settings-card,
body[data-vision="high-contrast"] .about-card,
body[data-vision="high-contrast"] .movie-modal__content {
  border-width: 2px;
}

body[data-vision="high-contrast"] :focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 3px;
}

/* ─── Reduce motion ─── */
body[data-reduce-motion="1"] *,
body[data-reduce-motion="1"] *::before,
body[data-reduce-motion="1"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ─── Large touch targets ─── */
body[data-large-targets="1"] button:not(.settings-toggle):not(.theme-switch),
body[data-large-targets="1"] .selector-option,
body[data-large-targets="1"] .filter-chip,
body[data-large-targets="1"] .pref-btn,
body[data-large-targets="1"] .nav-btn {
  min-height: 48px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  font-size: 0.95rem !important;
}

body[data-large-targets="1"] input,
body[data-large-targets="1"] select {
  min-height: 48px !important;
  font-size: 1rem !important;
}

body[data-large-targets="1"] .carousel-arrow {
  width: 48px !important;
  height: 48px !important;
}

body[data-large-targets="1"] .auth-lamp {
  width: 48px !important;
  height: 48px !important;
}

/* ─── Large cursor ─── */
body[data-large-cursor="1"],
body[data-large-cursor="1"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='white' stroke='black' stroke-width='2' d='M6 2 L26 16 L17 17.5 L11.5 27 Z'/%3E%3C/svg%3E") 6 2, auto !important;
}

body[data-large-cursor="1"] button,
body[data-large-cursor="1"] a,
body[data-large-cursor="1"] [role="button"],
body[data-large-cursor="1"] [tabindex] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='%23FFD700' stroke='black' stroke-width='2' d='M6 2 L26 16 L17 17.5 L11.5 27 Z'/%3E%3C/svg%3E") 6 2, pointer !important;
}

/* ─── Reduce transparencies ─── */
body[data-reduce-trans="1"] {
  --bg-glass: var(--bg-elevated);
  --bg-glass-hover: var(--bg-surface);
}

body[data-reduce-trans="1"] .sidebar-overlay {
  backdrop-filter: none;
}

body[data-reduce-trans="1"] .movie-modal__overlay {
  backdrop-filter: none;
  background: rgba(0, 0, 0, 0.95);
}

/* ─── Font families ─── */
body[data-font="serif"],
body[data-font="serif"] button,
body[data-font="serif"] input {
  font-family: Georgia, "Times New Roman", serif !important;
}

body[data-font="mono"],
body[data-font="mono"] button,
body[data-font="mono"] input {
  font-family: "Courier New", Courier, monospace !important;
}

body[data-font="open"],
body[data-font="open"] button,
body[data-font="open"] input {
  font-family: "Comic Sans MS", "Comic Sans", cursive !important;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
  line-height: 1.85;
}

/* ═══════════════════════════════════════════════════════
   SETTINGS RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card--wide {
    grid-column: 1;
  }

  .settings-url-row {
    flex-direction: column;
  }

  .settings-url-input {
    min-width: unset;
    width: 100%;
  }

  .font-scale-control {
    gap: 8px;
  }

  .movie-modal__player .selector-group,
  .movie-modal__player .selector-group--scroll {
    justify-content: flex-start;
  }

  .torrent-search-btn {
    width: 100%;
    justify-content: center;
  }
}

