.page-home {
  --hp-gap: 14px;
  --hp-radius: 12px;
  --hp-deep-bg: linear-gradient(135deg, #160A2B 0%, #2D1B4E 55%, #4B3A6B 100%);
  --hp-deep-bg-alt: linear-gradient(145deg, #1D1039 0%, #2D1B4E 60%, #3A2561 100%);
  --hp-orange-bg: linear-gradient(125deg, #E67E22 0%, #C0392B 50%, #2D1B4E 120%);
  --hp-tile-cyan: #1ABC9C;
  --hp-tile-red: #D35400;
  --hp-tile-teal: #16A085;
}

.page-home .hp-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 48px;
  background: var(--hp-deep-bg);
}

.page-home .hp-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .hp-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.12) 2px 4px);
}

.page-home .hp-hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gold);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.page-home .breadcrumb a {
  color: var(--c-gold);
  text-decoration: none;
}

.page-home .breadcrumb a:hover {
  text-decoration: underline;
}

.page-home .breadcrumb span {
  margin: 0 6px;
  color: rgba(253, 246, 227, 0.6);
}

.page-home .hp-hero__title {
  font-family: var(--font-title);
  font-size: var(--h1);
  line-height: 1.12;
  color: var(--c-cream);
  margin: 0 0 14px;
  max-width: 920px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-home .hp-hero__keywords {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(253, 246, 227, 0.82);
  line-height: 1.7;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--c-orange);
}

.page-home .hp-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .hp-stat-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(253, 246, 227, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.45);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.page-home .hp-hero__index {
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(253, 246, 227, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.page-home .hp-hero__index .index-bar__link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-cream);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.page-home .hp-hero__index .index-bar__link:hover {
  background: rgba(230, 126, 34, 0.35);
  color: var(--c-gold);
}

.page-home .hp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .hp-channels {
  background: rgba(253, 246, 227, 0.06);
  border: 1px solid rgba(253, 246, 227, 0.12);
  border-radius: var(--hp-radius);
  padding: 22px 20px;
}

.page-home .hp-hot {
  position: relative;
  background: rgba(253, 246, 227, 0.07);
  border: 1px solid rgba(253, 246, 227, 0.16);
  border-radius: var(--hp-radius);
  padding: 22px 18px;
  overflow: hidden;
}

.page-home .hp-hot__chart {
  position: absolute;
  right: -70px;
  bottom: 0;
  width: 300px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}

.page-home .hp-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-home .hp-panel-head .section-label {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-orange);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 12px;
  margin-bottom: 8px;
}

.page-home .hp-panel-head .section-title {
  font-family: var(--font-title);
  font-size: var(--h3);
  margin: 0;
  color: var(--c-cream);
}

.page-home .hp-panel-head .section-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-cyan);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .hp-panel-head .section-link:hover {
  color: var(--c-gold);
}

.page-home .channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hp-gap);
}

.page-home .channel-card {
  position: relative;
  background: var(--c-cream);
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.page-home .channel-card:hover {
  border-color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.page-home .channel-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, rgba(45, 27, 78, 0.9), rgba(230, 126, 34, 0.62));
  background-clip: padding-box;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  overflow: hidden;
}

.page-home .channel-card__media::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(253, 246, 227, 0.4);
  border-radius: 4px;
  pointer-events: none;
}

.page-home .channel-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(253, 246, 227, 0.04) 0 2px, transparent 2px 4px);
}

.page-home .channel-card__ch {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(253, 246, 227, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}

.page-home .channel-card__badge {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  color: var(--c-cream);
}

.page-home .channel-card__badge--hd {
  background: var(--c-blue);
}

.page-home .channel-card__badge--sd {
  background: var(--c-gray);
}

.page-home .channel-card__badge--4k {
  background: var(--c-gold);
  color: var(--c-ink);
}

.page-home .channel-card .status {
  position: relative;
  z-index: 2;
  margin-left: auto;
  font-size: 11px;
}

.page-home .channel-card__body {
  padding: 12px 12px 14px;
}

.page-home .channel-card__title {
  font-family: var(--font-title);
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--c-ink);
}

.page-home .channel-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .channel-card__res {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-muted);
}

.page-home .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hot-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(253, 246, 227, 0.16);
}

.page-home .hot-row:last-child {
  border-bottom: none;
}

.page-home .order-num {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: rgba(253, 246, 227, 0.5);
  text-align: center;
}

.page-home .order-num--hot {
  color: var(--c-gold);
}

.page-home .order-num--sm {
  font-size: 15px;
}

.page-home .hot-row__main {
  min-width: 0;
}

.page-home .hot-row__title {
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--c-cream);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hot-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home .hot-row__tag {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(253, 246, 227, 0.55);
}

.page-home .hot-row__side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  justify-items: end;
  min-width: 90px;
}

.page-home .hot-row__views {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-cyan);
}

.page-home .hot-row .metric-bar {
  width: 82px;
  height: 6px;
  border-radius: 3px;
  background: rgba(253, 246, 227, 0.18);
  overflow: hidden;
}

.page-home .hot-row .metric-bar__fill--gold {
  background: linear-gradient(90deg, var(--c-orange), var(--c-gold));
}

.page-home .hot-row .btn {
  font-size: 11px;
  padding: 3px 8px;
}

.page-home .hp-timeline {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.page-home .hp-timeline__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  pointer-events: none;
}

.page-home .hp-timeline .container {
  position: relative;
  z-index: 1;
}

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

.page-home .section-head__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .section-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-purple);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  width: fit-content;
}

.page-home .section-title {
  font-family: var(--font-title);
  font-size: var(--h2);
  line-height: 1.15;
  margin: 0;
  color: var(--c-ink);
}

.page-home .hp-timeline .section-title {
  color: var(--c-ink);
}

.page-home .section-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-blue);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .section-link:hover {
  color: var(--c-magenta);
}

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

.page-home .timeline-batch {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.page-home .timeline-batch:hover {
  box-shadow: var(--shadow);
}

.page-home .timeline-batch__node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(120deg, var(--c-purple), #4B3A6B);
  color: var(--c-cream);
}

.page-home .timeline-batch__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.25);
}

.page-home .timeline-batch__node div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .timeline-batch__num {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1;
  color: var(--c-gold);
}

.page-home .timeline-batch__time {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(253, 246, 227, 0.75);
}

.page-home .timeline-batch__list {
  padding: 6px 14px;
}

.page-home .timeline-batch__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-line);
}

.page-home .timeline-batch__item:last-child {
  border-bottom: none;
}

.page-home .timeline-batch__name {
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--c-ink);
}

.page-home .timeline-batch__meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-muted);
}

.page-home .timeline-batch__item .status {
  align-self: flex-start;
  font-size: 11px;
}

.page-home .timeline-batch__foot {
  padding: 8px 14px;
  border-top: 1px solid var(--c-line);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-gray);
  background: rgba(253, 246, 227, 0.5);
}

.page-home .hp-program {
  padding: 40px 0;
  background: var(--hp-orange-bg);
  color: var(--c-cream);
}

.page-home .hp-program .section-title {
  color: var(--c-cream);
}

.page-home .hp-program .section-label {
  background: var(--c-gold);
  color: var(--c-ink);
}

.page-home .hp-program .section-link {
  color: var(--c-cream);
}

.page-home .hp-program .section-link:hover {
  color: var(--c-gold);
}

.page-home .hp-program__today {
  font-size: 12px;
  vertical-align: middle;
  margin-left: 6px;
}

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

.page-home .program-slot {
  border-radius: var(--hp-radius);
  padding: 18px;
  border: 1px solid rgba(253, 246, 227, 0.3);
  background: rgba(0, 0, 0, 0.18);
}

.page-home .program-slot--morning {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.75), rgba(45, 27, 78, 0.65));
}

.page-home .program-slot--noon {
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.82), rgba(230, 126, 34, 0.55));
}

.page-home .program-slot--evening {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.8), rgba(230, 126, 34, 0.6));
}

.page-home .program-slot--late {
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.9), rgba(75, 58, 107, 0.7));
}

.page-home .program-slot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(253, 246, 227, 0.25);
}

.page-home .program-slot__name {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--c-cream);
}

.page-home .program-slot__time {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gold);
}

.page-home .program-slot__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(253, 246, 227, 0.18);
}

.page-home .program-slot__item:last-child {
  border-bottom: none;
}

.page-home .program-slot__title {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-cream);
}

.page-home .hp-mobile {
  position: relative;
  padding: 40px 0;
  background: var(--hp-deep-bg-alt);
}

.page-home .hp-mobile .section-title {
  color: var(--c-cream);
}

.page-home .hp-mobile .section-label {
  background: var(--c-cyan);
  color: var(--c-ink);
}

.page-home .hp-mobile .section-link {
  color: var(--c-cyan);
}

.page-home .hp-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(26, 188, 156, 0.5);
  color: var(--c-cyan);
  font-family: var(--font-body);
  font-size: 13px;
  white-space: nowrap;
}

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

.page-home .online-card {
  background: rgba(253, 246, 227, 0.08);
  border: 1px solid rgba(253, 246, 227, 0.15);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.2s;
}

.page-home .online-card:hover {
  border-color: var(--c-cyan);
}

.page-home .online-card__name {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--c-cream);
}

.page-home .online-card__count {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-cyan);
}

.page-home .online-card .metric-bar {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(253, 246, 227, 0.15);
  overflow: hidden;
}

.page-home .online-card .metric-bar__fill--cyan {
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
}

.page-home .online-card__tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(253, 246, 227, 0.6);
}

.page-home .hp-mobile__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.page-home .hp-mobile__note {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(253, 246, 227, 0.7);
}

.page-home .hp-zones {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.page-home .hp-zones__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.09;
  pointer-events: none;
}

.page-home .hp-zones .container {
  position: relative;
  z-index: 1;
}

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

.page-home .tile {
  min-height: 112px;
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  text-decoration: none;
  color: var(--c-cream);
  border: 1px solid rgba(44, 62, 80, 0.14);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.page-home .tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--c-blue);
}

.page-home .tile__count {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.page-home .tile__name {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1.1;
  color: inherit;
}

.page-home .tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.page-home .tile__tags .tag {
  font-size: 11px;
}

.page-home .tile--orange {
  background: linear-gradient(135deg, #E67E22, #D35400);
}

.page-home .tile--magenta {
  background: linear-gradient(135deg, #C0392B, #8E2A1C);
}

.page-home .tile--blue {
  background: linear-gradient(135deg, #2980B9, #1F5F8A);
}

.page-home .tile--green {
  background: linear-gradient(135deg, #27AE60, #1A7A44);
}

.page-home .tile--gold {
  background: linear-gradient(135deg, #F1C40F, #E67E22);
  color: var(--c-ink);
}

.page-home .tile--gold .tile__count {
  background: rgba(44, 62, 80, 0.18);
}

.page-home .tile--lavender {
  background: linear-gradient(135deg, #4B3A6B, #2D1B4E);
}

.page-home .tile--cyan {
  background: linear-gradient(135deg, #1ABC9C, #0E8B74);
  color: var(--c-ink);
}

.page-home .tile--cyan .tile__count {
  background: rgba(44, 62, 80, 0.15);
}

.page-home .tile--purple {
  background: linear-gradient(135deg, #6C3483, #2D1B4E);
}

.page-home .tile--red {
  background: linear-gradient(135deg, #D35400, #A3123A);
}

.page-home .tile--teal {
  background: linear-gradient(135deg, #16A085, #117864);
}

.page-home .tile--gray {
  background: linear-gradient(135deg, #7F8C8D, #566566);
}

.page-home .tile--cream {
  background: linear-gradient(135deg, #FDF6E3, #F1C40F);
  color: var(--c-ink);
}

.page-home .tile--cream .tile__count {
  background: rgba(44, 62, 80, 0.12);
}

.page-home .hp-zones__foot {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-muted);
  margin: 20px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--c-orange);
}

.page-home .tag--cream {
  background: var(--c-cream);
  color: var(--c-ink);
}

.page-home .tag--ink {
  background: var(--c-ink);
  color: var(--c-cream);
}

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

  .page-home .program-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .online-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .page-home .hp-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .hp-hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
    align-items: start;
  }

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

  .page-home .timeline-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-home .program-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .online-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .page-home .tile-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
