/*
Theme Name: VeloTube
Theme URI: https://example.com/velotube
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: 1.0.0
License: GNU General Public License v2 or later
Text Domain: velotube
*/

: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; }
.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: 12px; margin-bottom: 18px;
}
.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; font-size: 13px; color: var(--vt-muted);
}
.vt-section-head .vt-more:hover { color: var(--vt-accent); }

/* ---------- Video grid ---------- */
.vt-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.vt-card {
  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 { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.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 { padding: 12px 14px 16px; }
.vt-card-title {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-card-meta {
  margin-top: 8px; font-size: 12px; color: var(--vt-muted);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.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-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; }

/* ---------- Footer ---------- */
.vt-footer {
  border-top: 1px solid var(--vt-line); margin-top: 60px;
  padding: 32px 0; color: var(--vt-muted); font-size: 13px;
}

/* ---------- Pagination ---------- */
.vt-pagination { display: flex; gap: 8px; margin: 32px 0; justify-content: center; }
.vt-pagination .page-numbers {
  background: var(--vt-card); border: 1px solid var(--vt-line);
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
}
.vt-pagination .current { background: var(--vt-accent); border-color: var(--vt-accent); color: #fff; }

/* ---------- 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); }

@media (max-width: 720px) {
  .vt-nav { display: none; }
  .vt-search { flex: 1; margin-left: 0; }
  .vt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
