:root {
  --bg: #f5eee6;
  --card: rgba(255,255,255,.88);
  --text: #2f241f;
  --muted: #7d6a5d;
  --accent: #7b4f2f;
  --accent-2: #b47a4c;
  --border: rgba(88,57,37,.12);
  --shadow: 0 18px 50px rgba(75,50,34,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180,122,76,.18), transparent 36%),
    linear-gradient(180deg, #f8f3ed 0%, #efe5db 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }

a { color: inherit; }

.app-shell { width: min(1120px, 92%); margin: 0 auto; padding: 28px 0 40px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero { padding: 30px; text-align: center; margin-bottom: 22px; }
.brand-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #2f241f;
  color: white;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .08em;
  font-weight: 800;
}
.hero h1 { margin: 16px 0 6px; font-family: Georgia, serif; font-size: clamp(2.2rem, 7vw, 4.2rem); }
.tagline { margin: 0; color: var(--muted); font-size: 1.05rem; }

.player { padding: 30px; display: grid; justify-items: center; text-align: center; }
.cover-wrap { position: relative; }
.cover {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(145deg, #3d271d, #8f5d38);
  color: #fff8f0;
  box-shadow: 0 18px 42px rgba(73,45,27,.26);
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
}
.live-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7473c;
  border: 4px solid white;
  box-shadow: 0 0 0 0 rgba(231,71,60,.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(231,71,60,.55); }
  70% { box-shadow: 0 0 0 12px rgba(231,71,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,71,60,0); }
}
.now-playing { margin: 24px 0 16px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .1em; }
.now-playing h2 { margin: 8px 0 4px; font-size: 1.7rem; }
.now-playing p { margin: 0; color: var(--muted); }
.controls { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; }
.primary-btn, .secondary-btn, .icon-btn {
  border: none;
  border-radius: 16px;
  transition: transform .15s ease, opacity .15s ease;
}
.primary-btn:hover, .secondary-btn:hover, .icon-btn:hover { transform: translateY(-1px); }
.primary-btn {
  background: var(--accent);
  color: white;
  padding: 15px 24px;
  font-weight: 800;
  min-width: 190px;
}
.icon-btn { width: 52px; height: 52px; background: #f0e5da; }
.volume-row { margin-top: 18px; display: flex; align-items: center; gap: 14px; width: min(460px, 100%); color: var(--muted); }
.volume-row input { width: 100%; accent-color: var(--accent); }
.status { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.grid { display: grid; gap: 22px; margin-top: 22px; }
.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.info-card, .actions-card, .admin-note { padding: 24px; }
.info-card h3, .actions-card h3, .admin-note h3 { margin-top: 0; }
.schedule-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-item span { color: var(--muted); white-space: nowrap; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.recent-list li:last-child { border-bottom: 0; }
.recent-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f0e5da; font-size: .8rem; font-weight: 800; }
.recent-list strong, .recent-list small { display: block; }
.recent-list small { color: var(--muted); margin-top: 3px; }
.actions-card { margin-top: 22px; text-align: center; }
.actions-card p { color: var(--muted); }
.action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.secondary-btn { background: #efe3d7; color: var(--text); padding: 13px 18px; font-weight: 800; }
.link-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.admin-note { margin-top: 22px; }
.admin-note p { color: var(--muted); }
pre { background: #2f241f; color: #fff8f0; padding: 14px; border-radius: 16px; overflow: auto; }
footer { text-align: center; color: var(--muted); padding: 26px 10px 0; font-size: .9rem; }

@media (max-width: 760px) {
  .app-shell { width: min(94%, 620px); padding-top: 14px; }
  .hero, .player, .info-card, .actions-card, .admin-note { border-radius: 22px; }
  .two-col { grid-template-columns: 1fr; }
  .cover { width: 150px; height: 150px; }
  .controls { flex-direction: row; }
}

/* Versão 2: player de arquivos hospedados */
.progress-wrap { width: min(560px, 100%); margin: 2px 0 14px; }
.progress { width: 100%; accent-color: var(--accent); cursor: pointer; }
.time-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.transport-controls { margin-top: 4px; }
.utility-controls { margin-top: 12px; }
.small-btn { border: 1px solid var(--border); background: #f7efe7; color: var(--text); padding: 9px 12px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.small-btn.active { background: #2f241f; color: white; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-heading h3 { margin-bottom: 12px; }
.pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #f0e5da; color: var(--muted); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.notice-card { margin-top: 22px; padding: 24px; }
.notice-card h3 { margin-top: 0; }
.notice-card p { color: var(--muted); margin-bottom: 0; line-height: 1.6; }
