:root{
  --bg:#0b1020;
  --card:#121a33;
  --muted:rgba(255,255,255,.72);
  --line:rgba(255,255,255,.10);
  --good:#22c55e;
  --bad:#ef4444;
  --mid:#a3a3a3;
  --accent:#60a5fa;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(96,165,250,.25), transparent), var(--bg);
  color:#fff;
}

.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(11,16,32,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.wrap{max-width:1200px; margin:0 auto; padding:14px 16px;}
.top{display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;}
.title{font-weight:900; letter-spacing:.3px;}
.sub{color:var(--muted); font-size:12px; margin-top:4px;}

.controls{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.controls input{
  width:min(420px, 70vw);
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}

.select{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}
.select option{background:#0b1020; color:#fff;}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.10);}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:16px;
}
@media(max-width:1100px){ .grid{grid-template-columns:repeat(3,1fr);} }
@media(max-width:820px){ .grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:540px){ .grid{grid-template-columns:1fr;} }

.card{
  background:rgba(18,26,51,.92);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow:0 18px 55px rgba(0,0,0,.35);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}


.name{font-weight:800; line-height:1.2;}
.meta{margin-top:8px; display:flex; align-items:flex-end; justify-content:space-between; gap:10px;}
.rating{display:flex; align-items:baseline; gap:10px;}

.badges{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px;}
.badge{
  font-size:11px;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
}

.small{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.footerline{margin-top:6px; font-size:11px; color:rgba(255,255,255,.55);}

/* Modal */
.overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center; justify-content:center;
  padding:16px;
  z-index:999;
}
.modal{
  width:min(980px, 100%);
  max-height:86vh;
  overflow:auto;
  background:rgba(18,26,51,.96);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 25px 80px rgba(0,0,0,.5);
}
.modalHeader{
  display:flex; justify-content:space-between; align-items:flex-start;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  gap:12px;
}
.modalTitle{font-weight:900;}
.modalActions{display:flex; gap:10px; flex-wrap:wrap;}
.modalBody{padding:12px 16px;}
.loading{padding:18px; color:rgba(255,255,255,.8);}

table{width:100%; border-collapse:collapse; min-width:780px;}
th, td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
  font-size:13px;
}
th{color:rgba(255,255,255,.7); text-align:left; font-size:12px;}
.stars{white-space:nowrap; color:rgba(255,255,255,.9);}
.muted{color:rgba(255,255,255,.65);}

.card::before,
.card::after{
  content:none !important;
}

/* FORCE rating as text (prevents old "bar" styles) */
.rating{
  background: none !important;
  border: none !important;
  height: auto !important;
  width: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  display: inline-block !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 900 !important;

  /* in case some style makes text "invisible" */
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

/* FIX: rating deve ser TEXTO e não "barra" */
.rating{
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;

  height: auto !important;
  width: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;

  padding: 0 !important;
  margin: 0 !important;

  display: inline !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 900 !important;

  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;

  overflow: visible !important;
  text-indent: 0 !important;
  letter-spacing: -0.5px !important;
}

/* se alguém aplicou pseudo-elementos à .rating, mata também */
.rating::before,
.rating::after{
  content: none !important;
  display: none !important;
}



.ratingNum{font-size:34px; font-weight:900; letter-spacing:-.5px; line-height:1;}

/* ===== v13 fixes: estrelas 5 pequenas + em linha, cores do número sem serem anuladas ===== */

.rating{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}

.stars{
  display:inline-flex !important;
  gap:2px !important;
  line-height:1 !important;
  margin-left:6px !important;
}

.star{
  font-size:16px !important; /* menor */
  line-height:1 !important;
}

.star.filled{
  color:#fbbf24; /* amarelo */
}

.star.empty{
  color:rgba(255,255,255,.35);
}

.star.half{
  position:relative;
  display:inline-block;
  color:rgba(255,255,255,.35);
}

.star.half .halfFill{
  position:absolute;
  left:0;
  top:0;
  width:50%;
  overflow:hidden;
  color:#fbbf24;
}

/* Número do rating: não usar !important na cor para não anular o inline style */
.ratingNum{
  font-size:34px !important;
  font-weight:900 !important;
  letter-spacing:-.5px !important;
  line-height:1 !important;
}

/* "Reviews" em linha com o valor (valor primeiro) */
.small{
  display:flex !important;
  justify-content:flex-start !important;
  gap:8px !important;
  align-items:baseline !important;
}

