/* ==========================================================================
   VIDEO CARD — S1 (Borderless)
   Scope: .new-vcard (na .video-block v nové šabloně)
   Samostatný soubor — načítá se podmíněně při ?testcache
   ========================================================================== */


/* --- Card container --- */

.video-block.new-vcard {
  --vc-bg: #000;
  --vc-radius: 12px;
  --vc-avatar: 42px;
  --vc-overlap: 24px;

  background: transparent;
  border-radius: 0;
  border: none;
  margin: 6px 5px;
  height: calc(100% - 12px);
}


/* --- Thumb --- */

.new-vcard .thumb {
  border-radius: var(--vc-radius);
}

.new-vcard .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 3;
  pointer-events: none;
}


/* --- Tag ikony (vlajky) — kulaté, bottom-left, vedle sebe --- */

.new-vcard .tagiconclass {
  display: flex;
  flex-direction: row;
  gap: 3px;
  bottom: 8px;
  left: 8px;
  margin: 0;
  padding: 0;
}

.new-vcard img.vid-tag-info-tag-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.5);
  outline: none;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  display: block;
}


/* --- Playlist — kulatý button, top-right --- */

.new-vcard .add-to-playlist {
  position: absolute;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 8px;
  top: 8px;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-out, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.new-vcard .add-to-playlist::before {
  content: '+';
  transform: translateY(0.5px);
}
@supports not (backdrop-filter: blur(1px)) {
  .new-vcard .add-to-playlist {
    background: rgba(255,255,255,0.18);
  }
}

@media (hover: hover) {
  .new-vcard:hover .add-to-playlist {
    opacity: 1;
  }

  .new-vcard .add-to-playlist:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    color: #fff;
  }

  .new-vcard:hover .infos a.title,
  .new-vcard:hover .infos a.title-link {
    color: #bbb;
  }
  .new-vcard:has(.actor-avatars:hover) .infos a.title,
  .new-vcard:has(.actor-avatars:hover) .infos a.title-link {
    color: inherit;
  }
}


/* --- Duration pill --- */

.new-vcard .duration {
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 6px;
  font-weight: 500;
  background: rgba(0,0,0,0.65);
  color: #ddd;
}


/* --- TOP badge — gradient --- */

.new-vcard .newclass.topicon {
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #fff) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  opacity: 1;
}

.new-vcard .newclass.topicon::before {
  display: none;
}


/* --- Hide overlays on hover (synced with add-to-playlist appearing) --- */
.new-vcard .duration,
.new-vcard .newclass.topicon,
.new-vcard .tagiconclass {
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .new-vcard:hover .duration,
  .new-vcard:hover .newclass.topicon,
  .new-vcard:hover .tagiconclass {
    opacity: 0;
    pointer-events: none;
  }
}

/* --- Debounce bar --- */

.new-vcard .video-debounce-bar {
  border-radius: 0 0 var(--vc-radius) var(--vc-radius);
}


/* --- Infos sekce --- */

.new-vcard .infos {
  padding: 8px 2px 6px;
}

.new-vcard .infos-row {
  padding: 0;
  gap: 8px;
}


/* --- Titulek --- */

.new-vcard .infos a.title,
.new-vcard .infos a.title-link {
  font-size: 14px;
  min-height: 36px;
  line-height: 20px;
  color: #ececec;
  font-weight: 400;
}


/* --- Views + rating --- */

.new-vcard .infos .video-datas {
  padding: 4px 0 0;
  font-size: 13px;
  gap: 8px;
}

.new-vcard .views-number {
  color: #888;
  font-weight: 500;
}

/* Rating — jednobarevný jako views */
.new-vcard .rating,
.new-vcard .rating-nolike {
  color: #888;
  font-weight: 500;
  opacity: 1;
}


/* --- Actor avatary --- */

.new-vcard .actor-avatars {
  --a: var(--vc-avatar);
  --o: var(--vc-overlap);
}

.new-vcard .actor-avatars__badge {
  background: rgba(35,35,35,0.95);
}

@media (hover: hover) and (pointer: fine) {
  .new-vcard .actor-avatars:hover .actor-avatar-link--rank-1 {
    border-color: #ddd;
  }
}


/* ==========================================================================
   MOBILE (max-width: 767.98px)
   ========================================================================== */

@media (max-width: 767.98px) {
  .video-block.new-vcard {
    --vc-avatar: 38px;
    --vc-overlap: 22px;
    margin: 4px;
    height: calc(100% - 8px);
  }

  .new-vcard .infos {
    padding: 6px 2px 10px;
  }

  .new-vcard .infos a.title,
  .new-vcard .infos a.title-link {
    font-size: 13px;
    min-height: 32px;
    line-height: 16px;
  }

  .new-vcard .infos .video-datas {
    font-size: 11px;
    gap: 6px;
    padding: 3px 0 0;
  }

  .new-vcard img.vid-tag-info-tag-ico {
    width: 18px;
    height: 18px;
  }

  .new-vcard .add-to-playlist {
    width: 32px;
    height: 32px;
    font-size: 18px;
    right: 6px;
    top: 6px;
  }

  .new-vcard .duration {
    font-size: 10px;
    padding: 1px 5px;
  }
}


/* Small phones */
@media (max-width: 440px) {
  .new-vcard .add-to-playlist {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .new-vcard img.vid-tag-info-tag-ico {
    width: 16px;
    height: 16px;
  }
}
