/* ======== BASE ======== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0a0f1a 0%, #04070d 100%);
  color: #e6e6e6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ======== HEADER ======== */
header {
  background: #0d1b2a;
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 2em;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #f1c40f;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.3s;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background: #1a365d;
  color: #f1c40f;
}

/* ======== GOOGLE LOGIN ======== */
.google-login-link {
  background: white;
  color: #1a73e8 !important;
  border: 1px solid #dadce0;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin: 0 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
}

.google-login-link:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.logout-link {
  background: #ea4335;
  color: white !important;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
  transition: background 0.2s ease;
}

.logout-link:hover {
  background: #c5221f;
}

/* ======== MAIN ======== */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}

/* ======== HOME ======== */
.home {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.home .titulo {
  font-size: 2rem;
  color: #f1c40f;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.home p {
  font-size: 1.1em;
  color: #b0c4de;
}

/* ======== TRAILER ======== */
.trailer {
  max-width: 800px;
  margin: 0 auto 2rem;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.trailer iframe,
.trailer video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ======== COUNTDOWN ======== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.countdown span {
  background: #1a2b4b;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 600;
  color: #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
}

/* ======== BUTTONS ======== */
.btn {
  background: linear-gradient(90deg, #007bff, #00aaff);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
  margin-top: 15px;
}

.btn:hover {
  background: linear-gradient(90deg, #005eff, #0099ff);
  transform: scale(1.05);
}

.btn.stream {
  background: #9146ff;
  color: #fff !important;
}

.btn.stream:hover {
  background: #772ce8;
}

/* ======== REGISTER FORM ======== */
.register {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 40px;
  text-align: left;
}

.register h2 {
  text-align: center;
  color: #f1c40f;
  margin-bottom: 25px;
}

.register form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register label {
  color: #b0c4de;
  font-size: 0.9em;
  margin-bottom: 3px;
}

.register input[type="text"],
.register input[type="file"] {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #1a2b4b;
  color: #fff;
  width: 100%;
}

.register input:focus {
  outline: 2px solid #f1c40f;
}

.register button {
  background: linear-gradient(90deg, #00aaff, #00cfff);
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.register button:hover {
  transform: scale(1.05);
}

/* ======== PLAYER BLOCK ======== */
.player-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.player-block h4 {
  margin: 0 0 10px 0;
  color: #f1c40f;
  font-size: 1.1em;
}

/* ======== EDIT PAGE ======== */
.edit {
  width: 50%;
  margin: 0 auto;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid #333;
}

.logo-section {
  text-align: center;
  margin: 20px 0;
}

.logo-preview {
  max-width: 150px;
  max-height: 150px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.player-block-edit {
  background: #2a2a2a;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.player-block-edit h4 {
  grid-column: 1 / -1;
  margin: 0 0 10px 0;
  color: #f1c40f;
  text-align: center;
  font-size: 1.1em;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.edit label {
  margin: 5px 0 3px;
  font-weight: bold;
  color: #b0c4de;
  font-size: 0.9em;
}

.edit input {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  background: #333;
  color: #eee;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.edit input:focus {
  border-color: #00aaff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.edit button[type="submit"] {
  background: linear-gradient(90deg, #00aaff, #00ccff);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin: 30px 0 20px;
  width: 100%;
  font-size: 1.1em;
  transition: transform 0.3s, box-shadow 0.3s;
}

.edit button[type="submit"]:hover {
  background: linear-gradient(90deg, #0099ff, #00aaff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
}


/* ======== RESPONSIVIDADE ======== */
@media (max-width: 768px) {
  .home {
    padding: 25px;
  }

  .home .titulo {
    font-size: 1.6em;
  }

  .trailer {
    max-width: 95%;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .edit {
    width: 90%;
  }
}
.site-footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 40px;
}
/* ======== FOOTER ======== */
footer {
  background: #0f1f2e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 10px;
  color: #bbb;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* espaço entre nav e texto */
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 5px;
}

.footer-nav a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateY(-2px);
}

footer p {
  margin: 0;
  font-size: 0.85em;
  color: #aaa;
}

