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

:root {
  --primary: #e91e8c;
  --secondary: #00d4ff;
  --dark: #0a0a1a;
  --dark2: #111128;
  --card: rgba(255,255,255,0.05);
  --glass: rgba(255,255,255,0.08);
  --text: #ffffff;
  --text2: #aaaacc;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(233,30,140,0.2);
}

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

html { font-size:16px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  
  -webkit-text-size-adjust: 100%;
}

body.has-bg {
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body::before {
  content:'';
  position:fixed;
  inset:0;
  background: rgba(10,10,26,0.82);
  z-index:0;
  pointer-events:none;
}

.container { max-width:1400px; margin:0 auto; padding:0 16px; position:relative; z-index:1; }

/* HEADER */
#header {
  background: linear-gradient(135deg, rgba(10,10,26,0.97) 0%, rgba(17,17,40,0.97) 100%);
  border-bottom: 1px solid rgba(233,30,140,0.3);
  padding: 8px 0;
  position: relative;
  top: 0;
}

.header-top {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.logo-area { display:flex; align-items:center; gap:10px; }
.logo-area img { max-height:70px; width:auto; max-width:100%; }

/* COUNTERS */
.counters-area {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.counter-box {
  background: var(--glass);
  border: 1px solid rgba(233,30,140,0.3);
  border-radius: 10px;
  padding: 5px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--text2);
  white-space:nowrap;
}

.counter-box span { color:var(--primary); font-weight:700; font-size:14px; }

/* PLAYER */
#player-bar {
  background: linear-gradient(90deg, rgba(233,30,140,0.15), rgba(0,212,255,0.15));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}

.player-inner {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:nowrap;
}

.player-cover {
  width:55px; height:55px;
  border-radius:10px;
  object-fit:cover;
  border:2px solid var(--primary);
  box-shadow: 0 0 20px rgba(233,30,140,0.5);
  flex-shrink:0;
}

.player-info { flex:1; min-width:0; }
.player-info .track-name { font-weight:700; font-size:14px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-info .track-artist { font-size:11px; color:var(--text2); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.player-controls { display:flex !important; flex-direction:row !important; align-items:center !important; gap:10px; flex-shrink:0; }

.btn-play {
  width:46px; height:46px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--primary), #ff6b9d);
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; color:#fff;
  box-shadow: 0 0 20px rgba(233,30,140,0.6);
  transition: all 0.3s;
  flex-shrink:0;
}
.btn-play:hover { transform:scale(1.1); box-shadow: 0 0 30px rgba(233,30,140,0.9); }

.volume-control { display:flex; align-items:center; gap:8px; }
.volume-control input[type=range] { width:70px; accent-color: var(--primary); }

/* CARROSSEL HEADER */
.header-carousel {
  overflow:hidden;
  border-radius:var(--radius);
  position:relative;
  height:86px;
}
.header-carousel .slides { display:flex; transition: transform 0.5s ease; height:100%; }
.header-carousel .slide { min-width:100%; height:100%; }
.header-carousel .slide img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius); }

/* SECTIONS */
section { padding: 36px 0; position:relative; z-index:1; }
section h2 {
  color: var(--text);
  font-family:'Rajdhani', sans-serif;
  font-size:26px;
  font-weight:700;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:10px;
}
section h2::before {
  content:'';
  width:4px; height:26px;
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius:4px;
  flex-shrink:0;
}

/* NOTICIAS */
.news-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:18px;
}

.news-card {
  background: var(--card);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius);
  overflow:hidden;
  transition: all 0.3s;
  cursor:pointer;
}
.news-card:hover { transform:translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.news-card img { width:100%; height:160px; object-fit:cover; }
.news-card-body { padding:14px; }
.news-card-body h3 { font-size:13px; font-weight:600; margin-bottom:6px; line-height:1.4; }
.news-card-body p { font-size:12px; color:var(--text2); line-height:1.5; }
.news-card-body .news-date { font-size:11px; color:var(--primary); margin-top:8px; }

/* CARROSSEIS */
.carousel-wrap { position:relative; overflow:hidden; padding:0 10px; }
.carousel-track { display:flex; gap:14px; transition: transform 0.4s ease; }

.carousel-item {
  min-width:200px;
  background:var(--card);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius);
  overflow:hidden;
  transition:all 0.3s;
  cursor:pointer;
  flex-shrink:0;
}
.carousel-item:hover { border-color:var(--primary); box-shadow:var(--shadow); transform:scale(1.03); }
.carousel-item img { width:100%; height:120px; object-fit:cover; }
.carousel-item-body { padding:10px; font-size:12px; font-weight:600; text-align:center; }

.carousel-item.destaque { min-width:280px; }
.carousel-item.destaque img { height:170px; }

.carousel-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  background:var(--primary); border:none; color:#fff;
  width:34px; height:34px; border-radius:50%; cursor:pointer;
  font-size:15px; z-index:2; transition:all 0.3s;
  display:flex; align-items:center; justify-content:center;
}
.carousel-btn:hover { background:var(--secondary); }
.carousel-btn.prev { left:0; }
.carousel-btn.next { right:0; }

/* SOCIAL */
.social-grid { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

.social-btn {
  display:flex; align-items:center; gap:8px;
  padding:11px 20px;
  border-radius:50px;
  font-weight:600; font-size:13px;
  text-decoration:none; color:#fff;
  transition:all 0.3s;
  border:1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,0.4); }
.social-btn.facebook { background:#1877f2; }
.social-btn.instagram { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.youtube { background:#ff0000; }
.social-btn.tiktok { background:#010101; border:1px solid #69c9d0; }
.social-btn.twitter { background:#1da1f2; }
.social-btn.whatsapp { background:#25d366; }

/* LINKS DESTAQUE */
.links-destaque { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:30px 0; }

.link-card {
  background: linear-gradient(135deg, rgba(233,30,140,0.2), rgba(0,212,255,0.2));
  border:1px solid rgba(233,30,140,0.4);
  border-radius:var(--radius);
  padding:28px;
  text-align:center;
  text-decoration:none;
  color:#fff;
  transition:all 0.3s;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.link-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.link-card .icon { font-size:44px; }
.link-card h3 { font-family:'Rajdhani',sans-serif; font-size:22px; font-weight:700; }
.link-card p { font-size:12px; color:var(--text2); }

/* FOOTER */
#footer {
  background: linear-gradient(135deg, rgba(10,10,26,0.99), rgba(17,17,40,0.99));
  border-top:1px solid rgba(233,30,140,0.3);
  padding:36px 0 18px;
  position:relative; z-index:1;
}

.footer-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap:24px;
  margin-bottom:24px;
}

.footer-col h4 {
  font-family:'Rajdhani',sans-serif;
  font-size:15px;
  color:var(--primary);
  margin-bottom:12px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.footer-col a {
  display:block;
  color:var(--text2);
  text-decoration:none;
  font-size:12px;
  margin-bottom:7px;
  transition:color 0.3s;
}
.footer-col a:hover { color:var(--primary); }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:16px;
  text-align:center;
  font-size:11px;
  color:var(--text2);
}

/* GLOW */
.glow { text-shadow: 0 0 20px var(--primary); }

/* SCROLLBAR */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--dark); }
::-webkit-scrollbar-thumb { background:var(--primary); border-radius:3px; }

/* ===================== RESPONSIVE ===================== */

/* TABLET LANDSCAPE - 1024px */
@media(max-width:1024px) {
  .header-top { grid-template-columns: 140px 1fr 160px; gap:12px; }
  .logo-area img { max-height:60px; }
  .header-carousel { height:75px; }
  .carousel-item.destaque { min-width:240px; }
}

/* TABLET PORTRAIT - 768px */
@media(max-width:768px) {
  .header-top {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .logo-area { grid-column:1; }
  .counters-area { grid-column:2; align-items:flex-end; }
  .header-carousel { grid-column:1/-1; height:65px; }

  .player-inner { gap:10px; }
  .volume-control { display:none; }
  .player-cover { width:48px; height:48px; }
  .btn-play { width:40px; height:40px; font-size:16px; }

  .links-destaque { grid-template-columns:1fr; }

  .news-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:14px; }

  .carousel-item { min-width:180px; }
  .carousel-item.destaque { min-width:240px; }

  .social-btn { padding:9px 16px; font-size:12px; }

  section h2 {
  color: var(--text); font-size:22px; }
  section { padding:28px 0; }
}

/* MOBILE GRANDE - 600px */
@media(max-width:600px) {
  .header-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap:8px;
  }
  .logo-area { justify-content:center; }
  .counters-area { grid-column:1; flex-direction:row; justify-content:center; flex-wrap:wrap; }
  .header-carousel { display:block !important; height:65px !important; }

  .news-grid { grid-template-columns:1fr; }

  .footer-grid { grid-template-columns:1fr 1fr; }

  .social-grid { gap:8px; }
  .social-btn { padding:9px 14px; font-size:11px; gap:6px; }

  .link-card { padding:20px; }
  .link-card .icon { font-size:36px; }
  .link-card h3 { font-size:18px; }
}

/* MOBILE PEQUENO - 400px */
@media(max-width:400px) {
  .container { padding:0 12px; }
  .player-info .track-name { font-size:12px; }
  .player-cover { width:42px; height:42px; }
  .btn-play { width:36px; height:36px; font-size:14px; }
  .counter-box { font-size:10px; padding:4px 9px; }
  .counter-box span { font-size:12px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  section h2 {
  color: var(--text); font-size:19px; }
  .carousel-item { min-width:150px; }
  .carousel-item.destaque { min-width:200px; }
}

#header { position: static; }
#player-top { position: sticky; top: 0; z-index: 9999; }

/* ===== AJUSTES RESPONSIVOS INDEX - TOPO MOBILE ===== */
@media (max-width: 768px) {
  #player-top {
    padding: 8px 10px !important;
  }

  #player-top > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #player-top > div > div:first-child {
    justify-content: center !important;
  }

  #player-top nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  #player-top nav a {
    flex: 1 1 calc(50% - 6px) !important;
    text-align: center !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  #player-top > div > div:last-child {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  #player-top input[type="range"] {
    width: 120px !important;
  }
}

/* ===== MENU FLUTUANTE MOBILE/TABLET ===== */
.mobile-float-menu {
  display: none;
}

@media (max-width: 1024px) {
  #player-top nav {
    display: none !important;
  }

  .mobile-float-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 99999;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(13, 13, 32, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(233,30,140,0.35);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  }

  .mobile-float-menu a {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    text-align: center;
    padding: 8px 6px;
  }

  .mobile-float-menu a span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
  }

  body {
    padding-bottom: 95px;
  }
}

@media (max-width: 480px) {
  .mobile-float-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px;
  }

  .mobile-float-menu a {
    min-height: 50px;
    font-size: 16px;
    padding: 7px 4px;
  }

  .mobile-float-menu a span {
    font-size: 10px;
  }

  body {
    padding-bottom: 90px;
  }
}

/* ===== MENU HAMBURGUER MOBILE/TABLET ===== */
.hamburger-btn,
.hamburger-menu {
  display: none;
}

@media (max-width: 1024px) {
  #player-top nav {
    display: none !important;
  }

  .hamburger-btn {
    display: flex;
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#e91e8c,#ff6b9d);
    color: #fff;
    font-size: 22px;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    cursor: pointer;
  }

  .hamburger-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(13,13,32,.98);
    backdrop-filter: blur(12px);
    z-index: 100000;
    padding: 70px 18px 18px;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid rgba(233,30,140,.35);
  }

  .hamburger-menu.active {
    right: 0;
  }

  .hamburger-menu a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
  }

  .hamburger-menu .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
}

/* ===== SECÇÕES INDEX ===== */
.tv-chat-grid { display:flex; gap:20px; flex-wrap:wrap; }
.tv-wrap { flex:2; min-width:280px; }
.chat-wrap { flex:1; min-width:260px; }
.chat-box { height:420px; background:rgba(255,255,255,0.05); border:1px solid rgba(233,30,140,0.3); border-radius:16px; padding:12px; overflow-y:auto; margin-bottom:10px; }
.chat-input-row { display:flex; gap:8px; }
.chat-input-row input { padding:8px; border-radius:8px; border:1px solid rgba(233,30,140,0.4); background:rgba(255,255,255,0.05); color:#fff; font-size:12px; }
.chat-input-row input:first-child { width:100px; }
.chat-input-row input:last-of-type { flex:1; }
.chat-send-btn { padding:8px 14px; background:var(--primary); border:none; border-radius:8px; color:#fff; cursor:pointer; font-weight:700; }

.master-grid { display:grid; grid-template-columns:3fr 2fr; gap:24px; }
.news-destaque-grid { display:grid; grid-template-columns:3fr 2fr; gap:24px; align-items:start; }

.master-carousel-wrap { position:relative; overflow:hidden; border-radius:16px; border:1px solid rgba(233,30,140,0.4); box-shadow:0 0 30px rgba(233,30,140,0.2); }
.radios-carousel-wrap { position:relative; overflow:hidden; border-radius:16px; border:1px solid rgba(0,212,255,0.3); }
.destaque-carousel-wrap { position:relative; overflow:hidden; border-radius:16px; border:1px solid rgba(233,30,140,0.3); }

.master-track { display:flex; transition:transform 0.5s ease; }
.master-slide { min-width:100%; height:280px; background:var(--glass); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:var(--text2); }
.master-slide img { width:100%; height:100%; object-fit:cover; }

.carousel-nav-btn { position:absolute; top:50%; transform:translateY(-50%); border:none; color:#fff; width:36px; height:36px; border-radius:50%; cursor:pointer; font-size:20px; z-index:2; }
.carousel-nav-btn.left { left:10px; background:var(--primary); }
.carousel-nav-btn.right { right:10px; background:var(--primary); }
.carousel-nav-btn.cyan-left { left:10px; background:rgba(0,212,255,0.7); }
.carousel-nav-btn.cyan-right { right:10px; background:rgba(0,212,255,0.7); }

.carousel-dots { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:6px; }
.dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.3); transition:all 0.3s; }
.dot.active { width:18px; border-radius:3px; background:var(--primary); }

/* ===== RESPONSIVE SECÇÕES ===== */
@media(max-width:768px) {
  .master-grid { grid-template-columns:1fr; }
  .news-destaque-grid { grid-template-columns:1fr; }
  .tv-chat-grid { flex-direction:column; }
  .chat-box { height:280px; }
  .master-slide { height:200px; }
}

@media(max-width:480px) {
  .master-slide { height:160px; }
  .chat-box { height:220px; }
}

/* ===== PLAYER TOP ===== */
#player-top {
  width:100%;
  background:linear-gradient(90deg,#0d0d20,#1a0a2e,#0d0d20);
  border-bottom:2px solid #e91e8c;
  padding:6px 20px;
  position:sticky;
  top:0;
  z-index:1001;
}
.player-top-inner {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
  width:100%;
}
.player-top-info {
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.player-top-info .player-cover {
  width:40px;height:40px;border-radius:8px;border:2px solid #e91e8c;
}
.player-top-info .track-name {
  font-weight:700;font-size:12px;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;
}
.player-top-info .track-artist { font-size:10px;color:#aaaacc; }
.player-top-nav {
  display:flex;gap:0;flex-wrap:nowrap;flex:1;justify-content:center;
}
.player-top-nav a {
  color:#fff;text-decoration:none;padding:4px 12px;font-size:12px;
  font-weight:600;border-radius:8px;white-space:nowrap;transition:background 0.2s;
}
.player-top-nav a:hover { background:rgba(233,30,140,0.3); }
.player-top-controls {
  display:flex;align-items:center;gap:10px;flex-shrink:0;
}
.player-top-controls #btn-play {
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,#e91e8c,#ff6b9d);
  border:none;cursor:pointer;font-size:14px;color:#fff;
}
.player-top-controls #volume { width:70px;accent-color:#e91e8c; }
.ao-vivo-badge {
  display:inline-flex;align-items:center;gap:4px;
  background:rgba(233,30,140,0.2);border:1px solid #e91e8c;
  border-radius:20px;padding:2px 8px;font-size:9px;font-weight:700;color:#e91e8c;
}
.ao-vivo-dot {
  width:5px;height:5px;border-radius:50%;background:#e91e8c;animation:pulse 1.2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* TV PLAYER */
.tv-player-wrap {
  position:relative;padding-bottom:56.25%;height:0;
  border-radius:16px;overflow:hidden;border:1px solid rgba(233,30,140,0.3);
}
.tv-player-wrap video {
  position:absolute;top:0;left:0;width:100%;height:100%;background:#000;
}

/* ===== PLAYER TOP RESPONSIVE ===== */
@media(max-width:1024px) {
  .player-top-nav { display:none; }
}
@media(max-width:768px) {
  #player-top { padding:8px 10px; }
  .player-top-inner { flex-wrap:wrap; justify-content:space-between; }
  .player-top-controls #volume { width:80px; }
  .ao-vivo-badge { display:none; }
}
@media(max-width:480px) {
  .player-top-info .track-name { max-width:100px; }
  .player-top-controls #volume { display:none; }
}

/* ===== OVERRIDE MOBILE/TABLET — NÃO AFETA DESKTOP ===== */
@media(max-width:900px) {
  /* TV + Chat */
  div[style*="display:flex;gap:20px;flex-wrap:wrap"] {
    flex-direction:column !important;
  }

  /* Grids 3fr 2fr */
  div[style*="grid-template-columns:3fr 2fr"] {
    grid-template-columns:1fr !important;
  }

  /* News grid 1fr 1fr */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns:1fr !important;
  }

  /* Chat box altura */
  #chat-box { height:220px !important; }

  /* Master slides altura */
  div[style*="height:320px"] { height:200px !important; }
  div[style*="height:360px"] { height:200px !important; }

  /* Player top */
  #player-top > div {
    flex-wrap:wrap !important;
    justify-content:space-between !important;
  }
  #player-top nav {
    display:none !important;
  }
}

@media(max-width:480px) {
  div[style*="height:320px"] { height:160px !important; }
  div[style*="height:360px"] { height:160px !important; }
  #chat-box { height:180px !important; }
}


@media(max-width:900px) {
  .tv-chat-grid { flex-direction:column !important; }
  .tv-wrap, .chat-wrap { min-width:100% !important; width:100% !important; }
  .master-grid { grid-template-columns:1fr !important; }
  .news-destaque-grid { grid-template-columns:1fr !important; }
  .chat-box { height:250px !important; }
}
@media(max-width:480px) {
  .chat-box { height:180px !important; }
}
