:root {
  --bb-green: #00ff00;
  --bb-dark: #0b0f14;
  --bb-sand: #d4c4a8;
  --bb-muted: #8fa3b0;
  --bb-card: #111820;
  --bb-border: #1b252f;
  --bb-text: #e6e9ef;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #0f161e, #06090d);
  color: var(--bb-text);
}

#root {
  max-width: 68.75rem;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.header {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #0b0f14, #06090d);
  border-bottom: 1px solid var(--bb-border);  
  position: sticky;
  top: 0;
  z-index: 10;
}
h1 {
  text-align: center;
  margin: 0.4rem auto 0.6rem auto;

}
.episode-div {
  max-width: 68.75rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.episode-div label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--bb-muted);
}
#show-selector,
#episode-selector,
#search-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid var(--bb-border);
  background: var(--bb-card);
  color: var(--bb-text);
  font-size: 0.95rem;
}
#search-input {
  min-width: 12rem;
  flex: 1;
}



#result-count {
  font-size: 0.85rem;
  color: var(--bb-muted);
  white-space: nowrap;
}
#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;

}

#error {
  display: none;
  place-items: center;
  color: red;
}
#episode-selector-container {
  display: none;
}
#return-button {
  display: none;
}

article {
  background: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: 0.7rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}

article:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.5rem 1.2rem rgba(0, 255, 0, 0.08);
}

.show-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

article h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--bb-green);
  letter-spacing: 0.02em;
}

article img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  border: 1px solid var(--bb-border);
}

article p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--bb-muted);
}
footer {
  text-align: center;
}
footer a {
  color: white;
  text-decoration: none;
}
@media (max-width: 600px) {
  .episode-div {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .episode-div label {
    flex: 1 1 100%;
  }

  #result-count {
    width: 100%;
    text-align: center;
  }

}