/* ===== Global ===== */
body {
  margin: 0;
  font-family: Garamond, "Times New Roman", Times, serif;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: #fff;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #111;
  padding: 10px 20px;
  border-bottom: 1px solid #333;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 10;
}

.logo img {
  height: 40px;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
}

.nav-links {
  display: none;
  flex-direction: column;

  position: absolute;
  top: 60px;
  right: 20px;

  background: #111;
  border: 1px solid #333;
  border-radius: 8px;

  padding: 10px 0;
  min-width: 150px;
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  padding: 12px 20px;
  font-weight: bold;
}

/* ===== HERO VIDEO ===== */
.hero-video {
  position: relative;
  height: 80vh;
  overflow: hidden;
  line-height: 0;
}

.hero-video-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  z-index: 0;
}

.desktop-video {
  display: block;
  top: -2px;
  height: calc(100% + 2px);
  object-position: center 55%;
}

.mobile-video {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;
}

.hero-logo {
  width: 360px;
  max-width: 80%;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  background: #fff;
  color: #000;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  min-width: 110px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: #ccc;
}

/* ===== Cards ===== */
.card {
  background: #111;
  border: 1px solid #333;
  padding: 16px;
  border-radius: 10px;
}

.auth-status {
  margin-bottom: 20px;
}

.clerk-auth-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.clerk-auth-root {
  width: 100%;
  max-width: 420px;
}

.clerk-auth-root button {
  width: auto;
  margin-top: 0;
}

.auth-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-btn {
  background: #111;
  color: #fff;
  border: 1px solid #444;
  width: auto;
  margin: 0;
  padding: 8px 14px;
}

.secondary-btn:hover {
  background: #222;
}

/* ===== Inputs / Buttons (site controls only) ===== */
.admin-form input,
.admin-form select,
.admin-form button,
.card > input,
.card > select,
.card > button:not(.secondary-btn) {
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #333;
}

.admin-form input,
.admin-form select,
.card > input,
.card > select {
  width: 100%;
  background: #222;
  color: #fff;
  box-sizing: border-box;
}

.admin-form button,
.card > button:not(.secondary-btn) {
  background: #fff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 6px;
}

.admin-form button:hover,
.card > button:not(.secondary-btn):hover {
  background: #ccc;
}

/* ===== Admin Layout ===== */
.admin-form {
  max-width: 400px;
  margin-bottom: 30px;
}

.admin-form input,
.admin-form select,
.admin-form button {
  width: 100%;
  box-sizing: border-box;
}

/* GRID */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Inputs inside cards */
.card input,
.card select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

/* ===== Player List ===== */
.player-list {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
}

.player-list li {
  margin-bottom: 10px;
}

/* Controls row */
.player-controls {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.player-controls select,
.player-controls button {
  flex: 1;
  width: 50%;
  padding: 6px;
  font-size: 13px;
  margin: 0;
}

/* ===== Lists ===== */
ul, ol {
  text-align: left;
  display: inline-block;
  margin: 20px auto;
  padding-left: 20px;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {

  .container {
    padding: 15px;
  }

  .admin-form button,
  .card > button:not(.secondary-btn) {
    margin-bottom: 8px;
  }

  /* Hero tweaks */
  .hero-video {
    height: 70vh;
  }

  .desktop-video {
    display: none;
  }

  .mobile-video {
    display: block;
  }

  /* 🔥 LOGO WIDTH (source of truth) */
  .hero-logo {
    width: 90%;
    max-width: 280px;
    margin-bottom: 15px; /* slightly tighter */
  }

  /* 🔥 BUTTONS MATCH LOGO EXACTLY */
  .hero-buttons {
    flex-direction: column;
    width: 90%;
    max-width: 280px;   /* ✅ MATCHES LOGO */
    margin: 0 auto;
    gap: 12px;
  }

  .btn {
    width: 100%;
    font-size: 14px;
    padding: 11px;
    text-align: center;
  }

  .auth-header-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
