/* Scoped styles for Movie & TV Show Info Lookup */
.mtsi-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.mtsi-main {
  padding: 1.5rem 1rem 3rem;
}

.mtsi-container {
  max-width: 1000px;
  margin: 0 auto;
}

.mtsi-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.mtsi-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.mtsi-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* Search Card */
.mtsi-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mtsi-search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mtsi-input {
  flex: 1;
  min-width: 260px;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease;
}

.mtsi-input:focus {
  border-color: #0284c7;
}

.mtsi-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.mtsi-btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.mtsi-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.mtsi-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mtsi-type-pills {
  display: flex;
  gap: 0.35rem;
}

.mtsi-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mtsi-pill:hover {
  background: #e2e8f0;
}

.mtsi-pill-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.mtsi-pill-active:hover {
  background: #0369a1;
}

.mtsi-select-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mtsi-filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.mtsi-select {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

/* Detail Card */
.mtsi-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mtsi-detail-header {
  margin-bottom: 1rem;
}

.mtsi-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mtsi-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mtsi-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.mtsi-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.mtsi-badge-movie {
  background: #e0f2fe;
  color: #0284c7;
}

.mtsi-badge-tv {
  background: #fef3c7;
  color: #d97706;
}

.mtsi-badge-score {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.mtsi-detail-tagline {
  font-size: 1rem;
  font-style: italic;
  color: #64748b;
  margin: 0;
}

.mtsi-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mtsi-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.mtsi-synopsis-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #0284c7;
}

.mtsi-subhead {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.mtsi-synopsis-text {
  font-size: 0.95rem;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}

.mtsi-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.mtsi-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.mtsi-info-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.mtsi-info-text {
  font-size: 0.9rem;
  color: #1e293b;
  margin: 0;
  line-height: 1.5;
}

/* Catalog Grid */
.mtsi-catalog-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mtsi-section-head {
  margin-bottom: 1rem;
}

.mtsi-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.mtsi-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.mtsi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mtsi-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mtsi-card-selected {
  border-color: #0284c7;
  background: #f0f9ff;
}

.mtsi-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.mtsi-card-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.mtsi-card-rating {
  color: #166534;
}

.mtsi-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.mtsi-card-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Guide Section */
.mtsi-guide-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mtsi-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mtsi-guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.mtsi-guide-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0284c7;
  margin: 0 0 0.35rem;
}

.mtsi-guide-desc {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Ad slots */
.mtsi-ad-slot {
  margin: 1.75rem 0;
  min-height: 280px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
