
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 35px 15px;
  background: #f1f0ff;
  font-family: Arial, sans-serif;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.popcorn {
  font-size: 65px;
}

h1 {
  margin: 10px 0;
  font-size: 48px;
  color: #7764d8;
}

.subtitle {
  font-size: 20px;
  color: #7567a5;
}

.welcome {
  margin-top: 30px;
  padding: 30px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(70, 50, 120, 0.1);
}

.welcome h2 {
  color: #7764d8;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 25px;
  background: #171717;
  border-radius: 14px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-label {
  margin-top: 20px;
  color: #7764d8;
  font-weight: bold;
}

#video-info {
  overflow-wrap: anywhere;
}

.status {
  margin-top: 25px;
  color: #31a36c;
  font-weight: bold;
}

@media (max-width: 600px) {
  .welcome {
    padding: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .subtitle {
    font-size: 16px;
  }
}
/* ===================================
   Waggle Discord Login UI
=================================== */

.site-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 28px;
  box-sizing: border-box;
}

.auth-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Discord login button */

.discord-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  background: #5865f2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.discord-login-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

/* Logged-in profile */

.discord-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f3edff;
  border: 1px solid #e2d6ff;
  border-radius: 16px;
}

.discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

#discord-username {
  font-size: 14px;
  font-weight: 700;
  color: #594681;
}

/* Logout button */

.discord-logout-btn {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d9c9f5;
  border-radius: 10px;
  color: #765da8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.discord-logout-btn:hover {
  background: #e9ddff;
}

/* Keep hidden elements invisible */

.discord-login-btn[hidden],
.discord-profile[hidden],
.discord-avatar[hidden] {
  display: none !important;
}

/* Mobile layout */

@media (max-width: 600px) {
  .site-header {
    padding: 14px 16px;
  }

  .discord-login-btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .discord-profile {
    gap: 8px;
    padding: 6px 8px;
  }

  .discord-avatar {
    width: 30px;
    height: 30px;
  }

  #discord-username {
    font-size: 12px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-logout-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
}
/* Watch ready system */

.watch-ready-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 18px;
  background: #f4efff;
  border: 1px solid #e2d7ff;
  text-align: center;
}

.watch-ready-panel[hidden] {
  display: none;
}

.watch-ready-panel h3 {
  margin: 0 0 12px;
  color: #6c50a3;
  font-size: 20px;
}

#ready-count {
  margin: 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #5c428d;
}

#ready-message {
  margin: 10px 0 18px;
  font-size: 14px;
  color: #82749a;
}

.watch-ready-button {
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  background: #9575cd;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.watch-ready-button:hover:not(:disabled) {
  background: #7e57c2;
}

.watch-ready-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.watch-ready-button.is-ready {
  background: #65b79b;
}

.watch-ready-button.is-ready:hover {
  background: #4a9d81;
}