/*
 * © Atia Hegazy — atiaeno.com
 * Sugar Tube — DigitalEngine High-Density Video Portal
 * Light-first design. Red accent. Inter. Material Symbols.
 */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --font: 'Inter', sans-serif;
  /* Light-first palette */
  --bg-body: #f9f9f9;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-surface: #f3f3f3;
  --bg-input: #eeeeee;
  --bg-hover: #e8e8e8;
  --text: #000;
  --text-dim: #000;
  --text-muted: #000;
  --red: #be0003;
  --red-hover: #e62117;
  --gold: #ffc107;
  --green: #4caf50;
  --blue: #005fa8;
  --border: #e4e4e7;
  --cardbg: #ffe9e9;
  --radius: 4px;
  --radius-lg: 4px;
  --max-w: 1200px;
  --header-h: 67px;
  --sidebar-w: 185px;
  --grid-cols: 3;
  --trans: .15s ease;
}

/* Dark mode override */
body.theme-dark {
  --bg-body: #0b0b0f;
  --bg-header: #111118;
  --bg-card: #16161d;
  --bg-surface: #1c1c24;
  --bg-input: #22222b;
  --bg-hover: #2a2a35;
  --text: #e8e8ec;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --border: #27272a;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--trans)
}

a:hover {
  color: var(--red)
}

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

ul,
ol {
  list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text)
}

input,
select,
textarea {
  font-family: var(--font);
  font-size: 14px
}

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px
}

.flex {
  display: flex
}

.items-center {
  align-items: center
}

.justify-between {
  justify-content: space-between
}

.gap-4 {
  gap: 4px
}

.gap-8 {
  gap: 8px
}

.gap-12 {
  gap: 12px
}

.gap-16 {
  gap: 16px
}

.gap-24 {
  gap: 24px
}

.text-center {
  text-align: center
}

.text-dim {
  color: var(--text-dim)
}

.text-muted {
  color: var(--text-muted)
}

.mt-8 {
  margin-top: 8px
}

.mt-16 {
  margin-top: 16px
}

.mt-24 {
  margin-top: 24px
}

.mb-8 {
  margin-bottom: 8px
}

.mb-16 {
  margin-bottom: 16px
}

.mb-24 {
  margin-bottom: 24px
}

.hidden {
  display: none !important
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0)
}

.material-icons,
.material-icons-outlined,
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 13px;
  transition: all var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff
}

.btn-primary:hover {
  background: var(--red-hover);
  color: #fff
}

.btn-danger {
  background: var(--red);
  color: #fff
}

.btn-danger:hover {
  background: var(--red-hover);
  color: #fff
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text)
}

.btn-secondary:hover {
  background: var(--border)
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim)
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-hover)
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dim);
  transition: all var(--trans);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px
}

/* =============================================
   SITE HEADER (DigitalEngine compact style)
   ============================================= */
.site-header {
  background: var(--bg-header);
  height: var(--header-h);
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 0 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.site-logo .logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.site-logo-image {
  display: block;

  width: 150px;
}

a.footer-logo {
  margin-top: -21px;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo {
  display: block;
  max-height: 28px;
  width: auto;
}

.site-logo .logo-text span {
  color: var(--text)
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex-wrap: nowrap;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background var(--trans), color var(--trans);
}

.header-nav-link:hover {
  color: var(--text);
  background: var(--bg-surface);
}

.header-nav-link .material-symbols-outlined {
  font-size: 16px;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 560px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  /* border: none; */
  border-radius: 5px;
  padding: 0;
  transition: box-shadow var(--trans);
  border: 1px solid #ccc;
}

.header-search:focus-within {
  box-shadow: 0 0 0 1px var(--red)
}

.header-search-icon {
  font-size: 18px;
  color: var(--text-muted);
  margin-left: 12px;
  flex-shrink: 0;
}

.header-search input {
  flex: 1;
  width: 100%;
  padding: 6px 12px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 12px;
  padding-left: 14px;
  height: 32px;
}

.header-search input::placeholder {
  color: var(--text-muted)
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-upload-btn {
  font-size: 0.65rem;
  padding: 4px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-action-btn {
  width: 28px;
  height: 28px;
}

.header-login-wrap {
  display: flex;
  align-items: center;
}

.header-login-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0 6px;
}

.header-login-btn:hover {
  color: var(--text);
}

/* Header Auth Buttons */
.header-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.3px;
}

.header-auth-btn .material-symbols-outlined {
  font-size: 14px;
}

.header-login-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.header-login-btn:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--text-muted);
}

.header-signup-btn {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 48, 64, 0.3);
}

.header-signup-btn:hover {
  background: #ff4757;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(255, 48, 64, 0.4);
}

/* Search type dropdown */
.search-type-dropdown {
  position: relative;
  display: flex;
  align-items: center
}

.search-type-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--trans);
  border-radius: 20px;
  margin-right: 9px;
}

.search-type-btn:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.search-type-btn .material-icons {
  font-size: 20px
}

.search-type-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  display: none;
  z-index: 1001;
  min-width: 160px;
  overflow: hidden;
}

.search-type-menu.show {
  display: block
}

.search-type-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all var(--trans);
}

.search-type-menu button:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.search-type-menu button.active {
  color: var(--red);
  background: rgba(244, 67, 54, .08)
}

.search-type-menu button .material-icons {
  font-size: 18px
}

body.admin-bar .site {
  padding-top: 0;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site {
    padding-top: 0;
  }
}

/* Search button */
.search-btn {
  width: 58px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--red);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--trans);
  flex-shrink: 0;
  border-left: 1px solid #ccc;

  border-top-left-radius: 0;
}

.search-btn:hover {
  background: rgba(244, 67, 54, .1)
}

.search-btn .material-icons {
  font-size: 24px
}

/* Header Nav */
.header-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0
}

.header-nav a {
  padding: 6px 7px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all var(--trans);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
  background: var(--bg-hover)
}

.header-login-wrap {
  position: relative
}

.header-login-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--trans);
}

.header-login-btn:hover {
  color: var(--red)
}

.header-login-btn .material-icons {
  font-size: 16px
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}

.btn-signup:hover {
  background: var(--red-hover);
  transform: translateY(-1px)
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto
}

/* User dropdown */
.header-user-wrap {
  position: relative
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  display: none;
  z-index: 1001;
  overflow: hidden;
}

.header-user-dropdown.open {
  display: block
}

/* ---- Header Notification Dropdown (global - needed on all pages) ---- */
.header-notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-notification-wrap .header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  border-radius: 50%;
  transition: all var(--trans);
}

.header-notification-wrap .header-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.header-notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

.header-notif-dropdown.show {
  display: block;
}

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.notif-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  gap: 12px;
  transition: background 0.2s;
}

.notif-item:hover {
  background: var(--bg-hover);
}

.notif-item .material-symbols-outlined {
  font-size: 20px;
  color: var(--text-muted);
}

.notif-text {
  flex: 1;
  font-size: 14px;
}

.notif-count {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.notif-count:empty {
  display: none;
}

.user-dd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.user-dd-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%
}

.user-dd-name {
  font-size: 13px;
  font-weight: 600
}

.user-dd-email {
  font-size: 11px;
  color: var(--text-muted)
}

.user-dd-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all var(--trans);
}

.user-dd-links a .material-icons {
  font-size: 18px
}

.user-dd-links a:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.user-dd-links a.dd-danger {
  color: var(--red)
}

.user-dd-links a.dd-danger:hover {
  background: rgba(244, 67, 54, .08)
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  overflow: hidden;
  cursor: pointer;
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Categories Bar (sub-header) - hidden in DigitalEngine layout, nav is in sidebar */
.categories-bar {
  display: none;
}

.categories-bar-inner {
  display: flex;
  align-items: center;
  gap: 2px 15px;
  padding: 6px 0;
}

.cat-nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all var(--trans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-nav-item .material-icons,
.cat-nav-item .material-symbols-outlined {
  font-size: 14px
}

.cat-nav-item:hover {
  color: var(--text);
  background: var(--bg-hover)
}

.cat-nav-item.active {
  background: var(--red);
  color: #fff
}

/* Live badge */
.cat-nav-item.live {
  color: var(--red);
}

.cat-nav-item.live:hover {
  background: rgba(244, 67, 54, .1)
}

.live-badge {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .5
  }
}

/* Premium styling */
.cat-nav-item.premium {
  color: var(--gold, #ffc107)
}

.cat-nav-item.premium:hover {
  background: rgba(255, 193, 7, .1)
}

/* Divider */
.cat-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

/* Category links */
.cat-link {
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--trans);
  white-space: nowrap;
}

.cat-link:hover {
  color: var(--text);
  background: var(--bg-hover)
}

.cat-link.active {
  background: var(--red);
  color: #fff
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none
}

.mobile-search-toggle {
  display: none
}

/* Mobile Navigation Drawer - outside media query so it works on mobile */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.mobile-nav-overlay.active {
  display: block;
  z-index: 10000;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-header);
  z-index: 10001;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 16px 0;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.mobile-nav-close {
  background: var(--red);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close span {
  font-size: 16px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background: var(--bg-hover);
}

.mobile-nav-link .material-symbols-outlined {
  font-size: 16px;
  color: var(--text-muted);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 16px;
}

@media(max-width:768px) {

  .mobile-menu-toggle,
  .mobile-search-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    z-index: 100;
  }

  .mobile-menu-toggle span,
  .mobile-search-toggle span {
    font-size: 22px;
    color: var(--text) !important;
  }

  .header-nav,
  .header-search {
    display: none
  }

  /* Mobile Header */
  .site-header {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px !important;
    z-index: 9999 !important;
    background: var(--bg-header) !important;
    border-bottom: 1px solid var(--border) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* WordPress Admin Bar */
  body.admin-bar .site-header {
    top: 0 !important;
  }

  body.admin-bar {
    padding-top: 0 !important;
  }

  body {
    padding-top: 0 !important;
  }

  .header-inner {
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
    height: 56px;
  }

  .header-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 4px;
  }

  .mobile-menu-toggle {
    order: 1;
  }

  .site-logo {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .mobile-search-toggle {
    order: 3;
  }

  .site-logo .logo-text {
    font-size: 16px;
  }

  .site-logo img {
    max-height: 52px !important;
    width: auto !important;
  }

  .header-tools {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    flex: 1;
  }

  /* Hide desktop auth buttons on mobile - use drawer instead */
  .header-auth-buttons,
  .header-right {
    display: none;
  }

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

  .header-auth-btn .material-symbols-outlined {
    font-size: 16px;
  }

  .header-upload-btn {
    padding: 6px 8px;
  }

  .header-upload-btn span,
  .header-action-btn span {
    font-size: 18px;
  }

  .header-upload-btn,
  .header-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-upload-btn .btn-text {
    display: none;
  }

  /* Mobile Search */
  .header-search.mobile-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
  }

  .tube-layout {
    padding-top: 16px;
  }

  /* Video Grid Mobile */
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }

  .video-card {
    min-width: 0;
  }

  .vc-thumb {
    aspect-ratio: 16/9;
  }

  .vc-info {
    padding: 8px 4px;
  }

  .vc-title {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vc-meta {
    font-size: 10px;
  }

  /* Search page mobile */
  .search-header {
    padding: 12px;
  }

  .search-title {
    font-size: 18px;
  }

  .search-count {
    font-size: 12px;
  }

  .search-tabs {
    padding: 0 12px;
    gap: 4px;
  }

  .search-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Related categories */
  .related-categories {
    padding: 12px;
  }

  .related-cat-tag {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Single video page */
  .sv-player-wrap {
    border-radius: 0;
  }

  .sv-video-wrapper {
    aspect-ratio: 16/9;
  }

  .sv-content {
    padding: 12px;
  }

  .sv-title {
    font-size: 16px;
  }

  .sv-meta-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sv-stats {
    font-size: 12px;
  }

  .sv-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sv-action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Sidebar on mobile - hide or bottom sheet */
  .tube-sidebar {
    display: none;
  }

  .tube-layout.has-sidebar .tube-main {
    margin-left: 0;
    width: 100%;
  }

  /* Footer mobile */
  .site-footer {
    padding: 20px 12px;
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 14px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 12px;
  }

  /* Pagination mobile */
  .pagination {
    gap: 4px;
    padding: 0 8px;
  }

  .pagination-nav-link {
    padding: 0 10px;
    height: 32px;
    font-size: 12px;
  }

  .pagination-page,
  .pagination-dots {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* No results */
  .search-no-results {
    padding: 40px 20px;
  }

  .search-no-results h3 {
    font-size: 18px;
  }

  .search-no-results p {
    font-size: 14px;
  }
}

/* =============================================
   TUBE LAYOUT (sidebar + main) - DigitalEngine
   ============================================= */
.site {
  padding-top: 0;
}

.tube-layout {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

.tube-layout.has-sidebar .tube-main {
  flex: 1;
  min-width: 0;
  margin-left: 0;
}

.tube-layout:not(.has-sidebar) .tube-main {
  flex: 1;
  min-width: 0;
}

/* =============================================
   SIDEBAR (DigitalEngine fixed style)
   ============================================= */
.tube-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 16px 0;
  position: relative;
  left: auto;
  top: auto;
  height: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
  background: var(--bg-body);
  border-right: 1px solid var(--border);
  z-index: 40;
  padding-top: 28px;
}

body.theme-dark .tube-sidebar {
  background: var(--bg-body);
  padding-top: 24px;
}

main#primary {
  padding: 20px;
}

.tube-sidebar::-webkit-scrollbar {
  width: 4px
}

.tube-sidebar::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 10px
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.sidebar-section {
  padding: 0 12px;

}

.sidebar-section:last-child {
  border-bottom: none
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sidebar-section-title .material-icons,
.sidebar-section-title .material-symbols-outlined {
  font-size: 14px;
  color: var(--red);
}

.sidebar-section-subtitle {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 0 4px;
  margin-top: -2px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .15s ease;
  white-space: nowrap;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
}

.sidebar-link .material-icons,
.sidebar-link .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0
}

.sidebar-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.sidebar-link.active {
  color: var(--red);
  background: rgba(190, 0, 3, .06);
  font-weight: 700;
}

/* Category filter in sidebar */
.sidebar-categories {
  padding-top: 2px
}

.sidebar-cat-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sidebar-cat-search .material-icons,
.sidebar-cat-search .material-symbols-outlined {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0
}

.sidebar-cat-search input {
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text);
  width: 100%;
  padding: 0;
}

.sidebar-cat-search input::placeholder {
  color: var(--text-muted)
}

.sidebar-cat-list {

  overflow-y: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cat-list::-webkit-scrollbar {
  display: none;
}

.sidebar-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border-radius: var(--radius);
  transition: background var(--trans), padding-left var(--trans);
}

.sidebar-cat .material-icons {
  font-size: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.sidebar-cat .cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-cat .cat-count {
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0 4px;
  border-radius: var(--radius);
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-cat:hover {
  background: var(--bg-hover);
  padding-left: 10px;
}

.sidebar-cat:hover .cat-name {
  color: var(--red);
}

.sidebar-cat.active {
  background: rgba(190, 0, 3, .06);
  padding-left: 10px;
}

.sidebar-cat.active .cat-name {
  color: var(--red);
}

.cat-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.cat-badge.badge-4k {
  background: var(--gold);
  color: #111
}

.cat-badge.badge-hd {
  background: var(--blue);
  color: #fff
}

.cat-badge.badge-vr {
  background: #e040fb;
  color: #fff
}

.cat-badge.badge-new {
  background: var(--green);
  color: #fff
}

@media(max-width:1024px) {
  .header-brand {
    width: auto;
    flex-basis: auto;
  }

  .header-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tube-sidebar {
    display: none
  }

  .tube-layout.has-sidebar .tube-main {
    margin-left: 0;
  }
}

/* =============================================
   BODY SCROLLBAR (accent color)
   ============================================= */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg-hover);
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-hover);
}

html::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 10px;
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #a00003;
}

.scroll-top-btn .material-symbols-outlined {
  font-size: 20px;
}

/* =============================================
   HOMEPAGE SECTIONS
   ============================================= */
.home-page {
  padding: 16px 16px 40px 24px;
}

/* Filter tags row */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--trans);
}

.filter-tag:hover {
  background: var(--bg-hover);
}

.filter-tag.active {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.filter-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* Recommended Section */
.recommended-section {
  margin-bottom: 32px;
}

.recommended-section .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.recommended-section .section-title .material-symbols-outlined {
  color: var(--red);
  font-size: 1.1rem;
}

/* Recent Videos Section */
.recent-videos-section {
  margin-bottom: 32px;
}

.recent-videos-section .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.recent-videos-section .section-title .material-symbols-outlined {
  color: var(--red);
  font-size: 1.1rem;
}

/* Section Title with Border */
.section-head .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  /* display: block; */
  width: 100%;
}

.section-head .section-title .material-symbols-outlined {
  color: var(--red);
  font-size: 1.1rem;
}

/* Filter Tags Full Width */
.filter-tags {

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.section {
  margin-bottom: 28px
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.section-title {
  font-size: 15px;
  font-weight: 700
}

.section-title .material-icons,
.section-title .material-symbols-outlined {
  color: var(--red);
  margin-right: 6px;
  font-size: 18px
}

.section-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.section-more {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500
}

.section-more:hover {
  color: var(--red)
}

/* Sort Tabs */
.sort-tabs {
  display: flex;
  gap: 2px
}

.sort-tabs a,
.sort-tabs button {
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--trans);
  background: none;
}

.sort-tabs a:hover,
.sort-tabs button:hover {
  color: var(--text);
  background: var(--bg-hover)
}

.sort-tabs a.active,
.sort-tabs button.active {
  background: var(--red);
  color: #fff
}

/* =============================================
   VIDEO GRID
   ============================================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 16px;
}

@media(min-width:768px) {
  .video-grid {
    grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr));
  }
}

/* =============================================
   VIDEO CARD (DigitalEngine dense style)
   ============================================= */
.video-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.video-card:hover .video-title a {
  color: var(--red);
}

/* Thumbnail */
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05)
}

/* Preview video on hover */
.video-thumb .preview-video,
.sv-related-thumb .preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 1;
}

.video-card:hover .preview-video,
.sv-related-card:hover .preview-video {
  opacity: 1;
}

.video-card:hover .preview-video+img,
.sv-related-card:hover .preview-video+img {
  opacity: 0;
}

/* Sprite thumbnail hover (xvideos style) */
.video-thumb .sprite-preview,
.sv-related-thumb .sprite-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.video-card:hover .sprite-preview,
.sv-related-card:hover .sprite-preview {
  opacity: 1
}

/* Badges on thumbnail */
.thumb-badges {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  border-radius: var(--radius);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge-hd {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
}

.badge-4k {
  background: var(--red);
  color: #fff;
}

.badge-new {
  background: var(--red-hover);
  color: #fff;
}

.badge-vr {
  background: var(--blue);
  color: #fff
}

/* Duration */
.thumb-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 1px 4px;
  border-radius: var(--radius);
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
}

/* Rating bar on bottom of thumbnail */
.thumb-rating-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .15);
  z-index: 2;
}

.thumb-rating-bar .fill {
  height: 100%;
  background: var(--green);
  transition: width .3s ease;
}

/* Video Info */
.video-info {
  padding: 0;
}

.video-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.video-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-card-action:hover {
  border-color: var(--red);
  color: var(--red);
}

.video-card-action .material-icons {
  font-size: 16px;
}

.video-card-action--remove-like {
  margin-left: 0;
}

.video-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.video-title a {
  color: var(--text);
  transition: color var(--trans);
}

.video-title a:hover {
  color: var(--red)
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.video-meta .sep {
  color: var(--border)
}

.video-meta .rating {
  color: var(--red);
  font-weight: 900;
}

.video-meta .channel {
  color: var(--text-dim)
}

.video-meta .channel:hover {
  color: var(--red)
}

/* =============================================
   SINGLE VIDEO PAGE (sv- prefix)
   ============================================= */
.single-video-page {
  padding: 0 0 40px
}

/* Player row - full width */
.sv-player-row {
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
}

.player-wrap {
  width: 100%;
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.player-wrap video,
.player-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;

}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.video-placeholder .material-icons {
  font-size: 48px
}

/* Poster preview with play button (when video not available) */
.video-poster-preview {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.video-poster-preview .poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.video-poster-preview .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}

.video-poster-preview:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.video-poster-preview .play-logo {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, color 0.2s;
}

.video-poster-preview:hover .play-logo {
  transform: scale(1.1);
  color: #fff;
}

/* Content + Sidebar layout */
.sv-layout {
  display: flex;
  flex-direction: column;

  margin-top: 0;
}

.sv-top-row,
.sv-bottom-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.sv-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-main--player,
.sv-main--info {
  flex: 1 1 0;
}

.sv-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  padding: 16px;
}

.sv-ref-card {
  background: var(--bg-card);
}

.sv-stats-panel {
  flex: 1 1 320px;
  min-width: 0;
}

.sv-sidebar {
  width: 340px;
  flex-shrink: 0;
  min-width: 0;
}

.sv-sidebar--player,
.sv-sidebar--related {
  width: 340px;
  flex-shrink: 0;
  min-width: 0;
}

@media(min-width:769px) {
  .sv-sidebar--player {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 4px;
  }

  .sv-sidebar--related {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 4px;
  }
}

@media(max-width:768px) {

  .sv-top-row,
  .sv-bottom-row {
    flex-direction: column;
    gap: 16px;
  }

  .sv-layout.container {
    padding: 0 8px;
  }

  .sv-main--player,
  .sv-main--info {
    width: 100%;
  }

  .sv-sidebar,
  .sv-sidebar--player,
  .sv-sidebar--related {
    width: 100%;
    min-width: 0;
  }

  .sv-sidebar--player,
  .sv-sidebar--related {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  /* Player edge-to-edge on mobile */
  .player-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .sv-player-row {
    margin: 0 -8px 12px;
    width: calc(100% + 16px);
  }

  /* Title */
  .sv-title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 10px;
  }

  /* Content card */
  .sv-content-card {
    padding: 12px;
  }

  /* Stats row */
  .sv-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    margin-top: 0;
  }

  .sv-stats-panel,
  .sv-ref-meta,
  .sv-actions {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .sv-ref-meta-left {
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
  }

  .sv-ref-views {
    font-size: 13px;
  }

  /* Actions - horizontal scroll if too many */
  .sv-actions {
    justify-content: flex-start;
    width: 100%;
    flex: 1 1 auto;
    gap: 6px;
    padding-bottom: 2px;
  }

  .sv-action-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
  }

  .sv-action-btn--icon {
    width: 32px;
    min-width: 32px;
    flex: 0 0 32px;
  }

  .sv-action-btn .material-icons {
    font-size: 15px;
  }

  /* Uploader */
  .sv-uploader {
    gap: 10px;
    margin-bottom: 10px;
  }

  .sv-uploader-avatar {
    width: 36px;
    height: 36px;
  }

  .sv-uploader-name {
    font-size: 13px;
  }

  /* Tags */
  .sv-tags {
    gap: 5px;
    margin-bottom: 12px;
  }

  .sv-tag {
    padding: 3px 6px;
    font-size: 9px;
  }

  /* Description */
  .sv-description {
    padding: 12px;
  }

  .sv-desc-content {
    font-size: 12px;
    line-height: 1.55;
  }

  /* Comments */
  .sv-comments {
    padding: 12px;
  }

  .sv-comments-title {
    font-size: 11px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .sv-comments .comment {
    padding: 10px 0;
  }

  .sv-comments .comment-author img {
    width: 28px;
    height: 28px;
  }

  .sv-comments .comment-author .fn {
    font-size: 12px;
  }

  .sv-comments .comment-content {
    font-size: 12px;
  }

  .sv-comments .comment-form input,
  .sv-comments .comment-form textarea {
    padding: 8px 12px;
    font-size: 12px;
  }

  .sv-comments .comment-form .submit {
    padding: 8px 16px;
    font-size: 12px;
  }

  /* Related sidebar */
  .sv-related {
    margin-bottom: 12px;
  }

  .sv-upnext-head {
    margin-bottom: 10px;
  }

  .sv-related-card {
    padding: 6px;
    gap: 8px;
  }

  .sv-related-thumb {
    width: 120px;
  }

  .sv-related-info h4 {
    font-size: 11px;
    line-height: 1.3;
  }

  .sv-related-meta {
    font-size: 9px;
  }

  .sv-related-more {
    padding: 8px 10px;
    font-size: 10px;
  }

  /* Processing status */
  .sv-processing-status {
    padding: 12px;
    margin: 12px 0;
  }

  .sv-processing-header {
    font-size: 12px;
  }

  .sv-job-item {
    font-size: 11px;
    padding: 5px 8px;
  }

  /* Modals */
  .st-modal {
    padding: 8px;
  }

  .st-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: var(--radius-lg);
  }

  .st-modal-header {
    padding: 12px 16px;
  }

  .st-modal-header h3 {
    font-size: 15px;
  }

  .st-modal-body {
    padding: 14px 16px;
  }

  .st-modal-actions {
    gap: 8px;
    margin-top: 14px;
  }

  /* Share modal */
  .share-url-box {
    gap: 6px;
    margin-bottom: 14px;
  }

  .share-url-box input {
    padding: 8px 10px;
    font-size: 12px;
  }

  .btn-copy-share {
    padding: 8px 10px;
  }

  .share-socials {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .share-btn {
    padding: 10px 8px;
    font-size: 11px;
    gap: 6px;
  }

  .share-btn svg,
  .share-btn .material-icons {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  /* Report modal */
  .report-option {
    padding: 10px 12px;
    gap: 10px;
  }

  .report-option .material-icons {
    font-size: 18px;
  }

  .report-option span:last-child {
    font-size: 12px;
  }

  .report-details textarea {
    padding: 10px;
    font-size: 12px;
  }

  .st-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

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

  .sv-player-row {
    margin: 0 -6px 10px;
    width: calc(100% + 12px);
  }

  .sv-title {
    font-size: 15px;
  }

  .sv-stats-row {
    gap: 10px;
  }

  .sv-ref-meta-left {
    gap: 10px;
  }

  .sv-action-btn--icon {
    width: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    height: 30px;
  }

  .sv-action-btn .material-icons {
    font-size: 14px;
  }

  .sv-uploader-avatar {
    width: 32px;
    height: 32px;
  }

  .sv-uploader-name {
    font-size: 12px;
  }

  .sv-tags {
    gap: 4px;
  }

  .sv-tag {
    padding: 2px 5px;
    font-size: 8px;
  }

  .sv-related-thumb {
    width: 100px;
  }

  .sv-related-info h4 {
    font-size: 10px;
  }

  .sv-related-meta {
    font-size: 8px;
  }

  .share-socials {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .share-btn {
    padding: 8px 6px;
    font-size: 10px;
  }

  .share-btn svg,
  .share-btn .material-icons {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }

  .st-modal-body {
    padding: 12px;
  }

  .report-option {
    padding: 8px 10px;
    gap: 8px;
  }

  .report-option .material-icons {
    font-size: 16px;
  }

  .report-option span:last-child {
    font-size: 11px;
  }
}

/* Title */
.sv-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

/* Stats row */
.sv-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.sv-ref-meta {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  flex: 1 1 320px;
}

.sv-ref-meta-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.sv-ref-info-block,
.sv-ref-rating-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sv-ref-info-block {
  gap: 4px;
}

.sv-ref-rating-block {
  gap: 6px;
}

.sv-ref-rating-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.sv-ref-rating-head .material-icons {
  font-size: 14px;
  color: var(--red);
}

.sv-ref-views {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.sv-ref-added {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.sv-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.sv-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim)
}

.sv-stat .material-icons {
  font-size: 16px;
  color: var(--text-muted)
}

.sv-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  color: #111;
}

.sv-rating-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px
}

.sv-rating-bar {
  width: 96px;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden
}

.sv-rating-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px
}

.sv-rating-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--text)
}

/* Processing status */
.sv-processing-status {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 16px auto;
  max-width: 600px
}

.sv-processing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary)
}

.sv-processing-header .material-icons.spinning {
  animation: spin 1s linear infinite;
  color: var(--primary)
}

@keyframes spin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

.sv-progress-pct {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary)
}

.sv-progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0
}

.sv-progress-bar .sv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease
}

.sv-processing-jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.sv-job-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 12px
}

.sv-job-type {
  font-weight: 500;
  color: var(--text)
}

.sv-job-progress {
  color: var(--text-muted)
}

.sv-processing-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted)
}

/* Action buttons */
.sv-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 420px;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sv-actions::-webkit-scrollbar {
  display: none;
}

.sv-actions--primary {
  flex: 0 1 auto;
}

.sv-actions--secondary {
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}

.sv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all var(--trans);
  min-height: 34px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sv-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.sv-action-btn--icon {
  width: 34px;
  min-width: 34px;
  padding: 0;
  justify-content: center;
  gap: 0;
  flex: 0 0 34px;
}

.sv-action-btn.liked {
  color: var(--green);
  background: rgba(76, 175, 80, .12)
}

.sv-action-btn.disliked {
  color: var(--red);
  background: rgba(244, 67, 54, .12)
}

.sv-action-btn.saved {
  color: var(--red);
  background: rgba(244, 67, 54, .08);
  border-color: rgba(244, 67, 54, .25);
}

.sv-action-btn.saved .material-icons,
.sv-action-btn.saved .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: var(--red);
}

.sv-action-btn .material-icons {
  font-size: 16px
}

.sv-action-count {
  display: none;
}

.sv-btn-report:hover {
  color: var(--red)
}

/* Uploader */
.sv-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  background: transparent;
  border-radius: 0;
  margin-bottom: 14px;
}

.sv-uploader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--bg-hover);
  overflow: hidden;
  flex-shrink: 0;
}

.sv-uploader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px
}

.sv-uploader-info {
  flex: 1
}

.sv-uploader-name {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text)
}

.sv-uploader-name:hover {
  color: var(--red)
}

.sv-uploader-name .verified {
  color: var(--blue);
  font-size: 16px
}

.sv-uploader-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted)
}

/* Tags */
.sv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  margin-top: 2px;
}

.sv-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #efefef;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000000;
  transition: all var(--trans);
}

.sv-tag .material-icons {
  font-size: 12px
}

.sv-tag:hover {
  background: #e60b0b;
  color: #fff;
}

/* Description */
.sv-description {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;

}

.sv-description h3 {
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sv-description h3 .material-icons {
  font-size: 18px;
  color: var(--text-dim)
}

.sv-desc-content {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65
}

.sv-comments {
  margin-top: 0;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.sv-comments-title {
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sv-comments-title .material-icons {
  font-size: 18px;
  color: var(--text-dim)
}

/* Sidebar related */
.sv-related {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}

.sv-upnext-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sv-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.sv-sidebar-title .material-icons {
  font-size: 16px;
  color: var(--red);
  opacity: 0.9;
}

.sv-autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sv-toggle-track {
  width: 32px;
  height: 16px;
  padding: 2px;
  border-radius: 999px;
  background: #dedede;
  display: inline-flex;
  align-items: center;
  transition: background var(--trans);
}

.sv-toggle-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  transition: transform var(--trans);
}

.sv-autoplay-toggle.is-on .sv-toggle-track {
  background: var(--red);
}

.sv-autoplay-toggle.is-on .sv-toggle-thumb {
  transform: translateX(16px);
}

.sv-related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sv-related-card {
  display: flex;
  gap: 10px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  padding: 8px;
  margin: 0;
}

.sv-related-card:hover {
  background: var(--bg-hover);
}

.sv-related-thumb {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}

.sv-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.sv-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

.sv-thumb-placeholder .material-icons {
  font-size: 24px;
  color: var(--text-muted)
}

.sv-thumb-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.sv-related-info {
  flex: 1;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sv-related-info h4 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  color: var(--text);
}

.sv-related-meta {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.sv-related-more {
  display: block;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
}

.sv-related-more:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
}

/* Category widget - Compact Design */
.st-category-widget {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-category-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
}

.st-category-widget-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.st-category-widget-title .material-icons {
  font-size: 14px;
  color: var(--red);
}

.st-category-widget-pill {
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(190, 0, 3, .08);
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

/* Categories page wider cards */
.categories-page .st-category-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

@media (max-width: 768px) {
  .categories-page .st-category-grid {
    grid-template-columns: 1fr;
  }
}

.st-category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}

.st-category-card:hover {
  border-color: var(--text-dim);
}

/* Categories page (sidebar style) uses different card look */
.categories-page .st-category-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: background var(--trans), padding-left var(--trans);
}

.categories-page .st-category-card:hover,
.categories-page .st-category-card.is-active {
  background: rgba(190, 0, 3, .04);
  padding-left: 8px;
}

.categories-page .st-category-card:last-child {
  border-bottom: none;
}

.st-category-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(190, 0, 3, .1), rgba(190, 0, 3, .02));
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.st-category-thumb.has-image {
  background: transparent;
}

.st-category-thumb img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.st-category-thumb .material-icons {
  font-size: 16px;
}

.st-category-thumb .fi {
  width: 28px;
  height: 20px;
  border-radius: 3px;
}

.st-category-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-category-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-category-card:hover .st-category-name {
  color: var(--red);
}

.st-category-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.st-category-more {
  display: block;
  padding: 8px 0;
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  transition: color var(--trans), letter-spacing var(--trans);
  margin-top: 4px;
}

.st-category-more:hover {
  color: var(--red);
  letter-spacing: .15em;
}

.sv-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0
}

.sv-comments .comment {
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 42, 53, .5);
}

.sv-comments .comment:last-child {
  border-bottom: none
}

.sv-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sv-comments .comment-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%
}

.sv-comments .comment-author .fn {
  font-size: 13px;
  font-weight: 600
}

.sv-comments .comment-meta {
  font-size: 11px;
  color: var(--text-muted)
}

.sv-comments .comment-content {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5
}

.sv-comments .comment-content p {
  margin: 0 0 6px
}

.sv-comments .comment-reply-link {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sv-comments .comment-reply-link:hover {
  color: var(--red)
}

.sv-comments .comment-respond {
  margin-top: 16px;
  padding-top: 16px;

}

.sv-comments .comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 5px
}

.sv-comments .comment-form input,
.sv-comments .comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
}

.sv-comments .comment-form input:focus,
.sv-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--red)
}

.sv-comments .comment-form .submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.sv-comments .comment-form .submit:hover {
  background: #b91c1c
}

/* Custom Comment List — YouTube Style */
.sv-comments-list {
  list-style: none;
  padding: 0;
  margin: 0
}

.sv-comments-empty {
  text-align: center;
  padding: 16px 10px;
  color: var(--text-muted)
}

.sv-comments-empty .material-icons {
  font-size: 24px;
  margin-bottom: 4px;
  opacity: .5
}

.sv-comments-empty p {
  font-size: 13px;
  margin: 0
}

/* Avatar — square with rounded corners, initial letter */
.sv-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #c5e8f5;
  color: #2a6980;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  line-height: 1;
  font-family: var(--font)
}

body.theme-dark .sv-avatar-initial {
  background: #1e3a47;
  color: #7ec8e3
}

/* Comment row */
.sv-comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  position: relative
}

.sv-comment-item+.sv-comment-item {
  border-top: none
}

.sv-comment-avatar {
  flex-shrink: 0
}

.sv-comment-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 4px
}

.sv-comment-content {
  flex: 1;
  min-width: 0
}

.sv-comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px
}

.sv-comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.sv-comment-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400
}

.sv-comment-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px
}

.sv-comment-text p {
  margin: 0
}

/* "to Username:" prefix on replies */
.sv-reply-to {
  font-weight: 700;
  color: var(--text);
  margin-right: 3px
}

.sv-comment-actions {
  display: flex;
  align-items: center;
  gap: 4px
}

.sv-comment-like-btn,
.sv-comment-dislike-btn,
.sv-comment-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all .12s ease
}

.sv-comment-like-btn:hover,
.sv-comment-dislike-btn:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.sv-comment-delete-btn:hover {
  background: rgba(190, 0, 3, .08);
  color: var(--red)
}

.sv-comment-like-btn .material-icons,
.sv-comment-dislike-btn .material-icons,
.sv-comment-delete-btn .material-icons {
  font-size: 16px
}

.sv-comment-like-btn.sv-comment-liked {
  color: var(--text)
}

.sv-comment-like-count {
  font-size: 12px;
  font-weight: 500
}

.sv-comment-delete-btn {
  margin-left: 4px
}

/* Comment Form Wrapper */
.sv-comment-form-wrapper {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 42, 53, .5)
}

.sv-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.sv-form-group {
  display: flex
}

.sv-form-group input,
.sv-form-group textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px
}

.sv-form-group input:focus,
.sv-form-group textarea:focus {
  outline: none;
  border-color: var(--red)
}

.sv-form-submit {
  display: flex;
  justify-content: flex-end
}

.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease
}

.sv-btn:hover {
  background: #b91c1c
}

.sv-btn .material-icons {
  font-size: 16px
}

/* Reply Thread Styles — YouTube Style */
.sv-replies-list {
  margin-left: 52px
}

.sv-comment-reply-item {
  padding: 8px 0
}

.sv-comment-reply-item .sv-comment-avatar .sv-avatar-initial {
  border-radius: 4px
}

.sv-comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
  transition: all .12s ease
}

.sv-comment-reply-btn:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.sv-comment-reply-btn .material-icons {
  font-size: 16px
}

.sv-original-comment-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 50px;
  transition: all .12s ease
}

.sv-original-comment-link:hover {
  background: var(--bg-hover);
  color: var(--text)
}

/* Load More Comments Button */
.sv-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px
}

.sv-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans)
}

.sv-load-more-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text);
  border-color: transparent
}

.sv-load-more-btn:disabled {
  opacity: .6;
  cursor: default
}

.sv-load-more-btn .material-icons {
  font-size: 18px
}

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

/* Show Replies Button (per top-level comment) */
.sv-show-replies-wrap {
  margin-left: 52px;
  margin-top: 4px
}

.sv-show-replies-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans)
}

.sv-show-replies-btn:hover:not(:disabled) {
  color: var(--text)
}

.sv-show-replies-btn:disabled {
  opacity: .6;
  cursor: default
}

.sv-show-replies-btn .material-icons {
  font-size: 16px
}

/* Inline Reply Form */
.sv-reply-form-wrap {
  margin-top: 10px
}

.sv-reply-form-inner {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.sv-reply-textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  resize: none;
  box-sizing: border-box
}

.sv-reply-textarea:focus {
  outline: none;
  border-color: var(--red)
}

.sv-reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px
}

.sv-reply-cancel-btn,
.sv-reply-submit-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease
}

.sv-reply-cancel-btn {
  background: var(--bg-input);
  color: var(--text-dim)
}

.sv-reply-cancel-btn:hover {
  background: var(--border)
}

.sv-reply-submit-btn {
  background: var(--red);
  color: #fff
}

.sv-reply-submit-btn:hover {
  background: #b91c1c
}

.sv-reply-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed
}

/* Additional Related Videos Section */
.sv-additional-related {

  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sv-additional-related-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sv-section-title {
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-section-title .material-icons {
  font-size: 18px;
  color: var(--text-dim);
}

.sv-additional-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .sv-additional-related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sv-additional-related-list {
    grid-template-columns: 1fr;
  }
}

.sv-additional-related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans);
}

.sv-additional-related-card:hover {
  transform: translateY(-2px);
}

.sv-additional-related-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg-hover);
}

.sv-additional-related-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-additional-related-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
}

.sv-additional-related-info {
  padding: 12px;
}

.sv-additional-related-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-additional-related-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sv-load-more-container {
  margin-top: 20px;
  text-align: center;
}

.sv-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
  min-width: 160px;
}

/* Ensure button is visible by default */
.sv-load-more-container {
  margin-top: 20px;
  text-align: center;
}

.sv-load-more-container .sv-load-more-btn {
  display: inline-flex;
}

.sv-load-more-container .sv-load-more-btn[style*="display: none"] {
  display: none !important;
}

button#load-more-videos {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  background: #ececec;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}

button#load-more-videos:hover {
  background: #e2e2e2;
  color: var(--text);
}

.sv-load-more-btn:hover {
  background: var(--bg-hover);
  border-color: var(--red);
  color: var(--red);
}

.sv-load-more-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.sv-load-more-btn .material-icons {
  font-size: 18px;
}

/* Loading spinner */
.sv-loading-spinner {
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Button spinner - keep small */
.sv-load-more-btn .sv-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  display: inline-block;
  margin: 0;
}


/* Initial loading state */
.sv-loading-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

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

/* Sticky Sidebar */
.sv-sidebar--related {
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.sv-sidebar--related.sticky {
  position: fixed;
  top: 20px;
  width: 320px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* Legacy uploader bar (used in taxonomy templates) */
.uploader-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 16px;
}

.uploader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-hover);
  overflow: hidden;
  flex-shrink: 0;
}

.uploader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.uploader-info {
  flex: 1
}

.uploader-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px
}

.uploader-name .verified {
  color: var(--blue);
  font-size: 16px
}

.uploader-stats {
  font-size: 12px;
  color: var(--text-muted)
}

/* =============================================
   SPONSORED SLOTS
   ============================================= */
.st-spot {
  text-align: center;
  padding: 8px 0;
  min-height: 10px;
}

.st-spot img {
  max-width: 100%;
  height: auto;
  display: inline-block
}

.st-hdr {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 8px 16px
}

.st-ftr {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 8px 16px
}

.st-bplayer {
  margin-bottom: 8px
}

.st-grid {
  grid-column: 1/-1
}

/* =============================================
   CATEGORIES BROWSE PAGE
   ============================================= */
.categories-page {
  padding: 16px 0 40px
}

.cat-page-header {
  margin-bottom: 20px
}

.cat-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cat-page-title-row h1 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cat-page-title-row h1 .material-icons {
  color: var(--red);
  font-size: 24px
}

.cat-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  min-width: 220px;
}

.cat-search-box .material-icons {
  font-size: 18px;
  color: var(--text-muted)
}

.cat-search-box input {
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  font-family: var(--font);
}

.cat-search-box input::placeholder {
  color: var(--text-muted)
}

.alphabet-filter a.disabled {
  opacity: .3;
  pointer-events: none
}

.cat-section {
  margin-bottom: 24px
}

.cat-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cat-section-title .material-icons {
  color: var(--red);
  font-size: 20px
}

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

.category-tile {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.6);
  transition: filter .3s
}

.category-tile:hover img {
  filter: brightness(.8)
}

.cat-tile-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.cat-tile-placeholder span {
  font-size: 46px;
  font-weight: 300;
  color: red;
}

.cat-tile-placeholder .material-icons {
  font-size: 28px;
  color: var(--text-muted)
}

.category-tile .cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.category-tile .cat-count {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, .7)
}

/* =============================================
   MODELS / ACTORS DIRECTORY
   ============================================= */
.model-directory-page {
  padding: 24px 0 40px
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  margin: 0 0 4px;
}

.page-header h1 .material-icons,
.page-header h1 .material-symbols-outlined {
  font-size: 20px;
  color: var(--red);
}

.page-header p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

@media(max-width:640px) {
  .page-header-row {
    flex-direction: column;
    gap: 8px;
  }

  .page-header-row .filter-tags,
  .page-header-row .quality-tabs {
    flex-wrap: wrap;
    margin: 0;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .page-header {
    margin-bottom: 24px;
    margin-top: 20px;
  }

  .xh-right {
    display: flex;
    align-items: center;
    gap: 7px !important;
  }

  .xh-mobile-btn {
    display: none;
    color: #fff;
    margin-top: 11px;
  }

  .xh-header .header-inner {
    gap: 0px !important;
  }
}

.st-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.st-empty .material-icons {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.st-empty h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.st-empty p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  margin: 0 0 4px;
}

.page-header h1 .material-icons,
.page-header h1 .material-symbols-outlined {
  font-size: 20px;
  color: var(--red);
}

.page-header p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.model-directory-page .page-header {
  margin-bottom: 24px
}

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  margin-bottom: 15px;
}

.alphabet-filter a {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-surface);
  transition: all var(--trans);
}

.alphabet-filter a:hover,
.alphabet-filter a.active {
  background: var(--red);
  color: #fff
}

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

.model-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform var(--trans);
}

.model-card:hover {
  transform: translateY(-3px)
}

.model-avatar {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-surface)
}

.model-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.model-info {
  padding: 10px
}

.model-name {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px
}

.verified-badge {
  font-size: 14px;
  color: var(--blue)
}

.model-stats {
  font-size: 11px;
  color: var(--text-muted)
}

/* =============================================
   COUNTRY / TAXONOMY ARCHIVE
   ============================================= */
.archive-header {
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.archive-header h1 {
  font-size: 18px;
  margin: 0
}

.archive-filter select {
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
}

/* =============================================
   LOGIN / REGISTER MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 500px;
  max-width: 95vw;
  position: relative;
}

/* 2-column form layout */
.modal-box .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-box .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.modal-box .form-row .form-group:first-child:last-child {
  flex: 1;
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 600px) {
  .modal-box {
    width: 95vw;
    padding: 24px;
  }

  .modal-box .form-row {
    flex-direction: column;
    gap: 12px;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dim);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.modal-title .material-icons {
  font-size: 24px;
  color: var(--red)
}

.modal-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border)
}

.modal-tabs button {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.modal-tabs button .material-icons {
  font-size: 18px
}

.modal-tabs button.active {
  color: var(--red);
  border-bottom-color: var(--red)
}

/* Social Login Divider in Modal */
.modal-box .social-login-divider {
  position: relative;
  margin: 20px 0;
  text-align: center;
}

.modal-box .social-login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.modal-box .social-login-divider span {
  background: var(--bg-card);
  padding: 0 15px;
  color: var(--text-dim);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Social Login Buttons in Modal */
.modal-box .sugartube-social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.modal-box .social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 10px;
}

.modal-box .social-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--border-hover);
}

.modal-box .social-login-btn:active {
  transform: translateY(0);
}

.modal-box .social-login-btn svg {
  flex-shrink: 0;
}

/* Gmail Button in Modal */
.modal-box .gmail-btn {
  border-color: #dadce0;
  color: #3c4043;
}

.modal-box .gmail-btn:hover {
  border-color: #c2c7c8;
  background: #f8f9fa;
}

/* Twitter Button in Modal */
.modal-box .twitter-btn {
  border-color: #1da1f2;
  color: #1da1f2;
}

.modal-box .twitter-btn:hover {
  border-color: #1a91da;
  background: #f0f8ff;
}

/* Facebook Button in Modal */
.modal-box .facebook-btn {
  border-color: #1877f2;
  color: #1877f2;
}

.modal-box .facebook-btn:hover {
  border-color: #166fe5;
  background: #f0f3ff;
}

/* Loading state for modal social buttons */
.modal-box .social-login-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.modal-box .social-login-btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error state for modal social buttons */
.modal-box .social-login-btn.error {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
}

/* Success state for modal social buttons */
.modal-box .social-login-btn.success {
  border-color: #28a745;
  color: #28a745;
  background: #f8fff8;
}

/* Form */
.st-form .form-msg {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

/* Country Select Styling */
.modal-box select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNiA2TDExIDEiIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.modal-box select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(190, 0, 3, 0.1);
}

.modal-box select option {
  background: var(--bg-surface);
  color: var(--text);
  padding: 8px;
}

/* Gender Radio Buttons Styling */
.modal-box .gender-options {
  flex-wrap: nowrap;
  gap: 12px;
}

.modal-box .gender-options label {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
}

.modal-box .gender-options label:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.modal-box .gender-options input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.modal-box .gender-options input[type="radio"]:checked+span {
  color: var(--red);
  font-weight: 500;
}

.modal-box .gender-options label:has(input[type="radio"]:checked) {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.05);
}

/* Form group adjustments for 2-column layout */
.modal-box .form-row .form-group {
  margin-bottom: 0;
}

.modal-box .form-row .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-box .form-row .form-group label .material-icons {
  font-size: 16px;
  color: var(--text-dim);
}

.st-form .form-msg.show {
  display: block
}

.st-form .form-msg.error {
  background: rgba(244, 67, 54, .1);
  border-color: var(--red);
  color: var(--red);
}

.st-form .form-msg.success {
  background: rgba(76, 175, 80, .1);
  border-color: var(--green);
  color: var(--green);
}

.st-form .form-msg a {
  color: inherit;
  text-decoration: underline
}

.st-form .form-msg a:hover {
  opacity: .8
}

.st-form label .material-icons {
  font-size: 16px;
  color: var(--text-muted)
}

.st-form input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--trans);
}

.st-form input:focus {
  outline: none;
  border-color: var(--red)
}

.st-form small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.st-form .btn-primary {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.st-form .btn-primary .material-icons {
  font-size: 18px
}

/* =============================================
   USER DASHBOARD
   ============================================= */
.dashboard-page {
  padding: 24px 0 60px;
  font-size: 14px;
  letter-spacing: 0;
}

.dashboard-page,
.dashboard-page * {
  letter-spacing: 0 !important;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start
}

.dashboard-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.user-profile-summary {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border)
}

.user-profile-summary img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px
}

.user-display-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0
}

.dashboard-nav li {
  margin-bottom: 4px
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--trans);
}

.dashboard-nav a .material-icons {
  font-size: 18px
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--bg-hover);
  color: var(--red)
}

.dashboard-content {
  flex: 1;
  min-width: 0
}

.dash-section-head {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-section-head h3 {
  font-size: 16px;
  margin: 0
}

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

/* Dashboard Header */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dash-avatar {
  position: relative;
}

.dash-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.dash-avatar .verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 18px;
  padding: 2px;
}

.dash-user-meta h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.dash-user-meta p {
  margin: 4px 0;
  color: var(--text-dim);
  font-size: 14px;
}

.dash-joined {
  font-size: 12px;
  color: var(--text-dim);
}

.dash-header-actions {
  display: flex;
  gap: 12px;
}

/* Stats Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
}

.dash-stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.dash-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius);
  color: var(--accent);
}

.dash-stat-card .stat-icon .material-icons {
  font-size: 24px;
}

.dash-stat-card .stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.dash-stat-card .stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Dashboard Tabs */
.dash-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dash-tab:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.dash-tab.active {
  background: var(--accent);
  color: #000;
}

.dash-tab .material-icons {
  font-size: 18px;
}

/* Dashboard Content */
.dash-content {
  min-height: 400px;
}

.dash-panel {

  animation: fadeIn 0.3s ease;
}

.dash-panel.active {
  display: block;
}

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

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

.dash-panel-header {
  margin-bottom: 24px;
}

.dash-panel-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.dash-panel-header p {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Dashboard Forms */
.dash-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dash-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dash-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.dash-form-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

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

.dash-form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* Dashboard Buttons */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.dash-btn-primary {
  background: var(--accent);
  color: #000;
}

.dash-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.dash-btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.dash-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dash-btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.dash-btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--red);
  border-color: var(--red);
}

/* Video Grid */
.dash-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Empty State */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.dash-empty .material-icons {
  font-size: 48px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.dash-empty p {
  color: var(--text-dim);
  margin: 0 0 20px;
}

/* Logout */
.dash-logout {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
  .dash-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .dash-user-info {
    flex-direction: column;
  }

  .dash-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-tab {
    padding: 10px 16px;
  }



  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:768px) {
  .dashboard-layout {
    flex-direction: column
  }

  .dashboard-sidebar {
    width: 100%;
    position: static
  }
}

/* =============================================
   UPLOAD PAGE
   ============================================= */
.upload-page {
  padding: 24px 0 40px
}

.upload-container {
  max-width: 700px;
  margin: 0 auto
}

.upload-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px
}

.upload-card h1 {
  font-size: 20px;
  margin-bottom: 4px
}

.upload-card .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans);
  margin-bottom: 24px;
  background: var(--bg-surface);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--red);
  background: rgba(244, 67, 54, .05)
}

.drop-zone .material-icons {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 8px
}

.drop-zone input[type="file"] {
  display: none
}

.drop-zone p {
  font-size: 14px;
  color: var(--text-dim)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media(max-width:600px) {
  .form-row {
    grid-template-columns: 1fr
  }
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 5px
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--trans);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red)
}

/* Progress */
.progress-wrap {
  margin-top: 16px
}

.progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden
}

.progress-bar .fill {
  height: 100%;
  background: var(--red);
  width: 0;
  transition: width .3s
}

.progress-text {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px
}

/* =============================================
   PAGINATION (DigitalEngine compact)
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 32px 0;
  padding: 0 16px;
}

.pagination-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.pagination-nav-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.pagination-nav-link .material-icons {
  font-size: 16px;
}

.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 4px;
}

.pagination-pages::-webkit-scrollbar {
  display: none;
}

.pagination-page,
.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
  flex-shrink: 0;
}

.pagination-page:hover {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--text-dim);
}

.pagination-current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 700;
}

.pagination-current:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.pagination-dots {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: default;
  font-weight: 400;
  letter-spacing: 2px;
}

.pagination-dots:hover {
  background: transparent;
  color: var(--text-dim);
  border: none;
}

/* =============================================
   FOOTER (DigitalEngine centered minimal)
   ============================================= */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 0;
  margin-left: 0;
}

body.theme-dark .site-footer {
  background: var(--bg-surface);
}

@media(max-width:1024px) {
  .site-footer {
    margin-left: 0;
  }
}


.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-card {
  min-height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: none;
}

.footer-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.footer-brand-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 32px;
  border-right: 1px solid var(--border);
}

.footer-brand-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 16px;
}

.footer-brand-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.footer-card h3 {
  margin: 0 0 16px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.footer-brand-title {
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.footer-brand-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
}

.footer-link {
  display: block;
  padding: 7px 0;
  padding-top: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--trans);
  text-decoration: none;
  position: relative;
}

.footer-link::before {
  content: none;
}

.footer-link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--red);
  transform: none;
  text-decoration: none;
  padding-left: 0;
}

.footer-link:hover::before {
  width: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
  line-height: 1.5;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-compliance-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-compliance-badges a {
  display: block;
  opacity: 0.7;
  transition: opacity var(--trans);
}

.footer-compliance-badges a:hover {
  opacity: 1;
}

.footer-compliance-badges img {
  display: block;
  height: 19px;
  width: auto;
}

.footer-bottom a {
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--red);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}

.footer-social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer-social-link .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}

.footer-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-icons .material-icons,
.footer-icons .material-symbols-outlined {
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--trans);
}

/* ============================================================
   Ban System Styles
   ============================================================ */

/* Block Button */
.btn-block-user {
  color: var(--text-muted);
  transition: color var(--trans);
}

.btn-block-user:hover {
  color: var(--red);
}

.messages-thread-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Ban Modal */
.modal.st-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: background var(--trans), color var(--trans);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid var(--border);
}

/* Ban Duration Options */
.ban-duration-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ban-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ban-option input[type="radio"] {
  margin: 0;
}

.ban-option span {
  color: var(--text);
}

/* Ban Reason */
.ban-reason {
  margin-top: 20px;
}

.ban-reason label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.ban-reason input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text);
}

.ban-reason input:focus {
  outline: none;
  border-color: var(--red);
}

/* Banned Users List */
.banned-users-container,
.ban-history-container {
  margin-top: 20px;
}

.banned-users-loading,
.ban-history-loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.banned-user-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

.banned-user-item:hover {
  background: var(--bg-surface);
}

.banned-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.banned-user-info {
  flex: 1;
}

.banned-user-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.banned-user-details {
  font-size: 13px;
  color: var(--text-muted);
}

.banned-user-actions {
  display: flex;
  gap: 8px;
}

.btn-unban {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans);
}

.btn-unban:hover {
  background: var(--border);
}

/* Ban History */
.ban-history-section {
  margin-top: 40px;
}

.ban-history-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text);
}

.ban-history-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.ban-history-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.ban-history-detail {
  display: flex;
  gap: 4px;
}

.ban-history-label {
  font-weight: 500;
}

/* Status Badges */
.status-active {
  color: var(--red);
  font-weight: 600;
}

.status-lifted {
  color: var(--green);
  font-weight: 600;
}

/* Rules Notification */
.rules-notification {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background var(--trans);
}

.rules-notification:hover {
  background: #ffe69c;
}

.rules-notification-icon {
  color: #ffc107;
  font-size: 20px;
}

.rules-notification-content {
  flex: 1;
}

.rules-notification-text {
  font-size: 14px;
  color: #856404;
  font-weight: 500;
}

.rules-notification-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: #856404;
  padding: 4px;
  border-radius: 4px;
  transition: background var(--trans);
}

.rules-notification-dismiss:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Rules Popup Modal */
#rules-popup-modal .modal-content {
  max-width: 600px;
}

.rules-popup-content {
  padding: 20px 0;
}

.rules-popup-section {
  margin-bottom: 24px;
}

.rules-popup-section h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
}

.rules-popup-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
}

.rules-popup-section li {
  margin-bottom: 8px;
}

.rules-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rules-popup-dont-show {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Violation Counter Badge */
.violation-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  margin-left: 8px;
}

/* Admin Panel Styles */
.status-active,
.status-lifted {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: rgba(255, 0, 0, 0.1);
  color: var(--red);
}

.status-lifted {
  background: rgba(76, 175, 80, 0.1);
  color: var(--green);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .ban-duration-options {
    gap: 8px;
  }

  .banned-user-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .banned-user-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .ban-history-details {
    flex-direction: column;
    gap: 8px;
  }
}

.footer-icons .material-icons:hover,
.footer-icons .material-symbols-outlined:hover {
  color: var(--red);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 20px 0 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 20px;
  }

  .footer-card {
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
  }

  .footer-card h3 {
    margin: 0;
    padding: 12px 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
  }

  .footer-card h3::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    transition: transform .2s;
  }

  .footer-card.open h3::after {
    transform: rotate(180deg);
  }

  .footer-links {
    display: none;
    padding: 0 0 8px;
    gap: 0;
  }

  .footer-card.open .footer-links {
    display: flex;
  }

  .footer-link {
    padding: 4px 0;
    min-height: auto;
    font-size: 12px;
  }

  .footer-brand-card {
    padding: 12px 16px;
    border-right: none;
  }

  .footer-brand-card .footer-brand-content {
    display: flex;
  }

  .footer-brand-header {
    padding: 0;
  }
}

/* Cookie Consent Banner */
.legal-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, calc(100% - 32px));
  max-width: 760px;
  padding: 14px 16px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
}

.legal-cookie-banner-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.legal-cookie-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--red);
}

.legal-cookie-banner-icon .material-symbols-outlined {
  font-size: 18px;
}

.legal-cookie-banner-copy-wrap {
  min-width: 0;
  flex: 1;
}

.legal-cookie-banner-title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

.legal-cookie-banner-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #000;
}

.legal-cookie-banner-copy a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.legal-cookie-banner-btn {
  min-height: 32px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--trans), background var(--trans), border-color var(--trans);
}

.legal-cookie-banner-btn-secondary {
  background: #f2f2f2;
  color: #111;
}

.legal-cookie-banner-btn-primary {
  background: var(--red);
  color: #fff;
}

.legal-cookie-banner-btn:hover {
  opacity: .92;
}

/* Mobile responsive cookie banner */
@media (max-width: 480px) {
  .legal-cookie-banner {
    bottom: 8px;
    width: calc(100% - 16px);
    max-width: none;
    padding: 12px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .legal-cookie-banner-body {
    gap: 10px;
    margin-bottom: 4px;
  }

  .legal-cookie-banner-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .legal-cookie-banner-icon .material-symbols-outlined {
    font-size: 20px;
  }

  .legal-cookie-banner-title {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .legal-cookie-banner-copy {
    font-size: 12px;
    line-height: 1.4;
  }

  .legal-cookie-banner-actions {
    justify-content: stretch;
    gap: 8px;
    width: 100%;
  }

  .legal-cookie-banner-btn {
    flex: 1;
    min-height: 36px;
    padding: 10px 12px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .legal-cookie-banner {
    padding: 10px;
  }

  .legal-cookie-banner-body {
    gap: 8px;
  }

  .legal-cookie-banner-copy {
    font-size: 11px;
  }

  .legal-cookie-banner-btn {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 10px;
  }
}

/* Dark theme cookie banner */
body.theme-dark .legal-cookie-banner {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

body.theme-dark .legal-cookie-banner-copy {
  color: var(--text-dim);
}

body.theme-dark .legal-cookie-banner-btn-secondary {
  background: var(--bg-input);
  color: var(--text);
}

/* Category Sub-Bar */
.category-sub-bar {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 40;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-sub-bar::-webkit-scrollbar {
  display: none;
}

.category-sub-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: 44px;
}

.category-sub-bar-items {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.category-sub-bar-items::-webkit-scrollbar {
  display: none;
}

.category-sub-bar-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--trans), color var(--trans);
}

.category-sub-bar-item:hover {
  background: var(--bg-hover);
  color: var(--red);
}

.category-sub-bar-item.active {
  background: var(--red);
  color: #fff;
}

.category-sub-bar-more {
  flex-shrink: 0;
  margin-left: 8px;
}

.category-sub-bar-more-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--trans);
}

.category-sub-bar-more-link:hover {
  color: var(--red);
}

.category-sub-bar-more-link .material-symbols-outlined {
  font-size: 16px;
}

/* Mobile responsive category bar */
@media (max-width: 768px) {
  .category-sub-bar {
    top: 0;
  }

  .category-sub-bar-inner {
    padding: 0 12px;
    height: 40px;
  }

  .category-sub-bar-item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .category-sub-bar-more-link {
    padding: 6px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .category-sub-bar-inner {
    padding: 0 8px;
    height: 38px;
  }

  .category-sub-bar-item {
    padding: 6px 10px;
    font-size: 11px;
  }

  .category-sub-bar-more-link {
    padding: 6px 6px;
    font-size: 10px;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:1024px) {
  .tube-sidebar {
    display: none
  }

  .tube-layout.has-sidebar .tube-main {
    margin-left: 0;
  }

  .sv-sidebar {
    width: 300px
  }

  .sv-related-thumb {
    width: 140px
  }
}

@media(max-width:768px) {
  .tube-layout {
    flex-direction: column
  }

  .tube-sidebar {
    display: none
  }

  .tube-sidebar .sidebar-section-title {
    font-size: 11px;
    padding: 6px 8px;
  }

  .tube-sidebar .sidebar-section-title .material-icons {
    font-size: 14px;
  }

  .sidebar-dir-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
  }

  .sidebar-dir-list a {
    font-size: 9px;
    padding: 4px 8px;
  }

  .sidebar-dir-list .material-icons {
    font-size: 12px;
  }

  .sidebar-cat-list {
    max-height: 200px;
    overflow-x: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 0;
  }

  .sidebar-cat-list a {
    font-size: 9px;
    padding: 4px 6px;
  }

  .sidebar-divider {
    margin: 8px 0;
  }

  .tube-layout.has-sidebar .tube-main {
    margin-left: 0;
  }

  .home-page {
    padding: 12px;
  }

  .sv-layout {
    grid-template-columns: 1fr;
  }

  .sv-sidebar {
    width: 100%
  }

  .sv-related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sv-related-card {
    flex-direction: column
  }

  .sv-related-thumb {
    width: 100%
  }

  .sv-actions {
    flex-wrap: wrap
  }

  .sv-stats-row {
    flex-direction: column;
    align-items: flex-start
  }

  .section-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start
  }

  .sort-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sort-tabs a,
  .sort-tabs button {
    flex: 1 1 calc(50% - 3px);
    text-align: left;
    justify-content: start;
    padding: 8px 10px;
    font-size: 11px;
    border-bottom: 1px solid #efe4e4;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .models-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .alphabet-filter {
    flex-wrap: wrap;
    gap: 2px
  }

  .alphabet-filter a {
    padding: 4px 6px;
    font-size: 11px
  }
}

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

  .vc-thumb {
    min-height: 80px;
  }

  .vc-info {
    padding: 6px 2px;
  }

  .vc-title {
    font-size: 11px;
  }

  .header-inner {
    gap: 8px
  }

  .player-wrap {
    aspect-ratio: 16/9
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .models-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .sv-title {
    font-size: 16px
  }

  .sv-action-btn {
    padding: 6px 10px;
    font-size: 11px
  }

  .sv-stats-row {
    gap: 12px;
  }

  .sv-rating-row {
    flex-wrap: wrap;
  }

  .sv-ref-meta {
    gap: 16px;
  }

  .sv-ref-meta-left {
    gap: 16px;
  }

  .sv-actions--secondary {
    margin-top: 6px;
  }

  .sv-action-btn span:not(.material-icons):not(.material-symbols-outlined) {
    display: none
  }

  .sv-action-btn--icon {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .sv-related-list {
    grid-template-columns: 1fr
  }

  .sv-related-card {
    flex-direction: row
  }

  .sv-related-thumb {
    width: 140px
  }

  .sv-uploader {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
  }

  .pagination-pages {
    flex-wrap: wrap;
    justify-content: center
  }
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  align-items: center;
  width: min(420px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-error {
  border-color: var(--red);
  background: var(--bg-card);
  border-left: 4px solid var(--red);
}

.toast-error .toast-icon {
  color: var(--red);
}

.toast-success {
  border-color: var(--green);
  background: var(--bg-card);
  border-left: 4px solid var(--green);
}

.toast-success .toast-icon {
  color: var(--green);
}

.toast-warning {
  border-color: var(--gold);
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
}

.toast-warning .toast-icon {
  color: var(--gold);
}

.toast-info .toast-icon {
  color: var(--blue);
}

.toast-info {
  background: var(--bg-card);
  border-left: 4px solid var(--blue);
}

/* =============================================
   MODALS
   ============================================= */
.st-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.st-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
}

.st-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.st-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.st-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.st-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all .2s;
}

.st-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.st-modal-body {
  padding: 20px;
}

.st-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Share Modal */
.share-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 16px 0 8px;
}

.share-section-title:first-of-type {
  margin-top: 0;
}

.share-url-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.share-url-box input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
}

.btn-copy-share {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all .2s;
}

.btn-copy-share:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.share-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  transition: all .2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.share-btn span:last-child {
  font-weight: 500;
}

.share-twitter:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.share-telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #fff;
}

.share-email:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Report Modal */
.report-info {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 14px;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
}

.report-option:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.report-option input {
  display: none;
}

.report-option input:checked+.material-icons {
  color: var(--accent);
}

.report-option:has(input:checked) {
  background: rgba(var(--accent-rgb), .1);
  border-color: var(--accent);
}

.report-option .material-icons {
  color: var(--text-dim);
  font-size: 20px;
}

.report-option span:last-child {
  font-size: 14px;
}

.report-details textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  margin-top: 12px;
}

.report-details textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Buttons */
.st-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.st-btn-primary {
  background: var(--accent);
  color: #fff;
}

.st-btn-primary:hover {
  background: var(--accent-hover);
}

.st-btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.st-btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* =============================================
   SEARCH PAGE - xHamster Style
   ============================================= */
.search-layout {
  padding-top: 16px;
}

.search-sidebar {
  width: 240px;
}

.search-sidebar .sidebar-section {
  padding: 0 16px;
}

.sidebar-categories .sidebar-section-title {
  padding: 0 16px 4px 12px;
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: none;
}

/* Filter Checkboxes */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
}

.filter-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-check .check-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  transition: all var(--trans);
}

.filter-check input:checked+.check-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.filter-check .check-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-check .check-label .material-icons {
  font-size: 16px;
  color: var(--text-muted);
}

/* Filter Chips (Quality) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--trans);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(244, 67, 54, .08);
}

/* Filter Select */
.filter-select-wrap {
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 8px 32px 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
}

.filter-select:focus {
  outline: none;
  border-color: var(--red);
}

.filter-select-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Filter Search Box */
.filter-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-search-box .material-icons {
  font-size: 16px;
  color: var(--text-muted);
}

.filter-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
}

.filter-search-box input::placeholder {
  color: var(--text-muted);
}

/* Toggle Switch */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.vr-badge {
  padding: 1px 5px;
  background: #e040fb;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
}

.toggle-switch {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: var(--bg-hover);
  border-radius: 11px;
  position: relative;
  transition: background var(--trans);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--trans);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.toggle-switch:checked+.toggle-slider {
  background: var(--red);
}

.toggle-switch:checked+.toggle-slider::after {
  transform: translateX(18px);
}

/* Search Main Content */
.search-main {
  padding-left: 24px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.search-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Tabs */
.search-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.search-tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: all var(--trans);
}

.search-tab:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.search-tab.active {
  color: var(--red);
  background: rgba(244, 67, 54, .08);
}

.premium-tab {
  color: var(--gold);
}

.premium-tab:hover {
  background: rgba(255, 193, 7, .1);
}

.premium-tab .material-icons {
  font-size: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Related Categories */
.related-categories {
  margin-bottom: 20px;
}

.related-cats-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.related-cats-scroll::-webkit-scrollbar {
  display: none;
}

.related-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all var(--trans);
}

.related-cat-tag:hover {
  border-color: var(--red);
  color: var(--text);
}

.cat-tag-badge {
  padding: 1px 5px;
  background: var(--bg-hover);
  border-radius: 3px;
  font-size: 10px;
  color: var(--text-muted);
}

.related-cat-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
}

.related-cat-more:hover {
  border-color: var(--red);
  color: var(--red);
}

.related-cat-more .material-icons {
  font-size: 18px;
}

/* Search Grid */
.search-grid {
  margin-top: 20px;
}

/* No Results */
.search-no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.search-no-results h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}

.search-no-results p {
  font-size: 14px;
  color: var(--text-muted);
}

@media(max-width:1024px) {
  .search-sidebar {
    display: none;
  }

  .search-main {
    padding-left: 0;
  }
}

/* =============================================
   MODELS/PORNSTARS PAGE - xHamster Style
   ============================================= */
.models-layout {
  padding-top: 16px;
}

@media(max-width:768px) {
  .models-layout {
    padding-top: 56px;
  }

  .models-header {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .models-title {
    font-size: 20px;
  }

  .models-sort-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .alphabet-filter {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.models-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.models-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.models-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.models-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sort Tabs */
.models-sort-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sort-tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--trans);
}

.sort-tab:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.sort-tab.active {
  color: var(--red);
  background: rgba(244, 67, 54, .08);
}

/* Alphabet Filter */
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.alphabet-filter a,
.alphabet-filter span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: all var(--trans);
}

.alphabet-filter a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.alphabet-filter a.active {
  color: #fff;
  background: var(--red);
}

.alphabet-filter span.disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

/* Models Grid */
.models-grid-xh {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

@media(min-width:1200px) {
  .models-grid-xh {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media(max-width:768px) {
  .models-grid-xh {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media(max-width:480px) {
  .models-grid-xh {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Model Card */
.model-card-xh {
  position: relative;
}

.model-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Rank Badge */
.model-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 2;
}

/* Thumbnail */
.model-thumb-xh {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.model-thumb-xh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.model-card-xh:hover .model-thumb-xh img {
  transform: scale(1.05);
}

.model-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
}

.model-thumb-placeholder .material-icons {
  font-size: 48px;
  color: var(--text-muted);
}

/* Verified Badge on Image */
.model-verified-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.model-verified-badge .material-icons {
  font-size: 16px;
  color: #fff;
}

/* Model Info */
.model-info-xh {
  text-align: center;
}

.model-name-xh {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-link:hover .model-name-xh {
  color: var(--red);
}

.model-videos-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* No Results */
.models-no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.models-no-results h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}

.submit_report {
  background: red;

}

.submit_report:hover {
  background: darkred;
}

/* =============================================
   DASHBOARD REDESIGN — PrecisionEngine style
   ============================================= */
.dashboard-page {
  padding: 24px 0 60px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  min-height: calc(100vh - var(--header-h) - 64px);
  display: flex;
  flex-direction: column;
}

.dashboard-brand {
  padding: 4px 6px 12px;
}

.dashboard-brand h2 {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.dashboard-brand p {
  margin: 0;
  font-size: 7px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dashboard-sidebar .dash-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.dash-mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
}

.dash-mobile-menu-toggle .material-icons {
  font-size: 20px;
}

.dash-mobile-menu-toggle:hover {
  background: var(--red-hover);
}

/* Mobile: show toggle, hide menu by default */
@media (max-width: 900px) {
  .dash-mobile-menu-toggle {
    display: flex;
  }

  .dash-tabs {
    display: none;
  }

  .dash-tabs.is-open {
    display: flex;
  }
}

.dashboard-sidebar .dash-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 2px;
  text-align: left;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background var(--trans), color var(--trans), transform var(--trans);
}

.dashboard-sidebar .dash-tab:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.dashboard-sidebar .dash-tab.active {
  background: var(--red);
  color: #fff;
}

.dashboard-sidebar .dash-tab .material-icons {
  font-size: 16px;
  flex-shrink: 0;
}

.dashboard-sidebar-actions {
  margin-top: 28px;
  padding: 0 8px;
}

.dashboard-sidebar-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
}

.dashboard-sidebar-links {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.dashboard-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--trans), color var(--trans);
}

.dashboard-sidebar-links a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.dashboard-sidebar-links .material-icons {
  font-size: 14px;
  flex-shrink: 0;
}

.dashboard-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.dash-avatar {
  position: relative;
  flex-shrink: 0;
}

.dash-avatar img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(190, 0, 3, 0.12);
}

.dash-avatar .verified-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 0 2px var(--bg-card);
}

.dash-user-meta {
  min-width: 0;
}

.dash-user-meta h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
}

.dash-kicker {
  margin: 0 0 6px !important;
  font-size: 9px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
}

.dash-subtitle {
  margin: 8px 0 0 !important;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.dash-user-meta p:nth-of-type(2) {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.dash-joined {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  transition: transform var(--trans), border-color var(--trans);
}

.dash-stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 0, 3, 0.24);
}

.dash-stat-card .stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 0, 3, 0.08);
  border-radius: 2px;
  color: var(--red);
  flex-shrink: 0;
}

.dash-stat-card .stat-icon .material-icons {
  font-size: 18px;
}

.dash-stat-card .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.dash-stat-card .stat-label {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dash-content {
  min-height: 0;
}



.dash-panel.active {
  display: block;
}

.dash-panel-header {
  margin-bottom: 14px;
}

.dash-panel-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.dash-panel-header p {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 11px;
}

.dash-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.dash-form-group input {
  background: var(--bg-surface);
  border-radius: 2px;
}

.dash-profile-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fafafa;
}

.dash-profile-photo-preview {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(190, 0, 3, 0.12);
  background: var(--bg-card);
}

.dash-profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-profile-photo-meta {
  min-width: 0;
  flex: 1;
}

.dash-profile-photo-meta label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}

.dash-profile-photo-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}

.dash-profile-photo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-profile-photo-upload {
  position: relative;
  overflow: hidden;
}

.dash-profile-photo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dash-profile-photo-remove {
  background: transparent;
}

.dash-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}

.dash-alert .material-icons {
  font-size: 18px;
  flex-shrink: 0;
}

.dash-alert--success {
  background: rgba(15, 157, 88, 0.08);
  border-color: rgba(15, 157, 88, 0.18);
  color: #0f9d58;
}

.dash-alert--error {
  background: rgba(190, 0, 3, 0.08);
  border-color: rgba(190, 0, 3, 0.18);
  color: var(--red);
}

.dashboard-table-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dashboard-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.dashboard-toolbar-left,
.dashboard-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-filter-set {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dashboard-filter-pill--label {
  background: #f4f4f4;
}

.dashboard-filter-pill--active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.dashboard-toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.dashboard-selected-count {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dashboard-toolbar-icon,
.dashboard-page-button,
.dashboard-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-card);
  color: var(--text-dim);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.dashboard-toolbar-icon {
  width: 30px;
  height: 30px;
}

.dashboard-toolbar-icon:hover,
.dashboard-page-button:hover,
.dashboard-icon-button:hover {
  background: #f2f2f2;
  color: var(--text);
  border-color: #d9d9d9;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.dashboard-table thead th {
  padding: 14px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dashboard-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}

.dashboard-table tbody tr:hover {
  background: #fafafa;
}

.dashboard-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--text);
}

.dashboard-table-check {
  width: 44px;
  text-align: center;
}

.dashboard-table-checkbox {
  width: 14px;
  height: 14px;
  accent-color: var(--red);
}

.dashboard-table-number,
.dashboard-table-date {
  white-space: nowrap;
}

.dashboard-table-number {
  text-align: right;
  font-weight: 800;
}

.dashboard-table-actions-head,
.dashboard-table-actions {
  text-align: center;
}

.dashboard-video-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-video-thumb {
  position: relative;
  width: 112px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.dashboard-video-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-video-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-muted);
}

.dashboard-video-thumb-empty .material-icons {
  font-size: 34px;
}

.dashboard-duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-video-meta {
  min-width: 0;
}

.dashboard-video-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.dashboard-video-subline {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-tag,
.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-tag {
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-dim);
}

.dashboard-tag--published,
.dashboard-status--published {
  color: #0f9d58;
}

.dashboard-tag--pending,
.dashboard-status--pending {
  color: #f57c00;
}

.dashboard-tag--draft,
.dashboard-status--draft {
  color: #000;
}

.dashboard-tag--private,
.dashboard-status--private {
  color: #be0003;
}

.dashboard-status .material-icons {
  font-size: 14px;
}

.dashboard-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dashboard-icon-button {
  width: 30px;
  height: 30px;
}

.dashboard-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.dashboard-table-caption {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex-wrap: wrap;
  margin: 45px auto;
}

.dashboard-page-button {
  width: 28px;
  height: 28px;
  font-size: 10px;
  font-weight: 900;
  color: var(--text);
}

.dashboard-page-button.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dash-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .dashboard-sidebar .dash-tabs {
    overflow-x: auto;
    flex-direction: row;
    padding-bottom: 2px;
  }

  .dashboard-sidebar .dash-tab {
    white-space: nowrap;
  }

  .dashboard-sidebar-links {
    margin-top: 20px;
  }

  .dash-user-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .dash-profile-photo {
    align-items: flex-start;
    flex-direction: column;
  }

  .dash-user-meta h1 {
    font-size: 24px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-table-toolbar,
  .dashboard-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-toolbar-right,
  .dashboard-toolbar-left {
    flex-wrap: wrap;
  }
}

/* =============================================
   DASHBOARD MODAL
   ============================================= */
.dash-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.dash-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dash-modal-content {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.dash-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.dash-modal-close {
  background: none;
  border: none;
  padding: 4px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-dim);
  transition: all var(--trans);
}

.dash-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.dash-modal-form {
  padding: 20px;
}

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

.dash-modal-form .dash-form-group:last-child {
  margin-bottom: 0;
}

.dash-modal-form .dash-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .dash-modal-content {
    width: 95%;
    margin: 20px;
  }

  .dash-modal-form .dash-form-actions {
    flex-direction: column;
  }

  .dash-modal-form .dash-form-actions .dash-btn {
    width: 100%;
  }
}

/* =============================================
   DASHBOARD ANALYTICS SECTIONS
   ============================================= */
.dash-analytics-section {
  margin-top: 32px;
}

.dash-analytics-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.dash-analytics-chart {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  min-height: 300px;
  height: 300px;
  position: relative;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-dim);
}

.chart-placeholder .material-icons {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.chart-placeholder p {
  font-size: 14px;
  margin: 0;
}

.dash-top-videos {
  display: grid;
  gap: 12px;
}

.dash-top-video-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--trans);
}

.dash-top-video-item:hover {
  border-color: var(--red);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-video-info {
  flex: 1;
  min-width: 0;
}

.top-video-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-video-info p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.top-video-stats {
  display: flex;
  gap: 16px;
}

.top-video-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.top-video-stat .material-icons {
  font-size: 16px;
}

@media (max-width: 768px) {
  .dash-top-video-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .top-video-stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* =============================================
   DASHBOARD QUICK CARDS
   ============================================= */
.dash-quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dash-quick-card {
  display: flex;
  align-items: center;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--trans);
}

.dash-quick-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.quick-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  margin-right: 12px;
  flex-shrink: 0;
}

.quick-card-icon .material-icons {
  font-size: 20px;
  color: var(--red);
}

.quick-card-content {
  flex: 1;
  min-width: 0;
}

.quick-card-content h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px 0;
}

.quick-card-content p {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.quick-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  opacity: 0.5;
  transition: opacity var(--trans);
}

.dash-quick-card:hover .quick-card-arrow {
  opacity: 1;
}

.quick-card-arrow .material-icons {
  font-size: 16px;
  color: var(--text-dim);
}

@media (max-width: 768px) {

  /* Dashboard Layout */
  .dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .dashboard-sidebar {
    position: relative !important;
    top: 0 !important;
    min-height: auto !important;
    padding: 12px !important;
  }

  .dashboard-brand {
    padding: 4px 8px 12px !important;
  }

  .dashboard-brand h2 {
    font-size: 12px !important;
  }

  .dashboard-brand p {
    font-size: 8px !important;
  }

  .dashboard-sidebar .dash-tabs {
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .dashboard-sidebar .dash-tabs.is-open {
    display: flex !important;
  }

  .dashboard-sidebar .dash-tab {
    padding: 10px 12px !important;
    font-size: 11px !important;
    flex: none !important;
    width: 100% !important;
    min-width: auto !important;
  }

  .dashboard-sidebar .dash-tab .material-icons {
    font-size: 14px !important;
  }

  .dashboard-sidebar-links {
    padding-top: 12px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    display: none;
  }

  .dashboard-sidebar-links a {
    padding: 6px 8px !important;
    font-size: 9px !important;
    flex: 1 1 calc(50% - 2px) !important;
  }

  .dashboard-sidebar-links .material-icons {
    font-size: 12px !important;
  }

  /* Dashboard Content */
  .dashboard-content {
    gap: 16px !important;
  }

  /* Stats Cards */
  .dash-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .dash-stat-card {
    padding: 12px !important;
    gap: 10px !important;
  }

  .dash-stat-card .stat-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .dash-stat-card .stat-icon .material-icons {
    font-size: 16px !important;
  }

  .dash-stat-card .stat-value {
    font-size: 16px !important;
  }

  .dash-stat-card .stat-label {
    font-size: 8px !important;
  }

  /* Quick Access Cards */
  .dash-quick-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .dash-quick-card {
    padding: 12px !important;
  }

  .quick-card-icon {
    width: 36px !important;
    height: 36px !important;
    margin-right: 10px !important;
  }

  .quick-card-icon .material-icons {
    font-size: 18px !important;
  }

  .quick-card-content h3 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }

  .quick-card-content p {
    font-size: 11px !important;
  }

  .quick-card-arrow {
    margin-left: 8px !important;
  }

  .quick-card-arrow .material-icons {
    font-size: 16px !important;
  }

  /* Panel Headers */
  .dash-panel-header h2 {
    font-size: 14px !important;
  }

  .dash-panel-header p {
    font-size: 11px !important;
  }

  /* Dashboard Page */
  .dashboard-page {
    padding: 16px 0 40px !important;
  }

  main#primary {
    padding-top: 0;
  }

  .sort-tabs {
    justify-content: center;
  }

  .sv-ref-meta {
    flex: auto;
  }

  .sv-actions {
    flex-wrap: wrap;
    flex: auto;
    justify-content: center;
  }

  .models-title {
    font-size: 21px;


  }
}

/* =============================================
   AUTHOR ARCHIVE PAGE
   ============================================= */

.author-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.author-avatar-wrap {
  flex-shrink: 0;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 23px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  margin-top: 20px;
}

.author-bio {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 16px 0;
  line-height: 1.5;
  max-width: 600px;
}

.author-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-videos-section {
  margin-top: 24px;
}

.author-videos-section .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
}

.author-videos-section .section-title .material-symbols-outlined {
  font-size: 24px;
  color: var(--red);
}

@media (max-width: 768px) {
  .author-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-avatar {
    width: 100px;
    height: 100px;
  }

  .author-name {
    font-size: 24px;
  }

  .author-stats {
    justify-content: center;
    gap: 24px;
  }
}

/* =============================================
   UPLOAD PAGE 2-COLUMN LAYOUT
   ============================================= */
.upload-layout {
  padding: 0;
}

.upload-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-height: calc(100vh - 200px);
}

.upload-form-column {
  flex: 1;
  min-width: 0;
}

.upload-sidebar-column {
  width: 320px;
  flex-shrink: 0;
}

/* Upload form styling */
.upload-form-column .dash-panel {
  height: fit-content;
  max-height: none;
  overflow-y: visible;
}

.upload-form-column .st-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-form-column .form-group {
  margin-bottom: 0;
}

.upload-form-column .form-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.upload-form-column .tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.upload-form-column .tab-btn.active {
  background: var(--red);
  color: white;
}

.upload-form-column .tab-content {
  display: none;
}

.upload-form-column .tab-content.active {
  display: block;
}

.upload-form-column .file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s ease;
  background: var(--bg-surface);
}

.upload-form-column .file-upload-area:hover,
.upload-form-column .file-upload-area.dragover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.02);
}

.upload-form-column .upload-icon {
  margin-bottom: 16px;
}

.upload-form-column .upload-icon .material-icons {
  font-size: 48px;
  color: var(--text-dim);
}

.upload-form-column .upload-text {
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 500;
}

.upload-form-column .upload-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.upload-form-column .radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-form-column .radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.upload-form-column .radio-group label:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.02);
}

.upload-form-column .radio-group input[type="radio"] {
  margin: 0;
}

/* Sidebar styling */
.upload-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-section {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
}

.sidebar-section h3 .material-icons {
  font-size: 18px;
  color: var(--red);
}

.recent-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.thumb-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
}

.thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumb-link:hover img {
  transform: scale(1.05);
}

.thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb-link:hover .thumb-overlay {
  opacity: 1;
}

.thumb-title {
  color: white;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  display: block;
}

.category-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 13px;
}

.category-tag:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.05);
}

.tag-name {
  color: var(--text);
  font-weight: 500;
}

.tag-count {
  color: var(--text-dim);
  font-size: 11px;
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 10px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud-item {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 11px;
}

.tag-cloud-item:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.05);
  color: var(--red);
}

.upload-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-item .material-icons {
  font-size: 18px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-content strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.tip-content p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.no-content {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
  font-style: italic;
}

/* WordPress Widget Style */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

/* Thumbnail Upload Widget */
.thumbnail-upload-area {
  text-align: center;
}

.thumbnail-preview {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-surface);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.thumbnail-preview:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.02);
}

.thumbnail-preview .material-icons {
  font-size: 32px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.thumbnail-preview p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
}

.thumbnail-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

/* Category Selector Widget */
.category-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-dropdown {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 13px;
}

.category-dropdown:focus {
  outline: none;
  border-color: var(--red);
}

.category-info {
  padding: 8px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.category-description {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* Tags Input Widget */
.tags-input-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tags-input-wrapper {
  display: flex;
  gap: 8px;
}

.tags-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 13px;
}

.tags-input:focus {
  outline: none;
  border-color: var(--red);
}

.add-tag-btn {
  padding: 8px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-tag-btn:hover {
  background: #cc0000;
}

.add-tag-btn .material-icons {
  font-size: 16px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--red);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.selected-tag .remove-tag {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.popular-tags {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.popular-tags-title {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 8px 0;
}

.popular-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popular-tag-btn {
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popular-tag-btn:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.05);
  color: var(--red);
}

/* Privacy Widget */
.privacy-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-dropdown {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 13px;
}

.privacy-dropdown:focus {
  outline: none;
  border-color: var(--red);
}

.privacy-info {
  padding: 8px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.privacy-description {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* Sidebar Widgets Styling */
.publish-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publish-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
}

.publish-status .material-icons {
  font-size: 18px;
  color: var(--text-muted);
}

.publish-visibility {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publish-visibility label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.sidebar-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
}

.sidebar-select:focus {
  outline: none;
  border-color: var(--red);
}

.publish-buttons {
  display: flex;
  gap: 8px;
}

.publish-buttons .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* Category Checkboxes */
.category-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label:hover {
  color: var(--red);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

/* Sidebar Tags Input */
.sidebar-tags-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
}

.sidebar-input:focus {
  outline: none;
  border-color: var(--red);
}

/* Featured Image Widget */
.featured-image-area {
  text-align: center;
}

.featured-image-placeholder {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-surface);
}

.featured-image-placeholder:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.02);
}

.featured-image-placeholder .material-icons {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.featured-image-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Upload Progress Widget */
.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  text-align: center;
}

/* File Info Widget */
.file-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.info-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

/* Quick Actions Widget */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--red);
  color: var(--red);
}

.action-btn .material-icons {
  font-size: 16px;
}

.widget-title {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.widget-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.widget-title h3 .material-icons {
  font-size: 16px;
  color: var(--red);
}

.widget-content {
  padding: 20px;
}

/* Guidelines Widget */
.guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guidelines-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  position: relative;
  padding-left: 20px;
}

.guidelines-list li:last-child {
  border-bottom: none;
}

.guidelines-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 8px;
}

.categories-list li a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 13px;
}

.categories-list li a:hover {
  background: var(--bg-hover);
  color: var(--red);
}

/* Tags Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-link {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 500;
}

.tag-link:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.05);
  color: var(--red);
}

.no-tags {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* Help Widget */
.help-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 13px;
}

.help-link:hover {
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.05);
  color: var(--red);
}

.help-link .material-icons {
  font-size: 16px;
  color: var(--red);
}

/* Stats Widget */
.stats-widget {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Upload Layout Responsive */
@media screen and (max-width: 1200px) {
  .upload-wrapper {
    flex-direction: column;
  }

  .upload-sidebar-column {
    width: 100%;
    position: static;
  }
}

@media screen and (max-width: 768px) {
  .upload-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .upload-sidebar-column {
    width: 100%;
    position: static;
  }

  .stats-widget {
    flex-direction: column;
    gap: 15px;
  }

  .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 19px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all var(--trans);
    text-align: center;

    width: 48%;
    margin-bottom: 6px;
  }

  aside.sv-sidebar.sv-sidebar--player {
    display: none;
  }

  button.dsf-geo-btn {
    display: none;
  }

  main#primary {
    padding: 5px;
  }

  .btn-subscribe {
    padding: 7px 8px !important;
    font-size: 11px !important;
  }

  .btn-friend {
    padding: 7px 8px !important;
    font-size: 11px !important;
  }

  .btn-message {

    padding: 7px 8px !important;
    font-size: 11px !important;

  }

  .profile-actions {

    gap: 5px !important;

  }

  .profile-username {
    font-size: 16px;

  }

  /* Friends Table */
  .friends-section {
    width: 100% !important;
    overflow-x: auto;
  }

  .friends-table {
    width: 100% !important;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 10px !important;
  }

  .friends-table th,
  .friends-table td {
    padding: 4px 6px !important;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 10px !important;
  }

  .friends-table th {
    font-size: 9px !important;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
  }

  .friends-table td a {
    color: var(--text);
    font-size: 10px !important;
  }

  .table-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
  }

  .btn-accept,
  .btn-decline {
    padding: 2px 6px !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 9px !important;
    margin-right: 2px;
  }

  .btn-accept {
    background: var(--green, #4caf50);
    color: #fff;
  }

  .btn-decline {
    background: var(--red);
    color: #fff;
  }

  .btn-message-table {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
  }

  .pending-label {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 3px;
  }

}

/* Friends Table - All screen sizes */
.friends-section {
  width: 100% !important;
  overflow-x: auto;
}

.friends-table {
  width: 100% !important;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.friends-table th,
.friends-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.friends-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
}

.friends-table td a {
  color: var(--text);
}

.table-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-accept,
.btn-decline {
  padding: 3px 6px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 2px;
}

.btn-accept {
  background: var(--green, #4caf50);
  color: #fff;
}

.btn-decline {
  background: var(--red);
  color: #fff;
}

.btn-message-table {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
}

.pending-label {
  font-size: 9px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 3px;
}

/* =============================================
   RTL SUPPORT - Arabic
   ============================================= */
body.sugartube-rtl {
  direction: rtl;
  text-align: right;
  font-family: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', Tahoma, Arial, sans-serif;
}

body.sugartube-rtl * {
  box-sizing: border-box;
}

/* Reverse flex directions for RTL */
body.sugartube-rtl .tube-layout.has-sidebar,
body.sugartube-rtl .site-header,
body.sugartube-rtl .primary-nav,
body.sugartube-rtl .site-branding,
body.sugartube-rtl .header-actions,
body.sugartube-rtl .user-menu,
body.sugartube-rtl .category-bar,
body.sugartube-rtl .dash-tabs,
body.sugartube-rtl .sort-tabs,
body.sugartube-rtl .pagination,
body.sugartube-rtl .search-form {
  flex-direction: row-reverse;
}

/* Sidebar RTL */
body.sugartube-rtl .tube-layout.has-sidebar .tube-sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
}

body.sugartube-rtl .tube-sidebar,
body.sugartube-rtl .sidebar-section-title,
body.sugartube-rtl .sidebar-inner {
  text-align: right;
}

body.sugartube-rtl .sidebar-link {
  text-align: right;
  padding: 7px 12px;
}

body.sugartube-rtl .sidebar-link.active {
  border-right: 3px solid var(--red);
  border-left: none;
}

/* Search bar RTL */
body.sugartube-rtl .header-search {
  margin-left: 0;
  margin-right: auto;
}

/* Video cards RTL */
body.sugartube-rtl .video-card {
  text-align: right;
}

body.sugartube-rtl .video-card .video-duration {
  right: 8px;
  left: auto;
}

body.sugartube-rtl .video-card .hd-badge {
  left: 8px;
  right: auto;
}

body.sugartube-rtl .video-meta,
body.sugartube-rtl .video-title {
  text-align: right;
  direction: rtl;
}

/* Sort tabs RTL */
body.sugartube-rtl .sort-tabs a {
  text-align: right;
}

/* Footer RTL */
body.sugartube-rtl .site-footer,
body.sugartube-rtl .footer-section h3,
body.sugartube-rtl .footer-links {
  text-align: right;
}

body.sugartube-rtl .footer-links a,
body.sugartube-rtl .explore-links a,
body.sugartube-rtl .legal-links a,
body.sugartube-rtl .account-links a {
  text-align: right;
  display: block;
}

/* Dropdowns RTL */
body.sugartube-rtl .notification-dropdown,
body.sugartube-rtl .messages-dropdown,
body.sugartube-rtl .profile-dropdown {
  right: auto;
  left: 0;
}

/* Forms RTL */
body.sugartube-rtl input[type="text"],
body.sugartube-rtl input[type="email"],
body.sugartube-rtl input[type="password"],
body.sugartube-rtl input[type="search"],
body.sugartube-rtl textarea {
  text-align: right;
  direction: rtl;
}

body.sugartube-rtl .form-group label {
  text-align: right;
}

body.sugartube-rtl .btn {
  text-align: center;
}

/* Material icons - keep LTR for icons */
body.sugartube-rtl .material-icons,
body.sugartube-rtl .material-symbols-outlined {
  direction: ltr;
}

/* RTL sidebar position */
body.sugartube-rtl.sidebar-position-right .tube-layout.has-sidebar {
  position: relative;
}

body.sugartube-rtl.sidebar-position-right .tube-layout.has-sidebar .tube-sidebar {
  position: absolute;
  right: 0;
  left: auto;
  top: 0;
  width: var(--sidebar-w);
  height: 100%;
  overflow-y: auto;
}

body.sugartube-rtl.sidebar-position-right .tube-layout.has-sidebar .tube-main {
  margin-right: var(--sidebar-w);
  margin-left: 0;
}

body.sugartube-rtl.sidebar-position-left .tube-layout.has-sidebar {
  position: relative;
}

body.sugartube-rtl.sidebar-position-left .tube-layout.has-sidebar .tube-sidebar {
  position: absolute;
  left: 0;
  right: auto;
  top: 0;
  width: var(--sidebar-w);
  height: 100%;
  overflow-y: auto;
}

body.sugartube-rtl.sidebar-position-left .tube-layout.has-sidebar .tube-main {
  margin-left: var(--sidebar-w);
  margin-right: 0;
}

body.sidebar-position-left .sidebar-link.active {
  border-left: 0;
  border-right: none;
}

/* RTL Header */
body.sugartube-rtl .header-inner {
  padding: 0 0 0 16px;
  flex-direction: row-reverse;
}

body.sugartube-rtl .header-brand {
  flex-direction: row-reverse;
}

/* Simple Clean Pagination */
/* pagination desktop override — uses base styles */

/* Card Style Variations */
.card-style-compact {
  --card-padding: 8px;
  --thumb-height: 140px;
  --title-font-size: 13px;
  --meta-font-size: 11px;
}

.card-style-compact .video-thumb {
  height: var(--thumb-height);
  border-radius: 6px;
  overflow: hidden;
}

.card-style-compact .video-info {
  padding: var(--card-padding) 0;
}

.card-style-compact .video-title {
  font-size: var(--title-font-size);
  line-height: 1.3;
  margin: 0 0 4px 0;
}

.card-style-compact .video-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-style-compact .video-meta {
  font-size: var(--meta-font-size);
  gap: 6px;
}

.card-style-compact .thumb-duration {
  font-size: 10px;
  padding: 2px 4px;
}

.card-style-compact .badge {
  font-size: 9px;
  padding: 1px 4px;
}

.card-style-large {
  --card-padding: 12px;
  --thumb-height: 200px;
  --title-font-size: 16px;
  --meta-font-size: 14px;
}

.card-style-large .video-thumb {
  height: var(--thumb-height);
  border-radius: 10px;
  overflow: hidden;
}

.card-style-large .video-info {
  padding: var(--card-padding) 0;
}

.card-style-large .video-title {
  font-size: var(--title-font-size);
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.card-style-large .video-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-style-large .video-meta {
  font-size: var(--meta-font-size);
  gap: 10px;
}

.card-style-large .thumb-duration {
  font-size: 13px;
  padding: 4px 6px;
}

.card-style-large .badge {
  font-size: 11px;
  padding: 3px 6px;
}

.card-style-large .rating {
  font-weight: 600;
}

/* RTL Pagination */
body.sugartube-rtl .pagination-pages {
  direction: ltr;
}

body.sugartube-rtl .pagination {
  direction: rtl;
}

body.sugartube-rtl .site-branding {
  flex-direction: row-reverse;
}

body.sugartube-rtl .primary-nav {
  flex-direction: row-reverse;
}

body.sugartube-rtl .header-tools {
  flex-direction: row-reverse;
}

/* Dating Page Header */
.dating-page-header h1 {
  font-size: 23px !important;
  font-weight: 700;
  border-bottom: 1px solid #d8d0d0;
  padding-bottom: 10px;
}

/* Premium Page */
.premium-page {
  padding: 0;
  max-width: 100%;
}

.premium-hero {
  position: relative;
  padding: 56px 24px 40px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.premium-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, #8b0000 50%, #1a0005 100%);
  opacity: .06;
  z-index: 0;
}

.premium-hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: #fff;
  padding: 4px 14px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.premium-badge .material-icons {
  font-size: 14px;
}

.premium-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.premium-hero-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
}

.premium-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 0;
}

.premium-stat {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
}

.premium-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -.02em;
}

.premium-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

.premium-section {
  padding: 48px 0;

  margin: 0 auto;
}

.premium-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -.01em;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.premium-feature {
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  transition: border-color .15s;
}

.premium-feature:hover {
  border-color: var(--red);
}

.premium-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: rgba(190, 0, 3, .08);
  border-radius: 4px;
}

.premium-feature-icon .material-icons {
  font-size: 20px;
  color: var(--red);
}

.premium-feature h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.premium-feature p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}

.premium-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.pricing-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  position: relative;
  transition: border-color .15s;
}

.pricing-card:hover {
  border-color: var(--text-dim);
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.pricing-card-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-card h3 {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.price {
  font-size: 48px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.04em;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
  margin-right: 1px;
  color: var(--text-dim);
}

.price-cents {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
}

.price-period {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.savings-inline {
  color: var(--red);
  font-weight: 700;
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .material-icons {
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--text);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.pricing-btn:hover {
  background: var(--text);
  color: var(--bg-card);
}

.pricing-btn.primary {
  background: var(--red);
  border: none;
  color: #fff;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: .04em;
}

.pricing-btn.primary:hover {
  background: var(--red-hover);
}

.premium-compare {
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-col {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-head .compare-col {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--bg-surface);
  color: var(--text-dim);
}

.compare-label {
  font-weight: 600;
}

.compare-pro {
  color: var(--red);
  font-weight: 700;
}

.compare-pro .material-icons {
  font-size: 16px;
}

.premium-faq {
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item:hover {
  border-color: var(--text-dim);
}

.faq-item.faq-open {
  border-color: var(--red);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.faq-toggle {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform .2s;
}

.faq-open .faq-toggle {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.premium-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 32px 24px;
  margin: 0 auto;
  max-width: 1008px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.premium-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.premium-trust-item .material-icons {
  font-size: 16px;
  color: var(--red);
}

@media (max-width: 768px) {
  .premium-hero {
    padding: 36px 16px 28px;
  }

  .premium-hero-title {
    font-size: 22px;
  }

  .premium-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-stat-num {
    font-size: 20px;
  }

  .premium-features {
    gap: 10px;
  }

  .premium-pricing {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 40px;
  }

  .premium-compare {
    font-size: 12px;
  }

  .compare-col {
    padding: 10px;
    font-size: 12px;
  }

  .premium-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* Awards Page */
.awards-page {
  padding: 24px 20px;
}

.awards-header {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 32px;
}

.awards-icon {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 16px;
}

.awards-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.awards-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.award-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.award-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-icon .material-icons {
  font-size: 32px;
  color: var(--red);
}

.award-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.award-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.award-status {
  margin-top: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
}

.status-badge.coming-soon {
  background: var(--bg);
  color: var(--text-muted);
}

.awards-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.awards-info h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

.info-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.info-step p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-title a {
  color: var(--text);
  text-decoration: none;
}

.news-title a:hover {
  color: var(--red);
}

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-excerpt {
  font-size: 13px;
  color: var(--text-muted);
}

/* Quality Page */
.quality-page {
  padding: 24px 20px;
}

.quality-tabs {
  display: flex;
  gap: 4px;
}

.quality-tab {
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
}

.quality-tab:hover {
  background: var(--border);
}

.quality-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Quality Page Empty State */
.section-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.section-empty .material-icons {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.section-empty h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.section-empty p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
   XHAMSTER-STYLE HEADER
   ============================================= */

/* Top Header Bar */
.xh-header {
  background: #1a1a1a;
  border-bottom: none;
  height: auto;
}

.header-top-bar {
  background: #1a1a1a;
  padding: 6px 0;
  border-bottom: 1px solid #2a2a2a;
}

.xh-header .header-inner {
  max-width: 1400px;
  padding: 0 20px;
  gap: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Left Section: Logo & Region */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.xh-logo {
  display: flex;
  align-items: center;
}

.xh-logo img {
  height: 69px;
  width: auto;
  max-width: 184px;
  margin-top: -10px;
}

.xh-logo .logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Region/Country Selector */
.header-region {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.header-region:hover {
  background: rgba(255, 255, 255, 0.1);
}

.region-flag {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
}

.region-arrow {
  font-size: 16px;
  color: #999;
}

/* XH Search Bar */
.xh-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  background: #222;
  border: 1px solid #333;
  border-radius: 24px;
  padding: 0 4px 0 18px;
  height: 38px;
  justify-self: center;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-left: 102px;
}

.xh-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(190, 0, 3, 0.15);
}

.xh-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 0;
  height: 100%;
  font-weight: 400;
}

.xh-search input::placeholder {
  color: #666;
}

.xh-search-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.xh-search-btn:hover {
  background: var(--red-hover);
  transform: scale(1.05);
}

.xh-search-btn .material-symbols-outlined {
  font-size: 17px;
}

/* Right Section */
.xh-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Selector */
.header-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #999;
  padding: 6px 10px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  font-size: 12px;
  font-weight: 600;
}

.header-lang:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-lang .material-symbols-outlined {
  font-size: 16px;
}

.lang-code {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lang-arrow {
  font-size: 14px;
  color: #666;
}

/* Icon Buttons */
.xh-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.xh-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.xh-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Badge */
.xh-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: none;
}

.xh-badge.has-unread {
  display: block;
}

/* User Avatar */
.xh-user-wrap {
  position: relative;
}

.xh-user-avatar {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 6px 2px 2px;
  border-radius: 20px;
  transition: background 0.15s;
}

.xh-user-avatar:hover {
  background: rgba(255, 255, 255, 0.08);
}

.xh-user-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
  transition: border-color 0.15s;
}

.xh-user-avatar:hover img {
  border-color: #555;
}

.xh-user-avatar .user-arrow {
  font-size: 14px;
  color: #666;
}

/* Auth Buttons */
.xh-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xh-login-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid #444;
  border-radius: 20px;
  color: #bbb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.xh-login-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #666;
  color: #fff;
}

.xh-login-btn .material-symbols-outlined {
  font-size: 15px;
}

.xh-signup-btn {
  padding: 7px 18px;
  background: var(--red);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.xh-signup-btn:hover {
  background: var(--red-hover);
  transform: scale(1.02);
}

/* Secondary Navigation Bar */
.header-nav-bar {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 0;
}

.nav-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.nav-bar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
}

.nav-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-bar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-bar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-bar-link .material-symbols-outlined {
  font-size: 16px;
}

/* Special badges */
.nav-bar-link.live {
  color: var(--red);
}

.nav-bar-link.live:hover {
  background: rgba(190, 0, 3, 0.1);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.nav-bar-link.heart {
  color: #ff6b9d;
}

.nav-bar-link.heart:hover {
  background: rgba(255, 107, 157, 0.1);
}

.nav-bar-link.premium {
  color: var(--gold);
}

.nav-bar-link.premium:hover {
  background: rgba(255, 193, 7, 0.1);
}

.nav-bar-link.dating {
  color: #69f0ae;
}

.nav-bar-link.dating:hover {
  background: rgba(105, 240, 174, 0.12);
}

/* Upload Button in Nav */
.nav-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--red);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s;
}

.nav-upload-btn:hover {
  background: var(--red-hover);
  color: #fff;
}

.nav-upload-btn .material-symbols-outlined {
  font-size: 16px;
}

/* Mobile Button */
.xh-mobile-btn {
  display: none;
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .xh-header .header-inner {
    gap: 12px;
  }

  .xh-search {
    max-width: 400px;
  }

  .nav-bar-link {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .xh-mobile-btn {
    display: flex;
  }

  .xh-search {
    display: none;
  }

  .header-region,
  .header-lang {
    display: none;
  }

  .xh-user-avatar .user-arrow {
    display: none;
  }

  .header-nav-bar {
    display: none;
  }

  .nav-bar-inner {
    height: 40px;
  }

  .nav-bar-left {
    gap: 2px;
  }

  .nav-bar-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-bar-right {
    display: none;
  }

  .xh-auth-btns {
    gap: 8px;
  }

  .xh-login-btn span,
  .xh-signup-btn {
    display: none;
  }
}

/* =============================================
   XHAMSTER-STYLE SIDEBAR
   ============================================= */

.xh-sidebar {
  background: #16161d;
  width: 185px;
  padding: 8px 0;
}

.xh-sidebar .sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.xh-sidebar .sidebar-section {
  padding: 0;
  margin-bottom: 2px;
}

/* Sidebar Links */
.xh-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  color: #bbb;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-radius: 0;
}

.xh-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.xh-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.xh-link .material-symbols-outlined {
  font-size: 19px;
  color: #888;
  flex-shrink: 0;
  transition: color 0.15s;
}

.xh-link:hover .material-symbols-outlined {
  color: #fff;
}

.xh-link.active .material-symbols-outlined {
  color: var(--red);
}

.xh-link .link-text {
  flex: 1;
}

.xh-link .link-badge {
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

/* Dividers */
.xh-divider {
  height: 1px;
  background: #2a2a35;
  margin: 6px 12px;
}

/* Section Titles */
.xh-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 4px;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.xh-section-title .material-symbols-outlined {
  font-size: 15px;
  color: #666;
}

/* Filter Title */
.xh-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  color: #888;
  font-size: 12px;
  font-weight: 500;
}

.xh-filter-title .material-symbols-outlined {
  font-size: 15px;
}

/* Country Links */
.xh-country-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  color: #bbb;
  font-size: 13px;
  transition: all 0.15s;
}

.xh-country-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.xh-country-link.active {
  color: var(--red);
}

.xh-country-link .country-flag {
  font-size: 14px;
}

.xh-country-link .link-text {
  flex: 1;
}

.xh-country-link .country-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  background: #2a2a35;
  border-radius: 3px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Light theme country link overrides */
body.theme-light .xh-country-link {
  color: #555;
}

body.theme-light .xh-country-link:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
}

body.theme-light .xh-country-link.active {
  color: var(--red);
}

/* Category Search */
.xh-cat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  margin: 4px 12px 6px;
  background: #1c1c24;
  border: 1px solid #2a2a35;
  border-radius: 4px;
}

.xh-cat-search .material-symbols-outlined {
  font-size: 15px;
  color: #666;
}

.xh-cat-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ccc;
  font-size: 12px;
  padding: 0;
}

.xh-cat-search input::placeholder {
  color: #555;
}

/* Category List */
.xh-categories .sidebar-cat-list {
  padding: 0 12px;
}

/* Category items */
.xh-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px;
  color: #999;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.15s;
}

.xh-cat:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.xh-cat.active {
  color: var(--red);
  background: rgba(190, 0, 3, 0.06);
}

.xh-cat .cat-name {
  flex: 1;
}

.xh-cat .cat-indicator {
  font-size: 13px;
  margin-left: 6px;
  flex-shrink: 0;
}

/* All categories link */
.xh-all-categories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-top: 4px;
  color: #bbb;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}

.xh-all-categories:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.xh-all-categories .material-symbols-outlined {
  font-size: 16px;
}

/* Light theme category overrides */
body.theme-light .xh-cat .cat-indicator {
  filter: none;
}

body.theme-light .xh-all-categories {
  color: #666;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
  .xh-sidebar {
    display: none;
  }
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */
.xh-theme-toggle {
  position: relative;
}

.xh-theme-toggle .material-symbols-outlined {
  font-size: 20px;
}

.theme-icon-dark,
.theme-icon-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   LIGHT THEME VARIABLES
   ============================================= */
body.theme-light {
  --bg-body: #fafafa;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-surface: #f0f0f0;
  --bg-input: #e8e8e8;
  --bg-hover: #e0e0e0;
  --text: #000;
  --text-dim: #000;
  --text-muted: #000;
  --border: #d0d0d0;
}

/* Light theme header overrides */
body.theme-light .xh-header,
body.theme-light .header-top-bar,
body.theme-light .header-nav-bar {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.theme-light .xh-logo .logo-text {
  color: #000;
}

body.theme-light .xh-search {
  background: #f5f5f5;
  border-color: #ddd;
}

body.theme-light .xh-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(190, 0, 3, 0.1);
}

body.theme-light .xh-search input {
  color: #000;
}

body.theme-light .xh-search input::placeholder {
  color: #999;
}

body.theme-light .xh-search-btn {
  background: var(--red);
  color: #fff;
}

body.theme-light .xh-search-btn:hover {
  background: var(--red-hover);
}

body.theme-light .header-lang,
body.theme-light .xh-icon-btn {
  color: #666;
}

body.theme-light .xh-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

body.theme-light .xh-login-btn {
  color: #333;
  border-color: #ccc;
}

body.theme-light .xh-login-btn:hover {
  border-color: #999;
  color: #000;
}

body.theme-light .xh-user-avatar img {
  border-color: #ddd;
}

body.theme-light .xh-user-avatar:hover img {
  border-color: #bbb;
}

body.theme-light .nav-bar-link {
  color: #555;
}

body.theme-light .nav-bar-link.heart {
  color: #d6336c;
}

body.theme-light .nav-bar-link.premium {
  color: #c8960c;
}

body.theme-light .nav-bar-link.dating {
  color: #2e8b57;
}

body.theme-light .nav-bar-link:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

body.theme-light .nav-bar-link.active {
  color: #000;
  background: rgba(0, 0, 0, 0.1);
}

body.theme-light .xh-login-btn {
  color: #000;
  border-color: #ccc;
}

body.theme-light .xh-login-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Light theme sidebar overrides */
body.theme-light .xh-sidebar {
    background: #fafafa;
    padding-top: 23px;
}

body.theme-light .xh-link {
  color: #000;
}

body.theme-light .xh-link:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
}

body.theme-light .xh-link.active {
  color: var(--red);
  background: rgba(190, 0, 3, 0.06);
}

body.theme-light .xh-link .material-symbols-outlined {
  color: #888;
}

body.theme-light .xh-link:hover .material-symbols-outlined {
  color: #444;
}

body.theme-light .xh-divider {
  background: #e0e0e0;
}

body.theme-light .xh-section-title {
  color: #888;
}

body.theme-light .xh-section-title .material-symbols-outlined {
  color: #aaa;
}

body.theme-light .xh-cat-search {
  background: #f0f0f0;
  border-color: #ddd;
}

body.theme-light .xh-cat {
  color: #555;
}

body.theme-light .xh-cat:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
}

body.home.blog.wp-theme-sugartube.theme-light.sidebar-position-left {
  background: #fafafa;
}

/* Light theme premium page overrides */
body.theme-light .premium-hero-bg {
  opacity: .05;
}

body.theme-light .pricing-card {
  border-color: #e0e0e0;
}

body.theme-light .pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 12px 40px rgba(190, 0, 3, .08);
}

body.theme-light .pricing-btn {
  border-color: #333;
  color: #333;
}

body.theme-light .pricing-btn:hover {
  background: #333;
  color: #fff;
}

body.theme-light .premium-compare {
  border-color: #e0e0e0;
}

body.theme-light .compare-head .compare-col {
  background: #f5f5f5;
}

/* =============================================
   STANDARD LAYOUT (Non-Fullwidth)
   © Atia Hegazy — atiaeno.com
   ============================================= */
@media screen and (min-width: 1366px) and (max-width: 1535px) {

  /* Override all main containers to 1200px */
  body:not(.fullwidth-layout) .main-wrap,
  body:not(.fullwidth-layout) .header-inner,
  body:not(.fullwidth-layout) .nav-bar-inner,
  body:not(.fullwidth-layout) .tube-layout,
  body:not(.fullwidth-layout) .site-content,
  body:not(.fullwidth-layout) .container,
  body:not(.fullwidth-layout) .wrapper,
  body:not(.fullwidth-layout) .content-area,
  body:not(.fullwidth-layout) .page-content,
  body:not(.fullwidth-layout) .archive-content,
  body:not(.fullwidth-layout) .single-content,
  body:not(.fullwidth-layout) [class*="wrap"],
  body:not(.fullwidth-layout) [class*="container"],
  body:not(.fullwidth-layout) [class*="inner"] {
    max-width: 1346px !important;
  }
}

/* =============================================
   FULLWIDTH LAYOUT
   ============================================= */
body.fullwidth-layout {
  --max-w: 100%;
}

body.fullwidth-layout .header-inner,
body.fullwidth-layout .nav-bar-inner,
body.fullwidth-layout .tube-layout {
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

body.fullwidth-layout .video-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 1920px) {
  body.fullwidth-layout .video-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 2560px) {
  body.fullwidth-layout .video-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* =============================================
   MODERN SINGLE VIDEO LAYOUT (xH-style)
   ============================================= */
.svm-layout {
  padding: 0 0 48px;
}

.svm-player-wrap {
  width: 100%;
  background: #000;
  position: relative;
}

.svm-player-container {
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.svm-player-container video,
.svm-player-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.svm-layout .video-placeholder,
.svm-layout .video-poster-preview {
  width: 100%;
  height: 100%;
}

.svm-layout .player-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.svm-info-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 0 0;
}

.svm-info-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.svm-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.svm-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.svm-stats-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.svm-views {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.svm-added {
  font-size: 12px;
  color: var(--text-muted);
}

.svm-rating-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.svm-vote-bar {
  width: 80px;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 999px;
  overflow: hidden;
}

.svm-vote-fill {
  height: 100%;
  background: var(--red);
  border-radius: 999px;
}

.svm-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.svm-layout .sv-action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--trans);
  white-space: nowrap;
}

.svm-layout .sv-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.svm-layout .sv-action-btn--icon.sv-action-btn {
  width: auto;
  min-width: auto;
  padding: 8px 12px;
}

.svm-layout .sv-action-btn--icon .material-icons {
  font-size: 18px;
}

.svm-layout .btn-like.liked {
  color: var(--red) !important;
  border-color: var(--red) !important;
  background: rgba(190, 0, 3, 0.08) !important;
}

.svm-layout .btn-dislike.disliked {
  color: #666 !important;
  border-color: #555 !important;
  background: rgba(100, 100, 100, 0.08) !important;
}

.svm-layout .btn-fav.saved {
  color: var(--red) !important;
  border-color: var(--red) !important;
  background: rgba(190, 0, 3, 0.08) !important;
}

.svm-layout .btn-watchlater.saved {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
  background: rgba(0, 95, 168, 0.08) !important;
}

.svm-vote-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.svm-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.svm-uploader-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.svm-uploader-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.svm-uploader-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.svm-uploader-name:hover {
  color: var(--red);
}

.svm-uploader-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.svm-verified {
  color: var(--red) !important;
  vertical-align: middle;
}

.svm-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--trans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.svm-subscribe-btn:hover {
  background: var(--red-hover);
  color: #fff;
}

.svm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 4px;
}

.svm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--trans);
}

.svm-tag:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(190, 0, 3, 0.06);
}

.svm-description {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-top: 12px;
}

.svm-description h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.svm-description h3 .material-icons {
  font-size: 18px;
  color: var(--text-muted);
}

.svm-desc-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

.svm-widget-slot {
  max-width: 1280px;
  margin: 16px auto;
}

/* Related section */
.svm-related-section {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0;
}

.svm-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.svm-section-title .material-icons {
  font-size: 22px;
  color: var(--red);
}

.svm-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.svm-related-grid .video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--trans), box-shadow var(--trans);
}

.svm-related-grid .video-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(190, 0, 3, 0.08);
}

.svm-related-grid .video-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  display: block;
}

.svm-related-grid .video-info {
  padding: 8px 10px 10px;
}

.svm-related-grid .video-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svm-related-grid .video-title a {
  color: var(--text);
  text-decoration: none;
}

.svm-related-grid .video-title a:hover {
  color: var(--red);
}

.svm-related-grid .video-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.svm-comments {
  max-width: 1280px;
  margin: 32px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

/* Mobile responsive for modern layout */
@media (max-width: 768px) {
  .svm-info-content {
    padding: 14px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .svm-title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .svm-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  .svm-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: wrap;
  }

  .svm-layout .sv-action-btn--icon.sv-action-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .svm-layout .sv-action-btn--icon .material-icons {
    font-size: 16px;
  }

  .svm-subscribe-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .svm-tags {
    gap: 4px;
  }

  .svm-tag {
    padding: 3px 8px;
    font-size: 10px;
  }

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

  .svm-section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .svm-description {
    padding: 12px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .svm-comments {
    padding: 14px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .svm-title {
    font-size: 15px;
  }

  .svm-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .svm-player-container {
    border-radius: 0;
  }
}

/* Fullwidth support for modern layout */
body.fullwidth-layout .svm-info-wrap,
body.fullwidth-layout .svm-related-section,
body.fullwidth-layout .svm-comments,
body.fullwidth-layout .svm-description,
body.fullwidth-layout .svm-widget-slot {
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}