:root {
  /* Coherence colors inspired by the dashboard */
  --color-bg: #fbfcff; /* Dashboard base bg */
  --color-surface: #ffffff;
  --color-surface-muted: #f3f6fc;
  --color-card: #ffffff;
  --color-text: #0f172a; /* Dashboard deep dark */
  --color-text-secondary: #475569; /* Dashboard subtitle text */
  --color-text-muted: #64748b;
  --color-border: #dbe3ef; /* Dashboard border */
  --color-border-strong: #94a3b8;
  --color-primary: #175cff; /* Dashboard brand blue */
  --color-primary-hover: #1d4ed8;
  --color-primary-soft: rgba(23, 92, 255, 0.1);
  --color-success: #16a34a;
  --color-success-soft: #dcfce7;
  --color-danger: #ef4444;
  --color-danger-soft: #fee2e2;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px rgba(23, 92, 255, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
  --shadow-floating: 0 12px 30px rgba(23, 92, 255, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.checkbox-line input {
  margin-top: 2px;
}

/* Controlled CMS layout options */
.cms-block {
  width: 100%;
}

.cms-width-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cms-width-normal {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.cms-width-full {
  max-width: none;
  width: 100%;
}

.cms-space-top-none { margin-top: 0 !important; }
.cms-space-top-small { margin-top: 16px !important; }
.cms-space-top-medium { margin-top: 32px !important; }
.cms-space-top-large { margin-top: 56px !important; }
.cms-space-bottom-none { margin-bottom: 0 !important; }
.cms-space-bottom-small { margin-bottom: 16px !important; }
.cms-space-bottom-medium { margin-bottom: 32px !important; }
.cms-space-bottom-large { margin-bottom: 56px !important; }

.cms-align-left { text-align: left; }
.cms-align-center { text-align: center; }
.cms-align-right { text-align: right; }

.cms-align-center .hero-actions,
.cms-align-center.cta-band,
.cms-align-center .filters,
.cms-align-center .footer-links {
  justify-content: center;
}

.cms-align-right .hero-actions,
.cms-align-right.cta-band,
.cms-align-right .filters,
.cms-align-right .footer-links {
  justify-content: flex-end;
}

.cms-text-small { font-size: 0.92rem; }
.cms-text-base { font-size: 1rem; }
.cms-text-large { font-size: 1.08rem; }
.cms-text-xl { font-size: 1.18rem; }

.cms-text-small h1 { font-size: clamp(2rem, 4vw, 3rem); }
.cms-text-base h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.cms-text-large h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.cms-text-xl h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); }
.cms-text-small h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cms-text-base h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cms-text-large h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.cms-text-xl h2 { font-size: clamp(2.4rem, 5vw, 3.5rem); }

.cms-image-small .auth-illustration,
.cms-image-small.image-text-section img {
  flex-basis: 28%;
  max-width: 320px;
}

.cms-image-medium .auth-illustration,
.cms-image-medium.image-text-section img {
  flex-basis: 40%;
  max-width: 480px;
}

.cms-image-large .auth-illustration,
.cms-image-large.image-text-section img {
  flex-basis: 52%;
  max-width: 640px;
}

.cms-image-full.about-hero,
.cms-image-full.image-text-section {
  grid-template-columns: 1fr;
}

.cms-image-full .auth-illustration,
.cms-image-full.image-text-section img {
  width: 100%;
  max-width: 100%;
}

[data-theme="dark"] {
  /* Rich deep dark blue matching dashboard's sidebar gradient (#0b121d to #111b27) */
  --color-bg: #0b121d;
  --color-surface: #111b27;
  --color-surface-muted: #1a2635;
  --color-card: #111b27;
  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #64748b;
  --color-border: #1e2d42;
  --color-border-strong: #334e68;
  --color-primary: #3b82f6;
  --color-primary-hover: #60a5fa;
  --color-primary-soft: rgba(59, 130, 246, 0.16);
  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.14);
  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.14);

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.28);
  --shadow-floating: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-strong);
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Premium Background Mesh Gradient */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 10% 20%, rgba(23, 92, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 45%);
  z-index: -2;
  pointer-events: none;
}

/* Smooth Transitions for Theme Toggle */
html,
body,
.site-header,
.card,
.btn,
.promo-box,
.input,
.select,
.textarea {
  transition:
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --- HEADER (Glassmorphic) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    background 0.3s ease,
    border 0.3s ease;
}

.header-inner {
  max-width: 1300px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 10px var(--color-primary-soft);
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-10deg) scale(1.05);
}

.main-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.main-nav a {
  color: var(--color-text-secondary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: var(--space-2) 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-primary);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.quick-search {
  width: 200px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-muted);
  color: var(--color-text);
  padding: 8px 16px;
  font-size: 13px;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-search:focus {
  width: 250px;
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
  transform: rotate(30deg);
}

/* --- LANG SWITCHER --- */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.lang-current:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 9999;
  overflow: hidden;
  animation: langMenuIn 0.15s ease;
}

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

.lang-switcher.is-open .lang-menu { display: block; }
.lang-switcher.is-open .lang-current { border-color: var(--color-primary); }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.lang-option span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.lang-option:hover { background: var(--color-surface-muted); }
.lang-option.is-active { color: var(--color-primary); font-weight: 700; }
.lang-option.is-active span { color: var(--color-primary); }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: 12px; /* Smoother radius */
  padding: 10px 20px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--color-primary-soft);
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--color-primary-soft);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  box-shadow: none;
}
.btn-link:hover {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}

/* --- LAYOUTS --- */
.public-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
}

.public-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-10);
  align-items: start;
}

.public-main > * {
  min-width: 0;
}

.page-shell {
  min-height: calc(100vh - 80px);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%),
    var(--hero-image, linear-gradient(135deg, #0b121d, #175cff));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(23, 92, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  padding: var(--space-12) var(--space-10) var(--space-10);
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: var(--space-3) 0 var(--space-4);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 600px;
  color: rgba(248, 250, 252, 0.85);
  font-size: 17px;
  margin-bottom: var(--space-6);
  line-height: 1.55;
}

/* --- SECTION HEADERS --- */
.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  margin: var(--space-12) 0 var(--space-6);
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  position: relative;
}

.page-title {
  margin-bottom: var(--space-8);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-4);
}

.page-title p {
  color: var(--color-text-secondary);
  margin: var(--space-2) 0 0;
  font-size: 15px;
}

/* --- GRIDS --- */
.content-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

/* --- CARDS (Premium Aesthetics) --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.content-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-soft);
  box-shadow: var(--shadow-floating);
}

.media-thumb,
.category-card {
  min-height: 190px;
  background: var(--thumb-image, linear-gradient(135deg, #e2e8f0, #175cff));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.content-card:hover .media-thumb {
  transform: scale(1.03);
}

.content-card .media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.4) 100%);
}

.content-card .media-thumb {
  aspect-ratio: 16 / 10;
}

.category-card {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%),
    var(--thumb-image, linear-gradient(135deg, #1e293b, #4f46e5));
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-floating);
}

.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: var(--space-2) 0 var(--space-3);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.content-card:hover .card-body h3 {
  color: var(--color-primary);
}

.card-body p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin-top: auto;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* --- FILTERS & INPUTS --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  font-family: inherit;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* --- SIDEBAR & AD BOXES --- */
.layout-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: var(--space-6);
}

.promo-box {
  min-height: 30px;
  max-width: 100% !important;
  display: grid;
  place-items: center;
  background: var(--color-surface-muted);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: var(--space-8) auto;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.promo-label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 9px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(2px);
  line-height: 1;
}

.promo-box:has(img) {
  border: none;
  background: transparent;
  box-shadow: none;
}

.promo-box:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(23, 92, 255, 0.06);
}

.promo-box:has(img):hover {
  box-shadow: none;
}

#header-banner-promo,
#content-middle-promo {
  margin: var(--space-10) auto;
  padding: 0;
}

#content-detail-promo {
  margin: 0 auto var(--space-8);
}

.promo-box img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-box img:hover {
  transform: scale(1.025);
  filter: brightness(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.sidebar-block {
  padding: var(--space-6);
}

.sidebar-block h3 {
  margin-top: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-chip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  background: var(--color-surface);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: scale(1.05);
}

/* --- ARTICLES / CONTENT PAGE --- */
.article {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-head {
  padding: var(--space-10) var(--space-10) 0;
}

.article-head p {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-head h1 {
  margin: var(--space-3) 0 var(--space-4);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}

.article-body {
  padding: var(--space-8) var(--space-10) var(--space-10);
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.article-body p {
  margin: 0 0 var(--space-6);
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-6) 0;
  background: var(--color-surface-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 19px;
  color: var(--color-text);
}

.content-player {
  width: 100%;
  max-height: 520px;
  display: block;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  background: #0b121d;
  box-shadow: var(--shadow-card);
}

audio.content-player {
  max-height: none;
  background: transparent;
  box-shadow: none;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.content-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.content-gallery img:hover {
  transform: scale(1.02);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}

/* --- AUTH PAGES --- */
.auth-page {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: var(--space-10) var(--space-6);
}

.auth-grid {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: var(--space-12);
  align-items: center;
}

.auth-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.auth-card h1 {
  margin: 0 0 var(--space-2);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  text-align: center;
}

.auth-card p {
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0;
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.label {
  display: grid;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.benefit-list {
  display: grid;
  gap: var(--space-6);
}

.benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 20px;
}

/* --- PROFILE PAGE --- */
.profile-hero {
  overflow: hidden;
}

.profile-cover {
  height: 240px;
  background: linear-gradient(135deg, #1e293b, #175cff);
}

.profile-summary {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-6);
  align-items: end;
  margin-top: -50px;
  padding: 0 var(--space-8) var(--space-8);
}

.avatar {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 4px solid var(--color-card);
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 36px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.stat {
  padding: var(--space-6);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  color: var(--color-primary);
}

.stat span {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

/* --- OTHER PAGES & STATICS --- */
.newsletter-hero,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: var(--space-12);
  align-items: center;
}

.illustration {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 30% 25%, var(--color-primary-soft), transparent 45%), var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 80px;
  box-shadow: var(--shadow-card);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

/* --- STATUS INDICATORS --- */
.status {
  padding: var(--space-4);
  border-radius: 12px;
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border);
}

.status.error {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.status.success {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(22, 163, 74, 0.2);
}

.hidden {
  display: none !important;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: var(--space-16);
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-10);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
}

.footer-grid h3 {
  margin-top: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: grid;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  padding: var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .public-main,
  .auth-grid,
  .newsletter-hero,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .layout-sidebar {
    position: static;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-4);
  }

  .main-nav,
  .header-actions {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: var(--space-1);
  }

  .quick-search {
    width: 150px;
  }
  .quick-search:focus {
    width: 180px;
  }

  .public-container {
    padding: var(--space-8) var(--space-4);
  }

  .content-grid,
  .category-grid,
  .feature-grid,
  .stats-row,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .article-head,
  .article-body {
    padding: var(--space-6);
  }
}

/* --- MOCKUP NEW DESIGN LAYOUT & WIDGETS --- */
@media (min-width: 1025px) {
  .public-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }
}

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

.public-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-section {
  margin-bottom: 20px;
}

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

.section-head h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.view-all-link:hover {
  transform: translateX(4px);
}

.promo-box-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-muted);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 24px;
}

/* Hero Layout (Asymmetric Grid) */
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

.hero-main-card {
  position: relative;
  min-height: 460px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 92, 255, 0.15);
}

.hero-side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.hero-sub-card {
  position: relative;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #ffffff;
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-sub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(23, 92, 255, 0.15);
}

.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  width: fit-content;
}

.hero-badge-main {
  background: var(--color-primary);
  color: #ffffff;
}

.hero-badge-sub {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-card-content h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-card-content h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-card-content p {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-title-link {
  text-decoration: none;
  color: inherit;
}

.hero-title-link:hover h1,
.hero-title-link:hover h2 {
  text-decoration: underline;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-author-avatar {
  width: 24px;
  height: 24px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-author-name {
  font-weight: 600;
}

.hero-meta-dot {
  color: rgba(255, 255, 255, 0.4);
}

/* Trending Section */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text);
  padding: 10px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.trending-rank {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.15;
  width: 32px;
  flex-shrink: 0;
  text-align: center;
}

.trending-card:hover .trending-rank {
  opacity: 0.8;
}

.trending-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.trending-body {
  min-width: 0;
}

.trending-body h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

/* Recent Pagination button */
.load-more-wrapper {
  text-align: center;
  margin-top: 16px;
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

@media (max-width: 580px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

.video-item-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  display: block;
}

.video-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.video-img-wrapper:hover .video-img {
  transform: scale(1.04);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.9;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.video-img-wrapper:hover .video-play-overlay {
  opacity: 1;
  background: rgba(23, 92, 255, 0.4);
}

.video-play-overlay svg {
  transform: scale(1);
  transition: transform 0.2s ease;
}

.video-img-wrapper:hover .video-play-overlay svg {
  transform: scale(1.15);
}

.video-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-body h4 a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.video-body h4 a:hover {
  color: var(--color-primary);
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.video-meta-dot {
  color: var(--color-border-strong);
  opacity: 0.5;
}

/* Films Grid */
.films-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .films-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.film-item-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.film-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
}

.film-poster {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.film-poster-wrapper:hover .film-poster {
  transform: scale(1.04);
}

.film-rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.film-body h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-body h4 a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.film-body h4 a:hover {
  color: var(--color-primary);
}

.film-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.film-meta-dot {
  color: var(--color-border-strong);
  opacity: 0.5;
}

/* Sidebar Styling Updates */
.sidebar-block {
  padding: 20px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.sidebar-block h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-category-item:hover {
  background: var(--color-surface-muted);
  color: var(--color-primary);
}

.sidebar-category-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}

.sidebar-category-item:hover .sidebar-category-count {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.sidebar-more-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.sidebar-more-link:hover {
  text-decoration: underline;
}

/* Sidebar Popular numbered items */
.sidebar-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-popular-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  align-items: start;
}

.sidebar-popular-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-popular-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-popular-item:hover h4 {
  color: var(--color-primary);
  text-decoration: underline;
}

.sidebar-popular-date {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Sidebar Recent Comments */
.sidebar-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-comment-item {
  font-size: 12.5px;
  line-height: 1.45;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.sidebar-comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-comment-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-avatar {
  width: 20px;
  height: 20px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.comment-time {
  font-size: 10.5px;
  color: var(--color-text-muted);
  margin-left: auto;
}

.sidebar-comment-item p {
  color: var(--color-text-secondary);
  margin: 0;
  font-style: italic;
}

.comment-content-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.comment-content-link:hover {
  text-decoration: underline;
}

/* Newsletter Widget Card */
.newsletter-card {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, rgba(255, 255, 255, 0) 100%), var(--color-surface);
}

.newsletter-card h3 {
  border-bottom-color: var(--color-primary);
}

.newsletter-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-disclaimer {
  display: block;
  font-size: 10.5px;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* Home redesign 2026 */
body[data-page="home"] {
  background: #f7f9fd;
}

html[data-theme="dark"] body[data-page="home"] {
  background: #0b121d;
}

.public-topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e7ecf5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .public-topbar {
  background: rgba(17, 27, 39, 0.94);
  border-bottom-color: var(--color-border);
}

.public-topbar .header-inner {
  max-width: 1220px;
  min-height: 66px;
  padding: 0 18px;
}

.public-topbar .main-nav a {
  padding: 22px 0;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: 13px;
}

.public-topbar .main-nav a.is-active,
.public-topbar .main-nav a:hover {
  color: #175cff;
  border-bottom-color: #175cff;
}

.public-topbar .quick-search-form {
  position: relative;
}

.public-topbar .quick-search {
  width: 230px;
  height: 38px;
  border-radius: 999px;
  background: #f7f9fd;
  padding-right: 38px;
}

.quick-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.public-topbar .theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 17px;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  max-width: 1220px;
  padding-top: 16px;
}

.home-content {
  min-width: 0;
}

.home-hero-row {
  margin-bottom: 14px;
}

.home-shell .hero-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.95fr);
  gap: 12px;
  margin: 0;
}

.home-shell .hero-main-card,
.home-shell .hero-sub-card {
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.home-shell .hero-main-card {
  min-height: 410px;
  padding: 26px;
}

.home-shell .hero-side-stack {
  gap: 12px;
}

.home-shell .hero-sub-card {
  min-height: 199px;
  padding: 20px;
}

.hero-fill-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-shell .hero-card-content {
  pointer-events: none;
}

.home-shell .hero-card-content h1 {
  max-width: 560px;
  font-size: 31px;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.home-shell .hero-card-content h2 {
  font-size: 19px;
  letter-spacing: 0;
}

.home-shell .hero-card-content p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.home-shell .hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.home-shell .hero-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #175cff;
  font-size: 10px;
  font-weight: 800;
}

.home-shell .hero-badge {
  border-radius: 6px;
  font-size: 10px;
  padding: 5px 9px;
  letter-spacing: 0;
}

.home-horizontal-ad {
  margin: 12px auto 24px;
  border-radius: 8px;
  background: #ffffff;
}

.home-shell .section-head {
  margin: 28px 0 12px;
  padding: 0;
  border: 0;
}

.home-shell .section-head h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.trend-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.trend-card,
.home-content-card,
.sidebar-widget,
.promo-card {
  background: #ffffff;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .trend-card,
html[data-theme="dark"] .home-content-card,
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .promo-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.trend-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 8px;
}

.trend-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.trend-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-info strong {
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.25;
}

.trend-info small,
.home-card-body em,
.home-video-card small,
.film-card small {
  color: var(--color-text-muted);
  font-size: 11px;
  font-style: normal;
}

.trend-arrow {
  color: #175cff;
  font-weight: 900;
}

.home-content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-content-card {
  overflow: hidden;
}

.home-content-card a,
.home-video-card a,
.film-card a {
  display: grid;
  color: inherit;
}

.home-card-image {
  min-height: 118px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
}

.home-card-image span {
  border-radius: 999px;
  background: #eaf1ff;
  color: #175cff;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 800;
}

.home-card-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.home-card-body strong,
.home-video-card strong,
.film-card strong {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.35;
}

.home-card-body small {
  min-height: 42px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
}

.home-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.video-cover {
  position: relative;
  min-height: 105px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.45));
}

.play-button {
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 1;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.home-video-card,
.film-card {
  min-width: 0;
}

.home-video-card strong,
.home-video-card small,
.film-card strong,
.film-card small {
  display: block;
  margin-top: 8px;
}

.film-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.film-poster {
  position: relative;
  min-height: 178px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.13);
}

.film-poster span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.home-sidebar {
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 86px;
}

.promo-card {
  padding: 12px;
  text-align: center;
}

.promo-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.promo-card .promo-box {
  margin: 0 auto;
  border-radius: 8px;
}

.sidebar-widget {
  padding: 18px;
}

.sidebar-widget h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6ecf5;
  font-size: 16px;
}

.sidebar-category-list,
.sidebar-popular-list,
.sidebar-comments-list {
  display: grid;
  gap: 10px;
}

.sidebar-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.sidebar-category-item strong {
  color: var(--color-text-muted);
  font-size: 12px;
}

.sidebar-popular-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.sidebar-popular-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #175cff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-popular-item strong,
.sidebar-comment-item strong {
  display: block;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.35;
}

.sidebar-popular-item small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.sidebar-comment-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 0;
  border: 0;
}

.sidebar-comment-item p {
  margin: 0;
  font-size: 12px;
  font-style: normal;
  color: var(--color-text-secondary);
}

.sidebar-comment-item a,
.widget-link {
  color: #175cff;
  font-weight: 700;
}

.widget-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  border: 1px solid #dce5f2;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--color-text-secondary);
  font-size: 12px;
}

html[data-theme="dark"] .tag-chip {
  background: var(--color-surface-muted);
  border-color: var(--color-border);
}

.newsletter-card {
  background: #ffffff;
}

.public-footer-redesign {
  margin-top: 0;
  background: linear-gradient(135deg, #091529 0%, #0f2544 100%);
  color: #dbeafe;
}

.public-footer-redesign .footer-grid {
  max-width: 1220px;
  grid-template-columns: 1.5fr 0.8fr 1.3fr 1.7fr;
  gap: 36px;
}

.public-footer-redesign .logo,
.public-footer-redesign h3 {
  color: #ffffff;
}

.public-footer-redesign p,
.public-footer-redesign a {
  color: #c6d3e7;
}

.footer-links-columns {
  columns: 2;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.footer-newsletter-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 24px;
}

@media (max-width: 1100px) {
  .home-shell {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-card,
  .newsletter-card {
    grid-column: 1 / -1;
  }

  .trend-strip,
  .home-content-grid,
  .home-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-topbar .header-inner,
  .public-topbar .header-actions {
    gap: 10px;
  }

  .public-topbar .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .public-topbar .quick-search {
    width: 100%;
  }

  .home-shell {
    padding: 12px 14px 28px;
  }

  .home-shell .hero-layout,
  .home-sidebar,
  .trend-strip,
  .home-content-grid,
  .home-video-grid,
  .film-strip,
  .public-footer-redesign .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-shell .hero-main-card,
  .home-shell .hero-sub-card {
    min-height: 280px;
  }

  .home-shell .hero-card-content h1 {
    font-size: 25px;
  }

  .footer-newsletter-inline,
  .footer-bottom,
  .footer-bottom span:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Home ergonomics refinements */
body[data-page="home"] .public-container {
  padding-bottom: 34px;
}

.home-shell {
  align-items: start;
}

.trend-card,
.home-content-card,
.sidebar-widget,
.promo-card {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.055);
}

.trend-card {
  min-height: 68px;
}

.trend-thumb {
  width: 52px;
  height: 52px;
}

.trend-info strong,
.home-card-body strong,
.home-video-card strong,
.film-card strong,
.sidebar-popular-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.trend-info strong {
  -webkit-line-clamp: 2;
}

.home-card-body strong,
.home-video-card strong,
.film-card strong {
  -webkit-line-clamp: 2;
}

.home-card-body small {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-card-image {
  min-height: 108px;
}

.video-cover {
  min-height: 98px;
}

.film-poster {
  min-height: 164px;
}

.home-sidebar {
  gap: 14px;
}

.sidebar-widget {
  padding: 16px;
}

.sidebar-widget h3 {
  color: var(--color-text);
}

.public-footer-redesign {
  background: linear-gradient(135deg, #071226 0%, #0b1f3d 58%, #0f2b55 100%);
}

.public-footer-redesign .footer-grid {
  padding-bottom: 28px;
}

.public-footer-redesign p {
  color: #d7e3f5;
}

.public-footer-redesign a {
  color: #e5eefc;
}

.public-footer-redesign a:hover {
  color: #ffffff;
}

.footer-newsletter-inline {
  max-width: 300px;
}

.footer-newsletter-inline .input {
  min-width: 0;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.footer-newsletter-inline .input::placeholder {
  color: #c9d7ea;
}

.public-footer-redesign .footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #c8d7eb;
  font-size: 13px;
}

.public-footer-redesign .footer-bottom span:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.public-footer-redesign .footer-bottom span:last-child a {
  color: #e5eefc;
  line-height: 1;
}

.public-footer-redesign .footer-bottom span:last-child a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 14px;
  vertical-align: -2px;
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 1100px) {
  .home-sidebar {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .public-container {
    padding-bottom: 26px;
  }

  .trend-card {
    grid-template-columns: 56px minmax(0, 1fr) 16px;
  }

  .home-card-image,
  .video-cover {
    min-height: 150px;
  }

  .film-poster {
    min-height: 220px;
  }

  .footer-newsletter-inline {
    max-width: none;
  }

  .public-footer-redesign .footer-bottom,
  .public-footer-redesign .footer-bottom span:last-child {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .public-footer-redesign .footer-bottom span:last-child {
    gap: 0;
  }

  .public-footer-redesign .footer-bottom span:last-child a + a::before {
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .public-footer-redesign .footer-bottom {
    flex-direction: column;
  }
}

/* Requested corrections: compact films, footer structure unchanged */
.film-strip {
  grid-template-columns: repeat(5, minmax(0, 160px));
  justify-content: start;
  align-items: start;
}

.film-strip .film-poster {
  min-height: 0;
  max-height: 220px;
  aspect-ratio: 3 / 4;
}

.film-card strong,
.film-card small {
  margin-top: 6px;
}

.public-footer-redesign .footer-bottom {
  color: #e2eaf6;
}

.public-footer-redesign .footer-bottom span:last-child {
  gap: 24px;
}

.public-footer-redesign .footer-bottom span:last-child a {
  color: #f1f6ff;
  line-height: inherit;
}

.public-footer-redesign .footer-bottom span:last-child a + a::before {
  content: none;
  display: none;
}

@media (max-width: 1100px) {
  .film-strip {
    grid-template-columns: repeat(4, minmax(0, 132px));
  }
}

@media (max-width: 760px) {
  .film-strip {
    grid-template-columns: repeat(2, minmax(0, 132px));
  }

  .film-strip .film-poster {
    max-height: 158px;
    aspect-ratio: 4 / 5;
  }

  .public-footer-redesign .footer-bottom span:last-child {
    gap: 18px;
  }
}

/* Footer matched to supplied screenshot */
.public-footer-redesign {
  margin-top: 26px;
  padding: 0;
  background: linear-gradient(135deg, #08172d 0%, #102744 58%, #0b1e35 100%);
  color: #d6e0ef;
}

.public-footer-redesign .footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 18px 32px;
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 1.18fr 1.42fr;
  gap: 42px;
}

.public-footer-redesign .footer-grid > div {
  min-width: 0;
}

.public-footer-redesign .footer-grid > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 42px;
}

.public-footer-redesign .logo {
  color: #ffffff;
  font-size: 24px;
}

.public-footer-redesign p {
  max-width: 245px;
  margin: 18px 0 0;
  color: #d7e2f1;
  line-height: 1.55;
}

.public-footer-redesign h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.public-footer-redesign .footer-links {
  display: grid;
  gap: 9px;
}

.public-footer-redesign .footer-links-columns {
  columns: 2;
  display: block;
  column-gap: 46px;
}

.public-footer-redesign .footer-links-columns a {
  display: block;
  margin-bottom: 9px;
}

.public-footer-redesign a {
  color: #dce6f5;
  font-size: 14px;
}

.public-footer-redesign a:hover {
  color: #ffffff;
}

.public-footer-redesign .social-row {
  margin-top: 18px;
}

.public-footer-redesign .social-row span {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.public-footer-redesign .footer-newsletter-inline {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  margin-top: 18px;
}

.public-footer-redesign .footer-newsletter-inline .input {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0 18px;
}

.public-footer-redesign .footer-newsletter-inline .btn {
  height: 44px;
  border-radius: 10px;
  padding: 0 18px;
}

.public-footer-redesign .footer-bottom {
  max-width: none;
  margin: 0;
  padding: 18px calc((100vw - min(1220px, calc(100vw - 36px))) / 2) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d2deed;
  font-size: 13px;
}

.public-footer-redesign .footer-bottom > span:first-child {
  padding-left: 18px;
}

.public-footer-redesign .footer-bottom > span:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  padding-right: 18px;
}

.public-footer-redesign .footer-bottom > span:last-child a {
  color: #dbe5f3;
  font-size: 13px;
}

.public-footer-redesign .footer-bottom > span:last-child a + a::before {
  content: none;
  display: none;
}

@media (max-width: 980px) {
  .public-footer-redesign .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-footer-redesign .footer-grid > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .public-footer-redesign .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .public-footer-redesign .footer-grid > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 24px;
  }

  .public-footer-redesign .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-footer-redesign .footer-bottom > span:last-child {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }
}

/* Content detail redesign */
.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  max-width: 1220px;
  padding-top: 26px;
}

.detail-main,
.detail-article {
  min-width: 0;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: #587095;
  font-size: 12px;
}

.detail-breadcrumb a {
  color: #26416c;
}

.detail-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #7c3aed, #175cff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.detail-article h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  color: #07122b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-excerpt {
  max-width: 760px;
  margin: 0 0 24px;
  color: #34466d;
  font-size: 17px;
  line-height: 1.65;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #34466d;
  font-size: 13px;
}

.detail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f2746;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.verified-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #0b6bff;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 470px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
}

.detail-richtext {
  margin-top: 26px;
  color: #10213f;
  font-size: 17px;
  line-height: 1.78;
}

.detail-richtext p,
.detail-copy,
.quote-explanation {
  color: #10213f;
  font-size: 16px;
  line-height: 1.75;
}

.video-stage {
  position: relative;
  min-height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.58)), var(--detail-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.video-play-large {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86px;
  height: 86px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(15, 23, 42, 0.28);
}

.video-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-weight: 700;
}

.video-progress {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef233c 0 32%, rgba(255, 255, 255, 0.45) 32%);
}

.audio-stage {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-radius: 10px;
  background: radial-gradient(circle at 35% 15%, rgba(124, 58, 237, 0.32), transparent 38%), #0b0f1f;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.audio-cover {
  min-height: 190px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.audio-player-ui {
  display: grid;
  gap: 18px;
  align-content: center;
}

.audio-player-ui strong,
.audio-player-ui span {
  display: block;
}

.audio-player-ui span {
  color: rgba(255, 255, 255, 0.78);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 70px;
}

.audio-wave i {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6, #0066ff);
}

.audio-pause {
  justify-self: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 24px;
}

.audio-timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.audio-timeline b {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6 0 38%, rgba(255, 255, 255, 0.25) 38%);
}

.audio-controls {
  display: flex;
  justify-content: center;
  gap: 52px;
  font-weight: 800;
}

.quote-stage {
  padding: 48px 70px;
  border: 1px solid #e1e7f2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f1ff, #f8faff);
}

.quote-mark {
  color: #7c3aed;
  font-size: 92px;
  line-height: 0.7;
  font-weight: 900;
}

.quote-stage blockquote {
  max-width: 660px;
  margin: 22px 0 28px;
  color: #07122b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.28;
  font-weight: 800;
}

.quote-line {
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 18px;
  background: #7c3aed;
}

.quote-stage strong {
  display: block;
  color: #07122b;
  font-size: 22px;
}

.quote-stage small {
  display: block;
  margin-top: 6px;
  color: #34466d;
  font-size: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.detail-action {
  min-height: 42px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1b36;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.detail-action.circle {
  width: 42px;
  padding: 0;
}

.detail-action.download {
  margin-left: auto;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.detail-info-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  margin: 26px 0;
  border: 1px solid #e1e7f2;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6f4ff, #ffffff);
}

.detail-info-panel h2,
.chapter-strip h2,
.speakers-row h2 {
  margin: 0 0 8px;
  color: #07122b;
  font-size: 18px;
}

.detail-info-panel p {
  margin: 0;
  color: #10213f;
}

.panel-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ebe5ff;
  color: #7c3aed;
  font-size: 24px;
}

.checklist {
  display: block;
}

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

.checklist li {
  margin: 10px 0;
  color: #10213f;
}

.checklist li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  font-size: 11px;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.chapters article,
.speakers-row article {
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.chapters span {
  display: block;
  min-height: 74px;
  background-size: cover;
  background-position: center;
}

.chapters strong,
.chapters small,
.speakers-row strong,
.speakers-row small {
  display: block;
  padding: 0 8px;
}

.chapters strong {
  padding-top: 8px;
  font-size: 12px;
}

.chapters small,
.speakers-row small {
  padding-bottom: 8px;
  color: #587095;
  font-size: 12px;
}

.speakers-row > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.speakers-row span {
  display: grid;
  place-items: center;
  height: 96px;
  background: linear-gradient(135deg, #dce8ff, #f5f7fb);
  color: #175cff;
  font-weight: 900;
  font-size: 26px;
}

.speakers-row strong {
  padding-top: 10px;
}

.detail-comments {
  margin-top: 34px;
}

.detail-comments .section-head {
  margin: 0 0 12px;
}

.detail-comments form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-comments textarea {
  min-height: 44px;
  resize: vertical;
}

.detail-comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.detail-comment p {
  margin: 6px 0;
  color: #10213f;
}

.detail-comment small {
  color: #667b9d;
  font-weight: 500;
}

.detail-comment button {
  border: 0;
  background: transparent;
  color: #26416c;
  padding: 0;
  font-weight: 700;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 86px;
}

.detail-side-card {
  padding: 22px;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.side-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-side-card h3,
.side-card-head h3 {
  margin: 0;
  color: #07122b;
  font-size: 18px;
}

.side-card-head a,
.detail-side-card .widget-link {
  color: #005bff;
  font-size: 12px;
  font-weight: 800;
}

.detail-side-list {
  display: grid;
  gap: 18px;
}

.side-media-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.side-media-item > span {
  width: 82px;
  height: 70px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  font-weight: 900;
}

.side-media-item strong,
.side-rank-item strong {
  display: block;
  color: #07122b;
  font-size: 14px;
  line-height: 1.35;
}

.side-media-item small,
.side-rank-item small {
  display: block;
  margin-top: 5px;
  color: #587095;
  font-size: 12px;
}

.side-rank-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
}

.side-rank-item span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b6bff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.detail-sidebar .newsletter-card {
  background: linear-gradient(135deg, #1b3d91, #6d28d9);
  color: #ffffff;
}

.detail-sidebar .newsletter-card h3,
.detail-sidebar .newsletter-card p,
.detail-sidebar .newsletter-disclaimer {
  color: #ffffff;
}

.detail-sidebar .newsletter-card .sidebar-newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 1080px) {
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .detail-shell {
    padding: 18px 14px 28px;
  }

  .detail-article h1 {
    font-size: 31px;
  }

  .video-stage {
    min-height: 260px;
  }

  .audio-stage,
  .detail-comments form {
    grid-template-columns: 1fr;
  }

  .quote-stage {
    padding: 30px 24px;
  }

  .quote-stage blockquote {
    font-size: 30px;
  }

  .chapters,
  .speakers-row > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-action.download {
    margin-left: 0;
  }
}

/* Detail requested behavior overrides */
.native-player-card {
  border-radius: 10px;
  overflow: hidden;
  background: #050914;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.native-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  background: #050914;
}

.youtube-player-card {
  aspect-ratio: 16 / 9;
}

.youtube-player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050914;
}

.custom-youtube-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.custom-youtube-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.youtube-poster-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.26);
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.youtube-poster-button span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(23, 92, 255, 0.94);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.34);
  font-size: 30px;
  transform: translateX(2px);
}

.custom-youtube-player-wrap:not(.is-paused) .youtube-poster-button {
  opacity: 0;
  background: transparent;
}

.custom-youtube-player-wrap .custom-controls {
  z-index: 3;
}

.custom-youtube-player-wrap.is-pip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(420px, calc(100vw - 36px));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
}

.custom-youtube-player-wrap.is-pip .custom-controls {
  opacity: 1;
}

.ctrl-btn.seek-btn {
  min-width: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ctrl-btn.seek-btn svg {
  width: 23px;
  height: 23px;
}

.ctrl-btn.seek-btn:hover {
  background: rgba(23, 92, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.38);
}

.ctrl-btn.is-active {
  background: rgba(23, 92, 255, 0.88);
  color: #ffffff;
}

.missing-media {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.78)), var(--detail-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.missing-media div {
  display: grid;
  gap: 6px;
  text-align: center;
}

/* Old audio card — kept for fallback but overridden by podcast-player */
.native-audio-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b1020, #1b2550);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.native-audio-card .audio-cover {
  min-height: 160px;
}

.native-audio-content {
  display: grid;
  gap: 12px;
}

.native-audio-content strong {
  font-size: 18px;
}

.native-audio-content span {
  color: rgba(255, 255, 255, 0.72);
}

.native-audio-player {
  width: 100%;
}

/* =====================================================
   PODCAST-STYLE AUDIO PLAYER
   ===================================================== */
.podcast-player {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px 22px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.pp-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Play button — circular blue */
.pp-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition:
    background 0.15s,
    transform 0.12s;
}
.pp-play-btn:hover {
  background: #1d4ed8;
  transform: scale(1.06);
}
.pp-play-btn:active {
  transform: scale(0.97);
}

/* Seek buttons */
.pp-seek-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.15s,
    background 0.15s;
}
.pp-seek-btn:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

/* Waveform area */
.pp-waveform-wrap {
  flex: 1;
  min-width: 0;
}

.pp-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 48px;
  cursor: pointer;
  padding: 4px 0;
}

.aw-bar {
  display: block;
  flex: 1;
  min-width: 2px;
  max-width: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: background 0.08s;
}

.aw-bar.is-played {
  background: #2563eb;
}

.aw-bar.is-cursor {
  background: #1d4ed8;
}

.pp-waveform:hover .aw-bar {
  opacity: 0.85;
}

/* Timestamps below waveform */
.pp-timestamps {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

/* Speed button */
.pp-speed-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.pp-speed-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* Volume group */
.pp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pp-vol-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.pp-vol-btn:hover {
  color: #2563eb;
}

.pp-volume-slider {
  width: 68px;
  height: 3px;
  appearance: none;
  background: #e2e8f0;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.pp-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
}

/* No source message */
.pp-no-src {
  text-align: center;
  color: #94a3b8;
  margin-top: 12px;
  font-size: 14px;
}

/* Dark mode overrides */
html[data-theme="dark"] .podcast-player {
  background: var(--color-surface);
  border-color: var(--color-border);
}
html[data-theme="dark"] .aw-bar {
  background: #334e68;
}
html[data-theme="dark"] .aw-bar.is-played {
  background: #3b82f6;
}
html[data-theme="dark"] .aw-bar.is-cursor {
  background: #60a5fa;
}
html[data-theme="dark"] .pp-seek-btn,
html[data-theme="dark"] .pp-vol-btn {
  color: #94a3b8;
}
html[data-theme="dark"] .pp-seek-btn:hover,
html[data-theme="dark"] .pp-vol-btn:hover {
  color: #60a5fa;
}
html[data-theme="dark"] .pp-speed-btn {
  border-color: #334e68;
  color: #94a3b8;
}
html[data-theme="dark"] .pp-speed-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}
html[data-theme="dark"] .pp-timestamps {
  color: #64748b;
}
html[data-theme="dark"] .pp-volume-slider {
  background: #1e2d42;
}

/* =====================================================
   CUSTOM PLAYER CONTROLS (Video & Audio)
   ===================================================== */
.custom-player-wrap {
  position: relative;
}

.custom-player-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 0;
}

.custom-player-wrap:fullscreen .native-video-player {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.custom-player-wrap:fullscreen .custom-controls {
  border-radius: 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.custom-player-wrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 0;
}

.custom-player-wrap:-webkit-full-screen .native-video-player {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.native-player-card:hover .custom-controls,
.native-player-card.is-paused .custom-controls {
  opacity: 1;
}

.custom-player-wrap.is-showing-player-ad .custom-controls,
.custom-player-wrap.is-showing-player-ad .youtube-poster-button {
  opacity: 0;
  pointer-events: none;
}

.player-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
}

.player-ad-backdrop {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.player-ad-header,
.player-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-ad-header span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-ad-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.player-ad-close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.player-ad-close.is-ready {
  background: rgba(23, 92, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.42);
}

.player-ad-creative {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.player-ad-creative img,
.player-ad-creative video,
.player-ad-creative iframe {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #020617;
}

.player-ad-creative iframe {
  border: 0;
}

.player-ad-click-layer {
  position: absolute;
  inset: 0;
}

.player-ad-footer strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-ad-footer span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

/* Progress bar */
.custom-progress-bar {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 10px;
  touch-action: none;
}

.custom-progress-bar::before {
  content: "";
  position: absolute;
  inset: -8px 0;
}

.custom-progress-bar:hover {
  background: rgba(255, 255, 255, 0.36);
}

.custom-progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear;
}

.custom-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transition:
    transform 0.15s ease,
    left 0.1s linear;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.custom-progress-bar:hover .custom-progress-thumb,
.custom-progress-bar.is-dragging .custom-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Controls row */
.custom-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-controls-left,
.custom-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Control buttons */
.ctrl-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Time display */
.ctrl-time {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  min-width: 90px;
}

/* Volume range */
.ctrl-volume {
  width: 72px;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.ctrl-volume::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* Audio player custom controls (inside the card, not absolute) */
.native-audio-card .custom-progress-bar {
  background: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
  margin-bottom: 6px;
}

.native-audio-card .custom-controls-row {
  margin-top: 2px;
}

.native-audio-card .ctrl-btn,
.native-audio-card .ctrl-time {
  color: rgba(255, 255, 255, 0.92);
}

.detail-action svg,
.detail-bottom-list svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.detail-action.liked svg {
  fill: currentColor;
}

.detail-action:first-child {
  color: #ef233c;
}

.detail-sidebar-shell {
  display: grid;
  gap: 18px;
  align-self: start;
}

.detail-promo-box {
  margin: 0 auto;
  border-radius: 12px;
}

.detail-bottom-nav {
  max-width: 1220px;
  margin: 24px auto 0;
  padding: 18px 24px;
  border-top: 1px solid #e2e8f2;
  border-bottom: 1px solid #e2e8f2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: #ffffff;
}

.detail-bottom-link,
.detail-bottom-list {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #07122b;
}

.detail-bottom-link:first-child {
  text-align: left;
}

.detail-bottom-link:last-child {
  text-align: right;
}

.detail-bottom-link span {
  color: #667b9d;
  font-size: 12px;
}

.detail-bottom-link strong,
.detail-bottom-list strong {
  font-size: 13px;
}

.detail-bottom-list {
  justify-items: center;
  border-left: 1px solid #e2e8f2;
  border-right: 1px solid #e2e8f2;
}

.detail-bottom-list svg {
  width: 24px;
  height: 24px;
  fill: #07122b;
  stroke: none;
}

@media (min-width: 1081px) {
  .detail-shell {
    height: calc(100vh - 88px);
    overflow: hidden;
    gap: 0 !important;
  }

  .detail-main {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
  }

  .detail-sidebar-shell,
  .sidebar,
  .detail-sidebar {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
    border-left: 1px solid var(--color-border, #e2e8f0);
  }

  .detail-main::-webkit-scrollbar,
  .detail-sidebar-shell::-webkit-scrollbar,
  .sidebar::-webkit-scrollbar,
  .detail-sidebar::-webkit-scrollbar {
    display: none;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .native-audio-card,
  .detail-bottom-nav {
    grid-template-columns: 1fr;
  }

  .detail-bottom-link,
  .detail-bottom-link:last-child {
    text-align: left;
  }

  .detail-bottom-list {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e2e8f2;
    border-bottom: 1px solid #e2e8f2;
    padding: 12px 0;
  }
}

/* Static frontend screens */
.static-screen,
.auth-redesign {
  max-width: 1220px;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  background: #eaf1ff;
  color: #075fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.about-hero,
.ads-hero,
.contact-layout,
.auth-redesign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 58px;
  align-items: center;
  padding: 42px 24px;
}

.about-hero h1,
.ads-hero h1,
.contact-info h1,
.auth-card-large h1 {
  margin: 18px 0 20px;
  color: #07122b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 58px;
  line-height: 1.08;
}

.about-hero p,
.ads-hero p,
.contact-info > p,
.auth-card-large > p {
  color: #34466d;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions,
.mini-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.mini-benefits span {
  border-radius: 12px;
  background: #f4f7fc;
  padding: 12px 14px;
  color: #34466d;
  font-weight: 700;
}

.about-collage {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 92px;
  gap: 8px;
}

.about-tile {
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #175cff);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.tile-1 {
  grid-column: 1 / 5;
  grid-row: span 2;
}
.tile-2 {
  grid-column: 5 / 9;
  grid-row: span 1;
}
.tile-3 {
  grid-column: 5 / 9;
  grid-row: span 2;
}
.tile-4 {
  grid-column: 1 / 5;
  grid-row: span 1;
}
.tile-5 {
  grid-column: 1 / 6;
  grid-row: span 1;
}
.tile-6 {
  grid-column: 6 / 9;
  grid-row: span 1;
}

.static-section {
  padding: 24px;
}

.static-section h2,
.ads-bottom h2 {
  color: #07122b;
  font-size: 26px;
}

.value-grid,
.ad-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.value-grid article,
.ad-offer-grid article,
.contact-form-card,
.support-strip,
.map-card,
.auth-card-large,
.auth-illustration,
.cta-band {
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.value-grid article,
.ad-offer-grid article {
  padding: 28px;
}

.value-grid span,
.contact-info article > span,
.auth-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: #075fff;
  font-size: 25px;
  font-weight: 900;
}

.ad-offer-grid article > span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: transparent;
  font-size: 0;
}

.ad-offer-grid article > span::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #075fff;
  border-radius: 6px;
  box-shadow: inset 0 -7px 0 rgba(23, 92, 255, 0.14);
}

.value-grid h3,
.contact-info h3,
.ad-offer-grid h3 {
  color: #07122b;
}

.value-grid p,
.ad-offer-grid p,
.contact-info p,
.contact-form-card p,
.map-card p {
  color: #34466d;
  line-height: 1.6;
}

.stats-strip,
.support-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 22px;
}

.stats-strip article,
.support-strip article {
  padding: 0 22px;
  border-right: 1px solid #e1e8f3;
}

.stats-strip article:last-child,
.support-strip article:last-child {
  border-right: 0;
}

.stats-strip strong {
  display: block;
  color: #075fff;
  font-size: 30px;
}

.contact-info article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #e1e8f3;
}

.contact-form-card,
.auth-card-large {
  padding: 34px;
}

.contact-form-card label,
.auth-card-large label {
  display: grid;
  gap: 8px;
  color: #07122b;
  font-weight: 800;
}

.map-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  margin: 42px 24px;
}

.map-card > div:first-child {
  padding: 34px;
}

.fake-map {
  min-height: 240px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(23, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 92, 255, 0.08) 1px, transparent 1px), #eef4ff;
  background-size: 36px 36px;
}

.fake-map span {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  background: #075fff;
  color: #ffffff;
  font-weight: 900;
}

.fake-map span::first-letter {
  transform: rotate(45deg);
}

.ads-preview {
  position: relative;
  min-height: 410px;
}

.preview-browser {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.preview-browser div {
  min-height: 120px;
  margin-top: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f1b35, #175cff);
}

.preview-browser b,
.ads-preview > span {
  display: grid;
  place-items: center;
  min-height: 78px;
  margin-top: 14px;
  border-radius: 8px;
  background: #075fff;
  color: #ffffff;
}

.ads-preview > span {
  position: absolute;
  right: 0;
  top: 82px;
  width: 150px;
  padding: 12px;
  text-align: center;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 800;
}

.ad-mock {
  min-height: 108px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf1ff, #075fff);
}

.ad-offer-grid ul,
.check-list {
  color: #34466d;
  line-height: 1.8;
}

.ads-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px;
}

.cta-band {
  margin: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  background: #f4f8ff;
}

.cta-band > span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #075fff;
  color: #ffffff;
}

.auth-redesign {
  align-items: stretch;
  padding-top: 80px;
}

.auth-card-large {
  align-self: center;
}

.auth-card-large h1 {
  font-size: 42px;
}

.auth-illustration {
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, #eef5ff, #dfeaff);
}

.mail-illustration,
.shield-illustration {
  width: 280px;
  height: 280px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #075fff;
  font-size: 110px;
  box-shadow: 0 20px 50px rgba(23, 92, 255, 0.18);
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  color: #667b9d;
  margin: 24px 0;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  background: #e1e8f3;
}

.password-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.password-meter span {
  height: 4px;
  border-radius: 999px;
  background: #e1e8f3;
}

.password-meter span:first-child {
  background: #ef4444;
}

.security-tip {
  border-top: 1px solid #e1e8f3;
  margin-top: 32px;
  padding-top: 24px;
}

.auth-help {
  grid-column: 1 / -1;
  margin-top: 28px;
}

/* Profile favorites screen */
.favorites-screen {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
}

.favorites-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
}

.profile-mini-card,
.profile-nav,
.sync-card,
.favorites-main {
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.profile-mini-card {
  padding: 22px;
}

.profile-mini-card .avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #075fff);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}

.profile-mini-card h2,
.favorites-title h1 {
  color: #07122b;
  margin: 0;
}

.profile-mini-card p,
.favorites-title p,
.sync-card p {
  color: #34466d;
}

.profile-mini-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 18px 0 0;
  color: #34466d;
}

.profile-mini-card dt,
.profile-mini-card dd {
  margin: 0;
}

.profile-mini-card dd {
  color: #075fff;
  font-weight: 800;
}

.profile-nav {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.profile-nav a {
  border-radius: 8px;
  color: #34466d;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 700;
}

.profile-nav a.is-active {
  background: #eaf1ff;
  color: #075fff;
}

.sync-card {
  padding: 20px;
}

.sync-card strong {
  color: #07122b;
}

.favorites-main {
  padding: 0 16px 16px;
}

.favorites-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 8px 4px 20px;
}

.favorites-title > span {
  color: #075fff;
  font-size: 42px;
  line-height: 1;
}

.favorite-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #ffffff;
}

.favorite-tabs button,
.favorites-toolbar button {
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #ffffff;
  color: #07122b;
  padding: 10px 16px;
  font-weight: 800;
}

.favorite-tabs button.is-active {
  background: #075fff;
  color: #ffffff;
  border-color: #075fff;
}

.favorites-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  color: #07122b;
}

.favorites-toolbar span {
  display: flex;
  gap: 10px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.favorite-card {
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.favorite-card a {
  color: inherit;
  text-decoration: none;
}

.favorite-image {
  min-height: 158px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(135deg, #dbeafe, #0f1b35);
  background-size: cover;
  background-position: center;
}

.favorite-image em,
.favorite-image b {
  border-radius: 999px;
  background: #ffffff;
  color: #075fff;
  padding: 5px 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.favorite-image b {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.favorite-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.favorite-body strong {
  color: #07122b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-body small {
  color: #34466d;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-body i {
  color: #667b9d;
  font-size: 12px;
  font-style: normal;
}

.favorites-empty {
  grid-column: 1 / -1;
  border: 1px dashed #b7c9e8;
  border-radius: 12px;
  padding: 34px;
  text-align: center;
  color: #34466d;
  background: #fbfdff;
}

.favorites-empty span {
  display: block;
  color: #075fff;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}

.profile-login-state {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) 24px;
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: stretch;
}

/* Stronger static page variants */
.ads-page-pro,
.team-page-pro {
  padding-top: 0;
}

.ads-hero-pro,
.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
  padding: clamp(46px, 5vw, 68px) 24px clamp(42px, 5vw, 62px);
}

.ads-hero-pro h1,
.team-hero h1 {
  margin: 18px 0 20px;
  color: #07122b;
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1.04;
  max-width: 700px;
}

.ads-hero-pro p,
.team-hero p,
.ad-pack-section .section-head p,
.team-page-pro .section-head p {
  color: #34466d;
  line-height: 1.7;
  font-size: 16px;
}

.ad-kpi-row,
.team-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.ad-kpi-row span,
.team-proof span {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #ffffff;
  color: #34466d;
  padding: 13px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.ad-kpi-row strong,
.team-proof strong {
  color: #075fff;
  display: block;
  font-size: 20px;
}

.media-kit-card,
.team-feature-card {
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.11);
  padding: 22px;
}

.media-kit-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #07122b;
  font-weight: 900;
  margin-bottom: 18px;
}

.media-kit-top b {
  color: #075fff;
  font-size: 13px;
}

.media-kit-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.slot {
  border-radius: 14px;
  display: grid;
  place-items: center;
  min-height: 94px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  line-height: 1.35;
  background: linear-gradient(135deg, #07122b, #075fff);
}

.slot-hero {
  grid-column: 1 / -1;
  min-height: 126px;
}

.slot-card,
.slot-native {
  background: linear-gradient(135deg, #dbeafe, #075fff);
}

.slot-side {
  grid-row: span 2;
  min-height: 200px;
  background: #075fff;
}

.ad-pack-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ad-pack-grid article {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #ffffff;
  padding: 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
}

.ad-pack-grid span {
  width: fit-content;
  border-radius: 999px;
  background: #eaf1ff;
  color: #075fff;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.ad-pack-grid h3,
.team-card h3,
.editorial-method h3,
.ad-process h3 {
  color: #07122b;
  margin: 0;
}

.ad-pack-grid p,
.team-card p,
.editorial-method p,
.ad-process p {
  color: #34466d;
  line-height: 1.65;
}

.ad-pack-grid strong {
  margin-top: auto;
  color: #07122b;
  font-size: 18px;
}

.ad-process,
.editorial-method {
  margin: 10px 24px 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ad-process > div,
.editorial-method article {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #f8fbff;
  padding: 24px;
}

.ad-process span,
.editorial-method span {
  color: #075fff;
  font-weight: 900;
}

.ads-cta {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.team-feature-card {
  display: grid;
  gap: 18px;
}

.team-feature-image {
  min-height: 285px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -90px 90px rgba(7, 18, 43, 0.2);
}

.team-feature-card small {
  color: #075fff;
  font-weight: 900;
}

.team-feature-card strong {
  display: block;
  color: #07122b;
  font-size: 24px;
  line-height: 1.3;
  margin-top: 6px;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
}

.team-photo {
  display: block;
  min-height: 190px;
  background-size: cover;
  background-position: center;
}

.team-card div {
  padding: 16px;
}

.team-card small {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #075fff;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.auth-illustration {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 20%, rgba(23, 92, 255, 0.14), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fbff, #dceaff);
}

.auth-illustration::before,
.auth-illustration::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 92, 255, 0.14);
  border-radius: 28px;
  transform: rotate(-8deg);
  z-index: -1;
}

.auth-illustration::before {
  width: 190px;
  height: 120px;
  left: 42px;
  bottom: 58px;
  background: rgba(255, 255, 255, 0.42);
}

.auth-illustration::after {
  width: 130px;
  height: 92px;
  right: 44px;
  top: 76px;
  background: rgba(255, 255, 255, 0.3);
}

.mail-illustration,
.shield-illustration {
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.fake-map {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(28deg, transparent 0 44%, rgba(23, 92, 255, 0.18) 44% 47%, transparent 47% 100%),
    linear-gradient(142deg, transparent 0 50%, rgba(7, 18, 43, 0.12) 50% 52%, transparent 52% 100%),
    linear-gradient(90deg, rgba(23, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 92, 255, 0.08) 1px, transparent 1px), #eef4ff;
  background-size:
    auto,
    auto,
    42px 42px,
    42px 42px;
}

.fake-map::before,
.fake-map::after {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #34466d;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.fake-map::before {
  content: "Opera";
  left: 18%;
  top: 22%;
}

.fake-map::after {
  content: "2e ARR.";
  right: 18%;
  bottom: 20%;
}

@media (max-width: 980px) {
  .about-hero,
  .ads-hero,
  .contact-layout,
  .auth-redesign,
  .ads-bottom,
  .map-card {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .ad-offer-grid,
  .stats-strip,
  .support-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .favorites-screen {
    grid-template-columns: 1fr;
  }

  .profile-login-state {
    grid-template-columns: 1fr;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-hero h1,
  .ads-hero h1,
  .contact-info h1 {
    font-size: 40px;
  }

  .value-grid,
  .ad-offer-grid,
  .stats-strip,
  .support-strip,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .favorites-screen {
    padding: 22px 14px 36px;
  }

  .favorites-main {
    padding: 0 10px 12px;
  }

  .favorites-toolbar,
  .favorites-toolbar span {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .profile-login-state {
    padding: 28px 14px 42px;
  }
}

/* Static screens polish pass */
.static-screen,
.auth-redesign,
.favorites-screen {
  width: 100%;
}

.static-screen {
  padding-top: 18px;
  padding-bottom: 42px;
}

.about-hero,
.ads-hero,
.contact-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
  gap: clamp(42px, 6vw, 82px);
  padding: clamp(54px, 6vw, 78px) 24px clamp(44px, 5vw, 68px);
}

.contact-layout {
  align-items: start;
}

.about-hero h1,
.ads-hero h1,
.contact-info h1 {
  max-width: 620px;
  letter-spacing: -0.01em;
}

.about-hero p,
.ads-hero p,
.contact-info > p {
  max-width: 580px;
}

.about-collage {
  grid-auto-rows: clamp(88px, 8.5vw, 124px);
}

.static-section {
  padding: 34px 24px 46px;
}

.static-section + .static-section {
  padding-top: 12px;
}

.static-section h2 {
  margin: 0 0 22px;
}

.value-grid article,
.ad-offer-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.value-grid p,
.ad-offer-grid p {
  margin: 0;
}

.contact-form-card {
  padding: clamp(34px, 4vw, 48px);
}

.contact-form-card h2 {
  margin-top: 0;
  color: #07122b;
  font-size: 28px;
}

.contact-form-card .input,
.contact-form-card .select {
  min-height: 54px;
}

.contact-form-card .textarea {
  min-height: 150px;
}

.support-strip {
  margin: 10px 24px 30px;
}

.support-strip article {
  display: grid;
  gap: 6px;
}

.map-card {
  margin-top: 34px;
}

.fake-map {
  min-height: 300px;
}

.ads-preview {
  min-height: 450px;
}

.preview-browser {
  max-width: 560px;
  margin-left: auto;
}

.preview-browser div {
  min-height: 142px;
}

.ads-preview > span {
  right: 18px;
  top: 112px;
  width: 172px;
  min-height: 128px;
  box-shadow: 0 18px 36px rgba(23, 92, 255, 0.18);
}

.ad-offer-grid {
  gap: 22px;
}

.ad-mock {
  min-height: 132px;
}

.ads-bottom {
  padding: 34px 24px 42px;
}

.ads-bottom > div {
  min-width: 0;
}

.cta-band {
  margin: 28px 24px 50px;
  padding: 28px;
}

.auth-redesign {
  grid-template-columns: minmax(420px, 520px) minmax(460px, 1fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 7vw, 92px) 24px clamp(64px, 8vw, 106px);
  max-width: 1220px;
}

.auth-redesign > .view-all-link {
  grid-column: 1 / -1;
  width: fit-content;
  margin-bottom: -24px;
}

.auth-card-large {
  padding: clamp(38px, 4.8vw, 56px);
}

.auth-card-large h1 {
  max-width: 460px;
  margin-bottom: 18px;
}

.auth-card-large .form-grid {
  gap: 20px;
  margin-top: 30px;
}

.auth-card-large .input {
  min-height: 58px;
}

.auth-card-large .btn {
  min-height: 58px;
}

.auth-illustration {
  min-height: clamp(500px, 52vw, 640px);
  padding: 36px;
  overflow: hidden;
}

.auth-illustration h2 {
  color: #07122b;
  font-size: 30px;
  max-width: 360px;
  margin: 0 auto 12px;
}

.auth-illustration p {
  color: #34466d;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
}

.mail-illustration,
.shield-illustration {
  width: clamp(230px, 26vw, 320px);
  height: clamp(230px, 26vw, 320px);
}

.auth-help {
  margin: 8px 0 0;
}

.favorites-screen {
  max-width: 1280px;
  padding: 42px 24px 58px;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 34px;
}

.favorites-main {
  padding: 24px;
}

.favorites-title {
  padding: 0 0 22px;
}

.favorite-tabs {
  margin-bottom: 4px;
}

.favorites-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.favorite-image {
  min-height: 188px;
}

.favorite-body {
  min-height: 154px;
  align-content: start;
  padding: 16px;
}

@media (min-width: 1420px) {
  .favorites-screen {
    max-width: 1360px;
  }

  .favorites-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .about-hero,
  .ads-hero,
  .contact-layout,
  .auth-redesign,
  .ads-hero-pro,
  .team-hero {
    grid-template-columns: 1fr;
  }

  .ad-pack-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-process,
  .editorial-method {
    grid-template-columns: 1fr;
  }

  .auth-redesign > .view-all-link {
    margin-bottom: 0;
  }

  .auth-illustration {
    min-height: 420px;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header:not(.admin-header) .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .site-header:not(.admin-header) .main-nav {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-header:not(.admin-header) .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .site-header:not(.admin-header) .header-actions .btn {
    padding-left: 12px;
    padding-right: 12px;
  }

  .about-hero,
  .ads-hero,
  .ads-hero-pro,
  .team-hero,
  .contact-layout,
  .auth-redesign,
  .static-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .support-strip,
  .map-card,
  .cta-band,
  .ad-process,
  .editorial-method {
    margin-left: 16px;
    margin-right: 16px;
  }

  .about-hero h1,
  .ads-hero h1,
  .contact-info h1,
  .auth-card-large h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .favorites-main {
    padding: 16px;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .ad-pack-grid,
  .team-grid,
  .media-kit-layout {
    grid-template-columns: 1fr;
  }

  .slot-hero,
  .slot-side {
    grid-column: auto;
    grid-row: auto;
    min-height: 132px;
  }

  .team-feature-image {
    min-height: 250px;
  }
}

/* Footer final compact sizing from provided screenshot */
.public-footer-redesign {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.public-footer-redesign .footer-grid {
  padding-top: 30px;
  padding-bottom: 26px;
  gap: 40px;
}

.public-footer-redesign .footer-grid > div + div {
  padding-left: 40px;
}

.public-footer-redesign p {
  margin-top: 14px;
  line-height: 1.45;
}

.public-footer-redesign h3 {
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.public-footer-redesign .footer-links,
.public-footer-redesign .footer-links-columns a {
  line-height: 1.28;
}

.public-footer-redesign .social-row {
  margin-top: 15px;
}

.public-footer-redesign .footer-newsletter-inline {
  margin-top: 15px;
}

.public-footer-redesign .footer-bottom {
  background: transparent;
  min-height: 54px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Category Redesign - Mockup Style */
.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.category-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.category-breadcrumb a:hover {
  color: var(--color-primary);
}

.category-breadcrumb .divider {
  color: var(--color-border);
}

.category-header-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: var(--color-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.category-header-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-soft, #eff6ff);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header-icon-box svg {
  width: 36px;
  height: 36px;
}

.category-header-info {
  flex: 1;
  min-width: 0;
}

.category-header-info h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.category-header-info p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
  max-width: 720px;
  line-height: 1.5;
}

.category-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.category-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-header-meta svg {
  stroke-width: 2.5;
  color: var(--color-text-muted);
}

/* Subcategory navigation */
.subcategory-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subcategory-nav::-webkit-scrollbar {
  display: none;
}

.subcategory-pill {
  padding: 8px 16px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.subcategory-pill:hover,
.subcategory-pill.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary-hover);
}

/* Controls */
.category-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dropdown-btn {
  padding: 8px 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-switch-btns {
  display: flex;
  gap: 8px;
}

.view-btn {
  padding: 8px 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.view-btn:hover,
.view-btn.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary-hover);
}

/* Redesigned content grid & cards */
.category-content-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-content-card a {
  text-decoration: none;
}

.category-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.category-content-card .card-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.category-content-card:hover .card-thumb {
  transform: scale(1.02);
}

.category-content-card .card-body {
  padding: 20px;
}

.category-content-card .card-subcategory-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.category-content-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-content-card .card-excerpt {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-content-card .card-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.category-content-card .meta-author {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.category-content-card .meta-stats {
  font-size: 11px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin: 40px 0 24px;
}

.load-more-btn {
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

/* Sidebar Custom Category Styling */
.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.side-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.side-block-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.side-block-head .view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.side-block-head .view-all-link:hover {
  text-decoration: underline;
}

.side-rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 0;
}

.side-rank-item .rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.side-rank-item .rank-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--color-surface-muted);
}

.side-rank-item .rank-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.side-rank-item .rank-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-rank-item .rank-info small {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Newsletter Gradient block */
.newsletter-gradient-block {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  padding: 28px !important;
  border-radius: 16px !important;
  border: none !important;
}

.newsletter-gradient-block h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 10px 0;
}

.newsletter-gradient-block p {
  font-size: 13.5px;
  color: #bfdbfe !important;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.newsletter-gradient-block .sidebar-newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-gradient-block .sidebar-newsletter-form .input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
}

.newsletter-gradient-block .sidebar-newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-gradient-block .sidebar-newsletter-form .btn-primary {
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff !important;
  color: #1e3a8a !important;
  border: none;
  border-radius: 8px;
}

.newsletter-gradient-block .sidebar-newsletter-form .btn-primary:hover {
  background: #f1f5f9 !important;
}

.newsletter-gradient-block .newsletter-disclaimer {
  display: block;
  font-size: 11px;
  color: #93c5fd !important;
  margin-top: 12px;
}

/* Video recent widgets */
.side-video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 2px 0;
}

.side-video-item .video-thumb {
  width: 90px;
  height: 58px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-muted);
}

.side-video-item .video-thumb .video-play-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  padding-left: 2px;
}

.side-video-item .video-thumb .video-duration-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.side-video-item .video-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.side-video-item .video-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-video-item .video-info small {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Category Specific Highlight Colors */
.category-shell.category-culture .card-subcategory-label,
.category-shell.category-culture .subcategory-pill:hover,
.category-shell.category-culture .subcategory-pill.is-active,
.category-shell.category-culture .view-btn:hover,
.category-shell.category-culture .view-btn.is-active,
.category-shell.category-culture .side-block-head .view-all-link {
  color: #8b5cf6;
}

.category-shell.category-culture .subcategory-pill.is-active,
.category-shell.category-culture .view-btn.is-active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.category-shell.category-culture .category-header-icon-box {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.category-shell.category-films .card-subcategory-label,
.category-shell.category-films .subcategory-pill:hover,
.category-shell.category-films .subcategory-pill.is-active,
.category-shell.category-films .view-btn:hover,
.category-shell.category-films .view-btn.is-active,
.category-shell.category-films .side-block-head .view-all-link {
  color: #10b981;
}

.category-shell.category-films .subcategory-pill.is-active,
.category-shell.category-films .view-btn.is-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.category-shell.category-films .category-header-icon-box {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.category-shell.category-business .card-subcategory-label,
.category-shell.category-business .subcategory-pill:hover,
.category-shell.category-business .subcategory-pill.is-active,
.category-shell.category-business .view-btn:hover,
.category-shell.category-business .view-btn.is-active,
.category-shell.category-business .side-block-head .view-all-link {
  color: #2563eb;
}

.category-shell.category-business .subcategory-pill.is-active,
.category-shell.category-business .view-btn.is-active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.category-shell.category-business .category-header-icon-box {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

/* List view style for category page */
.content-grid.view-list {
  grid-template-columns: 1fr !important;
  gap: var(--space-4) !important;
}

.content-grid.view-list .category-content-card a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px;
}

.content-grid.view-list .category-content-card .card-thumb {
  width: 240px !important;
  height: 160px !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  margin: 12px 0 12px 12px !important;
}

.content-grid.view-list .category-content-card .card-body {
  flex: 1 !important;
  padding: 16px 20px 16px 0 !important;
}

@media (max-width: 760px) {
  .content-grid.view-list .category-content-card a {
    flex-direction: column !important;
  }
  .content-grid.view-list .category-content-card .card-thumb {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px 12px 0 0 !important;
  }
  .content-grid.view-list .category-content-card .card-body {
    padding: 16px !important;
  }
}

/* Ensure ad containers are positioned relatively by default */
.promo-box {
  position: relative !important;
}

/* --- DARK MODE REDESIGNED PAGES & DETAIL PAGE OVERRIDES --- */
html[data-theme="dark"] {
  color-scheme: dark;
}

/* 1. Reset text colors to light variables on dark theme */
html[data-theme="dark"] .about-hero h1,
html[data-theme="dark"] .ads-hero h1,
html[data-theme="dark"] .contact-info h1,
html[data-theme="dark"] .auth-card-large h1,
html[data-theme="dark"] .static-section h2,
html[data-theme="dark"] .ads-bottom h2,
html[data-theme="dark"] .value-grid h3,
html[data-theme="dark"] .contact-info h3,
html[data-theme="dark"] .ad-offer-grid h3,
html[data-theme="dark"] .contact-form-card h2,
html[data-theme="dark"] .auth-illustration h2,
html[data-theme="dark"] .about-tile h3,
html[data-theme="dark"] .contact-form-card label,
html[data-theme="dark"] .auth-card-large label,
html[data-theme="dark"] .detail-article h1,
html[data-theme="dark"] .detail-comments h2,
html[data-theme="dark"] .detail-comments .section-head h2,
html[data-theme="dark"] .detail-comment strong,
html[data-theme="dark"] .detail-sidebar h3,
html[data-theme="dark"] .side-block-head h3,
html[data-theme="dark"] .side-rank-item strong,
html[data-theme="dark"] .side-video-item strong,
html[data-theme="dark"] .team-card h3 {
  color: var(--color-text) !important;
}

html[data-theme="dark"] .about-hero p,
html[data-theme="dark"] .ads-hero p,
html[data-theme="dark"] .contact-info > p,
html[data-theme="dark"] .auth-card-large > p,
html[data-theme="dark"] .value-grid p,
html[data-theme="dark"] .ad-offer-grid p,
html[data-theme="dark"] .contact-info p,
html[data-theme="dark"] .contact-form-card p,
html[data-theme="dark"] .map-card p,
html[data-theme="dark"] .auth-illustration p,
html[data-theme="dark"] .contact-form-card small,
html[data-theme="dark"] .auth-card-large p,
html[data-theme="dark"] .detail-excerpt,
html[data-theme="dark"] .detail-meta,
html[data-theme="dark"] .detail-breadcrumb a,
html[data-theme="dark"] .detail-richtext,
html[data-theme="dark"] .detail-richtext p,
html[data-theme="dark"] .detail-copy,
html[data-theme="dark"] .quote-explanation,
html[data-theme="dark"] .detail-comment p,
html[data-theme="dark"] .detail-comment button,
html[data-theme="dark"] .team-card p {
  color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .detail-breadcrumb,
html[data-theme="dark"] .detail-comment small,
html[data-theme="dark"] .team-card small {
  color: var(--color-text-muted) !important;
}

/* 2. Reset cards & container backgrounds and borders to dark variables */
html[data-theme="dark"] .value-grid article,
html[data-theme="dark"] .ad-offer-grid article,
html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .support-strip,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .auth-card-large,
html[data-theme="dark"] .auth-illustration,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .team-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: var(--shadow-card) !important;
}

/* 3. Reset special background accents and borders */
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .value-grid span,
html[data-theme="dark"] .contact-info article > span,
html[data-theme="dark"] .auth-icon,
html[data-theme="dark"] .ad-offer-grid article > span {
  background: var(--color-surface-muted) !important;
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .mini-benefits span {
  background: var(--color-surface-muted) !important;
  color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .stats-strip article,
html[data-theme="dark"] .support-strip article,
html[data-theme="dark"] .contact-info article,
html[data-theme="dark"] .detail-comment {
  border-color: var(--color-border) !important;
}

html[data-theme="dark"] .fake-map,
html[data-theme="dark"] .ad-mock {
  background: var(--color-surface-muted) !important;
  border-color: var(--color-border) !important;
}

html[data-theme="dark"] .auth-separator {
  color: var(--color-text-muted) !important;
}
html[data-theme="dark"] .auth-separator::before,
html[data-theme="dark"] .auth-separator::after {
  background-color: var(--color-border) !important;
}

html[data-theme="dark"] .detail-avatar {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
}

/* 4. Hide ad placeholder when ad is successfully loaded */
.promo-box:has(ins[data-ad-status="filled"]) .ad-script-placeholder,
.promo-box:has(ins.adsbygoogle[data-ad-status="filled"]) .ad-script-placeholder,
.promo-box:has(iframe) .ad-script-placeholder {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 5. Additional Dark Mode Overrides for Team, Ads/Publicity, and Profile/Favorites Pages */
html[data-theme="dark"] .team-hero h1,
html[data-theme="dark"] .ads-hero-pro h1,
html[data-theme="dark"] .profile-mini-card h2,
html[data-theme="dark"] .sync-card strong,
html[data-theme="dark"] .favorites-title h1,
html[data-theme="dark"] .favorites-toolbar,
html[data-theme="dark"] .favorite-body strong,
html[data-theme="dark"] .team-feature-card strong,
html[data-theme="dark"] .ad-pack-grid h3,
html[data-theme="dark"] .ad-pack-grid strong,
html[data-theme="dark"] .editorial-method h3,
html[data-theme="dark"] .ad-process h3 {
  color: var(--color-text) !important;
}

html[data-theme="dark"] .team-hero p,
html[data-theme="dark"] .ads-hero-pro p,
html[data-theme="dark"] .ad-pack-section .section-head p,
html[data-theme="dark"] .team-page-pro .section-head p,
html[data-theme="dark"] .profile-mini-card p,
html[data-theme="dark"] .favorites-title p,
html[data-theme="dark"] .sync-card p,
html[data-theme="dark"] .profile-mini-card dl,
html[data-theme="dark"] .profile-nav a,
html[data-theme="dark"] .favorite-body small,
html[data-theme="dark"] .ad-pack-grid p,
html[data-theme="dark"] .editorial-method article p,
html[data-theme="dark"] .ad-process > div p,
html[data-theme="dark"] .ad-offer-grid ul,
html[data-theme="dark"] .check-list,
html[data-theme="dark"] .team-proof span,
html[data-theme="dark"] .editorial-method p,
html[data-theme="dark"] .ad-process p {
  color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .profile-nav a.is-active,
html[data-theme="dark"] .profile-nav a:hover,
html[data-theme="dark"] .ad-pack-grid span,
html[data-theme="dark"] .team-card small {
  background: var(--color-surface-muted) !important;
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .profile-mini-card dd {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .profile-mini-card,
html[data-theme="dark"] .profile-nav,
html[data-theme="dark"] .sync-card,
html[data-theme="dark"] .favorites-main,
html[data-theme="dark"] .favorite-tabs,
html[data-theme="dark"] .favorite-tabs button,
html[data-theme="dark"] .favorites-toolbar button,
html[data-theme="dark"] .favorite-card,
html[data-theme="dark"] .team-proof span,
html[data-theme="dark"] .team-feature-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .preview-browser,
html[data-theme="dark"] .ad-pack-grid article,
html[data-theme="dark"] .ad-kpi-row span,
html[data-theme="dark"] .media-kit-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: var(--shadow-card) !important;
}

html[data-theme="dark"] .favorite-tabs button.is-active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

html[data-theme="dark"] .favorite-image em,
html[data-theme="dark"] .favorite-image b {
  background: var(--color-surface-muted) !important;
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .favorite-body i {
  color: var(--color-text-muted) !important;
}

html[data-theme="dark"] .favorites-empty {
  border-color: var(--color-border-strong) !important;
  color: var(--color-text-secondary) !important;
  background: var(--color-surface-muted) !important;
}

html[data-theme="dark"] .team-proof span,
html[data-theme="dark"] .ad-kpi-row span,
html[data-theme="dark"] .ad-process > div,
html[data-theme="dark"] .editorial-method article {
  border-color: var(--color-border) !important;
  background: var(--color-surface-muted) !important;
}

html[data-theme="dark"] .preview-browser div {
  background: linear-gradient(135deg, #090e18, var(--color-primary)) !important;
}

/* 6. Refined Dark Mode adjustments for Team, Ads/Publicity, and Profile/Favorites Pages */
html[data-theme="dark"] .favorite-tabs button:not(.is-active),
html[data-theme="dark"] .favorites-toolbar button {
  color: var(--color-text) !important;
  background: var(--color-surface-muted) !important;
  border-color: var(--color-border) !important;
}

html[data-theme="dark"] .favorite-tabs button:not(.is-active):hover,
html[data-theme="dark"] .favorites-toolbar button:hover {
  background: var(--color-surface) !important;
  border-color: var(--color-border-strong) !important;
}

html[data-theme="dark"] .profile-mini-card .avatar {
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-primary)) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .favorites-title > span,
html[data-theme="dark"] .favorites-empty span {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .favorite-image {
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-background)) !important;
}

html[data-theme="dark"] .shield-illustration,
html[data-theme="dark"] .mail-illustration {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}

html[data-theme="dark"] .media-kit-top {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .media-kit-top b {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .slot {
  background: linear-gradient(135deg, var(--color-surface), var(--color-primary)) !important;
  color: var(--color-text) !important;
}
html[data-theme="dark"] .slot-card,
html[data-theme="dark"] .slot-native {
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-primary)) !important;
  color: var(--color-text) !important;
}
html[data-theme="dark"] .slot-side {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .cta-band h2 {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .cta-band p {
  color: var(--color-text-secondary) !important;
}
html[data-theme="dark"] .cta-band > span {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .ad-process span,
html[data-theme="dark"] .editorial-method span {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .team-proof strong,
html[data-theme="dark"] .ad-kpi-row strong {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .team-feature-card small {
  color: var(--color-primary) !important;
}

/* 7. Refined Dark Mode adjustments for Content Detail Page */
html[data-theme="dark"] .detail-action {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}
html[data-theme="dark"] .detail-action:hover {
  background: var(--color-surface-muted) !important;
  border-color: var(--color-border-strong) !important;
}

html[data-theme="dark"] .detail-bottom-nav {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
html[data-theme="dark"] .detail-bottom-link,
html[data-theme="dark"] .detail-bottom-list {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .detail-bottom-link span {
  color: var(--color-text-muted) !important;
}
html[data-theme="dark"] .detail-bottom-list {
  border-color: var(--color-border) !important;
}
html[data-theme="dark"] .detail-bottom-list svg {
  fill: var(--color-text) !important;
}

html[data-theme="dark"] .quote-stage {
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-muted)) !important;
  border-color: var(--color-border) !important;
}
html[data-theme="dark"] .quote-stage blockquote {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .quote-stage strong {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .quote-stage small {
  color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .detail-side-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}
html[data-theme="dark"] .detail-side-card h3,
html[data-theme="dark"] .side-card-head h3 {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .side-card-head a,
html[data-theme="dark"] .detail-side-card .widget-link,
html[data-theme="dark"] .view-all-link {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .side-media-item strong {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .side-media-item small {
  color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .detail-richtext h1,
html[data-theme="dark"] .detail-richtext h2,
html[data-theme="dark"] .detail-richtext h3,
html[data-theme="dark"] .detail-richtext h4,
html[data-theme="dark"] .detail-richtext strong,
html[data-theme="dark"] .detail-copy strong,
html[data-theme="dark"] .detail-article strong {
  color: var(--color-text) !important;
}
html[data-theme="dark"] .detail-richtext li,
html[data-theme="dark"] .detail-richtext ul,
html[data-theme="dark"] .detail-richtext ol {
  color: var(--color-text-secondary) !important;
}

.public-search-filters {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
  margin: 18px 0;
}

.public-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 4px;
}

.public-pagination span {
  color: var(--color-text-secondary);
  font-weight: 700;
}

.public-listing-page .page-title,
.public-404 .page-title {
  margin-bottom: 18px;
}

.public-author-card {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
}

.public-author-card strong {
  color: var(--color-text);
  display: block;
  font-size: 1.05rem;
}

.public-author-card p {
  color: var(--color-text-secondary);
  margin: 4px 0 0;
}

.account-public-page {
  padding: 32px 20px;
}

.account-public-page .profile-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.account-public-page .profile-form label {
  color: var(--color-text-secondary);
  display: grid;
  font-weight: 700;
  gap: 6px;
}

.public-404 {
  min-height: 54vh;
  padding: 56px 20px;
}

@media (max-width: 1100px) {
  .public-search-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-search-filters,
  .public-pagination {
    grid-template-columns: 1fr;
  }

  .public-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ============================================================
   VISUAL SEPARATION: content panel vs outer margins
   Active only on screens wider than the container max-width
   ============================================================ */
@media (min-width: 1340px) {
  /* --- Light mode: cool grey outer area --- */
  body:not([class*="admin"]) {
    background: #e4eaf5 !important;
  }

  /* --- Dark mode: nearly-black outer area --- */
  html[data-theme="dark"] body:not([class*="admin"]) {
    background: #040a13 !important;
  }

  /* --- Content panel: raised surface with borders --- */
  .public-container {
    background: var(--color-surface) !important;
    border-left: 1px solid var(--color-border) !important;
    border-right: 1px solid var(--color-border) !important;
    box-shadow:
      4px 0 24px rgba(0, 0, 0, 0.06),
      -4px 0 24px rgba(0, 0, 0, 0.06) !important;
  }

  /* --- Header stays full-width over the outer bg --- */
  .site-header,
  .public-topbar {
    background: var(--color-surface) !important;
    border-left: 1px solid var(--color-border) !important;
    border-right: 1px solid var(--color-border) !important;
  }
  html[data-theme="dark"] .public-topbar {
    background: rgba(17, 27, 39, 0.98) !important;
  }

  /* --- Footer stays dark, full width --- */
  .public-footer-redesign {
    background: linear-gradient(135deg, #08172d 0%, #102744 58%, #0b1e35 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fix search input visibility in dark mode */
[data-theme="dark"] .admin-search input,
[data-theme="dark"] .quick-search,
[data-theme="dark"] .input,
[data-theme="dark"] input[type="search"],
[data-theme="dark"] #search-input,
[data-theme="dark"] #content-search {
  color: var(--color-text, #f8fafc) !important;
  background-color: transparent !important;
}
[data-theme="dark"] .admin-search,
[data-theme="dark"] .quick-search {
  background-color: var(--color-surface, #111b27) !important;
}
