.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  border-radius: 0 0 1rem 1rem;
}

.story-card {
  height: 100%;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
  overflow: hidden;
}

.story-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.story-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .card-img-top {
  transform: scale(1.05);
}

.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.stats-row {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.difficulty-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.tag-pill {
  font-size: 0.7rem;
  margin: 0.125rem;
}

.active-filter {
  background-color: #0d6efd !important;
  color: white !important;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0 1.5rem;
  }

  .story-card .card-img-top {
    height: 150px;
  }
}

.story-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.story-header img.header-img {
  max-height: 15em;
}

.story-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.section-card {
  margin-bottom: 2rem;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.annotation-badge {
  display: inline-block;
  margin: 0.25rem;
}

.grammar-annotation {
  background-color: #e7f3ff;
  border-left: 4px solid #0d6efd;
}

.word-annotation {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

.japanese-text {
  font-size: 1.25rem;
  line-height: 2;
  font-family: "Noto Sans JP", sans-serif;
}

.translation-text {
  font-size: 1.1rem;
  color: #6c757d;
}

.furigana {
  font-size: 1em;
  color: #6c757d;
}
