body {
  font-family: 'Nunito', 'Comic Sans MS', 'Apple SD Gothic Neo', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-synthesis: none;
  /* background-color defined in theme CSS */
}

h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-align: center;
  /* color defined in theme CSS */
}

.subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1200px;
  padding: 10px;
}

.episode-card {
  display: flex;
  position: relative;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.episode-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.episode-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: white;
  font-size: 14px;
  font-weight: bold;
  border-bottom-right-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* color defined in theme CSS */
}

.episode-badge span {
  transform: translate(-3px, -1px);
}

.episode-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.episode-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin: 6px 10px;
  justify-content: center;
  text-align: center;
}

.title,
.transcript,
.translation {
  margin: 0px;
}

.transcript {
  font-style: italic;
  /* color defined in theme CSS */
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
    padding: 12px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .episodes-grid {
    gap: 16px;
  }
}