/*
Theme Name: abctheme
Theme URI: https://example.com/abctheme
Author: Custom Build
Description: A custom self-hosted video tube WordPress theme with trending, latest, and 24-hour most-viewed sections, plus browsing by actor, country, tag and category.
Version: 3.6.0
License: GNU General Public License v2 or later
Text Domain: abctheme
*/

:root {
  --vt-bg: #1a1d2e;
  --vt-bg-2: #1e2235;
  --vt-card: #272c44;
  --vt-line: #383e5c;
  --vt-text: #eef0f8;
  --vt-muted: #9aa0c0;
  --vt-accent: #ff3d68;
  --vt-accent-2: #38e0c8;
  --vt-radius: 14px;
  --vt-shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--vt-bg);
  color: var(--vt-text);
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.vt-container { max-width: 1320px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.vt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26,29,46,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vt-line);
}
.vt-header-inner {
  display: flex; align-items: center; gap: 22px;
  height: 68px;
}
.vt-logo {
  font-family: "Clash Display", "Outfit", sans-serif;
  font-weight: 700; font-size: 24px; letter-spacing: -.5px;
  white-space: nowrap;
}
.vt-logo span { color: var(--vt-accent); }
.vt-nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; align-items: center; }
.vt-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.vt-nav li { list-style: none; }
.vt-footer-links ul { display: contents; list-style: none; margin: 0; padding: 0; }
.vt-footer-links li { list-style: none; }
.vt-nav a { color: var(--vt-muted); transition: color .15s; }
.vt-nav a:hover { color: var(--vt-text); }

.vt-search { margin-left: auto; flex: 0 1 360px; display: flex; }
.vt-search input {
  flex: 1; background: var(--vt-bg-2); border: 1px solid var(--vt-line);
  color: var(--vt-text); padding: 10px 14px; border-radius: 999px 0 0 999px;
  font-size: 14px; outline: none;
}
.vt-search button {
  background: var(--vt-accent); border: 0; color: #fff; cursor: pointer;
  padding: 0 18px; border-radius: 0 999px 999px 0; font-weight: 600;
}

/* ---------- Section heads ---------- */
.vt-section { margin: 42px 0; }
.vt-section-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.vt-section-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--vt-accent); color: #fff;
  border-radius: 8px; font-size: 16px;
}
.vt-section-head h2 {
  font-family: "Clash Display", "Outfit", sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -.3px;
}
.vt-tag-pill {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 10px; border-radius: 999px;
}
.vt-pill-trend { background: rgba(255,61,104,.15); color: var(--vt-accent); }
.vt-pill-24h { background: rgba(56,224,200,.13); color: var(--vt-accent-2); }
.vt-section-head .vt-more {
  margin-left: auto;
  background: var(--vt-accent); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px;
  transition: transform .15s, opacity .15s;
}
.vt-section-head .vt-more:hover {
  color: #fff; transform: translateY(-2px); opacity: .92;
}

/* ---------- Video grid ---------- */
.vt-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.vt-card {
  display: flex; flex-direction: column;
  background: var(--vt-card); border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius); overflow: hidden;
  transition: transform .18s, border-color .18s;
}
.vt-card:hover { transform: translateY(-4px); border-color: var(--vt-accent); }
.vt-thumb { display: block; position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0; transition: opacity .18s;
}
.vt-play-overlay i {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vt-accent); color: #fff;
  border-radius: 50%; font-size: 24px;
  box-shadow: 0 4px 14px rgba(255,61,104,.5);
}
.vt-card:hover .vt-play-overlay { opacity: 1; }
.vt-duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.82); font-size: 12px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px;
}
.vt-card-body {
  display: block; padding: 12px 14px 16px;
  background: var(--vt-card);
}
.vt-card-title {
  display: block; color: var(--vt-text);
  font-size: 14px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-card-body a { text-decoration: none; }
.vt-card-meta {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--vt-muted);
}
.vt-card-meta span { display: block; color: var(--vt-muted); }
.vt-card-meta a:hover { color: var(--vt-accent-2); }

/* ---------- Browse strips ---------- */
.vt-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.vt-chip {
  background: var(--vt-bg-2); border: 1px solid var(--vt-line);
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  color: var(--vt-muted); transition: all .15s;
}
.vt-chip:hover { color: #fff; border-color: var(--vt-accent); background: var(--vt-card); }

/* ---------- Single video ---------- */
.vt-player { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--vt-radius); }
.vt-video, .fluid_video_wrapper {
  border-radius: var(--vt-radius);
  max-height: 70vh;
}
.fluid_video_wrapper { margin: 0 auto; }
.vt-single-title {
  font-family: "Clash Display","Outfit",sans-serif;
  font-size: 26px; font-weight: 600; margin: 18px 0 10px;
}
.vt-single-meta { display: flex; gap: 16px; color: var(--vt-muted); font-size: 14px; flex-wrap: wrap; }
.vt-single-tax { margin: 18px 0; }
.vt-single-tax strong { color: var(--vt-muted); font-size: 13px; margin-right: 6px; }

/* ---------- Single-page taxonomy chips ---------- */
.vt-tax-row {
  display: flex; align-items: flex-start; gap: 12px; margin: 12px 0;
}
.vt-tax-label {
  flex: 0 0 64px; font-size: 11px; color: var(--vt-muted);
  text-transform: uppercase; letter-spacing: .6px; padding-top: 7px;
}
.vt-tax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-tchip {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.vt-tchip i { font-size: 13px; }
.vt-tchip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.vt-tchip-actor    { background: linear-gradient(135deg,#ff3d68,#c92a4f); }
.vt-tchip-country  { background: linear-gradient(135deg,#1d9e75,#0f6e56); }
.vt-tchip-category { background: linear-gradient(135deg,#378add,#185fa5); }
.vt-tchip-tag      { background: linear-gradient(135deg,#ef9f27,#ba7517); }

/* ---------- Download button ---------- */
.vt-download-btn {
  display: inline-block;
  background: var(--vt-accent); color: #fff;
  font-weight: 600; font-size: 15px;
  padding: 12px 26px; border-radius: 999px;
  transition: transform .15s, opacity .15s;
}
.vt-download-btn:hover { transform: translateY(-2px); opacity: .92; }

/* ---------- Action bar (share / embed / download / dmca) ---------- */
.vt-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0;
}
.vt-act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vt-card); border: 1px solid var(--vt-line);
  color: var(--vt-text); font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.vt-act-btn:hover { border-color: var(--vt-accent); }
.vt-act-btn i { font-size: 15px; }
.vt-act-dmca { color: var(--vt-muted); background: transparent; }

.vt-act-panel {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--vt-card); border: 1px solid var(--vt-line);
  border-radius: 10px; padding: 12px; margin: 0 0 14px;
}
.vt-soc {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.vt-soc-x  { background: #1d9bf0; }
.vt-soc-tg { background: #229ed9; }
.vt-soc-wa { background: #25d366; }
.vt-soc-rd { background: #ff4500; }
.vt-soc:hover { opacity: .88; }

.vt-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vt-accent); color: #fff; border: 0;
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.vt-copy-btn:hover { opacity: .92; }
.vt-embed-field {
  flex: 1; min-width: 180px;
  background: var(--vt-bg); border: 1px solid var(--vt-line);
  color: var(--vt-muted); font-family: monospace; font-size: 12px;
  padding: 9px 11px; border-radius: 7px; outline: none;
}

/* ---------- Up Next (list style) ---------- */
.vt-upnext {
  background: #f4f3ef; border-radius: var(--vt-radius);
  padding: 16px; margin: 32px 0;
}
.vt-upnext-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.vt-upnext-head i {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vt-accent); color: #fff;
  border-radius: 6px; font-size: 13px;
}
.vt-upnext-head span {
  font-size: 16px; font-weight: 600; color: #1a1c24;
}
.vt-upnext-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.vt-upnext-item {
  display: flex; gap: 10px;
  background: #fff; border: 1px solid #ececec;
  border-radius: 10px;
  padding: 8px; margin: 0;
  transition: transform .15s, border-color .15s;
}
.vt-upnext-item:hover { transform: translateX(3px); border-color: var(--vt-accent); }
.vt-upnext-thumb {
  position: relative; flex-shrink: 0;
  width: 120px; aspect-ratio: 16/9;
  border-radius: 7px; overflow: hidden; background: #000;
}
.vt-upnext-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-upnext-info { min-width: 0; display: flex; flex-direction: column; }
.vt-upnext-title {
  font-size: 14px; font-weight: 600; color: #1a1c24; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.vt-upnext-meta { font-size: 12px; color: #8b8a82; margin-top: 4px; }

/* ---------- Static page content ---------- */
.vt-page-content {
  color: var(--vt-text); line-height: 1.7; font-size: 15px;
  max-width: 760px;
}
.vt-page-content p { margin: 0 0 16px; }
.vt-page-content h1,
.vt-page-content h2,
.vt-page-content h3 {
  color: var(--vt-text); margin: 28px 0 12px; line-height: 1.3;
}
.vt-page-content a { color: var(--vt-accent-2); text-decoration: underline; }
.vt-page-content ul,
.vt-page-content ol { margin: 0 0 16px; padding-left: 22px; }
.vt-page-content li { margin: 6px 0; }
.vt-page-content img { max-width: 100%; height: auto; border-radius: var(--vt-radius); }
.vt-page-content blockquote {
  border-left: 3px solid var(--vt-accent);
  margin: 16px 0; padding: 6px 16px; color: var(--vt-muted);
}

/* ---------- Footer ---------- */
.vt-footer {
  border-top: 1px solid var(--vt-line); margin-top: 60px;
  padding: 36px 0 28px; color: var(--vt-muted); font-size: 13px;
}
.vt-footer-cols {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.vt-footer-about { flex: 1; min-width: 200px; }
.vt-footer .vt-logo { font-size: 20px; }
.vt-footer-desc {
  margin-top: 8px; font-size: 12px;
  color: var(--vt-muted); line-height: 1.6; max-width: 320px;
}
.vt-footer-col { min-width: 140px; }
.vt-footer-col h4 {
  font-size: 12px; font-weight: 600; color: var(--vt-text);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px;
}
.vt-footer-links { display: flex; flex-direction: column; gap: 7px; }
.vt-footer-links a {
  font-size: 12px; color: var(--vt-muted); text-align: center;
  background: var(--vt-card); border: 1px solid var(--vt-line);
  padding: 7px 14px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.vt-footer-links a:hover {
  background: var(--vt-accent); color: #fff;
  border-color: var(--vt-accent);
}
.vt-footer-bottom {
  border-top: 1px solid var(--vt-line);
  margin-top: 24px; padding-top: 16px;
  font-size: 12px; color: var(--vt-muted);
}

/* ---------- Pagination ---------- */
.vt-pagination {
  display: flex; gap: 6px; margin: 32px 0 12px;
  justify-content: center; flex-wrap: wrap;
}
.vt-pagination .page-numbers {
  background: var(--vt-card); border: 1px solid var(--vt-line);
  color: var(--vt-text);
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
  transition: border-color .15s;
}
.vt-pagination a.page-numbers:hover { border-color: var(--vt-accent); }
.vt-pagination .current {
  background: var(--vt-accent); border-color: var(--vt-accent); color: #fff;
  font-weight: 600;
}
.vt-pagination .dots { border: 0; background: transparent; }

.vt-page-jump {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin: 0 0 32px; font-size: 13px; color: var(--vt-muted);
}
.vt-page-jump input {
  width: 64px; text-align: center;
  background: var(--vt-card); border: 1px solid var(--vt-line);
  color: var(--vt-text); font-size: 13px;
  padding: 8px 8px; border-radius: 8px; outline: none;
}
.vt-page-jump button {
  background: var(--vt-accent); color: #fff; border: 0;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
}
.vt-page-jump button:hover { opacity: .92; }

/* ---------- Category dropdown ---------- */
.vt-dropdown { position: relative; }
.vt-dropdown-toggle {
  background: none; border: 0; cursor: pointer;
  color: var(--vt-muted); font: inherit; font-weight: 500; font-size: 14px;
  display: flex; align-items: center; gap: 5px; padding: 0;
  transition: color .15s;
}
.vt-dropdown-toggle:hover,
.vt-dropdown.is-open .vt-dropdown-toggle { color: var(--vt-text); }
.vt-caret { font-size: 10px; transition: transform .15s; }
.vt-dropdown.is-open .vt-caret { transform: rotate(180deg); }

.vt-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0;
  min-width: 240px; max-height: 60vh; overflow-y: auto;
  background: var(--vt-bg-2); border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius); box-shadow: var(--vt-shadow);
  padding: 8px; display: none;
  grid-template-columns: 1fr 1fr; gap: 2px; z-index: 60;
}
/* Open on hover (desktop) or when JS adds .is-open (click / mobile). */
.vt-dropdown:hover .vt-dropdown-menu,
.vt-dropdown.is-open .vt-dropdown-menu { display: grid; }

.vt-dropdown-menu a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 8px 11px; border-radius: 8px;
  font-size: 13px; color: var(--vt-muted); transition: all .12s;
}
.vt-dropdown-menu a:hover { background: var(--vt-card); color: var(--vt-text); }
.vt-dd-count { font-size: 11px; opacity: .5; }
.vt-dropdown-menu a.vt-dd-all {
  grid-column: 1 / -1; justify-content: center;
  color: var(--vt-accent); font-weight: 600;
  border-bottom: 1px solid var(--vt-line);
  border-radius: 0; margin-bottom: 4px;
}
.vt-dropdown-menu a.vt-dd-all:hover { background: var(--vt-card); }

/* ---------- Hamburger (mobile only) ---------- */
.vt-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px; padding: 8px;
  flex-direction: column; justify-content: space-between;
}
.vt-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--vt-text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.vt-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.vt-burger.is-open span:nth-child(2) { opacity: 0; }
.vt-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  /* Header becomes two rows: [logo + burger] then [search]. */
  .vt-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px; padding-bottom: 10px;
    gap: 10px;
  }
  .vt-logo { margin-right: auto; }
  .vt-burger { display: flex; }

  /* Nav hidden by default; opens as a white panel. */
  .vt-nav {
    display: none;
    order: 3; flex-basis: 100%;
    flex-direction: column; gap: 0;
    margin-top: 6px;
    background: #ffffff;
    border-radius: 10px;
    padding: 6px;
  }
  .vt-nav.is-open { display: flex; }
  .vt-nav a {
    padding: 11px 10px;
    border-bottom: 1px solid #ececec;
    font-size: 15px; font-weight: 500;
    color: #1a1c24;
  }
  .vt-nav a:last-child { border-bottom: 0; }
  .vt-nav a:hover { color: var(--vt-accent); }
  /* The category dropdown sits inline inside the open menu. */
  .vt-nav .vt-dropdown { width: 100%; }
  .vt-nav .vt-dropdown-toggle {
    padding: 11px 10px; width: 100%;
    color: #1a1c24; font-weight: 500;
  }
  .vt-nav .vt-dropdown-menu {
    position: static; width: 100%; min-width: 0;
    box-shadow: none; max-height: 280px;
    background: #f4f3ef;
  }
  .vt-nav .vt-dropdown-menu a { color: #1a1c24; border-bottom: 0; }
  .vt-nav .vt-dropdown-menu a:hover { background: #e8e6e0; }

  /* Search drops to its own full-width centered row. */
  .vt-search {
    order: 2; flex-basis: 100%;
    margin-left: 0; max-width: 100%;
  }

  .vt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
