:root {
  --page-bg: #040a16;
  --panel-bg: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-hover: rgba(255, 255, 255, 0.08);
  --inner-bg: rgba(0, 0, 0, 0.24);
  --text-soft: rgba(255, 255, 255, 0.82);
}

/* fundo geral mais escuro */
body {
  background: linear-gradient(180deg, #040a16 0%, #08101c 100%) !important;
}

main {
  padding-top: 8px !important;
}

/* barra superior */
#widgets-wrap {
  margin-bottom: 12px !important;
  padding: 6px 10px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(4,10,22,0.92), rgba(8,15,28,0.88)) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(10px) !important;
}

/* títulos de grupo */
h2 {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.01em !important;
}

/* grid mais compacto */
.services-list {
  gap: 8px !important;
}

.service {
  margin-bottom: 8px !important;
}

/* cards principais */
.service-card {
  min-height: 74px !important;
  border-radius: 18px !important;
  border: 1px solid var(--panel-border) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)) !important;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
}

.service-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--panel-hover) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.045) !important;
}

.service-title {
  min-height: 44px !important;
  padding-top: 6px !important;
  padding-bottom: 2px !important;
  align-items: center !important;
}

.service-icon img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
}

.service-name {
  font-size: 0.92rem !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}

.service-description {
  display: none !important;
}

/* blocos internos dos widgets */
.service-container {
  padding: 0 4px 4px 4px !important;
  gap: 0 !important;
}

.service-block {
  min-height: 48px !important;
  margin: 4px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  background: linear-gradient(180deg, rgba(4,10,22,0.82), rgba(8,15,28,0.78)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.service-block > div:first-child {
  font-size: 0.92rem !important;
  line-height: 1.05 !important;
}

.service-block > div:last-child {
  font-size: 0.69rem !important;
  letter-spacing: 0.01em !important;
}

/* cards sem widget, estilo botão */
.service-card a,
.service-card .service-title {
  color: var(--text-soft) !important;
}

/* jellyfin compactado */
.service-card .flex.flex-col {
  gap: 4px !important;
}

/* scrollbar discreta */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-track {
  background: transparent;
}


html {
  background: #040a16 !important;
}

body,
#__next,
main {
  background: transparent !important;
}

/* ===== Topo: Lenovo à esquerda, Samsung à direita ===== */
#widgets-wrap {
  width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 18px !important;
}

/* empurra o último widget para a extremidade direita */
#widgets-wrap > *:last-child {
  margin-left: auto !important;
}

/* evita que o Samsung quebre para baixo */
#widgets-wrap > * {
  flex: 0 0 auto !important;
}

/* deixa o rótulo Samsung mais discreto e alinhado */
#widgets-wrap > *:last-child * {
  text-align: center;
}

/* BEGIN TOP_WIDGETS_CLEAN */
#widgets-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
}

#widgets-wrap > *:empty {
  display: none !important;
}

#widgets-wrap > * {
  position: relative !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 46px 18px 12px 18px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(4,10,22,0.92), rgba(8,15,28,0.88)) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

/* mantém o layout nativo dos widgets */
#widgets-wrap > * *,
#widgets-wrap > * *::before,
#widgets-wrap > * *::after {
  transform: none !important;
}

/* títulos */
#widgets-wrap > *:first-child::before {
  content: "Lenovo" !important;
  position: absolute !important;
  top: 14px !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  font-size: 1.06rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.96) !important;
  letter-spacing: -0.01em !important;
}

#widgets-wrap > *:nth-child(2)::before {
  content: "Samsung" !important;
  position: absolute !important;
  top: 14px !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  font-size: 1.06rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.96) !important;
  letter-spacing: -0.01em !important;
}

/* esconde label nativa dos widgets do topo, se existir */
#widgets-wrap > * p:last-child {
  display: none !important;
}

/* divisor suave */
#widgets-wrap > *:first-child::after {
  content: "" !important;
  position: absolute !important;
  top: 16px !important;
  right: -7px !important;
  width: 1px !important;
  height: calc(100% - 32px) !important;
  background: rgba(255,255,255,0.08) !important;
}

@media (max-width: 1100px) {
  #widgets-wrap {
    grid-template-columns: 1fr !important;
  }

  #widgets-wrap > *:first-child::after {
    display: none !important;
  }
}
/* END TOP_WIDGETS_CLEAN */\n\n/* BEGIN LENOVO_CLICK */
#widgets-wrap > *:first-child {
  cursor: pointer !important;
}

#widgets-wrap > *:first-child:hover {
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
/* END LENOVO_CLICK */\n\n\n/* BEGIN LENOVO_CLICK_FIX */
#widgets-wrap > *:first-child {
  cursor: pointer !important;
}

#widgets-wrap > *:first-child:hover {
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
/* END LENOVO_CLICK_FIX */\n

/* BEGIN LENOVO_CLICK_HOVER */
#widgets-wrap > *:first-child {
  cursor: pointer !important;
}

#widgets-wrap > *:first-child:hover {
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
/* END LENOVO_CLICK_HOVER */\n\n/* BEGIN LENOVO_OVERLAY */
#widgets-wrap > *:first-child {
  cursor: pointer !important;
}

#widgets-wrap > *:first-child:hover {
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.lenovo-overlay-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 40 !important;
  display: block !important;
  border-radius: 18px !important;
  text-decoration: none !important;
  background: transparent !important;
}
/* END LENOVO_OVERLAY */\n