/* MOFULI LIVE V2 — Premium · Royal · African Modern
   Deep black + gold accent + live red. Gold is accent only. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@500;600;700;800;900&display=swap");

:root {
  --bg: #080808;
  --panel: #101010;
  --panel2: #151515;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(212, 175, 55, 0.45);
  --ink: #f7f7f5;
  --muted: #9c978c;
  --muted2: #6f6a62;
  --gold: #d4af37;
  --gold-dim: #b8942e;
  --on-gold: #0b0b0b;
  --live: #e50914;
  --violet: #6d5cff;
  --cyan: #5ad0ff;
  --crown: #d4af37;
  --font: "Manrope", "Inter", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max: min(1440px, 94vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body.mofuli-home {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

/* ---- Top nav ---- */
.nav, .ml-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.78));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.7rem 0;
}
.brand .mark,
.ml-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #d4af37, #8a6a12);
  color: #0b0b0b;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}
.brand b small {
  color: var(--gold) !important;
  letter-spacing: 0.18em;
}
.nav-links button {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
}
.nav-links button.on {
  color: #fff;
  border-color: var(--gold) !important;
}
.nav-links button[data-go="live"].on {
  color: #fff;
}
.live-flag {
  background: var(--live) !important;
}
.acct-btn {
  background: #141414;
  border-color: var(--line);
}
.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}
.lang-toggle button.on {
  background: var(--gold);
  color: #0b0b0b;
}

/* ---- Buttons ---- */
.btn-gold {
  background: linear-gradient(135deg, #e2c15a, #d4af37 40%, #b8942e) !important;
  color: #0b0b0b !important;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.22) !important;
}
.btn-live {
  background: var(--live) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ---- Cinematic home hero ---- */
.ml-hero {
  position: relative;
  min-height: min(78vh, 720px);
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  margin-bottom: 0.4rem;
}
.ml-hero video,
.ml-hero .ml-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  filter: saturate(1.05) contrast(1.05);
}
.ml-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.18) 52%, rgba(8, 8, 8, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-play-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
}
.hero-play-gate.hidden { display: none !important; }
.hero-play-gate i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e50914;
  box-shadow: 0 10px 28px rgba(229, 9, 20, 0.45);
  font-size: 1.6rem;
  font-style: normal;
}
.hero-sound-fab {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.hero-sound-fab.on {
  background: #e50914;
  border-color: #e50914;
}
.btn-sound {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-sound.on {
  background: #e50914 !important;
  border-color: #e50914;
}
.ml-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3.2rem;
}
.ml-live-now {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--live);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}
.ml-live-now i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
.ml-hero h1 {
  margin: 0.9rem 0 0.35rem;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}
.ml-hero .ml-kicker {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0.35rem 0 0.8rem;
}
.ml-hero p.lead {
  max-width: 38rem;
  color: #d8d4cc;
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
}
.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.ml-hero-meta {
  margin-top: 1.1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---- Rails / cards ---- */
.ml-rail-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fx-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.7rem;
  scrollbar-width: none;
}
.fx-chips::-webkit-scrollbar { display: none; }
.fx-chip {
  flex: 0 0 auto;
  background: #161616;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
}
.fx-chip.on {
  background: #fff;
  color: #0b0b0b;
  border-color: #fff;
}
.fx-heading {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
}
.fx-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.fx-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: inherit;
  text-decoration: none;
}
.fx-row:hover {
  border-color: rgba(212, 175, 55, 0.4);
}
.fx-lg {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}
.fx-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.82rem;
}
.fx-teams b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.fx-vs {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.fx-score {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fx-score.live { color: var(--live); }
.fx-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.fx-badge.live {
  color: #fff;
  background: var(--live);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.fx-badge.ft { color: #9c978c; }
.ml-news-live {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ml-news-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}
.chan-short { display: none; }
.chan-card,
.content-card {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
.chan-card:hover,
.content-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.content-card {
  width: 196px;
}
.content-card .content-art {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1b1530, #0d0d0d);
}
.content-card.poster .content-art {
  aspect-ratio: 2 / 3;
}
.short-card {
  flex: 0 0 auto;
  width: 148px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: #111;
  cursor: pointer;
}
.short-card img,
.short-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.short-card span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
}

/* ---- Live page ---- */
.ml-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 1100px) {
  .ml-live-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}
.ml-chat {
  background: #101014;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(70vh, 640px);
}
.ml-chat h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.ml-chat-log {
  flex: 1;
  overflow: auto;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ml-chat-row {
  font-size: 0.8rem;
  line-height: 1.35;
}
.ml-chat-row b {
  color: var(--gold);
  margin-right: 0.35rem;
}
.ml-chat form {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
}
.ml-chat input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.ml-upnext {
  margin-top: 0.8rem;
  background: #101014;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}
.ml-upnext h3 {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}
.ml-up-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.ml-up-row:first-of-type {
  border-top: 0;
}
.ml-up-row .t {
  color: var(--gold);
  font-weight: 800;
  min-width: 3.4rem;
}

/* ---- AFMIND sports hub ---- */
.ml-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.16), transparent 50%),
    linear-gradient(160deg, #14120c, #0c0c0c);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 22px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.2rem;
}
.ml-score .side {
  text-align: center;
}
.ml-score .side b {
  display: block;
  font-size: 1.05rem;
}
.ml-score .side span {
  color: var(--muted);
  font-size: 0.78rem;
}
.ml-score .mid {
  text-align: center;
}
.ml-score .mid .nums {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.ml-score .mid em {
  font-style: normal;
  color: var(--live);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.ml-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin: 0.4rem 0 1rem;
  scrollbar-width: none;
}
.ml-tabs button {
  flex: 0 0 auto;
  background: #141414;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.ml-tabs button.on {
  background: #fff;
  color: #0b0b0b;
  border-color: #fff;
}
.ml-rank {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ml-rank th,
.ml-rank td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.ml-rank th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ---- News ---- */
.ml-breaking {
  display: block;
  margin-bottom: 1.2rem;
}
.ml-breaking .ml-news-card.big,
.ml-breaking .big {
  display: block;
}
.ml-breaking .big {
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  background: #151515;
  border: 1px solid var(--line);
}
.ml-breaking .big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}
.ml-breaking .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}
.ml-breaking .cap .tag {
  color: var(--live);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ---- AI ---- */
.ml-ai {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  min-height: 62vh;
}
@media (max-width: 860px) {
  .ml-ai {
    grid-template-columns: 1fr;
  }
}
.ml-ai-side {
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem;
}
.ml-ai-chip {
  display: block;
  width: 100%;
  text-align: left;
  background: #161616;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0.4rem 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.ml-ai-thread {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 52vh;
}
.ml-ai-msgs {
  flex: 1;
  overflow: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ml-bubble {
  max-width: 85%;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ml-bubble.bot {
  background: #161616;
  border: 1px solid var(--line);
  align-self: flex-start;
}
.ml-bubble.me {
  background: linear-gradient(135deg, #d4af37, #b8942e);
  color: #0b0b0b;
  align-self: flex-end;
  font-weight: 600;
}
.ml-ai-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--line);
}
.ml-ai-compose input {
  flex: 1;
  background: #111;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.ml-ai-compose input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---- Profile ---- */
.ml-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.ml-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37, #6a5414);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.6rem;
  color: #0b0b0b;
}

/* ---- Bottom nav ---- */
.bottom-nav {
  background: rgba(8, 8, 8, 0.96) !important;
}
.bottom-nav button.on {
  color: var(--gold) !important;
}
@media (min-width: 860px) {
  .bottom-nav {
    display: none !important;
  }
}

/* ---- Stage / player chrome ---- */
.vlc-chrome {
  background: #121212;
  border-color: var(--line);
}
.stage {
  border-radius: 0 0 16px 16px;
  border-color: var(--line);
}
.stage-badge {
  background: var(--live) !important;
}

.soon-card {
  background: #121212;
  border-style: solid;
  opacity: 1;
  width: 170px;
  min-height: 150px;
}

.ml-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.ml-fab-ai {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 75;
  background: linear-gradient(135deg, #d4af37, #b8942e);
  color: #0b0b0b;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.3);
}
@media (min-width: 860px) {
  .ml-fab-ai {
    bottom: 24px;
  }
}

.nav-links .lang-row {
  border-color: var(--line) !important;
}
.ml-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 980px) {
  .ml-cats {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
.ml-cat {
  background: linear-gradient(180deg, #1c1a28, #101010);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 0.45rem 0.8rem;
  text-align: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ml-cat i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.45rem;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  font-style: normal;
}
.ml-cat b {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}
.ml-cat span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  margin-top: 0.15rem;
}
.ml-cat:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}
.ml-live-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.ml-live-meta h2 {
  margin: 0;
  font-size: 1.15rem;
}
.ml-live-meta p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.ml-live-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.ml-live-actions button {
  background: #161616;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}
.ml-watching {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  position: absolute;
  top: 14px;
  left: 92px;
  z-index: 3;
}
.ml-more-panel {
  position: absolute;
  right: 1.25rem;
  top: 58px;
  z-index: 90;
  width: min(280px, calc(100vw - 2rem));
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.45rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.ml-more-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.ml-more-panel button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.search-results a.ml-sg {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem 0.1rem;
  cursor: default;
}
.ml-notif-list {
  position: absolute;
  right: 1.25rem;
  top: 58px;
  z-index: 90;
  width: min(320px, calc(100vw - 2rem));
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.6rem;
}
.ml-notif-list article {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.ml-notif-list article:last-child {
  border-bottom: 0;
}
.ml-profile-list button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: #121212;
  border: 1px solid var(--line);
  color: inherit;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0.45rem 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ml-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
@media (max-width: 800px) {
  .ml-plans {
    grid-template-columns: 1fr;
  }
}
.ml-plan {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}
.ml-plan.gold {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, #1a160c, #101010);
}
.stage-controls button.wide {
  width: auto;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}
.ml-chan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 1100px) {
  .ml-chan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ml-chan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ml-chan-grid .chan-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ml-chan-grid .chan-art {
  aspect-ratio: 1;
  width: 100%;
}
.vlc-playlist.chan-scroller {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  gap: 0.55rem;
  max-height: min(52vh, 480px);
}
.vlc-playlist .chan-card {
  width: 100%;
  display: grid;
  grid-template-columns: 76px 1fr;
  min-width: 0;
}
.vlc-playlist .chan-art {
  aspect-ratio: 1;
  width: 76px;
}
.vlc-playlist .chan-cap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ml-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 900px) {
  .ml-news-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .ml-news-grid {
    grid-template-columns: 1fr;
  }
}
.ml-news-card {
  display: flex;
  flex-direction: column;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  min-height: 0;
}
.ml-news-card img,
.ml-news-card .ml-news-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #1b2438, #101010);
}
.ml-news-card .cap {
  padding: 0.75rem 0.85rem 0.9rem;
}
.ml-news-card .src {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.ml-news-card b {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}
.ml-news-card.big {
  min-height: 280px;
  position: relative;
}
.ml-news-card.big img,
.ml-news-card.big .ml-news-ph {
  min-height: 280px;
  aspect-ratio: auto;
  height: 100%;
}
.ml-news-card.big .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  padding: 1.1rem;
}
.ml-news-card.big b {
  font-size: 1.25rem;
}
.home-news-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .home-news-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.home-news-rail .ml-news-card b {
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ml-fact {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.3rem 1.2rem;
}
.ml-fact h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.ml-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}
@media (max-width: 720px) {
  .ml-facts {
    grid-template-columns: 1fr 1fr;
  }
}
.ml-facts div {
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.7rem;
  text-align: center;
}
.ml-facts b {
  display: block;
  font-size: 1.35rem;
}
.ml-facts span {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (min-width: 980px) {
  .nav-links .lang-row {
    display: none !important;
  }
  .mob-toggle.always {
    display: none;
  }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border: 0;
    padding: 0;
    gap: 1.05rem;
    margin-right: auto;
  }
  .nav-links button {
    width: auto;
    text-align: center;
    border-bottom: 2px solid transparent !important;
    padding: 0.3rem 0;
  }
  .nav-links button.nav-extra {
    display: none;
  }
}

/* =========================================================
   Phone = StarTimes ON app chrome
   Desktop layout above 860px stays as-is.
   ========================================================= */
@media (max-width: 859px) {
  html, body.mofuli-home {
    background: #050505;
  }
  body.mofuli-home {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  section {
    padding: 0.7rem 0;
  }

  /* ---- App bar ---- */
  .nav, .ml-nav {
    background: #050505;
    border-bottom: 0;
    backdrop-filter: none;
  }
  .nav-row {
    padding: 0.28rem 0;
    gap: 0.4rem;
    min-height: 48px;
  }
  .mob-toggle,
  .mob-toggle.always {
    display: none !important;
  }
  .nav-links {
    display: none !important;
  }
  .lang-toggle,
  .live-flag {
    display: none !important;
  }
  .brand {
    margin-right: auto;
  }
  .brand .mark,
  .ml-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
  }
  .brand b {
    font-size: 0.95rem;
  }
  .nav-actions {
    gap: 2px;
  }
  .acct-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
  }
  .ml-more-panel {
    display: none !important;
  }
  .ml-fab-ai {
    display: none !important;
  }
  footer {
    display: none !important;
  }

  /* ---- Home banner: portrait promo playlist on top ---- */
  .ml-hero {
    min-height: 0;
    aspect-ratio: 9 / 16;
    max-height: 72vh;
    border-radius: 0;
    margin: 0;
  }
  .ml-hero-inner {
    position: absolute;
    inset: 0;
    max-width: none;
    margin: 0;
    padding: 0.7rem 0.9rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
  }
  .ml-hero h1 {
    font-size: 1.35rem;
    margin: 0.15rem 0 0.35rem;
    max-width: 16ch;
    line-height: 1.05;
  }
  .ml-hero p.lead {
    display: none;
  }
  .ml-hero .ml-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    margin: 0;
  }
  .ml-hero-actions .btn {
    padding: 0.48rem 0.95rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }
  .ml-hero-actions .btn-ghost {
    display: none;
  }
  .hero-sound-fab {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* ---- Category chips ---- */
  #sec-home-cats {
    padding: 0.45rem 0 0.15rem;
  }
  .ml-cats {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ml-cats::-webkit-scrollbar {
    display: none;
  }
  .ml-cat {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: none !important;
  }
  .ml-cat i {
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    font-size: 0.92rem;
  }
  .ml-cat span {
    display: none;
  }
  .ml-cat b {
    font-size: 0.74rem;
    font-weight: 700;
  }

  /* ---- Live TV logos like StarTimes ---- */
  .sec-head {
    margin-bottom: 0.5rem;
    align-items: center;
  }
  .sec-head h2,
  .ml-rail-title {
    font-size: 1.02rem;
  }
  .sec-head p {
    display: none;
  }
  .eyebrow {
    font-size: 0.58rem;
    margin-bottom: 0.1rem;
  }
  .ml-chan-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .ml-chan-grid .chan-card {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    transform: none !important;
  }
  .ml-chan-grid .chan-art {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ml-chan-grid .chan-cap {
    padding: 0.32rem 0 0;
    text-align: center;
  }
  .chan-short { display: block !important; }
  .chan-full { display: none !important; }
  .ml-chan-grid .chan-cap b {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ml-chan-grid .chan-cap span,
  .ml-chan-grid .chan-fav {
    display: none;
  }
  .ml-chan-grid .chan-card.active .chan-art {
    box-shadow: 0 0 0 2px #e50914;
  }

  /* News = horizontal posters */
  .home-news-rail {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    grid-template-columns: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .home-news-rail::-webkit-scrollbar {
    display: none;
  }
  .home-news-rail .ml-news-card {
    flex: 0 0 74%;
    max-width: 280px;
    border-radius: 12px;
  }
  .home-news-rail .ml-news-card b {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  /* Hide empty website rails on the phone home */
  #sec-continue,
  #sec-trending,
  #sec-featured,
  #sec-stories {
    display: none !important;
  }
  body[data-ml-tab="profile"] #sec-mylist {
    display: none !important;
  }
  #sec-home-news .btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
  }
  #sec-shorts-home .chan-scroller {
    gap: 8px;
  }
  .short-card {
    width: 110px;
    border-radius: 12px;
  }
  .soon-card {
    width: 120px;
    min-height: 110px;
  }
  .content-card {
    width: 128px;
  }

  /* ---- LIVE tab: player then channel logos ---- */
  #sec-live.hero {
    padding: 0 0 0.4rem;
  }
  #sec-live .wrap.ml-live-grid {
    padding: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #sec-live .vlc-chrome {
    display: none;
  }
  #sec-live .vlc-main {
    position: sticky;
    top: 0;
    z-index: 45;
    background: #000;
  }
  #sec-live .stage {
    border: 0;
    border-radius: 0;
  }
  #sec-live .stage-ratio {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  #sec-live .stage-empty h2,
  #sec-live .stage-empty p {
    display: none;
  }
  #sec-live .ticker-bar {
    display: none;
  }
  .ml-live-meta {
    padding: 8px 12px 6px;
    margin: 0;
    gap: 0.4rem;
  }
  .ml-live-meta h2 {
    font-size: 0.95rem;
  }
  .ml-live-meta p {
    font-size: 0.72rem;
  }
  .ml-live-actions button {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
  }
  .ml-live-side {
    display: flex;
    flex-direction: column;
  }
  #sec-channels {
    order: 1;
    margin: 0 !important;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .vlc-side-head {
    padding: 8px 12px 0;
  }
  .vlc-side-head .eyebrow,
  .vlc-side-head .sub {
    display: none;
  }
  .vlc-side-head h2 {
    font-size: 0.95rem;
    margin: 0;
  }
  .vlc-playlist.chan-scroller {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 10px 12px 12px;
  }
  .vlc-playlist .chan-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    width: 100%;
    background: transparent;
    border: 0;
    transform: none !important;
  }
  .vlc-playlist .chan-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .vlc-playlist .chan-cap {
    padding: 0.3rem 0 0;
    text-align: center;
  }
  .vlc-playlist .chan-cap b {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vlc-playlist .chan-cap span,
  .vlc-playlist .chan-fav {
    display: none;
  }
  .vlc-playlist .chan-card.active .chan-art {
    box-shadow: 0 0 0 2px #e50914;
  }
  .ml-chat,
  .ml-upnext {
    display: none;
  }

  /* Immersive live: no top bar */
  body[data-ml-tab="live"] .nav {
    display: none;
  }

  /* ---- Sports / news / profile compact ---- */
  .ml-fact {
    padding: 0.9rem 0.8rem;
    border-radius: 14px;
  }
  .ml-fact h3 {
    font-size: 1.1rem;
  }
  .ml-facts {
    gap: 0.45rem;
  }
  .ml-facts b {
    font-size: 1.05rem;
  }
  .ml-breaking .big,
  .ml-breaking .ml-news-card.big {
    min-height: 180px;
    border-radius: 12px;
  }
  .ml-breaking .big img,
  .ml-news-card.big img {
    min-height: 180px;
  }
  .ml-news-grid {
    gap: 0.65rem;
  }
  .ml-news-card {
    border-radius: 12px;
  }
  .ml-news-card b {
    font-size: 0.82rem;
  }

  /* Bottom tab bar */
  .bottom-nav {
    background: #070707 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav button {
    color: #8a8a8a;
    gap: 1px;
    font-size: 0.58rem;
  }
  .bottom-nav button i {
    font-size: 1.18rem;
  }
  .bottom-nav button.on {
    color: #e50914 !important;
  }
  .bottom-nav button[data-bn="live"].on {
    color: #e50914 !important;
  }
}
