.page-home {
  --home-clip: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --home-clip-sm: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  --home-deco: repeating-linear-gradient(135deg, transparent 0 10px, rgba(44, 62, 80, .045) 10px 20px);
}

.page-home .home-top {
  padding: 26px 0 8px;
}

.page-home .home-top__inner {
  position: relative;
}

.page-home .breadcrumbs {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-home .breadcrumbs a:hover {
  color: var(--hover-purple);
}

.page-home .home-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .home-title::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent-coral);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  margin-left: 10px;
  vertical-align: middle;
}

.page-home .mark-highlight {
  background: var(--accent-yellow);
  padding: 0 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-home .lead {
  max-width: 820px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}

.page-home .home-hero {
  padding: 26px 0 10px;
  background: var(--home-deco), var(--page-bg);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-home .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.page-home .section-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-home .section-head__more {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .section-head__more:hover {
  color: var(--hover-purple);
}

.page-home .section-head--yellow {
  border-color: var(--accent-yellow);
}

.page-home .section-head--green {
  border-color: var(--accent-green);
}

.page-home .section-head--purple {
  border-color: var(--purple-deep);
}

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

.page-home .home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 0;
  overflow: hidden;
  clip-path: var(--home-clip);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .home-tile:hover {
  transform: translateY(-4px);
  box-shadow: 4px 8px 0 rgba(34, 38, 42, 0.16);
}

.page-home .home-tile.tile--yellow {
  color: var(--text-main);
}

.page-home .home-tile.tile--coral,
.page-home .home-tile.tile--green,
.page-home .home-tile.tile--purple {
  color: var(--text-invert);
}

.page-home .home-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-home .home-tile .tile__label,
.page-home .home-tile .tile__count,
.page-home .home-tile .tile__arrow {
  position: relative;
  z-index: 1;
}

.page-home .home-tile .tile__label {
  margin-top: auto;
  padding: 12px 12px 2px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.page-home .home-tile .tile__count {
  padding: 0 12px 10px;
  font-size: 13px;
  opacity: 0.88;
}

.page-home .home-tile .tile__arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 18px;
  font-weight: 800;
}

.page-home .home-tile__badge {
  position: absolute !important;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.page-home .today-schedule {
  background: var(--nav-bg);
  clip-path: var(--home-clip);
  padding: 18px 16px 12px;
  color: var(--text-invert);
}

.page-home .today-schedule .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.page-home .today-schedule .section-head__title {
  color: var(--text-invert);
}

.page-home .today-schedule .section-head__more {
  color: rgba(255, 255, 255, 0.65);
}

.page-home .schedule--home {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.page-home .schedule--home .schedule__cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid transparent;
}

.page-home .schedule--home .schedule__cell--done {
  border-left-color: var(--status-read);
  opacity: 0.62;
}

.page-home .schedule--home .schedule__cell--live {
  border-left-color: var(--accent-green);
  background: rgba(46, 204, 113, 0.16);
}

.page-home .schedule--home .schedule__cell--soon {
  border-left-color: var(--accent-yellow);
}

.page-home .schedule--home .schedule__time {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.92);
}

.page-home .schedule--home .schedule__title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .schedule--home .schedule__state {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-yellow);
  background: rgba(241, 196, 15, 0.16);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.page-home .schedule--home .schedule__state--live {
  color: #fff;
  background: var(--accent-green);
}

.page-home .schedule--home .schedule__state--done {
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.page-home .schedule--home__bg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 3px;
}

.page-home .home-archive {
  padding: 46px 0 34px;
  background: var(--card-bg);
}

.page-home .archive-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .entry-row {
  background: #fffdf8;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-yellow);
  padding: 10px 12px;
  transition: background 0.16s, transform 0.16s;
}

.page-home .entry-row:hover {
  background: #fff;
  transform: translateX(3px);
}

.page-home .entry-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.page-home .entry-row__title {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .entry-row__badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.page-home .entry-row__meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.page-home .home-rank {
  padding: 46px 0 42px;
  background: var(--nav-bg);
}

.page-home .rank-panel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.page-home .rank-panel__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
  transform: scaleX(-1);
}

.page-home .rank-panel__inner {
  position: relative;
  z-index: 1;
  padding: 24px 18px;
}

.page-home .home-rank .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.page-home .home-rank .section-head__title {
  color: var(--text-invert);
}

.page-home .home-rank .section-head__more {
  color: rgba(255, 255, 255, 0.62);
}

.page-home .rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.page-home .rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.page-home .rank-item:last-child {
  border-bottom: 0;
}

.page-home .rank-item__num {
  grid-row: 1 / span 2;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
}

.page-home .rank-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-invert);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .rank-item .metric {
  grid-column: 2;
}

.page-home .metric__head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3px;
}

.page-home .metric__bar {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.page-home .metric__fill {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  background: var(--accent-green);
  border-radius: 4px;
}

.page-home .home-tags {
  padding: 46px 0 40px;
  background: var(--accent-yellow);
}

.page-home .home-tags .section-head {
  border-bottom-color: rgba(34, 38, 42, 0.22);
}

.page-home .home-tags .section-head__more {
  color: rgba(34, 38, 42, 0.68);
}

.page-home .home-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 24px;
}

.page-home .tag-block {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  clip-path: var(--home-clip-sm);
  transition: background 0.16s, color 0.16s, transform 0.16s;
}

.page-home .tag-block[data-heat="5"] {
  font-size: 22px;
  background: var(--text-main);
  color: var(--accent-yellow);
}

.page-home .tag-block[data-heat="4"] {
  font-size: 18px;
  background: var(--accent-coral);
  color: #fff;
}

.page-home .tag-block[data-heat="3"] {
  font-size: 15px;
  background: var(--accent-green);
  color: #fff;
}

.page-home .tag-block[data-heat="2"] {
  font-size: 13px;
  background: #fff;
}

.page-home .tag-block[data-heat="1"] {
  font-size: 12px;
  background: #f3ead1;
}

.page-home .tag-block:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: var(--hover-purple);
  color: #fff;
}

.page-home .index-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  background: rgba(34, 38, 42, 0.08);
  padding: 12px 10px;
  clip-path: var(--home-clip);
}

.page-home .index-bar__item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(34, 38, 42, 0.28);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-home .index-bar__item:hover {
  background: var(--text-main);
  color: var(--accent-yellow);
  border-color: var(--text-main);
}

.page-home .home-update {
  padding: 46px 0 52px;
  background: var(--home-deco), var(--page-bg);
}

.page-home .update-stream {
  display: grid;
  gap: 16px;
}

.page-home .update-batch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--border-color);
  clip-path: var(--home-clip);
}

.page-home .update-batch__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.page-home .update-batch__no {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.page-home .update-batch__tag {
  font-size: 12px;
  font-weight: 800;
  background: var(--accent-coral);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
}

.page-home .update-batch__tag--done {
  background: var(--status-read);
}

.page-home .update-batch__count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.page-home .update-batch__items {
  display: grid;
  gap: 6px;
}

.page-home .update-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  border-left: 3px solid var(--accent-green);
  background: rgba(46, 204, 113, 0.06);
  transition: background 0.15s, border-color 0.15s;
}

.page-home .update-item:hover {
  background: rgba(155, 89, 182, 0.08);
  border-left-color: var(--hover-purple);
}

.page-home .update-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.page-home .update-item__meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .page-home .home-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .archive-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .page-home .update-batch {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.68fr) minmax(300px, 1fr);
    gap: 32px;
  }

  .page-home .channel-zone {
    transform: translateY(2px);
  }

  .page-home .today-schedule {
    transform: translateY(30px);
  }
}

.page-home {
  --v: 1rem;
}
