* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

video.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.text-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6em;
  color: #fff;
  user-select: none;
}

.title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.7rem, 8.1vw, 6.75rem);
  font-weight: 400;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.05em;
  line-height: 1;
  font-feature-settings: "vkna" 1, "vpal" 1;
  text-align: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding: 0.25em 0;
}

.subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  font-weight: 200;
  letter-spacing: 0.6em;
  writing-mode: horizontal-tb;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  opacity: 0.75;
}

.weather {
  position: fixed;
  bottom: 28px;
  left: 28px;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
  z-index: 10;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  user-select: none;
}

.weather .city {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 1;
  color: #fff;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.weather .datetime {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  opacity: 1;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.7;
}

.weather .temp {
  font-size: 1.6rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.weather .divider {
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 6px 0;
}

.weather .row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather .row svg {
  width: 11px;
  height: 11px;
  fill: #fff;
  flex-shrink: 0;
}

.nav {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  user-select: none;
}

.nav-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px;
}

.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, transform 0.3s;
}

.nav-dot.active {
  background: #fff;
  transform: scale(1.5);
}

.nav-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: scale(1.1);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.credit {
  position: fixed;
  top: 24px;
  right: 28px;
  text-align: right;
  color: #fff;
  z-index: 10;
  user-select: none;
  line-height: 1.5;
}

.credit .credit-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.credit .credit-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.35em;
  opacity: 0.7;
}

.sound-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  z-index: 10;
  padding: 0;
}

.sound-btn:hover {
  opacity: 1;
}

.sound-btn svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

@media (max-width: 768px) {
  .title {
    font-size: clamp(5.4rem, 16.2vw, 13.5rem);
  }
  .weather {
    bottom: 14px;
    left: 14px;
  }
  .nav {
    bottom: 14px;
    right: 14px;
  }
  .credit {
    top: 12px;
    right: 14px;
  }
  .sound-btn {
    top: 12px;
    left: 12px;
  }
  .text-container {
    gap: 0.8em;
  }
}
