/* Homepage */

.home-content { gap: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: center;
  padding: 28px 28px;
}
@media (max-width: 1240px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } .hero-showcase { display: none !important; } .hero-stream { justify-self: end; } }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; } .hero-stream { justify-self: stretch; max-width: none; } }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-meta #heroActive { color: var(--green); }
.hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; max-width: 14ch; }
.hero-form { display: flex; gap: 8px; max-width: 380px; }
.hero-form .search-field { padding: 7px 11px; }
@media (max-width: 520px) { .hero-form { flex-direction: column; } .hero-form .btn-white { width: 100%; } }

/* Floating badges (no tiles) */
.hero-showcase { position: relative; justify-self: end; width: 100%; aspect-ratio: 16 / 10; }
.show-tile { position: absolute; display: block; animation: float 6s ease-in-out infinite; will-change: transform; }
.show-tile img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); }
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate(var(--dx, 0px), var(--dy, -12px)) rotate(calc(var(--rot, 0deg) * -1)); }
}

/* ---------- Ending soon / Starting next ---------- */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 900px) { .home-cols { grid-template-columns: minmax(0, 1fr); } }
.home-cols .section { min-width: 0; gap: 8px; }

/* ---------- 24/7 stream in the hero ---------- */
.hero-stream { position: relative; width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0e0e10; border: 1px solid var(--line); }
.hero-stream-frame { position: absolute; inset: 0; }
.hero-stream-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Offline card: flat, like a video thumbnail placeholder */
.hero-stream-offline {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px; color: var(--text); background: #0e0e10 center / cover no-repeat;
}
.hero-stream-offline::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 16, 0.55), rgba(14, 14, 16, 0.92)); }
.hero-stream-offline > * { position: relative; }
.hso-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-2); background: rgba(9, 9, 11, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; padding: 3px 7px;
}
.hso-dot { width: 6px; height: 6px; border-radius: 50%; background: #52525b; }
.hso-bottom { display: flex; align-items: center; gap: 10px; }
.hso-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #18181b; }
.hso-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.hso-name { font-size: 13.5px; font-weight: 600; }
.hso-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hso-btn {
  flex-shrink: 0; font-size: 11.5px; font-weight: 500; color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 5px 10px; transition: background .15s, border-color .15s;
}
.hero-stream-offline:hover .hso-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }
.hero-stream.is-live .hero-stream-offline { display: none; }
