.public-body .visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.tag-page-head h1 {
  font-size: 28px;
  margin-bottom: 0;
}

.search-home {
  margin: 96px auto 70px;
  max-width: 820px;
  text-align: center;
}

@media (max-width: 1024px) and (min-width: 721px) {
  .search-home {
    margin: 48px auto 40px;
  }
}

.search-form {
  display: flex;
  justify-content: center;
  margin: 0;
  max-width: none;
}

.search-form-inner {
  align-items: center;
  border: 1px solid rgba(168, 179, 199, 0.3);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  height: 52px;
  padding: 0 8px 0 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.search-form-inner:focus-within {
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.search-icon-left {
  color: #64748b;
  flex-shrink: 0;
  height: 20px;
  opacity: 1;
  transition: opacity 200ms ease, width 200ms ease;
  width: 20px;
}

.search-input:not(:placeholder-shown) ~ * .search-icon-left,
.search-input:not(:placeholder-shown) + .search-icon-left {
  opacity: 0;
  width: 0;
}

.search-form-inner:has(.search-input:not(:placeholder-shown)) .search-icon-left {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.search-input {
  background: transparent;
  border: 0;
  color: var(--site-text);
  flex: 1;
  font: inherit;
  font-size: 17px;
  min-width: 0;
  outline: none;
  padding: 0;
  width: 100%;
}

.search-input::placeholder {
  color: #64748b;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  background-color: #64748b;
  cursor: pointer;
  height: 16px;
  opacity: 0.7;
  width: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='5' y1='5' x2='19' y2='19' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'/%3E%3Cline x1='19' y1='5' x2='5' y2='19' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='5' y1='5' x2='19' y2='19' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'/%3E%3Cline x1='19' y1='5' x2='5' y2='19' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.search-input::-webkit-search-cancel-button:hover {
  background-color: var(--site-text);
  opacity: 1;
}

.search-submit {
  align-items: center;
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 12px 0 4px;
  transition: opacity 200ms ease, max-width 200ms ease, color 160ms ease;
  width: 38px;
}

.search-form-inner:has(.search-input:not(:placeholder-shown)) .search-submit {
  color: var(--site-text);
  max-width: 54px;
  opacity: 1;
}

.search-submit:hover {
  color: var(--site-text);
}

.search-submit svg {
  fill: none;
  height: 20px;
  width: 20px;
}

.search-page {
  padding-top: 18px;
}

.search-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.search-row .search-form {
  flex: 1;
  margin: 0;
}

.search-row .filter-menu-toggle {
  flex-shrink: 0;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 20px;
}

.compact-search {
  margin-bottom: 0;
  max-width: none;
}

.search-filter-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}

.search-filter-toolbar:empty {
  display: none;
}

.filter-menu-toggle,
.filter-reset-compact {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.filter-menu-toggle {
  background: rgba(168, 179, 199, 0.1);
  border: 1px solid rgba(168, 179, 199, 0.18);
  color: var(--site-text);
}

.filter-menu-toggle:hover,
.filter-menu-toggle[aria-expanded="true"] {
  background: rgba(168, 179, 199, 0.16);
}

.filter-menu-toggle svg {
  fill: currentColor;
  height: 17px;
  width: 17px;
}

.filter-menu-toggle b {
  align-items: center;
  background: #2563eb;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
}

.filter-reset-compact {
  color: var(--site-muted);
}

.filter-reset-compact:hover {
  color: var(--site-text);
}

.active-filter-list {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 7px;
  justify-content: flex-end;
  min-width: 0;
}

.active-filter-list a {
  align-items: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  color: #bfdbfe;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px 5px 10px;
}

.active-filter-list a:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}

.active-filter-list svg {
  fill: currentColor;
  height: 13px;
  width: 13px;
}

.active-filter-list .filter-reset-compact {
  background: transparent;
  border-color: rgba(168, 179, 199, 0.16);
  color: var(--site-muted);
  padding-inline: 10px;
}

html.filter-open,
html.filter-open body {
  overflow: hidden;
  touch-action: none;
}

.filter-menu-backdrop {
  align-items: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: rgba(2, 6, 14, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 100;
}

.filter-menu-backdrop[hidden] {
  display: none;
}

.filter-menu {
  background: #151a23;
  border: 1px solid rgba(168, 179, 199, 0.2);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color: var(--site-text);
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 36px);
  max-width: 680px;
  overflow: auto;
  padding: 20px;
  width: 100%;
}

.filter-menu-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.filter-menu-head h2 {
  font-size: 20px;
  margin: 0;
}

.filter-menu-head button:focus,
.filter-menu-head button:focus-visible {
  outline: none;
  box-shadow: none;
}

.filter-menu-head button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--site-muted);
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, color 160ms ease;
  width: 40px;
}

.filter-menu-head button:hover {
  background: rgba(168, 179, 199, 0.16);
  color: var(--site-text);
}

.filter-menu-head svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.filter-group {
  border: 0;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.filter-group legend {
  color: var(--site-muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 9px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-options label {
  cursor: pointer;
  display: block;
}

.filter-options input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.filter-options span {
  background: rgba(168, 179, 199, 0.07);
  border: 1px solid rgba(168, 179, 199, 0.16);
  border-radius: 999px;
  color: var(--site-muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-options span small {
  color: inherit;
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.65;
}

.filter-options input:checked + span {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.42);
  color: #bfdbfe;
}

.filter-options input:focus-visible + span {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}

.tag-filter-options {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-menu-actions {
  align-items: center;
  border-top: 1px solid rgba(168, 179, 199, 0.12);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 14px;
}

.filter-menu-actions a,
.filter-menu-actions button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
}

.filter-menu-actions a {
  color: var(--site-muted);
}

.filter-menu-actions button {
  background: #2563eb;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.search-home-inner {
  margin: 0 auto;
  max-width: 720px;
  position: relative;
}

.search-home-inner::before,
.search-home-inner::after {
  content: '';
  height: 40px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 160ms ease;
  width: 48px;
  z-index: 1;
}

.search-home-inner::before {
  background: linear-gradient(to right, var(--site-bg), transparent);
  left: 0;
}

.search-home-inner::after {
  background: linear-gradient(to left, var(--site-bg), transparent);
  right: 0;
}

.search-home-inner.fade-left::before,
.search-home-inner.fade-right::after {
  opacity: 1;
}

.home-tags {
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  white-space: nowrap;
}

.home-tags::-webkit-scrollbar {
  display: none;
}

.tag:hover {
  background: var(--site-surface-soft);
  color: var(--site-text);
}

.popular-section {
  margin-top: 12px;
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 0;
}

.video-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.video-card {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.thumb {
  aspect-ratio: 16 / 9;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: 10px;
  color: #ffffff;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.video-card .thumb {
  border-radius: 10px;
}

.thumb picture,
.thumb img {
  display: block;
  height: 100%;
  width: 100%;
}

.thumb img {
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-card .thumb:hover img {
  transform: scale(1.015);
}

.demo-thumb.blue {
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.demo-thumb.green {
  background: linear-gradient(135deg, #047857, #111827);
}

.demo-thumb.rose {
  background: linear-gradient(135deg, #be123c, #1f2937);
}

.demo-thumb.amber {
  background: linear-gradient(135deg, #b45309, #111827);
}

.duration-badge {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 6px;
  bottom: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 7px;
  position: absolute;
  right: 10px;
}

.new-video-badge {
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  left: 10px;
  line-height: 1;
  padding: 6px 7px;
  position: absolute;
  top: 10px;
}

.new-video-badge i,
.related-new-badge i {
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.15);
  display: block;
  flex: 0 0 auto;
  height: 5px;
  width: 5px;
}

.video-card h2,
.video-card h3 {
  display: -webkit-box;
  font-size: 16px;
  height: calc(1.35em * 2);
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card h2 a:hover,
.video-card h3 a:hover {
  color: #ffffff;
}

.video-card .meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 -2px;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
  overflow-x: auto;
  padding: 1px 2px 3px;
  scrollbar-width: none;
  white-space: nowrap;
}

.video-card .meta::-webkit-scrollbar {
  display: none;
}

.video-card .meta a,
.tag-meta a {
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: 999px;
  color: var(--site-muted);
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
}

.meta a:hover,
.tag-meta a:hover {
  background: var(--site-surface-soft);
  color: var(--site-text);
}

.search-results-head {
  margin-bottom: 18px;
}

.search-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.search-pagination a,
.search-pagination > span {
  align-items: center;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  color: var(--site-muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
}

.search-pagination a {
  background: var(--site-surface);
}

.search-pagination a:hover {
  background: var(--site-surface-soft);
  color: var(--site-text);
}

.search-pagination svg {
  fill: currentColor;
  height: 15px;
  width: 15px;
}

@media (max-width: 720px) {
  .tag-page-head h1 {
    font-size: 24px;
  }

  .search-home {
    display: flex;
    flex-direction: column;
    margin: 0 auto 22px;
    text-align: left;
  }

  .popular-section {
    margin-top: 0;
  }

  .search-home-inner {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .search-form {
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .search-form-inner {
    height: 46px;
  }

  .search-row .filter-menu-toggle {
    height: 46px !important;
    min-height: 46px !important;
  }

  .search-input {
    font-size: 16px;
  }

  .search-submit {
    height: 34px;
    width: 34px;
  }

  .compact-search {
    margin-bottom: 18px;
  }

  .home-tags {
    margin: 0 0 14px;
    max-width: 100%;
    padding: 2px 0;
  }

  .home-tags .tag {
    flex: 0 0 auto;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .search-filter-toolbar {
    margin-left: -18px;
    margin-right: -18px;
    overflow-x: auto;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }

  .search-filter-toolbar::-webkit-scrollbar {
    display: none;
  }

  .filter-menu-toggle,
  .active-filter-list {
    flex: 0 0 auto;
  }

  .active-filter-list {
    justify-content: flex-start;
  }

  .filter-menu-backdrop {
    align-items: center;
    padding: 18px;
  }

  .filter-menu {
    border-radius: 12px;
    gap: 16px;
    max-height: calc(100vh - 16px);
    padding: 17px;
  }

  .filter-menu-actions > * {
    flex: 1 1 0;
  }

  .filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-options::-webkit-scrollbar {
    display: none;
  }

  .filter-options label {
    flex-shrink: 0;
  }

  .tag-filter-options {
    max-height: none;
    overflow-y: visible;
  }

  .video-grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .video-card {
    gap: 8px;
  }

  .video-card h2,
  .video-card h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .video-card .meta {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 42px;
  }

  .search-pagination a span {
    display: none;
  }

  .search-pagination a {
    padding: 7px;
    width: 36px;
  }
}

.static-page {
  max-width: 720px;
  margin: 0 auto;
  min-height: 50vh;
  padding: 32px 0 48px;
}

.static-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.static-page-updated {
  color: var(--site-muted);
  font-size: 13px;
  margin-bottom: 36px;
}

.static-page h2 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.static-page p,
.static-page ul {
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.static-page ul {
  padding-left: 20px;
}

.static-page a {
  color: var(--site-text);
}

.feedback-contacts {
  margin-top: 28px;
}

.feedback-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 16px;
}

.feedback-note {
  font-size: 14px;
}
