/*
Theme Name: UltraFamousTube
Theme URI: https://localhost/
Description: Ultra-fast adult video theme. Yellow + Black. Zero plugin dependency.
Author: Custom Build
Version: 1.0.0
Text Domain: uft
*/

/* Quicksand font loaded via header.php preconnect */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700;800&display=swap');


/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0d;
  --surface:   #1a1a1a;
  --card:      #202020;
  --card-hover:#272727;
  --accent:    #ff9000;
  --accent-h:  #ffaa33;
  --text:      #efefef;
  --muted:     #888;
  --border:    #2e2e2e;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 18px rgba(0,0,0,.55);
  --trans:     .18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 500; /* Quicksand looks best at 500 base weight */
}


a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   LAYOUT WRAPPERS
============================================================ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; }

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER / NAV
============================================================ */
#site-header {
  background: #111;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0,0,0,.7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
}

/* Logo */
.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -.5px;
}
.site-logo span.logo-y { color: var(--accent); }
.site-logo span.logo-w { color: #fff; }

/* Search */
.header-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  gap: 0;
}
.header-search input[type="search"] {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text);
  padding: 8px 14px;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--trans);
}
.header-search input[type="search"]:focus { border-color: var(--accent); }
.header-search button {
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #000;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 16px;
  transition: background var(--trans);
}
.header-search button:hover { background: var(--accent-h); }

/* Nav menu */
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; gap: 4px; }
.header-nav a {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--trans), color var(--trans);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.header-nav a:hover,
.header-nav .current-menu-item > a {
  background: var(--accent);
  color: #000;
}

/* Mobile hamburger (CSS-only toggle) */
#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

/* ============================================================
   CATEGORY NAV BAR
============================================================ */
.category-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav ul {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  white-space: nowrap;
  max-width: 1380px;
  margin: 0 auto;
}
.category-nav a {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all var(--trans);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.category-nav a:hover,
.category-nav .current-cat > a {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ============================================================
   PAGE HEADER (Archive / Search title)
============================================================ */
.page-title-bar {
  padding: 22px 0 10px;
}
.page-title-bar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.page-title-bar h1 span { color: var(--accent); }

/* ============================================================
   LAZY LOAD — 5 loader types via body class
============================================================ */

/* Base: unloaded image is invisible */
img.uft-lazy {
  opacity: 0;
  transition: opacity .38s ease;
}
img.uft-lazy.uft-loaded {
  opacity: 1;
}

/* The placeholder is the .video-thumb-wrap background */
.video-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Hidden by default — each loader type shows it */
  opacity: 0;
  transition: opacity .3s ease;
}
/* Show loader overlay while image not yet loaded */
.uft-lazy-on .video-thumb-wrap:not(.uft-img-loaded)::after { opacity: 1; }
/* Loaded → hide overlay, ensure img shows on top */
.uft-lazy-on .video-thumb-wrap.uft-img-loaded::after { opacity: 0 !important; }
.uft-lazy-on .video-thumb-wrap.uft-img-loaded img { z-index: 2; }

/* ── SHIMMER (gold sweep) ─────────────────────── */
.uft-loader-shimmer .video-thumb-wrap::after {
  background: linear-gradient(
    90deg,
    #0d0d0d 0%,
    rgba(255,144,0,.08) 40%,
    rgba(255,144,0,.14) 50%,
    rgba(255,144,0,.08) 60%,
    #0d0d0d 100%
  );
  background-size: 250% 100%;
  animation: uft-shimmer 1.6s ease-in-out infinite;
}
@keyframes uft-shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -150% center; }
}

/* ── SKELETON (pulsing dark) ──────────────────── */
.uft-loader-skeleton .video-thumb-wrap::after {
  background: #1a1a1a;
  animation: uft-skeleton 1.6s ease-in-out infinite;
}
@keyframes uft-skeleton {
  0%, 100% { opacity: .3; }
  50%       { opacity: .8; }
}

/* ── SPINNER (centered ring) ──────────────────── */
.uft-loader-spinner .video-thumb-wrap::after {
  background: rgba(13,13,13,.7);
  /* Spinner drawn with box-shadow trick using ::before not possible here
     — use outline/border of a pseudo within the ::after space */
  /* We override with a clip approach: center dot + ring via box-shadow */
  background-image: none;
  display: flex; align-items: center; justify-content: center;
}
/* Spinner is drawn on ::before of .video-thumb-wrap */
.uft-loader-spinner .video-thumb-wrap:not(.uft-img-loaded)::before {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 3px solid rgba(255,144,0,.2);
  border-top-color: #ff9000;
  border-radius: 50%;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: uft-spin 0.75s linear infinite;
  pointer-events: none;
}
.uft-loader-spinner .video-thumb-wrap.uft-img-loaded::before { display: none; }
@keyframes uft-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── BLUR (blurred bg fades to sharp) ────────── */
.uft-loader-blur .video-thumb-wrap::after {
  background: #1a1a1a;
  filter: blur(0);
}
/* Give a blurred version of img using the wrap bg */
.uft-loader-blur img.uft-lazy { filter: blur(8px); transform: scale(1.05); transition: opacity .4s, filter .4s, transform .4s; }
.uft-loader-blur img.uft-loaded { filter: blur(0); transform: scale(1); }

/* ── PULSE (dark pulse) ───────────────────────── */
.uft-loader-pulse .video-thumb-wrap::after {
  background: #1e1e1e;
  animation: uft-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes uft-pulse {
  from { opacity: .25; }
  to   { opacity: .7; }
}

/* ============================================================
   PAGINATION
============================================================ */
.uft-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 32px;
}
.uft-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s ease;
}
.uft-pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,144,0,.06);
}
.uft-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: 0 4px 14px rgba(255,144,0,.3);
}
.uft-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

/* ============================================================
   VIDEO GRID
============================================================ */
.video-grid-wrap { padding: 18px 0 32px; }


.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ── Video Card ─────────────────────────────────────────── */
.video-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  /* Tell GPU to prepare this element for animation — smoother hover */
  will-change: transform;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(255,144,0,.18), 0 2px 8px rgba(0,0,0,.5);
  border-color: var(--accent);
}


/* ── Thumbnail — ALWAYS 16:9, any image fits ──────────── */
.video-thumb-wrap {
  position: relative;
  width: 100%;
  /* Lock to 16:9 — NEVER breaks regardless of source image size */
  padding-top: 56.25%;   /* = 9/16 × 100% */
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}
.video-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crops / zooms to fill — never distorts */
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.video-card:hover .video-thumb-wrap img { transform: scale(1.07); }

/* No-image placeholder */
.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  color: #444;
  font-size: 3rem;
}

/* Bottom gradient overlay — always visible for legibility */
.thumb-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%);
  pointer-events: none;
}

/* Category badge — top-left on thumbnail */
.thumb-cat-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #000;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
  z-index: 2;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Play button overlay — appears on hover */
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}
.video-card:hover .play-icon { opacity: 1; }
.play-icon::after {
  content: "▶";
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0,0,0,.6);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(255,144,0,.4);
  /* No backdrop-filter — too expensive on integrated GPU */
}


/* ── Card body ─────────────────────────────────────────── */
.video-card-body {
  padding: 9px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Subtle gradient + orange top accent makes it feel premium */
  background: linear-gradient(180deg, #252525 0%, #1e1e1e 100%);
  border-top: 2px solid rgba(255,144,0,.2);
  flex: 1;
}

/* Title — max 2 lines, tight */
.video-card-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
  transition: color .18s ease;
  word-break: break-word;
  letter-spacing: .1px;
}
.video-card:hover .video-card-title { color: var(--accent); }

/* Meta row — category + views */
.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

/* Category in meta */
.meta-cat {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

/* Views — styled orange pill badge */
.meta-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,144,0,.1);
  border: 1px solid rgba(255,144,0,.25);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 9px 2px 7px;
  font-size: .71rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .2px;
  transition: background .18s ease;
}
.video-card:hover .meta-views {
  background: rgba(255,144,0,.18);
  border-color: rgba(255,144,0,.45);
}

/* Full-area invisible link */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 10px;
  flex-wrap: wrap;
}
.pagination-wrap .page-numbers {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--trans);
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ============================================================
   SINGLE VIDEO PAGE
============================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px 0 40px;
  align-items: start;
}

/* Player column */
.video-main { min-width: 0; }

.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  width: 100%;
  box-shadow: var(--shadow);
}
.player-wrap iframe,
.player-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Video title */
.single-video-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 10px;
  line-height: 1.4;
}

/* Like / Dislike bar */
.vote-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.btn-vote {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 18px;
  transition: all var(--trans);
}
.btn-vote:hover { border-color: var(--accent); color: var(--accent); }
.btn-vote.btn-like:hover  { background: rgba(255,144,0,.1); border-color: var(--accent); }
.btn-vote.btn-dislike:hover { background: rgba(255,80,80,.1); border-color: #ff5050; color: #ff5050; }
.btn-vote.voted-like    { background: rgba(255,144,0,.15); border-color: var(--accent); color: var(--accent); }
.btn-vote.voted-dislike { background: rgba(255,80,80,.12); border-color: #ff5050; color: #ff5050; }
.btn-vote .icon { font-size: 1.1rem; }
.btn-vote .count { font-size: .85rem; }

/* Rating bar under votes */
.rating-bar {
  width: 100%;
  height: 4px;
  background: #ff5050;
  border-radius: 2px;
  margin-top: -14px;
  margin-bottom: 18px;
}
.rating-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s ease;
}

/* Views + Votes combined action row */
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

/* View counter */
.view-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.view-count .view-icon  { font-size: 1rem; }
.view-count .view-number{ color: var(--text); font-size: 1rem; font-weight: 700; }
.view-count .view-label { font-size: .78rem; }

/* Sidebar views small text */
.sidebar-video-info { flex: 1; min-width: 0; }
.sidebar-video-views {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ── Info Tabs (Description / Details) ──────────────────── */
.uft-info-tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.uft-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.uft-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 13px 22px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.uft-tab-btn:hover {
  color: var(--text);
  background: rgba(255,144,0,.05);
}
.uft-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(255,144,0,.06);
}

.uft-tab-panel { display: none; }
.uft-tab-panel.active { display: block; }

.uft-tab-content {
  padding: 18px 20px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
}
.uft-tab-content p  { margin-bottom: 10px; color: #bbb; }
.uft-tab-content a  { color: var(--accent); }

.uft-tab-empty {
  padding: 24px 20px;
  color: #444;
  font-size: .88rem;
  font-style: italic;
  text-align: center;
}

/* Details grid inside tab */
.uft-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.uft-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.detail-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.detail-label {
  display: block;
  font-size: .7rem;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.detail-value {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}
.detail-value a {
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 600px) {
  .uft-details-grid { grid-template-columns: 1fr; }
}

/* Video meta tags */

.video-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.video-meta-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  transition: all var(--trans);
}
.video-meta-tag:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.video-meta-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}

/* Related Videos */
.related-section { margin-top: 30px; }
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ============================================================
   SIDEBAR
============================================================ */
.video-sidebar { position: sticky; top: 70px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  background: var(--card);
  border-bottom: 2px solid var(--accent);
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Sidebar video list item */
.sidebar-video-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
  position: relative;
}
.sidebar-video-item:last-child { border-bottom: none; }
.sidebar-video-item:hover { background: var(--card-hover); }
.sidebar-thumb {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-video-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-video-item a { position: absolute; inset: 0; }

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  background: #111;
  border-top: 2px solid var(--accent);
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
}
.footer-inner { max-width: 1380px; margin: 0 auto; padding: 0 20px; }
.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  transition: color var(--trans);
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .8rem; }
.footer-copy strong { color: var(--accent); }

/* ============================================================
   SEARCH PAGE
============================================================ */
.no-results-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.no-results-msg h2 { font-size: 1.6rem; margin-bottom: 10px; }
.no-results-msg p  { font-size: .95rem; }

/* ============================================================
   404 PAGE
============================================================ */
.error-404-wrap {
  text-align: center;
  padding: 80px 20px;
}
.error-404-wrap .error-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.error-404-wrap h1 {
  font-size: 1.8rem;
  margin: 16px 0 10px;
}
.error-404-wrap p { color: var(--muted); margin-bottom: 24px; }
.btn-home {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--trans);
}
.btn-home:hover { background: var(--accent-h); color: #000; }

/* ============================================================
   ADMIN METABOX
============================================================ */
#uft-video-metabox .uft-meta-row {
  margin-bottom: 16px;
}
#uft-video-metabox label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1d2327;
}
#uft-video-metabox .uft-desc {
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}
#uft-video-metabox input[type="url"],
#uft-video-metabox input[type="text"],
#uft-video-metabox textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
}
#uft-video-metabox textarea { min-height: 90px; resize: vertical; font-family: monospace; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .single-layout          { grid-template-columns: 1fr; }
  .video-sidebar          { position: static; }
}

@media (max-width: 900px) {
  .video-grid             { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
}

@media (max-width: 768px) {
  .header-inner           { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .header-search          { order: 3; max-width: 100%; width: 100%; }
  .header-nav             { display: none; width: 100%; order: 4; }
  #nav-toggle:checked ~ .header-nav { display: block; }
  .header-nav ul          { flex-direction: column; gap: 2px; padding: 6px 0; }
  .header-nav a           { display: block; }
  .nav-toggle-label       { display: flex; }

  .video-grid             { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .video-card-body        { padding: 8px 10px 10px; min-height: 60px; }
  .video-card-title       { font-size: .82rem; }
  .related-grid           { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  .video-grid             { grid-template-columns: 1fr 1fr; gap: 8px; }
  .video-card-title       { font-size: .78rem; }
  .thumb-cat-badge        { display: none; }
  .single-video-title     { font-size: 1rem; }
  .vote-bar               { gap: 8px; }
  .btn-vote               { padding: 7px 14px; font-size: .82rem; }
  .error-404-wrap .error-code { font-size: 5rem; }
}
