.page-home{
  padding-bottom: 48px;
  --tile-radius: 32px;
  --chip-radius: 20px;
}

.page-home .container-page{
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 16px;
}

.page-home section{
  padding-block: 56px 48px;
  scroll-margin-top: 24px;
}

.page-home .page-title{
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: .5px;
  margin: 0;
}

.page-home .head-indexline{
  margin: 10px 0 0;
  color: var(--text-second);
  font-size: 15px;
  line-height: 1.6;
}

.page-home .zone-head{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.page-home .zone-head .head-indexline{
  margin-top: 0;
}

.page-home .zone-head h2,
.page-home .rank-head h2{
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.page-home img{
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .crumb-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-second);
  margin-bottom: 14px;
}

.page-home .crumb-bar a{
  color: var(--text-second);
  text-decoration: none;
}

.page-home .crumb-bar a:hover{
  color: var(--live-blue);
}

.page-home .crumb-sep{
  color: var(--border-soft);
}

.page-home .crumb-cur{
  font-weight: 700;
  color: var(--text-main);
}

.page-home .hero-version{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-top: 14px;
  letter-spacing: 1px;
}

.page-home .rank-zone{
  padding-top: 40px;
}

.page-home .rank-topline{
  padding-bottom: 22px;
  border-bottom: 2px solid var(--border-soft);
  margin-bottom: 26px;
}

.page-home .rank-grid{
  display: grid;
  gap: 24px;
}

.page-home .rank-head{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.page-home .rank-tools{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 16px;
}

.page-home .sort-btns,
.page-home .view-btns{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.page-home .sort-btns button,
.page-home .view-btns button{
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-second);
  cursor: pointer;
}

.page-home .sort-btns button.is-active,
.page-home .view-btns button.is-active{
  background: var(--live-blue);
  color: #fff;
}

.page-home .rank-list{
  display: grid;
  gap: 10px;
}

.page-home .rank-entry{
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--border-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .rank-entry:nth-child(1),
.page-home .rank-entry:nth-child(2),
.page-home .rank-entry:nth-child(3){
  border-left-color: var(--hot-yellow);
}

.page-home .rank-entry:hover{
  transform: translateY(-2px);
  border-left-color: var(--live-blue);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.page-home .rank-entry .idx-num{
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--live-blue);
  line-height: 1;
}

.page-home .rank-entry:nth-child(-n + 3) .idx-num{
  color: var(--neon-magenta);
}

.page-home .rank-chn{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-home .rank-chn-name{
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .tag-cluster{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .tag{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #F1F1EC;
  color: var(--text-second);
}

.page-home .tag-live{
  background: rgba(30, 144, 255, .1);
  color: var(--live-blue);
}

.page-home .tag-quality{
  background: rgba(255, 140, 0, .12);
  color: var(--quality-orange);
}

.page-home .rank-flag{
  display: flex;
  justify-content: flex-end;
}

.page-home .badge-status{
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.page-home .badge-live{
  background: var(--live-blue);
  color: #fff;
}

.page-home .badge-replay{
  background: var(--replay-olive);
  color: #fff;
}

.page-home .badge-new{
  background: var(--success-green);
  color: #fff;
}

.page-home .rank-meter{
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 2 / -1;
}

.page-home .meter-bar{
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .09);
  overflow: hidden;
}

.page-home .meter-fill{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--live-blue);
}

.page-home .rank-entry:nth-child(-n + 3) .meter-fill{
  background: linear-gradient(90deg, var(--hot-yellow), var(--live-blue));
}

.page-home .meter-num{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-second);
  min-width: 42px;
  text-align: right;
}

.page-home .rank-visual{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .rank-visual img{
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .rank-plus-card{
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.page-home .live-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live-blue);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, .2);
  animation: pageHomeLivePulse 1.6s infinite;
}

@keyframes pageHomeLivePulse{
  50%{
    box-shadow: 0 0 0 9px rgba(30, 144, 255, .1);
  }
}

.page-home .tile-matrix{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.page-home .tile-card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  border-radius: var(--tile-radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
  min-height: 160px;
}

.page-home .tile-card::before{
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.page-home .tile-card::after{
  content: "";
  position: absolute;
  inset: 10% auto auto 12%;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
}

.page-home .tile-card:hover{
  transform: translateY(-4px);
}

.page-home .tile-c1{
  background: linear-gradient(135deg, var(--cat-blue), #00E5FF);
}

.page-home .tile-c2{
  background: linear-gradient(135deg, var(--cat-violet), #C71585);
}

.page-home .tile-c3{
  background: linear-gradient(135deg, var(--hot-coral), #FFA07A);
}

.page-home .tile-c4{
  background: linear-gradient(135deg, var(--cat-orange), #FFD700);
}

.page-home .tile-c5{
  background: linear-gradient(135deg, var(--success-green), #00CED1);
}

.page-home .tile-c6{
  background: linear-gradient(135deg, #FFB800, var(--hot-yellow));
}

.page-home .tile-c7{
  background: linear-gradient(135deg, var(--live-blue), var(--cat-violet));
}

.page-home .tile-c8{
  background: linear-gradient(135deg, #2F4F4F, var(--dark-bg));
}

.page-home .tile-name{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.page-home .tile-count{
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  opacity: .95;
}

.page-home .tile-note{
  font-size: 13px;
  line-height: 1.5;
  opacity: .82;
}

.page-home .tile-badge{
  align-self: flex-start;
  margin-top: auto;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.page-home .tile-texture{
  margin: 26px 0 0;
}

.page-home .tile-texture img{
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .query-panel{
  display: grid;
  gap: 20px;
  background: var(--dark-bg);
  border-radius: 32px;
  padding: 22px;
}

.page-home .query-cats{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .query-cat{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, .08);
  color: #E8E8E8;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.page-home .query-cat .qc-count{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-cyan);
}

.page-home .query-cat.is-active{
  background: rgba(0, 255, 255, .12);
  border-color: var(--neon-cyan);
  color: #fff;
}

.page-home .query-schedules{
  display: grid;
  gap: 10px;
}

.page-home .sched-chip{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px 14px;
  align-items: center;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.page-home .sched-time{
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--quality-orange);
}

.page-home .sched-name{
  font-size: 15px;
  font-weight: 700;
}

.page-home .sched-go{
  display: inline-flex;
  justify-content: center;
  grid-column: 2 / -1;
  font-size: 12px;
  font-weight: 700;
  color: var(--live-blue);
}

.page-home .sched-chip:hover{
  border-color: var(--live-blue);
}

.page-home .rail-scroll{
  overflow-x: auto;
  padding-bottom: 8px;
}

.page-home .timetable-grid{
  display: grid;
  grid-template-columns: 96px repeat(5, minmax(150px, 1fr));
  gap: 10px;
  min-width: 820px;
}

.page-home .time-head{
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.page-home .time-head-first{
  background: var(--dark-bg);
  color: #fff;
}

.page-home .time-label{
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-home .time-cell{
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  background: var(--surface);
  border-radius: 16px;
  padding: 10px;
  min-height: 76px;
  border-left: 4px solid var(--border-soft);
}

.page-home .slot-name{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .slot-live{
  border-left-color: var(--live-blue);
  background: #EAF3FE;
}

.page-home .slot-replay{
  border-left-color: var(--replay-olive);
  background: #F4F7ED;
}

.page-home .sched-visual{
  margin: 22px 0 0;
}

.page-home .sched-visual img{
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 7 / 2;
  object-fit: cover;
}

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

.page-home .rec-row{
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--chip-radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.page-home .rec-thumb{
  width: 96px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.page-home .rec-thumb-empty{
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #232323,
    #232323 8px,
    #1A1A1A 8px,
    #1A1A1A 16px
  );
  color: #AFAFAF;
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .rec-body{
  min-width: 0;
}

.page-home .rec-title{
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 6px;
}

.page-home .rec-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-second);
}

.page-home .rec-quals{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2 / -1;
}

.page-home .btn-quality{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--quality-orange);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}

.page-home .btn-quality:hover{
  background: var(--dark-bg);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.page-home .batch-flow{
  display: grid;
  gap: 22px;
}

.page-home .batch-group{
  background: var(--surface);
  border-radius: 24px;
  padding: 22px;
  border-top: 6px solid var(--success-green);
  box-shadow: var(--shadow-soft);
}

.page-home .batch-code{
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.page-home .batch-note{
  color: var(--text-second);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-left: 10px;
}

.page-home .batch-items{
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.page-home .batch-item{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #F7FAF8;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
}

.page-home .bi-name{
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}

.page-home .tag-cloud{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-home .cloud-tag{
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.page-home .cloud-tag:hover{
  border-color: var(--live-blue);
  color: var(--live-blue);
  transform: translateY(-2px);
}

.page-home .cloud-tag.size-xl{
  font-size: 20px;
  padding: 12px 26px;
  background: var(--cat-blue);
  color: #fff;
  border-color: transparent;
}

.page-home .cloud-tag.size-lg{
  font-size: 16px;
  padding: 10px 22px;
  background: rgba(0, 191, 255, .08);
  border-color: rgba(0, 191, 255, .3);
  color: #0A6C8C;
}

.page-home .cloud-tag.size-sm{
  font-size: 12px;
  color: var(--text-second);
}

.page-home .index-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  padding: 14px 16px;
  border-radius: 20px;
  margin-top: 26px;
  box-shadow: var(--shadow-soft);
}

.page-home .index-caption{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-second);
  margin-right: 8px;
}

.page-home .index-key{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #F1F1EC;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.page-home .index-key:hover{
  background: var(--live-blue);
  color: #fff;
}

.page-home .step-guide{
  display: grid;
  gap: 16px;
}

.page-home .step-card{
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.page-home .step-num{
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 900;
  color: var(--live-blue);
  display: block;
  line-height: 1;
}

.page-home .step-card h3{
  font-size: 18px;
  font-weight: 900;
  margin: 14px 0 8px;
}

.page-home .step-card p{
  color: var(--text-second);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.page-home .step-back-link{
  margin-top: 28px;
}

@media (min-width: 640px){
  .page-home .container-page{
    padding-inline: 24px;
  }

  .page-home section{
    padding-block: 64px 56px;
  }

  .page-home .page-title{
    font-size: 38px;
  }

  .page-home .rank-entry{
    grid-template-columns: 44px minmax(0, 1fr) auto minmax(130px, 1fr) 52px;
    gap: 14px;
    padding: 16px 20px;
  }

  .page-home .rank-meter{
    grid-column: auto;
  }

  .page-home .rank-visual img{
    aspect-ratio: 2 / 1;
  }

  .page-home .sched-chip{
    grid-template-columns: 80px 1fr auto auto;
  }

  .page-home .sched-go{
    grid-column: auto;
    justify-self: end;
  }

  .page-home .rec-row{
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .page-home .rec-quals{
    grid-column: auto;
    justify-content: flex-end;
  }

  .page-home .batch-items{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px){
  .page-home .rank-grid{
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .page-home .rank-visual{
    position: sticky;
    top: 24px;
  }

  .page-home .rank-visual img{
    aspect-ratio: 2 / 1;
  }

  .page-home .query-panel{
    grid-template-columns: 280px 1fr;
  }

  .page-home .query-cats{
    flex-direction: column;
  }

  .page-home .step-guide{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px){
  .page-home .container-page{
    padding-inline: 32px;
  }

  .page-home section{
    padding-block: 76px 68px;
  }

  .page-home .page-title{
    font-size: 42px;
  }

  .page-home .rank-topline{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .page-home .hero-version{
    margin-top: 0;
  }

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