/* A dark "stage" band for the header, borrowed from the homepage's dark panel and the
   trip-card placeholder gradient — distinct from the trip overview's plain light header,
   fitting for a Metallica page without tipping into costume-y metal pastiche. */
.category-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: var(--panel);
  background-image: radial-gradient(circle at 15% 0%, var(--panel-soft), var(--panel) 65%);
  border-top: 3px solid var(--accent);
  padding: 3rem 1.5rem 3.5rem;
  box-sizing: border-box;
}

.category-hero-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.category-hero h1 {
  color: white;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.category-hero .admin-peek {
  font-size: 1rem;
  vertical-align: middle;
}

.category-hero .translation-notice {
  color: rgba(255, 255, 255, 0.55);
}

.category-hero .translation-notice a {
  color: rgba(255, 255, 255, 0.85);
}

.category-hero .translation-notice a:hover {
  color: #fff;
}

.category-intro {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0.5rem 0 0;
  white-space: pre-line;
  font-size: 1.05rem;
}

.category-layout {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 3rem;
  align-items: start;
}

.category-posts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.category-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: #fafafa;
  border-left: 3px solid transparent;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-post-card:hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 0.6rem 1.75rem rgba(0, 0, 0, 0.15);
  border-left-color: var(--accent);
}

.category-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}

.category-post-excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
}

.category-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.category-post-date {
  flex: none;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
}

.category-post-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.category-post-more:hover {
  text-decoration: underline;
}

.category-videos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
}

.category-videos-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

.category-videos-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #999;
}

.category-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: block;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.1);
}

.category-video-caption {
  font-size: 0.85rem;
  color: #777;
  margin: 0.4rem 0 0;
}

@media (max-width: 700px) {
  .category-hero {
    padding: 2.25rem 1.25rem 2.5rem;
  }

  .category-hero h1 {
    font-size: 2rem;
  }

  .category-layout {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .category-videos {
    position: static;
  }
}
