/* ============================================
   Junhua Video Browse Section
   ============================================ */

.junhua-video-browse-section {
  padding: var(--spacing-9xl) 0;
  background-color: var(--bg-color-white);
}

.junhua-video-browse-container {
}

/* ============================================
   Header Area
   ============================================ */

.junhua-video-browse-header {
  text-align: center;
  margin-bottom: var(--spacing-7xl);
}

.junhua-video-browse-title {
  font-family: var(--font-family);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  margin: 0 0 var(--spacing-4xl) 0;
}

.junhua-video-browse-title-highlight {
  color: var(--primary-color, #379487);
}

.junhua-video-browse-subtitle {
  font-family: var(--font-family);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  color: var(--text-color-strong);
  margin: 0;
}

/* ============================================
   Content Area
   ============================================ */

.junhua-video-browse-content {
  display: flex;
  gap: var(--spacing-7xl);
  align-items: flex-start;
}

/* ============================================
   Video Wrapper (Left Side)
   ============================================ */

.junhua-video-browse-video-wrapper {
  flex-shrink: 0;
  width: 28.8rem;
}

.junhua-video-browse-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 22.1rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.junhua-video-browse-video-container:hover {
  transform: scale(1.02);
}

.junhua-video-browse-video-image {
  width: 100%;
  height: 100%;
}

.junhua-video-browse-video-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Overlay */
.junhua-video-browse-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Play Button */
.junhua-video-browse-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  pointer-events: none;
}

.junhua-video-browse-video-container:hover .junhua-video-browse-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.junhua-video-browse-play-button svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* ============================================
   Text Wrapper (Right Side)
   ============================================ */

.junhua-video-browse-text-wrapper {
  flex: 1;
  max-width: 43.7rem;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4xl);
}

.junhua-video-browse-text-item {
  width: 100%;
}

.junhua-video-browse-text-content {
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-color-tertiary);
  margin: 0;
}

/* ============================================
   Video Modal
   ============================================ */

.junhua-video-browse-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.junhua-video-browse-modal[hidden] {
  display: none;
}

.junhua-video-browse-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
}

.junhua-video-browse-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-color-white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-base);
  z-index: 10000;
}

.junhua-video-browse-modal-close:hover {
  opacity: 0.7;
}

.junhua-video-browse-modal-content {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.junhua-video-browse-modal-content iframe,
.junhua-video-browse-modal-content video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Responsive Design
   ============================================ */

@media screen and (max-width: 1024px) {
  .junhua-video-browse-content {
    flex-wrap: wrap;
  }
  .junhua-video-browse-video-wrapper {
    width: 100%;
    flex-shrink: 0;
  }
  .junhua-video-browse-text-wrapper {
    max-width: 100%;
    flex-shrink: 0;
  }
}
/* Small Mobile */
@media (max-width: 576px) {
  .junhua-video-browse-video-container {
    height: 250px;
  }

  .junhua-video-browse-play-button {
    width: 50px;
    height: 50px;
  }
}
