/* 유튜브 섹션 스타일 */
.youtube-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.youtube-section .title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.youtube-swiper-container {
  position: relative;
}

.youtube-swiper {
  overflow: hidden;
}

.youtube-swiper .swiper-slide {
  height: auto;
}

/* 비디오 카드 */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 비율 */
  overflow: hidden;
  background: #000;
  display: block;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-play-icon {
  opacity: 1;
}

.video-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}

.video-title h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 42px;
}

.video-title:hover h3 {
  color: var(--primary);
}

.video-date {
  font-size: 13px;
  color: #888;
  margin-top: auto;
}

/* 네비게이션 버튼 */
.youtube-swiper-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

.youtube-swiper-nav .swiper-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  color: #333;
  font-size: 18px;
}

.youtube-swiper-nav .swiper-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.youtube-swiper-nav .youtube-prev {
  left: -22px;
}

.youtube-swiper-nav .youtube-next {
  right: -22px;
}

.youtube-swiper-nav .swiper-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* 로딩 & 에러 메시지 */
.youtube-loading,
.youtube-error {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

/* 반응형 */
@media (max-width: 1024px) {
  .youtube-swiper-nav .youtube-prev {
    left: -15px;
  }

  .youtube-swiper-nav .youtube-next {
    right: -15px;
  }
}

@media (max-width: 768px) {
  .youtube-section {
    padding: 60px 0;
  }

  .youtube-section .title-area {
    margin-bottom: 24px;
  }

  .youtube-swiper-nav .swiper-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .youtube-swiper-nav .youtube-prev {
    left: -10px;
  }

  .youtube-swiper-nav .youtube-next {
    right: -10px;
  }

  .video-play-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    opacity: 0.8;
  }

  .video-info {
    padding: 12px;
  }

  .video-title h3 {
    font-size: 14px;
  }

  .video-date {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .youtube-section {
    padding: 40px 0;
  }

  .youtube-swiper-nav .swiper-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .youtube-swiper-nav .youtube-prev {
    left: -5px;
  }

  .youtube-swiper-nav .youtube-next {
    right: -5px;
  }
}

/* 후기 카드 */
.review-box {
  text-decoration: none;
  display: flex !important;
  flex-direction: column;
  padding: 20px !important;
  min-height: 260px !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 2px 12px rgba(9, 15, 22, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.review-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(9, 15, 22, 0.13) !important;
}

/* 헤더: 사용자 정보 + 날짜 */
.review-box .review-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.review-box .review-header .review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.review-box .review-header .user-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #eee;
}

.review-box .review-header .review-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.review-box .review-header .review-user-info .name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}

.review-box .review-header .review-user-info .user-meta {
  font-size: 12px;
  color: #7d828b;
  white-space: nowrap;
}

.review-box .review-header .issue-date {
  font-size: 12px;
  color: #c0c7d0;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

/* 후기 본문 */
.review-box .post {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin-bottom: 16px;
}

/* 하단: 클럽 정보 */
.review-box .review-club-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}

.review-box .review-club-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  background-color: #e5e7eb;
  background-size: cover !important;
}

.review-box .review-club-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.review-box .review-club-arrow {
  font-size: 16px;
  color: #d1d5db;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.review-box:hover .review-club-arrow {
  color: var(--primary);
  transform: translateX(3px);
}