@charset "UTF-8";
/* ============================================================
   THEME.CSS — Merged: premium_dark.css > youporn_theme.css > black_orange.css
   Site always uses html.dark — light mode variants removed
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES / VARIABLES
   premium_dark.css :root tokens win; html.dark vars from youporn/black_orange merged
   ============================================================ */
:root {
  /* Backgrounds */
  --pm-bg: #000000;
  --pm-surface: #0b0b0d;
  --pm-card: #101013;
  --pm-elevated: #18181c;
  --pm-hover: #1e1e22;

  /* Accent — Deep Crimson */
  --pm-accent: #ff9900;
  --pm-accent-bright: #ffb733;
  --pm-accent-glow: rgba(255, 153, 0, 0.22);
  --pm-accent-subtle: rgba(255, 153, 0, 0.09);
  --pm-accent-border: rgba(255, 153, 0, 0.32);

  /* Text */
  --pm-text: #f2f2f4;
  --pm-text-secondary: #a1a1aa;
  --pm-text-muted: #6e6e76;

  /* Borders */
  --pm-border: #222226;
  --pm-border-subtle: #141418;

  /* Radius */
  --pm-radius-sm: 6px;
  --pm-radius: 10px;

  /* Shadows */
  --pm-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.75);
  --pm-glow: 0 6px 28px rgba(255, 153, 0, 0.30);

  /* Timing */
  --pm-fast: 150ms ease;
  --pm-mid: 240ms ease;
  --pm-slow: 360ms cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Header offset initial value to prevent CLS.
     JS (syncHeaderOffset) will update this to the exact value after load.
     Estimate: header-holder (~62px) + header-nav (~32px) = ~94px */
  --header-offset: 94px;
}

/* Dark mode CSS variables (html always uses .dark) */
html {
  /* background */
  --main-background: #000;
  --header-background: #000;
  --header-background2: #000;
  --thumb-box-bg: #161617;
  --thumb-placeholder-bg: #161617;
  --footer-bg: #232323;
  --footer-box-bg: #232323;
  --pagination-bg: #161617;
  --sort-bg: #161617;
  --tags-link-bg: transparent;
  --tags-link-bg-hover: rgba(236, 86, 124, 0.2);
  --input-bg: #161617;
  --btn-bg: #161617;
  --modal-bg: #161617;
  --sort-box-bg: #161617;
  --member-menu-bg: #161616;
  --img-placeholder-bg: #000;
  --img-placeholder-bg2: #070707;
  --img-placeholder-bg3: #161616;
  --subscription-bg: #262528;
  --embed-button-bg: #34363c;
  --radio-bg: #191a1d;
  --comment-item-bg: #000;
  --comment-like-bg: #34363c;
  --checkbox-bg: #000;

  /* color */
  --general-color: #fff;
  --main-grey-color: #b8b8b8;
  --member-menu-color: #b8b8b8;
  --thumb-text-color: #fff;
  --nav-link-color: #fff;
  --pagination-color: #b8b8b8;
  --sort-color: #b8b8b8;
  --tags-link-color: #fff;
  --tags-arrow-color: #fff;
  --input-color: #fff;
  --btn-color: #fff;
  --btn-tabs-color: #b8b8b8;
  --thumb-info-color: #b8b8b8;
  --input-color2: #8b8f96;
  --input-color3: #b8b8b8;
  --heading-title-color: #ff9900;
  --comment-item-color: #fff;
  --comment-name-color: #fff;
  --comment-date-color: #b8b8b8;
  --comment-like-color: #8b8f96;
  --desc-color: #fff;
  --seo-title-color: #fff;
  --seo-text-color: #b8b8b8;
  --footer-color: #b8b8b8;
  --theme-color: #b8b8b8;
  --theme-hover-color: #ff9900;
  --related-color: #b8b8b8;
  --tabs-title-color: #b8b8b8;
  --btn-gold: #ff9900;
  --profile-color: #fff;
  --profile-color2: #b8b8b8;
  --subscribe-color: #626262;
  --subscribe-color2: #b8b8b8;
  --video-sub-btn: #ff9900;
  --video-sub-btn-color: #000;
  --video-sub-btn-count: #070707;
  --menu-icon-bg: #fff;

  /* border */
  --tags-link-border: 1px solid #ff9900;
  --footer-border: none;
  --input-border: none;
  --header-border: 1px solid #161616;
  --profile-sort-border: 1px solid #000;
  --video-controls-border: 1px solid #000;
  --sort-box-pseudo: #000;
  --btn-box-shadow: 0px 4px 14px rgba(255, 153, 0, 0.5);
  --swiper-btn-prev: linear-gradient(90deg, #161616 52.6%, rgba(22, 22, 22, 0) 100%);
  --swiper-btn-next: linear-gradient(270deg, #161616 52.6%, rgba(22, 22, 22, 0) 100%);

  /* YouPorn gray scale */
  --lightest-gray: #fafafa;
  --light-gray: #bbb;
  --mid-light-gray: #616161;
  --gray: #4b4b4b;
  --mid-gray: #363636;
  --dark-gray: #232323;
  --darkest-gray: #161617;

  /* Modal vars */
  --bg-rgb-dark: 0, 0, 0;
  --bg-modal: #161616;
  --color-modal: #fff;
  --color-active: #ff9900;
  --color-second: #b8b8b8;
}

/* ============================================================
   2. @FONT-FACE
   ============================================================ */
@font-face {
  font-family: 'RIEGON';
  src: url('/static/images/fonts/RIEGON.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'RIEGONRegular';
  src: url('/static/images/fonts/RIEGON.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ============================================================
   3. BASE RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
button,
input,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}

fieldset,
img {
  border: 0;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ol,
ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
}

a,
a * {
  cursor: pointer;
}

a {
  text-decoration: none;
}

input,
textarea {
  outline: none;
}

input {
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

i {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  height: auto;
}

/* ============================================================
   4. HTML / BODY / WRAPPER / MAIN / CONTAINER
   ============================================================ */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI',
    system-ui, sans-serif !important;
  font-size: 14px;
  line-height: 1.2;
  color: var(--general-color);
  background-color: var(--pm-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #000;
  box-sizing: border-box;
  width: 100%;
  flex: 1;
}

.main {
  flex: 1 0 auto;
  background-color: #000;
  box-sizing: border-box;
  width: 100%;
  padding-top: var(--header-offset);
}

header {
  flex: 0 0 auto;
}

footer {
  flex: 0 0 auto;
}

.container {
  max-width: 1300px;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
}

/* ============================================================
   5. HEADER
   ============================================================ */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 500 !important;
  background: transparent !important;
  border-bottom: none !important;
  transition: transform 220ms ease;
  will-change: transform;
}

.header.header-hidden {
  transform: translateY(calc(-100% - 2px));
}

.header.header-nav-hidden .header-nav {
  max-height: 0;
  overflow: hidden;
  border-bottom-width: 0;
  transition: max-height 220ms ease, border-bottom-width 220ms ease;
}

.header-nav {
  max-height: 200px;
  transition: max-height 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}

.header-holder {
  background:
    radial-gradient(1400px 180px at 8% 0%, rgba(255, 153, 0, 0.12), transparent 55%),
    #080809 !important;
  border-bottom: 1px solid #161618 !important;
  padding: 10px 0 !important;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-holder .header-inner {
  justify-content: space-between;
}

/* Logo */
.logo {
  transition: all 0.3s;
  opacity: 1;
  font: 400 14px / 1.2 "RIEGON", sans-serif;
  flex-shrink: 0;
}

.header .logo svg {
  height: 40px;
  width: auto;
}

.header-holder .logo {
  position: relative;
  z-index: 3;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.header .logo .js_logo_img {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
}

.header.search-open .logo {
  opacity: 1 !important;
}

/* Header nav bar */
.header-nav {
  background: #060607 !important;
  border-bottom: 1px solid #111113 !important;
  overflow: hidden;
}

.header-nav::before {
  content: none;
}

.header-nav .header-inner {
  padding: 6px 0;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Header search below (mobile) */
.header-search-below {
  display: none;
  background: #070708 !important;
  border-top: 1px solid #111113 !important;
  border-bottom: 1px solid #111113 !important;
  padding: 10px 0 12px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 0;
  flex-shrink: 0;
}

.header-btn {
  color: #777 !important;
  padding: 8px;
  border-radius: 8px !important;
  transition: all var(--pm-fast) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.header-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.header-btn svg,
.header-btn .svg-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* btn-mobile (mobile search toggle) */
.btn-mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  order: 3;
}

.btn-mobile svg {
  fill: #b8b8b8;
  transition: 0.3s;
}

.btn-mobile .svg-icon {
  position: absolute;
  opacity: 0;
  transform: scale(0);
}

.btn-mobile .svg-search {
  transition: 0.3s;
}

/* ============================================================
   6. SEARCH BAR
   ============================================================ */
.search {
  flex: 1;
  max-width: 500px;
}

.search form {
  max-width: 100%;
  width: 100%;
}

.search-inner {
  display: flex;
  align-items: center;
  background-color: #161618 !important;
  border: 1px solid #2a2a2e !important;
  border-radius: 26px !important;
  overflow: hidden;
  transition: border-color var(--pm-mid), box-shadow var(--pm-mid) !important;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  gap: 10px;
}

.search-inner:focus-within {
  border-color: var(--pm-accent) !important;
  box-shadow: 0 0 0 3px var(--pm-accent-glow) !important;
}

.search-inner input,
.search-inner input[type="text"] {
  background-color: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 10px 0 !important;
  font-size: 14px;
  width: 100%;
  outline: none;
  height: 100%;
}

.search-inner input::placeholder,
.search-inner input[type="text"]::placeholder {
  color: #bbb;
}

.search-inner .btn-search {
  background-color: transparent !important;
  border: none !important;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transform: none;
}

.search-inner .btn-search:hover {
  background-color: rgba(236, 86, 124, 0.1);
}

.search-inner .btn-search svg,
.search-inner .btn-search .svg-icon {
  fill: var(--pm-accent) !important;
  color: var(--pm-accent) !important;
  width: 18px;
  height: 18px;
}

/* Mobile search below (shown on mobile) */
.search-below-form {
  width: 100%;
}

.search-below-inner {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #161618 !important;
  border-radius: 26px !important;
  border: 1px solid #2a2a2e !important;
  padding: 0 12px;
  min-height: 42px;
  gap: 8px;
}

.search-below-inner:focus-within {
  border-color: var(--pm-accent) !important;
  box-shadow: 0 0 0 3px var(--pm-accent-glow) !important;
}

.search-below-inner input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.search-below-inner input::placeholder {
  color: #bbb;
}

.btn-search-below {
  border: none;
  background: transparent;
  color: var(--pm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* search-response (autocomplete) */
.search-response {
  position: relative;
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav-link {
  color: #bbbbbf !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1px !important;
  border-radius: var(--pm-radius-sm) !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 12px !important;
  margin: 4px 0 !important;
  transition: color var(--pm-fast), background var(--pm-fast) !important;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

.nav-link:hover::after {
  content: none;
}

.header-nav .nav-link::before {
  content: none;
}

.nav-link.active {
  color: #fff !important;
  background: var(--pm-accent) !important;
  box-shadow: var(--pm-glow) !important;
}

.nav-link.active::after {
  content: none;
}

.nav-link--hot {
  color: #ffcc66 !important;
  background: rgba(255, 153, 0, 0.1) !important;
}

.nav-link--hot:hover {
  color: #fff !important;
  background: rgba(255, 153, 0, 0.22) !important;
}

/* ============================================================
   8. MOBILE NAV
   ============================================================ */
.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  order: 1;
  flex-shrink: 0;
}

.menu-icon span {
  width: 24px;
  height: 2px;
  background-color: #bbb;
  transition: all 0.2s ease;
  display: block;
  position: relative;
}

.menu-icon:hover span {
  background-color: var(--pm-accent) !important;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-icon span:first-child,
body.nav-open .menu-icon span:last-child {
  top: 6px;
  background-color: #ff9900;
}

body.nav-open .menu-icon span:first-child {
  transform: rotate(45deg);
}

body.nav-open .menu-icon span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

.mobile-nav.active {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: linear-gradient(180deg, #0e0e11 0%, #0a0a0d 100%) !important;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--pm-border) !important;
}

.mobile-nav.active .mobile-nav-inner {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1d1d1f;
}

.mobile-nav-header .logo svg {
  height: 30px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mobile-nav-close:hover {
  color: var(--pm-accent) !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  color: #b8b8bd !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff !important;
  background: rgba(255, 153, 0, 0.1) !important;
  border-color: rgba(255, 153, 0, 0.28) !important;
}

.mobile-nav-link--hot {
  color: #ffcc66 !important;
}

/* ============================================================
   9. SVG ICONS
   ============================================================ */
.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.icon-heart,
.icon-heart-filled {
  font-size: 12px;
}

.icon-search {
  font-size: 20px;
}

/* ============================================================
   10. SECTION HEADINGS
   ============================================================ */
.section-row {
  padding: 22px 0 !important;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--pm-border) !important;
  position: relative !important;
  gap: 5px;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--pm-accent) 0%, transparent 100%);
  border-radius: 1px;
}

.heading .title {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.25px !important;
  color: var(--pm-text) !important;
  text-transform: none !important;
}

.heading .title a {
  color: var(--heading-title-color);
  transition: color 0.3s;
}

/* ============================================================
   11. SORT DROPDOWN
   ============================================================ */
.sort {
  position: relative;
}

.sort-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bbb;
  cursor: pointer;
  padding: 8px 14px;
  background-color: #161617;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 170px;
  justify-content: center;
}

.sort-title:hover {
  color: #fff;
  background-color: #232323;
}

.sort-title svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.sort-drop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background-color: #161617;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 100;
  overflow: hidden;
  display: none;
}

.sort:hover .sort-drop {
  display: block;
}

.sort-drop a {
  display: block;
  padding: 10px 16px;
  color: #bbb;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sort-drop a:hover {
  color: #fff;
  background-color: #232323;
}

/* ============================================================
   12. VIDEO GRID + CARDS
   ============================================================ */

/* Grid */
.thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 20px 14px !important;
}

@media (max-width: 1280px) {
  .thumbs {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .thumbs {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px 12px !important;
  }
}

@media (max-width: 640px) {
  .thumbs {
    grid-template-columns: 1fr !important;
    gap: 14px 0 !important;
  }
}

/* Card — flat: no bg, no border, no shadow */
.thumb {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  cursor: pointer;
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: pm-fadeIn 0.28s ease both !important;
}

.thumb>a {
  display: block;
  text-decoration: none;
}

/* Thumbnail */
.thumb .img-holder {
  aspect-ratio: 16 / 9;
  background-color: #0a0a0c;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 4px;
}

.thumb .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.thumb:hover .img-holder img {
  transform: scale(1.04);
}

/* Badges: HD + duration — overlaid bottom of thumbnail */
.thumb .item-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  z-index: 2;
  pointer-events: none;
}

.thumb .qualtiy {
  background: var(--pm-accent) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 2px 5px !important;
  border-radius: 2px !important;
  text-transform: uppercase !important;
}

.thumb .time {
  background: rgba(0, 0, 0, 0.78) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 6px !important;
  border-radius: 2px !important;
}

/* Title — flush, no container padding */
.thumb .title {
  color: #d8d8dc !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 7px 0 3px !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color var(--pm-fast) !important;
}

.thumb:hover .title {
  color: #fff !important;
}

/* Meta row */
.thumb-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
  flex-wrap: nowrap;
  overflow: hidden;
}

.thumb-bottom-videos {
  flex-wrap: nowrap;
}

.thumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5a5a62 !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.thumb-item svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.thumb-item i {
  display: flex;
  align-items: center;
}

.thumb-item-date {
  margin-left: auto;
}

/* Green rating (class + inline style fallback) */
.thumb-item--rating,
.thumb-item[style*="color: #10ec00b3"] {
  color: #3db870 !important;
  font-weight: 600 !important;
}

/* thumb_rel */
.thumb_rel {
  position: relative;
}

/* lazy-load placeholder */
.lazy-load {
  background-color: var(--thumb-placeholder-bg);
}

/* ============================================================
   13. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px !important;
  margin-top: 30px;
  padding: 22px 0 !important;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px;
  background-color: var(--pm-elevated) !important;
  border: 1px solid var(--pm-border) !important;
  color: var(--pm-text-secondary) !important;
  font-size: 13.5px !important;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--pm-radius-sm) !important;
  transition: all var(--pm-fast) !important;
}

.pagination a:hover {
  background: var(--pm-hover) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.pagination a.active {
  background: var(--pm-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--pm-glow) !important;
}

.pagination .prev,
.pagination .next {
  padding: 0 16px;
  gap: 8px;
  font-weight: 500;
}

.pagination .prev svg,
.pagination .next svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: all 0.3s;
}

.pagination .prev:hover,
.pagination .next:hover {
  background: var(--pm-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--pm-glow) !important;
}

.pagination-ellipsis {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #bbb !important;
  cursor: default;
  min-width: 30px;
}

/* Mobile pagination: wrap to next line */
@media (max-width: 1023px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 4px !important;
  }

  .pagination a.prev {
    min-width: 60px;
    font-size: 0;
  }

  .pagination a.next {
    min-width: 60px;
    font-size: 0;
  }

  .pagination a.prev svg,
  .pagination a.next svg {
    margin: 0;
    font-size: 14px;
  }
}

/* ============================================================
   14. SIDEBAR
   ============================================================ */
.sidebar {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-border) !important;
  border-radius: var(--pm-radius) !important;
  padding: 18px !important;
}

.sidebar__item {
  margin-bottom: 24px;
}

.sidebar__item:last-child {
  margin-bottom: 0;
}

.sidebar .headline {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pm-border) !important;
}

.sidebar .headline h2 {
  margin: 0;
  font-size: 16px;
}

.sidebar .headline h2 a {
  color: var(--pm-text) !important;
  text-decoration: none;
}

.sidebar .headline h2 a:hover {
  color: var(--pm-accent) !important;
}

.sidebar .list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .list li {
  padding: 8px 0;
  border-top: 1px solid var(--pm-border) !important;
}

.sidebar .list li:first-child {
  border-top: none;
}

.sidebar .list li a {
  color: var(--pm-text-secondary) !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.sidebar .list li a:hover {
  color: var(--pm-accent) !important;
}

/* Checkbox wrapper in sidebar */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox {
  display: none;
}

.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #222428;
  border: 1px solid #ff9900;
  cursor: pointer;
  transition: background 0.2s;
}

.checkbox:checked+.checkmark {
  background: #ff9900;
}

/* ============================================================
   15. SEO SECTION
   ============================================================ */
.seo {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-border-subtle) !important;
  border-radius: var(--pm-radius) !important;
  margin-top: 24px !important;
  padding: 30px 20px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.seo h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}

.seo p {
  color: #bbb;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.seo p:last-child {
  margin-bottom: 0;
}

.seo a {
  color: var(--pm-accent) !important;
  text-decoration: none;
}

.seo a:hover {
  text-decoration: underline;
}

/* ============================================================
   16. FOOTER
   ============================================================ */

.footer {
  background: #05050a;
  padding: 48px 0 0;
  margin-top: 48px;
}

/* ── Body: brand + nav side by side ─────────────────────── */
.footer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #4a4a52;
  margin: 0;
  max-width: 380px;
}

.footer-badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #5a5a60;
  border: 1px solid #2a2a30;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* ── Nav columns ─────────────────────────────────────────── */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.footer-links-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-text-muted);
  margin: 0 0 4px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links ul a {
  font-size: 13px;
  font-weight: 500;
  color: #5c5c64;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links ul a:hover,
.footer-links ul a.active {
  color: var(--pm-accent);
}

/* ── Bottom bar ──────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid #111116;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 12px;
  color: #3a3a42;
  margin: 0;
}

.footer-copy a {
  color: #555560;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--pm-accent);
}

/* keep .copi for any legacy usage */
.copi {
  font-size: 12px;
  color: #3a3a42;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 36px 0 0;
  }

  .footer-nav {
    gap: 24px 32px;
  }
}

/* ============================================================
   17. HOLDER-BOX / CONTENT-SECTION
   ============================================================ */
.holder-box {
  margin-top: 15px;
  display: flex;
  align-items: baseline;
}

@media (max-width: 875px) {
  .holder-box {
    flex-direction: column;
    align-items: center;
  }
}

.content-section {
  width: 100%;
}

.box-content {
  width: 100%;
  margin-bottom: 44px;
}

.box-content .heading {
  margin-bottom: 10px;
}

/* ============================================================
   18. WATCH / VIEW PAGE
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
.watch-layout {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 16px 0;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .watch-layout {
    grid-template-columns: 1fr;
    padding: 12px 12px 0;
  }
}

@media (max-width: 640px) {
  .watch-layout {
    padding: 0 8px;
  }
}

.watch-main {
  min-width: 0;
}

/* ── Player ──────────────────────────────────────────────── */
.watch-player {
  background: #000;
  border-radius: var(--pm-radius-sm);
  overflow: hidden;
}

.watch-player__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

#ncp-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#ncp-container iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.player-loading,
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-text-muted);
  font-size: 14px;
}

/* ── Server selector ─────────────────────────────────────── */
.watch-servers {
  padding: 10px 0 6px;
}

.fss-list,
.ulclear {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.list_link {
  list-style: none;
}

.server-empty {
  color: var(--pm-text-muted);
  font-size: 13px;
  padding: 8px 0;
}

/* ── Watch info panel ────────────────────────────────────── */
.watch-info {
  padding: 14px 0 0;
}

.watch-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--pm-text);
  margin: 0 0 14px;
  line-height: 1.4;
  word-break: break-word;
}

/* ── Toolbar (stats + actions) ───────────────────────────── */
.watch-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pm-border);
}

.watch-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.watch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Feature action buttons */
.feature-action {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pm-text-muted) !important;
  background: none;
  border: none;
  font-size: 13px !important;
  text-decoration: none;
  padding: 5px 9px;
  border-radius: var(--pm-radius-sm) !important;
  transition: color var(--pm-fast), background var(--pm-fast) !important;
  line-height: 1;
}

.feature-action:hover {
  color: var(--pm-accent) !important;
  background: var(--pm-accent-subtle) !important;
}

.feature-action .svg-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.feature-actionViews {
  cursor: default;
  position: relative;
  padding-right: 14px;
  margin-right: 4px;
}

.feature-actionViews::after {
  content: '';
  width: 1px;
  height: 18px;
  background: var(--pm-border);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Like / dislike */
.videoLike:hover,
.videoLike.active {
  color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.1) !important;
}

.videoDislike:hover,
.videoDislike.active {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.1) !important;
}

.voters {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 0;
  font-size: 11px;
  color: var(--pm-accent);
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* Favorite */
.featureFavorite,
.js-toggle-favorite {
  cursor: pointer;
}

.featureFavorite:hover,
.featureFavorite.favorited {
  color: var(--pm-accent) !important;
  background: var(--pm-accent-subtle) !important;
}

.featureFavorite.favorited .svg-icon {
  fill: var(--pm-accent);
}

.featureFavorite.loading {
  opacity: 0.6;
  pointer-events: none;
}

.favorite-text {
  font-size: 13px;
}

/* ── Publisher / meta row ────────────────────────────────── */
.watch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pm-border);
}

.publisher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pm-elevated);
  border: 1px solid var(--pm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-text-secondary);
  flex-shrink: 0;
}

.publisher-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.publisher-name,
.submitByLink {
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-text) !important;
  text-decoration: none;
}

.publisher-name:hover,
.submitByLink:hover {
  color: var(--pm-accent) !important;
}

.publisher-date,
.subscribersInfo {
  font-size: 12px;
  color: var(--pm-text-muted) !important;
}

.watch-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.cat-tag,
.metaDataSubscription {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff !important;
  background: var(--pm-accent) !important;
  border-radius: var(--pm-radius-sm);
  text-decoration: none;
  transition: background var(--pm-fast);
}

.cat-tag:hover,
.metaDataSubscription:hover {
  background: var(--pm-accent-bright) !important;
}

/* ── Stats row (duration · views · added) ────────────────── */
.watch-stats-row,
.video-description {
  padding: 12px 0 0;
}

.watch-stats-row .video-info,
.video-description .video-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--pm-text-muted);
  font-size: 13px;
}

.watch-stats-row .video-info span,
.video-description .video-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.watch-stats-row .video-info label,
.video-description .video-info label {
  font-weight: 600;
  color: var(--pm-text-secondary);
  margin-right: 2px;
}

/* ── Description ─────────────────────────────────────────── */
.watch-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--pm-text-muted);
  line-height: 1.6;
}

/* ── Tags ────────────────────────────────────────────────── */
.watch-tags,
.videoTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.button.bubble-button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12.5px;
  line-height: 1;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--pm-fast);
}

.button.bubble-porntag {
  color: #c0c0c6 !important;
  background: var(--pm-elevated) !important;
  border: 1px solid var(--pm-border) !important;
  transition: all var(--pm-fast) !important;
}

.button.bubble-porntag:hover {
  color: #fff !important;
  border-color: var(--pm-accent-border) !important;
  background: var(--pm-accent-subtle) !important;
}

/* ── Feature tabs ────────────────────────────────────────── */
.feature-tabsWrapper {
  display: flex;
  gap: 2px;
  margin-top: 16px;
  border-bottom: 1px solid var(--pm-border);
}

.feature-tabsWrapper .feature-tab {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-text-secondary);
  background: transparent;
  border: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.feature-tabsWrapper .feature-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.feature-tabsWrapper .feature-tab.active {
  color: #fff;
  background: transparent;
  border-bottom: 2px solid var(--pm-accent);
  margin-bottom: -1px;
}

/* ── Tab content ─────────────────────────────────────────── */
.block-tabs {
  padding: 16px 0;
  margin-bottom: 16px;
}

.block-tabs .tab-content {
  animation: pm-fadeIn 0.2s ease;
}

.tab-content.hidden {
  display: none;
}

/* ── Related videos (3-col grid) ─────────────────────────── */
.three-thumbs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.three-thumbs-row .thumb {
  width: 100% !important;
  margin: 0 !important;
}

.three-thumbs-row .thumb .img-holder {
  aspect-ratio: 16 / 9;
}

.three-thumbs-row .thumb .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Share panel ─────────────────────────────────────────── */
.share-panel,
.share-video-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--pm-elevated);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
}

.share-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.share-label,
.embed-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-text-secondary);
  display: block;
}

.share-input,
.textfield {
  font-family: inherit;
  display: block;
  width: 100%;
  height: 38px;
  border-radius: var(--pm-radius-sm);
  border: 1px solid var(--pm-border);
  padding: 0 12px;
  background: var(--input-bg);
  color: var(--input-color);
  font-size: 13px;
  box-sizing: border-box;
}

.share-input:focus,
.textfield:focus {
  outline: none;
  border-color: var(--pm-accent);
}

/* ── link-offer (ad) ─────────────────────────────────────── */
.link-offer {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.link-offer a {
  display: block;
}

.link-offer a img {
  width: 100%;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.watch-sidebar,
.right-col {
  grid-column: 2;
  grid-row: 1 / span 10;
}

.rec-section,
.asside-thumb {
  display: block;
  margin-bottom: 20px;
}

.rec-heading,
.title-asside {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pm-border);
}

.rec-list,
.recommended-thumbs {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  grid-template-columns: unset !important;
}

.rec-item,
.recommended-thumb-item {
  width: 100% !important;
  margin: 0 !important;
}

.rec-item a,
.recommended-thumb-item a {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  text-decoration: none;
}

.rec-item .img-holder,
.recommended-thumb-item .img-holder {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 84px !important;
  border-radius: 5px !important;
  overflow: hidden;
  flex-shrink: 0;
  padding-bottom: 0 !important;
}

.rec-item .img-holder img,
.recommended-thumb-item .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rec-item .thumb-info,
.recommended-thumb-item .thumb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-item .title,
.recommended-thumb-item .thumb-info .title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--pm-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.rec-date {
  font-size: 11.5px;
  color: var(--pm-text-muted);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {

  .watch-sidebar,
  .right-col {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .three-thumbs-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-item .img-holder,
  .recommended-thumb-item .img-holder {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    height: 73px !important;
  }
}

@media (max-width: 640px) {

  .watch-sidebar,
  .right-col {
    display: none !important;
  }

  .watch-title {
    font-size: 1.1em;
  }

  .watch-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-tabsWrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .three-thumbs-row {
    grid-template-columns: 1fr;
  }

  .watch-meta {
    gap: 8px;
  }

  .watch-categories {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================================
   19. AUTH MODALS + USER MENU
   ============================================================ */

/* Auth buttons */
.auth-buttons,
.js-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-btn.signin {
  color: #bbb;
  background: transparent;
  border: 1px solid #363636;
}

.auth-btn.signin:hover {
  color: #fff;
  border-color: #666;
}

.auth-btn.signup {
  color: #fff;
  background: var(--pm-accent);
  border: 1px solid transparent;
}

.auth-btn.signup:hover {
  background: var(--pm-accent-bright);
  box-shadow: var(--pm-glow);
}

/* User menu */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-btn,
.js-user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.user-menu-btn:hover,
.js-user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pm-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.js-user-initial {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.user-menu-name,
.js-username {
  font-size: 13px;
  font-weight: 600;
  color: #bbb;
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-menu-arrow {
  width: 14px;
  height: 14px;
  fill: #888;
  transition: transform 0.2s;
}

.user-menu.open .user-menu-arrow {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--member-menu-bg);
  border-radius: 10px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: var(--pm-shadow-lg);
  z-index: 100;
  display: none;
}

.user-menu.open .user-menu-dropdown {
  display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown .logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.15s, background 0.15s;
}

.user-menu-dropdown a {
  color: #bbb;
}

.user-menu-dropdown a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.user-menu-dropdown svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
}

.divider {
  height: 1px;
  background: var(--pm-border);
  margin: 4px 0;
}

.logout-btn {
  color: #f87171;
}

.logout-btn:hover {
  color: #ff8585;
  background: rgba(248, 113, 113, 0.08);
}

/* Auth modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 1px;
  z-index: 2000001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.auth-modal.show,
.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-inner {
  max-width: 420px;
  min-width: 320px;
  width: 100%;
  background: var(--modal-bg);
  padding: 28px 24px;
  border-radius: 16px;
  position: relative;
}

.close-btn {
  position: absolute;
  width: 24px;
  height: 24px;
  right: 16px;
  top: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: fill 0.3s;
}

.close-btn:hover svg {
  fill: var(--pm-accent);
}

.modal-content {
  position: relative;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-modal);
  width: 100%;
  padding: 32px;
  border-radius: 16px;
  margin: auto;
  max-width: 500px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-right: 30px;
}

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #bbb;
  font-size: 13px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid #2e2e34;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--pm-accent);
}

.error-message {
  color: #f87171;
  font-size: 12px;
  margin-top: 4px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--pm-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--pm-accent-bright);
  box-shadow: var(--pm-glow);
}

.btn-text {
  transition: opacity 0.2s;
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: flex;
}

.form-message {
  text-align: center;
  font-size: 13px;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.form-message.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.form-message.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.form-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.switch-modal {
  color: var(--pm-accent);
  cursor: pointer;
  font-weight: 600;
}

.switch-modal:hover {
  text-decoration: underline;
}

/* Cloudflare Turnstile */
.turnstile-container,
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

/* Login-required overlay */
.login-required {
  text-align: center;
  padding: 20px;
  color: #bbb;
  font-size: 14px;
}

/* ============================================================
   20. FAVORITES / HISTORY PAGE SPECIFIC
   ============================================================ */
.js-toggle-favorite.favorited {
  color: var(--pm-accent) !important;
}

.js-remove-favorite,
.favorite--remove {
  cursor: pointer;
  color: var(--pm-text-muted);
  transition: color 0.2s;
}

.js-remove-favorite:hover,
.favorite--remove:hover {
  color: #f87171;
}

.btn-clear-history,
.watch_history--remove {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #bbb;
  background: transparent;
  border: 1px solid #363636;
  transition: all 0.2s;
}

.btn-clear-history:hover,
.watch_history--remove:hover {
  color: #f87171;
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

/* ============================================================
   21. ALL-CATEGORIES PAGE
   ============================================================ */
.page-all-categories {
  padding-bottom: 32px;
}

.section-desc,
.page-all-categories__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--main-grey-color);
  margin: 0 0 30px 0;
  max-width: 560px;
}

.category-block {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--thumb-box-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-block__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-block__heading .title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: var(--heading-title-color);
}

.link-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--sort-color);
  background: var(--sort-bg);
  padding: 8px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.link-view-more .svg-icon,
.link-view-more .icon-arrow-right {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.link-view-more:hover {
  color: #fff;
  background: var(--pm-accent);
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.4);
}

.category-block__empty {
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  color: var(--main-grey-color);
  font-size: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.category-block__empty p {
  margin: 0;
  color: var(--main-grey-color);
  font-size: 14px;
}

.category-block__empty--full {
  margin: 0;
  width: 100%;
  background: var(--thumb-box-bg);
  border-radius: 12px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.04);
}

.link-view-more--mobile {
  display: none;
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .page-all-categories__desc {
    font-size: 13px;
  }

  .category-block {
    padding: 20px 16px;
  }

  .category-block__heading .title {
    font-size: 18px;
  }

  .category-block__heading .link-view-more {
    display: none;
  }

  .link-view-more--mobile {
    display: inline-flex;
  }
}

@media (max-width: 435px) {
  .category-block {
    padding: 16px 12px;
  }
}

/* ============================================================
   22. UTILITIES
   ============================================================ */

/* Generic btn */
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--btn-bg);
  border-radius: 10px;
  padding: 10px 15px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: var(--btn-color);
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.btn:hover {
  color: #000;
  background: #ff9900;
  box-shadow: var(--btn-box-shadow);
}

.btn.active {
  background: #ff9900;
  color: #000;
}

/* Load more */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--pm-elevated);
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  color: #bbb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-load-more:hover {
  color: #fff;
  border-color: var(--pm-accent);
  background: rgba(255, 153, 0, 0.08);
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading state */
.loading-state {
  opacity: 0.6;
  pointer-events: none;
}

/* Empty content */
.empty-content {
  padding: 40px 16px;
  text-align: center;
  color: var(--pm-text-muted);
  font-size: 14px;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* ============================================================
   23. SCROLLBAR + SELECTION
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #070709;
}

::-webkit-scrollbar-thumb {
  background: #2e2e34;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pm-accent);
}

::selection {
  background-color: var(--pm-accent);
  color: #fff;
}

::-moz-selection {
  background-color: var(--pm-accent);
  color: #fff;
}

/* ============================================================
   24. ANIMATIONS + KEYFRAMES
   ============================================================ */
@keyframes pm-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered card entrances (premium_dark.css wins) */
.thumbs .thumb:nth-child(1) {
  animation-delay: 0.02s !important;
}

.thumbs .thumb:nth-child(2) {
  animation-delay: 0.05s !important;
}

.thumbs .thumb:nth-child(3) {
  animation-delay: 0.08s !important;
}

.thumbs .thumb:nth-child(4) {
  animation-delay: 0.11s !important;
}

.thumbs .thumb:nth-child(5) {
  animation-delay: 0.14s !important;
}

.thumbs .thumb:nth-child(6) {
  animation-delay: 0.17s !important;
}

.thumbs .thumb:nth-child(7) {
  animation-delay: 0.20s !important;
}

.thumbs .thumb:nth-child(8) {
  animation-delay: 0.23s !important;
}

.thumbs .thumb:nth-child(9) {
  animation-delay: 0.26s !important;
}

.thumbs .thumb:nth-child(10) {
  animation-delay: 0.29s !important;
}

.thumbs .thumb:nth-child(11) {
  animation-delay: 0.32s !important;
}

.thumbs .thumb:nth-child(12) {
  animation-delay: 0.35s !important;
}

/* ============================================================
   25. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   26. RESPONSIVE MEDIA QUERIES (consolidated)
   ============================================================ */

/* Header: tablet */
@media (max-width: 1024px) {
  .header-nav {
    position: relative;
    opacity: 1;
    visibility: visible;
    min-height: auto;
    height: auto;
    top: auto;
  }

  .header-nav .header-inner {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 0;
  }

  .header-nav .header-inner::-webkit-scrollbar {
    display: none;
  }

  .header-holder .header-inner {
    gap: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .header .logo {
    order: 2;
    flex-shrink: 0;
  }

  .header .logo svg {
    width: 160px;
    height: auto;
  }

  .header .search {
    order: 3;
  }

  .menu-icon {
    display: flex;
    order: 1;
  }

  .header-actions {
    display: none;
  }

  .btn-mobile {
    display: flex;
  }

  .search {
    position: absolute;
    justify-content: flex-start;
    width: 100%;
    z-index: 10;
    left: 0;
    max-width: calc(100% - 40px);
    transition: all 0.3s;
    transform: translate(-100%, 0);
    padding: 0 10px;
  }

  .header.search-open .search {
    transform: translate(0, 0);
  }

  .header.search-open .btn-mobile .svg-search {
    opacity: 0;
    transform: scale(0);
  }

  .header.search-open .btn-mobile .svg-icon {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Header: mobile */
@media (max-width: 768px) {
  .header-holder .header-inner {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .menu-icon {
    display: flex;
    flex-shrink: 0;
    order: 1;
  }

  .header .logo {
    order: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .header .logo .js_logo_img {
    width: auto !important;
    max-width: 160px !important;
    height: auto !important;
    display: block;
  }

  .header-actions {
    order: 3;
    flex-shrink: 0;
    display: flex;
    min-width: 0;
    max-width: 50%;
    overflow: hidden;
  }

  .auth-buttons,
  .js-auth-buttons {
    gap: 6px;
    min-width: 0;
  }

  .auth-btn {
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .header-holder .search {
    display: none;
  }

  .header-search-below {
    display: block;
    padding: 8px 0 10px;
  }

  .btn-mobile {
    display: none;
  }

  .header-nav .header-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-nav .header-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .heading .title {
    font-size: 16px !important;
  }

  .thumb {
    border-radius: 8px !important;
  }

  .thumb .title {
    font-size: 12.5px !important;
    padding: 9px 10px 5px !important;
  }

  .thumb-bottom {
    padding: 0 10px 9px !important;
    padding-top: 7px !important;
    gap: 8px;
  }

  .thumb-item {
    font-size: 11px !important;
  }

  .thumb-item-date {
    display: none;
  }

  .pagination {
    gap: 4px;
  }

  .search-below-inner {
    min-height: 38px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  /* .header .logo .js_logo_img {
    max-width: px !important;
  } */

  .header .logo svg {
    width: 115px;
  }

  .search .search-inner {
    height: 36px;
    padding: 0 12px;
  }

  .nav-link {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  .thumb .time {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  .thumb .qualtiy {
    font-size: 8px !important;
    padding: 2px 5px !important;
  }

  .header-actions {
    max-width: 52%;
  }

  .auth-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* ============================================================
   WATCH HISTORY PAGE
   ============================================================ */

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

#empty-content .btn:hover {
  opacity: 0.9;
}

/* Remove-from-history button (on thumb hover) */
.watch_history--remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  z-index: 10;
}

.thumb:hover .watch_history--remove {
  opacity: 1;
}

.watch_history--remove .svg-icon {
  fill: #fff;
  width: 14px;
  height: 14px;
}

.watch_history--remove:hover {
  background: var(--pm-accent);
  transform: scale(1.08);
}

/* Clear All button */
.btn-clear-history {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pm-text-muted);
  background: transparent;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-left: auto;
}

.btn-clear-history .svg-icon {
  fill: currentColor;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-clear-history:hover {
  color: var(--pm-accent);
  border-color: var(--pm-accent);
  background: var(--pm-accent-subtle);
}

/* ============================================================
   CATEGORY GRID (all-categories page)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px 12px;
}

@media (max-width: 1280px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
}

@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 6px; }
}

.cat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 10px;
  min-height: 52px;
  background: linear-gradient(135deg, #1a1a1f 0%, #2a1a08 100%);
  border: 1px solid rgba(255, 153, 0, 0.25);
  transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
  animation: pm-fadeIn 0.28s ease both;
  text-align: center;
}

.cat-card:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.cat-card__name {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}