/*
Theme Name:  VBestMedia
Theme URI:   https://www.youtube.com/@vietbesttv8376
Author:      VBestMedia
Author URI:  https://www.vbestmedia.com
Description: Video-first YouTube channel theme for VBestMedia. Clean, mobile-first layout with hero, trending, latest, shows, community sections and YouTube auto-import. No other plugins required.
Version:     1.8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vietbestmedia-theme
Tags:        video, youtube, responsive, mobile-first, dark
*/

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0f0f0f;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* ── WRAPPER ─────────────────────────────────────────── */
#vbm-wrap {
  min-height: 100vh;
  padding-bottom: 64px; /* bottom nav space on mobile */
}

/* ── TOP NAV ─────────────────────────────────────────── */
#vbm-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.vbm-logo {
  font-size: 18px;
  font-weight: 800;
  color: #ff3d3d;
  letter-spacing: -0.5px;
  white-space: nowrap;
  grid-column: 1;
  justify-self: start;
}
.vbm-logo span { color: #ffffff; }
.vbm-logo em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: #555;
  margin-left: 6px;
  letter-spacing: 0;
}
/* Nav links — centered in middle column */
.vbm-top-links {
  display: flex;
  gap: 2px;
  grid-column: 2;
  justify-self: center;
}
/* Right spacer — mirrors logo width to keep links truly centered */
.vbm-nav-right {
  grid-column: 3;
  justify-self: end;
  min-width: 140px; /* approx logo width */
}
.vbm-tl {
  color: #888;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.vbm-tl:hover, .vbm-tl.active { color: #fff; background: rgba(255,255,255,0.08); }
.vbm-tl-live { color: #ff3d3d !important; }
.vbm-tl-live::before { content: none !important; display: none !important; }
@keyframes livepulse { 0%,100% { opacity:1; } 50% { opacity:.2; } }
.vbm-live-dot { animation: livepulse 1.4s ease-in-out infinite; }

/* ── SECTIONS ────────────────────────────────────────── */
.vbm-section {
  padding: 14px 12px 12px;
  background: #111;
  margin-bottom: 3px;
}

/* ── SECTION HEADING ─────────────────────────────────── */
.vbm-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.vbm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #ff3d3d; }
.dot-orange { background: #ff8800; }
.dot-blue   { background: #3d9eff; }
.dot-green  { background: #3dcc70; }
.dot-purple { background: #9944ee; }

/* ── VIDEO CARD ──────────────────────────────────────── */
.vbm-card {
  background: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.vbm-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* 16:9 thumbnail */
.vbm-thumb {
  display: block;
  position: relative;
  overflow: hidden;
}
.vbm-thumb::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}
.vbm-thumb img,
.vbm-thumb .vbm-noimg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.vbm-noimg {
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* play button */
.vbm-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0,0,0,.3);
  transition: opacity .2s;
}
.vbm-play-btn::after {
  content: '';
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: inset 8px 0 0 6px rgba(255,255,255,.7);
}
.vbm-card:hover .vbm-play-btn { opacity: 1; }

/* card text */
.vbm-card-body { padding: 8px 9px 10px; flex: 1; }
.vbm-card-title {
  font-size: 12px;
  font-weight: 500;
  color: #ddd;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.vbm-card:hover .vbm-card-title { color: #fff; }
.vbm-card-big .vbm-card-title { font-size: 14px; }

/* ── HERO — compact YouTube style ───────────────────── */
.vbm-hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 10px;
  align-items: start;
  max-height: 320px; /* keeps it compact */
}
.vbm-hero-main .vbm-card {
  max-height: 320px;
}
.vbm-hero-main .vbm-thumb::before { padding-bottom: 52%; }
.vbm-hero-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow: hidden;
}
/* Side cards: horizontal thumbnail + title layout */
.vbm-hero-side .vbm-card {
  flex-direction: row;
  align-items: flex-start;
  background: #1a1a1a;
  max-height: 72px;
  overflow: hidden;
}
.vbm-hero-side .vbm-card .vbm-thumb {
  width: 120px;
  min-width: 120px;
  flex-shrink: 0;
}
.vbm-hero-side .vbm-card .vbm-thumb::before { padding-bottom: 56.25%; }
.vbm-hero-side .vbm-card .vbm-card-body {
  padding: 5px 8px;
  overflow: hidden;
}
.vbm-hero-side .vbm-card .vbm-card-title {
  font-size: 11px;
  -webkit-line-clamp: 3;
}
.vbm-hero-side .vbm-card .vbm-card-cat {
  margin-top: 3px;
  font-size: 10px;
}

/* ── STANDARD GRID ───────────────────────────────────── */
.vbm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 col default (mobile) */
  gap: 8px;
}

/* ── SHOWS ROW (horizontal scroll) ──────────────────── */
.vbm-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.vbm-row::-webkit-scrollbar { height: 3px; }
.vbm-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.vbm-row-item {
  min-width: 148px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ── TAGS ────────────────────────────────────────────── */
.vbm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.vbm-tag {
  font-size: 11px;
  color: #777;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 4px 11px;
  transition: background .15s, color .15s;
}
.vbm-tag:hover { background: rgba(255,255,255,.1); color: #ccc; }

/* ── LIVE SECTION ────────────────────────────────────── */
.vbm-live-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.vbm-live-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.vbm-live-placeholder {
  padding: 24px;
  text-align: center;
  background: #180000;
  border: 1px solid rgba(255,61,61,.2);
  border-radius: 8px;
  color: #888;
  font-size: 13px;
}
.vbm-live-placeholder a { color: #ff3d3d; }

/* ── EMPTY STATE ─────────────────────────────────────── */
.vbm-empty {
  color: #555;
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}

/* ── FOOTER ──────────────────────────────────────────── */
#vbm-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 16px;
  text-align: center;
  color: #444;
  font-size: 12px;
}
#vbm-footer a { color: #666; margin: 0 8px; }
#vbm-footer a:hover { color: #aaa; }

/* ── MOBILE BOTTOM NAV ───────────────────────────────── */
#vbm-bot-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.07);
  justify-content: space-around;
  align-items: stretch;
  height: 58px;
}
.vbm-bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #4a4a4a;
  font-size: 9px;
  font-weight: 500;
  flex: 1;
  transition: color .15s;
  padding: 0 4px;
}
.vbm-bn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vbm-bn:hover, .vbm-bn.active { color: #ff3d3d; }

/* ── ADMIN BAR OFFSET ────────────────────────────────── */
.admin-bar #vbm-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #vbm-nav { top: 46px; }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

/* Tablet 600px+ */
@media (min-width: 600px) {
  .vbm-grid { grid-template-columns: repeat(3, 1fr); }
  .vbm-row-item { min-width: 170px; }
  .vbm-section { padding: 16px 16px 12px; }
}

/* Desktop 960px+ */
@media (min-width: 960px) {
  #vbm-wrap { padding-bottom: 0; }
  .vbm-section { padding: 20px 24px 16px; }
  .vbm-grid { grid-template-columns: repeat(4, 1fr); }
  .vbm-card-title { font-size: 13px; }
  .vbm-card-big .vbm-card-title { font-size: 15px; }
  .vbm-row-item { min-width: 200px; }
}

/* Wide desktop 1280px+ — 5 columns */
@media (min-width: 1280px) {
  .vbm-grid { grid-template-columns: repeat(5, 1fr); }
  .vbm-section { padding: 22px 32px 18px; }
}

/* Mobile only */
@media (max-width: 599px) {
  .vbm-top-links { display: none; }
  #vbm-bot-nav   { display: flex; }

  /* hero stacks on mobile */
  .vbm-hero { grid-template-columns: 1fr; }
  .vbm-hero-side { grid-template-columns: 1fr 1fr; }
}

/* ── VIEW ALL LINK ───────────────────────────────────────── */
.vbm-view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 10px;
  font-size: 13px;
  color: #666;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: color .15s, border-color .15s, background .15s;
}
.vbm-view-all:hover { color: #ccc; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ══════════════════════════════════════════════════════════
   PLAYLIST / CATEGORY ARCHIVE PAGE
   ══════════════════════════════════════════════════════════ */

/* Playlist header banner */
.vbm-playlist-header {
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 16px 14px;
  margin-bottom: 3px;
}
.vbm-playlist-meta {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.vbm-playlist-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.vbm-playlist-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.vbm-playlist-count {
  font-size: 13px;
  color: #888;
}
.vbm-playlist-desc {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  max-width: 600px;
}

/* Filter tag bar */
.vbm-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vbm-filter-label {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 4px;
}
.vbm-filter-tag {
  font-size: 11px;
  color: #777;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 4px 12px;
  transition: all .15s;
}
.vbm-filter-tag:hover { background: rgba(255,255,255,0.1); color: #ccc; }
.vbm-filter-tag.active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* Archive section */
.vbm-archive-section { min-height: 400px; }
.vbm-archive-grid { gap: 10px; }

/* Pagination */
.vbm-pagination {
  margin: 24px 0 8px;
  display: flex;
  justify-content: center;
}
.vbm-pagination .page-numbers {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}
.vbm-pagination .page-numbers li { display: inline; }
.vbm-pagination .page-numbers a,
.vbm-pagination .page-numbers span {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 13px;
  color: #888;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.07);
  transition: all .15s;
}
.vbm-pagination .page-numbers a:hover { color: #fff; background: #2a2a2a; }
.vbm-pagination .page-numbers .current { color: #fff; background: #ff3d3d; border-color: #ff3d3d; }
.vbm-pagination .page-numbers .dots { background: transparent; border-color: transparent; }

/* Other playlists strip */
.vbm-playlist-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vbm-plist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.vbm-plist-card:hover { background: #222; border-color: rgba(255,255,255,0.15); }
.vbm-plist-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.vbm-plist-info { flex: 1; }
.vbm-plist-name { font-size: 14px; font-weight: 600; color: #ddd; }
.vbm-plist-count { font-size: 12px; color: #666; margin-top: 2px; }
.vbm-plist-arrow { font-size: 14px; opacity: 0.5; }

/* ══════════════════════════════════════════════════════════
   SINGLE VIDEO PAGE
   ══════════════════════════════════════════════════════════ */

.vbm-single-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Video player */
.vbm-single-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.vbm-single-player iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Video info block */
.vbm-single-info {
  background: #131313;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vbm-single-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}
.vbm-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.vbm-single-cat {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.vbm-single-date { font-size: 12px; color: #666; }
.vbm-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #ff3d3d;
  background: rgba(255,61,61,0.1);
  border: 1px solid rgba(255,61,61,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  transition: background .15s;
}
.vbm-yt-link:hover { background: rgba(255,61,61,0.2); color: #ff3d3d; }
.vbm-single-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Breadcrumb */
.vbm-breadcrumb {
  padding: 10px 16px;
  font-size: 12px;
  color: #555;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vbm-breadcrumb a { color: #666; }
.vbm-breadcrumb a:hover { color: #aaa; }
.vbm-bc-sep { margin: 0 6px; color: #444; }
.vbm-bc-current { color: #888; }

/* Prev / Next navigation */
.vbm-single-nav {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #131313;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.vbm-single-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color .15s, background .15s;
}
.vbm-single-nav-btn:hover { background: #242424; border-color: rgba(255,255,255,0.18); }
.vbm-nav-arrow { font-size: 20px; color: #555; flex-shrink: 0; }
.vbm-nav-info { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: hidden; }
.vbm-nav-label { font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: 0.8px; }
.vbm-nav-ttl {
  font-size: 12px; color: #ccc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vbm-nav-right { justify-content: flex-end; }

/* Sidebar */
.vbm-single-sidebar {
  background: #111;
  border-top: 3px solid rgba(255,255,255,0.04);
  padding: 14px 12px;
}
.vbm-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Related video item */
.vbm-related-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .15s;
}
.vbm-related-item:last-of-type { border-bottom: none; }
.vbm-related-item:hover { opacity: 0.85; }
.vbm-related-item.vbm-related-active { opacity: 0.4; pointer-events: none; }
.vbm-related-thumb {
  position: relative;
  width: 100px;
  min-width: 100px;
  height: 56px;
  background: #222;
  border-radius: 5px;
  overflow: hidden;
}
.vbm-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vbm-related-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0,0,0,.4);
  transition: opacity .15s;
}
.vbm-related-item:hover .vbm-related-play { opacity: 1; }
.vbm-related-play::after {
  content: '';
  border-left: 10px solid rgba(255,255,255,.8);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.vbm-related-info { flex: 1; overflow: hidden; }
.vbm-related-title {
  font-size: 12px;
  color: #ccc;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vbm-related-date { font-size: 11px; color: #555; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SINGLE PAGE
   ══════════════════════════════════════════════════════════ */

@media (min-width: 900px) {
  /* Side-by-side layout on desktop */
  .vbm-single-wrap {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
  .vbm-single-sidebar {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    max-height: calc(100vh - 54px);
    overflow-y: auto;
    position: sticky;
    top: 54px;
  }
  .vbm-single-sidebar::-webkit-scrollbar { width: 4px; }
  .vbm-single-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
}

@media (min-width: 600px) {
  .vbm-playlist-header { padding: 20px 20px 16px; }
  .vbm-playlist-title { font-size: 26px; }
  .vbm-plist-card { padding: 14px 18px; }
}

@media (max-width: 599px) {
  .vbm-playlist-title { font-size: 18px; }
  .vbm-single-title { font-size: 15px; }
  .vbm-single-nav { flex-direction: column; }
  .vbm-related-thumb { width: 80px; min-width: 80px; height: 45px; }
}

/* ── SECTION HEADING LINK (See All →) ─────────────────── */
.vbm-heading { justify-content: flex-start; }
.vbm-heading-link {
  margin-left: auto;
  font-size: 11px;
  color: #555;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: color .15s;
  white-space: nowrap;
}
.vbm-heading-link:hover { color: #aaa; }

/* ── CARD CATEGORY BADGE ───────────────────────────────── */
.vbm-card-cat {
  font-size: 10px;
  color: #555;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   REDESIGNED HERO — compact YouTube style
   ══════════════════════════════════════════════════════════ */

/* Hero wrapper */
.vbm-hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
  align-items: stretch;
}

/* Override: main card has title overlay, not below */
.vbm-hero-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.vbm-hero-card .vbm-thumb::before { padding-bottom: 58%; }

/* Gradient title overlay on main card */
.vbm-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88) 60%);
  padding: 32px 14px 14px;
  pointer-events: none;
}
.vbm-hero-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #ff3d3d;
  background: rgba(255,61,61,0.15);
  border: 1px solid rgba(255,61,61,0.4);
  border-radius: 4px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.vbm-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide the card body on the main hero card (title is in overlay) */
.vbm-hero-card .vbm-card-body { display: none; }

/* Side list — compact row items */
.vbm-hero-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.vbm-hero-item {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, background .15s;
  flex: 1;
}
.vbm-hero-item:hover {
  background: #222;
  border-color: rgba(255,255,255,0.15);
}

.vbm-hero-item-thumb {
  width: 110px;
  min-width: 110px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.vbm-hero-item-thumb::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}
.vbm-hero-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.vbm-hero-item-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.vbm-hero-item:hover .vbm-hero-item-play { background: rgba(0,0,0,0.3); }
.vbm-hero-item-play::after {
  content: '';
  border-left: 10px solid rgba(255,255,255,0.75);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  transition: opacity .15s;
}
.vbm-hero-item:hover .vbm-hero-item-play::after { opacity: 1; }

.vbm-hero-item-info {
  flex: 1;
  padding: 6px 8px 6px 0;
  overflow: hidden;
}
.vbm-hero-item-title {
  font-size: 12px;
  font-weight: 500;
  color: #ddd;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vbm-hero-item-date {
  font-size: 10px;
  color: #555;
  margin-top: 4px;
}

/* ── HERO RESPONSIVE ─────────────────────────────────── */
@media (max-width: 599px) {
  .vbm-hero { grid-template-columns: 1fr; }
  .vbm-hero-side {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .vbm-hero-item {
    flex-direction: column;
    min-width: 140px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .vbm-hero-item-thumb { width: 100%; min-width: 100%; }
  .vbm-hero-item-info { padding: 6px 8px; }
  .vbm-hero-title { font-size: 13px; }
}

@media (min-width: 960px) {
  .vbm-hero { grid-template-columns: 1.8fr 1fr; gap: 12px; }
  .vbm-hero-title { font-size: 17px; }
  .vbm-hero-item-thumb { width: 130px; min-width: 130px; }
  .vbm-hero-item-title { font-size: 13px; }
}

/* ── LIVE NAV — nuclear fix for "Pain" bug ───────────── */
.vbm-tl-live,
.vbm-tl-live:before,
.vbm-tl-live:after,
.vbm-tl-live *:before,
.vbm-tl-live *:after {
  content: none !important;
}
.vbm-tl-live { color: #ff3d3d !important; font-weight: 600; }

/* ── LIVE STREAM BANNER ──────────────────────────── */
.vbm-live-banner {
  display: block;
  background: linear-gradient(135deg, #1a0a0a 0%, #1c1010 50%, #0f1a1a 100%);
  border: 1px solid rgba(255,61,61,0.25);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
  text-decoration: none;
}
.vbm-live-banner:hover {
  border-color: rgba(255,61,61,0.6);
  transform: translateY(-1px);
}
.vbm-live-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
}
.vbm-live-banner-left { flex: 1; }
.vbm-live-banner-dot {
  font-size: 11px;
  font-weight: 700;
  color: #ff3d3d;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.vbm-live-banner-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.vbm-live-banner-channels {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}
.vbm-live-banner-btn {
  background: #ff3d3d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s;
}
.vbm-live-banner:hover .vbm-live-banner-btn {
  background: #e02020;
}

@media (max-width: 599px) {
  .vbm-live-banner-inner { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .vbm-live-banner-title { font-size: 16px; }
  .vbm-live-banner-btn { align-self: stretch; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   PAGE LAYOUT — MAIN CONTENT + RIGHT AD SIDEBAR
   Version: 1.8 — forced override
═══════════════════════════════════════════════════════ */

/* ── PAGE LAYOUT: clean full-width, no sidebar ──────────── */
html, body       { width: 100% !important; overflow-x: hidden !important; }
#vbm-wrap        { width: 100%; max-width: none; }
#vbm-page-layout { display: block; width: 100%; }
#vbm-main        { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
#vbm-sidebar     { display: none !important; }

/* ── SIDEBAR TV FRAME ────────────────────────────── */
.vbm-sidebar-tv {
  margin-bottom: 0;
  padding-bottom: 4px;
}
.vbm-sidebar-tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
}
.vbm-sidebar-tv-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.vbm-sidebar-tv-dot {
  width: 7px; height: 7px;
  background: #ff3d3d;
  border-radius: 50%;
  animation: livepulse 1.3s ease-in-out infinite;
  flex-shrink: 0;
}
.vbm-sidebar-tv-link {
  font-size: 9px;
  font-weight: 600;
  color: #ff3d3d;
  background: rgba(255,61,61,0.1);
  border: 1px solid rgba(255,61,61,0.2);
  padding: 2px 8px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.vbm-sidebar-tv-link:hover { background: rgba(255,61,61,0.2); color: #ff3d3d; }
/* TV bezel */
.vbm-sidebar-tv-bezel {
  background: linear-gradient(145deg, #242430, #18181f, #242430);
  border-radius: 8px;
  padding: 6px 6px 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 20px rgba(0,0,0,0.7);
}
.vbm-sidebar-tv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.vbm-sidebar-tv-brand {
  font-size: 7px;
  color: #2a2a38;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.vbm-sidebar-tv-leds { display: flex; gap: 3px; }
.vbm-sidebar-tv-led {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}
.vbm-sidebar-tv-led.on {
  background: #ff3d3d;
  box-shadow: 0 0 4px #ff3d3d;
  animation: livepulse 1.3s ease-in-out infinite;
}
.vbm-sidebar-tv-screen {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid #111;
}
.vbm-sidebar-tv-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vbm-sidebar-tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.025) 2px,rgba(0,0,0,0.025) 4px);
  pointer-events: none;
  z-index: 2;
}
/* TV stand */
.vbm-sidebar-tv-neck {
  width: 28px; height: 6px;
  background: linear-gradient(to bottom, #18181f, #202028);
  margin: 0 auto;
}
.vbm-sidebar-tv-base {
  width: 65px; height: 4px;
  background: linear-gradient(to bottom, #202028, #18181f);
  border-radius: 0 0 4px 4px;
  margin: 0 auto 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.vbm-sidebar-tv-caption {
  font-size: 10px;
  color: #555;
  text-align: center;
  padding: 4px 0 2px;
  line-height: 1.4;
}
/* Spacer between TV and ad label */
.vbm-sidebar-spacer {
  height: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 14px;
}

/* ── SIDEBAR LABEL ───────────────────────────────── */
/* Push ALL sidebar content down — below nav */
#vbm-sidebar > * { }
.vbm-sidebar-tv { margin-top: 10px; }

.vbm-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.vbm-sidebar-label::before {
  content: '';
  width: 3px;
  height: 12px;
  background: #ff3d3d;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── AD CARDS ────────────────────────────────────── */
.vbm-ad-card {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #161616;
  transition: border-color .15s, transform .15s;
}
.vbm-ad-card:hover {
  border-color: rgba(255,61,61,0.4);
  transform: translateY(-1px);
}
.vbm-ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.vbm-ad-img {
  width: 100%;
  padding-bottom: 55%;
  position: relative;
  overflow: hidden;
}
.vbm-ad-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* VIDEO AD — YouTube embed inside sidebar */
.vbm-ad-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
}
.vbm-ad-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vbm-ad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
}
.vbm-ad-icon  { font-size: 24px; margin-bottom: 2px; }
.vbm-ad-name  { font-size: 11px; font-weight: 700; color: #fff; text-align: center; }
.vbm-ad-tagline { font-size: 9px; color: rgba(255,255,255,0.45); text-align: center; line-height: 1.4; }
.vbm-ad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #111;
}
.vbm-ad-badge {
  font-size: 8px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255,255,255,0.04);
  padding: 2px 5px;
  border-radius: 3px;
}
.vbm-ad-cta {
  font-size: 10px;
  color: #ff3d3d;
  font-weight: 600;
}

/* ── ADVERTISE WITH US ───────────────────────────── */
.vbm-ad-with-us {
  background: rgba(255,61,61,0.05);
  border: 1px solid rgba(255,61,61,0.15);
  border-radius: 8px;
  padding: 12px 10px;
  margin-top: 6px;
  text-align: center;
}
.vbm-ad-wu-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.vbm-ad-wu-text {
  font-size: 10px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}
.vbm-ad-wu-btn {
  display: inline-block;
  background: #ff3d3d;
  color: #fff !important;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .15s;
}
.vbm-ad-wu-btn:hover { background: #cc2020; }

/* ═══════════════════════════════════════════════════════
   ABOUT BANNER — above Featured section
═══════════════════════════════════════════════════════ */
.vbm-about-banner {
  background: linear-gradient(135deg, #0d0d18 0%, #111120 50%, #0d1510 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid #ff3d3d;
  padding: 12px clamp(16px, 4vw, 40px); /* fluid padding — adapts to screen width */
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.vbm-about-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(255,61,61,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.vbm-about-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
  /* Fluid max-width: narrows on small screens, caps at 680px on desktop */
  width: min(100%, 680px);
  max-width: 100%;
  box-sizing: border-box;
}
/* Logo row */
.vbm-about-logo {
  font-size: 14px;
  font-weight: 800;
  color: #ff3d3d;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vbm-about-logo span { color: #fff; }
/* Text — narrow, justified, contained */
.vbm-about-text {
  width: 100%;
  box-sizing: border-box;
}
.vbm-about-text p {
  font-size: 12px;
  color: #888;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
}
.vbm-about-text strong { color: #bbb; font-weight: 600; }
.vbm-about-link {
  color: #ff3d3d;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: color .15s;
  white-space: nowrap;
}
.vbm-about-link:hover { color: #ff6b6b; }

/* ── ADMIN EDIT BUTTONS (visible only to logged-in admins) ── */
.vbm-about-edit-btn {
  font-size: 12px;
  color: #555;
  text-decoration: none;
  margin-left: 8px;
  opacity: 0.6;
  transition: opacity .15s;
}
.vbm-about-edit-btn:hover { opacity: 1; }

/* ── Partner badge on cards ─────────────────────────────────────── */
.vbm-partner-badge {
  position: absolute; bottom: 8px; left: 8px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  color: #f5a623; font-size: 10px; font-weight: 700;
  padding: 3px 9px 3px 6px; border-radius: 20px;
  border: 1px solid rgba(245,166,35,.35);
  pointer-events: none; white-space: nowrap;
  max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
}

/* ── Shared Video Playlist ──────────────────────────────────────── */
.vbm-playlist {
  display: grid; grid-template-columns: 1fr 320px;
  background: #161616; border-radius: 10px;
  overflow: hidden; border: 1px solid #2a2a2a;
}
.vbm-pl-frame { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; background:#000; }
.vbm-pl-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:none; }
.vbm-pl-info { padding:14px 16px 16px; border-top:1px solid #222; }
.vbm-pl-partner { font-size:11px; font-weight:700; color:#f5a623; margin-bottom:6px; }
.vbm-pl-title { font-size:14px; font-weight:600; line-height:1.4; margin-bottom:8px; }
.vbm-pl-title a { color:#fff; text-decoration:none; }
.vbm-pl-title a:hover { color:#f5a623; }
.vbm-pl-counter { font-size:11px; color:#666; }
.vbm-pl-list { border-left:1px solid #222; overflow-y:auto; max-height:420px; scrollbar-width:thin; scrollbar-color:#333 transparent; }
.vbm-pl-list::-webkit-scrollbar { width:4px; }
.vbm-pl-list::-webkit-scrollbar-thumb { background:#333; border-radius:2px; }
.vbm-pl-item { display:grid; grid-template-columns:28px 100px 1fr; gap:0 10px; align-items:center; padding:10px 12px; cursor:pointer; border-bottom:1px solid #1e1e1e; transition:background .15s; }
.vbm-pl-item:hover { background:#1e1e1e; }
.vbm-pl-item.active { background:#1e2a1e; border-left:3px solid #f5a623; }
.vbm-pl-item-num { font-size:11px; color:#555; text-align:center; }
.vbm-pl-item.active .vbm-pl-item-num { color:#f5a623; font-weight:700; }
.vbm-pl-item-thumb { position:relative; width:100px; height:56px; border-radius:4px; overflow:hidden; background:#111; }
.vbm-pl-item-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.vbm-pl-item-play { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:14px; color:rgba(255,255,255,0); background:rgba(0,0,0,0); transition:all .15s; }
.vbm-pl-item:hover .vbm-pl-item-play, .vbm-pl-item.active .vbm-pl-item-play { color:rgba(255,255,255,.9); background:rgba(0,0,0,.45); }
.vbm-pl-item-info { min-width:0; }
.vbm-pl-item-title { font-size:12px; font-weight:500; color:#ddd; line-height:1.35; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin-bottom:3px; }
.vbm-pl-item.active .vbm-pl-item-title { color:#fff; }
.vbm-pl-item-partner { font-size:10px; color:#f5a623; font-weight:600; margin-bottom:2px; }
.vbm-pl-item-date { font-size:10px; color:#555; }
@media (max-width:700px) {
  .vbm-playlist { grid-template-columns:1fr; }
  .vbm-pl-list { border-left:none; border-top:1px solid #222; max-height:280px; }
  .vbm-pl-item { grid-template-columns:24px 88px 1fr; }
  .vbm-pl-item-thumb { width:88px; height:50px; }
}


/* ── TV placeholder (no AI videos yet) ──────────────────────────── */
.vbm-tv-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0a0a0a; gap: 10px; padding: 16px; text-align: center;
}
.vbm-tv-placeholder-icon { font-size: 32px; opacity: .4; }
.vbm-tv-placeholder-text { font-size: 11px; color: #555; line-height: 1.6; }
.vbm-tv-placeholder-text a { color: #f5a623; }

/* ── YouTube IFrame API player div ──────────────────────────────── */
#vbm-tv-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#vbm-tv-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════════════════════
   VBESTMEDIA AI TV — inline channel section
══════════════════════════════════════════════════════════ */
.vbm-tv-on-air {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,61,61,.15); border: 1px solid rgba(255,61,61,.4);
  color: #ff3d3d; font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; letter-spacing: .6px;
  margin-left: 6px;
}
.vbm-tv-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
}
.vbm-tv-player-wrap { display: flex; flex-direction: column; }
.vbm-tv-player-frame {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  flex-shrink: 0;
}
.vbm-tv-player-frame #vbm-tv-player,
.vbm-tv-player-frame #vbm-tv-player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.vbm-tv-now-playing {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #0d0d0d;
  border-top: 1px solid #1e1e1e; min-height: 56px;
}
.vbm-tv-np-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3d3d; flex-shrink: 0;
  animation: livepulse 1.4s ease-in-out infinite;
}
.vbm-tv-np-info { flex: 1; min-width: 0; }
.vbm-tv-np-label { font-size: 9px; color: #555; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px; }
.vbm-tv-np-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbm-tv-np-counter { font-size: 11px; color: #444; white-space: nowrap; flex-shrink: 0; }

/* Playlist */
.vbm-tv-playlist {
  border-left: 1px solid #1e1e1e;
  overflow-y: auto; max-height: 420px;
  background: #0a0a0a;
  scrollbar-width: thin; scrollbar-color: #222 transparent;
}
.vbm-tv-playlist::-webkit-scrollbar { width: 3px; }
.vbm-tv-playlist::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

.vbm-tv-pl-item {
  display: grid; grid-template-columns: 24px 96px 1fr;
  gap: 0 8px; align-items: center;
  padding: 8px 10px; cursor: pointer;
  border-bottom: 1px solid #141414;
  transition: background .12s;
}
.vbm-tv-pl-item:last-child { border-bottom: none; }
.vbm-tv-pl-item:hover { background: #141414; }
.vbm-tv-pl-item.active { background: #1a1a0a; border-left: 3px solid #ff3d3d; padding-left: 7px; }

.vbm-tv-pl-num { font-size: 10px; color: #444; text-align: center; }
.vbm-tv-pl-item.active .vbm-tv-pl-num { color: #ff3d3d; font-weight: 700; }

.vbm-tv-pl-thumb {
  position: relative; width: 96px; height: 54px;
  border-radius: 3px; overflow: hidden; background: #111; flex-shrink: 0;
}
.vbm-tv-pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vbm-tv-pl-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0); background: rgba(0,0,0,0); transition: all .12s;
}
.vbm-tv-pl-item:hover .vbm-tv-pl-play,
.vbm-tv-pl-item.active .vbm-tv-pl-play { color: rgba(255,255,255,.9); background: rgba(0,0,0,.5); }

.vbm-tv-pl-info { min-width: 0; }
.vbm-tv-pl-title {
  font-size: 11px; font-weight: 500; color: #bbb; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 3px;
}
.vbm-tv-pl-item.active .vbm-tv-pl-title { color: #fff; }
.vbm-tv-pl-date { font-size: 9px; color: #444; }

@media (max-width: 700px) {
  .vbm-tv-layout { grid-template-columns: 1fr; }
  .vbm-tv-playlist { border-left: none; border-top: 1px solid #1e1e1e; max-height: 260px; }
  .vbm-tv-pl-item { grid-template-columns: 20px 80px 1fr; }
  .vbm-tv-pl-thumb { width: 80px; height: 45px; }
}


/* Text-only list */
.vbm-tv-list {
  border-left: 1px solid #1e1e1e;
  overflow-y: auto; background: #0a0a0a;
  scrollbar-width: thin; scrollbar-color: #222 transparent;
  display: flex; flex-direction: column;
}
.vbm-tv-list::-webkit-scrollbar { width: 3px; }
.vbm-tv-list::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }
.vbm-tv-list-head {
  padding: 10px 14px; font-size: 10px; font-weight: 700;
  color: #555; text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 1px solid #1a1a1a; flex-shrink: 0;
}
.vbm-tv-list-item {
  display: grid; grid-template-columns: 24px 1fr auto;
  gap: 0 8px; align-items: center;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #111;
  transition: background .12s;
}
.vbm-tv-list-item:last-child { border-bottom: none; }
.vbm-tv-list-item:hover { background: #141414; }
.vbm-tv-list-item.active { background: #1a0f0f; border-left: 3px solid #ff3d3d; padding-left: 11px; }
.vbm-tv-list-num { font-size: 10px; color: #444; text-align: right; }
.vbm-tv-list-item.active .vbm-tv-list-num { color: #ff3d3d; font-weight: 700; }
.vbm-tv-list-title {
  font-size: 12px; font-weight: 500; color: #bbb; line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.vbm-tv-list-item.active .vbm-tv-list-title { color: #fff; }
.vbm-tv-list-date { font-size: 10px; color: #444; white-space: nowrap; }

@media (max-width: 768px) {
  .vbm-tv-wrap { grid-template-columns: 1fr; max-width: 100%; }
  .vbm-tv-list { border-left: none; border-top: 1px solid #1e1e1e; max-height: 240px; }
}

/* ══════════════════════════════════════════════════════════
   LIVE STREAMS — hero style
══════════════════════════════════════════════════════════ */
.vbm-live-hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
}
.vbm-live-main { display: flex; flex-direction: column; }
.vbm-live-screen {
  position: relative; padding-bottom: 56.25%;
  background: #000; overflow: hidden; flex-shrink: 0;
}
.vbm-live-poster {
  position: absolute; inset: 0; cursor: pointer; overflow: hidden;
}
.vbm-live-poster img { width:100%; height:100%; object-fit:cover; display:block; filter:brightness(.7); }
.vbm-live-poster-over {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(0,0,0,.3); transition: background .2s;
}
.vbm-live-poster:hover .vbm-live-poster-over { background: rgba(0,0,0,.5); }
.vbm-live-badge-big {
  display: flex; align-items: center;
  background: rgba(255,61,61,.2); border: 1px solid rgba(255,61,61,.5);
  color: #ff3d3d; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .8px;
}
.vbm-live-poster-btn {
  width: 64px; height: 64px; background: rgba(255,61,61,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; padding-left: 4px;
  box-shadow: 0 4px 20px rgba(255,61,61,.5);
  transition: transform .15s; cursor: pointer;
}
.vbm-live-poster-btn:hover { transform: scale(1.1); }
.vbm-live-poster-name { font-size: 13px; color: #eee; font-weight: 600; }
.vbm-live-info-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #0d0d0d; border-top: 1px solid #1e1e1e;
  gap: 12px; min-height: 58px;
}
.vbm-live-now-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.vbm-live-now-sub  { font-size: 11px; color: #555; }
.vbm-live-more-btn {
  white-space: nowrap; font-size: 11px; font-weight: 600;
  color: #ff3d3d; text-decoration: none; flex-shrink: 0;
  padding: 7px 14px; border: 1px solid rgba(255,61,61,.3);
  border-radius: 6px; transition: background .15s;
}
.vbm-live-more-btn:hover { background: rgba(255,61,61,.1); }
/* Channel list */
.vbm-live-channels {
  border-left: 1px solid #1e1e1e; overflow-y: auto;
  background: #0a0a0a;
  scrollbar-width: thin; scrollbar-color: #222 transparent;
}
.vbm-live-ch-head {
  padding: 10px 14px; font-size: 10px; font-weight: 700;
  color: #555; text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 1px solid #1a1a1a;
}
.vbm-live-ch-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid #111; transition: background .12s;
}
.vbm-live-ch-item:last-child { border-bottom: none; }
.vbm-live-ch-item:hover  { background: #141414; }
.vbm-live-ch-item.active { background: #1a0808; border-left: 3px solid #ff3d3d; padding-left: 11px; }
.vbm-live-ch-name { font-size: 13px; font-weight: 600; color: #ddd; margin-bottom: 3px; }
.vbm-live-ch-sub  { font-size: 10px; color: #555; }
.vbm-live-ch-badge {
  font-size: 9px; font-weight: 700; color: #ff3d3d;
  background: rgba(255,61,61,.12); border: 1px solid rgba(255,61,61,.3);
  padding: 2px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   VBESTMEDIA AI TV — hero style
══════════════════════════════════════════════════════════ */
.vbm-tv-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  max-width: 800px;
}
.vbm-tv-main { display: flex; flex-direction: column; }
.vbm-tv-screen {
  position: relative; padding-bottom: 56.25%;
  background: #000; overflow: hidden; flex-shrink: 0;
}
.vbm-tv-poster {
  position: absolute; inset: 0; cursor: pointer;
  background-size: cover; background-position: center;
}
.vbm-tv-poster-over {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(0,0,0,.4); transition: background .2s;
}
.vbm-tv-poster:hover .vbm-tv-poster-over { background: rgba(0,0,0,.6); }
.vbm-tv-poster-btn {
  width: 48px; height: 48px; background: rgba(255,61,61,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; padding-left: 3px;
  box-shadow: 0 4px 16px rgba(255,61,61,.4);
  transition: transform .15s; cursor: pointer;
}
.vbm-tv-poster-btn:hover { transform: scale(1.1); }
.vbm-tv-poster-name {
  font-size: 12px; color: #ddd; font-weight: 600;
  max-width: 80%; text-align: center; line-height: 1.4;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.vbm-tv-info-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #0d0d0d;
  border-top: 1px solid #1e1e1e; min-height: 44px;
}
.vbm-tv-np-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #333; flex-shrink: 0; transition: background .3s;
}
.vbm-tv-np-dot.on { background: #ff3d3d; animation: livepulse 1.4s ease-in-out infinite; }
.vbm-tv-np-text  { flex: 1; font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbm-tv-np-count { font-size: 11px; color: #444; white-space: nowrap; flex-shrink: 0; }
/* AI TV side list */
.vbm-tv-side {
  border-left: 1px solid #1e1e1e; overflow-y: auto;
  background: #0a0a0a;
  scrollbar-width: thin; scrollbar-color: #222 transparent;
  display: flex; flex-direction: column;
}
.vbm-tv-side::-webkit-scrollbar { width: 3px; }
.vbm-tv-side::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }
.vbm-tv-side-head {
  padding: 10px 14px; font-size: 10px; font-weight: 700;
  color: #555; text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 1px solid #1a1a1a; flex-shrink: 0;
}
.vbm-tv-side-item {
  display: grid; grid-template-columns: 20px 1fr auto;
  gap: 0 6px; align-items: start;
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid #111; transition: background .12s;
}
.vbm-tv-side-item:last-child { border-bottom: none; }
.vbm-tv-side-item:hover  { background: #141414; }
.vbm-tv-side-item.active { background: #1a0f0f; border-left: 3px solid #ff3d3d; padding-left: 11px; }
.vbm-tv-side-num { font-size: 10px; color: #444; padding-top: 1px; }
.vbm-tv-side-item.active .vbm-tv-side-num { color: #ff3d3d; font-weight: 700; }
.vbm-tv-side-title {
  font-size: 12px; font-weight: 500; color: #bbb; line-height: 1.4;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.vbm-tv-side-item.active .vbm-tv-side-title { color: #fff; }
.vbm-tv-side-date { font-size: 10px; color: #444; white-space: nowrap; padding-top: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .vbm-live-hero, .vbm-tv-hero { grid-template-columns: 1fr; }
  .vbm-live-channels, .vbm-tv-side { border-left: none; border-top: 1px solid #1e1e1e; max-height: 240px; }
}
