:root {
  --library-sticky-top: 0px;
  --library-control-height: 48px;
  --library-control-radius: 15px;
  --library-control-gap: 12px;
  --library-control-padding-x: 20px;
  --library-select-arrow-zone: 46px;
  --library-select-glyph-size: 17px;
  --library-reset-glyph-size: 22px;
  --library-control-font-size: 14px;
  --library-control-icon-offset: 12px;
  --library-select-fade-width: 36px;
  --library-select-arrow-right: 19px;
  --library-select-arrow-width: 10px;
  --library-select-arrow-height: 6px;
  --library-select-padding-left: 44px;
  --library-select-padding-right: 56px;
  --library-ui-state-duration: 600ms;
  --library-ui-state-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --library-control-border: #ddd;
  --library-control-bg: #fff;
  --library-control-text: #2d3440;
  --library-control-placeholder: #a3a9b1;
  --library-control-focus: rgba(241, 98, 34, 0.18);
}

html.is-safari {
  --library-sticky-top: 5px;
}

body.admin-bar {
  --library-sticky-top: 32px;
}

html.is-safari body.admin-bar {
  --library-sticky-top: 37px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --library-sticky-top: 46px;
  }

  html.is-safari body.admin-bar {
    --library-sticky-top: 51px;
  }
}

body.page-id-3060 #main-content > .container {
  padding-top: 0 !important;
}

body.page-id-3060 h1.entry-title.main_title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#video-library-app {
  width: 100%;
  background: #fff;
  padding: 20px 10px 40px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  opacity: 0;
}

#video-library-app .library-controls {
  position: sticky;
  top: var(--library-sticky-top);
  z-index: 30;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 0 8px;
  background: #fff;
}

#video-library-app .library-controls-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--library-control-gap);
  width: 100%;
  max-width: 918px;
  margin: 0 auto;
}

#video-library-app .library-search {
  position: relative;
  min-width: 0;
  margin: 0;
}

#video-library-app .library-filter-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) var(--library-control-height);
  gap: var(--library-control-gap);
}

#video-library-app .library-control-button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  height: var(--library-control-height);
  width: var(--library-control-height);
  min-width: var(--library-control-height);
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--library-control-border);
  border-radius: var(--library-control-radius);
  background: var(--library-control-bg);
  color: var(--library-control-text);
  cursor: pointer;
  transition:
    background-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    color 300ms var(--library-ui-state-ease),
    border-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    box-shadow var(--library-ui-state-duration) var(--library-ui-state-ease),
    transform var(--library-ui-state-duration) var(--library-ui-state-ease);
}

#video-library-app .library-control-button:hover {
  border-color: rgba(241, 98, 34, 0.5);
}

#video-library-app .library-control-button:active,
#video-library-app .library-control-button:focus-visible {
  outline: none;
  border-color: rgba(241, 98, 34, 0.7);
  box-shadow: 0 0 2px 1px rgba(241, 98, 34, 0.42);
}

#video-library-app .library-control-button svg {
  width: var(--library-reset-glyph-size);
  height: var(--library-reset-glyph-size);
  display: block;
  flex-shrink: 0;
}

#video-library-app .library-control-button-reset svg {
  transform: translate(-1px, -1px);
}

#video-library-app .library-control-button[data-tooltip]::before,
#video-library-app .library-control-button[data-tooltip]::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px);
  transition:
    opacity 180ms var(--library-ui-state-ease),
    transform 180ms var(--library-ui-state-ease);
  transition-delay: 0s;
}

#video-library-app .library-control-button[data-tooltip]::before {
  content: "";
  bottom: calc(100% + 6px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(45, 52, 64, 0.94);
}

#video-library-app .library-control-button[data-tooltip]::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 12px);
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(45, 52, 64, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.16);
}

#video-library-app .library-control-button.is-tooltip-visible::before,
#video-library-app .library-control-button.is-tooltip-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

#video-library-app .library-control-button.is-tooltip-fading::before,
#video-library-app .library-control-button.is-tooltip-fading::after {
  opacity: 0;
  transform: translate(-50%, -2px);
}

#video-library-app .library-select-wrap {
  position: relative;
  min-width: 0;
  height: var(--library-control-height);
  overflow: hidden;
  border: 1px solid var(--library-control-border);
  border-radius: var(--library-control-radius);
  background-color: var(--library-control-bg);
  background-repeat: no-repeat;
  background-position: left var(--library-control-icon-offset) center;
  background-size: var(--library-select-glyph-size) var(--library-select-glyph-size);
  transition:
    border-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    box-shadow var(--library-ui-state-duration) var(--library-ui-state-ease),
    background-color var(--library-ui-state-duration) var(--library-ui-state-ease);
}

#video-library-app .library-select-wrap-category {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23616b78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.35' d='M1.75 5V3.75a1 1 0 0 1 1-1h2.45l1.3 1.5h6.75a1 1 0 0 1 1 1V5'/%3E%3Cpath fill='none' stroke='%23616b78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.35' d='M1.75 5.25h12.5v5.95a1 1 0 0 1-1 1H2.75a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

#video-library-app .library-select-wrap-sort {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23616b78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.35' d='M2.25 4h5.75M2.25 7.5h4.5M2.25 11h3.25'/%3E%3Cpath fill='none' stroke='%23616b78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.35' d='M11.5 3.5v6.5'/%3E%3Cpath fill='none' stroke='%23616b78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.35' d='M9.75 8.25 11.5 10l1.75-1.75'/%3E%3C/svg%3E");
}

#video-library-app .library-select-wrap::before {
  content: "";
  position: absolute;
  top: 1px;
  right: var(--library-select-arrow-zone);
  bottom: 1px;
  width: var(--library-select-fade-width);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92) 56%,
    #fff 70%,
    #fff 100%
  );
}

#video-library-app .library-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--library-select-arrow-right);
  width: var(--library-select-arrow-width);
  height: var(--library-select-arrow-height);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23616b78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / var(--library-select-arrow-width) var(--library-select-arrow-height);
}

#video-library-app #videoSearch,
#video-library-app .library-select {
  display: block;
  width: 100%;
  height: var(--library-control-height);
  min-height: var(--library-control-height);
  margin: 0;
  box-sizing: border-box;
  color: var(--library-control-text);
  font-family: inherit;
  font-size: var(--library-control-font-size);
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
}

#video-library-app #videoSearch {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 calc(var(--library-control-padding-x) + 36px) 0 var(--library-control-padding-x);
  border: 1px solid var(--library-control-border);
  border-radius: var(--library-control-radius);
  background-color: var(--library-control-bg);
  transition:
    border-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    box-shadow var(--library-ui-state-duration) var(--library-ui-state-ease),
    background-color var(--library-ui-state-duration) var(--library-ui-state-ease);
}

#video-library-app #videoSearch::placeholder {
  color: var(--library-control-placeholder);
  opacity: 1;
}

#video-library-app #videoSearch::selection {
  background: #ffddb2;
  color: var(--library-control-text);
}

#video-library-app #videoSearch::-moz-selection {
  background: #ffddb2;
  color: var(--library-control-text);
}

#video-library-app #videoSearch:focus::placeholder {
  color: transparent;
}

#video-library-app .library-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding-left: var(--library-select-padding-left);
  padding-right: var(--library-select-padding-right);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

#video-library-app .library-select-wrap:hover {
  border-color: rgba(241, 98, 34, 0.5);
  box-shadow: none;
}

#video-library-app #videoSearch:hover {
  border-color: rgba(241, 98, 34, 0.5);
  box-shadow: none;
}

#video-library-app #videoSearch:focus,
#video-library-app .library-select-wrap:focus-within {
  border-color: rgba(241, 98, 34, 0.7);
  box-shadow: 0 0 2px 1px rgba(241, 98, 34, 0.42);
}

#video-library-app .library-search-clear-button {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  right: 12px;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f16222;
  color: #fff;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition:
    opacity 180ms var(--library-ui-state-ease),
    transform 180ms var(--library-ui-state-ease),
    background-color 180ms var(--library-ui-state-ease);
}

#video-library-app .library-search-clear-button.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#video-library-app .library-search-clear-button:hover {
  background: #d9571c;
}

#video-library-app .library-search-clear-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 98, 34, 0.22);
}

#video-library-app .library-search-clear-button svg {
  width: 12px;
  height: 12px;
  display: block;
}

#video-library-app .library-select:focus {
  box-shadow: none;
}

#video-library-app .library-results-row {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 6px;
  padding-left: 16px;
  box-sizing: border-box;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
}

#video-library-app .library-results-count {
  color: #2d3440;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

#video-library-app #videoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  max-width: 1080px;
  margin: auto;
  justify-items: center;
}

#video-library-app .video-card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    background-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    border-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    box-shadow var(--library-ui-state-duration) var(--library-ui-state-ease),
    transform var(--library-ui-state-duration) var(--library-ui-state-ease);
  -webkit-user-select: none;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  #video-library-app .video-card:hover {
    background: #ffddb2;
  }

  #video-library-app .video-card:hover .video-title {
    color: #995500;
  }
}

#video-library-app .video-thumb-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

#video-library-app .video-thumb {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
}

#video-library-app .video-runtime-badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  pointer-events: none;
}

#video-library-app .video-title-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 12px 6px;
}

#video-library-app .video-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  transition: color 300ms var(--library-ui-state-ease);
}

#video-library-app .video-player-stage {
  position: relative;
  overflow: hidden;
}

#video-library-app .video-player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

#video-library-app .video-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--library-control-height);
  margin: 0;
  padding: 0 var(--library-control-padding-x);
  border: 1px solid var(--library-control-border);
  border-radius: var(--library-control-radius);
  background: var(--library-control-bg);
  color: var(--library-control-text);
  font-family: inherit;
  font-size: var(--library-control-font-size);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    color 300ms var(--library-ui-state-ease),
    border-color var(--library-ui-state-duration) var(--library-ui-state-ease),
    box-shadow var(--library-ui-state-duration) var(--library-ui-state-ease),
    transform var(--library-ui-state-duration) var(--library-ui-state-ease);
}

#video-library-app .video-back-button:hover {
  border-color: rgba(241, 98, 34, 0.5);
}

#video-library-app .video-back-button:active,
#video-library-app .video-back-button:focus-visible {
  outline: none;
  border-color: rgba(241, 98, 34, 0.7);
  box-shadow: 0 0 2px 1px rgba(241, 98, 34, 0.42);
}

#video-library-app .video-back-button-label {
  display: block;
  line-height: 1;
}

#video-library-app .video-back-button-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

#video-library-app .video-back-button-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

#video-library-app .video-fullscreen-button .video-back-button-icon {
  width: 18px;
}

#video-library-app .video-fullscreen-button .video-back-button-icon svg {
  width: 18px;
  height: 16px;
}

#video-library-app .video-player-wrap {
  z-index: 1;
}

#video-library-app .playback-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 6;
}

#video-library-app .playback-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#video-library-app .playback-feedback svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.42));
}

#video-library-app .video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168px;
  height: 84px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.73);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    color var(--library-ui-state-duration) var(--library-ui-state-ease);
  pointer-events: none;
  cursor: pointer;
  z-index: 5;
}

#video-library-app .video-play-overlay.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#video-library-app .video-play-overlay.is-hiding {
  transition: none;
}

#video-library-app .video-player-stage.has-start-overlay,
#video-library-app .video-player-stage.has-start-overlay .video-player-wrap,
#video-library-app .video-player-stage.has-start-overlay .video-player-el {
  cursor: pointer;
}

#video-library-app .video-player-stage.has-start-overlay:hover .video-play-overlay.is-visible {
  color: rgba(255, 255, 255, 0.95);
}

#video-library-app .video-play-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.52));
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #F16222;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0% { clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%); }
  12.5% { clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%); }
  25% { clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%); }
  50% { clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%); }
  62.5% { clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%); }
  75% { clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%); }
  100% { clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%); }
}

@keyframes l20-2 {
  0% { transform: scaleY(1) rotate(0deg); }
  49.99% { transform: scaleY(1) rotate(135deg); }
  50% { transform: scaleY(-1) rotate(0deg); }
  100% { transform: scaleY(-1) rotate(-135deg); }
}

@media (max-width: 768px) {
  #video-library-app .library-controls-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #video-library-app .library-filter-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) var(--library-control-height);
    gap: 12px;
  }

  #video-library-app .library-select-wrap::before {
    width: var(--library-select-fade-width);
  }
}

@media (max-width: 600px) {
  #video-library-app {
    --library-mobile-row-thumb-width: clamp(128px, 40vw, 220px);
  }

  #video-library-app #videoGrid {
    display: block;
  }

  #video-library-app .library-results-row {
    min-height: 22px;
    margin-bottom: 6px;
    padding-left: 10px;
  }

  #video-library-app .library-results-count {
    font-size: 13px;
  }

  #video-library-app .video-card {
    display: grid;
    grid-template-columns: var(--library-mobile-row-thumb-width) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    max-width: none;
  }

  #video-library-app .video-thumb-wrap {
    width: var(--library-mobile-row-thumb-width);
    flex: 0 0 var(--library-mobile-row-thumb-width);
  }

  #video-library-app .video-thumb {
    width: 100%;
  }

  #video-library-app .video-runtime-badge {
    right: 6px;
    bottom: 6px;
    padding: 2px 5px;
    font-size: 10px;
  }

  #video-library-app .video-title-wrap {
    min-height: 0;
    padding: 0 12px 0 0;
    display: flex;
    align-items: center;
  }

  #video-library-app .video-title {
    -webkit-line-clamp: 4;
  }
}
