:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: #eef4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(82, 120, 255, 0.32), transparent 32rem), #07111f;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.subtitle {
  max-width: 720px;
  color: #b8c4d9;
  font-size: 1.15rem;
}

.eyebrow,
.episode-date {
  margin: 0;
  color: #93f5d2;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-card,
.show-header,
.episode-card,
.imdb-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(12, 26, 48, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.search-card {
  margin: 40px 0 20px;
  padding: 24px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input,
select,
button,
.actions a,
.episode-card a {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 16px;
  background: #101d31;
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.1);
}

button,
.actions a,
.episode-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #06101c;
  background: linear-gradient(135deg, #93f5d2, #a7c6ff);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #101d31;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  padding: 8px;
}

.suggestion-option {
  display: grid;
  width: 100%;
  min-height: auto;
  justify-content: start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #eef4ff;
  background: transparent;
  text-align: left;
}

.suggestion-option:hover,
.suggestion-option.active {
  color: #06101c;
  background: linear-gradient(135deg, #93f5d2, #a7c6ff);
}

.suggestion-title {
  font-weight: 900;
}

.suggestion-meta,
.suggestion-empty {
  color: #b8c4d9;
  font-size: 0.9rem;
}

.suggestion-option:hover .suggestion-meta,
.suggestion-option.active .suggestion-meta {
  color: #13243b;
}

.suggestion-empty {
  padding: 12px 14px;
}

.hint,
.count,
.episode-meta,
.episode-summary,
.show-header p {
  color: #b8c4d9;
}

.status {
  min-height: 28px;
  margin: 12px 0;
  color: #93f5d2;
  font-weight: 800;
}

.status.error {
  color: #ffb1b1;
}

.result {
  display: grid;
  gap: 18px;
}

.show-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px;
}

.show-header img {
  width: 100%;
  border-radius: 20px;
}

.show-header h2 {
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.imdb-panel {
  padding: 18px;
  color: #e6eeff;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.episode-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.episode-card h3 {
  margin: 10px 0;
  font-size: 1.4rem;
}

.episode-card a {
  align-self: flex-start;
}

@media (max-width: 760px) {
  .input-row,
  .show-header {
    grid-template-columns: 1fr;
  }

  .show-header img {
    max-width: 180px;
  }
}
