/* BEGIN FEATURE SLIDESHOW DESIGN */
.home-showcase #home-slider {
  position: relative;
  width: 100%;
  max-width: 1320px;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: #11151c;
  box-shadow: 0 26px 65px rgba(0, 0, 0, .36);
  overflow: hidden;
}

.home-showcase #home-slider > #slide-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  color: #fff;
}

.home-showcase #home-slider #slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.home-showcase #home-slider .slide-caption {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 4.4vw, 62px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 32%, rgba(0, 0, 0, .18) 50%, rgba(0, 0, 0, .92) 100%);
  color: #fff;
}

.home-showcase #home-slider #slide-position {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  inset-inline-start: clamp(18px, 3vw, 34px);
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 100px;
  background: rgba(9, 13, 20, .64);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 700 12px/1.2 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: .12em;
}

.home-showcase #home-slider #slide-title {
  order: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: min(85%, 860px);
  margin: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(20px, 2.6vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  letter-spacing: -.025em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .6);
}

html[lang="ckb"] .home-showcase #home-slider #slide-title {
  font-family: 'NRT Web', Tahoma, sans-serif !important;
  letter-spacing: 0 !important;
  line-height: 1.55 !important;
}

.home-showcase #home-slider .slide-meta-row {
  order: 2;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  width: auto !important;
  max-width: 100%;
  gap: 9px !important;
  margin: 0;
}

.home-showcase #home-slider .slide-meta-row :is(.video-card-views, .video-channel-badge) {
  margin: 0 !important;
  flex-shrink: 0;
}

.home-showcase #home-slider .slide-play {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-inline-start: 4px;
  border: 3px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: #f3ce00;
  color: #111;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .48);
  font-size: 26px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-showcase #home-slider #slide-link:hover .slide-play,
.home-showcase #home-slider #slide-link:focus-visible .slide-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 38px rgba(243, 206, 0, .32);
}

.home-showcase #home-slider > :is(#slide-prev, #slide-next) {
  z-index: 3;
  top: 46%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(15, 20, 28, .68);
  backdrop-filter: blur(12px);
  color: #fff;
  font: 32px/1 system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.home-showcase #home-slider > #slide-prev { left: 22px; }
.home-showcase #home-slider > #slide-next { right: 22px; }

.home-showcase .slide-controls {
  max-width: 1320px;
  margin: 14px auto 0;
  gap: 12px;
}
.home-showcase #slide-dots {
  gap: 10px;
  padding: 5px 2px 10px;
  scrollbar-width: thin;
}
.home-showcase #slide-dots button,
.home-showcase #slide-dots button[aria-pressed="true"] {
  flex: 0 0 clamp(86px, 9vw, 124px);
  min-width: 86px;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #171c25;
  opacity: .7;
  overflow: hidden;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.home-showcase #slide-dots button:hover { opacity: 1; transform: translateY(-2px); }
.home-showcase #slide-dots button[aria-pressed="true"] {
  border-color: #f3ce00;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(243, 206, 0, .24);
}
.home-showcase #slide-dots button img { width: 100%; height: 100%; object-fit: cover; }
.home-showcase #slide-toggle {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
}

html[data-theme="light"] .home-showcase #home-slider { border-color: #d9dee5; box-shadow: 0 22px 48px rgba(27, 37, 49, .16); }
html[data-theme="light"] .home-showcase #slide-dots button { background: #dce2e9; }

@media (max-width: 700px) {
  .home-showcase #home-slider { border-radius: 15px; }
  .home-showcase #home-slider > #slide-link { aspect-ratio: 4 / 3; }
  .home-showcase #home-slider .slide-caption { gap: 6px; padding: 16px; }
  .home-showcase #home-slider #slide-position { top: 13px; inset-inline-start: 13px; padding: 6px 10px; font-size: 11px; }
  .home-showcase #home-slider #slide-title { max-width: 100%; font-size: clamp(16px, 4.2vw, 20px) !important; line-height: 1.35 !important; }
  html[lang="ckb"] .home-showcase #home-slider #slide-title { line-height: 1.5 !important; }
  .home-showcase #home-slider .slide-meta-row { gap: 5px !important; }
  .home-showcase #home-slider .slide-play { width: 49px; height: 49px; top: 40%; border-width: 2px; font-size: 19px; }
  .home-showcase #home-slider > :is(#slide-prev, #slide-next) { width: 36px; height: 36px; top: 40%; font-size: 26px; }
  .home-showcase #home-slider > #slide-prev { left: 9px; }
  .home-showcase #home-slider > #slide-next { right: 9px; }
  .home-showcase .slide-controls { gap: 8px; margin-top: 10px; }
  .home-showcase #slide-dots { gap: 7px; }
  .home-showcase #slide-dots button,
  .home-showcase #slide-dots button[aria-pressed="true"] { flex-basis: 82px; min-width: 82px; border-radius: 7px; }
  .home-showcase #slide-toggle { flex-basis: 40px; width: 40px; height: 40px; font-size: 17px; }
}

@media (max-width: 390px) {
  .home-showcase #home-slider > #slide-link { aspect-ratio: 1 / 1; }
  .home-showcase #home-slider .slide-meta-row :is(.video-card-views, .video-channel-badge) { transform: scale(.86); transform-origin: center start; }
}

@media (prefers-reduced-motion: reduce) {
  .home-showcase #home-slider .slide-play,
  .home-showcase #slide-dots button { transition: none; }
  .home-showcase #slide-dots button:hover { transform: none; }
}
/* END FEATURE SLIDESHOW DESIGN */
