/* Design System & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Horizontal Top Ticker Banner */
.top-banner {
  position: fixed;
  top: 0;
  left: 40px;
  right: 40px;
  height: 35px;
  background: #000;
  border-bottom: 2px solid #00f0ff;
  z-index: 100;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-animation 25s linear infinite;
}

.ticker span {
  padding-right: 60px;
  color: #00f0ff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.8);
  letter-spacing: 1px;
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Side Vertical Ticker Banners */
.side-banner {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background: #000;
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.side-banner.left {
  left: 0;
  border-right: 2px solid #00f0ff;
}

.side-banner.right {
  right: 0;
  border-left: 2px solid #00f0ff;
}

.side-ticker-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-ticker {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  animation: side-ticker-animation 30s linear infinite;
}

.side-ticker span {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 50px 0;
  color: #00f0ff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.8);
  letter-spacing: 2px;
}

@keyframes side-ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

/* Page Section Layout wrappers */
.upper-section {
  position: relative;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95)), url('assets/concert_bg.png') no-repeat center top;
  background-size: cover;
  padding-top: 55px; /* Spacing for top vertical banner */
  padding-bottom: 25px;
}

.upper-content {
  margin-left: 60px;
  margin-right: 60px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lower-section {
  background: #000;
  width: 100%;
  padding: 25px 60px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Page Title */
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* Video Player Container */
.video-player-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  background: #000;
  margin-bottom: 25px;
}

/* Collage Grid */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  height: 100%;
  transition: filter 0.3s ease;
}

.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Specific Collage Positions */
.band-colorful {
  grid-column: 1;
  grid-row: 1;
}

.girls-white {
  grid-column: 1;
  grid-row: 2;
}

.girls-black {
  grid-column: 1;
  grid-row: 3;
}

.player-banner {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;
  cursor: pointer;
}

.player-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.player-banner:hover::after {
  background: rgba(0, 0, 0, 0.05);
}

.band-room {
  grid-column: 2;
  grid-row: 3;
}

.band-beach-2 {
  grid-column: 3;
  grid-row: 3;
}

.band-black {
  grid-column: 4;
  grid-row: 1;
}

.band-beach {
  grid-column: 4;
  grid-row: 2;
}

.female-singer {
  grid-column: 4;
  grid-row: 3;
}

/* Play Button Overlay */
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.play-icon {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 4px; /* offset slightly to center triangle visually */
}

.play-btn-overlay:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Hide play button in loading and modal states */
.video-player-container.state-loading #centerPlayBtn,
.video-player-container.state-modal #centerPlayBtn {
  display: none !important;
}

/* Loading Overlay State */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.spinner {
  width: 65px;
  height: 65px;
  border: 4px solid rgba(255, 0, 0, 0.1);
  border-top: 4px solid #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dark/Blur Overlay for Modal Background */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9); /* 0.9 opacity dark background overlay */
  backdrop-filter: blur(5px);
  display: none;
  z-index: 150;
}

/* Registration Modal Box */
.modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 550px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)), url('assets/ceremony_logo.png') no-repeat center center;
  background-size: cover;
  display: none;
  flex-direction: column;
  z-index: 160;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  font-family: 'Outfit', sans-serif;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-warning-text {
  text-align: left;
  line-height: 1.8;
  color: #fff;
  font-size: 14px;
  margin-bottom: 0;
  width: 100%;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.warning-highlight {
  color: #ff0000;
  font-weight: bold;
  font-size: 16px;
  margin-right: 5px;
}

.stream-highlight {
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 1px;
}

/* Modal Content Slider System */
.modal-content-area {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  margin-bottom: 25px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.modal-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.warning-view {
  opacity: 1;
  transform: translateX(0);
}

.modal-box.show-features .warning-view {
  opacity: 0;
  transform: translateX(100%);
}

.features-view {
  opacity: 0;
  transform: translateX(-100%);
}

.modal-box.show-features .features-view {
  opacity: 1;
  transform: translateX(0);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
}

.feature-row-text {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Modal Slanted Button */
.modal-redirect-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(115deg, #3a3a3a 32%, #e50914 32.2%);
  border: 1.5px solid #fff;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  height: 48px;
  padding: 0;
  font-size: 15px;
  font-weight: bold;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-redirect-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.modal-redirect-btn .btn-icon {
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.modal-redirect-btn .btn-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.modal-redirect-btn .btn-text {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 15px;
}

/* Player Action Buttons Row */
.player-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  width: 100%;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 175px;
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.action-icon {
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.action-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.action-text {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
}

/* Slanted Divider Background Trick */
.btn-red {
  background: linear-gradient(115deg, #252525 32%, #cc0030 32.2%);
  border: 1.5px solid #fff;
}

.btn-red:hover {
  box-shadow: 0 0 15px rgba(204, 0, 48, 0.5);
}

.btn-green {
  background: linear-gradient(115deg, #252525 32%, #009928 32.2%);
  border: 1.5px solid #fff;
}

.btn-green:hover {
  box-shadow: 0 0 15px rgba(0, 153, 40, 0.5);
}

/* Alert Warning Text */
.alert-message {
  color: #ff0000;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 600px;
  line-height: 1.5;
}

/* Promotion Title & Subtitle */
.promo-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.promo-subtitle {
  font-size: 14px;
  color: #eee;
  text-align: center;
  margin-bottom: 50px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 100%;
  max-width: 950px;
  margin-bottom: 60px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-box {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

.feature-item h3 {
  color: #ff0000;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.feature-item p {
  color: #aaa;
  font-size: 12px;
  line-height: 1.7;
}

/* Footer Section */
.footer {
  width: 100%;
  max-width: 950px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px 40px;
  text-align: center;
  font-size: 12px;
}

.footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links .separator {
  color: #333;
  user-select: none;
}

.footer .copyright {
  color: #666;
}

/* Responsive Scaling Rules */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 20px;
  }
  .top-banner {
    left: 30px;
    right: 30px;
  }
  .side-banner {
    width: 30px;
  }
  .upper-content, .lower-section {
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    left: 0;
    right: 0;
    width: 100%;
    height: 30px;
  }
  .side-banner {
    display: none;
  }
  .upper-content, .lower-section {
    margin-left: 0;
    margin-right: 0;
    padding: 15px;
  }
  .page-title {
    font-size: 20px;
  }
  .promo-title {
    font-size: 22px;
  }
  .modal-box {
    width: 85%;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-redirect-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .player-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .action-btn {
    width: 100%;
    max-width: 280px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Player Hover Controls Styling */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

/* Make it active on hover ONLY in initial state */
.video-player-container.state-initial:hover .player-controls {
  opacity: 1;
  pointer-events: auto;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease;
  border-radius: 4px;
}

.control-btn:hover {
  transform: scale(1.15);
  color: #ff003c; /* Mrs. Green Apple Ceremony signature red */
}

.control-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Live Badge */
.control-live {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0000;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.live-text {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* HD Badge */
.control-hd-badge {
  background: #e50914;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1.5px 5.5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  line-height: 1;
  user-select: none;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
}

