/* FarmHub — light, editorial video discovery layout */

:root {
  --fh-bg: #fdf8f0;
  --fh-bg-mid: #f9f1e4;
  --fh-bg-alt: #f5ebe0;
  --fh-surface: #fffdf9;
  --fh-surface-2: #faf3e8;
  --fh-panel: rgba(255, 252, 247, 0.92);
  --fh-panel-border: rgba(255, 255, 255, 0.85);
  --fh-line: rgba(80, 60, 40, 0.12);
  --fh-border: rgba(80, 60, 40, 0.1);
  --fh-border-strong: rgba(80, 60, 40, 0.18);
  --fh-text: #2c2419;
  --fh-text-soft: #5c5248;
  --fh-muted: #8a7f72;
  --fh-accent: #c48a1a;
  --fh-accent-hover: #a67010;
  --fh-accent-light: #e8b84a;
  --fh-accent-soft: rgba(196, 138, 26, 0.14);
  --fh-gold: #c48a1a;
  --fh-radius: 12px;
  --fh-radius-lg: 18px;
  --fh-shadow-sm: 0 2px 8px rgba(60, 45, 30, 0.06);
  --fh-shadow: 0 8px 32px rgba(60, 45, 30, 0.08);
  --fh-shadow-lg: 0 20px 48px rgba(60, 45, 30, 0.1);
  --fh-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fh-font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

body.template-farmhub,
body.template-globalsolutions.template-farmhub {
  background: linear-gradient(165deg, var(--fh-bg) 0%, var(--fh-bg-mid) 45%, #f7efe3 100%);
  background-attachment: fixed;
  color: var(--fh-text);
  font-family: var(--fh-font);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 767px) {
  body.template-farmhub,
  body.template-globalsolutions.template-farmhub {
    background-attachment: scroll;
  }
}

body.template-farmhub h1,
body.template-farmhub h2,
body.template-farmhub h3,
body.template-globalsolutions.template-farmhub h1,
body.template-globalsolutions.template-farmhub h2,
body.template-globalsolutions.template-farmhub h3 {
  font-family: var(--fh-font-display);
  font-weight: 600;
  font-optical-sizing: auto;
}

/* ── Header ── */
.fh-header {
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fh-border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--fh-shadow-sm);
}

.fh-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fh-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fh-text);
  text-decoration: none;
  font-family: var(--fh-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.fh-search-form {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 480px;
  display: flex;
  gap: 0;
}

@media (max-width: 575px) {
  .fh-search-form {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .fh-header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fh-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.fh-search-input {
  flex: 1;
  background: var(--fh-surface-2);
  border: 1px solid var(--fh-border);
  border-right: none;
  border-radius: var(--fh-radius) 0 0 var(--fh-radius);
  color: var(--fh-text);
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-family: inherit;
}

.fh-search-input::placeholder {
  color: var(--fh-muted);
}

.fh-search-input:focus {
  outline: 2px solid var(--fh-accent);
  outline-offset: 0;
  background: #fff;
}

.fh-search-btn {
  background: var(--fh-accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--fh-radius) var(--fh-radius) 0;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}

.fh-search-btn:hover {
  background: var(--fh-accent-hover);
}

.fh-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  width: 100%;
  font-size: 0.82rem;
  padding-top: 0.15rem;
}

.fh-cat-nav a {
  color: var(--fh-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.fh-cat-nav a:hover {
  color: var(--fh-accent-hover);
  background: var(--fh-accent-soft);
  border-color: rgba(196, 138, 26, 0.25);
}

/* ── Main layout ── */
.fh-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fh-sections,
.fh-section-panel,
.fh-section-body,
.fh-hero-inner {
  min-width: 0;
  max-width: 100%;
}

/* ── Featured hero ── */
.fh-hero {
  padding: 1.75rem 0 0;
}

.fh-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.fh-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--fh-shadow-lg);
  transition: box-shadow 0.25s, transform 0.25s;
}

.fh-hero-card:hover {
  box-shadow: 0 24px 56px rgba(60, 45, 30, 0.12);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .fh-hero-card {
    grid-template-columns: 1.55fr 1fr;
  }
}

.fh-hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #2c2419;
  min-height: 200px;
  width: 100%;
  overflow: hidden;
}

.fh-hero-media img,
.fh-hero-media .fh-thumb-video,
.fh-hero-placeholder {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fh-hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(44, 36, 25, 0.12) 0%,
    rgba(44, 36, 25, 0.4) 100%
  );
  pointer-events: none;
}

.fh-hero-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.25rem;
  height: 4.25rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: transform 0.2s, background 0.2s;
}

.fh-hero-card:hover .fh-hero-play {
  transform: scale(1.06);
  background: rgba(196, 138, 26, 0.55);
  border-color: #fff;
}

.fh-hero-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 11px solid transparent;
  border-left: 17px solid #fff;
}

.fh-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.75rem 1.85rem;
  background: linear-gradient(160deg, var(--fh-surface) 0%, var(--fh-surface-2) 100%);
  border-top: 1px solid var(--fh-border);
}

@media (min-width: 768px) {
  .fh-hero-copy {
    border-top: none;
    border-left: 1px solid var(--fh-border);
    padding: 2rem 2.25rem;
  }
}

.fh-hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.fh-hero-label {
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, var(--fh-accent), var(--fh-accent-light));
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.fh-hero-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fh-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fh-hero-title {
  font-family: var(--fh-font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 600;
  font-style: normal;
  margin: 0 0 0.65rem;
  line-height: 1.12;
  color: var(--fh-text);
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

.fh-hero-desc {
  color: var(--fh-text-soft);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fh-hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--fh-muted);
}

.fh-hero-meta li:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--fh-border-strong);
}

.fh-hero-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fh-accent);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--fh-accent-soft);
  border: 1px solid rgba(196, 138, 26, 0.28);
  transition: background 0.15s, color 0.15s;
}

.fh-hero-card:hover .fh-hero-cta {
  background: var(--fh-accent);
  color: #fff;
}

.fh-hero-cta::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

/* ── Section panels & separators ── */
.fh-sections {
  padding: 2rem 0 2.75rem;
  display: flex;
  flex-direction: column;
}

/* Shared card shell — new (.fh-section-panel) and legacy (.fh-row) markup */
.fh-section-panel,
.fh-row,
.fh-section.fh-section--divider {
  background: var(--fh-panel);
  border: 1px solid var(--fh-panel-border);
  border-radius: var(--fh-radius-lg);
  padding: 1.65rem 1.5rem 1.75rem;
  margin: 0.75rem 0;
  box-shadow:
    0 1px 2px rgba(60, 45, 30, 0.03),
    0 6px 20px rgba(60, 45, 30, 0.045);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Line + gap between stacked section cards (when no <hr> separator in markup) */
.fh-section-panel + .fh-section-panel,
.fh-row + .fh-row,
.fh-section-panel + .fh-row,
.fh-row + .fh-section-panel,
.fh-section.fh-section--divider + .fh-section.fh-section--divider,
.fh-section.fh-section--divider + .fh-row,
.fh-row + .fh-section.fh-section--divider {
  margin-top: 3rem;
  position: relative;
}

.fh-section-panel + .fh-section-panel::before,
.fh-row + .fh-row::before,
.fh-section-panel + .fh-row::before,
.fh-row + .fh-section-panel::before,
.fh-section.fh-section--divider + .fh-section.fh-section--divider::before,
.fh-section.fh-section--divider + .fh-row::before,
.fh-row + .fh-section.fh-section--divider::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--fh-line) 12%,
    var(--fh-line) 88%,
    transparent 100%
  );
}

.fh-section-sep {
  border: 0;
  height: 1px;
  margin: 1.5rem 1.25rem;
  padding: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--fh-line) 12%,
    var(--fh-line) 88%,
    transparent 100%
  );
  flex-shrink: 0;
}

.fh-section-sep + .fh-section-panel,
.fh-section-sep + .fh-row,
.fh-section-sep + .fh-section.fh-section--divider {
  margin-top: 0.75rem;
}

.fh-section-panel + .fh-section-sep,
.fh-row + .fh-section-sep,
.fh-section.fh-section--divider + .fh-section-sep {
  margin-top: 0;
}

.fh-section-head,
.fh-row-head {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--fh-line);
  position: relative;
}

.fh-section-head::before,
.fh-row-head::before {
  content: "";
  width: 3px;
  flex-shrink: 0;
  margin-right: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--fh-accent) 0%, var(--fh-accent-light) 100%);
  opacity: 0.85;
}

/* Legacy row header: title only, no flex gold bar child */
.fh-row-head:not(.fh-section-head) {
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-left: 1rem;
}

.fh-row-head:not(.fh-section-head)::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 1.1rem;
  width: 3px;
  margin-right: 0;
}

.fh-section-head-text {
  flex: 1;
  min-width: 0;
}

.fh-row-head.fh-section-head {
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.fh-section-eyebrow {
  margin: 0 0 0.3rem;
  font-family: var(--fh-font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fh-accent-hover);
}

.fh-section-title,
.fh-row-title {
  font-family: var(--fh-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  margin: 0;
  color: var(--fh-text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-optical-sizing: auto;
}

.fh-row-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.fh-row-title a:hover {
  color: var(--fh-accent);
}

.fh-row-more {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fh-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.15s;
}

.fh-row-more:hover {
  color: var(--fh-accent);
}

/* ── Video grid ── */
.fh-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.35rem 1.15rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 639px) {
  .fh-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Few videos: expand cards to fill the row instead of hugging the left */
@media (min-width: 640px) {
  .fh-video-grid--few.fh-video-grid--n1 {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
  }

  .fh-video-grid--few.fh-video-grid--n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-video-grid--few.fh-video-grid--n3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fh-video-grid--few.fh-video-grid--n4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .fh-video-grid--few.fh-video-grid--n1 {
    grid-template-columns: minmax(320px, 480px);
  }
}

.fh-video-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.fh-video-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  min-width: 0;
}

.fh-video-card-link .fh-video-card-copy {
  padding: 0.65rem 0.2rem 0.15rem;
}

.fh-video-card:hover .fh-video-card-title {
  color: var(--fh-accent-hover);
}

.fh-video-card:hover .fh-video-card-meta {
  border-color: rgba(196, 138, 26, 0.28);
  background: var(--fh-surface-2);
}

.fh-video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
  border-radius: var(--fh-radius);
  overflow: hidden;
  background: var(--fh-bg-alt);
  box-shadow: var(--fh-shadow-sm);
  border: 1px solid var(--fh-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.fh-video-card:hover .fh-video-card-thumb {
  box-shadow: var(--fh-shadow);
  transform: translateY(-2px);
}

/* Global site CSS sets img { max-width: 100% } — posters must scale up to fill the box */
.fh-video-card-thumb img,
.fh-video-card-thumb .fh-thumb-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  vertical-align: top;
}

.fh-thumb-video {
  background: #2c2419;
  pointer-events: none;
}

.fh-thumb-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(44, 36, 25, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s, background 0.2s;
}

.fh-video-card:hover .fh-thumb-play-overlay {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(44, 36, 25, 0.55);
}

.fh-thumb-play-overlay::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 7px solid transparent;
  border-left: 11px solid #fff;
}

.fh-video-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f5ebe0, #ede0d0);
}

.fh-play-icon {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid rgba(196, 138, 26, 0.65);
}

.fh-badge {
  position: absolute;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.fh-badge-duration {
  bottom: 8px;
  right: 8px;
  background: rgba(44, 36, 25, 0.82);
  color: #fff;
}

.fh-badge-res {
  bottom: 8px;
  left: 8px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--fh-accent-hover);
  border: 1px solid rgba(196, 138, 26, 0.3);
}

.fh-video-card-meta {
  flex: 1;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem 0.65rem;
  background: rgba(255, 252, 247, 0.75);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  transition: background 0.2s, border-color 0.2s;
}

.fh-video-card-title {
  font-family: var(--fh-font);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: var(--fh-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}

.fh-video-card-desc {
  font-family: var(--fh-font);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fh-text-soft);
  margin: 0.35rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .fh-video-card-title {
    font-size: 0.875rem;
  }

  .fh-video-card-desc {
    font-size: 0.8125rem;
  }
}

.fh-video-card-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-family: var(--fh-font);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--fh-muted);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.fh-video-card-stat {
  display: inline-flex;
  align-items: center;
}

.fh-video-card-stat:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--fh-border-strong);
  font-weight: 400;
}

.fh-video-card-cat {
  color: var(--fh-accent-hover);
  font-weight: 600;
}

/* ── Horizontal scroll row (many videos) / grid (few videos) ── */
.fh-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--fh-border-strong) transparent;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.fh-scroll-row .fh-video-card {
  flex: 0 0 min(260px, calc(100vw - 2.5rem));
  min-width: 0;
  scroll-snap-align: start;
}

/* Category rows with few clips: use full-width grid like Trending */
.fh-scroll-row--few {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.fh-scroll-row--few .fh-video-card {
  flex: unset;
  scroll-snap-align: unset;
}

@media (min-width: 640px) {
  .fh-scroll-row--few.fh-scroll-row--n1 {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
  }

  .fh-scroll-row--few.fh-scroll-row--n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-scroll-row--few.fh-scroll-row--n3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fh-scroll-row--few.fh-scroll-row--n4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Creators ── */
.fh-creator-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.fh-creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--fh-text);
  min-width: 100px;
  padding: 0.75rem;
  border-radius: var(--fh-radius);
  transition: background 0.15s;
}

.fh-creator-card:hover {
  background: var(--fh-surface-2);
}

.fh-creator-card:hover .fh-creator-name {
  color: var(--fh-accent);
}

.fh-creator-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fh-surface-2);
  border: 2px solid var(--fh-border);
  box-shadow: var(--fh-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fh-creator-card:hover .fh-creator-avatar {
  border-color: var(--fh-accent);
  box-shadow: var(--fh-shadow);
}

.fh-creator-avatar--lg {
  width: 120px;
  height: 120px;
}

.fh-creator-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fh-creator-initial {
  font-family: var(--fh-font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--fh-accent);
}

.fh-creator-name {
  font-family: var(--fh-font);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}

/* ── Video detail & inner pages ── */
.fh-video-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .fh-video-layout {
    grid-template-columns: 1fr 340px;
  }
}

.fh-video-player-wrap {
  background: #2c2419;
  border-radius: var(--fh-radius);
  overflow: hidden;
  box-shadow: var(--fh-shadow);
  border: 1px solid var(--fh-border);
}

.fh-detail-video {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  background: #2c2419;
  object-fit: contain;
}

.fh-video-title {
  font-family: var(--fh-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--fh-text);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

.fh-video-stats {
  color: var(--fh-muted);
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.fh-video-creator-link {
  display: inline-block;
  color: var(--fh-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.fh-video-creator-link:hover {
  color: var(--fh-accent-hover);
}

.fh-video-desc {
  color: var(--fh-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.75rem;
}

.fh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.fh-tag {
  display: inline-block;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  color: var(--fh-muted);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.fh-tag:hover {
  color: var(--fh-accent-hover);
  border-color: rgba(196, 138, 26, 0.4);
  background: var(--fh-accent-soft);
}

.fh-back {
  display: inline-block;
  color: var(--fh-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.fh-back:hover {
  color: var(--fh-accent);
}

.fh-page-head h1 {
  font-family: var(--fh-font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--fh-text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-optical-sizing: auto;
}

.fh-page-intro {
  color: var(--fh-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.fh-creator-profile-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.fh-empty,
.fh-empty-inline {
  color: var(--fh-muted);
  text-align: center;
  padding: 3rem 1rem;
  background: var(--fh-surface);
  border-radius: var(--fh-radius-lg);
  border: 1px dashed var(--fh-border-strong);
  margin-top: 2rem;
}

.fh-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fh-border);
}

/* ── Views, likes, share ── */
.fh-engagement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--fh-line);
}

.fh-engagement--compact {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
}

.fh-video-sidebar > .fh-engagement {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
  margin-bottom: 0.5rem;
}

.fh-engagement-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.fh-engagement-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fh-muted);
}

.fh-engagement-stat--likes {
  color: var(--fh-text-soft);
}

.fh-engagement-icon {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.75;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.fh-engagement-icon--views {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.fh-engagement-icon--likes {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21s-6.7-4.35-9.33-8.1C.5 9.5 1.57 5.5 5.1 4.4c2-.65 4.15.2 5.5 1.9 1.35-1.7 3.5-2.55 5.5-1.9 3.53 1.1 4.6 5.1 2.43 8.5C18.7 16.65 12 21 12 21Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21s-6.7-4.35-9.33-8.1C.5 9.5 1.57 5.5 5.1 4.4c2-.65 4.15.2 5.5 1.9 1.35-1.7 3.5-2.55 5.5-1.9 3.53 1.1 4.6 5.1 2.43 8.5C18.7 16.65 12 21 12 21Z'/%3E%3C/svg%3E");
}

.fh-engagement-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fh-like-btn,
.fh-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--fh-font);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--fh-line);
  background: rgba(255, 252, 247, 0.9);
  color: var(--fh-text-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.fh-like-btn:hover,
.fh-share-btn:hover {
  border-color: rgba(196, 138, 26, 0.35);
  color: var(--fh-accent-hover);
  background: var(--fh-accent-soft);
}

.fh-like-btn:active,
.fh-share-btn:active {
  transform: scale(0.97);
}

.fh-like-btn.is-liked,
.fh-like-btn:disabled {
  border-color: rgba(196, 138, 26, 0.45);
  background: var(--fh-accent-soft);
  color: var(--fh-accent-hover);
  cursor: default;
}

.fh-like-btn-icon,
.fh-share-btn-icon {
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.fh-like-btn-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21s-6.7-4.35-9.33-8.1C.5 9.5 1.57 5.5 5.1 4.4c2-.65 4.15.2 5.5 1.9 1.35-1.7 3.5-2.55 5.5-1.9 3.53 1.1 4.6 5.1 2.43 8.5C18.7 16.65 12 21 12 21Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21s-6.7-4.35-9.33-8.1C.5 9.5 1.57 5.5 5.1 4.4c2-.65 4.15.2 5.5 1.9 1.35-1.7 3.5-2.55 5.5-1.9 3.53 1.1 4.6 5.1 2.43 8.5C18.7 16.65 12 21 12 21Z'/%3E%3C/svg%3E");
}

.fh-share-btn-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7'/%3E%3Cpath d='M16 6l-4-4-4 4'/%3E%3Cpath d='M12 2v14'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7'/%3E%3Cpath d='M16 6l-4-4-4 4'/%3E%3Cpath d='M12 2v14'/%3E%3C/svg%3E");
}

.fh-engagement--compact .fh-like-btn-label,
.fh-engagement--compact .fh-share-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fh-engagement--compact .fh-like-btn,
.fh-engagement--compact .fh-share-btn {
  padding: 0.4rem 0.45rem;
}

.fh-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 1200;
  background: rgba(44, 36, 25, 0.92);
  color: #fffdf9;
  font-family: var(--fh-font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: var(--fh-shadow);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.fh-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
