* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; color: #fff; font-family: "Microsoft YaHei", sans-serif; overflow: hidden; height: 100vh; }

.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 30px; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px); z-index: 100;
  transition: opacity 0.3s;
}

.top-bar.hidden { opacity: 0; pointer-events: none; }

.back-btn {
  color: #fff; text-decoration: none; padding: 8px 16px;
  background: rgba(255,255,255,0.1); border-radius: 6px;
  transition: background 0.2s;
}
.back-btn:hover { background: rgba(255,255,255,0.2); }

.movie-info { font-size: 1.1rem; font-weight: bold; }
.timer { font-family: monospace; font-size: 0.95rem; color: #aaa; }

.theater {
  position: relative; width: 100vw; height: 100vh;
  display: flex; justify-content: center; align-items: center;
}

#player {
  width: 100%; height: 100%; object-fit: contain;
  background: #000;
}

.waiting-screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex; justify-content: center; align-items: center;
  z-index: 50;
}

.waiting-screen .content { text-align: center; }
.big-emoji { font-size: 6rem; margin-bottom: 20px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.waiting-screen h2 { font-size: 2rem; margin-bottom: 10px; }
.waiting-screen p { color: #aaa; font-size: 1.1rem; }

.lock-toast {
  position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-100px);
  background: rgba(255, 107, 107, 0.9); color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-weight: bold; z-index: 200;
  transition: transform 0.3s;
}
.lock-toast.show { transform: translateX(-50%) translateY(0); }

.progress-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 4px; background: rgba(255,255,255,0.1); z-index: 100;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, #ff6b6b, #ffd93d);
  width: 0%; transition: width 1s linear;
}