.page-home {
  background: var(--page-bg);
}

.page-home .home-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, #1E3A5F 0%, #1A1A1A 62%, #101010 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.page-home .home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(32px, 6vw, 68px) 0 clamp(32px, 6vw, 56px);
}

.page-home .home-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 6px 12px;
  background: rgba(26, 26, 26, 0.6);
}

.page-home .home-eyebrow {
  margin: 18px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 4px 10px;
}

.page-home .home-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--text-main);
  max-width: 780px;
}

.page-home .home-hero-lead {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  gap: 8px;
}

.page-home .hero-keyword {
  color: var(--primary);
  border-bottom: 2px solid rgba(255, 107, 53, 0.4);
}

.page-home .home-two-steps {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--tag-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-home .home-index-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.page-home .home-index-links a:hover,
.page-home .home-index-links a:focus-visible {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

.page-home .home-stat-card {
  border: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.72);
  padding: 22px;
  position: relative;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.page-home .home-stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1;
  color: var(--primary);
}

.page-home .home-stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.page-home .home-mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.page-home .mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .mini-stat strong {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
}

.page-home .mini-stat span {
  font-size: 12px;
  color: var(--text-sub);
}

.page-home .home-step-line {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  background: rgba(57, 255, 20, 0.08);
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
}

.page-home .home-section {
  padding: clamp(34px, 6vw, 64px) 0;
}

.page-home .home-cats {
  background: var(--section-dark);
}

.page-home .home-updates {
  background: var(--section-ink);
}

.page-home .home-tags {
  background: #1C1C1C;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-home .home-albums {
  background: #252525;
}

.page-home .home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-home .home-section-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 38px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.page-home .home-section-head h2::before {
  content: "";
  width: 10px;
  height: 28px;
  background: var(--primary);
  display: block;
  flex: none;
}

.page-home .home-section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 5px 10px;
  background: rgba(57, 255, 20, 0.05);
}

.page-home .home-cat-intro {
  font-size: 14px;
  color: var(--text-sub);
  margin: -8px 0 24px;
  line-height: 1.7;
  max-width: 900px;
}

.page-home .cat-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-home .cat-tile {
  position: relative;
  min-height: 82px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.page-home .cat-tile:hover,
.page-home .cat-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.page-home .cat-tile-count {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.32);
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .cat-tile-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  color: #111;
  word-break: break-word;
}

.page-home .cat-tile--t1 {
  background: linear-gradient(135deg, #FF6B35 0%, #E85D2A 100%);
}

.page-home .cat-tile--t2 {
  background: linear-gradient(135deg, #3498DB 0%, #2471A3 100%);
}

.page-home .cat-tile--t2 .cat-tile-name {
  color: #fff;
}

.page-home .cat-tile--t3 {
  background: linear-gradient(135deg, #2ECC71 0%, #1FA858 100%);
}

.page-home .cat-tile--t4 {
  background: linear-gradient(135deg, #E67E22 0%, #C15F13 100%);
}

.page-home .cat-tile--t5 {
  background: linear-gradient(135deg, #9B59B6 0%, #7E3B9A 100%);
}

.page-home .cat-tile--t5 .cat-tile-name {
  color: #fff;
}

.page-home .cat-tile--t6 {
  background: linear-gradient(135deg, #FFD700 0%, #E8B800 100%);
}

.page-home .update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .update-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .update-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.page-home .update-thumb {
  margin: 0;
  background: #101010;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.page-home .update-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .update-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.page-home .update-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .update-body h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}

.page-home .update-body h3 a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .update-body h3 a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.page-home .update-detail {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.page-home .update-detail summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.page-home .update-detail summary::after {
  content: "+";
  font-weight: 900;
}

.page-home .update-detail[open] summary::after {
  content: "–";
}

.page-home .update-detail p {
  margin: 10px 0 2px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .home-tag-cloud-wrap {
  position: relative;
  background: rgba(42, 42, 42, 0.55);
  border: 1px solid var(--border);
  padding: 18px;
}

.page-home .tag-cloud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
  overflow: hidden;
  padding: 12px 8px;
}

.page-home .tag-cloud-deco {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 130px;
  height: 130px;
  max-width: 32%;
  height: auto;
  object-fit: contain;
  opacity: 0.32;
  pointer-events: none;
}

.page-home .tag {
  text-decoration: none;
}

.page-home .tag-w1 {
  font-size: 13px;
  color: var(--tag-blue);
}

.page-home .tag-w2 {
  font-size: 15px;
  color: var(--tag-green);
}

.page-home .tag-w3 {
  font-size: 17px;
  color: var(--tag-orange);
}

.page-home .tag-w4 {
  font-size: 19px;
  color: var(--primary);
}

.page-home .tag-w5 {
  font-size: 21px;
  color: var(--accent);
}

.page-home .tag-w6 {
  font-size: 24px;
  color: var(--text-main);
}

.page-home .tag:hover,
.page-home .tag:focus-visible {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.25);
}

.page-home .album-track {
  margin-bottom: 38px;
}

.page-home .album-track-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.page-home .album-track-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.4);
  padding: 3px 8px;
  background: rgba(57, 255, 20, 0.06);
}

.page-home .album-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 270px);
  grid-template-rows: 1fr;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.page-home .album-card {
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .album-card:hover,
.page-home .album-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.page-home .album-cover {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-bottom: 1px solid var(--border);
}

.page-home .album-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .album-cover .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.page-home .album-vinyl {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.page-home .album-vinyl::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, rgba(0, 0, 0, 0.42) 0%, transparent 45%);
  pointer-events: none;
}

.page-home .vinyl-mark {
  position: relative;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #111;
  background: rgba(255, 255, 255, 0.42);
  padding: 4px 10px;
  letter-spacing: 0.08em;
}

.page-home .album-vinyl--orange {
  background: linear-gradient(135deg, #FF6B35, #C0392B);
}

.page-home .album-vinyl--blue {
  background: linear-gradient(135deg, #3498DB, #1F618D);
}

.page-home .album-vinyl--green {
  background: linear-gradient(135deg, #2ECC71, #145A32);
}

.page-home .album-vinyl--violet {
  background: linear-gradient(135deg, #9B59B6, #512E5F);
}

.page-home .album-vinyl--dark {
  background: linear-gradient(135deg, #4A4A4A, #1A1A1A);
}

.page-home .album-vinyl--amber {
  background: linear-gradient(135deg, #FFD700, #B7950B);
}

.page-home .album-vinyl--cyan {
  background: linear-gradient(135deg, #1ABC9C, #0E6655);
}

.page-home .album-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.page-home .album-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.page-home .album-card-body h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

@media (min-width: 560px) {
  .page-home .cat-matrix {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .update-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: end;
    gap: 40px;
  }

  .page-home .home-stat-card {
    margin-bottom: 6px;
  }

  .page-home .cat-matrix {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .page-home .cat-tile {
    min-height: 88px;
  }
}

@media (min-width: 1120px) {
  .page-home .cat-matrix {
    grid-template-columns: repeat(7, 1fr);
  }

  .page-home .update-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .page-home .cat-tile-name {
    font-size: 15px;
  }
}
