
.hero-second {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 4em;
  width: 100vw;
  height: 100vh;       /* fallback */
  height: 100svh;
  padding: 2.5em;
  background: #000000;
  color: #e8e1c7;
  position: relative;
  overflow: hidden;
}

.hero-second {
  height: 100vh; /* keep consistent for desktop */
}
@supports (height: 100svh) {
  .hero-second {
    height: 100svh;
  }
}

.title-main-second {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #c8a951 !important;
  margin-bottom: 0.5rem;
}

/* Medium screens */
@media (min-width: 768px) {
  .title-main-second {
    font-size: 2.5rem;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .title-main-second {
    font-size: 4rem;
  }
}

.title-sub-second {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: #e8e1c7 !important;
  opacity: 0.8;
}

/* Medium screens */
@media (min-width: 768px) {
  .title-sub-second {
    font-size: 1.5rem;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .title-sub-second {
    font-size: 2rem;
  }
}

.hero-second h1 {
  position: relative;
  text-transform: uppercase;
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-weight: 700;
  font-size: 15vw;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #f9d774;
  text-shadow: 0 0 20px rgba(200, 169, 81, 0.5);
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}


.hero-copy-second {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero-copy-second p:first-child {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #f9d774;
  letter-spacing: 0.1em;
}

.hero-copy-second p:last-child {
  font-size: 1rem;
  opacity: 0.8;
  font-style: italic;
}

.intro-second {
  height: 100%;
  background: #000000;
  position: relative;
}

.video-container-desktop {
  position: relative;
  transform: translateY(-105%) scale(0.25);
  display: flex;
  flex-direction: column;
  gap: 2em;
  will-change: transform;
}

.video-container-desktop  p {
  position: relative;
  font-family: 'Cinzel', serif;
  font-size: 78px;
  font-weight: 500;
  color: #e8e1c7;
}

.video-container-mobile {
  display: none;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 1.5rem;
  background-color: #000;  z-index: 4;

  overflow: hidden;
  border-top: 4px solid rgba(249, 215, 116, 0.6);
  border-bottom: 4px solid rgba(249, 215, 116, 0.6);
}

.video-preview > * {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* instead of cover */
}


iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  pointer-events: none;
}

@media (max-width: 900px) {

  .hero-second {
    justify-content: flex-end;
    gap: 2em;
    padding: 1.5em;
    min-height: 10vh; /* Reduce height on mobile */
    height: auto;
  }

  .hero-second h1 {
    font-size: 19vw;
  }

  .video-container-desktop {
    display: none;
  }

  .video-container-mobile {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

}
.hero-second::before {
  content: "武";
  position: absolute;
  top: 20%;
  left: 10%;
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  color: rgba(200, 169, 81, 0.1);
  animation: float 15s infinite ease-in-out;
}

.hero-second::after {
  content: "力";
  position: absolute;
  bottom: 20%;
  right: 10%;
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  color: rgba(200, 169, 81, 0.1);
  animation: float 18s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.video-title {
  text-align: center;
  padding: 1em 0;
}

.video-title p:first-child {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 5vw, 4rem); /* Responsive font size */
  color: #c8a951;
  margin-bottom: 0.5rem;
}

.video-title p:last-child {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1rem, 3vw, 2rem); /* Responsive font size */
  color: #e8e1c7;
  opacity: 0.8;
}
.sound-toggle {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(249, 215, 116, 0.5);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 15;
}

.sound-toggle:hover {
  background: rgba(20, 20, 20, 0.85);   border-color: rgba(249, 215, 116, 0.9);
  transform: scale(1.05);
}

.sound-toggle img {
  position: absolute;
  width: 34px;
  height: 34px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

/* Tooltip */
.sound-tooltip {
  position: absolute;
  bottom: 120%;
  right: 50%;
  transform: translateX(50%);
  background: rgba(0, 0, 0, 0.75);
  color: #f9d774;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sound-toggle:hover .sound-tooltip {
  opacity: 1;
  transform: translateX(50%) translateY(-4px);
}

/* Optional: fade button in when video loads */
.video-wrapper .sound-toggle {
  animation: fadeInButton 1.2s ease 0.8s forwards;
  opacity: 0;
}

@keyframes fadeInButton {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Adjust sizing on mobile */
@media (max-width: 768px) {
  .sound-toggle {
    width: 44px;
    height: 44px;
  }
  .sound-toggle img {
    width: 20px;
    height: 20px;
  }
}
/* --- Center Play/Pause Toggle --- */
.video-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(249, 215, 116, 0.5);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 12;
}

/* Only show on hover */
.video-wrapper:hover .video-play-toggle {
  opacity: 1;
  pointer-events: auto;
}

/* Hover effect */
.video-play-toggle:hover {
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(249, 215, 116, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
}

/* --- Play Icon --- */
.video-play-toggle::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 22px solid #f9d774;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  transition: all 0.25s ease;
}

/* --- Pause Icon (active class) --- */
.video-play-toggle.paused::before {
  content: '';
  width: 18px;
  height: 22px;
  background: linear-gradient(to right, #f9d774 40%, transparent 40%),
              linear-gradient(to right, transparent 60%, #f9d774 60%);
  background-size: 18px 22px;
  background-repeat: no-repeat;
  border: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-play-toggle {
    width: 60px;
    height: 60px;
  }
  .video-play-toggle::before {
    border-left-width: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }
}

.play-button-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	pointer-events: none;
	#circle-play-b {
		cursor: pointer;
		pointer-events: auto;

		svg {
			width: 100px;
			height: 100px;
			fill: #fff;
			stroke: #fff;
			cursor: pointer;
			background-color: rgba(black, 0.2);
			border-radius: 50%;
			opacity: 0.9;
		}
	}
}
.play-button-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%; /* full height to center button */
  pointer-events: none; /* allow overlay to pass clicks except button */
}

/* Desktop play button */
#circle-play-b,
#circle-play-b2 {
  cursor: pointer;
  pointer-events: auto; /* enable clicks */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.4);
  opacity: 0.9;
  transition: all 0.3s ease;
}

#circle-play-b svg,
#circle-play-b2 svg {
  width: 80%;
  height: 80%;
  fill: #fff;
  stroke: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #circle-play-b2 {
    width: 80px;
    height: 80px;
  }
  #circle-play-b2 svg {
    width: 70%;
    height: 70%;
  }
}
