/* ===================================================
   HOST LÍDER STREAM — ESTILOS GLOBAIS
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary:    #6C63FF;
  --secondary:  #4A00E0;
  --accent:     #FFDE26;
  --danger:     #FF3B30;
  --text-light: #ffffff;
  --text-muted: rgba(255,255,255,0.65);
  --glass-bg:   rgba(255,255,255,0.10);
  --glass-blur: blur(14px);
  --glass-border: rgba(255,255,255,0.18);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.18);
  --shadow-md:  0 6px 28px rgba(0,0,0,0.24);
  --player-h:   64px;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* iOS fixed background fix */
@supports (-webkit-touch-callout: none) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: -1;
  }
  body { background: none; }
}

/* ---- GLASS CARD ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.navbar-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar-logo .logo-text h1 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.navbar-logo .logo-text p {
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
}

.navbar-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}

.navbar-links a:hover,
.navbar-links a.active { color: var(--accent); }

.navbar-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.navbar-social a {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  transition: color .2s, transform .2s;
}

.navbar-social a:hover { color: #fff; transform: scale(1.2); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  padding: 4px;
  z-index: 1001;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.1); }

.mobile-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu .social-row {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.mobile-menu .social-row a {
  width: auto;
  font-size: 22px;
  padding: 0;
}

/* ---- PAGE WRAPPER ---- */
.page-wrapper {
  padding-top: calc(60px + 20px);
  padding-bottom: calc(var(--player-h) + 20px);
  min-height: 100vh;
}

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

/* ---- SECTION HEADING ---- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i { color: var(--accent); }

/* ---- CARD ---- */
.card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-live {
  background: var(--danger);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%,100% { opacity:1; }
  50% { opacity:.65; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s;
  text-decoration: none;
}

.btn:active { transform: scale(.95); }

.btn-primary {
  background: var(--accent);
  color: #222;
  box-shadow: 0 3px 14px rgba(255,222,38,.35);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(255,222,38,.5); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
}

.btn-outline:hover { border-color: #fff; }

/* ---- PLAYER BAR ---- */
#player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  z-index: 1000;
  background: rgba(15,10,40,0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
}

#player-bar .player-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

#player-bar .player-info {
  flex: 1;
  min-width: 0;
}

#player-bar .player-info .track-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-bar .player-info .artist-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--danger);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform .15s;
  box-shadow: 0 2px 10px rgba(255,59,48,.45);
}

.play-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
}

.play-btn svg { width: 18px; height: 18px; fill: #fff; }
.play-btn:active { transform: scale(.92); }

.play-btn.playing { background: #FF3B30; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 480px) {
  .volume-slider { display: none; }
  #player-bar { gap: 10px; padding: 0 12px; }
}

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .navbar-links, .navbar-social { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn .4s ease both; }

/* ---- PAGE TRANSITION ---- */
.page-content { animation: fadeIn .35s ease; }

/* ---- PWA BANNER ---- */
#pwa-banner {
  position: fixed;
  bottom: calc(var(--player-h) + 10px);
  left: 10px; right: 10px;
  background: rgba(15,10,40,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 990;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
}

#pwa-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#pwa-banner img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

#pwa-banner .pwa-text { flex: 1; }
#pwa-banner .pwa-text strong { font-size: 13px; display: block; }
#pwa-banner .pwa-text small { font-size: 11px; color: var(--text-muted); }

#pwa-banner .pwa-actions { display: flex; gap: 8px; }

#pwa-banner .pwa-install {
  background: var(--accent);
  color: #222;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#pwa-banner .pwa-close {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ---- LOADING SPINNER ---- */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- HERO (Home) ---- */
.hero {
  text-align: center;
  padding: 32px 16px 20px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-md);
  display: block;
}

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---- NOW PLAYING CARD ---- */
.now-playing-card {
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.now-playing-cover {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  animation: rotate-cover 25s linear infinite;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.1);
}

.now-playing-cover.paused { animation-play-state: paused; }

@keyframes rotate-cover { to { transform: rotate(360deg); } }

/* ---- TOP MUSICAS ---- */
.music-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.music-item:hover { background: rgba(255,255,255,0.07); }

.music-rank {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.music-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.music-info { flex: 1; min-width: 0; }
.music-info .title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-info .artist { font-size: 11px; color: var(--text-muted); }

/* ---- TEAM ---- */
.team-card {
  padding: 16px;
  text-align: center;
}

.team-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid rgba(255,255,255,0.2);
}

.team-card .name { font-size: 13px; font-weight: 700; }
.team-card .role { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---- PROGRAMAÇÃO ---- */
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background .2s;
}

.schedule-item.on-air {
  background: rgba(255,222,38,0.12);
  border-left-color: var(--accent);
}

.schedule-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 70px;
}

.schedule-info .prog-name { font-size: 14px; font-weight: 600; }
.schedule-info .prog-host { font-size: 11px; color: var(--text-muted); }

/* ---- NOTICIAS ---- */
.news-card { overflow: hidden; }
.news-card img { width: 100%; height: 140px; object-fit: cover; }
.news-card .news-body { padding: 12px; }
.news-card .news-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.news-card .news-title { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.news-card .news-date { font-size: 11px; color: var(--text-muted); }

/* ---- PROMOÇÕES ---- */
.promo-card { overflow: hidden; }
.promo-card img { width: 100%; height: 160px; object-fit: cover; }
.promo-card .promo-body { padding: 14px; }
.promo-card .promo-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.promo-card .promo-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

/* ---- CONTATO ---- */
.contact-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border .2s;
  -webkit-appearance: none;
}

.contact-input::placeholder { color: rgba(255,255,255,0.45); }
.contact-input:focus { border-color: rgba(255,255,255,0.5); }

textarea.contact-input { resize: vertical; min-height: 100px; }

/* ---- ADMIN ---- */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 20px;
}

.admin-login-box {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.admin-login-box img { width: 64px; border-radius: 14px; margin-bottom: 12px; }
.admin-login-box h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.admin-login-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.admin-input-group { margin-bottom: 14px; text-align: left; }
.admin-input-group label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 6px; color: var(--text-muted); }

.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 230px;
  background: rgba(10,8,28,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,0.08);
  z-index: 800;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar .admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}

.admin-sidebar .admin-brand img { width: 36px; border-radius: 8px; }
.admin-sidebar .admin-brand span { font-size: 14px; font-weight: 700; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background .2s, color .2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(108,99,255,0.25);
  color: #fff;
}

.admin-nav-item.active { border-left: 3px solid var(--accent); }
.admin-nav-item i { width: 18px; text-align: center; }

.admin-main {
  margin-left: 230px;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(135deg, #1a1040 0%, #0d0820 100%);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-topbar h1 { font-size: 22px; font-weight: 700; }

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.stat-card .stat-value { font-size: 28px; font-weight: 800; }
.stat-card .stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,0.55);
}

.admin-table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-table tr:hover td { background: rgba(255,255,255,0.03); }

.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn .3s ease; }

@media (max-width: 768px) {
  .admin-sidebar { width: 100%; height: 56px; flex-direction: row; padding: 0 12px; align-items: center; bottom: auto; overflow-x: auto; gap: 2px; }
  .admin-sidebar .admin-brand { display: none; }
  .admin-main { margin-left: 0; padding: 14px; padding-top: 70px; }
  .admin-nav-item { padding: 8px 10px; font-size: 11px; flex-direction: column; gap: 2px; min-width: 62px; text-align: center; border-left: none !important; border-bottom: 3px solid transparent; }
  .admin-nav-item.active { border-bottom-color: var(--accent); background: rgba(108,99,255,0.2); }
  .admin-nav-item i { width: auto; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
