.videoclips-container {
  --bg: rgba(255, 255, 255, .06);
  --bg2: rgba(0, 0, 0, .22);
  --border: rgba(255, 255, 255, .10);
  --border2: rgba(255, 255, 255, .18);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .70);

  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 25px;
  align-items: stretch;
}

.tv-added {
  font-size: 12px;
}

.videoclips-top-header {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 28px;
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.videoclips-dropdown {
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  padding: 8px 12px;
  position: relative;
  width: 220px;
  margin-right: 5px;
}

.videoclips-dropdown:hover {
  border-color: #ff5722;
}

.videoclips-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.videoclips-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 1300px;
}

.videoclips-title {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 28px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 25px;
}

.videoclips-title .fal.fa-video {
  font-size: 22px;
}

.hr-videoclips {
  border: none;
  border-top: 1px solid #111;
  margin-top: 24px;
  width: 100%;
}

.container-query-search {
  align-items: center;
  display: flex;
}

.container-query-search input[type="text"] {
  border-radius: 5px 0 0 5px;
  width: 480px;
}

.search-form {
  display: flex;
  margin: 0;
}

/* viewed */
.container-viewed {
  position: absolute;
  display: inline-block;
  cursor: pointer;
  z-index: 2;
  margin: 5px;
}

.icon-viewed {
  font-size: 24px;
  color: #ffffff;
  transition: transform 0.2s;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 100%;
  padding: 5px;
}

.menu-viewed {
  position: absolute;
  background: white;
  top: -10%;
  padding: 8px 15px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid #ddd;
  z-index: 100;
  min-width: 150px;
}

.container-viewed:hover .menu-viewed {
  opacity: 1;
  visibility: visible;
}

#view-date-viewed {
  font-size: 12px;
  color: #000;
}

/* ===== Top videos grid ===== */
.top-videos {
  --bg: rgba(255, 255, 255, .06);
  --bg2: rgba(0, 0, 0, .22);
  --border: rgba(255, 255, 255, .10);
  --border2: rgba(255, 255, 255, .18);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .70);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
  margin: 10px 0 25px 0;
  align-items: stretch;
}

/* ===== Card ===== */
.tv-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg), rgba(0, 0, 0, .18));
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tv-card:hover {
  border-color: var(--border2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

/* ===== Video preview ===== */
.tv-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, .25);
}

.tv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.tv-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(6px);
}

/* ===== Body ===== */
.tv-body {
  padding: 12px 12px 14px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tv-body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
          transparent 48%,
          #ffffff08 48%,
          #ffffff08 58%,
          transparent 58%);
  transform: rotate(25deg);
  pointer-events: none;
}

.tv-title {
  margin: 0 0 6px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.25;
  font-weight: 700;
}

.tv-title-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 5px;
  vertical-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.5em;
  max-height: 2.5em;
}

.tv-title-link:hover {
  text-decoration: underline;
}

.tv-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.tv-country{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.tv-album {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 12px;
}

.tv-album-link {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 10px;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, .10);
  text-decoration: none;
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.tv-album-link:hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .30);
}

.tv-album-cover {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .12);
}

.tv-album-info {
  min-width: 0;
}

.tv-album-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-album-year {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.tv-chevron {
  opacity: .7;
  font-size: 22px;
  line-height: 1;
}

.tv-views {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(6px);
  user-select: none;
}

.tv-views b {
  font-weight: 800;
}

/* ===== Focus (keyboard) ===== */
.tv-thumb:focus-visible,
.tv-title-link:focus-visible,
.tv-album-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .55);
  outline-offset: 2px;
  border-radius: 14px;
}

@media (max-width: 980px) {

  .videoclips-dropdown {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .videoclips-item {
    width: 190px;
  }

  .container-query-search,
  .search-form {
    flex-wrap: wrap;
  }

  .container-query-search {
    width: 100%;
  }

  .container-query-search input[type="text"] {
    border-radius: 0;
    width: 100%;
  }

  .container-query-search button:not(.color-btn):not([class*="fr"]):not(.search-btn):not([class*="owl-"]) {
    width: 100%;
    border-radius: 0;
  }

  .videoclips-header {
    margin-bottom: 16px;
  }

  .videoclips-container {
    grid-template-columns: repeat(2, 185px);
    justify-content: center;
  }

  .videoclips-card {
    width: 100%;
    height: 205px;
  }
}

@media (max-width: 1203px) {
  @supports (-moz-appearance: none) {
    .videoclips-container {
      grid-template-columns: repeat(2, 230px);
    }

    .videoclips-card {
      height: 240px;
    }
  }
}