* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4e7d2;
  color: #2f1d1c;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  border: 2px solid #1f1b2f;
}

.page {
  width: 960px;
  max-width: 96%;
  margin: 18px auto;
  border: 3px solid #2f1d1c;
  background: #fffaf2;
}

.banner {
  background: #2f1d1c;
  color: #f8e8c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.topbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #d98a52;
  border-top: 3px solid #2f1d1c;
  border-bottom: 3px solid #2f1d1c;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid #2f1d1c;
  background: #f8e8c8;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

nav a,
.button {
  display: inline-block;
  background: #f9d9a7;
  border: 2px solid #2f1d1c;
  color: #2f1d1c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.ticker {
  background: #6d3d2e;
  color: #f8e8c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-bottom: 3px solid #2f1d1c;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

main {
  padding: 18px;
}

.box {
  background: #fffaf2;
  border: 3px solid #2f1d1c;
  margin-bottom: 18px;
  padding: 16px;
}

.intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.label {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #d6514a;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
}

p {
  font-size: 15px;
  margin: 0 0 10px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button.alt {
  background: transparent;
}

.main-image-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: #fff;
  border: 2px solid #1f1b2f;
  padding: 10px 12px;
}

.stat span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6514a;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  text-transform: uppercase;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cast-card {
  background: #fff;
  border: 2px solid #2f1d1c;
  padding: 10px;
  min-height: 100%;
}

.cast-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin-bottom: 8px;
  border-color: #2f1d1c;
}

.cast-card h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cast-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.mystery-line {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d3d2e;
}

.episode-list {
  display: grid;
  gap: 12px;
}

.episode {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid #1f1b2f;
}

.ep-num {
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #f7d96a;
  border: 2px solid #1f1b2f;
  height: 42px;
  width: 42px;
}

.episode strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: #5d2d2a;
}

.episode p {
  font-size: 13px;
  margin: 0;
}

.fanart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fanart-card {
  display: block;
  background: #fff;
  border: 2px solid #1f1b2f;
  padding: 8px;
  text-decoration: none;
}

.fanart-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.smalltext {
  font-size: 12px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .cast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  .intro,
  .stats,
  .fanart-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: center;
  }
}

@media (max-width: 520px) {

  .intro,
  .stats,
  .cast-grid,
  .fanart-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .brand {
    flex-direction: column;
    align-items: center;
  }
}