/* LOKUL TV UX fixes (2026-11-10 review package). Loaded after style.css. */

/* Horizontal scroll/sway fix (2026-11-11).
   News-row share labels (.visually-hidden { position:absolute }) were
   positioned against the relative .news-row-body because .news-card was
   position:static, so off-screen cards inflated the document width
   (~1183px at a 390px viewport). iOS Safari then pans sideways while
   you scroll, which clips the left edge of the hero and header.
   overflow-x: clip (with hidden fallback) on html+body is a safety net
   that does not break the sticky header the way overflow-x:hidden does. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
.news-card { position: relative; }
.rows, .row, .row-body, .news-home, .news-row-body, .billboard, .nav,
.network-intro, .network-intro-actions {
  max-width: 100%;
}
.rows, .row-body, .news-home, .news-row-body {
  overflow-x: hidden;
}
.row-scroller,
.news-cards.row-scroller {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}


/* Logo: keep a real space so the word reads "LOKUL TV", not "LOKULTV". */
.logo em { margin-left: 0.25em; }

/* Hero: short title, two lines max, Play stays in view on a phone. */
.billboard-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 2.1em;
  line-height: 1.05;
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (min-width: 801px) {
  .billboard-content {
    bottom: 12%;
    top: auto;
    max-width: min(560px, 46vw);
    z-index: 2;
  }
  .billboard-title {
    font-size: clamp(36px, 4.4vw, 72px);
  }
}
@media (max-width: 800px) {
  .billboard-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 8px;
  }
  .billboard-desc { display: none; } /* long rundown lives in More Info */
  .billboard-meta { margin-bottom: 10px; }
  .billboard-actions { margin-bottom: 8px; }
  .billboard-content { padding: 12px 4% 10px; }
}

/* Intro strip under the hero. */
.network-intro {
  margin: 8px 4% 4px;
  max-width: 920px;
  color: #e5e5e5;
  font-size: 15px;
  line-height: 1.5;
}
.network-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 4% 6px;
}
.btn-signup-hero {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--red, #e50914);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* Search in the header. */
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-search input[type="search"] {
  width: 12rem;
  max-width: 38vw;
  min-height: 36px;
  border: 1px solid #666;
  border-radius: 4px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 4px 10px;
  font-size: 14px;
}
.nav-search input[type="search"]:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
/* Mobile header: news.css @media (max-width:800px) sets .nav-links{display:flex}
   and lets the fixed, transparent .nav wrap over the billboard. Keep a solid
   in-flow/sticky bar above the hero; hide the text links unless the menu is open.
   Do not use an Expo-style bottom tab bar. */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-menu-btn:hover,
.nav-menu-btn:focus-visible {
  background: rgba(255,255,255,.12);
  outline: 2px solid #fff;
  outline-offset: 1px;
}

@media (max-width: 800px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 4%;
    background: #141414;
    background-color: #141414;
  }
  .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }
  .nav-menu-btn { display: inline-flex; }
  /* Override news.css, which un-hides .nav-links on small screens. */
  .nav-links {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1 1 100%;
    width: 100%;
    gap: 0;
    padding: 4px 0 8px;
  }
  .nav.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 0 4px;
  }
  .nav-right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1 1 100%;
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
  }
  .nav-search {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-search input[type="search"] {
    width: 100%;
    max-width: none;
    min-height: 44px;
  }
  .nav-search .icon-btn,
  .nav-signin,
  .nav-signup {
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.nav-signup {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 6px 10px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* After the base .nav-signup { font-size: 13px } rule so the short
   label actually wins on small screens. */
@media (max-width: 800px) {
  .nav-signup {
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
  }
  .nav-signup::after {
    content: "Sign up";
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }
}

/* Explore all is a real link. Reset the hover-only slide (translateX(-8px))
   so the row-title flex gap is visible on phones, which have no hover. */
.row-title { gap: 0.55em; }
.explore {
  opacity: .85;
  text-decoration: none;
  color: inherit;
  transform: none;
  margin-left: 0.35em;
}
.row-title a.explore:hover,
.row-title:hover a.explore { opacity: 1; transform: none; }

/* Sponsored mark on in-row ads (e.g. Foxus.ai). */
.card-flag.sponsored-flag,
.sponsored-flag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  background: #e50914;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
}
.card-img { position: relative; }

/* Hero More Info panel. */
.hero-details[open] {
  display: flex;
}
.hero-details {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}
.hero-details::backdrop { background: rgba(0,0,0,.72); }
.hero-details-card {
  margin: auto;
  width: min(640px, calc(100% - 32px));
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #181818;
  color: #fff;
  border-radius: 8px;
  padding: 24px 24px 28px;
}
.hero-details-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 1px;
  margin: 0 8px 12px 0;
  line-height: 1.1;
}
.hero-details-card p { font-size: 15px; line-height: 1.55; color: #e5e5e5; }
.hero-details-close {
  float: right;
  background: #333;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
}

/* Category / search results grid. */
.browse-page { padding: 88px 4% 48px; min-height: 50vh; }
.browse-page h1 { font-size: 28px; margin: 0 0 8px; }
.browse-lead { color: #b3b3b3; margin: 0 0 24px; max-width: 44rem; }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.search-page .browse-grid { margin-top: 20px; }
.placeholder-note {
  border: 1px dashed #666;
  border-radius: 6px;
  padding: 12px 14px;
  color: #c8c8c8;
  font-size: 14px;
  background: rgba(255,255,255,.03);
}
.flag-needed { color: #ffcc66; }

/* News card original-source link. */
.news-source-link {
  display: inline-block;
  font-size: 12px;
  color: #b3b3b3;
  margin: 6px 4px 0;
}
.news-source-link a { color: #e5e5e5; }

/* Watch-page share + restored nav live in watch.php snippets. */
.watch-share { margin: 16px 0 8px; }

.up-next-banner {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(0,0,0,.45);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.up-next-banner[hidden] { display: none; }
.pkg-value { margin-left: 8px; }

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
