/* Zylfr Homepage v2 — isolated visual refresh */
body.page-body .home {
  max-width: 1440px;
  padding: 36px 28px 80px;
}

.home .sec {
  margin-bottom: 46px;
}

.home .sec-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.home .sec-head h2 {
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.home .sec-head .n {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 800;
}

/* Live streams get priority */
.home #live .grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 26px 20px;
}

.home .grid .card {
  min-width: 0;
  transition: transform .2s ease;
}

.home .grid .card:hover {
  transform: translateY(-3px);
}

.home .grid .thumb {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0,0,0,.09);
}

.home .grid .card:hover .thumb {
  transform: none;
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,.20);
}

.home .grid .card-body {
  padding: 13px 3px 0;
  gap: 12px;
}

.home .grid .card-title {
  font-size: 15px;
  line-height: 1.4;
}

.home .grid .card-sub {
  font-size: 13px;
  margin-top: 3px;
}

.home .grid .card-av {
  width: 40px;
  height: 40px;
}

.home .grid .badge-live {
  padding: 5px 9px;
  border-radius: 7px;
}

/* Secondary discovery sections */
.home #following,
.home #upcoming,
.home #channels {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.home .up-list {
  gap: 12px;
}

.home .up-list a {
  padding: 15px;
  border-radius: 14px;
  transition: border-color .2s, transform .2s;
}

.home .up-list a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Channel search */
.home .filter {
  height: 44px;
  min-width: min(260px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.home .filter:focus-within {
  border-color: var(--accent);
}

.home .filter input {
  min-width: 0;
}

/* Streamer call-to-action */
.home .golive {
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 36px;
}

/* Responsive */
@media (max-width: 760px) {
  body.page-body .home {
    padding: 24px 16px 56px;
  }

  .home .sec {
    margin-bottom: 34px;
  }

  .home #live .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 22px 14px;
  }

  .home .sec-head h2 {
    font-size: 23px;
  }

  .home .filter {
    width: 100%;
  }

  .home #channels .sec-head .filter {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .grid .card,
  .home .up-list a {
    transition: none;
  }
}

/* Homepage v2 — final visual refinements */

/* Make live discovery the focal point */
.home #live .sec-head h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--live-badge);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--live-badge) 14%, transparent);
  vertical-align: middle;
}

/* Keep smaller upcoming schedules neatly grouped */
.home #upcoming .up-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
}

/* Give channel discovery its own subtle visual treatment */
.home #channels {
  padding: 30px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}

.home #channels .sec-head {
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .home #channels {
    padding: 22px 14px;
    border-radius: 16px;
  }
}
