.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.shorts-section {
  overflow-x: hidden;
  /* Prevent section from causing horizontal scroll */
  width: 100%;
}

/* Shorts Container */
.shorts-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #555 #000;
  /* Snap scrolling for one-by-one sliding */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

.shorts-container::-webkit-scrollbar {
  height: 8px;
}

.shorts-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

/* Short Card */
.short-card {
  position: relative;
  min-width: 180px;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #111;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
  /* Snap each card to viewport start */
}

.short-card:hover {
  transform: scale(1.05);
}

.short-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* --- FIXED SHORT INFO (TOP BLACK OVERLAY) --- */
.short-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
  z-index: 20;
}

.short-info h4 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.short-info p {
  font-size: 0.8rem;
  margin: 4px 0 0;
  color: #fff;
  opacity: 0.85;
}

/* Swiper Buttons */
.shorts-swiper-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 50px;
  /* Space for arrows */
  width: 100%;
  overflow-x: hidden;
  /* Prevent wrapper from causing page overflow */
}

/* Individual card navigation arrows */
.short-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 1;
  /* Always visible */
}

.short-card-arrow:hover {
  background: #fff;
  color: #de0000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(222, 0, 0, 0.3);
}

.short-card-arrow-left {
  left: 10px;
}

.short-card-arrow-right {
  right: 10px;
}

/* Keep main swiper buttons for overall navigation */
.shorts-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: 0.3s ease;
  z-index: 10;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.shorts-swiper-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.shorts-swiper-btn-left {
  left: 0;
}

.shorts-swiper-btn-right {
  right: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .shorts-section {
    padding: 20px 0;
  }

  .shorts-swiper-wrapper {
    padding: 0 20px;
    /* Less padding on tablets */
  }

  .short-card {
    min-width: 200px;
    height: 350px;
  }

  .shorts-swiper-btn {
    font-size: 1.5rem;
    padding: 6px 10px;
  }
}

@media (max-width: 640px) {
  .shorts-swiper-wrapper {
    padding: 0 10px;
    /* Minimal padding on mobile */
  }

  .shorts-container {
    gap: 12px;
    padding: 0 5px;
  }

  .short-card {
    min-width: calc(100vw - 40px);
    /* Almost full screen width */
    max-width: 400px;
    height: 500px;
    /* Taller for mobile portrait */
    margin: 0 auto;
  }

  /* Hide arrows on very small screens, use swipe only */
  .shorts-swiper-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .short-card {
    min-width: calc(100vw - 30px);
    height: 550px;
  }

  .shorts-container {
    gap: 10px;
  }
}