:root {
  color-scheme: light;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-size: 14px;
}

#appShell {
  width: 100%;
  max-width: 390px !important;
  overflow-x: hidden;
}

.rounded-lg,
.rounded-xl {
  border-radius: 0.28rem !important;
}

.rounded-full {
  border-radius: 0.35rem !important;
}

h1 {
  font-size: 1.05rem !important;
}

h2 {
  font-size: 1.05rem !important;
}

.text-xl,
.text-2xl {
  font-size: 1.05rem !important;
  line-height: 1.25rem !important;
}

.text-base {
  font-size: 0.9rem !important;
}

.text-sm {
  font-size: 0.78rem !important;
}

.text-xs {
  font-size: 0.7rem !important;
}

.text-\[15px\] {
  font-size: 0.84rem !important;
}

.text-\[11px\] {
  font-size: 0.63rem !important;
}

#quickSearchForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(100deg, #1e3a8a, #2563eb);
  padding: 0.78rem 0.9rem;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.movie-list {
  border: 1px solid #dbe4f0;
  border-top: 0;
  background: #fff;
}

.movie-row {
  display: block;
  border-bottom: 1px solid #e8eef6;
  padding: 0.62rem 0.78rem;
}

.movie-row:last-child {
  border-bottom: 0;
}

.poster {
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 0.45rem;
  background: #e2e8f0;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 0.1rem 0.34rem;
  color: #1d4ed8;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.05rem;
}

.filter-select {
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid #dbe4f0;
  background: white;
  padding: 0.72rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
}

.nav-btn {
  display: flex;
  min-height: 3.55rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 0.32rem;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  min-width: 0;
}

.nav-btn.active {
  color: #2563eb;
  background: #eff6ff;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-panel {
  animation: modalIn 150ms ease-out;
}

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

@media (min-width: 640px) {
  .movie-row {
    padding: 0.72rem 0.85rem;
  }
}

nav {
  left: 50% !important;
  right: auto !important;
  width: 100%;
  max-width: 390px !important;
  transform: translateX(-50%);
}
