/* =========================================================
   ViserTube - Main Stylesheet
   ========================================================= */
:root {
  --vt-primary: #FF3B3B;
  --vt-bg: #0f0f0f;
  --vt-surface: #181818;
  --vt-surface-2: #212121;
  --vt-text: #f1f1f1;
  --vt-text-muted: #aaaaaa;
  --vt-border: #303030;
}

* { box-sizing: border-box; }

body {
  background: var(--vt-bg);
  color: var(--vt-text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--vt-primary); }

/* ---------- Navbar ---------- */
.vt-navbar {
  background: var(--vt-surface);
  border-bottom: 1px solid var(--vt-border);
  padding: 0.5rem 1rem;
  z-index: 1030;
}
.vt-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.3rem; color: var(--vt-text); }
.vt-brand img { height: 32px; }
.vt-search-form { flex: 0 1 550px; display: flex; margin: 0 2rem; }
.vt-search-form input {
  background: var(--vt-bg); border: 1px solid var(--vt-border); color: var(--vt-text);
  border-radius: 20px 0 0 20px;
}
.vt-search-form button {
  background: var(--vt-surface-2); border: 1px solid var(--vt-border); border-left: none;
  color: var(--vt-text); border-radius: 0 20px 20px 0; padding: 0 18px;
}
.vt-nav-actions { gap: 8px; }
.btn-icon {
  background: transparent; border: none; color: var(--vt-text); font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--vt-surface-2); color: var(--vt-text); }
.vt-avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.vt-badge {
  position: absolute; top: 2px; right: 2px; background: var(--vt-primary); color: #fff;
  font-size: 0.65rem; border-radius: 10px; padding: 1px 5px; font-weight: 700;
}
.vt-btn-outline { border: 1px solid #3ea6ff; color: #3ea6ff; border-radius: 20px; padding: 6px 14px; background: transparent; }
.vt-btn-outline:hover { background: rgba(62,166,255,0.1); color: #3ea6ff; }

/* ---------- Layout ---------- */
.vt-layout { display: flex; min-height: calc(100vh - 130px); }
.vt-sidebar {
  width: 240px; flex-shrink: 0; background: var(--vt-surface); border-right: 1px solid var(--vt-border);
  padding: 12px 0; position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto;
}
.vt-sidebar .nav { padding: 0 8px; }
.vt-sidebar a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; color: var(--vt-text); font-size: 0.92rem; }
.vt-sidebar a:hover, .vt-sidebar a.active { background: var(--vt-surface-2); color: var(--vt-primary); }
.vt-sidebar .vt-sep { border-color: var(--vt-border); margin: 8px 0; }
.vt-main { flex: 1; padding: 20px; min-width: 0; }

@media (max-width: 991px) {
  .vt-sidebar { position: fixed; left: -260px; top: 61px; z-index: 1020; transition: left .2s; background: var(--vt-surface); }
  .vt-sidebar.open { left: 0; }
  .vt-search-form { display: none !important; }
}

/* ---------- Video Grid ---------- */
.vt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.vt-card { cursor: pointer; }
.vt-thumb-wrap { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.vt-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vt-duration {
  position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.8); color: #fff;
  font-size: 0.75rem; padding: 2px 5px; border-radius: 4px;
}
.vt-card-body { display: flex; gap: 10px; margin-top: 10px; }
.vt-card-body img.vt-ch-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vt-card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.vt-card-meta { font-size: 0.82rem; color: var(--vt-text-muted); margin: 0; }

/* ---------- Video Watch Page ---------- */
.vt-player-wrap { background: #000; border-radius: 12px; overflow: hidden; }
.vt-player-wrap video { width: 100%; max-height: 75vh; display: block; }
.vt-video-controls-extra { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 0; }
.vt-video-controls-extra select { background: var(--vt-surface-2); color: var(--vt-text); border: 1px solid var(--vt-border); border-radius: 6px; padding: 4px 8px; }
.vt-channel-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.vt-channel-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.vt-subscribe-btn { background: var(--vt-primary); color: #fff; border: none; border-radius: 20px; padding: 8px 18px; font-weight: 600; }
.vt-subscribe-btn.subscribed { background: var(--vt-surface-2); color: var(--vt-text); }
.vt-action-pill { background: var(--vt-surface-2); border: none; color: var(--vt-text); border-radius: 20px; padding: 8px 16px; }
.vt-action-pill.active { color: var(--vt-primary); }
.vt-comment { display: flex; gap: 12px; margin-bottom: 18px; }
.vt-comment img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

/* ---------- Cards / panels ---------- */
.vt-panel { background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 12px; padding: 20px; }
.vt-stat-card { background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 12px; padding: 18px; text-align:center; }
.vt-stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--vt-primary); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--vt-surface-2); border: 1px solid var(--vt-border); color: var(--vt-text);
}
.form-control:focus, .form-select:focus { background: var(--vt-surface-2); color: var(--vt-text); border-color: var(--vt-primary); box-shadow: 0 0 0 .2rem rgba(255,59,59,.2); }
.btn-primary { background: var(--vt-primary); border-color: var(--vt-primary); }
.btn-primary:hover { background: #d92e2e; border-color: #d92e2e; }

.vt-auth-card { max-width: 420px; margin: 60px auto; }

/* ---------- Footer ---------- */
.vt-footer { background: var(--vt-surface); border-top: 1px solid var(--vt-border); color: var(--vt-text-muted); font-size: .85rem; }
.vt-footer a { color: var(--vt-text-muted); }

/* ---------- Ads ---------- */
.vt-ad-banner { background: var(--vt-surface); border-bottom: 1px solid var(--vt-border); }
.vt-ad-img { max-height: 90px; border-radius: 8px; }
.vt-ad-sidebar { border: 1px dashed var(--vt-border); border-radius: 10px; padding: 10px; text-align: center; margin-bottom: 16px; }

/* ---------- Misc ---------- */
.vt-table { color: var(--vt-text); }
.vt-table th { color: var(--vt-text-muted); font-weight: 600; }
.table-dark-custom { --bs-table-bg: var(--vt-surface); --bs-table-color: var(--vt-text); border-color: var(--vt-border); }
.badge-status-published { background: #1e7e34; }
.badge-status-pending { background: #b58105; }
.badge-status-processing { background: #555; }
.badge-status-rejected { background: #a11d1d; }
.vt-empty-state { text-align: center; padding: 60px 20px; color: var(--vt-text-muted); }
.vt-empty-state i { font-size: 3rem; margin-bottom: 12px; opacity: .5; }

/* =========================================================
   Age verification gate
   ========================================================= */
body.vt-age-gate-open { overflow: hidden; }
.vt-age-gate {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vt-age-gate-box {
  background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 14px;
  padding: 32px; max-width: 420px; text-align: center;
}

/* =========================================================
   Light theme override (toggled via [data-bs-theme="light"] on <html>)
   ========================================================= */
[data-bs-theme="light"] {
  --vt-bg: #f7f7f8;
  --vt-surface: #ffffff;
  --vt-surface-2: #eef0f2;
  --vt-text: #16181c;
  --vt-text-muted: #5b6169;
  --vt-border: #e2e4e8;
}
[data-bs-theme="light"] .btn-close { filter: none; }
[data-bs-theme="light"] .modal-content.bg-dark { background: var(--vt-surface) !important; color: var(--vt-text) !important; }
[data-bs-theme="light"] .vt-duration { background: rgba(0,0,0,0.75); }
[data-bs-theme="light"] .navbar-dark .navbar-toggler-icon,
[data-bs-theme="light"] .vt-navbar .btn-icon i { color: var(--vt-text); }
[data-bs-theme="light"] ::placeholder { color: #8a8f98; opacity: 1; }

/* =========================================================
   Search autocomplete / tag suggestions
   ========================================================= */
.vt-search-suggestions {
  position: absolute; top: 100%; left: 0; right: 40px; background: var(--vt-surface-2);
  border: 1px solid var(--vt-border); border-radius: 0 0 10px 10px; z-index: 1040;
  max-height: 260px; overflow-y: auto;
}
.vt-search-suggestions .vt-suggestion-item { padding: 8px 14px; cursor: pointer; font-size: .9rem; }
.vt-search-suggestions .vt-suggestion-item:hover, .vt-search-suggestions .vt-suggestion-item.active { background: var(--vt-surface); color: var(--vt-primary); }

/* =========================================================
   Mobile sidebar backdrop (tap outside to close)
   ========================================================= */
.vt-sidebar-backdrop { display: none; }
@media (max-width: 991px) {
  .vt-sidebar-backdrop.show {
    display: block; position: fixed; inset: 61px 0 0 0; background: rgba(0,0,0,.5); z-index: 1015;
  }
}

/* =========================================================
   Video card hover-preview (muted clip swapped in on mouseenter)
   ========================================================= */
.vt-thumb-wrap video.vt-hover-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.vt-thumb-wrap:hover video.vt-hover-preview.ready { opacity: 1; }

/* =========================================================
   Shorts grid
   ========================================================= */
.vt-shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.vt-shorts-card .vt-thumb-wrap { aspect-ratio: 9/16; border-radius: 14px; }

/* =========================================================
   Blog
   ========================================================= */
.vt-blog-card { background: var(--vt-surface); border: 1px solid var(--vt-border); border-radius: 12px; overflow: hidden; }
.vt-blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vt-blog-card .body { padding: 16px; }
.vt-blog-content { line-height: 1.7; }
.vt-blog-content img { max-width: 100%; border-radius: 8px; }

/* =========================================================
   Responsive refinements
   ========================================================= */
@media (max-width: 767px) {
  .vt-main { padding: 12px; }
  .vt-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vt-card-title { font-size: .82rem; }
  .vt-card-meta { font-size: .72rem; }
  .vt-video-controls-extra { gap: 6px; }
  .vt-video-controls-extra select { font-size: .8rem; padding: 3px 6px; }
  .vt-channel-row { flex-wrap: wrap; }
  .vt-panel { padding: 14px; }
  .vt-navbar .vt-brand span { display: none; }
}
@media (max-width: 480px) {
  .vt-grid { grid-template-columns: 1fr; }
  .vt-shorts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Video cards without channel avatar (title, duration, date only)
   ========================================================= */
.vt-card-body-no-avatar {
  display: block;
  margin-top: 8px;
  gap: 0;
}
.vt-card-body-no-avatar .vt-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vt-ch-avatar { display: none !important; } /* global hide on cards as requested */

/* =========================================================
   Mobile-first UI improvements (dedicated mobile experience)
   ========================================================= */
@media (max-width: 991px) {
  /* Show a compact mobile search bar under the navbar */
  .vt-mobile-search {
    display: flex !important;
    padding: 8px 12px;
    background: var(--vt-surface);
    border-bottom: 1px solid var(--vt-border);
    position: sticky;
    top: 56px;
    z-index: 1020;
  }
  .vt-mobile-search form {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
  }
  .vt-mobile-search input {
    flex: 1;
    background: var(--vt-bg);
    border: 1px solid var(--vt-border);
    color: var(--vt-text);
    border-radius: 20px 0 0 20px;
    padding: 8px 14px;
    font-size: 16px; /* prevents iOS zoom */
  }
  .vt-mobile-search button {
    background: var(--vt-surface-2);
    border: 1px solid var(--vt-border);
    border-left: none;
    color: var(--vt-text);
    border-radius: 0 20px 20px 0;
    padding: 0 16px;
  }
  .vt-mobile-search .vt-search-suggestions {
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 1050;
  }
  .vt-navbar { padding: 0.4rem 0.75rem; }
  .vt-layout { flex-direction: column; }
  .vt-main { width: 100%; padding: 10px; }
}

@media (min-width: 992px) {
  .vt-mobile-search { display: none !important; }
}

/* Touch-friendly cards on mobile */
@media (max-width: 767px) {
  .vt-card { -webkit-tap-highlight-color: transparent; }
  .vt-thumb-wrap { border-radius: 10px; }
  .vt-card-body-no-avatar .vt-card-title { font-size: 0.88rem; }
  /* Single column feel option when admin sets 1-2; keep 2 for tablets */
}

/* Reduce layout shift: reserve aspect ratio space */
.vt-thumb-wrap img {
  aspect-ratio: 16/9;
  background: #111;
}

/* =========================================================
   Header width / logo size (admin-configurable via CSS vars)
   ========================================================= */
:root {
  --vt-header-logo-h: 32px;
  --vt-header-icon: 40px;
  --vt-nav-pad-y: 0.5rem;
}
.vt-navbar { padding-top: var(--vt-nav-pad-y); padding-bottom: var(--vt-nav-pad-y); }
.vt-brand img { height: var(--vt-header-logo-h); width: auto; }
.btn-icon { width: var(--vt-header-icon); height: var(--vt-header-icon); }

/* Mobile nav: keep sticky under header, not overlapping */
@media (max-width: 991px) {
  .vt-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
  .vt-mobile-search {
    top: auto;
    position: relative;
    z-index: 1020;
  }
  .vt-sidebar {
    top: 0;
    height: 100vh;
    z-index: 1040;
  }
  .vt-sidebar-backdrop.show {
    inset: 0;
    z-index: 1035;
  }
  /* Single-column friendlier cards */
  .vt-card-title { font-size: 0.9rem; line-height: 1.35; }
  .vt-card-meta { font-size: 0.75rem; }
  .vt-main { padding-top: 8px; }
}

/* Photo gallery grid */
.vt-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.vt-photo-grid a {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.vt-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.vt-photo-grid a:hover img { transform: scale(1.05); }

/* Lightbox */
.vt-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
}
.vt-lightbox.open { display: flex; }
.vt-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.vt-lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.vt-lightbox .lb-prev { left: 12px; }
.vt-lightbox .lb-next { right: 12px; }
.vt-lightbox .lb-close { position: absolute; top: 12px; right: 12px; background: transparent; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.vt-lightbox .lb-caption { color: #ddd; margin-top: 12px; text-align: center; max-width: 90vw; }

/* =========================================================
   World-class mobile layout fixes
   ========================================================= */
.vt-grid-home {
  display: grid;
  grid-template-columns: repeat(var(--vt-cols, 4), 1fr);
  gap: 16px;
}
.vt-grid-home .vt-thumb-wrap {
  aspect-ratio: 16/9;
  width: 100%;
}
.vt-grid-home .vt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
}

.vt-cat-chips {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.vt-cat-chips::-webkit-scrollbar { display: none; }

@media (max-width: 991px) {
  /* Header: menu | logo centered-ish | actions in one row */
  .vt-navbar .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px;
  }
  .vt-navbar .vt-brand {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    margin: 0 !important;
  }
  .vt-navbar .vt-brand span {
    display: inline !important;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vt-navbar .vt-nav-actions {
    flex-shrink: 0;
    gap: 4px !important;
  }
  .vt-navbar .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .vt-navbar .vt-btn-outline {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
  .vt-mobile-search {
    position: relative !important;
    top: auto !important;
  }
  .vt-grid-home {
    grid-template-columns: repeat(var(--vt-mcols, 2), 1fr) !important;
    gap: 10px;
  }
  .vt-card-title {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vt-card-meta { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .vt-grid-home {
    grid-template-columns: repeat(var(--vt-mcols, 2), 1fr) !important;
  }
  .vt-navbar .vt-brand span { max-width: 110px; }
}

/* Prevent video download UI where supported */
video::-internal-media-controls-download-button { display: none; }
video::-webkit-media-controls-enclosure { overflow: hidden; }

/* ========== Dedicated mobile header ========== */
.vt-mobile-header {
  background: var(--vt-mobile-header-bg, var(--vt-surface));
  border-bottom: 1px solid var(--vt-border);
  z-index: 100000;
  padding: 0;
}
.vt-m-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
  min-height: 52px;
}
.vt-m-top .vt-brand,
.vt-m-top .vt-brand-logo-only {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.vt-m-top .vt-brand-logo-only span { display: none !important; }
.vt-m-top .vt-brand img,
.vt-m-top .vt-brand-logo-only img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.vt-m-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 auto;
}
.vt-m-actions .btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vt-m-search {
  padding: 0 14px 12px;
}
.vt-m-search form {
  display: flex;
  width: 100%;
}
.vt-m-search input {
  flex: 1;
  background: var(--vt-bg);
  border: 1px solid var(--vt-border);
  color: var(--vt-text);
  border-radius: 22px 0 0 22px;
  padding: 10px 14px;
  font-size: 0.95rem;
}
.vt-m-search button {
  border: 1px solid var(--vt-border);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  background: var(--vt-primary);
  color: #fff;
  padding: 0 16px;
}

/* Sidebar above everything */
@media (max-width: 991px) {
  .vt-sidebar {
    position: fixed !important;
    left: -280px;
    top: 0 !important;
    height: 100vh !important;
    width: 260px;
    z-index: 1000000 !important;
    background: var(--vt-surface);
    transition: left .25s ease;
    overflow-y: auto;
    padding-top: 12px;
    box-shadow: 4px 0 24px rgba(0,0,0,.35);
  }
  .vt-sidebar.open { left: 0 !important; }
  .vt-sidebar-backdrop.show {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.55);
    z-index: 999999 !important;
  }
}

.vt-thumb-wrap { position: relative; }
.vt-badge-free, .vt-badge-premium {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
  line-height: 1.2;
}
.vt-badge-free { background: rgba(16,185,129,.92); color: #fff; }
.vt-badge-premium { background: rgba(245,158,11,.95); color: #111; }
.vt-premium-lock { border: 1px solid var(--vt-border); }
.vt-blog-content img { max-width: 100%; height: auto; border-radius: 8px; }
.vt-blog-content a { color: var(--vt-primary); text-decoration: underline; }

/* Card meta: views/date on the right */
.vt-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}
.vt-card-row .vt-card-title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0.15rem;
}
.vt-card-meta-right {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-left: auto;
}
.vt-photo-thumb {
  aspect-ratio: 1;
  background: #1a1a1a;
  overflow: hidden;
}
.vt-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile header: solid, logo left, icons same row, search below */
@media (max-width: 767.98px) {
  .vt-mobile-header {
    background: var(--vt-surface) !important;
    opacity: 1 !important;
    border-bottom: 1px solid var(--vt-border);
    padding: 0.4rem 0.75rem;
  }
  .vt-mobile-header .vt-m-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .vt-mobile-header .vt-brand {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }
  .vt-mobile-header .vt-brand img {
    height: 28px !important;
    width: auto;
  }
  .vt-mobile-header .vt-m-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
  }
  .vt-m-search {
    margin-top: 0.4rem;
    width: 100%;
  }
}

/* Seek buttons near player */
.vt-player-wrap { position: relative; }
.vt-player-seek {
  position: absolute; right: 48px; bottom: 48px; z-index: 5;
  display: flex; gap: 6px; opacity: 0.9;
}
.vt-player-seek .btn { background: rgba(0,0,0,.65); color: #fff; border: 0; }
@media (max-width: 767px) {
  .vt-player-seek { bottom: 56px; right: 8px; }
}

/* Player seek controls */
.vt-video-controls-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0 0.25rem;
}
.vt-seek-inline .btn {
  min-width: 3.2rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 8px !important;
}
.vt-ctrl-sep {
  width: 1px;
  height: 1.25rem;
  background: var(--vt-border);
  margin: 0 0.15rem;
}
.vt-player-wrap {
  position: relative;
  background: #000;
}
.vt-player-seek-overlay {
  position: absolute;
  left: 0; right: 0;
  bottom: 3.25rem;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 4.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.vt-player-wrap:hover .vt-player-seek-overlay,
.vt-player-wrap:focus-within .vt-player-seek-overlay,
.vt-player-wrap.is-seeking .vt-player-seek-overlay {
  opacity: 1;
}
.vt-seek-fab {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 3.4rem;
  height: 2.6rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.vt-seek-fab:hover { background: rgba(0,0,0,.75); }
.vt-seek-fab:active { transform: scale(0.96); }
/* Fullscreen: keep overlay visible */
.vt-player-wrap:fullscreen .vt-player-seek-overlay,
.vt-player-wrap:-webkit-full-screen .vt-player-seek-overlay {
  opacity: 1;
  bottom: 5rem;
  gap: 8rem;
}
.vt-player-wrap:fullscreen .vt-seek-fab,
.vt-player-wrap:-webkit-full-screen .vt-seek-fab {
  min-width: 4rem;
  height: 3rem;
  font-size: 1rem;
}

/* Explicit media sizing helps CLS */
.vt-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vt-brand img, .vt-brand-logo-only img { width: auto; height: var(--vt-header-logo-h, 32px); }

/* Sidebar: clean links, no underlines */
.vt-sidebar a,
.vt-sidebar a:link,
.vt-sidebar a:visited,
.vt-sidebar a:hover,
.vt-sidebar a:focus,
.vt-sidebar a:active {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.vt-sidebar a.active {
  background: var(--vt-surface-2);
  color: var(--vt-primary);
  font-weight: 600;
}

.modal-backdrop { background-color: #000 !important; }
.modal-backdrop.show { opacity: 0.55 !important; }
