/* FoxHubX Modern Media Portal CSS */

:root {
  --bg-color: #0c0d10;
  --bg-secondary: #14161d;
  --card-bg: #181a22;
  --card-hover-bg: #222530;
  --border-color: #282c39;

  --theme-color: #ff5500;
  --primary-red: #ff5500;
  --primary-red-hover: #e64a00;
  --primary-red-glow: rgba(255, 85, 0, 0.5);

  --admin-gold: #ffb703;
  --admin-green: #10b981;
  --admin-blue: #3b82f6;

  --text-main: #f0f2f5;
  --text-muted: #9a9ea8;
  --text-dim: #646875;

  --font-family: 'Inter', 'Noto Sans Sinhala', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(255, 85, 0, 0.45);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Global Loader Overlay */
.block-loader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12, 13, 16, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.block-loader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.block-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.block-cube-grid {
  width: 60px;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}

.block-cube-grid .cube {
  width: 100%;
  height: 100%;
  background-color: var(--primary-red);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--primary-red-glow);
  animation: cubeGridScaleDelay 1.3s infinite ease-in-out;
}

.block-cube-grid .c1 {
  animation-delay: 0.2s;
}

.block-cube-grid .c2 {
  animation-delay: 0.3s;
}

.block-cube-grid .c3 {
  animation-delay: 0.4s;
}

.block-cube-grid .c4 {
  animation-delay: 0.1s;
}

.block-cube-grid .c5 {
  animation-delay: 0.2s;
}

.block-cube-grid .c6 {
  animation-delay: 0.3s;
}

.block-cube-grid .c7 {
  animation-delay: 0s;
}

.block-cube-grid .c8 {
  animation-delay: 0.1s;
}

.block-cube-grid .c9 {
  animation-delay: 0.2s;
}

@keyframes cubeGridScaleDelay {

  0%,
  70%,
  100% {
    transform: scale3d(1, 1, 1);
    opacity: 1;
  }

  35% {
    transform: scale3d(0, 0, 1);
    opacity: 0.25;
  }
}

.loader-text {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary-red);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--primary-red-glow);
}

/* AdBlocker Protection Screen Overlay & Centered Modal */
.adblock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(8, 9, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.adblock-overlay.active {
  display: flex !important;
  animation: fadeInAdBlock 0.25s ease forwards;
}

@keyframes fadeInAdBlock {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.adblock-modal {
  margin: auto !important;
  width: 100%;
  max-width: 520px;
  background: #0f1118;
  border: 2px solid #ffaa00;
  border-radius: 24px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.45),
    0 0 15px rgba(255, 85, 0, 0.25),
    inset 0 0 20px rgba(255, 170, 0, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.95);
  position: relative;
  box-sizing: border-box;
  animation: modalPopCenter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopCenter {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.adblock-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.adblock-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 43, 86, 0.08);
  border: 2px solid #ff2b56;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 43, 86, 0.35);
  transition: transform 0.3s ease;
}

.adblock-modal:hover .adblock-icon-circle {
  transform: scale(1.06);
}

.adblock-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
  line-height: 1.25;
}

.adblock-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d5db;
  font-weight: 500;
  margin-bottom: 30px;
  max-width: 440px;
}

.adblock-refresh-btn {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(90deg, #ffaa00 0%, #ff3300 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 85, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.adblock-refresh-btn:hover {
  background: linear-gradient(90deg, #ffb700 0%, #e62e00 100%);
  box-shadow: 0 8px 32px rgba(255, 85, 0, 0.75);
  transform: translateY(-2px);
}

.adblock-refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.4);
}

/* Responsive Scaling for Mobile Screens (< 540px) */
@media (max-width: 540px) {
  .adblock-overlay {
    padding: 16px;
  }

  .adblock-modal {
    padding: 30px 20px 26px;
    border-radius: 20px;
    max-width: 100%;
  }

  .adblock-icon-circle {
    width: 58px;
    height: 58px;
  }

  .adblock-icon-circle svg {
    width: 26px;
    height: 26px;
  }

  .adblock-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .adblock-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .adblock-refresh-btn {
    padding: 12px 20px;
    font-size: 0.88rem;
    border-radius: 12px;
  }
}

/* Full Width Fluid Container & Responsive Wrappers */
.container,
.main-content,
.wrapper,
.section-container,
main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (min-width: 869px) {

  .container,
  .main-content,
  .wrapper,
  .section-container,
  main,
  .category-strip .container,
  .header-inner,
  .admin-banner-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {

  .container,
  .main-content,
  .wrapper,
  .section-container,
  main {
    padding: 0 14px;
  }
}

/* Header & Nav Layout */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(12, 13, 16, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation; /* Disable double-tap-to-zoom for fast tap detection */
  transition: transform 0.2s ease;
}

.logo:active {
  transform: scale(0.96);
}

.logo.logo-secret-holding .logo-png-icon {
  animation: logoSecretPulse 0.8s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 16px var(--admin-gold));
}

.logo.logo-secret-success .logo-png-icon {
  transform: scale(1.25) rotate(360deg);
  filter: drop-shadow(0 0 24px #7af5e8);
  transition: all 0.5s ease;
}

@keyframes logoSecretPulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 0 8px var(--admin-gold));
  }
  to {
    transform: scale(1.18);
    filter: drop-shadow(0 0 22px #ffea00);
  }
}

.logo-png-icon {
  height: 42px;
  width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--primary-red-glow));
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo:hover .logo-png-icon {
  transform: scale(1.1) rotate(4deg);
}

.logo-accent-x {
  color: var(--primary-red);
  font-weight: 900;
  text-shadow: 0 0 12px var(--primary-red-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  padding: 6px 10px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hide mobile-only duplicates and hamburger toggle on Desktop view (>= 1201px) */
@media (min-width: 1201px) {

  .mobile-only-item,
  .mobile-search-toggle-btn,
  .mobile-search-overlay,
  .mobile-search-dropdown,
  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static !important;
    background: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .container,
  .main-content,
  .wrapper,
  .section-container,
  main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }
}

/* Inline Desktop Search Box */
.header-search-wrapper {
  position: relative;
  width: 200px;
  transition: width 0.3s ease;
}

.header-search-wrapper:focus-within {
  width: 240px;
}

.header-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: var(--transition);
}

.header-search-box:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 12px var(--primary-red-glow);
}

.header-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  width: 100%;
}

.header-search-box input::placeholder {
  color: var(--text-dim);
}

/* Search Clear Button & Dropdown Styles */
.inline-search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.inline-search-clear-btn:hover {
  color: var(--primary-red);
}

.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: rgba(14, 16, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
  z-index: 1000;
  overflow: hidden;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown-menu.active {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.search-dropdown-item:hover {
  background: var(--card-hover-bg);
}

.search-dropdown-thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-dropdown-info {
  flex: 1;
  overflow: hidden;
}

.search-dropdown-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.search-dropdown-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.search-dropdown-empty {
  padding: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Theme Color Picker Pill */
.theme-color-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.color-dot-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-dot-btn:hover {
  transform: scale(1.25);
}

.color-dot-btn.active {
  border-color: #fff;
  transform: scale(1.15);
}

.color-dot-btn.color-red {
  background-color: #ff5500;
}

.color-dot-btn.color-purple {
  background-color: #a855f7;
}

.color-dot-btn.color-amber {
  background-color: #ffb703;
}

.color-dot-btn.color-emerald {
  background-color: #10b981;
}

/* Theme Picker Vertical Divider */
.theme-picker-divider {
  width: 1px;
  height: 14px;
  background: var(--border-color);
  margin: 0 4px;
}

/* Theme Mode Toggle Button */
.theme-mode-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
  outline: none;
  line-height: 1;
}

.theme-mode-toggle-btn:hover {
  color: var(--text-main);
  transform: scale(1.2) rotate(15deg);
}

.theme-mode-toggle-btn:active {
  transform: scale(0.92);
}

/* Light / Dark Mode Icon Visibility */
[data-theme="light"] .theme-mode-icon.icon-sun {
  display: none !important;
}

[data-theme="light"] .theme-mode-icon.icon-moon {
  display: block !important;
  color: #6366f1;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

[data-theme="dark"] .theme-mode-icon.icon-moon,
body:not([data-theme="light"]) .theme-mode-icon.icon-moon {
  display: none !important;
}

[data-theme="dark"] .theme-mode-icon.icon-sun,
body:not([data-theme="light"]) .theme-mode-icon.icon-sun {
  display: block !important;
  color: #ffb703;
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.6));
}

/* Admin Active Banner & Controls */
.admin-banner {
  background: linear-gradient(90deg, rgba(20, 22, 29, 0.96) 0%, rgba(30, 25, 20, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 183, 3, 0.35);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.admin-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-status-badge {
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid var(--admin-gold);
  color: var(--admin-gold);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.admin-info-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-act-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  outline: none;
}

.admin-act-pill:active {
  transform: translateY(1px) scale(0.97) !important;
}

.admin-act-pill.publish,
.admin-act-pill.create-btn {
  background: linear-gradient(135deg, #ff4500 0%, #ff2b56 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.45);
}

.admin-act-pill.publish:hover,
.admin-act-pill.create-btn:hover {
  background: linear-gradient(135deg, #ff5714 0%, #ff3b64 100%);
  box-shadow: 0 6px 18px rgba(255, 69, 0, 0.6);
  transform: translateY(-2px);
}

.admin-act-pill.blogger,
.admin-act-pill.api-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.admin-act-pill.blogger:hover,
.admin-act-pill.api-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.admin-act-pill.key,
.admin-act-pill.pin-btn {
  background: #14161d;
  border: 1.5px solid var(--admin-gold);
  color: var(--admin-gold);
  box-shadow: 0 2px 10px rgba(255, 183, 3, 0.15);
}

.admin-act-pill.key:hover,
.admin-act-pill.pin-btn:hover {
  background: rgba(255, 183, 3, 0.2);
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.35);
  transform: translateY(-1px);
}

.admin-act-pill.logout,
.admin-act-pill.logout-btn {
  background: #14161d;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-act-pill.logout:hover,
.admin-act-pill.logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.admin-lock-btn {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--admin-gold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.admin-lock-btn:hover {
  border-color: var(--admin-gold);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

.admin-lock-btn.active {
  display: inline-flex;
  background: var(--admin-gold);
  color: #000;
}

.add-post-btn {
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.add-post-btn:hover {
  background: var(--primary-red-hover);
  box-shadow: var(--shadow-glow);
}

/* Category Strip Bar */
.category-strip {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.category-pill {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover {
  color: #fff;
  border-color: var(--text-muted);
}

.category-pill.active {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 0 14px var(--primary-red-glow);
}

/* Admin Tag Manager Pill Button */
.admin-tag-mgr-btn {
  background: var(--bg-secondary) !important;
  border: 1px dashed var(--admin-gold) !important;
  color: var(--admin-gold) !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.admin-tag-mgr-btn:hover {
  background: rgba(255, 183, 3, 0.15) !important;
  transform: scale(1.05) !important;
}

/* Section Header */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--primary-red);
  border-radius: 2px;
}

/* --- Browse All Categories Modal Styling --- */
#categoriesModal .modal-container {
  max-width: 520px;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border-radius: 16px;
  padding: 24px;
}

.category-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.category-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: center;
}

.category-modal-card:hover {
  border-color: var(--theme-color, var(--primary-red, #8b5cf6));
  background: rgba(139, 92, 246, 0.15);
  background: color-mix(in srgb, var(--theme-color, var(--primary-red, #8b5cf6)) 15%, transparent);
  transform: translateY(-2px);
}

.category-modal-card.active,
.category-modal-card.selected {
  background: var(--theme-color, var(--primary-red, #8b5cf6)) !important;
  border-color: var(--theme-color, var(--primary-red, #8b5cf6)) !important;
  box-shadow: 0 4px 18px var(--primary-red-glow, rgba(139, 92, 246, 0.4));
  transform: scale(1.02);
}

.category-modal-card.active .category-modal-title,
.category-modal-card.selected .category-modal-title,
.category-modal-card.active .category-modal-icon,
.category-modal-card.selected .category-modal-icon {
  color: #ffffff !important;
}

.category-modal-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-modal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
  line-height: 1.2;
}

/* Hero Banner Auto-Switching Carousel System */
.hero-carousel-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090a0f;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 13, 16, 0.95) 0%, rgba(12, 13, 16, 0.4) 50%, rgba(12, 13, 16, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-badge {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
  box-shadow: 0 0 12px var(--primary-red-glow);
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 13, 16, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.hero-nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-nav-btn:hover {
  color: var(--primary-red);
  transform: scale(1.2);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red-glow);
}

/* Responsive Grid System for Video & Photo Cards (.grid-container, .media-grid, .popular-grid, .all-media-grid, .trending-now, .all-time-popular) */
.section-container,
.trending-now,
.all-time-popular,
.all-media-grid,
.media-grid,
.grid-container,
.popular-grid {
  display: grid;
  width: 100% !important;
  max-width: 100% !important;
  gap: 16px;
  box-sizing: border-box;
}

/* 1. Mobile view (below 600px): 1 or 2 items per row */
@media (max-width: 599px) {

  .media-grid,
  .grid-container,
  .popular-grid,
  .all-media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 380px) {

  .media-grid,
  .grid-container,
  .popular-grid,
  .all-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 2. Tablet / Medium view (600px to 1200px): 3 items per row neatly */
@media (min-width: 600px) and (max-width: 1200px) {

  .media-grid,
  .grid-container,
  .popular-grid,
  .all-media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* 3. Widescreen Desktop view (1201px and above): 4 posts per row */
@media (min-width: 1201px) {

  .media-grid,
  .grid-container,
  .popular-grid,
  .all-media-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.video-card .thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-card .thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-wrap img {
  transform: scale(1.04);
}

.video-card .card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.video-card .card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#footerInfoModal,
#adminModal,
#passcodeModal {
  z-index: 9999 !important;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted, #94a3b8);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  outline: none;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 59, 92, 0.18);
  border-color: rgba(255, 59, 92, 0.6);
  color: #ff3b5c;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.35);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

/* Background Homepage Scroll Lock during Active Modal / Video Player */
body.body-fullscreen-active,
body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none;
}

/* Video Lightbox / Single Post View Full Screen System */
.video-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box !important;
}

.video-fullscreen-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.video-fullscreen-container {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  background: var(--bg-color) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: visible !important;
  max-height: none !important;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.video-fullscreen-overlay.active .video-fullscreen-container {
  transform: scale(1);
  opacity: 1;
}

.fullscreen-header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.fullscreen-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fullscreen-header-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.fullscreen-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.fullscreen-close-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .video-fullscreen-overlay {
    padding: 0 !important;
  }

  .video-fullscreen-container {
    max-height: none !important;
    border-radius: 0 !important;
  }

  .fullscreen-header-bar {
    padding: 10px 14px;
    gap: 8px;
  }
}

.fullscreen-back-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Multi-Part Video Container & Part Buttons Styling */
.video-parts-container,
.video-parts-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px 0;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color, #282c39);
  box-sizing: border-box;
  overflow-x: auto;
}

.episodes-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  padding-right: 4px;
}

.part-btn,
.episode-btn {
  background: var(--bg-secondary, #14161d);
  color: var(--text-main, #f0f2f5);
  border: 1.5px solid var(--border-color, #282c39);
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.part-btn:hover,
.episode-btn:hover {
  color: #ffffff;
  border-color: var(--primary-red, #ff5500);
  background: rgba(255, 85, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--primary-red-glow, rgba(255, 85, 0, 0.3));
}

.part-btn.active,
.episode-btn.active {
  background: var(--primary-red, #ff5500) !important;
  color: #ffffff !important;
  border-color: var(--primary-red, #ff5500) !important;
  box-shadow: 0 0 18px var(--primary-red-glow, rgba(255, 85, 0, 0.5)) !important;
  transform: scale(1.04);
}

.post-page-flow-wrapper {
  width: 100%;
  max-width: 92vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

/* Player Container Desktop & Mobile System */
.player-container-wrap {
  width: 100%;
  max-width: 100%;
  margin: 20px auto 16px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .post-page-flow-wrapper {
    max-width: 100%;
  }

  .player-container-wrap {
    padding: 0 12px;
    margin: 12px auto 10px auto;
  }
}

.player-wrapper {
  position: relative;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  min-height: 220px;
  background: #08090c;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.player-wrapper video,
.player-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .player-wrapper {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    min-height: 200px !important;
    border-radius: 12px;
  }

  .player-wrapper video,
  .player-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
  }
}

.player-loading-spinner {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 16, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-loading-spinner .spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: playerSpinnerRotate 0.8s infinite linear;
}

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

/* Photo Collection Horizontal Strip Container (Matching Image 2) */
.photo-collection-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .photo-collection-container {
    width: calc(100% - 32px);
    margin: 0 16px 16px 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }
}

.photo-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.photo-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--admin-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-count-badge {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--admin-gold);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.photo-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  align-items: center;
}

.photo-card {
  flex: 0 0 auto;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.photo-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.photo-card img {
  height: 240px !important;
  width: auto !important;
  max-width: 360px !important;
  object-fit: cover !important;
  border-radius: 12px;
  display: block !important;
}

/* Bottom Center Controls Bar Pill (Matching Image 2) */
.photo-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.photo-controls-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 22, 29, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

.photo-nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: var(--transition);
}

.photo-nav-btn:hover {
  color: var(--primary-red);
  transform: scale(1.2);
}

.photo-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red-glow);
}

.modal-body {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 32px;
  box-sizing: border-box;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 16px;
  }
}

/* Modal Post Metadata & Action Bar */
.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.modal-act-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--primary-red-glow);
}

.modal-act-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* Accent Highlights for Action Buttons */
.modal-act-btn.like-act-btn:hover,
.modal-act-btn.liked {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
  transform: scale(1.04);
}

.modal-act-btn.dislike-act-btn:hover,
.modal-act-btn.disliked {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
  transform: scale(1.04);
}

.modal-act-btn.share-act-btn:hover {
  background: rgba(255, 85, 0, 0.14) !important;
  border-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
  box-shadow: 0 4px 14px var(--primary-red-glow) !important;
}

.modal-act-btn.edit-act-btn {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  color: #3b82f6;
}

.modal-act-btn.edit-act-btn:hover {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45) !important;
}

.modal-act-btn.delete-act-btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.modal-act-btn.delete-act-btn:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45) !important;
}

/* FOXHUBX WATCH ON TELEGRAM BUTTON SYSTEM ([gplink] SHORTCODE) */
.telegram-button-wrapper {
  width: 100%;
  margin: 24px auto 16px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  clear: both;
}

.telegram-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  height: 52px;
  padding: 0 24px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px var(--primary-red-glow);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  border: none;
  outline: none;
}

.telegram-watch-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--primary-red-hover);
  box-shadow: 0 8px 25px var(--primary-red-glow);
  color: #ffffff;
  text-decoration: none;
}

.telegram-watch-btn:active {
  transform: translateY(1px) scale(0.98);
}

.tgw-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #ffffff;
  color: #ffffff;
}

.episodes-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-right: 4px;
}

/* Centered Pagination Bar (Matching Uploaded Screenshot) */
.pagination {
  display: flex;
  justify-content: center;
  margin: 32px 0 24px;
  width: 100%;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-nav-btn:hover:not(:disabled) {
  background: var(--card-hover-bg);
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
}

.page-nav-btn:disabled,
.page-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
}

.page-num-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-num-btn:hover {
  color: #fff;
  border-color: var(--primary-red);
  transform: scale(1.1);
}

.page-num-btn.active {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 0 16px var(--primary-red-glow);
  transform: scale(1.1);
}

.modal-act-btn:hover {
  border-color: var(--primary-red);
}

/* Full-Screen Interactive Photo Viewer Lightbox */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.96);
  backdrop-filter: blur(16px);
  z-index: 3000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.photo-lightbox-overlay.active {
  display: flex;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(12, 13, 16, 0.85);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--admin-gold);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.lightbox-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.1);
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.lightbox-image-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#lightboxMainImg {
  max-height: 82vh;
  max-width: 88vw;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95);
  transition: transform 0.08s ease-out;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.lightbox-nav-btn {
  background: rgba(20, 22, 29, 0.85);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  flex-shrink: 0;
}

.lightbox-nav-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.15);
}

.lightbox-zoom-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 20, 28, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  z-index: 20;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.zoom-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.zoom-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
}

.zoom-btn.reset:hover {
  border-color: var(--admin-gold);
  color: var(--admin-gold);
}

.zoom-level-badge {
  color: var(--admin-gold);
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 48px;
  text-align: center;
}

/* Footer (Homepage & Post View Modal) */
.footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
  text-align: center;
  margin-top: 32px;
  box-sizing: border-box;
}

.footer .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-red);
}

.disclaimer-text {
  color: var(--primary-red);
  font-weight: 800;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Comprehensive Mobile & Tablet Responsive Three-Line Hamburger Design System (<= 1200px) */
@media (max-width: 1200px) {
  .container {
    padding: 0 14px;
  }

  .footer {
    padding: 14px 12px 16px !important;
    margin-top: 20px !important;
  }

  .footer-links {
    gap: 6px 14px !important;
    margin-bottom: 6px !important;
  }

  .footer-link {
    font-size: 0.76rem !important;
  }

  .footer p {
    font-size: 0.70rem !important;
    line-height: 1.35 !important;
  }

  /* Mobile Admin Active Banner Redesign (Fixing Ugly Overflow) */
  .admin-banner {
    padding: 8px 0;
  }

  .admin-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: rgba(18, 20, 28, 0.95);
    border: 1px solid rgba(255, 183, 3, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  }

  .admin-banner-info {
    justify-content: space-between;
    width: 100%;
  }

  .admin-info-text {
    display: none !important;
  }

  .admin-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .admin-act-pill {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Header Navigation (Mobile) */
  .header {
    padding: 8px 0;
  }

  .logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .logo-png-icon {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 8px;
  }

  /* Expandable Mobile Search Button System (Matching foxhubx.blogspot.com) */
  .mobile-search-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-search-toggle-btn:hover,
  .mobile-search-toggle-btn.active {
    background: var(--card-hover-bg);
    color: #fff;
    border-color: var(--primary-red);
  }

  .header-search-wrapper {
    display: none !important;
  }

  .mobile-search-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--bg-color);
    z-index: 1050;
    padding: 0 14px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-search-overlay.active {
    display: flex !important;
    animation: slideDownMobileSearch 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMobileSearch {
    from {
      opacity: 0;
      transform: translateY(-100%);
    }

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

  .mobile-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    box-shadow: 0 0 14px var(--primary-red-glow);
  }

  .mobile-search-inner svg {
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .mobile-search-inner input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    width: 100%;
  }

  .mobile-search-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
    transition: color 0.2s ease;
  }

  .mobile-search-close-btn:hover {
    color: var(--primary-red);
  }

  .mobile-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 14px;
    right: 14px;
    background: rgba(14, 16, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 1060;
  }

  .mobile-search-dropdown.active {
    display: block !important;
  }

  /* Hamburger Toggle Button */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--primary-red);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
  }

  .menu-toggle:hover {
    background: var(--card-hover-bg);
  }

  .desktop-only-item {
    display: none !important;
  }

  .mobile-only-item {
    display: block !important;
  }

  /* Mobile Navigation Drawer (Matching Image 2) */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 13, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 28px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.95);
    gap: 12px;
    z-index: 999;
    text-align: center;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: auto;
    display: inline-block;
    text-align: center;
  }

  .nav-link:hover {
    color: var(--primary-red);
  }

  .nav-link.active {
    background: rgba(255, 43, 86, 0.25);
    color: var(--primary-red);
    border: 1px solid rgba(255, 43, 86, 0.35);
    box-shadow: 0 4px 16px rgba(255, 43, 86, 0.2);
  }

  #mobileAdminToggleBtn {
    background: rgba(20, 22, 29, 0.9);
    border: 1px solid var(--border-color);
    color: var(--primary-red);
    font-weight: 800;
    border-radius: 9999px;
    padding: 10px 26px;
    font-size: 0.88rem;
    margin: 8px auto 0;
    width: auto;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  }

  .mobile-color-picker-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: rgba(20, 22, 29, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 20px;
    width: 90%;
    max-width: 280px;
    margin: 10px auto 0;
  }

  .mobile-color-picker-row .theme-color-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 8px 16px;
  }

  /* Category Strip (Mobile) */
  .category-strip {
    padding: 10px 0;
  }

  .category-pill {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  /* Hero Trending Carousel (Mobile) */
  .hero-carousel-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 16:9 Ratio එකට හැදීමට */
    max-height: 480px;
    /* Monitor වලදී ඕනවට වඩා විශාල නොවී තබාගැනීමට */
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .hero-slide img,
  .hero-carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-slide {
    padding: 16px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .hero-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .hero-controls {
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
  }

  .hero-nav-btn {
    font-size: 0.8rem;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .hero-dot.active {
    width: 16px;
  }

  /* Media Video Grid (Mobile 2-Columns) */
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-info {
    padding: 8px;
  }

  .card-title {
    font-size: 0.82rem;
  }

  .card-meta {
    font-size: 0.72rem;
  }

  /* Photo Collection (Mobile) */
  .photo-collection-container {
    padding: 12px 14px;
    margin: 16px 0;
    border-radius: var(--radius-md);
  }

  .photo-section-title {
    font-size: 0.95rem;
  }

  .photo-count-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .photo-card {
    height: 160px;
    border-radius: 8px;
  }

  .photo-card img {
    height: 160px !important;
    max-width: 220px !important;
  }

  .photo-controls-pill {
    padding: 4px 12px;
  }

  /* Video Modal Player (Mobile Fit Fix) */
  .video-fullscreen-overlay {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 0 !important;
  }

  .video-fullscreen-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .fullscreen-header-bar {
    width: 100% !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
  }

  .fullscreen-header-title {
    font-size: 1rem !important;
  }

  .fullscreen-back-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  .player-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
  }

  .modal-body {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .modal-title {
    font-size: 1.1rem !important;
    word-break: break-word !important;
  }

  .modal-act-btn {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }

  .photo-collection-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 10px !important;
    margin: 14px 0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Photo Lightbox Viewer (Mobile Fit Fix) */
  .photo-lightbox-overlay {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .lightbox-header {
    width: 100% !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }

  .lightbox-title {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
  }

  .lightbox-counter {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
  }

  .lightbox-close-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }

  .lightbox-stage {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .lightbox-image-wrapper {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #lightboxMainImg {
    max-height: 70vh !important;
    max-width: 92vw !important;
    object-fit: contain !important;
    margin: auto !important;
  }

  .lightbox-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 25 !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    background: rgba(12, 13, 16, 0.85) !important;
    border: 1px solid var(--border-color) !important;
  }

  .lightbox-nav-btn.prev {
    left: 8px !important;
  }

  .lightbox-nav-btn.next {
    right: 8px !important;
  }

  .lightbox-zoom-toolbar {
    bottom: 14px !important;
    padding: 6px 14px !important;
    gap: 6px !important;
    max-width: 90vw !important;
  }

  .zoom-btn {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
  }
}

/* Smartphone Narrow Screen Layout (< 420px) */
@media (max-width: 420px) {
  .header-actions .theme-color-picker {
    display: none;
  }

  .hero-carousel-container {
    height: 210px;
  }

  .hero-title {
    font-size: 1.05rem;
  }

  .photo-card {
    height: 140px;
  }

  .photo-card img {
    height: 140px !important;
    max-width: 180px !important;
  }
}

/* Drag and Drop Category Tags Styling (Mouse & Touch Finger) */
.category-pill.draggable-pill {
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.category-pill.draggable-pill:active {
  cursor: grabbing;
}

.category-pill.dragging,
.admin-tag-item.dragging {
  opacity: 0.35 !important;
  border-style: dashed !important;
  transform: scale(0.92) !important;
  box-shadow: none !important;
}

.category-pill.drag-over,
.admin-tag-item.drag-over {
  border-color: var(--primary-red) !important;
  background: var(--card-hover-bg) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 16px var(--primary-red-glow) !important;
}

.drag-grip-icon {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0 4px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  opacity: 0.7;
}

.drag-grip-icon:hover {
  opacity: 1;
  color: var(--primary-red);
}

.drag-grip-icon:active {
  cursor: grabbing;
}

.touch-drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  background: var(--primary-red);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--primary-red-glow);
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 0.9;
}

/* Hide duration badge across all thumbnail cards */
.duration-badge {
  display: none !important;
}

/* Clickable Multi-Select Tag/Category Picker UI */
.category-chip-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 48px;
  box-sizing: border-box;
}

.category-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.category-chip.selected {
  background: var(--primary-red) !important;
  color: #ffffff !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 4px 14px var(--primary-red-glow);
  transform: scale(1.03);
}

/* Cross-Browser Video Player Fullscreen Rules */
.player-wrapper {
  position: relative;
}

/* Pseudo Fullscreen Fallback System */
.player-wrapper.pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  background: #000000 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.player-wrapper.pseudo-fullscreen iframe,
.player-wrapper.pseudo-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
}

body.player-fs-active {
  overflow: hidden !important;
}

.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen,
.player-wrapper:-moz-full-screen,
.player-wrapper:-ms-fullscreen,
.player-container-wrap:fullscreen,
.player-container-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
}

.player-wrapper:fullscreen iframe,
.player-wrapper:-webkit-full-screen iframe,
.player-wrapper:-moz-full-screen iframe,
.player-wrapper:-ms-fullscreen iframe,
.player-wrapper:fullscreen video,
.player-wrapper:-webkit-full-screen video,
.player-wrapper:-moz-full-screen video,
.player-wrapper:-ms-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* Preserve line breaks in post content */
.modal-description,
.post-body,
.video-description {
  white-space: pre-wrap;
}

/* Force 16:9 Ratio for Hero Carousel Banner on All Screens */
.hero-carousel-container,
.hero-slider,
.trending-carousel {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 500px !important;
  overflow: hidden !important;
}

.hero-carousel-container img,
.hero-slide img,
.hero-slider img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ==========================================================================
   ADBLOCKER PROTECTION OVERLAY STYLING
   ========================================================================== */
.adblock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 9, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.adblock-modal {
  width: 100%;
  max-width: 480px;
  background: rgba(18, 20, 26, 0.96);
  border: 1px solid rgba(255, 59, 92, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 59, 92, 0.2);
  border-radius: 20px;
  padding: 34px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: adblockModalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adblockModalPop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.adblock-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(255, 59, 92, 0.25);
}

.adblock-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.adblock-subtitle {
  font-size: 0.85rem;
  color: #ff3b5c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.adblock-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #9aa0a6);
  line-height: 1.5;
  margin-bottom: 20px;
}

.adblock-desc strong {
  color: #ffffff;
}

.adblock-instruction-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #b0bec5;
  text-align: left;
  line-height: 1.45;
  margin-bottom: 24px;
}

.adblock-refresh-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff3b5c, #d90429);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 59, 92, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.adblock-refresh-btn:hover {
  background: linear-gradient(135deg, #ff5271, #ef233c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 59, 92, 0.6);
}

/* ==========================================================================
   18+ AGE VERIFICATION GATE — PREMIUM CINEMATIC DESIGN
   ========================================================================== */

/* Fullscreen Overlay — solid dark, zero content bleed */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #06060a;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-gate-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-overlay.hidden {
  display: none !important;
}

/* Atmospheric Floating Gradient Orbs */
.age-gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  will-change: transform;
}

.age-gate-orb-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 59, 92, 0.7) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  animation: ageOrbFloat1 8s ease-in-out infinite alternate;
}

.age-gate-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(160, 32, 240, 0.6) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: ageOrbFloat2 10s ease-in-out infinite alternate;
}

.age-gate-orb-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.5) 0%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  animation: ageOrbFloat3 12s ease-in-out infinite alternate;
  opacity: 0.18;
}

@keyframes ageOrbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 40px) scale(1.2); }
}

@keyframes ageOrbFloat2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -50px) scale(1.15); }
}

@keyframes ageOrbFloat3 {
  from { transform: translateX(-50%) translate(0, 0) scale(1); }
  to   { transform: translateX(-50%) translate(25px, -30px) scale(1.25); }
}

/* Glassmorphic Card */
.age-gate-card {
  width: 100%;
  max-width: 450px;
  background: linear-gradient(168deg, rgba(20, 22, 32, 0.95) 0%, rgba(10, 11, 16, 0.98) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 59, 92, 0.18);
  border-radius: 28px;
  padding: 38px 32px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 100px rgba(0, 0, 0, 0.85),
    0 0 100px rgba(255, 59, 92, 0.08);
  animation: ageCardReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Subtle top border accent glow */
.age-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 92, 0.5), transparent);
  border-radius: 1px;
}

@keyframes ageCardReveal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* Top Branding */
.age-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.age-gate-logo-img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.4));
  flex-shrink: 0;
}

.age-gate-brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.age-gate-brand-x {
  color: var(--primary-red, #ff5500);
  font-weight: 900;
}

/* Shield Emblem — Multi-Layer Glow */
.age-gate-emblem {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-emblem-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 92, 0.22) 0%, transparent 60%);
  animation: ageEmblemPulse 3s ease-in-out infinite;
}

@keyframes ageEmblemPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 1; }
}

.age-gate-emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 59, 92, 0.2);
}

.age-gate-emblem-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 59, 92, 0.8);
  border-right-color: rgba(255, 59, 92, 0.15);
  animation: ageRingSpin 3s linear infinite;
}

.age-gate-emblem-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(255, 59, 92, 0.4);
  border-left-color: rgba(255, 59, 92, 0.15);
  animation: ageRingSpin 5s linear reverse infinite;
}

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

.age-gate-emblem-inner {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.08);
  border: 1.5px solid rgba(255, 59, 92, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 0 35px rgba(255, 59, 92, 0.18), inset 0 0 20px rgba(255, 59, 92, 0.05);
}

.age-gate-emblem-inner svg {
  margin-top: 3px;
  filter: drop-shadow(0 0 10px rgba(255, 59, 92, 0.6));
}

.age-gate-emblem-text {
  font-size: 0.78rem;
  font-weight: 900;
  color: #ff3b5c;
  letter-spacing: 1.2px;
  margin-top: -1px;
  text-shadow: 0 0 10px rgba(255, 59, 92, 0.6);
}

/* Typography */
.age-gate-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.age-gate-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff3b5c, #ff8a5c, #ff3b5c);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: ageSubtitleShift 4s ease-in-out infinite;
}

@keyframes ageSubtitleShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.age-gate-desc {
  font-size: 0.86rem;
  line-height: 1.75;
  color: #8b929a;
  font-weight: 500;
  margin-bottom: 0;
  max-width: 370px;
  margin-left: auto;
  margin-right: auto;
}

.age-gate-desc strong {
  color: #d1d5db;
  font-weight: 700;
}

/* Animated Horizontal Rule */
.age-gate-rule {
  width: 90px;
  height: 2px;
  margin: 22px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 92, 0.5), transparent);
  position: relative;
  overflow: hidden;
}

.age-gate-rule::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: ageRuleShimmer 3.5s ease-in-out infinite;
}

@keyframes ageRuleShimmer {
  0%   { left: -50%; }
  100% { left: 150%; }
}

/* Legal Text */
.age-gate-legal {
  font-size: 0.73rem;
  color: #555c68;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.age-gate-legal a {
  color: #ff3b5c;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.age-gate-legal a:hover {
  color: #ff6b8a;
  text-decoration: underline;
}

/* Action Buttons Container */
.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Primary Enter Button — Cinematic Glow */
.age-gate-btn-enter {
  position: relative;
  width: 100%;
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #ff3b5c 0%, #e6003a 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.4px;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 8px 32px rgba(255, 59, 92, 0.45),
    0 0 0 1px rgba(255, 59, 92, 0.2) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ageBtnPulse 3s ease-in-out infinite;
}

.age-gate-btn-enter:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 44px rgba(255, 59, 92, 0.6),
    0 0 70px rgba(255, 59, 92, 0.18),
    0 0 0 1px rgba(255, 59, 92, 0.35) inset;
}

.age-gate-btn-enter:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.age-gate-btn-enter svg {
  flex-shrink: 0;
}

/* Inner highlight overlay */
.age-gate-btn-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 45%, rgba(0, 0, 0, 0.1) 100%);
  z-index: -1;
  pointer-events: none;
}

@keyframes ageBtnPulse {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(255, 59, 92, 0.45),
      0 0 0 1px rgba(255, 59, 92, 0.2) inset;
  }
  50% {
    box-shadow:
      0 10px 38px rgba(255, 59, 92, 0.55),
      0 0 55px rgba(255, 59, 92, 0.12),
      0 0 0 1px rgba(255, 59, 92, 0.3) inset;
  }
}

/* Secondary Exit Button — Ghost */
.age-gate-btn-exit {
  width: 100%;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #555c68;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.age-gate-btn-exit:hover {
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.age-gate-btn-exit:active {
  transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 540px) {
  .age-gate-overlay {
    padding: 16px;
  }

  .age-gate-card {
    padding: 32px 22px 28px;
    border-radius: 22px;
    max-width: 100%;
  }

  .age-gate-emblem {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }

  .age-gate-emblem-inner {
    width: 66px;
    height: 66px;
  }

  .age-gate-emblem-inner svg {
    width: 26px;
    height: 26px;
  }

  .age-gate-title {
    font-size: 1.3rem;
  }

  .age-gate-desc {
    font-size: 0.83rem;
  }

  .age-gate-btn-enter {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  .age-gate-orb-1 { width: 240px; height: 240px; }
  .age-gate-orb-2 { width: 180px; height: 180px; }
  .age-gate-orb-3 { display: none; }
}

/* ==========================================================================
   DYNAMIC DYNAMIC ADMIN PASSCODE VERIFICATION MODAL & RING COMPONENT
   ========================================================================== */
.admin-passcode-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
}

.admin-passcode-overlay.active {
  display: flex !important;
}

.admin-passcode-card {
  width: 100%;
  max-width: 480px;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(122, 245, 232, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(122, 245, 232, 0.15);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admin-passcode-card.error-shake {
  animation: passcodeShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: rgba(255, 59, 92, 0.7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 59, 92, 0.3);
}

.admin-passcode-card.success-glow {
  border-color: rgba(0, 255, 157, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 255, 157, 0.4);
}

@keyframes passcodeShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 0, 0); }
  40%, 60% { transform: translate3d(7px, 0, 0); }
}

.passcode-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(122, 245, 232, 0.08) !important;
  border: 1px solid rgba(122, 245, 232, 0.25) !important;
  color: #7af5e8 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  outline: none !important;
}

.passcode-modal-close:hover {
  background: rgba(255, 59, 92, 0.2) !important;
  border-color: rgba(255, 59, 92, 0.7) !important;
  color: #ff3b5c !important;
  transform: scale(1.12) rotate(90deg) !important;
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.4) !important;
}

.admin-passcode-header {
  margin-bottom: 20px;
}

.admin-passcode-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: rgba(122, 245, 232, 0.08);
  border: 1px solid rgba(122, 245, 232, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(122, 245, 232, 0.2);
  transition: all 0.3s ease;
}

.admin-passcode-card.success-glow .admin-passcode-badge {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.4);
}

.admin-passcode-card.success-glow .admin-passcode-badge svg {
  stroke: #00ff9d !important;
}

.admin-passcode-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.admin-passcode-subtitle {
  font-size: 0.82rem;
  color: #7af5e8;
  font-weight: 600;
}

/* TRIGONOMETRIC RING & SVG CANVAS CONTAINER */
.passcode-ring-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passcode-svg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.passcode-svg-line {
  stroke: #7af5e8;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(122, 245, 232, 0.7));
  transition: stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.admin-passcode-card.success-glow .passcode-svg-line {
  stroke: #00ff9d;
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.9));
}

.admin-passcode-card.error-shake .passcode-svg-line {
  stroke: #ff3b5c;
  filter: drop-shadow(0 0 8px rgba(255, 59, 92, 0.8));
}

.passcode-nodes-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.passcode-node-item {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #161b22;
  border: 2px solid rgba(122, 245, 232, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.passcode-node-item.active-node {
  border-color: #7af5e8;
  background: rgba(122, 245, 232, 0.15);
  box-shadow: 0 0 20px rgba(122, 245, 232, 0.6), inset 0 0 10px rgba(122, 245, 232, 0.3);
}

.passcode-node-item.filled-node {
  border-color: #7af5e8;
  background: rgba(122, 245, 232, 0.1);
  box-shadow: 0 0 14px rgba(122, 245, 232, 0.4);
}

.admin-passcode-card.success-glow .passcode-node-item {
  border-color: #00ff9d !important;
  background: rgba(0, 255, 157, 0.2) !important;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.7) !important;
}

.admin-passcode-card.error-shake .passcode-node-item {
  border-color: #ff3b5c !important;
  background: rgba(255, 59, 92, 0.2) !important;
  box-shadow: 0 0 25px rgba(255, 59, 92, 0.7) !important;
}

.passcode-node-input {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: none;
  text-align: center;
  color: #7af5e8;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  outline: none;
  font-family: inherit;
  cursor: text;
  text-shadow: 0 0 8px rgba(122, 245, 232, 0.6);
  caret-color: #7af5e8;
}

.passcode-node-item.active-node .passcode-node-input,
.passcode-node-item.filled-node .passcode-node-input {
  color: #7af5e8;
  text-shadow: 0 0 10px rgba(122, 245, 232, 0.8);
}

.passcode-status-msg {
  min-height: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #7af5e8;
  margin-top: 6px;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.passcode-status-msg.error {
  color: #ff3b5c;
}

.passcode-status-msg.success {
  color: #00ff9d;
}

/* --- "Complete the Shape" Final Success Animation --- */

/* Closing line: same style but slightly longer transition for dramatic reveal */
.passcode-closing-line {
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease !important;
}

/* Shape-complete phase: contraction pulse + color shift to success green */
.admin-passcode-card.shape-complete .passcode-nodes-container {
  animation: shapeContractionPulse 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.admin-passcode-card.shape-complete .passcode-svg-canvas {
  animation: shapeContractionPulse 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.admin-passcode-card.shape-complete .passcode-svg-line {
  stroke: #39ff7e;
  filter: drop-shadow(0 0 10px rgba(57, 255, 126, 0.9)) drop-shadow(0 0 24px rgba(0, 255, 157, 0.5));
  transition: stroke 0.4s ease, filter 0.4s ease;
}

.admin-passcode-card.shape-complete .passcode-node-item {
  border-color: #39ff7e !important;
  background: rgba(57, 255, 126, 0.18) !important;
  box-shadow: 0 0 22px rgba(57, 255, 126, 0.7), inset 0 0 8px rgba(57, 255, 126, 0.2) !important;
  transition: all 0.4s ease !important;
}

.admin-passcode-card.shape-complete .passcode-node-input {
  color: #39ff7e;
  text-shadow: 0 0 8px rgba(57, 255, 126, 0.8);
}

/* Contraction Pulse: nodes/lines zoom in slightly then bounce back */
@keyframes shapeContractionPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.88);
  }
  70% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* Status message cross-fade animations */
.passcode-status-msg.fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.passcode-status-msg.fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: statusFadeIn 0.4s ease forwards;
}

@keyframes statusFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.passcode-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 4px;
}

.passcode-config-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.passcode-config-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.passcode-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd8dc;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.passcode-preset-btn:hover,
.passcode-preset-btn.active {
  background: rgba(122, 245, 232, 0.15);
  border-color: #7af5e8;
  color: #7af5e8;
}

/* Footer Info Modal & Policy Document Styles */
.footer-info-modal-card {
  max-width: 680px !important;
  width: 90% !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-red-glow) !important;
  overflow: hidden;
  padding: 0 !important;
}

.footer-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-modal-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.footer-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.footer-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-modal-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  justify-content: flex-end;
}

.footer-modal-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.footer-modal-close-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
  transform: translateY(-1px);
}

.policy-warning-box {
  background: rgba(255, 59, 92, 0.1);
  border: 1px solid #ff3b5c;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-warning-badge {
  color: #ff3b5c;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.policy-warning-text {
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0;
}

.policy-intro {
  margin-bottom: 18px;
  color: var(--text-muted);
}

.policy-section {
  margin-bottom: 18px;
}

.policy-section h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-step {
  background: var(--primary-red);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
}

.policy-list li::before {
  content: '•';
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 4px;
  top: -2px;
}

.policy-callout-box, .policy-highlight-box {
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}

.policy-callout-box h4 {
  color: var(--admin-gold);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.policy-contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 10px;
  width: 100%;
}

/* Dynamic Theme-Integrated Telegram Support UI Button */
.tg-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-red);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-decoration: none !important;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px var(--primary-red-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid var(--primary-red);
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.tg-support-btn:hover {
  background: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px var(--primary-red-glow);
  text-decoration: none !important;
}

.tg-support-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 10px var(--primary-red-glow);
}

.policy-meta-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.policy-note {
  font-size: 0.85rem;
  color: var(--admin-gold);
  margin-top: 8px;
}

/* ==========================================================================
   LIGHT MODE SYSTEM & COMPONENT OVERRIDES
   ========================================================================== */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-secondary: #ffffff;
  --card-bg: #ffffff;
  --card-hover-bg: #f1f5f9;
  --border-color: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Light mode smooth transitions & background overrides */
[data-theme="light"] body {
  background-color: var(--bg-color);
  color: var(--text-main);
}

[data-theme="light"] .header {
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .logo {
  color: #0f172a;
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0f172a;
}

[data-theme="light"] .header-search-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .header-search-box input {
  color: #0f172a;
}

[data-theme="light"] .search-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .search-dropdown-title {
  color: #0f172a;
}

[data-theme="light"] .theme-color-picker {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .mobile-color-picker-row {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .video-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .video-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .video-title,
[data-theme="light"] .card-title {
  color: #0f172a;
}

[data-theme="light"] .video-desc,
[data-theme="light"] .card-desc {
  color: #475569;
}

[data-theme="light"] .category-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .category-pill:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .category-pill.active {
  color: #ffffff !important;
  background: var(--primary-red);
}

[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .category-modal-content,
[data-theme="light"] .footer-modal-content {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-title,
[data-theme="light"] .video-modal-title,
[data-theme="light"] .category-modal-header h3 {
  color: #0f172a;
}

[data-theme="light"] .footer {
  background-color: #ffffff;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .footer-link {
  color: #475569;
}

[data-theme="light"] .footer-link:hover {
  color: #0f172a;
}

[data-theme="light"] .page-nav-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .page-nav-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: var(--primary-red);
  color: var(--primary-red);
}

[data-theme="light"] .page-nav-btn:disabled,
[data-theme="light"] .page-nav-btn.disabled {
  opacity: 0.5;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

[data-theme="light"] .page-num-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .page-num-btn:hover {
  color: #0f172a;
  border-color: var(--primary-red);
}

[data-theme="light"] .page-num-btn.active {
  background: var(--primary-red);
  color: #ffffff !important;
  border-color: var(--primary-red);
}

/* Video Modal & Player Header Light Mode Overrides */
[data-theme="light"] .video-fullscreen-overlay,
[data-theme="light"] .video-fullscreen-container,
[data-theme="light"] .post-page-flow-wrapper {
  background: #f8fafc !important;
}

[data-theme="light"] .fullscreen-header-bar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .fullscreen-header-title {
  color: #0f172a !important;
}

[data-theme="light"] .fullscreen-back-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fullscreen-back-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-red);
  color: var(--primary-red) !important;
}

[data-theme="light"] .fullscreen-close-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fullscreen-close-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff !important;
}

[data-theme="light"] .modal-close {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a !important;
}

[data-theme="light"] .modal-close:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff !important;
}

/* Footer Policy Info Modal Light Mode Overrides */
[data-theme="light"] .footer-info-modal-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .footer-modal-header {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .footer-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .footer-modal-body {
  color: #334155 !important;
}

[data-theme="light"] .footer-modal-actions {
  background: #ffffff;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .footer-modal-close-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .footer-modal-close-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff !important;
}

[data-theme="light"] .policy-warning-box {
  background: #fff1f2;
  border-color: #fda4af;
}

[data-theme="light"] .policy-warning-text {
  color: #9f1239 !important;
}

[data-theme="light"] .policy-warning-badge {
  color: #e11d48 !important;
}

[data-theme="light"] .policy-intro {
  color: #334155 !important;
}

[data-theme="light"] .policy-section h3 {
  color: #0f172a !important;
}

[data-theme="light"] .policy-callout-box,
[data-theme="light"] .policy-highlight-box {
  background: #fffbeb;
  border-color: #fde68a;
}

[data-theme="light"] .policy-callout-box h4 {
  color: #b45309 !important;
}

[data-theme="light"] .policy-meta-date {
  color: #64748b !important;
}

/* Admin Passcode Modal & Admin Active Banner Light Mode Overrides */
[data-theme="light"] .admin-banner {
  background: linear-gradient(90deg, #ffffff 0%, #fffbeb 100%) !important;
  border-bottom: 1px solid #fde68a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .admin-status-badge {
  background: #fef3c7 !important;
  border: 1px solid #f59e0b !important;
  color: #b45309 !important;
}

[data-theme="light"] .admin-info-text {
  color: #475569 !important;
}

[data-theme="light"] .admin-act-pill.key,
[data-theme="light"] .admin-act-pill.pin-btn {
  background: #ffffff !important;
  border: 1.5px solid #f59e0b !important;
  color: #b45309 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15) !important;
}

[data-theme="light"] .admin-act-pill.key:hover,
[data-theme="light"] .admin-act-pill.pin-btn:hover {
  background: #fffbeb !important;
  border-color: #d97706 !important;
}

[data-theme="light"] .admin-act-pill.logout,
[data-theme="light"] .admin-act-pill.logout-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .admin-act-pill.logout:hover,
[data-theme="light"] .admin-act-pill.logout-btn:hover {
  background: #ffe4e6 !important;
  border-color: #f87171 !important;
  color: #dc2626 !important;
}

[data-theme="light"] .admin-passcode-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(13, 148, 136, 0.15) !important;
}

[data-theme="light"] .admin-passcode-title {
  color: #0f172a !important;
}

[data-theme="light"] .admin-passcode-subtitle {
  color: #475569 !important;
}

[data-theme="light"] .passcode-modal-close {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .passcode-modal-close:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #e11d48 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
}

[data-theme="light"] .passcode-node-item {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .passcode-node-item.active-node {
  border-color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.12) !important;
  box-shadow: 0 0 18px rgba(13, 148, 136, 0.4), inset 0 0 8px rgba(13, 148, 136, 0.2) !important;
}

[data-theme="light"] .passcode-node-item.filled-node {
  border-color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.08) !important;
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.3) !important;
}

[data-theme="light"] .passcode-node-input {
  color: #0f172a !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  caret-color: #0d9488 !important;
}

[data-theme="light"] .passcode-node-item.active-node .passcode-node-input,
[data-theme="light"] .passcode-node-item.filled-node .passcode-node-input {
  color: #0d9488 !important;
  text-shadow: none !important;
}

[data-theme="light"] .passcode-svg-line {
  stroke: #0d9488 !important;
  filter: drop-shadow(0 0 4px rgba(13, 148, 136, 0.4)) !important;
}

[data-theme="light"] .passcode-status-msg {
  color: #475569 !important;
}

/* Category Chip Picker Engine */
.category-chip-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-color, #0c0d10);
  border: 1px solid var(--border-color, #282c39);
  border-radius: var(--radius-md, 10px);
}

.category-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-secondary, #14161d);
  border: 1px solid var(--border-color, #282c39);
  color: var(--text-muted, #9a9ea8);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-chip:hover {
  color: #fff;
  border-color: var(--primary-red);
}

.category-chip.selected {
  background: var(--primary-red) !important;
  color: #ffffff !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 10px var(--primary-red-glow);
}

/* Global Light Mode Inputs, Textareas, Selects & Labels */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  background-color: #ffffff !important;
  border-color: var(--primary-red) !important;
  color: #0f172a !important;
  box-shadow: 0 0 10px var(--primary-red-glow) !important;
}

[data-theme="light"] label,
[data-theme="light"] .form-group label {
  color: #334155 !important;
}

/* Category Chip Picker Light Mode */
[data-theme="light"] .category-chip-picker {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .category-chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="light"] .category-chip:hover {
  color: #0f172a !important;
  border-color: var(--primary-red) !important;
}

[data-theme="light"] .category-chip.selected {
  background: var(--primary-red) !important;
  color: #ffffff !important;
  border-color: var(--primary-red) !important;
}

/* Manage Tags List Light Mode Overrides */
[data-theme="light"] .admin-tag-item {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .admin-tag-item span {
  color: #0f172a !important;
}

[data-theme="light"] .admin-tag-item small {
  color: #64748b !important;
}

[data-theme="light"] .admin-tag-item button {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .drag-grip-icon {
  color: #94a3b8 !important;
}

/* Hero Carousel Light Mode Overrides */
[data-theme="light"] .hero-carousel-container {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .hero-slide-overlay {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.1) 100%) !important;
}

[data-theme="light"] .hero-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme="light"] .hero-controls {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .hero-nav-btn {
  color: #0f172a !important;
}

[data-theme="light"] .hero-dot {
  background: rgba(15, 23, 42, 0.3) !important;
}

[data-theme="light"] .hero-dot.active {
  background: var(--primary-red) !important;
}

/* AdBlocker Modal Light Mode Overrides */
[data-theme="light"] .adblock-overlay,
[data-theme="light"] .adblock-modal {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .adblock-title {
  color: #0f172a !important;
}

[data-theme="light"] .adblock-desc,
[data-theme="light"] .adblock-step {
  color: #334155 !important;
}

[data-theme="light"] .adblock-instruction-box {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   BROWSE ALL CATEGORIES MODAL & CARD SYSTEM
   ========================================================================== */
.category-modal-container {
  background: var(--card-bg, #14161d);
  border: 1px solid var(--border-color, #282c39);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.category-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.category-modal-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 59, 92, 0.15);
}

.category-modal-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #ffffff);
  margin: 0 0 3px 0;
}

.category-modal-sub-desc {
  font-size: 0.83rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.category-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .category-modal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.category-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.category-modal-card:hover {
  background: rgba(255, 59, 92, 0.12);
  border-color: rgba(255, 59, 92, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.category-modal-card.active,
.category-modal-card.selected {
  background: linear-gradient(135deg, rgba(255, 59, 92, 0.22) 0%, rgba(225, 29, 72, 0.28) 100%);
  border-color: #ff3b5c;
  box-shadow: 0 0 20px rgba(255, 59, 92, 0.4);
}

.category-modal-icon {
  font-size: 1.65rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.category-modal-card:hover .category-modal-icon {
  transform: scale(1.18);
}

.category-modal-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #f1f5f9);
  text-align: center;
  word-break: break-word;
}

/* Light Mode Overrides for Categories Modal & General Modals */
[data-theme="light"] .modal-container,
[data-theme="light"] .category-modal-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .category-modal-main-title {
  color: #0f172a !important;
}

[data-theme="light"] .category-modal-sub-desc {
  color: #64748b !important;
}

[data-theme="light"] .category-modal-badge {
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
}

[data-theme="light"] .category-modal-card {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .category-modal-card:hover {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.12) !important;
}

[data-theme="light"] .category-modal-card.active,
[data-theme="light"] .category-modal-card.selected {
  background: #ffe4e6 !important;
  border-color: #e11d48 !important;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.25) !important;
}

[data-theme="light"] .category-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .category-modal-card.active .category-modal-title,
[data-theme="light"] .category-modal-card.selected .category-modal-title {
  color: #be123c !important;
}

/* Post Details Body Text System */
.modal-post-body {
  margin: 18px 0;
  color: var(--text-main, #e2e8f0);
  font-size: 0.96rem;
  line-height: 1.65;
  font-weight: 500;
  word-break: break-word;
}

.modal-post-body p,
.modal-post-body span,
.modal-post-body div {
  color: inherit;
}

[data-theme="light"] .modal-post-body,
[data-theme="light"] .modal-post-body *,
[data-theme="light"] .modal-post-body p,
[data-theme="light"] .modal-post-body span,
[data-theme="light"] .modal-post-body div,
[data-theme="light"] .modal-post-body strong {
  color: #0f172a !important;
  font-weight: 600;
}

/* ==========================================================================
   PHOTO LIGHTBOX POPUP & INTERACTIVE ZOOM SYSTEM
   ========================================================================== */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-lightbox-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Lightbox Header Bar */
.lightbox-header {
  width: 100%;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  box-sizing: border-box;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill, 20px);
  background: rgba(122, 245, 232, 0.1);
  border: 1px solid rgba(122, 245, 232, 0.3);
  color: #7af5e8;
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  line-height: 1;
}

.lightbox-close-btn:hover {
  background: rgba(255, 59, 92, 0.25);
  border-color: rgba(255, 59, 92, 0.7);
  color: #ff3b5c;
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.4);
}

/* Lightbox Main Stage & Navigation */
.lightbox-stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 16px;
  box-sizing: border-box;
}

.lightbox-image-wrapper {
  max-width: 94vw;
  max-height: calc(100vh - 130px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  user-select: none;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain !important;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

.lightbox-nav-btn:hover {
  background: var(--primary-red, #ff5500);
  border-color: var(--primary-red, #ff5500);
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
}

/* Lightbox Bottom Zoom Control Toolbar */
.lightbox-zoom-toolbar {
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.zoom-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #7af5e8;
  transform: translateY(-1px);
}

.zoom-btn:active {
  transform: translateY(0) scale(0.96);
}

.zoom-level-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #7af5e8;
  padding: 0 6px;
  min-width: 42px;
  text-align: center;
}

/* Light Mode Overrides for Photo Lightbox */
[data-theme="light"] .photo-lightbox-overlay {
  background: rgba(248, 250, 252, 0.96) !important;
}

[data-theme="light"] .lightbox-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .lightbox-title {
  color: #0f172a !important;
}

[data-theme="light"] .lightbox-counter {
  background: #ccfbf1 !important;
  border-color: #99f6e4 !important;
  color: #0f766e !important;
}

[data-theme="light"] .lightbox-close-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .lightbox-close-btn:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #e11d48 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
}

[data-theme="light"] .lightbox-nav-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .lightbox-nav-btn:hover {
  background: var(--primary-red, #ff5500) !important;
  border-color: var(--primary-red, #ff5500) !important;
  color: #ffffff !important;
}

[data-theme="light"] .lightbox-zoom-toolbar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .zoom-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .zoom-btn:hover {
  background: #ccfbf1 !important;
  border-color: #0d9488 !important;
  color: #0d9488 !important;
}

[data-theme="light"] .zoom-level-badge {
  color: #0d9488 !important;
}

/* Global transitions for theme switching */
body,
.header,
.video-card,
.category-pill,
.modal-content,
.category-modal-container,
.modal-container,
.footer,
.theme-color-picker,
.header-search-box,
.mobile-color-picker-row,
.page-nav-btn,
.page-num-btn,
.fullscreen-header-bar,
.fullscreen-back-btn,
.fullscreen-close-btn,
.footer-info-modal-card,
.footer-modal-close-btn,
.admin-banner,
.modal-close,
.passcode-modal-close,
.lightbox-close-btn,
.lightbox-nav-btn,
.lightbox-header,
.lightbox-zoom-toolbar,
.zoom-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}