/* ==========================================================================
   NEW HEADER — Final V1: Strips Below Header
   Přesně podle mockupu header-final-v1.html
   Full-width layout, nav vpravo, pill search
   ========================================================================== */

:root {
  --hdr-height: 66px;
  --hdr-bg: #111;

  --hdr-border: rgba(255,255,255,0.06);
  --hdr-input-bg: #f0f0f0;
  --hdr-input-border: #ddd;
  --hdr-panel-bg: #1e1e1e;
  --hdr-panel-border: #333;
  --hdr-strips-bg: #0d0d0d;
  --hdr-strips-border: rgba(255,255,255,0.04);
  --hdr-menu-bg: #111;

  /* Design system — accent color */
  --accent: #ed28b5;
}

/* Custom scrollbar — all new header elements */
.new-header-wrap,
.new-mobile-menu,
.new-hdr-suggestions,
.new-hdr-ac {
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.new-header-wrap ::-webkit-scrollbar,
.new-mobile-menu::-webkit-scrollbar,
.new-hdr-suggestions::-webkit-scrollbar,
.new-hdr-ac::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.new-header-wrap ::-webkit-scrollbar-track,
.new-mobile-menu::-webkit-scrollbar-track,
.new-hdr-suggestions::-webkit-scrollbar-track,
.new-hdr-ac::-webkit-scrollbar-track {
  background: transparent;
}
.new-header-wrap ::-webkit-scrollbar-thumb,
.new-mobile-menu::-webkit-scrollbar-thumb,
.new-hdr-suggestions::-webkit-scrollbar-thumb,
.new-hdr-ac::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}


/* ==========================================================================
   HEADER BAR
   ========================================================================== */

.new-header-wrap {
  position: sticky;
  top: 0;
  z-index: 2100;
  width: 100%;
  will-change: transform;
}
/* WP admin-bar-css sets html { scroll-padding-top: 32px } for logged-in users,
   even when admin bar is hidden. This causes the browser to repeatedly scroll up
   when focusing/typing in the sticky header search input. Reset when no admin bar. */
html:has(body.logged-in:not(.admin-bar)) {
  scroll-padding-top: 0 !important;
}
.admin-bar .new-header-wrap {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .new-header-wrap {
    top: 46px;
  }
}

.new-header {
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
  transition: box-shadow 0.3s;
}

/* Glass Elevation efekt pri scrollu — jen desktop */
@media (min-width: 768px) {
  .new-header-wrap.scrolled .new-header {
    background: rgba(17,17,17,0.7);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  }
  @supports not (backdrop-filter: blur(1px)) {
    .new-header-wrap.scrolled .new-header {
      background: rgba(17,17,17,0.97);
    }
  }
}
/* Mobile: opaque bg bez backdrop-filter (performance) */
@media (max-width: 767.98px) {
  .new-header-wrap.scrolled .new-header {
    background: rgba(17,17,17,0.97);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .new-header-wrap.scrolled .new-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(17,17,17,0.97);
  }
}

.new-header-bar {
  display: flex;
  align-items: center;
  height: var(--hdr-height);
  padding: 0 15px;
  gap: 16px;
}


/* --- Hamburger (mobile only, hidden on desktop) --- */

.new-hdr-hamburger {
  display: none;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
}
.new-hdr-hamburger svg {
  display: block;
  width: 24px;
  height: 24px;
}
.new-hdr-hamburger line {
  transition: transform 0.2s ease, opacity 0.15s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.mobile-menu-opened .new-hbg-top {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-opened .new-hbg-mid {
  opacity: 0;
}
.mobile-menu-opened .new-hbg-bot {
  transform: translateY(-6px) rotate(-45deg);
}


/* --- Logo --- */

.new-hdr-logo {
  flex: 0 0 auto;
  min-width: 100px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.new-hdr-logo:focus {
  color: #fff;
  text-decoration: none;
}
@media (hover: hover) {
  .new-hdr-logo:hover {
    color: #fff;
    text-decoration: none;
  }
}
.new-hdr-logo .accent {
  color: var(--accent);
}
.new-hdr-logo img {
  max-height: 30px;
  min-width: 100px;
  width: auto;
  display: block;
}

/* WP custom logo (the_custom_logo) */
.new-header-bar .custom-logo-link {
  flex: 0 0 auto;
  min-width: 100px;
  line-height: 1;
  text-decoration: none;
}
.new-header-bar .custom-logo {
  max-height: 30px;
  min-width: 100px;
  width: auto;
  display: block;
}



/* --- Search (pill shape, accent button inside) --- */

.new-hdr-search-wrap {
  flex: 1 1 auto;
  max-width: 400px;
  min-width: 200px;
  position: relative;
}

.new-hdr-search-form {
  position: relative;
  height: 36px;
}

.new-hdr-search-input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 16px;
  background: var(--hdr-input-bg);
  border: 1px solid var(--hdr-input-border);
  border-radius: 18px;
  color: #222;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.12s;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.new-hdr-search-input::placeholder {
  color: #999;
}

.new-hdr-search-btn {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media (hover: hover) {
  .new-hdr-search-btn:hover {
    opacity: 0.85;
  }
}

/* Search suggestions dropdown — Gradient Ranking (variant E) */
.new-hdr-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #161616;
  border: 1px solid #252525;
  border-radius: 12px;
  z-index: 200;
  padding: 6px 0;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}
.new-hdr-suggestions.visible {
  display: block;
}
.new-hdr-sugg-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin: 2px 6px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.new-hdr-sugg-title .sugg-fire {
  font-size: 13px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.new-hdr-sugg-link {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  gap: 10px;
  color: #d0d0d0;
  text-decoration: none;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
/* Colored left border */
.new-hdr-sugg-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
/* Gradient bar behind text */
.new-hdr-sugg-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  pointer-events: none;
  transition: opacity 0.1s;
}
/* Type colors — category (warm sand) */
.new-hdr-sugg-link.sugg-cat::before { background: #ff6b35; }
.new-hdr-sugg-link.sugg-cat::after { background: linear-gradient(90deg, rgba(255,107,53,0.10) 0%, transparent 100%); }
.new-hdr-sugg-link.sugg-cat .sugg-rank { color: #ff6b35; }
.new-hdr-sugg-link.sugg-cat .sugg-arrow { color: #ff6b35; }
/* Type colors — pornstar (soft rosé) */
.new-hdr-sugg-link.sugg-star::before { background: #d63c84; }
.new-hdr-sugg-link.sugg-star::after { background: linear-gradient(90deg, rgba(214,60,132,0.10) 0%, transparent 100%); }
.new-hdr-sugg-link.sugg-star .sugg-rank { color: #d63c84; }
.new-hdr-sugg-link.sugg-star .sugg-arrow { color: #d63c84; }
/* Type colors — tag (muted teal) */
.new-hdr-sugg-link.sugg-tag::before { background: #00bcd4; }
.new-hdr-sugg-link.sugg-tag::after { background: linear-gradient(90deg, rgba(0,188,212,0.10) 0%, transparent 100%); }
.new-hdr-sugg-link.sugg-tag .sugg-rank { color: #00bcd4; }
.new-hdr-sugg-link.sugg-tag .sugg-arrow { color: #00bcd4; }
/* Type colors — trend/other (light grey) */
.new-hdr-sugg-link.sugg-trend::before { background: #888; }
.new-hdr-sugg-link.sugg-trend::after { background: linear-gradient(90deg, rgba(136,136,136,0.08) 0%, transparent 100%); }
.new-hdr-sugg-link.sugg-trend .sugg-rank { color: #888; }
.new-hdr-sugg-link.sugg-trend .sugg-arrow { color: #888; }
/* Top 3 — stronger gradients */
.new-hdr-sugg-link:nth-child(2)::after { width: 80%; opacity: 1; }
.new-hdr-sugg-link:nth-child(3)::after { width: 70%; opacity: 0.7; }
.new-hdr-sugg-link:nth-child(4)::after { width: 60%; opacity: 0.4; }
@media (hover: hover) {
  .new-hdr-sugg-link:hover {
    text-decoration: none;
    color: #fff;
  }
  .new-hdr-sugg-link:hover::after {
    opacity: 1;
  }
}
.sugg-rank {
  font-weight: 700;
  font-size: 13px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: #555;
}
.sugg-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.sugg-arrow {
  font-size: 10px;
  position: relative;
  z-index: 1;
}

/* --- Autocomplete dropdown --- */

.new-hdr-ac {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 6px 6px 8px;
  max-height: 520px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}
.new-hdr-ac.visible {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Card per section */
.new-hdr-ac-card {
  background: #222;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
}
.new-hdr-ac-card:last-child {
  margin-bottom: 2px;
}
.new-hdr-ac-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.new-hdr-ac-card-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section colors */
.new-hdr-ac-card.ac-cat .new-hdr-ac-card-bar  { background: #ff6b35; }
.new-hdr-ac-card.ac-cat .new-hdr-ac-card-head  { color: #ff6b35; }
.new-hdr-ac-card.ac-star .new-hdr-ac-card-bar { background: #d63c84; }
.new-hdr-ac-card.ac-star .new-hdr-ac-card-head { color: #d63c84; }
.new-hdr-ac-card.ac-tag .new-hdr-ac-card-bar  { background: #00bcd4; }
.new-hdr-ac-card.ac-tag .new-hdr-ac-card-head  { color: #00bcd4; }

/* Item row */
.new-hdr-ac-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #bbb;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  transition: background 0.15s;
}
.new-hdr-ac-item.is-active,
.new-hdr-ac-item:hover {
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
}

/* Circle avatar (image or initial letter) */
.new-hdr-ac-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
}
.ac-cat .new-hdr-ac-avatar  { background: #3a2415; color: #ff6b35; }
.ac-star .new-hdr-ac-avatar { background: #2d1422; color: #d63c84; }
.ac-tag .new-hdr-ac-avatar  { background: #152a2e; color: #00bcd4; }

.new-hdr-ac-avatar-img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  border-radius: 50%;
}

/* Highlight matched text */
.new-hdr-ac-hl {
  font-weight: 600;
}
.ac-cat .new-hdr-ac-hl  { color: #ff6b35; }
.ac-star .new-hdr-ac-hl { color: #d63c84; }
.ac-tag .new-hdr-ac-hl  { color: #00bcd4; }

/* Count badge */
.new-hdr-ac-count {
  font-size: 11px;
  color: #999;
  margin-left: auto;
  flex-shrink: 0;
  background: #2a2a2a;
  padding: 2px 7px;
  border-radius: 10px;
}
.new-hdr-ac-item.is-active .new-hdr-ac-count,
.new-hdr-ac-item:hover .new-hdr-ac-count {
  color: #bbb;
}


/* --- Search backdrop (darkens page on focus) --- */

.new-search-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: brightness(0.3);
  -webkit-backdrop-filter: brightness(0.3);
  z-index: 2099;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-focused .new-search-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Dimming header elements on search focus */
.new-hdr-logo,
.new-header-bar .custom-logo-link,
.new-hdr-nav,
.new-hdr-actions,
.new-hdr-lang,
.new-hdr-hamburger {
  transition: opacity 0.2s ease;
}
.search-focused .new-hdr-logo,
.search-focused .new-header-bar .custom-logo-link,
.search-focused .new-hdr-nav,
.search-focused .new-hdr-actions,
.search-focused .new-hdr-lang,
.search-focused .new-hdr-hamburger {
  opacity: 0.15;
  pointer-events: none;
}
.search-focused .new-header {
  background: #080808;
}


/* --- Desktop nav (zarovnáno doprava pomocí margin-left: auto) --- */

.new-hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  margin-left: auto;
  overflow: hidden;
}

.new-hdr-nav .navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.new-hdr-nav .nav-item {
  position: relative;
}
.new-hdr-nav .nav-link {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
@media (hover: hover) {
  .new-hdr-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
  }
}
.new-hdr-nav .nav-link.active {
  color: var(--accent);
}
.new-hdr-nav .nav-link i {
  display: none;
}

/* Nav dropdown */
.new-hdr-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--hdr-panel-bg);
  border: 1px solid var(--hdr-panel-border);
  border-radius: 6px;
  padding: 4px 0;
  min-width: 160px;
  display: none;
  z-index: 300;
}
.new-hdr-nav .dropdown-menu.show {
  display: block;
}
.new-hdr-nav .dropdown-item {
  display: block;
  padding: 6px 14px;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}
@media (hover: hover) {
  .new-hdr-nav .dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
  }
}


/* --- Action buttons --- */

.new-hdr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.new-hdr-action-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
@media (hover: hover) {
  .new-hdr-action-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
    text-decoration: none;
  }
}


/* --- Language selector --- */

.new-hdr-lang {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.new-hdr-lang span {
  display: none !important;
}
.new-hdr-lang a.gt_switcher-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  filter: saturate(0.75);
}
.new-hdr-lang a.gt_switcher-popup img {claude
  width: 28px !important;
  height: 28px !important;
  max-width: none !important;
  object-fit: cover;
}

/* --- Compact search icon (mobile scrolled) --- */

.new-hdr-search-compact {
  display: none; /* desktop: skryty */
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #888;
  font-size: 15px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}


/* --- Search overlay (mobile, scrolled state) --- */

.new-hdr-search-overlay {
  display: none; /* desktop: nikdy */
}


/* GTranslate popup — centrování + layout */
.gt_white_content {
  position: fixed !important;
  top: 30% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  border-radius: 12px !important;
}
.gt_white_content .gt_languages {
  column-count: 4 !important;
  column-gap: 20px !important;
}
.gt_white_content a {
  padding: 6px 6px !important;
  border-bottom: none !important;
}


/* ==========================================================================
   ACTOR STRIPS (pod headerem, full-width)
   ========================================================================== */

.new-strips {
  background-color: transparent;
  isolation: isolate;

  /* Sticky strip */
  position: sticky;
  top: calc(var(--hdr-height) + 1px);
  z-index: 2098;
  overflow-anchor: none;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.35s ease, opacity 0.35s ease;
}
.new-strips.strips-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

@keyframes newStripsBgFade {
  to { opacity: 1; }
}

/* Glass + shadow pri stuck stavu — jen desktop */
@media (min-width: 768px) {
  .new-strips.is-stuck {
    background-color: rgba(13,13,13,0.65);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: 0 2px 16px rgba(0,0,0,0.6);
  }
  @supports not (backdrop-filter: blur(1px)) {
    .new-strips.is-stuck {
      background-color: rgba(13,13,13,0.97);
    }
  }
}
/* Mobile: opaque bg vzdy, zadne animace/transitions */
@media (max-width: 767.98px) {
  .new-strips {
    background-color: rgba(13,13,13,0.97);
    transition: none;
  }
  .new-strips.is-stuck {
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .new-strips.is-stuck {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(13,13,13,0.97);
  }
}

/* Secondary strip wrapper — ne-sticky, scrolluje pryc prirozene */
.new-strips-secondary-wrap {
  position: relative;
  overflow: visible;
  margin-top: -2px;

  --g1: color-mix(in srgb, var(--accent) 18%, transparent);
  --g2: color-mix(in srgb, var(--accent) 8%, transparent);
  --g3: color-mix(in srgb, var(--accent) 8%, transparent);
  --tint-dark: color-mix(in srgb, #000 85%, color-mix(in srgb, var(--accent) 8%, var(--hdr-strips-bg)));
}

/* Unified gradient background — covers both strips via negative top */
.new-strips-bg {
  position: absolute;
  top: -65px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 120px at 50% 0%,
      rgba(6,6,6,0.00) 0%,
      rgba(6,6,6,0.42) 42%,
      transparent 100%
    ),
    radial-gradient(900px 340px at 25% 45%,
      var(--g1) 0%,
      var(--g2) 48%,
      transparent 76%
    ),
    radial-gradient(760px 320px at 68% 40%,
      var(--g3) 0%,
      transparent 72%
    ),
    linear-gradient(90deg,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.045) 22%,
      rgba(255,255,255,0.00) 55%
    ),
    linear-gradient(180deg,
      var(--tint-dark) 0%,
      transparent 100%
    );

  background-repeat: no-repeat;
  background-size: 100% 100%;

  /* Fade edges: left/right to transparent, bottom to transparent */
  -webkit-mask:
    linear-gradient(to right, transparent, black 12%, black 88%, transparent),
    linear-gradient(to bottom, black, black 55%, transparent);
  -webkit-mask-composite: destination-in;
  mask:
    linear-gradient(to right, transparent, black 12%, black 88%, transparent),
    linear-gradient(to bottom, black, black 55%, transparent);
  mask-composite: intersect;

  opacity: 0;
  animation: newStripsBgFade 400ms ease-out 800ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  .new-strips-bg { animation: none; opacity: 1; }
}
@media (max-width: 767.98px) {
  .new-strips-bg { display: none; }
}

.new-strips-inner {
  padding: 0 15px;
}


/* Strip wrapper */
.new-strip {
  position: relative;
  overflow: hidden;
}

.new-strip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0 8px 0;
  -webkit-overflow-scrolling: touch;
  --fade: 120px;
  contain: layout style;
}

/* Mask: na začátku — fade jen vpravo */
.new-strip.is-overflow.is-at-start .new-strip-scroll {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--fade)), transparent 100%);
}

/* Mask: uprostřed — fade na obou stranách */
.new-strip.is-overflow:not(.is-at-start):not(.is-at-end) .new-strip-scroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}

/* Mask: na konci — fade jen vlevo */
.new-strip.is-overflow.is-at-end .new-strip-scroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 100%);
}

.new-strip-scroll::-webkit-scrollbar {
  display: none;
}

/* Actor pill */
.new-actor-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #eee;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.08s, border-color 0.5s, backdrop-filter 0.08s, -webkit-backdrop-filter 0.08s;
}
@media (hover: hover) {
  .new-actor-pill:hover {
    background: color-mix(in srgb, var(--accent) 55%, rgba(12, 12, 12, 0.42));
    backdrop-filter: saturate(110%);
    -webkit-backdrop-filter: saturate(110%);
    border-color: color-mix(in srgb, var(--accent) 90%, rgba(255, 255, 255, 0.10));
    color: #fff;
    text-decoration: none;
    transition: background 0s, border-color 0.08s, backdrop-filter 0s, -webkit-backdrop-filter 0s;
  }
}

.new-actor-pill .new-actor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.07);
}
.new-actor-avatar.cat-avatar {
  background: #253537;
  background: color-mix(in srgb, var(--accent) 15%, #222);
}

.new-actor-pill.no-avatar {
  padding-left: 14px;
}

.new-actor-name {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  text-transform: capitalize;
  transform: translateY(1px);
}
.new-actor-name.active {
  color: var(--accent);
}

/* Strip nav arrows */
.new-strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,30,30,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  opacity: 0.85;
  transition: opacity 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
  padding: 0;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .new-strip-nav {
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.new-strip-nav.left { left: 4px; }
.new-strip-nav.right { right: 4px; }

/* Skrýt šipky na okrajích */
.new-strip.is-at-start .new-strip-nav.left {
  opacity: 0;
  pointer-events: none;
}
.new-strip.is-at-end .new-strip-nav.right {
  opacity: 0;
  pointer-events: none;
}

/* Hover na desktopu — výraznější */
@media (hover: hover) and (pointer: fine) {
  .new-strip-nav:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,1);
    color: #060606;
  }
}

/* Secondary strip: tag chips */
.new-strip-secondary .new-strip-scroll {
  padding: 4px 0 4px 0;
  gap: 6px;
}
.new-strip-secondary .new-strip-nav {
  top: 50%;
}

.new-tag-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #bbb;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.08s, border-color 0.5s, color 0.08s;
}
@media (hover: hover) {
  .new-tag-chip:hover {
    background: color-mix(in srgb, var(--accent) 55%, rgba(12, 12, 12, 0.42));
    backdrop-filter: saturate(110%);
    -webkit-backdrop-filter: saturate(110%);
    border-color: color-mix(in srgb, var(--accent) 90%, rgba(255, 255, 255, 0.10));
    color: #fff;
    text-decoration: none;
    transition: background 0s, border-color 0.08s, backdrop-filter 0s, -webkit-backdrop-filter 0s;
  }
}
.new-tag-chip:has(.tag-ico) {
  padding-left: 5px;
  padding-right: 11px;
  gap: 7px;
}
.new-tag-chip .tag-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
}
.new-tag-chip .active {
  color: var(--accent);
}


/* ==========================================================================
   SPACER
   ========================================================================== */

.new-mobile-pad-head {
  display: none;
}


/* ==========================================================================
   MOBILE MENU OVERLAY (YT styl)
   ========================================================================== */

/* Backdrop overlay — covers entire viewport including header & strips */
.new-mm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu-opened .new-mm-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Menu panel — full viewport height, above everything */
.new-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 282px;
  max-width: 85%;
  height: 100%;
  background: rgba(10,10,10,0.97);
  z-index: 2201;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease;
  visibility: hidden;
  padding: 0 10px 30px;
  scrollbar-width: none;
}
/* Glass effect where supported */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .new-mobile-menu {
    background: rgba(8,8,8,0.45);
    -webkit-backdrop-filter: blur(44px);
    backdrop-filter: blur(44px);
  }
}
.new-mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu-opened .new-mobile-menu {
  transform: translateX(0);
  visibility: visible;
}
body.mobile-menu-opened {
  overflow: hidden;
}

/* Menu header — logo left, close right */
.new-mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 10px;
}
.new-mm-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.new-mm-logo-img {
  height: 28px;
  width: auto;
}
.new-mm-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #999;
  font-size: 12px;
  cursor: pointer;
}
@media (hover: hover) {
  .new-mm-close:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
  }
}

/* Glass card container */
.new-mm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}
.new-mm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.new-mm-card-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #444;
  padding: 11px 12px 3px;
  font-weight: 600;
}

/* PWA Install Banner */
.new-mm-pwa {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, rgba(255,255,255,0.03) 100%);
  border-color: color-mix(in srgb, var(--accent) 15%, transparent);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.4s, margin 0.4s;
  max-height: 200px;
}
.new-mm-pwa::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.new-mm-pwa-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.new-mm-pwa-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #000) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  position: relative;
}
.new-mm-pwa-icon .pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid rgba(10,10,10,0.9);
}
.new-mm-pwa-body { flex: 1; min-width: 0; }
.new-mm-pwa-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1px;
}
.new-mm-pwa-sub {
  font-size: 10px;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  line-height: 1.3;
}
.new-mm-pwa-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}
.new-mm-pwa-btn:active { opacity: 0.8; }

/* PWA banner favicon image */
.new-mm-pwa-app-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.new-mm-pwa-icon.has-img {
  background: none;
  box-shadow: none;
}

/* ==========================================================================
   PWA INSTALL MODAL — full-screen overlay with visual step-by-step
   ========================================================================== */

.pwa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2300;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}
.pwa-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.pwa-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s ease;
}
.pwa-modal-overlay.visible .pwa-modal {
  transform: translateY(0) scale(1);
}
.pwa-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #555;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.pwa-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #000) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 30%, transparent);
  overflow: hidden;
}
.pwa-modal-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.pwa-modal-icon-letter {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.pwa-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.pwa-modal-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}
.pwa-modal-steps {
  text-align: left;
}
.pwa-modal-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}
.pwa-modal-step:last-child { margin-bottom: 0; }
.pwa-modal-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.pwa-modal-step-body {
  flex: 1;
  min-width: 0;
}
.pwa-modal-step-text {
  font-size: 12px;
  color: #ccc;
  line-height: 1.4;
}
.pwa-modal-step-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.6;
}
.pwa-modal-step-icon svg { display: block; }
.pwa-modal-dismiss {
  margin-top: 16px;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  color: #888;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.pwa-modal-dismiss:active { background: rgba(255,255,255,0.1); }

/* Menu items (inside cards) */
.new-mm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.new-mm-item:last-child { border-bottom: none; }
.new-mm-item:active {
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-decoration: none;
}
@media (hover: hover) {
  .new-mm-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
  }
}
.new-mm-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  font-size: 12px;
  flex-shrink: 0;
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.04);
}
.new-mm-item .fa {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  font-size: 12px;
  flex: 0 0 auto;
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.04);
}
.new-mm-item-label {
  flex: 1 1 auto;
}
.new-mm-badge {
  margin-left: auto;
  font-size: 8px;
  font-weight: 700;
  background: rgba(240,192,64,0.12);
  border: 1px solid rgba(240,192,64,0.18);
  color: #f0c040;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.new-mm-item.donmen .fa {
  background: rgba(240,192,64,0.07);
  border-color: rgba(240,192,64,0.1);
  color: #f0c040;
}
.new-mm-item-arrow {
  color: #333;
  font-size: 13px;
}

/* Navigate dots */
.new-mm-nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  margin-left: 3px;
}

/* Section header with link */
.new-mm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px 4px;
}
.new-mm-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #444;
  font-weight: 600;
}
.new-mm-section-link {
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.8;
}

/* Categories — rounded pill tags (matches header .new-tag-chip) */
.new-mm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 10px 10px;
}
.new-mm-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: #bbb;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.12s;
}
.new-mm-tag:active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent);
}
@media (hover: hover) {
  .new-mm-tag:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
    text-decoration: none;
  }
}

/* External/recommend links */
.new-mm-recommend .new-mm-item .fa {
  background: rgba(255,255,255,0.03);
  color: #444;
}


/* ==========================================================================
   MOBILE (max-width: 767.98px)
   ========================================================================== */

@media (max-width: 767.98px) {

  /* Header bar — dva radky: row1 items + row2 search */
  .new-header-bar {
    height: auto;
    padding: 8px 12px; /* 8+36+6+32+8 = 90px total (search vzdy viditelny) */
    gap: 0 10px; /* row-gap 0 (search ma vlastni padding), column-gap 10px */
    flex-wrap: wrap;
    position: relative;
  }

  .new-hdr-hamburger {
    display: flex;
  }

  .new-hdr-logo {
    font-size: 17px;
  }

  .new-hdr-nav,
  .new-hdr-actions {
    display: none;
  }

  /* Language selector — viditelny na mobilu */
  .new-hdr-lang {
    display: flex;
    margin-left: auto;
  }

  /* Compact search icon — viditelna jen pri scrolled */
  .new-hdr-search-compact {
    display: none;
  }
  .new-header-wrap.scrolled .new-hdr-search-compact {
    display: flex;
  }

  /* Search wrap jako row 2 (cela sirka, vzdy viditelny) */
  .new-hdr-search-wrap {
    order: 10;
    flex: 0 0 100%;
    max-width: 100%;
    padding-top: 6px;
    min-width: 0;
  }

  .new-hdr-search-form {
    height: 32px;
  }
  .new-hdr-search-input {
    height: 32px;
    border-radius: 16px;
    padding: 0 32px 0 12px;
    font-size: 13px;
  }
  .new-hdr-search-btn {
    width: 28px;
    height: 28px;
    top: 2px;
    right: 2px;
    font-size: 11px;
  }

  /* Search overlay */
  .new-hdr-search-overlay {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17,17,17,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 8px;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
  }
  .new-hdr-search-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  .new-hdr-overlay-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    background: none;
    border-radius: 50%;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .new-hdr-overlay-form {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 6px;
    height: 32px;
  }
  .new-hdr-overlay-input {
    flex: 1;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 0 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    -webkit-appearance: none;
  }
  .new-hdr-overlay-input:focus {
    border-color: var(--accent);
  }
  .new-hdr-overlay-input::placeholder {
    color: #555;
  }
  .new-hdr-overlay-submit {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Spacer — 90px header + 1px header border = 91px */
  .new-mobile-pad-head {
    display: block;
    padding-top: 91px;
    background-color: rgba(0,0,0,0.3);
  }

  /* Strips — sticky pod headerem (90px header + 1px header border) */
  .new-strips {
    top: 91px;
  }
  .new-strips-inner {
    padding: 0 15px;
  }
  .new-strip-scroll {
    gap: 6px;
    padding: 9px 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .new-actor-pill {
    height: 38px;
    padding: 3px 10px 3px 4px;
    gap: 7px;
    font-size: 13.5px;
  }
  .new-actor-avatar {
    width: 30px;
    height: 30px;
  }
  /* Sekundarni + separator — ridici se globalne pres max-height */
  .new-strip-secondary .new-strip-scroll {
    padding: 9px 0;
  }
  .new-tag-chip {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 14px;
  }
  .new-strip-nav {
    display: none;
  }
}


/* ==========================================================================
   H1 + FILTER BAR (V7: Ghost Buttons)
   H1 vlevo, ghost filter buttons + grid toggle vpravo
   ========================================================================== */

.new-top-bar {
  margin-top: 14px;
  margin-bottom: 0;
}

.new-top-inner {
  display: flex;
  align-items: center;
  height: 38px;
  gap: 16px;
}

.new-top-h1 {
  font-size: 22px;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
  margin-right: auto;
}

/* Mobile filter select — visible only on mobile */
.new-filter-select {
  display: none;
}

/* Separator */
.new-top-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Grid density toggle */
.new-grid-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.new-grid-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #666;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
@media (hover: hover) {
  .new-grid-btn:hover {
    color: #888;
    text-decoration: none;
  }
}
.new-grid-btn.active {
  color: #ddd;
  background: none;
}

/* Filter pills — ghost buttons */
.new-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.new-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #777;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.new-filter-pill .fa { font-size: 10px; opacity: 0.5; }
@media (hover: hover) {
  .new-filter-pill:hover {
    color: #ddd;
    text-decoration: none;
  }
}
.new-filter-pill.active {
  color: #eee;
  background: rgba(255,255,255,0.08);
}
.new-filter-pill.active .fa { opacity: 1; }
/* Per-pill active icon colors: Popular, Newest, Most viewed, Longest */
.new-filter-pill:nth-child(1).active .fa { color: #4caf50; }
.new-filter-pill:nth-child(2).active .fa { color: #ff5722; }
.new-filter-pill:nth-child(3).active .fa { color: #42a5f5; }
.new-filter-pill:nth-child(4).active .fa { color: #ab47bc; }


/* --- Grid density overrides (desktop) --- */
@media (min-width: 768px) {
  .video-loop.grid-cols-4 .row > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .video-loop.grid-cols-8 .row > [class*="col-"] {
    flex: 0 0 12.5%;
    max-width: 12.5%;
  }
  /* grid-cols-6 je default (col-xl-2 = 16.67%), netreba override */
}

/* --- Grid density overrides (mobile) --- */
@media (max-width: 767.98px) {
  .video-loop.grid-cols-m1 .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  /* grid-cols-m2 je default (col-6 = 50%), netreba override */
}

/* H1 + filter: mobile */
@media (max-width: 767.98px) {
  .new-top-inner {
    height: auto;
    padding: 10px 0 9px;
    gap: 8px;
  }
  .new-top-h1 {
    font-size: 16px;
  }

  /* Mobile filter select — inline vedle H1 */
  .new-filter-select {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    height: 28px;
    padding: 6px 28px 6px 12px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .new-filter-select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.2);
  }

  /* Hide desktop filters + grid toggle on mobile */
  .new-top-row2 { display: none; }
  .new-grid-toggle--mobile {
    display: flex;
    margin-left: auto;
  }
  .new-grid-toggle--mobile .new-grid-btn {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }
}
@media (min-width: 768px) {
  .new-grid-toggle--desktop { display: flex; }
  .new-grid-toggle--mobile { display: none; }
  .new-filter-select { display: none; }
  .new-top-row2 { display: contents; }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .new-header-wrap,
  .new-strips,
  .new-strips-secondary-wrap,
  .new-mobile-menu,
  .new-mobile-pad-head {
    display: none;
  }
}
