/*
Theme Name: Factorax
Theme URI: https://factorax.ir
Description: قالب اختصاصی فکتوراکس — مرجع فارسی آموزش فکتوریو
Version: 1.0.0
Author: Factorax
Author URI: https://factorax.ir
Text Domain: factorax
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
/* =========================================================
   FACTORAX — Global Design System
   Industrial / Factorio-Inspired Dark UI
   ========================================================= */
/* ---------- CSS Custom Properties ---------- */
@font-face {
  font-family: Vazirmatn;
  src: url("https://factorax.ir/wp-content/themes/Factorax/assets/fonts/vazirmatn/Vazirmatn-RD-UI-FD-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  /* Backgrounds */
  --bg-primary: #0a0e14;
  --bg-secondary: #0f1520;
  --bg-panel: #131b27;
  --bg-panel-alt: #101722;
  --bg-elevated: #182030;
  /* Borders */
  --border-subtle: #1e2a3a;
  --border-default: #253245;
  --border-accent: rgba(255, 176, 32, 0.35);
  /* Text */
  --text-primary: #e8edf4;
  --text-secondary: #8e99a8;
  --text-muted: #5c6878;
  /* Accent — Factorio Orange */
  --accent: #f0a030;
  --accent-light: #ffbe4a;
  --accent-glow: rgba(240, 160, 48, 0.2);
  --accent-glow-strong: rgba(240, 160, 48, 0.35);
  /* Functional */
  --success: #38c97a;
  --success-bg: rgba(56, 201, 122, 0.12);
  /* Sizing */
  --max-width: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;
}
/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", system-ui, sans-serif;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body,
body * {
    font-family: Vazirmatn, Tahoma, sans-serif !important;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
/* =========================================================
   NAVBAR
   ========================================================= */
#wpadminbar,
#wpadminbar * {
    font-family: Vazirmatn, Tahoma, sans-serif !important;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 64px;
}
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.logo img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
}
/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 400;
  transition:
    color var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.nav-links a.active {
  color: var(--accent);
  background: rgba(240, 160, 48, 0.08);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  transition: background var(--duration);
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--duration) var(--ease-out),
    opacity var(--duration);
}
/* Hamburger active state */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* =========================================================
   MOBILE NAV OVERLAY
   ========================================================= */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--duration);
}
.mobile-nav-overlay.show {
  opacity: 1;
}
/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Background image layer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
/* Gradient overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center top,
      rgba(240, 160, 48, 0.06) 0%,
      transparent 60%
    ),
    linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  z-index: 1;
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 0 30px var(--accent-glow);
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(
    135deg,
    var(--text-primary) 40%,
    var(--accent-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.9;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: "Vazirmatn", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
  border-color: var(--accent);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d88a18);
  border: 1px solid var(--accent);
  color: #0a0e14;
  font-weight: 600;
}
.btn-primary:hover {
  box-shadow: 0 4px 25px var(--accent-glow-strong);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}
.btn-copy {
  background: rgba(240, 160, 48, 0.08);
  border: 1px solid var(--border-accent);
  color: var(--accent);
}
.btn-copy:hover {
  background: rgba(240, 160, 48, 0.15);
}
.btn-copy.copied {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-bg);
}
/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(240, 160, 48, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 0.92rem;
}
/* Divider line */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}
/* =========================================================
   CARDS — Reusable System
   ========================================================= */
.card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-color: var(--border-default);
}
.card-thumb {
  width: 200px;
  min-width: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.card-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}
.card-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.badge-youtube {
  background: rgba(255, 0, 0, 0.1);
  color: #f55;
  border: 1px solid rgba(255, 0, 0, 0.18);
}
.badge-aparat {
  background: rgba(236, 78, 136, 0.1);
  color: #ec4e88;
  border: 1px solid rgba(236, 78, 136, 0.18);
}
.badge-category {
  background: rgba(240, 160, 48, 0.08);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
/* =========================================================
   BLUEPRINT SPECIFIC
   ========================================================= */
.blueprint-string-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-height: 80px;
  overflow: hidden;
  word-break: break-all;
  position: relative;
  margin-top: 6px;
  direction: ltr;
  text-align: left;
}
.blueprint-string-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--bg-secondary));
}
/* =========================================================
   SOCIAL LINKS
   ========================================================= */
.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-default);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.social-link.youtube {
  color: #f55;
}
.social-link.youtube:hover {
  border-color: rgba(255, 85, 85, 0.3);
}
.social-link.aparat {
  color: #ec4e88;
}
.social-link.aparat:hover {
  border-color: rgba(236, 78, 136, 0.3);
}
/* =========================================================
   FEATURED GRID (homepage)
   ========================================================= */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.featured-card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  border-color: var(--border-default);
}
.featured-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}
.featured-card-body {
  padding: 18px 20px;
}
.featured-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.featured-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* =========================================================
   INTRO SECTION (homepage)
   ========================================================= */
.intro-section {
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.intro-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.intro-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
}
/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.about-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 2;
}
.about-card ul {
  padding-right: 20px;
  list-style: disc;
}
.about-card ul li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 2.2;
}
.about-card .btn {
  margin-top: 12px;
  margin-left: 8px;
}
/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 160, 48, 0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-secondary);
  margin: 0 auto;
  font-size: 0.95rem;
}
/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  margin-top: 40px;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand .logo {
  font-size: 1rem;
}
.footer-brand .logo img {
  width: 60px;
  height: 60px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--duration);
}
.footer-nav a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
}
/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-accent {
  color: var(--accent);
}
.text-muted {
  color: var(--text-secondary);
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-16 {
  margin-bottom: 16px;
}
.gap-12 {
  gap: 12px;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-panel);
    border-left: 1px solid var(--border-subtle);
    padding: 80px 24px 24px;
    gap: 4px;
    z-index: 999;
    transition: right var(--duration) var(--ease-out);
  }
  .nav-links.show {
    right: 0;
  }
  .mobile-nav-overlay.show {
    display: block;
    opacity: 1;
  }
  .hamburger {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
  .nav-links a.active::after {
    display: none;
  }
  /* Hero */
  .hero {
    padding: 70px 20px 60px;
    min-height: 420px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-logo {
    width: 64px;
    height: 64px;
  }
  /* Cards */
  .card {
    flex-direction: column;
  }
  .card-thumb {
    width: 100%;
    min-width: unset;
  }
  /* Featured Grid */
  .featured-grid {
    grid-template-columns: 1fr;
  }
  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav {
    align-items: center;
  }
  /* Page Header */
  .page-header {
    padding: 40px 20px 28px;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
}
/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero .hero-subtitle {
    font-size: 0.88rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }
  .container {
    padding: 32px 16px;
  }
  .card {
    padding: 16px;
  }
  .social-row {
    flex-direction: column;
    align-items: center;
  }
  .social-link {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}
/* =========================================================
   WORDPRESS-SPECIFIC STYLES
   ========================================================= */
/* wp_nav_menu generates <ul><li><a> — reset list styles */
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li {
  margin: 0;
  padding: 0;
}
.nav-links li a {
  position: relative;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 400;
  transition:
    color var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
  display: block;
}
.nav-links li a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
/* Current menu item highlighting */
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-ancestor > a {
  color: var(--accent);
  background: rgba(240, 160, 48, 0.08);
}
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* Admin bar spacing */
.admin-bar .navbar {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}
/* WordPress mobile nav adjustments */
@media (max-width: 768px) {
  .nav-links ul {
    flex-direction: column;
    gap: 4px;
  }
  .nav-links li a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
  .nav-links li.current-menu-item > a::after,
  .nav-links li.current_page_item > a::after {
    display: none;
  }
}
/* WordPress alignment classes */
.alignleft {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.alignright {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}
.aligncenter {
  display: block;
  margin: 1em auto;
}
/* =========================================================
   SINGLE PLAYLIST & VIDEO SECTIONS
   ========================================================= */
.playlist-videos-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.single-video-section {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}
.single-video-section:hover {
  border-color: var(--border-default);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.video-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.video-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(240, 160, 48, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.video-section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.video-section-header h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
.video-section-header h2 a:hover {
  color: var(--accent);
}
.video-section-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
/* Player Embed Side */
.video-player-side {
  min-width: 0;
}
.aparat-embed-outer {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}
.aparat-embed-inner {
  position: relative;
  width: 100%;
}
.aparat-embed-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-muted);
  text-align: center;
}
/* Info & Description Side */
.video-info-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.video-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}
.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.stat-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
.video-featured-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.video-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
  max-height: 180px;
  overflow-y: auto;
  padding-left: 8px;
}
/* Custom Scrollbar for Video Description */
.video-description::-webkit-scrollbar {
  width: 5px;
}
.video-description::-webkit-scrollbar-track {
  background: transparent;
}
.video-description::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
.video-description::-webkit-scrollbar-thumb:hover {
  background: var(--border-default);
}
/* Responsive Stacks */
@media (max-width: 992px) {
  .video-section-content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .video-section-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .video-featured-img {
    display: none; /* Redundant on mobile when player is visible directly above */
  }
  .video-description {
    max-height: none; /* Let it expand naturally on mobile */
    overflow-y: visible;
  }
}
/* =========================================================
   IMAGE MODAL (LIGHTBOX)
   ========================================================= */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(6, 9, 13, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.image-modal-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80vh;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out);
}
.image-modal.show {
  display: flex;
}
.image-modal.show .image-modal-content {
  transform: scale(1);
  opacity: 1;
}
.image-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--text-secondary);
  font-size: 40px;
  font-weight: bold;
  transition: color 0.2s;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
.image-modal-close:hover {
  color: var(--accent);
}
.image-modal-caption {
  margin: 16px auto 0;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.card-thumb {
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-out),
    filter 0.3s var(--ease-out);
}
.card-thumb:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* =========================================================
   BLUEPRINT OVERHAUL STYLES
   ========================================================= */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out);
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs svg {
  color: var(--text-muted);
  width: 10px;
  height: 10px;
}
.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Archive Toolbar & Filters */
.bp-archive-toolbar {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.bp-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.bp-search-wrapper input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 42px 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.bp-search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.bp-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.bp-filters-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bp-filter-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--duration);
}
.bp-filter-select:focus {
  border-color: var(--accent);
}

/* Grid & Cards */
.bp-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
@media (max-width: 1200px) {
  .bp-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .bp-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .bp-archive-grid {
    grid-template-columns: 1fr;
  }
}
.bp-archive-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.bp-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--border-default);
}
.bp-archive-card.pinned {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(240, 160, 48, 0.15);
}
.pin-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #0a0e14;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.bp-card-thumb-link {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.bp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out);
}
.bp-archive-card:hover .bp-card-img {
  transform: scale(1.03);
}
.bp-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bp-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bp-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}
.bp-card-body h3 a {
  color: var(--text-primary);
  transition: color var(--duration);
}
.bp-card-body h3 a:hover {
  color: var(--accent);
}
.bp-card-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.bp-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}
.btn-detail {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.btn-detail:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Pagination */
.bp-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.bp-page-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease-out);
}
.bp-page-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.bp-page-btn.active {
  background: var(--accent);
  color: #0a0e14;
  border-color: var(--accent);
  font-weight: 600;
}

/* No Results */
.bp-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-panel);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Skeleton Loading overlay */
.bp-loading-overlay {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Single Blueprint Page Layout */
.bp-single-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.bp-main-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-single-img-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.bp-single-img-wrapper img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}
/* =========================================================
   WORDPRESS CONTENT TYPOGRAPHY — .bp-single-body
   Comprehensive styling for all HTML produced by the_content()
   ========================================================= */
.bp-single-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---------- Paragraphs ---------- */
.bp-single-body p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}
.bp-single-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Headings ---------- */
.bp-single-body h1,
.bp-single-body h2,
.bp-single-body h3,
.bp-single-body h4,
.bp-single-body h5,
.bp-single-body h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 16px;
}
.bp-single-body h1:first-child,
.bp-single-body h2:first-child,
.bp-single-body h3:first-child,
.bp-single-body h4:first-child,
.bp-single-body h5:first-child,
.bp-single-body h6:first-child {
  margin-top: 0;
}
.bp-single-body h1 {
  font-size: 1.6rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-accent);
}
.bp-single-body h2 {
  font-size: 1.35rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.bp-single-body h3 {
  font-size: 1.15rem;
}
.bp-single-body h4 {
  font-size: 1.05rem;
  color: var(--accent-light);
}
.bp-single-body h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.bp-single-body h6 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ---------- Links ---------- */
.bp-single-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 160, 48, 0.25);
  transition: color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}
.bp-single-body a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

/* ---------- Unordered Lists ---------- */
.bp-single-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.bp-single-body ul > li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.bp-single-body ul > li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
/* Nested UL inside LI */
.bp-single-body ul ul {
  margin-top: 10px;
  margin-bottom: 4px;
  padding-right: 8px;
  border-right: 2px solid var(--border-accent);
}
.bp-single-body ul ul > li::before {
  width: 5px;
  height: 5px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
}
/* 3rd-level nesting */
.bp-single-body ul ul ul > li::before {
  width: 5px;
  height: 5px;
  background: transparent;
  border: 1.5px dashed var(--text-muted);
  border-radius: 50%;
}

/* ---------- Ordered Lists ---------- */
.bp-single-body ol {
  list-style: none;
  counter-reset: content-counter;
  padding: 0;
  margin: 0 0 20px 0;
}
.bp-single-body ol > li {
  position: relative;
  padding-right: 34px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  counter-increment: content-counter;
}
.bp-single-body ol > li::before {
  content: counter(content-counter);
  position: absolute;
  right: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 160, 48, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
/* Nested OL inside LI */
.bp-single-body ol ol {
  margin-top: 10px;
  margin-bottom: 4px;
  padding-right: 8px;
  border-right: 2px solid var(--border-accent);
  counter-reset: content-counter-nested;
}
.bp-single-body ol ol > li {
  counter-increment: content-counter-nested;
  padding-right: 28px;
}
.bp-single-body ol ol > li::before {
  content: counter(content-counter-nested);
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  background: rgba(240, 160, 48, 0.06);
  border-color: rgba(240, 160, 48, 0.2);
}
/* Mixed nesting: ul inside ol, ol inside ul */
.bp-single-body ol ul,
.bp-single-body ul ol {
  margin-top: 10px;
  margin-bottom: 4px;
}

/* ---------- Blockquotes ---------- */
.bp-single-body blockquote {
  position: relative;
  margin: 24px 0;
  padding: 20px 24px 20px 20px;
  background: linear-gradient(135deg, rgba(240, 160, 48, 0.06), rgba(240, 160, 48, 0.02));
  border-right: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-top: 1px solid rgba(240, 160, 48, 0.12);
  border-bottom: 1px solid rgba(240, 160, 48, 0.12);
  border-left: 1px solid rgba(240, 160, 48, 0.08);
}
.bp-single-body blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 16px;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.bp-single-body blockquote p {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 10px;
}
.bp-single-body blockquote p:last-child {
  margin-bottom: 0;
}
.bp-single-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
}
/* Nested blockquote */
.bp-single-body blockquote blockquote {
  margin: 14px 0 0;
  border-right-width: 3px;
  border-right-color: var(--border-default);
  background: rgba(255, 255, 255, 0.02);
}
.bp-single-body blockquote blockquote::before {
  display: none;
}

/* ---------- Inline Code ---------- */
.bp-single-body code {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.84em;
  color: var(--accent-light);
  background: rgba(240, 160, 48, 0.08);
  border: 1px solid rgba(240, 160, 48, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  direction: ltr;
  unicode-bidi: embed;
}

/* ---------- Code Blocks (pre > code) ---------- */
.bp-single-body pre {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
.bp-single-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.75;
  display: block;
}
/* Pre scrollbar */
.bp-single-body pre::-webkit-scrollbar {
  height: 6px;
}
.bp-single-body pre::-webkit-scrollbar-track {
  background: transparent;
}
.bp-single-body pre::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
.bp-single-body pre::-webkit-scrollbar-thumb:hover {
  background: var(--border-default);
}

/* ---------- Tables ---------- */
.bp-single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bp-single-body thead {
  background: linear-gradient(180deg, rgba(240, 160, 48, 0.1), rgba(240, 160, 48, 0.04));
}
.bp-single-body th {
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  color: var(--accent-light);
  border-bottom: 2px solid var(--border-accent);
  font-size: 0.85rem;
  white-space: nowrap;
}
.bp-single-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}
.bp-single-body tr:last-child td {
  border-bottom: none;
}
.bp-single-body tbody tr {
  transition: background var(--duration);
}
.bp-single-body tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.bp-single-body tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.bp-single-body tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.035);
}
/* Responsive table wrapper */
.bp-single-body .tablepress-scroll-wrapper,
.bp-single-body .wp-block-table {
  overflow-x: auto;
  margin: 24px 0;
}

/* ---------- Images & Figures ---------- */
.bp-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 8px 0;
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}
.bp-single-body img:hover {
  border-color: var(--border-default);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.bp-single-body figure {
  margin: 24px 0;
}
.bp-single-body figcaption,
.bp-single-body .wp-element-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}
/* WordPress alignment classes */
.bp-single-body .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.bp-single-body .alignleft {
  float: left;
  margin: 4px 20px 12px 0;
}
.bp-single-body .alignright {
  float: right;
  margin: 4px 0 12px 20px;
}
.bp-single-body .alignwide {
  margin-left: -14px;
  margin-right: -14px;
}

/* ---------- Horizontal Rules ---------- */
.bp-single-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent 0%,
    var(--border-accent) 20%,
    var(--accent) 50%,
    var(--border-accent) 80%,
    transparent 100%
  );
  margin: 32px 0;
  opacity: 0.6;
}

/* ---------- Strong / Bold / Italic / Mark ---------- */
.bp-single-body strong,
.bp-single-body b {
  color: var(--text-primary);
  font-weight: 600;
}
.bp-single-body em,
.bp-single-body i {
  font-style: italic;
  color: inherit;
}
.bp-single-body mark {
  background: rgba(240, 160, 48, 0.2);
  color: var(--accent-light);
  padding: 1px 5px;
  border-radius: 3px;
}
.bp-single-body u {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.bp-single-body s,
.bp-single-body del {
  color: var(--text-muted);
  text-decoration-color: var(--text-muted);
}
.bp-single-body small {
  font-size: 0.82em;
  color: var(--text-muted);
}
.bp-single-body sup,
.bp-single-body sub {
  font-size: 0.75em;
  color: var(--accent);
}
.bp-single-body abbr[title] {
  text-decoration: underline dotted var(--accent);
  cursor: help;
}

/* ---------- Definition Lists ---------- */
.bp-single-body dl {
  margin: 20px 0;
}
.bp-single-body dt {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-right: 12px;
  border-right: 3px solid var(--accent);
}
.bp-single-body dd {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-right: 24px;
  line-height: 1.8;
}

/* ---------- Keyboard / Var / Samp ---------- */
.bp-single-body kbd {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-primary);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.bp-single-body var {
  font-style: italic;
  color: var(--accent-light);
}
.bp-single-body samp {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.84em;
  color: var(--success);
  background: var(--success-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Details / Summary (Accordion) ---------- */
.bp-single-body details {
  margin: 20px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bp-single-body summary {
  padding: 14px 18px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 500;
  transition: background var(--duration), color var(--duration);
  list-style: none;
}
.bp-single-body summary::-webkit-details-marker {
  display: none;
}
.bp-single-body summary::before {
  content: "▸ ";
  color: var(--accent);
  font-weight: 700;
  transition: transform var(--duration);
  display: inline-block;
}
.bp-single-body details[open] summary::before {
  transform: rotate(90deg);
}
.bp-single-body summary:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}
.bp-single-body details > *:not(summary) {
  padding: 0 18px;
}
.bp-single-body details > p:last-child,
.bp-single-body details > div:last-child {
  padding-bottom: 16px;
}

/* ---------- WordPress Embeds & iframes ---------- */
.bp-single-body iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.bp-single-body .wp-block-embed {
  margin: 24px 0;
}
.bp-single-body .wp-block-embed__wrapper {
  position: relative;
}

/* ---------- WordPress Gallery ---------- */
.bp-single-body .wp-block-gallery {
  margin: 24px 0;
  gap: 8px !important;
}
.bp-single-body .wp-block-gallery .wp-block-image img {
  border-radius: var(--radius-sm);
}

/* ---------- WordPress Buttons ---------- */
.bp-single-body .wp-block-button__link {
  background: var(--accent);
  color: #0a0e14;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  transition: background var(--duration), box-shadow var(--duration);
}
.bp-single-body .wp-block-button__link:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px var(--accent-glow);
  border-bottom: none;
}
.bp-single-body .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.bp-single-body .is-style-outline .wp-block-button__link:hover {
  background: rgba(240, 160, 48, 0.1);
}

/* ---------- WordPress Separator ---------- */
.bp-single-body .wp-block-separator {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 32px 0;
}
.bp-single-body .wp-block-separator.is-style-dots {
  background: none;
  text-align: center;
  height: auto;
}
.bp-single-body .wp-block-separator.is-style-dots::before {
  content: "···";
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 1em;
}

/* ---------- WordPress Columns ---------- */
.bp-single-body .wp-block-columns {
  gap: 20px;
  margin: 24px 0;
}
.bp-single-body .wp-block-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ---------- WordPress Quote Block ---------- */
.bp-single-body .wp-block-quote.is-large,
.bp-single-body .wp-block-quote.is-style-large {
  padding: 24px 28px;
}
.bp-single-body .wp-block-quote.is-large p,
.bp-single-body .wp-block-quote.is-style-large p {
  font-size: 1.1rem;
}

/* ---------- WordPress Pullquote ---------- */
.bp-single-body .wp-block-pullquote {
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  margin: 32px 0;
  padding: 24px 0;
  text-align: center;
}
.bp-single-body .wp-block-pullquote blockquote {
  border: none;
  background: none;
  padding: 0;
}
.bp-single-body .wp-block-pullquote blockquote::before {
  display: none;
}
.bp-single-body .wp-block-pullquote p {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
}
.bp-single-body .wp-block-pullquote cite {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- WordPress Cover Block ---------- */
.bp-single-body .wp-block-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
}

/* ---------- Video & Audio ---------- */
.bp-single-body video,
.bp-single-body audio {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 16px 0;
}

/* ---------- Address ---------- */
.bp-single-body address {
  font-style: normal;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* ---------- Clearfix for floated images ---------- */
.bp-single-body::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .bp-single-body h1 { font-size: 1.35rem; }
  .bp-single-body h2 { font-size: 1.2rem; }
  .bp-single-body h3 { font-size: 1.05rem; }
  .bp-single-body table { 
    font-size: 0.82rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bp-single-body th,
  .bp-single-body td { 
    padding: 8px 10px;
    white-space: nowrap;
  }
  .bp-single-body blockquote { padding: 16px 18px 16px 14px; }
  .bp-single-body .alignleft,
  .bp-single-body .alignright {
    float: none;
    margin: 16px auto;
    display: block;
  }
  .bp-single-body .wp-block-columns {
    flex-direction: column;
  }
}

/* Sidebar & Box */
.bp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-sidebar-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.bp-widget-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  color: var(--accent);
}
.bp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 8px;
}
.bp-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bp-meta-label {
  color: var(--text-secondary);
}
.bp-meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Code String widget area */
.bp-string-widget-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.bp-string-preview {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
  height: 80px;
  overflow-y: auto;
  padding-right: 8px;
  direction: ltr;
  text-align: left;
}
.bp-string-preview::-webkit-scrollbar {
  width: 4px;
}
.bp-string-preview::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

/* Single blueprint — featured Aparat video (above layout) */
.blueprint-video-section {
  margin-bottom: 8px;
}
.blueprint-video-container {
  padding-top: 0;
  padding-bottom: 32px;
}
.blueprint-video-header {
  margin-bottom: 20px;
}
.blueprint-video-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}
.blueprint-video-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
/* Responsive 16:9 embed (iframe + Aparat script) */
.blueprint-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.blueprint-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Aparat script injects a wrapper div inside .aparat-embed-inner */
.blueprint-video-embed > div,
.bp-video-player .aparat-embed-inner > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}
.bp-video-player .aparat-embed-inner > div iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Related Video widget styling */
.bp-video-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bp-video-player {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}
.bp-video-player .aparat-embed-inner {
  position: relative;
  width: 100%;
  min-width: 0;
}
.bp-video-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.bp-video-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Related blueprints section */
.related-blueprints-section {
  margin-top: 48px;
}
.related-blueprints-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.related-bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Mod archive — intro guide */
.mod-guide-section {
  padding: 8px 0 4px;
}
.mod-guide-container {
  padding-top: 8px;
  padding-bottom: 8px;
}
.mod-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.mod-guide-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mod-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(240, 160, 48, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}
.mod-guide-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.mod-guide-steps {
  list-style: decimal;
  padding-right: 1.4em;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mod-guide-steps li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.85;
}
.mod-guide-steps code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.82em;
  color: var(--accent-light);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}
.mod-guide-paths {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mod-guide-paths li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mod-guide-paths strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}
.mod-path {
  display: block;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--accent-light);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  direction: ltr;
  text-align: left;
  word-break: break-all;
}
.mod-path-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.mod-path-hint code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.mod-guide-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding: 12px 14px;
  background: rgba(240, 160, 48, 0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .bp-single-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .bp-archive-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .bp-filters-wrapper {
    flex-direction: column;
  }
  .bp-filter-select {
    width: 100%;
  }
  .blueprint-video-container {
    padding-bottom: 24px;
  }
  .blueprint-video-header {
    margin-bottom: 14px;
  }
  .blueprint-video-header h2 {
    font-size: 1.1rem;
  }
}

/* =========================================================
   PLAYLIST DISCOVERY & WATCH PAGES
   ========================================================= */

/* Back Navigation bar */
.playlist-back-bar, .watch-back-bar {
  margin-bottom: 10px;  /* tight spacing above player — helps Googlebot watch-page signal */
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}
.btn-back:hover {
  color: var(--accent);
}
.btn-back svg {
  transition: transform var(--duration) var(--ease-out);
}
.btn-back:hover svg {
  transform: translateX(4px);
}

/* Stats Summary Bar */
.playlist-stats-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  backdrop-filter: blur(10px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.stats-sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stats-sum-num {
  direction: rtl;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.stats-sum-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Playlist Toolbar (Search & Sort) */
.playlist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.toolbar-search {
  position: relative;
  flex: 1;
  min-width: 280px;
}
.toolbar-search input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 42px 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.toolbar-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.toolbar-search .search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.toolbar-filter {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar-filter label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.toolbar-filter select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--duration);
}
.toolbar-filter select:focus {
  border-color: var(--accent);
}

/* Video Discovery Grid */
.playlist-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.video-grid-card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.video-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  border-color: var(--border-default);
}
.video-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.video-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out);
}
.video-grid-card:hover .video-card-img {
  transform: scale(1.04);
}
.video-card-duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 14, 20, 0.82);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
  font-family: system-ui, sans-serif !important;
}
.video-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  z-index: 1;
}
.video-grid-card:hover .video-card-play-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--accent-glow-strong);
  transform: scale(0.85);
  transition: transform var(--duration) var(--ease-out);
}
.video-grid-card:hover .play-btn-circle {
  transform: scale(1);
}
.video-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.video-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.9em;
}
.video-card-title a {
  color: var(--text-primary);
  transition: color var(--duration) var(--ease-out);
}
.video-card-title a:hover {
  color: var(--accent);
}
.video-card-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.4em;
  flex: 1;
}
.video-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}
.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-stat svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Watch Page Layout — Optimised for Google Video Indexing (watch-page intent) */
.watch-container {
  padding-top: 8px;  /* tight — pushes player higher in viewport */
}
.watch-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.watch-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.watch-sidebar {
  min-width: 0;
}
.watch-player-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  /* Ensure player is the dominant element — critical for Google watch-page signal */
  position: relative;
  width: 100%;
}
.aparat-embed-outer {
  position: relative;
  width: 100%;
}

/* Watch Page Navigation Buttons */
.watch-next-prev-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  transition: all var(--duration) var(--ease-out);
  min-width: 0;
  text-decoration: none;
}
.nav-btn:not(.disabled):hover {
  border-color: var(--accent);
  background: rgba(240, 160, 48, 0.04);
}
.nav-btn.disabled {
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}
.prev-btn {
  justify-content: flex-start;
  text-align: right;
}
.next-btn {
  justify-content: flex-end;
  text-align: left;
}
.nav-btn-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nav-btn-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-btn-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.nav-btn svg {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
}
.nav-btn:not(.disabled):hover svg {
  color: var(--accent);
}
.prev-btn:not(.disabled):hover svg {
  transform: translateX(3px);
}
.next-btn:not(.disabled):hover svg {
  transform: translateX(-3px);
}

/* Watch Page Details & Meta */
.watch-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.watch-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}
.watch-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}
.watch-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.watch-meta-info .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.watch-meta-info .meta-item svg {
  color: var(--accent);
}
.watch-share-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-panel);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}
.share-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(240, 160, 48, 0.04);
}
.share-btn.telegram:hover {
  color: #0088cc;
  border-color: #0088cc;
  background: rgba(0, 136, 204, 0.06);
}
.share-btn.twitter:hover {
  color: #1da1f2;
  border-color: #1da1f2;
  background: rgba(29, 161, 242, 0.06);
}
.watch-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.watch-desc-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}
.watch-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* Related Video Sidebar Items */
.collapsible-playlist summary {
  list-style: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collapsible-playlist summary::-webkit-details-marker {
  display: none;
}
.collapsible-playlist summary .toggle-icon {
  transition: transform 0.3s ease;
}
.collapsible-playlist[open] summary .toggle-icon {
  transform: rotate(180deg);
}
.collapsible-playlist {
  content-visibility: auto;
}

.related-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-left: 6px;
  margin-top: 8px;
}
.related-playlist-list::-webkit-scrollbar {
  width: 4px;
}
.related-playlist-list::-webkit-scrollbar-track {
  background: transparent;
}
.related-playlist-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
.related-playlist-list::-webkit-scrollbar-thumb:hover {
  background: var(--border-default);
}
.related-video-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
  min-width: 0;
  border: 1px solid transparent;
  text-decoration: none;
}
.related-video-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.related-video-item.active {
  background: rgba(240, 160, 48, 0.06);
  border-color: rgba(240, 160, 48, 0.15);
}
.related-video-thumb {
  position: relative;
  width: 108px;
  min-width: 108px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}
.related-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-video-duration {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(10, 14, 20, 0.85);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: system-ui, sans-serif !important;
}
.related-video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.related-video-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  transition: color var(--duration);
}
.related-video-item:hover .related-video-title {
  color: var(--accent-light);
}
.related-video-item.active .related-video-title {
  color: var(--accent);
  font-weight: 600;
}
.related-video-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.related-video-meta svg {
  flex-shrink: 0;
}

/* Active Video Equalizer Animation */
.related-playing-indicator {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration);
}
.related-video-item.active .related-playing-indicator {
  opacity: 1;
}
.indicator-bar {
  width: 3px;
  height: 14px;
  background-color: var(--accent);
  animation: bounceEqualizer 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.bar-1 { animation-delay: 0.1s; }
.bar-2 { animation-delay: 0.3s; }
.bar-3 { animation-delay: 0.5s; }

@keyframes bounceEqualizer {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.15); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .playlist-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .watch-layout {
    gap: 24px;
  }
  .watch-sidebar {
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  .playlist-video-grid {
    grid-template-columns: 1fr;
  }
  .playlist-stats-summary {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
    padding: 16px;
  }
  .watch-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .watch-title {
    font-size: 1.35rem;
  }
  .watch-next-prev-nav {
    flex-direction: column;
  }
  .nav-btn {
    width: 100%;
  }
}

/* =========================================================
   FACTORIO / INDUSTRIAL THEMED 404 PAGE
   ========================================================= */

.error-page-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
  background-image: linear-gradient(rgba(240, 160, 48, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(240, 160, 48, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

.error-content-wrapper {
  max-width: 680px;
  width: 100%;
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Cinematic Glowing 404 */
.error-code-cinematic {
  font-size: 7.5rem;
  font-weight: 950;
  line-height: 1;
  color: var(--bg-primary);
  -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 10px rgba(240, 160, 48, 0.35),
               0 0 30px rgba(240, 160, 48, 0.15),
               0 0 60px rgba(240, 160, 48, 0.05);
  letter-spacing: 2px;
  animation: neonFlicker 6s infinite alternate;
  font-family: system-ui, sans-serif !important;
}

/* Automated Factory SVG Scene */
.error-svg-scene {
  width: 240px;
  height: 110px;
  margin: 10px 0;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.gear-spin-right {
  transform-origin: center;
  animation: spinRight 6s linear infinite;
}

.gear-spin-left {
  transform-origin: center;
  animation: spinLeft 6s linear infinite;
}

.conveyor-belt-track {
  stroke: var(--border-default);
  stroke-dasharray: 6, 4;
  animation: beltMove 1.5s linear infinite;
}

.conveyor-item {
  animation: itemMove 4s linear infinite;
}

.item-delay-1 {
  animation-delay: -1.33s;
}

.item-delay-2 {
  animation-delay: -2.66s;
}

.warning-lamp {
  animation: warningBlink 1.8s ease-in-out infinite;
}

/* Warning terminal / hologram container */
.error-terminal-box {
  width: 100%;
  background: rgba(19, 27, 39, 0.75);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(240, 160, 48, 0.04);
  position: relative;
  text-align: right;
  animation: terminalFlicker 10s infinite;
}

.error-terminal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 2px 10px var(--accent-glow-strong);
}

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

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 8px #ff5f56;
}

.terminal-title {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--accent-light);
  letter-spacing: 1px;
}

.error-terminal-box h2 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.error-terminal-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

.terminal-code {
  display: block;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(10, 14, 20, 0.6);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  direction: ltr;
  text-align: left;
  border: 1px dashed rgba(240, 160, 48, 0.2);
}

/* Action forms / inputs */
.error-search-form {
  display: flex;
  width: 100%;
  max-width: 460px;
  gap: 12px;
  margin: 8px 0;
}

.error-search-input {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--duration) var(--ease-out);
}

.error-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.error-search-btn {
  background: rgba(240, 160, 48, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--duration) var(--ease-out);
}

.error-search-btn:hover {
  background: var(--accent);
  color: #0a0e14;
  box-shadow: 0 4px 15px var(--accent-glow-strong);
}

.error-actions-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.btn-primary-glow {
  background: var(--accent);
  color: #0a0e14 !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  font-size: 0.92rem;
}

.btn-primary-glow:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(240, 160, 48, 0.55);
}

.btn-secondary-outline {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.92rem;
}

.btn-secondary-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Keyframes Animations */
@keyframes spinRight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes beltMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -10; }
}

@keyframes itemMove {
  0% { transform: translate(-10px, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(250px, 0); opacity: 0; }
}

@keyframes warningBlink {
  0%, 100% { fill: #331500; filter: drop-shadow(0 0 0 rgba(240, 160, 48, 0)); }
  50% { fill: var(--accent); filter: drop-shadow(0 0 12px var(--accent)); }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 10px rgba(240, 160, 48, 0.45),
                 0 0 25px rgba(240, 160, 48, 0.25),
                 0 0 50px rgba(240, 160, 48, 0.1);
    -webkit-text-stroke-color: var(--accent);
  }
  20%, 24%, 55% {
    text-shadow: none;
    -webkit-text-stroke-color: rgba(240, 160, 48, 0.35);
  }
}

@keyframes terminalFlicker {
  0%, 100% { opacity: 0.98; }
  23% { opacity: 0.98; }
  24% { opacity: 0.93; }
  26% { opacity: 0.99; }
  70% { opacity: 0.99; }
  71% { opacity: 0.95; }
  72% { opacity: 0.98; }
}

/* Responsive adjustment */
@media (max-width: 600px) {
  .error-code-cinematic {
    font-size: 5.5rem;
  }
  .error-terminal-box h2 {
    font-size: 1.15rem;
  }
  .error-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .error-search-btn {
    padding: 12px;
  }
  .error-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .error-actions-row a, .error-actions-row button {
    text-align: center;
  }
}


