.page-home {
  --home-border: 2px solid var(--ink);
  --home-radius: 14px 4px 14px 4px;
  --home-shadow: 4px 4px 0 rgba(29, 29, 29, 0.18);
  --home-shadow-hover: 7px 7px 0 rgba(29, 29, 29, 0.24);
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

.page-home .container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .home-head {
  padding: 22px 0 14px;
  border-bottom: var(--home-border);
  margin-bottom: 18px;
}

.page-home .breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.page-home .breadcrumb a {
  color: var(--c-blue);
  text-decoration: none;
  font-weight: 700;
}

.page-home h1 {
  font-family: var(--font-headline);
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.18;
  margin: 4px 0 12px;
  letter-spacing: -.01em;
}

.page-home .home-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .lead-tag {
  font-family: var(--font-headline);
  font-size: .82rem;
  padding: 7px 14px;
  border: var(--home-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(29, 29, 29, .9);
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-home .lead-tag:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(29, 29, 29, .9);
}

.page-home .lead-tag--yellow { background: var(--c-yellow); }
.page-home .lead-tag--coral { background: var(--c-coral); }
.page-home .lead-tag--violet { background: var(--c-violet); color: #fff; }
.page-home .lead-tag--mint { background: var(--c-mint); }

.page-home .split-hero {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .page-home .split-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 24px;
  }
}

.page-home .hero-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-home .hero-title-row h2 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  margin: 0;
}

.page-home .hero-count {
  font-size: .78rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: .02em;
}

.page-home .tile-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

@media (min-width: 900px) {
  .page-home .tile-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .magnet-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 128px;
  padding: 14px;
  border: var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-home .magnet-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--home-shadow-hover);
}

.page-home .tile--fantasy { background: var(--c-violet); color: #fff; grid-column: span 2; }
.page-home .tile--romance { background: var(--c-coral); grid-column: span 2; }
.page-home .tile--action { background: var(--c-red); color: #fff; }
.page-home .tile--mystery { background: var(--ink); color: #fff; }
.page-home .tile--scifi { background: var(--c-blue); color: #fff; grid-column: span 2; }
.page-home .tile--daily { background: var(--c-yellow); }
.page-home .tile--horror { background: #151515; color: #fff; }
.page-home .tile--sport { background: var(--c-mint); }
.page-home .tile--classic { background: var(--c-status-hot); }

.page-home .tile-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  line-height: 1;
  z-index: 1;
}

.page-home .tile-count {
  font-family: var(--font-headline);
  font-size: 1.7rem;
  line-height: 1;
  margin-top: auto;
  z-index: 1;
}

.page-home .tile-count small {
  font-size: .68rem;
  font-family: var(--font-body);
  margin-left: 2px;
  opacity: .85;
}

.page-home .tile-tags {
  font-size: .72rem;
  margin-top: 6px;
  z-index: 1;
}

.page-home .tile-tags--full {
  display: none;
}

.page-home .magnet-tile:hover .tile-tags--fold {
  display: none;
}

.page-home .magnet-tile:hover .tile-tags--full {
  display: inline;
}

.page-home .tile-art {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px 2px 10px 2px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(29, 29, 29, .35);
  opacity: .92;
  transform: rotate(3deg);
}

.page-home .hero-updates {
  background: var(--c-yellow);
  border: var(--home-border);
  border-radius: var(--home-radius);
  padding: 16px;
}

.page-home .card-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .update-card {
  display: block;
  background: var(--card-bg);
  border: var(--home-border);
  border-radius: 10px 2px 10px 2px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-home .update-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #ece7dc;
  overflow: hidden;
}

.page-home .card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .card-media--tone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .media-tone--night {
  background: linear-gradient(135deg, #1d1d1d 0%, #3a2a4a 60%, #7a4a8a 100%);
}

.page-home .media-tone--court {
  background: linear-gradient(135deg, #0a81ff 0%, #3ddc97 100%);
}

.page-home .day-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-headline);
  font-size: .85rem;
  border: 2px solid var(--c-yellow);
  z-index: 2;
}

.page-home .status-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: var(--c-status-new);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  box-shadow: 1px 1px 0 rgba(29, 29, 29, .6);
}

.page-home .status-badge--updating {
  background: var(--c-status-updating);
  color: #fff;
}

.page-home .card-body {
  display: block;
  padding: 10px 12px 12px;
}

.page-home .card-title {
  display: block;
  font-family: var(--font-headline);
  font-size: .98rem;
  line-height: 1.2;
}

.page-home .card-meta {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-top: 4px;
}

.page-home .done-section {
  background: var(--c-mint);
  border: var(--home-border);
  border-radius: 22px 5px 22px 5px;
  padding: 18px;
  margin-top: 32px;
}

.page-home .section-heading h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 6px;
}

.page-home .section-heading p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

.page-home .done-grid {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .page-home .done-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .done-panel {
  background: rgba(255, 255, 255, .8);
  border: var(--home-border);
  border-radius: 14px 3px 14px 3px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.page-home .panel-label {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: .85rem;
  background: var(--ink);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
}

.page-home .hua-banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 12px 0 8px;
  border: var(--home-border);
  border-radius: 10px 2px 10px 2px;
  object-fit: cover;
}

.page-home .done-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.page-home .done-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .done-row:last-child {
  border-bottom: 0;
}

.page-home .done-row:nth-child(even) .cover-slot {
  order: 2;
}

.page-home .cover-slot {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: #fff;
  border: var(--home-border);
  border-radius: 6px 2px 6px 2px;
  box-shadow: 2px 2px 0 rgba(29, 29, 29, .25);
}

.page-home .cover--violet { background: var(--c-violet); }
.page-home .cover--coral { background: var(--c-coral); }
.page-home .cover--red { background: var(--c-red); }
.page-home .cover--blue { background: var(--c-blue); }
.page-home .cover--yellow { background: var(--c-yellow); color: var(--ink); }
.page-home .cover--ink { background: var(--ink); }
.page-home .cover--mint { background: var(--c-mint); color: var(--ink); }

.page-home .done-info {
  min-width: 0;
  flex: 1;
}

.page-home .done-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-headline);
  font-size: .92rem;
  line-height: 1.3;
}

.page-home .done-tags {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}

.page-home .done-num {
  flex-shrink: 0;
  font-family: var(--font-headline);
  font-size: .82rem;
  background: var(--c-yellow);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-home .hua-badge {
  background: var(--c-status-hot);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: .72rem;
}

.page-home .data-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 900px) {
  .page-home .data-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .data-strip-item {
  background: var(--card-bg);
  border: var(--home-border);
  border-radius: 10px 2px 10px 2px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.page-home .data-num {
  font-family: var(--font-headline);
  font-size: 1.55rem;
  display: block;
}

.page-home .data-label {
  font-size: .78rem;
  color: var(--muted);
}

.page-home .actor-section {
  background: var(--c-violet);
  border: var(--home-border);
  border-radius: 22px 5px 22px 5px;
  padding: 18px;
  margin-top: 32px;
  color: #fff;
}

.page-home .actor-section .section-heading h2 {
  color: #fff;
}

.page-home .actor-section .section-heading p {
  color: rgba(255, 255, 255, .88);
}

.page-home .actor-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.page-home .actor-head-art {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: var(--home-shadow);
}

.page-home .alpha-index {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0;
}

@media (min-width: 900px) {
  .page-home .alpha-index {
    grid-template-columns: repeat(13, minmax(0, 1fr));
  }
}

.page-home .alpha-link {
  display: block;
  text-align: center;
  padding: 7px 2px;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 8px 2px 8px 2px;
  color: #fff;
  font-family: var(--font-headline);
  font-size: .88rem;
  text-decoration: none;
  background: rgba(0, 0, 0, .14);
  transition: background .15s ease, color .15s ease;
}

.page-home .alpha-link:hover {
  background: #fff;
  color: var(--c-violet);
}

.page-home .alpha-link small {
  display: block;
  font-size: .58rem;
  opacity: .85;
  font-weight: 400;
}

.page-home .actor-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 900px) {
  .page-home .actor-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.page-home .actor-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: var(--home-border);
  border-radius: 10px 2px 10px 2px;
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-home .actor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-home .actor-portrait {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  color: #fff;
  background: var(--c-coral);
  border: 2px solid var(--ink);
}

.page-home .actor-info {
  min-width: 0;
  flex: 1;
}

.page-home .actor-name {
  display: block;
  font-family: var(--font-headline);
  font-size: .88rem;
}

.page-home .actor-work {
  display: block;
  font-size: .7rem;
  color: var(--muted);
}

.page-home .actor-role {
  flex-shrink: 0;
  font-size: .66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--c-yellow);
}

.page-home .actor-more {
  margin-top: 16px;
}

.page-home .reco-section {
  margin-top: 32px;
}

.page-home .filter-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 4px;
}

.page-home .filter-label {
  font-family: var(--font-headline);
  font-size: .82rem;
  background: var(--ink);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}

.page-home .btn-filter {
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-headline);
  font-size: .8rem;
  padding: 6px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.page-home .btn-filter.is-active {
  background: var(--c-blue);
  color: #fff;
}

.page-home .rec-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .page-home .rec-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .rec-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card-bg);
  border: var(--home-border);
  border-left-width: 10px;
  border-radius: 10px 2px 10px 2px;
  padding: 13px;
  box-shadow: var(--shadow-sm);
}

.page-home .rec-card--coral { border-left-color: var(--c-coral); }
.page-home .rec-card--mint { border-left-color: var(--c-mint); }
.page-home .rec-card--violet { border-left-color: var(--c-violet); }
.page-home .rec-card--yellow { border-left-color: var(--c-yellow); }

.page-home .rec-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  margin: 0;
}

.page-home .rec-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.page-home .tag {
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .7rem;
  padding: 2px 8px;
}

.page-home .rec-reason {
  font-size: .78rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px 2px 8px 2px;
  padding: 7px 9px;
  margin: auto 0 0;
}

@media (min-width: 900px) {
  .page-home .rec-card--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
  }

  .page-home .rec-card--wide .rec-tag-row {
    flex-shrink: 0;
  }

  .page-home .rec-card--wide .rec-reason {
    margin: 0 0 0 auto;
    max-width: 320px;
  }
}

.page-home .tip-strip {
  margin-top: 32px;
  padding-bottom: 40px;
}

.page-home .tip-strip > h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 14px;
}

.page-home .tip-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .page-home .tip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .tip-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: var(--home-border);
  border-radius: 12px 3px 12px 3px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
}

.page-home .tip-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-headline);
  font-size: .9rem;
}

.page-home .tip-copy h3 {
  font-family: var(--font-headline);
  font-size: 1rem;
  margin: 2px 0 4px;
}

.page-home .tip-copy p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.55;
}

.page-home .tip-link {
  display: inline-block;
  color: var(--c-blue);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  border-bottom: 2px solid var(--c-blue);
}
