* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #6699cc;
  overflow: hidden;
  height: 100vh;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 180px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  transition: background 0.3s;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 30%,
    #00d4ff 50%,
    transparent 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: sweep 4s linear infinite;
  z-index: 1001;
  filter: drop-shadow(0 0 6px #00d4ff);
}
@keyframes sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex: 1;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
  color: #4d88bb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-left a:hover, .nav-right a:hover { color: #00d4ff; text-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }

.live-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 4px;
  color: #ff0040;
  text-shadow: 0 0 8px rgba(255, 0, 64, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}
.live-badge.live { opacity: 1; }
.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff0040;
  margin-right: 3px;
  vertical-align: middle;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #111;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1002;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.5px;
}
.dropdown-menu a:hover { background: rgba(0, 212, 255, 0.08); }

.logo {
  height: 100%;
  width: auto;
  display: block;
  position: relative;
  left: -30px;
  object-fit: contain;
  padding: 4px 0;
}

.nav-right svg { font-size: 18px; margin-right: 4px; }

/* Viewer */
.viewer {
  position: fixed;
  top: 180px; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
}

.viewer-content {
  width: min(75vw, 900px);
  height: min(calc(75vw * 9 / 16), calc((100vh - 180px) * 0.75));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 212, 255, 0.1);
}

.viewer-content iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.viewer-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-logo {
  max-width: min(60vw, 400px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
  opacity: 0.4;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  font-size: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.arrow:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

.viewer-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #4d88bb;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: rgba(10, 10, 10, 0.7);
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

@media (max-width: 768px) {
  .nav-right a span { display: none; }
  .arrow { width: 40px; height: 40px; font-size: 18px; }
  .arrow-left { left: 10px; }
  .arrow-right { right: 10px; }
  .viewer { top: 180px; }
}
html.mobile header {
  flex-direction: column;
  height: auto;
  padding: 10px 12px;
  gap: 4px;
}
html.mobile .nav-left, html.mobile .nav-right {
  flex: none;
  width: 100%;
  justify-content: center;
  gap: 16px;
}
html.mobile .nav-right { justify-content: center; }
html.mobile .nav-left a, html.mobile .nav-right a { font-size: 12px; letter-spacing: 0.5px; }
html.mobile .logo { height: 80px; left: auto; padding: 0; }
html.mobile .nav-right a span { display: none; }
html.mobile .nav-right svg { font-size: 16px; margin: 0; }
html.mobile header::after { height: 3px; }
html.mobile .viewer { top: calc(60px + 60px + 6px); }
