/**
 * LoveWetting — Phase B: Videos catalog (Preview / member listing)
 */

.lw-videos-page .wrapper {
  padding-bottom: 40px;
}

/* — Page header (lw-page-head from lw-site.css) — */

.lw-videos-page .lw-page-head {
  margin-bottom: 20px;
}

/* — Filter bar — */

.lw-videos-page {
  --lw-filter-bar-h: 42px;
}

.lw-videos-page .filter.lw-videos-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  height: auto !important;
  min-height: 0;
  padding: 14px 18px;
  margin-bottom: 16px;
  text-align: left !important;
  background: #fff;
  border: 1px solid rgba(190, 102, 164, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  font-size: 15px;
}

/* style.css .filter > div { margin-top: 13px } hit the actions wrapper too */
.lw-videos-page .filter.lw-videos-filter > div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.main.projects.lw-videos-page .filter.lw-videos-filter .title,
.main.projects.lw-videos-page .filter.lw-videos-filter > div.dropdown,
.main.projects.lw-videos-page .filter.lw-videos-filter .btnfilter {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0;
}

.main.projects.lw-videos-page .filter.lw-videos-filter .btnfilter {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.lw-videos-page .lw-videos-filter .title {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--lw-filter-bar-h);
  margin: 0 4px 0 0 !important;
  padding: 0 14px;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(165deg, #d489bd 0%, #a64d8a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lw-videos-page .lw-videos-filter > div.dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--lw-filter-bar-h) !important;
  min-height: var(--lw-filter-bar-h);
  line-height: 1.2;
  margin: 0 !important;
  padding: 0 14px;
  color: #5d5c5c;
  background: #f7f3f6;
  border: 1px solid rgba(190, 102, 164, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lw-videos-page .lw-videos-filter > div.dropdown strong {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.lw-videos-page .lw-videos-filter > div.dropdown .fa-caret-down {
  margin-left: 8px;
  line-height: 1;
  color: #be66a4;
}

.lw-videos-page .lw-videos-filter > div.dropdown:hover,
.lw-videos-page .lw-videos-filter > div.dropdown.is-open {
  background: #fff;
  color: #be66a4;
  border-color: #be66a4;
}

.lw-videos-page .lw-videos-filter > div.divider:before {
  display: none;
}

.lw-videos-page .lw-videos-filter .dropdown .dropdown-content {
  left: 0;
  right: auto;
  min-width: min(320px, 85vw);
  max-height: min(60vh, 420px);
  overflow: auto;
  top: 100%;
  margin-top: -2px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(190, 102, 164, 0.15);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Legacy style.css opens on :hover — gap then hides panel; click uses .is-open only */
.lw-videos-page .lw-videos-filter .dropdown:hover .dropdown-content {
  display: none;
}

.lw-videos-page .lw-videos-filter .dropdown.is-open .dropdown-content {
  display: block;
  z-index: 50;
}

.lw-videos-page .lw-videos-filter .filter-rating label {
  padding: 6px 4px;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.lw-videos-page .lw-videos-filter .filter-rating label:hover {
  background: #fdf5fa;
}

.lw-videos-page .lw-videos-filter__actions {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 8px;
  height: var(--lw-filter-bar-h);
  margin-left: auto;
  flex: 0 0 auto;
}

.lw-videos-page .lw-videos-filter .btnfilter {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  height: var(--lw-filter-bar-h);
  min-height: var(--lw-filter-bar-h);
  padding: 0 18px;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.lw-videos-page .lw-videos-filter .btnfilter--apply {
  box-shadow: 0 2px 10px rgba(166, 77, 138, 0.28);
}

.lw-videos-page .lw-videos-filter .btnfilter--clear {
  background: #fff;
  color: #5d5c5c;
  border: 1px solid rgba(190, 102, 164, 0.35);
  box-shadow: none;
}

.lw-videos-page .lw-videos-filter .btnfilter--clear:hover {
  background: #fdf5fa;
  color: #9f5087;
  border-color: rgba(190, 102, 164, 0.55);
}

/* — Criteria summary — */

.lw-videos-page .lw-videos-criteria {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff;
  border-left: 4px solid #ffae26;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5d5c5c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.lw-videos-page .lw-videos-criteria strong {
  color: #282828;
}

/* — Pager — */

.lw-videos-page .paging {
  background: linear-gradient(135deg, #be66a4 0%, #9f5087 100%);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: none;
}

.lw-videos-page .paging-bottom {
  margin-top: 8px;
}

.lw-videos-page .lw-pager__btn,
.lw-videos-page .lw-pager__num {
  border-radius: 8px;
}

.lw-videos-page .lw-pager__num--current {
  font-weight: 700;
}

/* — Video grid / cards — */

.lw-videos-page section.lw-video-grid .list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px 16px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  float: none !important;
}

@media (min-width: 640px) {
  .lw-videos-page section.lw-video-grid .list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
}

.lw-videos-page section.project-list.lw-video-grid .list:before,
.lw-videos-page section.project-list.lw-video-grid .list:after {
  display: none !important;
  content: none !important;
  clear: none !important;
}

.lw-videos-page section.lw-video-grid .list .item.lw-video-card {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(190, 102, 164, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.lw-videos-page section.lw-video-grid .list .item.lw-video-card:hover {
  border-color: rgba(190, 102, 164, 0.28);
  box-shadow: 0 12px 36px rgba(190, 102, 164, 0.18);
}

.lw-videos-page .lw-video-card__media {
  padding: 14px 14px 0;
}

.lw-videos-page.main.projects section.project-list .list .item .imgwrap.lw-video-card__hero {
  position: relative;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 503 / 282;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #2a2a2a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  line-height: 0;
}

.lw-videos-page section.project-list.lw-video-grid .item.lw-video-card .imgwrap.lw-video-card__hero > a.video-intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.lw-videos-page section.project-list.lw-video-grid .item.lw-video-card .imgwrap.lw-video-card__hero > img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lw-videos-page section.project-list.lw-video-grid .item.lw-video-card .imgwrap.lw-video-card__hero img {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center;
  border-radius: 12px;
  vertical-align: top;
}

.lw-videos-page .lw-video-card__hero .play-overlay {
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs {
  float: none !important;
  margin: 12px 14px 0 !important;
  padding: 10px 12px;
  background: #faf8f9;
  border: 1px solid rgba(190, 102, 164, 0.12);
  border-radius: 12px;
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  overflow: visible;
  float: none !important;
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list:before,
.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list:after {
  display: none !important;
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list a,
.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list > img.thumb {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  position: relative !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list a:hover,
.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list a:focus {
  border-color: #be66a4;
  box-shadow: 0 2px 8px rgba(190, 102, 164, 0.25);
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list a img,
.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list img.thumb {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list img.thumb:after,
.lw-videos-page .item.lw-video-card .thumbs.lw-video-card__thumbs .thumbs-list a:after {
  display: none !important;
}


.lw-videos-page .lw-video-card__body {
  margin: 0;
  padding: 16px 18px 22px;
  text-align: left;
}

.lw-videos-page .lw-video-card__title {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.45;
  color: #9f5087;
  text-transform: none;
  font-family: var(--lw-font-body, "Inter", Arial, sans-serif);
  font-weight: 600;
  letter-spacing: 0;
}

.lw-videos-page .lw-video-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.lw-videos-page .lw-video-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3eef2;
  color: #5d5c5c;
  font-size: 13px;
  font-weight: 500;
}

.lw-videos-page .lw-video-meta-pill .fa {
  color: #be66a4;
}

.lw-videos-page .lw-video-card__body p.tags {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.lw-videos-page .lw-video-card__body p.tags a {
  color: #9f5087;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted rgba(159, 80, 135, 0.45);
}

.lw-videos-page .lw-video-card__body p.tags a:hover {
  color: #ffae26;
  border-bottom-color: transparent;
}

.lw-videos-page .lw-video-card__body .description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-top: 8px;
}

.lw-videos-page .lw-video-card .btnnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(190, 102, 164, 0.25);
}

.lw-videos-page .lw-video-card .btnnav .clear {
  display: none;
}

.lw-videos-page .lw-video-card .btnnav .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.lw-videos-page .lw-rating {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.lw-videos-page .lw-rating__btn {
  border-radius: 6px;
  font-size: 10px;
}

@media (max-width: 420px) {
  .lw-videos-page .lw-rating__bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.lw-videos-page .lw-comment-form {
  margin-top: 14px;
  border-radius: 12px;
}

.lw-videos-page .lw-video-card__body .rating {
  font-size: 13px;
}

.lw-videos-page .lw-video-comments {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #666;
}

.lw-videos-page .lw-video-comments strong {
  font-size: 13px;
  color: #5d5c5c;
}

.lw-videos-page .lw-video-comments .comment-block {
  margin: 8px 0;
  padding: 8px 0 0;
  font-size: 12px;
}

.lw-videos-page .lw-video-comments .comment-block i {
  font-size: 12px;
}

/* Desktop: two columns of cards */

@media (min-width: 900px) {
  .lw-videos-page section.lw-video-grid .list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .lw-videos-page .lw-videos-head {
    padding: 16px;
  }

  .lw-videos-page .lw-videos-search.lw-field-group {
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .lw-videos-page .lw-videos-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .lw-videos-page .lw-videos-filter__actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
  }

  .lw-videos-page .lw-videos-filter .btnfilter {
    margin-left: 0;
    width: 100%;
  }

  .lw-videos-page .lw-videos-filter > div.dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .lw-videos-page .lw-videos-filter .dropdown .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    max-height: 240px;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid #eee;
  }

  .lw-videos-page .lw-videos-filter .dropdown.is-open .dropdown-content {
    display: block;
  }
}

/* Override legacy responsive float layout for this page */

@media (max-width: 1000px) {
  .lw-videos-page .main.projects h1 {
    position: static;
    top: auto;
    margin-bottom: 0;
  }

  .lw-videos-page .search {
    float: none;
    position: static;
    top: auto;
    width: auto;
  }
}

@media (max-width: 479px) {
  .lw-videos-page .main.projects h1 {
    top: auto;
    margin-bottom: 0;
  }
}
