* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 10px;
}

.container {
  width: 100%;
  max-width: 900px;
  background: #1a1a1a;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

h1 { text-align: center; color: #00b4d8; font-size: 2rem; margin-bottom: 40px; }
h2 { color: #90e0ef; margin-bottom: 15px; }

.card {
  background: #242424;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }

label { display: block; margin: 10px 0 6px; font-weight: 600; }
input[type="file"], select, input[type="time"] {
  width: 100%; padding: 10px; border-radius: 8px; border: none; background: #333; color: #fff; font-size: 14px;
}
input[type="file"]::-webkit-file-upload-button {
  background: #00b4d8; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; transition: 0.3s;
}
input[type="file"]::-webkit-file-upload-button:hover { background: #0077b6; }

.time-group { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.time-group input { flex: 1; min-width: 120px; }

.current-file, .no-file { margin-top: 10px; font-size: 14px; }
audio { width: 100%; margin-top: 10px; border-radius: 6px; }

.btn {
  display: block; width: 100%; padding: 14px; background: #00b4d8; color: #fff;
  font-weight: 600; font-size: 16px; border: none; border-radius: 10px; margin-top: 30px; cursor: pointer; transition: background 0.3s;
}
.btn:hover { background: #0077b6; }

hr { border: none; border-top: 1px solid #333; margin: 40px 0; }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.4s ease; z-index: 9999;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-content {
  background: #1e1e1e; border-radius: 20px; padding: 40px;
  width: 90%; max-width: 420px; text-align: center; position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.popup-content img { max-width: 150px; margin-bottom: 20px; }

.popup-close {
  position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer;
  transition: color 0.3s;
}
.popup-close:hover { color: #00b4d8; }

/* ===== PROGRESSO ===== */
.progress-container {
  width: 100%; height: 10px; background: #333; border-radius: 10px; margin: 15px 0;
  overflow: hidden;
}
.progress-bar {
  height: 10px; width: 0%; background: linear-gradient(90deg, #007bff, #00d4ff);
  transition: width 1s linear;
}

.tempo-texto {
  font-size: 14px; color: #ccc; margin-top: 10px;
}

/* ===== Ticker horizontal ===== */
.ticker-wrapper { position: relative; width: 100%; overflow: hidden; height: 24px; margin-top: 10px; display: flex; }
.ticker { display: inline-block; white-space: nowrap; padding-right: 50px; color: #90e0ef; font-size: 13px; animation: scroll 20s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

@media (max-width: 600px) {
  .container { padding: 20px; }
  .card { padding: 15px; }
  h1 { font-size: 1.5rem; }
}
