:root { --maroon: #6B0E23; --gold: #C9922A; --slide-duration: 5000; }

.slideshow-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px rgba(107,14,35,.18);
  margin: 0 auto 20px;
  max-width: 860px;
  user-select: none;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .65s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.slide-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 48px; background: #1a1a1a;
}
.slide-feat-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--gold); color: #fff;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.sl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; width: 54px; height: 54px; border-radius: 50%;
  font-size: 18px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
  backdrop-filter: blur(4px);
}
.sl-arrow:hover { background: rgba(107,14,35,.7); border-color: var(--maroon); transform: translateY(-50%) scale(1.08); }
.sl-prev { left: 20px; }
.sl-next { right: 20px; }
@media (max-width:600px) { .sl-arrow{width:38px;height:38px;font-size:14px;} .sl-prev{left:10px;} .sl-next{right:10px;} }

.slide-info-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding: 28px 20px 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.slide-title-wrap { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; }
.slide-title { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-counter { font-size: 12px; color: rgba(255,255,255,.55); white-space: nowrap; flex-shrink: 0; }

.sl-pause-btn {
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; width: 34px; height: 34px; border-radius: 50%;
  font-size: 12px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.sl-pause-btn:hover { background: rgba(255,255,255,.3); }

.sl-progress-track {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.2);
}
.sl-progress-bar {
  height: 100%; background: var(--gold); width: 0%;
  transition: width linear;
}

.thumb-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-behavior: smooth;
}
.thumb-strip::-webkit-scrollbar { height: 4px; }
.thumb-strip::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
.thumb-strip::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.thumb {
  flex-shrink: 0; width: 100px; height: 68px;
  border-radius: 8px; overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer; transition: border-color .2s, transform .2s;
  position: relative; background: #eee;
}
.thumb:hover { transform: translateY(-2px); border-color: rgba(107,14,35,.4); }
.thumb.active { border-color: var(--maroon); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 20px;
}
.thumb-feat {
  position: absolute; top: 4px; right: 4px;
  background: var(--gold); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
}

@media (max-width:800px) { .slideshow-stage { padding-bottom: 62%; } }
@media (max-width:480px) { .slideshow-stage { padding-bottom: 62%; } .thumb { width: 76px; height: 52px; } }
