/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, #1e293b, #0f172a 60%);
  min-height: 100vh;
  color: #f1f5f9;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header ===== */
header {
  text-align: center;
  padding: 48px 16px 32px;
}

header h1 {
  font-size: 2rem;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

header h1 a {
  color: #38bdf8;
}

header h1 a:hover {
  opacity: 0.8;
}

.catchcopy {
  margin-top: 8px;
  font-size: 1.1rem;
  color: #94a3b8;
}

/* ===== Card List ===== */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

@media (min-width: 640px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Card ===== */
.card {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.6s, translate 0.6s;
}

.card.fade-in {
  opacity: 0;
  translate: 0 30px;
}

.card.fade-in.visible {
  opacity: 1;
  translate: 0 0;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.2);
}

.card-img-wrap {
  position: relative;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
  pointer-events: none;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.card h2 {
  font-size: 1.25rem;
  color: #38bdf8;
}

.tagline {
  font-size: 0.85rem;
  font-weight: bold;
  color: #facc15;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-rec {
  font-size: 0.85rem;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(14, 165, 233, 0.06));
  border-left: 3px solid #38bdf8;
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  line-height: 1.5;
}

.card-rec-label {
  color: #38bdf8;
  font-weight: bold;
}

.btn {
  display: inline-block;
  text-align: center;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  font-weight: bold;
  font-size: 1rem;
  padding: 14px 0;
  border-radius: 999px;
  margin-top: auto;
  transition: box-shadow 0.3s, filter 0.3s;
}

.btn:hover {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), 0 0 40px rgba(56, 189, 248, 0.2);
  filter: brightness(1.15);
}

/* ===== Detail ===== */
.detail {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.detail-card {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.detail-img-wrap {
  position: relative;
}

.detail-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.detail-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.15));
  pointer-events: none;
}

.detail-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-card h2 {
  font-size: 1.6rem;
  color: #38bdf8;
}

.detail-card .tagline {
  font-size: 1rem;
  margin-top: -12px;
}

.detail-card .rating {
  font-size: 1.4rem;
  color: #facc15;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  background: #334155;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.summary {
  font-size: 1.1rem;
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid #facc15;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  font-weight: bold;
}

.highlight-block {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.detail-card .info-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 2px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.detail-card .info-value {
  font-size: 1rem;
  color: #e2e8f0;
}

.detail-card .info-block + .info-block {
  margin-top: 4px;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #38bdf8;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}
