/* 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,
#adminLoginModal,
#changePinModal {
  z-index: 1000000 !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;
    /* Use auto height instead of aspect-ratio so controls are never clipped */
    aspect-ratio: unset !important;
    height: auto !important;
    /* padding-bottom creates the 16:9 ratio space PLUS room for control bar */
    padding-bottom: calc(56.25% + 44px) !important;
    min-height: 220px !important;
    border-radius: 12px;
    /* CRITICAL: visible lets the native controls bar render outside the box */
    overflow: visible !important;
    position: relative !important;
  }

  .player-wrapper video,
  .player-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* Extra-small phones (iPhone SE, 375px wide and below) */
@media (max-width: 390px) {
  .player-wrapper {
    padding-bottom: calc(56.25% + 52px) !important;
    min-height: 240px !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,
.gallery-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-dot,
.gallery-pagination-dot,
.gallery-indicators span,
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.photo-dot.active,
.gallery-pagination-dot.active,
.gallery-indicators span.active,
.gallery-dot.active {
  width: 20px !important;
  border-radius: 10px !important;
  background: var(--primary-red, #ff5500) !important;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.4) !important;
}

.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;
}

/* Adsterra 300x250 Banner Ad Container */
.adsterra-banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  width: 100%;
  text-align: center;
}

/* Top Leaderboard Banner Ad Container (728x90) */
.top-banner-ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

/* Adsterra 2x2 Native Banner Container */
.modal-native-ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* 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;
    overflow: visible !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;
}

/* Modal Overlay Layering & High Z-Index Override */
.modal-overlay,
#createPostModal,
#editPostModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  /* Ensure it floats above single post view */
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.modal-overlay.active,
#createPostModal.active,
#editPostModal.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 18+ Age Verification Gate Default Hidden State & Transitions */
.age-gate-overlay,
#ageGateOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(10, 11, 15, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.age-gate-overlay.active,
#ageGateOverlay.active {
  display: flex !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Light Mode Search Bar & Seamless Pill Styling Override
   ========================================================================== */

/* 1. Universal Search Input Reset */
.header-search-box input,
.mobile-search-inner input,
.search-bar input,
.search-input,
.search-container input,
#inlineSearchInput,
#mobileSearchInput {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* 2. Light Mode Search Wrapper Pill Styling */
body.light-mode .search-bar,
body.light-mode .search-container,
body.light-mode .header-search-box,
body.light-mode .mobile-search-inner,
[data-theme="light"] .search-bar,
[data-theme="light"] .search-container,
[data-theme="light"] .header-search-box,
[data-theme="light"] .mobile-search-inner {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 9999px !important;
}

body.light-mode .search-bar:focus-within,
body.light-mode .search-container:focus-within,
body.light-mode .header-search-box:focus-within,
body.light-mode .mobile-search-inner:focus-within,
[data-theme="light"] .search-bar:focus-within,
[data-theme="light"] .search-container:focus-within,
[data-theme="light"] .header-search-box:focus-within,
[data-theme="light"] .mobile-search-inner:focus-within {
  border-color: #ff5500 !important;
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.15) !important;
}

/* 3. Text & Placeholder Colors in Light Mode */
body.light-mode .header-search-box input,
body.light-mode .mobile-search-inner input,
body.light-mode .search-bar input,
body.light-mode .search-input,
body.light-mode .search-container input,
body.light-mode #inlineSearchInput,
body.light-mode #mobileSearchInput,
[data-theme="light"] .header-search-box input,
[data-theme="light"] .mobile-search-inner input,
[data-theme="light"] .search-bar input,
[data-theme="light"] .search-input,
[data-theme="light"] .search-container input,
[data-theme="light"] #inlineSearchInput,
[data-theme="light"] #mobileSearchInput {
  color: #111111 !important;
  background: transparent !important;
}

body.light-mode .header-search-box input::placeholder,
body.light-mode .mobile-search-inner input::placeholder,
body.light-mode .search-bar input::placeholder,
body.light-mode .search-input::placeholder,
body.light-mode .search-container input::placeholder,
body.light-mode #inlineSearchInput::placeholder,
body.light-mode #mobileSearchInput::placeholder,
[data-theme="light"] .header-search-box input::placeholder,
[data-theme="light"] .mobile-search-inner input::placeholder,
[data-theme="light"] .search-bar input::placeholder,
[data-theme="light"] .search-input::placeholder,
[data-theme="light"] .search-container input::placeholder,
[data-theme="light"] #inlineSearchInput::placeholder,
[data-theme="light"] #mobileSearchInput::placeholder {
  color: #777777 !important;
  opacity: 1 !important;
}

body.light-mode .header-search-box svg,
body.light-mode .mobile-search-inner svg,
[data-theme="light"] .header-search-box svg,
[data-theme="light"] .mobile-search-inner svg {
  color: #666666 !important;
}

/* ==========================================================================
   Modal Tag Pills Styling (Dark Mode & Light Mode Dynamic Support)
   ========================================================================== */

/* Base & Dark Mode Tag Pill Styling */
.chip-pill,
.tag-pill,
.clickable-pill,
.modal .tag-pill,
.publish-modal .video-tag,
.category-chip-picker .chip-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  background: var(--bg-secondary, #1f1f1f);
  color: var(--text-muted, #d1d5db);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-pill:hover,
.tag-pill:hover,
.clickable-pill:hover,
.modal .tag-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Selected / Active State (Both Themes) */
.chip-pill.selected,
.chip-pill.active,
.tag-pill.selected,
.tag-pill.active,
.clickable-pill.active,
.modal .tag-pill.active,
.publish-modal .video-tag.active,
.category-chip-picker .chip-pill.selected,
.category-chip-picker .chip-pill.active {
  background: var(--primary-red, #ff5500) !important;
  color: #ffffff !important;
  border-color: var(--primary-red, #ff5500) !important;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.3) !important;
}

/* Light Mode Unselected State */
body.light-mode .chip-pill:not(.active):not(.selected),
body.light-mode .tag-pill:not(.active):not(.selected),
body.light-mode .clickable-pill:not(.active):not(.selected),
body.light-mode .modal .tag-pill:not(.active):not(.selected),
body.light-mode .publish-modal .video-tag:not(.active):not(.selected),
body.light-mode .category-chip-picker .chip-pill:not(.active):not(.selected),
[data-theme="light"] .chip-pill:not(.active):not(.selected),
[data-theme="light"] .tag-pill:not(.active):not(.selected),
[data-theme="light"] .clickable-pill:not(.active):not(.selected),
[data-theme="light"] .modal .tag-pill:not(.active):not(.selected),
[data-theme="light"] .publish-modal .video-tag:not(.active):not(.selected),
[data-theme="light"] .category-chip-picker .chip-pill:not(.active):not(.selected) {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1f2937 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .chip-pill:not(.active):not(.selected):hover,
body.light-mode .tag-pill:not(.active):not(.selected):hover,
body.light-mode .clickable-pill:not(.active):not(.selected):hover,
body.light-mode .modal .tag-pill:not(.active):not(.selected):hover,
[data-theme="light"] .chip-pill:not(.active):not(.selected):hover,
[data-theme="light"] .tag-pill:not(.active):not(.selected):hover,
[data-theme="light"] .clickable-pill:not(.active):not(.selected):hover,
[data-theme="light"] .modal .tag-pill:not(.active):not(.selected):hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #000000 !important;
}

/* ==========================================================================
   Cinematic Dark Hero Card Style for Trending Hero Carousel (All Themes)
   ========================================================================== */

/* 1. Base & Light Mode Override for Hero Container */
.hero-carousel-container,
#trendingGrid .hero-carousel-container,
#trendingSection .hero-carousel-container,
body.light-mode .hero-carousel-container,
body.light-mode #trendingGrid .hero-carousel-container,
body.light-mode #trendingSection .hero-carousel-container,
[data-theme="light"] .hero-carousel-container,
[data-theme="light"] #trendingGrid .hero-carousel-container,
[data-theme="light"] #trendingSection .hero-carousel-container {
  background: #0f1115 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

/* 2. Slide & Dark Overlay Vignette (Remove any white gradients) */
.hero-slide-overlay,
.hero-slide .hero-slide-overlay,
body.light-mode .hero-slide-overlay,
body.light-mode .hero-slide .hero-slide-overlay,
[data-theme="light"] .hero-slide-overlay,
[data-theme="light"] .hero-slide .hero-slide-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 17, 21, 0.9) 100%) !important;
  z-index: 1 !important;
}

/* Ensure no pseudo-elements add white gradients */
.hero-carousel-container::before,
.hero-carousel-container::after,
.hero-slide::before,
.hero-slide::after,
body.light-mode .hero-carousel-container::before,
body.light-mode .hero-carousel-container::after,
body.light-mode .hero-slide::before,
body.light-mode .hero-slide::after,
[data-theme="light"] .hero-carousel-container::before,
[data-theme="light"] .hero-carousel-container::after,
[data-theme="light"] .hero-slide::before,
[data-theme="light"] .hero-slide::after {
  display: none !important;
  background: none !important;
}

/* 3. High-Contrast Typography & Elements (Light & Dark Modes) */
.hero-content,
.hero-content *,
body.light-mode .hero-content,
body.light-mode .hero-content *,
[data-theme="light"] .hero-content,
[data-theme="light"] .hero-content * {
  color: #ffffff !important;
}

.hero-title,
.hero-content .hero-title,
body.light-mode .hero-title,
body.light-mode .hero-content .hero-title,
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-content .hero-title {
  color: #ffffff !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9) !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.hero-content span,
body.light-mode .hero-content span,
[data-theme="light"] .hero-content span {
  color: #d1d5db !important;
}

/* 4. Trending Badge */
.hero-badge,
body.light-mode .hero-badge,
[data-theme="light"] .hero-badge {
  background: var(--primary-red, #ff5500) !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.6px !important;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.4) !important;
  border: none !important;
}

/* 5. Hero Carousel Navigation Controls */
.hero-controls,
body.light-mode .hero-controls,
[data-theme="light"] .hero-controls {
  background: rgba(12, 13, 16, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  z-index: 10 !important;
}

.hero-nav-btn,
body.light-mode .hero-nav-btn,
[data-theme="light"] .hero-nav-btn {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
}

.hero-dot,
body.light-mode .hero-dot,
[data-theme="light"] .hero-dot {
  background: rgba(255, 255, 255, 0.3) !important;
  border: none !important;
}

.hero-dot.active,
body.light-mode .hero-dot.active,
[data-theme="light"] .hero-dot.active {
  background: var(--primary-red, #ff5500) !important;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.4) !important;
}

/* ==========================================================================
   Responsive Carousel Navigation Controls Breakpoint (1200px)
   ========================================================================== */

/* Desktop Navigation Buttons (>= 1201px) */
@media (min-width: 1201px) {

  .trending-nav-buttons .hero-nav-btn,
  .hero-carousel-controls .hero-nav-btn,
  .hero-nav-btn {
    display: inline-flex !important;
  }
}

/* Mobile & Tablet View (<= 1200px) */
@media (max-width: 1200px) {

  .trending-nav-buttons .hero-nav-btn,
  .hero-carousel-controls .hero-nav-btn,
  .hero-nav-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Manage Tags & Categories Modal - Delete Confirmation Buttons (Light & Dark)
   ========================================================================== */

/* 1. Delete Confirmation Row (Light Mode Override) */
body.light-mode .tag-delete-confirm-row,
body.light-mode .tag-delete-confirm,
[data-theme="light"] .tag-delete-confirm-row,
[data-theme="light"] .tag-delete-confirm {
  background: rgba(255, 85, 0, 0.08) !important;
  border: 1px solid rgba(255, 85, 0, 0.2) !important;
  border-radius: 8px !important;
}

body.light-mode .tag-delete-confirm-text,
[data-theme="light"] .tag-delete-confirm-text {
  color: #c2410c !important;
  /* Dark orange/red readable warning text */
  font-weight: 600 !important;
}

/* 2. "Yes, Delete" Button Styling (Solid Orange across both themes) */
.btn-confirm-delete,
.tag-delete-confirm button.confirm-btn,
.tag-delete-confirm-row button.confirm-btn {
  background: #ff5500 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.3) !important;
}

.btn-confirm-delete:hover,
.tag-delete-confirm button.confirm-btn:hover {
  background: #e64a00 !important;
}

/* 3. "Cancel" Button Styling (Light Mode Override) */
body.light-mode .btn-cancel-delete,
body.light-mode .tag-delete-confirm button.cancel-btn,
body.light-mode .tag-delete-confirm-row button.cancel-btn,
[data-theme="light"] .btn-cancel-delete,
[data-theme="light"] .tag-delete-confirm button.cancel-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #374151 !important;
  /* Dark grey text */
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

body.light-mode .btn-cancel-delete:hover,
body.light-mode .tag-delete-confirm button.cancel-btn:hover,
[data-theme="light"] .btn-cancel-delete:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #111827 !important;
}

/* Cancel Button Dark Mode default */
.btn-cancel-delete,
.tag-delete-confirm button.cancel-btn,
.tag-delete-confirm-row button.cancel-btn {
  background: var(--bg-color, #0f1015);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  color: var(--text-main, #ffffff);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
}

/* ==========================================================================
   Standard Video Player & Iframe Container CSS
   ========================================================================== */
.player-wrapper,
.video-player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
}

.player-wrapper iframe,
.video-player-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 240px !important;
  border: none !important;
  display: block;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Mobile Video Player Controls Bar Fix
   Ensures native browser video controls are NEVER clipped on any phone.
   The controls bar on mobile Chrome/Safari renders at the bottom of the
   video element; overflow:hidden on the wrapper clips it on small screens.
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Allow the controls to breathe outside the aspect-ratio box */
  .player-container-wrap {
    /* Extra bottom padding so the controls bar doesn't clip on scroll */
    padding-bottom: 8px !important;
  }

  /* The video element itself must not be clipped */
  #customVideoPlayer {
    overflow: visible !important;
    /* Guarantee the controls bar height is included in layout */
    height: auto !important;
    min-height: 220px !important;
    width: 100% !important;
  }

  /* Iframe players (streamtape etc.) */
  #modalIframePlayer {
    min-height: 220px !important;
    height: 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   Ray-to-Dashed Star Burst Click Animation CSS
   ========================================================================== */
@keyframes ray-burst-seq {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }

  40% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
  }

  75% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
  }
}

@keyframes ray-dash-seq {
  0% {
    stroke-dasharray: 14 0;
    stroke-dashoffset: 0;
  }

  40% {
    stroke-dasharray: 9 5;
    stroke-dashoffset: 0;
  }

  75% {
    stroke-dasharray: 5 11;
    stroke-dashoffset: -4;
  }

  100% {
    stroke-dasharray: 2 16;
    stroke-dashoffset: -10;
  }
}

.star-ray-burst {
  position: fixed;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  animation: ray-burst-seq 0.4s cubic-bezier(0.15, 0.8, 0.35, 1) forwards;
}

.star-ray-burst svg {
  width: 100%;
  height: 100%;
  display: block;
}

.star-ray-burst line {
  animation: ray-dash-seq 0.4s cubic-bezier(0.15, 0.8, 0.35, 1) forwards;
}

/* ============================================================
   SKELETON LOADING PLACEHOLDERS & LAZY IMAGE FADE-IN
   ============================================================ */

/* Base shimmer animation */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card {
  background: var(--bg-secondary, #1a1a2e);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(255,255,255,0.06));
  animation: skeleton-fade-in 0.3s ease;
}

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

/* Skeleton shimmer base */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-secondary, #1a1a2e) 25%,
    var(--bg-card,        #232340) 50%,
    var(--bg-secondary, #1a1a2e) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
}

/* Thumbnail placeholder � fixed 16:9 ratio prevents CLS */
.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Text line placeholders */
.skeleton-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  border-radius: 6px;
  height: 12px;
}

.skeleton-line.title  { width: 80%; height: 14px; }
.skeleton-line.sub    { width: 55%; height: 11px; }
.skeleton-line.chip   { width: 32%; height: 10px; border-radius: 20px; }

/* Tag chip row */
.skeleton-chips {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

/* ---- Lazy image fade-in ---- */
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Start invisible � will fade in once loaded */
  opacity: 0;
  transition: opacity 0.35s ease;
  /* Reserve space � prevents layout shift */
}

.card-thumb-img.loaded {
  opacity: 1;
}

/* Fallback: browsers that don't fire 'load' for cached images */
.card-thumb-img[src=""] {
  opacity: 0;
}

/* Hero carousel background images also participate in fade-in */
.hero-slide-bg.card-thumb-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Smooth card entry animation when skeleton ? real card */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.video-card {
  animation: card-enter 0.3s ease both;
}

/* ============================================================
   BOTTOM NAVIGATION BAR
   ============================================================ */

.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 9999;
  background: var(--bg-secondary, #14161d);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-color, #282c39);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bottom-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  color: var(--text-muted, #9a9ea8);
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.bottom-nav-tab:active {
  transform: scale(0.93);
}

.bottom-nav-tab.active {
  color: var(--theme-color, var(--primary-red, #ff5500));
}

.bottom-nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--theme-color, var(--primary-red, #ff5500));
  border-radius: 0 0 4px 4px;
}

/* Light Theme Support for Bottom Navigation Bar */
[data-theme="light"] .bottom-nav-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bottom-nav-tab {
  color: #64748b;
}

[data-theme="light"] .bottom-nav-tab:hover {
  color: #0f172a;
}

[data-theme="light"] .bottom-nav-tab.active {
  color: var(--theme-color, var(--primary-red, #ff5500));
}

.bottom-nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body {
  padding-bottom: 60px;
}

/* ============================================================
   VIEW SECTIONS (Home / Shorts switcher)
   ============================================================ */

.view-section {
  width: 100%;
}

/* ============================================================
   SHORTS FEED VIEW
   ============================================================ */

#shortsView {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  width: 100%;
  height: calc(100dvh - 60px);
  max-height: calc(100dvh - 60px);
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.short-card {
  aspect-ratio: 9 / 16;
  width: min(100vw, calc((100dvh - 60px) * (9 / 16)));
  height: calc(100dvh - 60px);
  min-height: calc(100dvh - 60px);
  max-height: calc(100dvh - 60px);
  max-width: 100vw;
  margin: 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.short-card video,
.short-card iframe {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  border: none;
  display: block;
  background: #000;
}

.short-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  pointer-events: none;
}

.short-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.short-card-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

.shorts-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  color: #555;
}

.shorts-empty-state .shorts-empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.shorts-empty-state p {
  font-size: 0.95rem;
  text-align: center;
  max-width: 240px;
  line-height: 1.5;
}

/* ============================================================
   POST TYPE SELECTOR MODAL
   ============================================================ */

.post-type-overlay {
  z-index: 1000001;
}

.post-type-card {
  position: relative;
  background: var(--bg-card, #1a1a1a);
  border: 1px solid var(--border-color, #2a2a2a);
  border-radius: 20px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 90%;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: slideUpFade 0.25s ease both;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.post-type-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.post-type-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
}

.post-type-header {
  text-align: center;
  margin-bottom: 24px;
}

.post-type-icon-wrap {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.post-type-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
}

.post-type-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
}

.post-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-type-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--bg-secondary, #222);
  border: 1.5px solid var(--border-color, #2a2a2a);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.post-type-btn:hover {
  border-color: var(--primary-red, #ff5500);
  background: rgba(255,85,0,0.06);
  transform: translateY(-1px);
}

.post-type-btn:active {
  transform: scale(0.98);
}

.post-type-btn.shorts-opt:hover {
  border-color: #ffb703;
  background: rgba(255,183,3,0.06);
}

.post-type-btn-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.post-type-btn-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-type-btn-body strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.post-type-btn-body span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.post-type-btn-arrow {
  font-size: 1.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   SHORTS ACTION BUTTONS & OVERLAY ENHANCEMENTS
   ============================================================ */

.short-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 75px;
  padding: 24px 16px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
}

.short-card-overlay * {
  pointer-events: auto;
}

.short-actions {
  position: absolute;
  right: 12px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.short-action-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-size: 1.15rem;
  padding: 0;
}

.short-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.short-action-btn:active {
  transform: scale(0.95);
}

.short-action-btn .action-count,
.short-action-btn .action-label {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 1px;
  color: #fff;
}

.short-action-btn.liked {
  color: #ff3b30;
  border-color: #ff3b30;
  background: rgba(255, 59, 48, 0.25);
}

.short-action-btn.disliked {
  color: #ff9500;
  border-color: #ff9500;
  background: rgba(255, 149, 0, 0.25);
}

.short-action-btn.admin-action {
  background: rgba(255, 85, 0, 0.5);
  border-color: rgba(255, 85, 0, 0.8);
}

.short-action-btn.admin-action.delete-btn {
  background: rgba(220, 38, 38, 0.6);
  border-color: rgba(220, 38, 38, 0.9);
}

/* ============================================================
   SHORTS DOUBLE-TAP HEART POP ANIMATION
   ============================================================ */

.short-heart-pop {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 4rem;
  pointer-events: none;
  z-index: 100;
  animation: heartPopAnim 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPopAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-15deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8) translateY(-40px);
  }
}

/* ============================================================
   SHORTS SEEKBAR / PROGRESS BAR
   ============================================================ */

.short-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  z-index: 30;
  padding: 0;
  touch-action: none;
}

.short-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  transition: height 0.15s ease, background-color 0.15s ease;
}

.short-progress-container:hover .short-progress-bar,
.short-card.seeking .short-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
}

.short-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--theme-color, var(--primary-red, #ff5500));
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0 2px 2px 0;
  transition: width 0.05s linear;
}

.short-progress-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.short-progress-container:hover .short-progress-thumb,
.short-card.seeking .short-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   SHORTS PLAY/PAUSE TAP OVERLAY ANIMATION
   ============================================================ */

.short-playstate-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: playstatePopAnim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.short-playstate-pop span {
  display: block;
  line-height: 1;
}

@keyframes playstatePopAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  60% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* ============================================================
   MAINTENANCE MODE SCREEN OVERLAY & ADMIN TOGGLE
   ============================================================ */

.admin-act-pill.maintenance-toggle-btn {
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #fdba74;
}

.admin-act-pill.maintenance-toggle-btn:hover {
  background: rgba(234, 88, 12, 0.35);
  border-color: rgba(234, 88, 12, 0.7);
}

.admin-act-pill.maintenance-toggle-btn.maint-active {
  background: rgba(220, 38, 38, 0.3);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.maint-status-on {
  color: #ef4444;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.maint-status-off {
  color: #10b981;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #121212;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

body.in-maintenance-mode {
  overflow: hidden !important;
}

.maintenance-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
}

.maintenance-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff5500, transparent 70%);
  top: 10%;
  left: 15%;
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.maintenance-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  bottom: 10%;
  right: 15%;
  animation: orbFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 40px); }
}

.maintenance-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  background: rgba(18, 20, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maintenance-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.maintenance-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.maintenance-brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.maintenance-brand-x {
  color: var(--theme-color, #ff5500);
}

.maintenance-icon-badge {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.maintenance-icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.3);
  filter: blur(15px);
  z-index: -1;
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.9; }
}

.maintenance-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.maintenance-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--theme-color, #ff5500);
  margin-bottom: 16px;
}

.maintenance-desc {
  font-size: 0.95rem;
  color: #9a9ea8;
  line-height: 1.55;
  margin-bottom: 24px;
}

.maintenance-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseDotAnim 1.5s infinite;
}

@keyframes pulseDotAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.maintenance-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.maintenance-admin-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.maintenance-admin-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ============================================================
   STANDARD POST CUSTOM VIDEO PLAYER UI (FoxHubX Redesign)
   Applies ONLY to Standard Post modal player (#foxhubxCustomPlayer).
   Short Video (#shortsView, .short-card) is strictly untouched.
   ============================================================ */

.foxhubx-custom-player {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  background: #000000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  border-radius: inherit;
  container-type: inline-size;
  container-name: fplayer;
}

.foxhubx-custom-player video,
#customVideoPlayer {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000000;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

/* Video Loading & Buffering Indicator (Standard Post & Short Videos) */
.video-loading-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 13, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 18;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-loading-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.video-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: #ff5500;
  border-right-color: #ff7700;
  border-bottom-color: #8b5cf6;
  border-radius: 50%;
  animation: fplayerVideoSpin 0.75s linear infinite;
  box-shadow: 0 0 24px rgba(255, 85, 0, 0.45), 0 0 12px rgba(139, 92, 246, 0.3);
}

@keyframes fplayerVideoSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.short-card .video-loading-backdrop {
  z-index: 15;
}

@media (max-width: 480px) {
  .video-loading-spinner {
    width: 38px;
    height: 38px;
    border-width: 3px;
  }
}

@media (max-width: 350px) {
  .video-loading-spinner {
    width: 32px;
    height: 32px;
    border-width: 2.5px;
  }
}

/* Center Big Play/Pause Action Button */
.fplayer-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(20, 22, 29, 0.78);
  border: 2px solid rgba(255, 85, 0, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 28px rgba(255, 85, 0, 0.42), 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              background 0.2s ease,
              box-shadow 0.25s ease;
  pointer-events: auto;
}

.fplayer-center-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 85, 0, 0.95);
  border-color: #ff7700;
  box-shadow: 0 0 40px rgba(255, 85, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.7);
}

.fplayer-center-play:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.fplayer-center-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.fplayer-center-play-icon {
  margin-left: 3px; /* visual center for play triangle */
}

/* When playing and not paused, center button fades out cleanly */
.foxhubx-custom-player.is-playing:not(.is-paused) .fplayer-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

/* Double-Tap Skip Feedback Overlays */
.fplayer-skip-feedback {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  z-index: 14;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.fplayer-skip-feedback svg {
  width: 24px;
  height: 24px;
}

.fplayer-skip-left {
  left: 18%;
}

.fplayer-skip-right {
  right: 18%;
}

.fplayer-skip-feedback.active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Bottom Controls Bar */
.fplayer-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.96) 0%, rgba(12, 13, 17, 0.78) 60%, rgba(12, 13, 17, 0) 100%);
  padding: 24px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

/* Auto-hide controls when playing and inactive */
.foxhubx-custom-player.is-playing:not(.is-paused):not(.controls-visible):not(.is-seeking) .fplayer-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Hide cursor when controls are hidden */
.foxhubx-custom-player.is-playing:not(.is-paused):not(.controls-visible) {
  cursor: none;
}

/* Timeline / Progress Bar */
.fplayer-progress-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.fplayer-progress-track {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  transition: height 0.15s ease;
  overflow: visible;
}

.fplayer-progress-container:hover .fplayer-progress-track,
.foxhubx-custom-player.is-seeking .fplayer-progress-track {
  height: 8px;
}

.fplayer-progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  transition: width 0.15s ease;
}

.fplayer-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4500 0%, #ff6600 60%, #ff8800 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

.fplayer-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ff5500;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
  z-index: 2;
}

.fplayer-progress-container:hover .fplayer-progress-thumb,
.foxhubx-custom-player.is-seeking .fplayer-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Hover time indicator tooltip */
.fplayer-hover-time {
  position: absolute;
  bottom: 28px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(18, 20, 26, 0.95);
  border: 1px solid rgba(255, 85, 0, 0.4);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-variant-numeric: tabular-nums;
  z-index: 10;
}

.fplayer-progress-container:hover .fplayer-hover-time {
  opacity: 1;
}

/* Bottom Controls Row */
.fplayer-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 4px;
}

.fplayer-controls-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

.fplayer-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Button Styling */
.fplayer-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease, background 0.2s ease;
  position: relative;
  flex-shrink: 0;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.fplayer-fs-btn {
  flex-shrink: 0 !important;
}

.fplayer-btn:hover {
  color: #ff5500;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.fplayer-btn:active {
  transform: scale(0.94);
}

.fplayer-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Volume Group */
.fplayer-volume-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fplayer-volume-slider-wrap {
  width: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.fplayer-volume-group:hover .fplayer-volume-slider-wrap,
.fplayer-volume-group:focus-within .fplayer-volume-slider-wrap {
  width: 74px;
  opacity: 1;
}

.fplayer-volume-slider {
  width: 68px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fplayer-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5500;
  box-shadow: 0 0 8px rgba(255, 85, 0, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fplayer-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.fplayer-volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #ff5500;
  box-shadow: 0 0 8px rgba(255, 85, 0, 0.8);
  cursor: pointer;
}

/* Time Display */
.fplayer-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fplayer-time-sep {
  color: #64748b;
  font-weight: 400;
}

#fplayerDuration {
  color: #94a3b8;
  font-weight: 500;
}

/* Mobile & Responsive System for Custom Player Controls */
/* Level 1: Tablets and mid-sized screens (<= 768px) */
@media (max-width: 768px) {
  .fplayer-controls {
    padding: 16px 12px 10px;
    gap: 6px;
  }

  .fplayer-btn {
    width: 32px;
    height: 32px;
  }

  .fplayer-icon {
    width: 18px;
    height: 18px;
  }

  .fplayer-center-play {
    width: 60px;
    height: 60px;
  }

  .fplayer-center-icon {
    width: 26px;
    height: 26px;
  }

  .fplayer-time {
    font-size: 0.76rem;
    margin-left: 4px;
  }

  .fplayer-volume-slider-wrap {
    width: 54px;
    opacity: 1; /* Keep volume slider visible on tablets */
  }

  .fplayer-volume-slider {
    width: 50px;
  }
}

/* Level 2: Standard Phones (~390px - 480px, e.g. iPhone 12/13/14/15/16) */
@media (max-width: 480px) {
  .fplayer-controls {
    padding: 12px 10px 8px;
    gap: 5px;
  }

  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 3px;
  }

  .fplayer-btn {
    width: 30px;
    height: 30px;
  }

  .fplayer-icon {
    width: 17px;
    height: 17px;
  }

  .fplayer-volume-slider-wrap {
    display: none; /* Tap volume button to mute/unmute */
  }

  .fplayer-time {
    font-size: 0.72rem;
    margin-left: 3px;
    gap: 3px;
  }

  .fplayer-settings-menu {
    right: 8px;
    bottom: 48px;
    width: min(220px, calc(100% - 16px));
  }
}

/* Level 3: Compact Phones (~360px - 380px, e.g. Samsung Galaxy S series, Pixel) */
@media (max-width: 380px) {
  .fplayer-controls {
    padding: 10px 8px 6px;
    gap: 4px;
  }

  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 2px;
  }

  .fplayer-btn {
    width: 28px;
    height: 28px;
  }

  .fplayer-icon {
    width: 16px;
    height: 16px;
  }

  .fplayer-time {
    font-size: 0.68rem;
    margin-left: 2px;
    gap: 2px;
    letter-spacing: -0.2px;
  }
}

/* Level 4: Samsung Galaxy Z Fold 5 Front-Screen & Ultra-Narrow Phones (<= 350px) */
@media (max-width: 350px) {
  .fplayer-controls {
    padding: 8px 6px 5px;
    gap: 3px;
  }

  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 1.5px;
  }

  .fplayer-btn {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }

  .fplayer-icon {
    width: 14.5px;
    height: 14.5px;
  }

  .fplayer-time {
    font-size: 0.62rem;
    margin-left: 1.5px;
    gap: 1.5px;
    letter-spacing: -0.3px;
  }

  .fplayer-time-sep {
    margin: 0;
  }
}

/* Level 5: Extreme narrow screens (<= 310px, e.g. Fold 1 cover screen 280px) */
@media (max-width: 310px) {
  .fplayer-controls {
    padding: 6px 4px 4px;
    gap: 2px;
  }

  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 1px;
  }

  .fplayer-btn {
    width: 23px;
    height: 23px;
    border-radius: 5px;
  }

  .fplayer-icon {
    width: 13.5px;
    height: 13.5px;
  }

  .fplayer-time {
    font-size: 0.58rem;
    margin-left: 1px;
    gap: 1px;
    letter-spacing: -0.4px;
  }
}

/* Container Query Adaptations: Based directly on rendered player width */
@container fplayer (max-width: 460px) {
  .fplayer-volume-slider-wrap {
    display: none !important;
  }
}

@container fplayer (max-width: 390px) {
  .fplayer-controls {
    padding: 10px 8px 6px;
    gap: 4px;
  }
  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 2px;
  }
  .fplayer-btn {
    width: 28px;
    height: 28px;
  }
  .fplayer-icon {
    width: 16px;
    height: 16px;
  }
  .fplayer-time {
    font-size: 0.68rem;
    margin-left: 2px;
    gap: 2px;
    letter-spacing: -0.2px;
  }
}

@container fplayer (max-width: 340px) {
  .fplayer-controls {
    padding: 8px 6px 5px;
    gap: 3px;
  }
  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 1.5px;
  }
  .fplayer-btn {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }
  .fplayer-icon {
    width: 14.5px;
    height: 14.5px;
  }
  .fplayer-time {
    font-size: 0.62rem;
    margin-left: 1.5px;
    gap: 1.5px;
    letter-spacing: -0.3px;
  }
  .fplayer-time-sep {
    margin: 0;
  }
  .fplayer-settings-menu {
    right: 6px;
    bottom: 44px;
    width: min(210px, calc(100% - 12px));
  }
}

@container fplayer (max-width: 290px) {
  .fplayer-controls {
    padding: 6px 4px 4px;
    gap: 2px;
  }
  .fplayer-controls-left,
  .fplayer-controls-right {
    gap: 1px;
  }
  .fplayer-btn {
    width: 23px;
    height: 23px;
    border-radius: 5px;
  }
  .fplayer-icon {
    width: 13.5px;
    height: 13.5px;
  }
  .fplayer-time {
    font-size: 0.58rem;
    margin-left: 1px;
    gap: 1px;
    letter-spacing: -0.4px;
  }
}

/* Player Floating Toast (Speed, Volume, Mute feedback) */
.fplayer-toast {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(18, 20, 26, 0.94);
  border: 1px solid rgba(255, 85, 0, 0.5);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 85, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  white-space: nowrap;
}

.fplayer-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Settings Menu Popup */
.fplayer-settings-menu {
  position: absolute;
  bottom: 64px;
  right: 18px;
  width: 230px;
  background: rgba(14, 16, 22, 0.96);
  border: 1px solid rgba(255, 85, 0, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 85, 0, 0.22);
  z-index: 25;
  animation: fplayerMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

@keyframes fplayerMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fplayer-menu-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fplayer-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.fplayer-menu-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.fplayer-menu-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.fplayer-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.fplayer-speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.fplayer-speed-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.fplayer-speed-btn:hover {
  background: rgba(255, 85, 0, 0.2);
  border-color: rgba(255, 85, 0, 0.6);
  color: #ffffff;
}

.fplayer-speed-btn.active {
  background: #ff5500;
  border-color: #ff7700;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

/* Fullscreen Display Rules for Standard Post Custom Player */
.player-wrapper:fullscreen .foxhubx-custom-player,
.player-wrapper:-webkit-full-screen .foxhubx-custom-player,
.player-wrapper:-moz-full-screen .foxhubx-custom-player,
.player-wrapper:-ms-fullscreen .foxhubx-custom-player,
.player-wrapper.pseudo-fullscreen .foxhubx-custom-player {
  position: absolute !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;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.player-wrapper:fullscreen #customVideoPlayer,
.player-wrapper:-webkit-full-screen #customVideoPlayer,
.player-wrapper:-moz-full-screen #customVideoPlayer,
.player-wrapper:-ms-fullscreen #customVideoPlayer,
.player-wrapper.pseudo-fullscreen #customVideoPlayer {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Standard Post Create & Edit Modal Modern Redesign
   ========================================================================== */

.standard-post-editor-container {
  width: 100%;
  max-width: 680px !important;
  background: #14161f !important;
  border: 1px solid rgba(255, 85, 0, 0.28) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 28px rgba(255, 85, 0, 0.15) !important;
  border-radius: 16px !important;
  padding: 24px 26px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.standard-post-editor-container::-webkit-scrollbar {
  width: 6px;
}

.standard-post-editor-container::-webkit-scrollbar-thumb {
  background: rgba(255, 85, 0, 0.35);
  border-radius: 4px;
}

/* Header */
.editor-header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.15);
}

.editor-header-bar .modal-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.editor-subtext {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin: 3px 0 0;
  line-height: 1.35;
}

/* Fields & Groups */
.editor-field-group {
  margin-bottom: 16px;
}

.editor-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.required-star {
  color: #ff5500;
  font-weight: 800;
}

.editor-label-hint {
  font-size: 0.76rem;
  font-weight: 400;
  color: #94a3b8;
}

/* Modern Inputs, Textareas, Selects */
.editor-input,
.editor-textarea,
.editor-select {
  width: 100%;
  background: #0e1017;
  border: 1px solid #282c3a;
  border-radius: 10px;
  color: #f1f5f9;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

.editor-input:focus,
.editor-textarea:focus,
.editor-select:focus {
  border-color: #ff5500 !important;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.22), 0 0 12px rgba(255, 85, 0, 0.18) !important;
  background: #11131c !important;
}

.editor-textarea {
  resize: vertical;
  line-height: 1.5;
}

.editor-code-input {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.editor-tags-wrapper {
  background: #0e1017 !important;
  border: 1px solid #282c3a !important;
  border-radius: 10px !important;
  padding: 10px !important;
  min-height: 48px;
  max-height: 140px;
  overflow-y: auto;
}

/* ==================== VIDEO SOURCE CARD ==================== */
.editor-video-card {
  background: linear-gradient(145deg, #12141d 0%, #171a26 100%);
  border: 1px solid rgba(255, 85, 0, 0.38);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.editor-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ff5500;
  letter-spacing: 0.05em;
}

.editor-card-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffaa77;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
}

.editor-card-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.editor-subgroup {
  margin-bottom: 10px;
}

.editor-sublabel {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.editor-select-wrapper {
  position: relative;
}

.editor-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff5500' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Action Buttons */
.editor-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.editor-action-btn.clear-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.editor-action-btn.clear-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.editor-action-btn.preview-btn {
  background: rgba(255, 85, 0, 0.16);
  color: #ff9955;
  border-color: rgba(255, 85, 0, 0.4);
}

.editor-action-btn.preview-btn:hover {
  background: #ff5500;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 85, 0, 0.5);
}

/* Source Detection Feedback Badge */
.editor-source-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.source-detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.source-detect-badge.empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.source-detect-badge.direct-mp4 {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.source-detect-badge.embed-provider {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: #60a5fa;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

/* Inline Live Preview Box */
.editor-preview-box {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #090a0e;
  border: 1px solid rgba(255, 85, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  animation: fplayerMenuFadeIn 0.2s ease;
}

.preview-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
}

.preview-box-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.preview-box-close:hover {
  color: #ff5500;
}

.preview-box-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box-content video,
.preview-box-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  object-fit: contain;
}

/* Description & Content Helper */
.editor-toggle-raw-btn {
  background: none;
  border: none;
  color: #ff5500;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s ease;
}

.editor-toggle-raw-btn:hover {
  color: #ff8833;
}

.editor-helper-box {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 85, 0, 0.3);
  border-radius: 8px;
  font-size: 0.76rem;
  color: #94a3b8;
}

.editor-helper-box ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

.editor-helper-box li {
  margin-bottom: 4px;
}

.editor-helper-box code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  color: #ffaa77;
  word-break: break-all;
}

/* Schedule Card */
.editor-schedule-card {
  background: #0e1017 !important;
  border: 1px solid #282c3a !important;
  border-radius: 10px !important;
  padding: 14px !important;
}

.schedule-label {
  margin-bottom: 8px;
}

.editor-datetime {
  color-scheme: dark;
}

.editor-help-text {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
  margin: 6px 0 0;
}

/* Submit Button */
.editor-submit-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 14px !important;
  background: linear-gradient(135deg, #ff5500 0%, #ff6600 100%) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.35) !important;
}

.editor-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 85, 0, 0.55) !important;
}

.editor-submit-btn:active {
  transform: translateY(1px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .standard-post-editor-container {
    padding: 18px 16px !important;
    max-height: 94vh !important;
  }

  .editor-header-bar {
    gap: 10px;
    margin-bottom: 14px;
  }

  .editor-header-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .editor-header-bar .modal-title {
    font-size: 1.08rem;
  }

  .editor-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .editor-source-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .source-detect-badge {
    width: 100%;
    justify-content: center;
  }

  .editor-source-btns {
    width: 100%;
  }

  .editor-source-btns .preview-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== TELEGRAM WATCH OPTION SECTION ==================== */
.editor-telegram-card {
  background: linear-gradient(145deg, #12141d 0%, #151926 100%);
  border: 1px solid rgba(0, 136, 204, 0.32);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.editor-telegram-card:focus-within {
  border-color: rgba(0, 136, 204, 0.65);
  box-shadow: 0 6px 22px rgba(0, 136, 204, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.editor-telegram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

/* Custom Switch */
.editor-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.editor-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}

.editor-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232736;
  border: 1px solid #363b4e;
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-toggle-track::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #f1f5f9;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.editor-toggle-input:checked + .editor-toggle-track {
  background: linear-gradient(135deg, #0088cc 0%, #29b6f6 100%);
  border-color: #0088cc;
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.45);
}

.editor-toggle-input:checked + .editor-toggle-track::before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.editor-toggle-input:focus + .editor-toggle-track {
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.4);
}

.editor-toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.editor-telegram-icon {
  color: #29b6f6;
  flex-shrink: 0;
}

.telegram-pill {
  color: #7dd3fc !important;
  background: rgba(0, 136, 204, 0.14) !important;
  border-color: rgba(0, 136, 204, 0.35) !important;
}

.editor-telegram-content {
  animation: editorTelegramSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.editor-telegram-input-wrap {
  position: relative;
}

.editor-telegram-input-wrap .editor-input:focus {
  border-color: #0088cc !important;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.22), 0 0 12px rgba(0, 136, 204, 0.2) !important;
}

@media (max-width: 640px) {
  .editor-telegram-card {
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .editor-toggle-title {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   PART 3: Dynamic Watch on Telegram Button for Post Cards
   ========================================================================== */
.card-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 9px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #ff5500 0%, #ff3700 50%, #d82b00 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 10px rgba(255, 85, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              background 0.2s ease,
              filter 0.2s ease;
  z-index: 2;
}

.card-telegram-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.card-telegram-btn:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  text-decoration: none !important;
}

.card-telegram-btn:hover::before {
  left: 140%;
}

.card-telegram-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 6px rgba(255, 85, 0, 0.35);
  filter: brightness(0.95);
}

.card-telegram-btn .card-tg-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(-0.5px);
  transition: transform 0.22s ease;
}

.card-telegram-btn:hover .card-tg-icon {
  transform: translateY(-0.5px) rotate(-12deg) scale(1.15);
}

.card-telegram-btn .card-tg-text {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .card-telegram-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
    margin-top: 7px;
    border-radius: 7px;
    gap: 6px;
  }
  .card-telegram-btn .card-tg-text {
    font-size: 0.78rem;
  }
  .card-telegram-btn .card-tg-icon {
    font-size: 0.88rem;
  }
}
