:root {
  --bg:       #0f0f0f;
  --bg2:      #141414;
  --bg3:      #1a1a1a;
  --bg4:      #222;
  --bg5:      #2a2a2a;
  --acc:      #2e7d32;   /* Iranian green */
  --acc2:     #43a047;
  --tx:       #e8e8e8;
  --tx2:      #888;
  --tx3:      #555;
  --sidebar:  260px;
  --topbar:   48px;
  --nav:      58px;
  --tr:       .15s ease;
  --red:      #c62828;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #28282B; color: #fff;
  line-height: 1.4; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none;color:#fff }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 4px; }

/* ── LAYOUT WRAPPER ──────────────────────────────────── */
.layout { display: flex; flex-direction: column; min-height: 100vh; }

/* ── DRAWER (hamburger slide-in) ─────────────────────── */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6);
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar);
  background: var(--bg2);
  z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(calc(-1 * var(--sidebar)));
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; overflow-x: hidden;
}
.drawer.open { transform: translateX(0); }

.drawer-logo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 0 22px;
  height: var(--nav);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer-logo img { height: 64px; width: auto; }
.drawer-close {
  background: none; border: none; padding: 6px; cursor: pointer;
  color: var(--tx3); display: flex; align-items: center;
  transition: color var(--tr);
}
.drawer-close:hover { color: var(--tx); }
.drawer-close svg { width: 20px; height: 20px; fill: currentColor; }

.drawer-nav { flex: 1; padding: 8px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  font-size: .875rem; font-weight: 500; color: var(--tx2);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.drawer-nav a:hover { color: var(--tx); background: rgba(255,255,255,.04); }
.drawer-nav a.active { color: var(--acc); background: rgba(255,255,255,.04); }
.drawer-nav a svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.drawer-nav .drawer-section {
  padding: 10px 18px 4px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--tx3);
}
.drawer-divider { height: 1px; background: rgba(255,255,255,.05); margin: 6px 0; }

.drawer-social {
  display: flex; align-items: center; justify-content: space-around;
  padding: 14px 12px 18px;
  border-top: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.drawer-social a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: .65rem; color: var(--tx3); transition: color var(--tr);
}
.drawer-social a:hover { color: var(--tx); }
.drawer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* ── MAIN CONTENT AREA ───────────────────────────────── */
.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── TOP NAVBAR ──────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav);
  background: #181818;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center;
  padding: 0 12px;
  gap: 8px;
  overflow: hidden;
}
.navbar-inner {
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 1200px; margin: 0 auto;
  min-width: 0;
}
.sidebar-toggle {
  background: none; border: none; padding: 6px; cursor: pointer;
  color: var(--tx2); display: flex; align-items: center;
  transition: color var(--tr); flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--tx); }
.sidebar-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.navbar-brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 6px; }
.navbar-brand img { height: 56px; width: auto; max-width: 140px; }

.navbar-search {
  flex: 1; max-width: 560px;
  display: flex; align-items: center;
  background: #282828;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--tr);
}
.navbar-search:focus-within { box-shadow: 0 0 0 1.5px var(--acc); }
.navbar-search input {
  flex: 1; background: none; border: none; outline: none;
  padding: 9px 14px; color: var(--tx); font-size: .88rem;
}
.navbar-search input::placeholder { color: var(--tx3); }
.navbar-search button {
  background: none; border: none; padding: 9px 14px;
  color: var(--tx3); cursor: pointer; display: flex; align-items: center;
  transition: color var(--tr);
}
.navbar-search button:hover { color: var(--acc); }
.navbar-search button svg { width: 18px; height: 18px; fill: currentColor; }

.navbar-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }

.nav-fav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 4px;
  background: #282828;
  font-size: .8rem; font-weight: 600;
  transition: all var(--tr); border: none; cursor: pointer; white-space: nowrap;
}
.nav-fav-btn:hover { background: var(--bg4); color: var(--tx); }
.nav-fav-btn.has-favs { color: #e3b127; }
.nav-fav-btn svg { width: 15px; height: 15px; fill: #e3b127; }

.nav-trending-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 4px;
  background: #282828;
  font-size: .8rem; font-weight: 600;
  transition: all var(--tr); border: none; cursor: pointer; white-space: nowrap;
}
.nav-trending-btn:hover { background: var(--bg4); color: var(--tx); }
.nav-trending-btn svg { width: 15px; height: 15px; fill: #FF6B00; }

.nav-photos-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 4px;
  background: #282828;
  font-size: .8rem; font-weight: 600;
  transition: all var(--tr); border: none; cursor: pointer; white-space: nowrap;
}
.nav-photos-btn:hover { background: var(--bg4); color: var(--tx); }
.nav-photos-btn svg { width: 15px; height: 15px; fill: #c62828; }

.nav-btn-label { display: inline; }

.search-icon-btn {
  display: none; background: none; border: none; padding: 6px;
  color: var(--tx2); cursor: pointer; transition: color var(--tr);
}
.search-icon-btn:hover { color: var(--tx); }
.search-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ── CATEGORY SLIDER ─────────────────────────────────── */
.cat-strip {
  background: var(--bg2);
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
  display: flex; align-items: center;
}
.cat-strip-arrow {
  flex-shrink: 0;
  width: 32px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--tx3); transition: color var(--tr), opacity var(--tr);
  z-index: 2;
}
.cat-strip-arrow:hover { color: var(--tx); }
.cat-strip-arrow svg { width: 16px; height: 16px; fill: currentColor; }
.cat-strip-arrow.hidden { opacity: 0; pointer-events: none; }
.cat-strip-scroll {
  flex: 1; overflow-x: auto; scrollbar-width: none;
}
.cat-strip-scroll::-webkit-scrollbar { display: none; }
.cat-strip-inner {
  display: flex; align-items: center; gap: 0;
  height: 40px; white-space: nowrap;
  max-width: 1200px; margin: 0 auto;
}
.cat-strip-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 100%;
  font-size: .82rem; font-weight: 600; color: var(--tx2);
  transition: color var(--tr), border-color var(--tr);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.cat-strip-item:hover { color: var(--tx); border-bottom-color: rgba(255,255,255,.2); }
.cat-strip-item.active { color: var(--acc); border-bottom-color: var(--acc); }
.cat-strip-item img.flag { width: 16px; height: 12px; border-radius: 2px; }

/* ── SEARCH OVERLAY ──────────────────────────────────── */
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.95);
  flex-direction: column; align-items: center; padding-top: 90px;
}
.search-overlay.open { display: flex; }
.search-overlay-inner {
  width: 90%; max-width: 520px;
  background: var(--bg3); border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.search-overlay-inner form { display: flex; }
.search-overlay-inner input {
  flex: 1; background: none; border: none; outline: none;
  padding: 16px 20px; color: var(--tx); font-size: 1rem;
}
.search-overlay-inner button {
  background: var(--acc); border: none; padding: 16px 18px;
  color: #fff; cursor: pointer; display: flex; align-items: center;
  font-weight: 700;
}
.search-overlay-close {
  background: none; border: none; color: var(--tx2);
  font-size: 1.5rem; cursor: pointer; padding: 10px;
  align-self: flex-end; margin-bottom: 10px;
}

/* ── PAGE CONTENT ────────────────────────────────────── */
.content { flex: 1; padding: 20px 18px 0; max-width: 1200px; width: 100%; margin: 0 auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; }

/* ── SECTION HEADER ──────────────────────────────────── */
.sec-hd {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.sec-title { font-size: 1rem; font-weight: 700; color: var(--tx); }
.sec-count { font-size: .8rem; color: var(--tx3); }
.sec-all { margin-left: auto; font-size: .78rem; color: var(--tx2); transition: color var(--tr); }
.sec-all:hover { color: var(--acc); }

/* ── VIDEO GRID ──────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 12px;
  margin-bottom: 24px;
}

/* ── VIDEO CARD ──────────────────────────────────────── */
.vc { display: flex; flex-direction: column; cursor: pointer; }
.vc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
  display: block;
  border-radius: 3px;
}
.vc-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;border-radius:10px
}
.vc:hover .vc-thumb img { transform: scale(1.04); }
.vc-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--tr), background var(--tr);
}
.vc:hover .vc-overlay { opacity: 1; background: rgba(0,0,0,.35); }
.vc-play-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
.vc-play-circle svg { width: 20px; height: 20px; fill: #111; margin-left: 3px; }
.vc-dur {
  position: absolute; bottom: 5px; right: 6px;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: .6rem; font-weight: 600; padding: 2px 5px; border-radius: 3px;
}
.no-thumb {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--bg3);
}
.no-thumb svg { width: 28px; height: 28px; fill: var(--tx3); opacity: .2; }

.vc-info { padding: 7px 0 0; }
.vc-title {
  font-size: .82rem; font-weight: 600; color: var(--tx);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
  margin-bottom: 4px;
  transition: color var(--tr);
}
.vc:hover .vc-title { color: #fff; }
.vc-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: .71rem; color: var(--tx3);
  flex-wrap: wrap;
}
.vc-meta-sep { opacity: .4; }
.vc-approval { color: var(--tx3); }

.vc-more {
  position: absolute; top: 5px; right: 5px;
  background: rgba(0,0,0,.6); border: none; border-radius: 3px;
  color: #fff; cursor: pointer; padding: 2px 5px;
  font-size: .7rem; opacity: 0; transition: opacity var(--tr);
}
.vc:hover .vc-more { opacity: 1; }

/* ── CATEGORY CARDS ──────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card {
  position: relative; aspect-ratio: 16/9; border-radius: 4px;
  overflow: hidden; background: var(--bg3); display: block;
  transition: transform var(--tr);
}
.cat-card:hover { transform: translateY(-2px); }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card-grad { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.9)); }
.cat-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 10px; }
.cat-card-name { font-size: .84rem; font-weight: 800; color: #fff; }
.cat-card-count { font-size: .67rem; color: rgba(255,255,255,.5); margin-top: 1px; }
.cat-card-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--tx3);
}
.cat-card-empty svg { width: 28px; height: 28px; fill: currentColor; opacity: .15; }

/* ── FILTER BAR ──────────────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-pill {
  padding: 6px 16px; border-radius: 4px; background: var(--bg3);
  color: var(--tx2); font-size: .79rem; font-weight: 600;
  transition: all var(--tr); white-space: nowrap;
}
.filter-pill:hover { background: var(--bg4); color: var(--tx); }
.filter-pill.active { background: var(--acc); color: #fff; font-weight: 700; }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 28px 0 10px; flex-wrap: wrap;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 4px;
  background: var(--bg3); color: var(--tx2);
  font-size: .83rem; font-weight: 600; transition: all var(--tr);
}
.page-btn:hover:not(.disabled):not(.active) { background: var(--bg4); color: var(--tx); }
.page-btn.active { background: var(--acc); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .3; pointer-events: none; }
.page-next {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 16px; border-radius: 4px; background: var(--bg3);
  color: var(--tx2); font-size: .8rem; font-weight: 600; transition: all var(--tr);
}
.page-next:hover { background: var(--acc); color: #fff; }

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-hd { padding: 0 0 16px; }
.page-hd h1 { font-size: 1.1rem; font-weight: 800; }
.page-hd p { font-size: .8rem; color: var(--tx2); margin-top: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 5px; font-size: .73rem; color: var(--tx3); margin-bottom: 8px; }
.breadcrumb a { color: var(--tx3); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--acc); }

/* ── TAGS ────────────────────────────────────────────── */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag-pill {
  padding: 5px 13px; border-radius: 3px; background: var(--bg3);
  color: var(--tx2); font-size: .77rem; transition: all var(--tr); white-space: nowrap;
}
.tag-pill:hover { background: var(--acc); color: #fff; }

/* ── SINGLE VIDEO ────────────────────────────────────── */
.player-box { background: #000; overflow: visible; position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }
.player-poster {
  position: relative; aspect-ratio: 16/9; display: block;
  overflow: hidden; background: #000;
}
.player-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s; }
.player-poster:hover img { filter: brightness(.8); }
.player-poster-blank { width: 100%; height: 100%; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.player-poster-blank svg { width: 64px; height: 64px; fill: var(--tx3); opacity: .1; }
.player-play-ring {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.2); transition: background var(--tr);
}
.player-poster:hover .player-play-ring { background: rgba(0,0,0,.5); }
.player-play-circle-lg {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(0,0,0,.8);
  transition: transform .2s; pointer-events: none;
}
.player-poster:hover .player-play-circle-lg { transform: scale(1.08); }
.player-play-circle-lg svg { width: 32px; height: 32px; fill: #111; margin-left: 5px; }

.player-switching-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; z-index: 10; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.player-box.switching .player-switching-overlay { opacity: 1; }
.player-box.switching .player-poster img { animation: switchBlur .5s ease forwards; }
@keyframes switchBlur {
  0%   { filter: brightness(0) blur(12px); transform: scale(.97); }
  60%  { filter: brightness(.3) blur(3px); }
  100% { filter: brightness(1) blur(0); transform: scale(1); }
}
.switch-spinner {
  width: 44px; height: 44px; border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--acc); border-radius: 50%;
  animation: spin .65s linear infinite;
}
.switch-label { font-size: .84rem; color: rgba(255,255,255,.7); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-servers {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--bg2);
  justify-content: space-between;
}
.player-servers-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-servers-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.servers-label { font-size: .73rem; color: var(--tx3); font-weight: 600; white-space: nowrap; }

.srv-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 4px;
  background: var(--bg3); color: var(--tx2);
  font-size: .76rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--tr);
}
.srv-toggle-btn:hover, .srv-toggle-btn.open { background: var(--bg5); color: var(--tx); }
.srv-toggle-btn svg { width: 14px; height: 14px; fill: currentColor; }
.srv-chevron { transition: transform .2s; }
.srv-toggle-btn.open .srv-chevron { transform: rotate(180deg); }

.srv-dropdown {
  display: none; position: absolute;
  bottom: calc(100% + 4px); left: 0;
  background: var(--bg3); border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px; overflow: hidden; z-index: 200;
  min-width: 150px; box-shadow: 0 -4px 24px rgba(0,0,0,.6);
}
.srv-dropdown.open { display: block; }
.sources-wrap { position: relative; }
.srv-btn {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 9px 14px;
  background: none; border: none; color: var(--tx2);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background var(--tr), color var(--tr); text-align: left;
}
.srv-btn:hover { background: var(--bg4); color: var(--tx); }
.srv-btn.active { color: var(--acc); }
.srv-icon { width:16px; height:16px; object-fit:contain; border-radius:3px; flex-shrink:0; vertical-align:middle; }
.srv-toggle-btn .srv-icon { width:15px; height:15px; }
.srv-dot { font-size:.7rem; flex-shrink:0; }
.player-notice { padding: 6px 14px; font-size: .68rem; color: var(--tx3); background: var(--bg2); }

.vinfo-wrap { padding: 14px 18px 0; max-width: 1200px; margin: 0 auto; width: 100%; }
.vinfo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vinfo-title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; flex: 1; }

.fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 4px;
  background: var(--bg3); color: var(--tx2);
  font-size: .8rem; font-weight: 700;
  cursor: pointer; border: none; flex-shrink: 0;
  transition: all var(--tr); white-space: nowrap;
}
.fav-btn svg { width: 15px; height: 15px; fill: #e3b127; }
.fav-btn:hover { background: var(--bg4); color: var(--tx); }
.fav-btn.is-fav { background: rgba(46,125,50,.14); color: var(--acc); }
.fav-btn.is-fav svg { fill: var(--acc); }

.vote-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 4px;
  background: var(--bg3); color: var(--tx2);
  font-size: .82rem; font-weight: 700; cursor: pointer; border: none; transition: all var(--tr);
}
.vote-btn svg { width: 14px; height: 14px; fill: currentColor; }
.like-btn svg { fill: #4caf50; }
.dislike-btn svg { fill: #f44336; }
.vote-btn.like-btn:hover, .vote-btn.like-btn.active { background: rgba(76,175,80,.14); color: #4caf50; }
.vote-btn.like-btn.active svg, .vote-btn.like-btn:hover svg { fill: #4caf50; }
.vote-btn.dislike-btn:hover, .vote-btn.dislike-btn.active { background: rgba(244,67,54,.12); color: #f44336; }
.vote-btn.dislike-btn.active svg, .vote-btn.dislike-btn:hover svg { fill: #f44336; }
.vote-bar-wrap { flex: 1; height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; min-width: 60px; }
.vote-bar { height: 100%; background: var(--acc); border-radius: 2px; transition: width .4s; }
.vmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .77rem; color: var(--tx2); padding-top: 12px; }
.cat-link {
  background: rgba(46,125,50,.14); color: var(--acc);
  padding: 3px 10px; border-radius: 3px; font-weight: 700; font-size: .75rem; transition: background var(--tr);
}
.cat-link:hover { background: rgba(46,125,50,.28); }
.vdesc { font-size: .84rem; color: var(--tx2); line-height: 1.78; margin-top: 12px; padding-top: 12px; }

.comments-section { padding: 20px 18px 0; max-width: 1200px; margin: 0 auto; width: 100%; }
.comments-title { font-size: .92rem; font-weight: 800; margin-bottom: 12px; }
.comment-trigger {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px 14px; background: var(--bg3); border-radius: 4px;
  color: var(--tx3); font-size: .84rem; cursor: pointer; margin-bottom: 12px;
  transition: background var(--tr), color var(--tr); text-align: left; border: none;
}
.comment-trigger:hover { background: var(--bg4); color: var(--tx2); }
.comment-trigger svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.comment-form-wrap { display: none; margin-bottom: 14px; }
.comment-form-wrap.open { display: block; }
.form-group { margin-bottom: 10px; }
.form-label { display: block; font-size: .75rem; font-weight: 700; color: var(--tx2); margin-bottom: 4px; }
.form-ctrl {
  width: 100%; background: var(--bg3); border: none; border-radius: 4px;
  padding: 9px 13px; color: var(--tx); font-size: .86rem; outline: none;
  transition: box-shadow var(--tr);
}
.form-ctrl:focus { box-shadow: 0 0 0 1.5px var(--acc); }
.form-ctrl::placeholder { color: var(--tx3); }
textarea.form-ctrl { resize: vertical; min-height: 78px; }
.comment-list { display: flex; flex-direction: column; }
.comment-item { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--acc);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .76rem; flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: .8rem; font-weight: 700; }
.comment-time { font-size: .7rem; color: var(--tx3); }
.comment-text { font-size: .82rem; color: var(--tx2); line-height: 1.65; word-break: break-word; }

.related-section { padding: 22px 18px 0; max-width: 1200px; margin: 0 auto; width: 100%; }
.related-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; }

/* ── SEARCH PAGE ─────────────────────────────────────── */
.search-hd { text-align: center; padding: 0 0 20px; }
.search-hd h1 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.search-form-lg {
  display: inline-flex; width: 100%; max-width: 520px;
  background: var(--bg3); border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--acc);
}
.search-form-lg input {
  flex: 1; background: none; border: none; outline: none;
  padding: 12px 18px; color: var(--tx); font-size: .94rem;
}
.search-form-lg input::placeholder { color: var(--tx3); }
.search-form-lg button {
  background: var(--acc); border: none; padding: 12px 20px;
  color: #fff; font-weight: 700; font-size: .87rem; cursor: pointer;
}
.search-form-lg button:hover { background: var(--acc2); }
.search-info { padding: 12px 0; font-size: .82rem; color: var(--tx2); }
.search-info strong { color: var(--tx); }

/* ── FAVOURITES PAGE ─────────────────────────────────── */
.favs-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 0 18px; }
.favs-toolbar-right { margin-left: auto; display: flex; gap: 8px; }
.import-area { display: none; background: var(--bg3); border-radius: 6px; padding: 14px; margin-bottom: 18px; }
.import-area.open { display: block; }
.import-area textarea {
  width: 100%; background: var(--bg2); border: none; border-radius: 4px;
  padding: 10px 14px; color: var(--tx); font-size: .84rem; outline: none;
  resize: vertical; min-height: 90px; transition: box-shadow var(--tr);
}
.import-area textarea:focus { box-shadow: 0 0 0 1.5px var(--acc); }
.import-area .import-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ── STATIC / ERROR ──────────────────────────────────── */
.static-box { max-width: 820px; padding: 0; }
.static-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.static-box h3 { font-size: .9rem; font-weight: 700; margin: 14px 0 6px; }
.static-box p { color: var(--tx2); line-height: 1.8; margin-bottom: 10px; }
.static-box a { color: var(--acc); }
.empty-state { padding: 50px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--tx3); }
.empty-state svg { width: 44px; height: 44px; fill: currentColor; opacity: .12; }
.empty-state h3 { font-size: 1rem; color: var(--tx2); }
.empty-state p { font-size: .84rem; }
.error-page { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--acc); opacity: .08; line-height: 1; }
.error-page h2 { font-size: 1.6rem; font-weight: 800; }
.error-page p { color: var(--tx2); max-width: 320px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 4px; border: none;
  font-size: .83rem; font-weight: 700; cursor: pointer; transition: all var(--tr);
}
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc2); }
.btn-secondary { background: var(--bg3); color: var(--tx2); }
.btn-secondary:hover { background: var(--bg4); color: var(--tx); }
.btn-sm { padding: 6px 12px; font-size: .77rem; }
.btn-danger { background: rgba(198,40,40,.15); color: #ef5350; }
.btn-danger:hover { background: rgba(198,40,40,.3); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg2); border-top: 1px solid rgba(255,255,255,.04);
  padding: 28px 18px 16px; margin-top: 32px; text-align: center;
}
.footer-title { font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.footer-desc { font-size: .77rem; color: var(--tx3); max-width: 700px; margin: 0 auto 14px; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-bottom: 10px; }
.footer-nav a { font-size: .73rem; font-weight: 500; color: var(--tx3); padding: 4px 10px; transition: color var(--tr); }
.footer-nav a:hover { color: var(--acc); }
.footer-copy { font-size: .7rem; color: var(--tx3); margin-top: 8px; }
.footer-networks { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: .7rem; color: var(--tx3); }
.footer-networks a { color: var(--tx3); transition: color var(--tr); }
.footer-networks a:hover { color: var(--acc); }

/* Toast */
#toast-container { position: fixed; bottom: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--bg3); border-left: 3px solid var(--acc); border-radius: 4px; padding: 10px 16px; font-size: .82rem; max-width: 300px; box-shadow: 0 8px 40px rgba(0,0,0,.8); opacity: 1; transition: opacity .3s; }
.toast.success { border-left-color: #4caf87; }
.toast.error { border-left-color: #ef5350; }

/* SEO block */
.seo-block { padding: 20px 18px 0; }
.seo-block h2 { font-size: .95rem; font-weight: 700; margin-bottom: 7px; }
.seo-block p { font-size: .79rem; color: var(--tx3); line-height: 1.8; max-width: 900px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) { .video-grid, .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .video-grid, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .navbar-search { display: none; }
  .search-icon-btn { display: flex; }
  .video-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .vinfo-top { flex-direction: column; align-items: flex-start; }
  .nav-btn-label { display: none; }
  .nav-fav-btn, .nav-trending-btn { padding: 7px 10px; gap: 0; }
  .nav-photos-btn { display: none; }
  .navbar-brand img { max-width: 100px; height: 40px; }
  .content { padding: 12px 10px 0; }
}
@media (max-width: 480px) {
  .video-grid, .related-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 14px 0; }
  .navbar-brand img { max-width: 80px; height: 34px; }
  .content { padding: 10px 8px 0; }
}
@media (max-width: 560px) {
  .video-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ═══════════════════════════════════════════════════════════
   CATEGORY CIRCLES STRIP
   ═══════════════════════════════════════════════════════════ */
.cat-circle-strip {
  display: flex; align-items: center;
  background: var(--bg2);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 0 2px; flex-shrink: 0;
}
.ccs-arrow {
  flex-shrink: 0; width: 30px; height: 100%; min-height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--tx3); transition: color .2s, opacity .2s;
}
.ccs-arrow:hover { color: var(--tx); }
.ccs-arrow svg   { width: 18px; height: 18px; fill: currentColor; }
.ccs-arrow.hidden { opacity: 0; pointer-events: none; }
.ccs-scroll { flex: 1; overflow-x: auto; scrollbar-width: none; }
.ccs-scroll::-webkit-scrollbar { display: none; }
.ccs-inner { display: flex; align-items: flex-start; gap: 4px; padding: 10px 6px; white-space: nowrap; }
.ccs-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0; text-decoration: none; cursor: pointer;
  transition: opacity .2s; min-width: 72px;
}
.ccs-item:hover { opacity: .8; }
.ccs-circle {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid rgba(255,255,255,.1);
  background: var(--bg3); transition: border-color .2s; flex-shrink: 0;
}
.ccs-item.active .ccs-circle, .ccs-item:hover .ccs-circle { border-color: var(--acc); }
.ccs-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccs-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--bg4); font-size: .95rem; font-weight: 800; color: var(--tx2); letter-spacing: .5px;
}
.ccs-name {
  font-size: .6rem; font-weight: 600; color: var(--tx2); text-align: center;
  max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s; line-height: 1.2;
}
.ccs-item.active .ccs-name, .ccs-item:hover .ccs-name { color: var(--acc); }

/* ═══════════════════════════════════════════════════════════
   TAG PILLS STRIP
   ═══════════════════════════════════════════════════════════ */
.tag-strip {
  display: flex; align-items: center;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.04);
  padding: 0 2px; flex-shrink: 0;
}
.ts-arrow {
  flex-shrink: 0; width: 26px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--tx3); transition: color .2s, opacity .2s;
}
.ts-arrow:hover { color: var(--tx); }
.ts-arrow svg   { width: 14px; height: 14px; fill: currentColor; }
.ts-arrow.hidden { opacity: 0; pointer-events: none; }
.ts-scroll { flex: 1; overflow-x: auto; scrollbar-width: none; }
.ts-scroll::-webkit-scrollbar { display: none; }
.ts-inner { display: flex; align-items: center; gap: 6px; padding: 7px 4px; white-space: nowrap; }
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 4px 13px; border-radius: 20px; background: var(--bg3);
  color: var(--tx2); font-size: .72rem; font-weight: 600;
  text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; flex-shrink: 0;
}
.tag-pill:hover { background: var(--bg4); color: var(--tx); }
.tag-pill.active { background: var(--acc); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   VIDEO TAGS
   ═══════════════════════════════════════════════════════════ */
.vtags { display: flex; flex-wrap: wrap; gap: 6px; }
.vtag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px; background: var(--bg3);
  color: var(--tx2); font-size: .72rem; font-weight: 600;
  text-decoration: none; transition: background .2s, color .2s;
}
.vtag:hover { background: var(--acc); color: #fff; }

/* ── SEARCH SUGGESTIONS ──────────────────────────────── */
.search-suggestions { margin-top: 20px; text-align: left; max-width: 600px; margin-left: auto; margin-right: auto; }
.ss-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--tx3); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.ss-clear {
  font-size: .68rem; font-weight: 600; color: var(--tx3);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .15s; text-transform: none; letter-spacing: 0;
}
.ss-clear:hover { color: var(--tx2); }
.ss-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.ss-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 99px; font-size: .78rem; font-weight: 500;
  background: var(--bg3); border: 1px solid rgba(255,255,255,.06);
  color: var(--tx2); transition: all .15s; cursor: pointer; white-space: nowrap;
}
.ss-pill:hover { color: var(--tx); background: var(--bg4); border-color: rgba(255,255,255,.1); }
.ss-pill svg { width: 13px; height: 13px; fill: currentColor; opacity: .5; flex-shrink: 0; }
.ss-pill-recent { color: var(--tx2); }
.ss-pill-recent:hover { color: var(--acc); border-color: rgba(46,125,50,.25); }
.ss-count { font-size: .65rem; color: var(--tx3); margin-left: 2px; }