/* ============================================================
   Snoop App's — mesma identidade visual do Snoop Rádio ETS2
   ============================================================ */

:root {
  /* paleta do Snoop Rádio ETS2 */
  --bg: #0b0910;
  --bg2: #120d1b;
  --card: #151020;
  --card2: #1b1429;
  --line: #2a2138;
  --line2: #3d3153;
  --tx: #f4f0ff;
  --dim: #a29bb5;
  --muted: #7d7590;
  --acc: #8028f8;
  --acc2: #c9a4ff;
  --live: #27c46b;
  --gold: #ffb800;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--tx);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-image: radial-gradient(70% 440px at 15% -6%, rgba(128, 40, 248, 0.28), transparent 70%),
    radial-gradient(60% 400px at 96% 0%, rgba(128, 40, 248, 0.18), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 9, 16, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 16px;
  white-space: nowrap;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #070c1c;
  border: 1px solid #2a2140;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav .sp {
  flex: 1;
}

.nav a.link {
  color: var(--dim);
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: 9px;
  transition: 0.15s;
}

.nav a.link:hover {
  color: var(--tx);
  background: #1b1526;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--tx);
  padding: 9px 14px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  border-color: var(--line2);
  background: var(--card2);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.tab:focus-visible,
.search input:focus-visible,
select:focus-visible,
.dialog-close:focus-visible,
.sort-dir:focus-visible {
  outline: 2px solid var(--acc2);
  outline-offset: 2px;
}

.btn.p {
  background: linear-gradient(140deg, var(--acc), #5a20c6);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(128, 40, 248, 0.35);
}

.btn.p:hover {
  filter: brightness(1.08);
}

.btn.gold {
  background: linear-gradient(140deg, #ffc42e, #e09b00);
  color: #231a00;
  border-color: transparent;
}

.btn.gold:hover {
  filter: brightness(1.06);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  color: var(--danger);
  border-color: #4a2030;
  background: #21101a;
}

.btn.danger:hover {
  background: #2c1420;
  border-color: #7a2b3f;
}

.btn.sm {
  padding: 7px 11px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn.wide {
  width: 100%;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 26px 0 8px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 480px;
  background: url(assets/hero-bg.jpg) center top / cover no-repeat;
  opacity: 0.55;
  filter: saturate(0.95);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 92%);
  mask-image: linear-gradient(#000 20%, transparent 92%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 480px;
  pointer-events: none;
  background: radial-gradient(60% 100% at 18% 0%, rgba(128, 40, 248, 0.3), transparent 70%),
    linear-gradient(#0b0910cc 0%, transparent 45%);
}

.station {
  display: flex;
  gap: 22px;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(128, 40, 248, 0.3);
  background: #0c0913 url(assets/hero-bg.jpg) center 45% / cover no-repeat;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.station::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(9, 7, 13, 0.94) 0%, rgba(9, 7, 13, 0.6) 62%, rgba(9, 7, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 7, 13, 0.45) 0%, rgba(9, 7, 13, 0.06) 45%, rgba(9, 7, 13, 0.68) 100%);
}

.cover {
  position: relative;
  width: 184px;
  height: 184px;
  border-radius: 22px;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(145deg, #2a1140, #120a1e 60%, #0d0817);
  border: 1px solid #3a2a55;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sinfo {
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(39, 196, 107, 0.12);
  color: var(--live);
  border: 1px solid rgba(39, 196, 107, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(128, 40, 248, 0.16);
  color: var(--acc2);
  border: 1px solid rgba(201, 164, 255, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.tag {
  background: #1e1730;
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}

h1 {
  margin: 2px 0 6px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.9px;
}

h1 span {
  background: linear-gradient(100deg, #fff 10%, var(--acc2) 60%, #e7d7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desc {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 0 14px;
}

.owner {
  color: var(--muted);
  font-size: 12.5px;
}

.owner b {
  color: #cfc7e6;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.stat {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stat div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 12.5px;
  color: var(--dim);
  min-width: 92px;
}

.stat b {
  display: block;
  color: var(--tx);
  font-size: 15px;
  margin-top: 2px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- layout */

main {
  padding: 22px 0 120px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.grid > * {
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #cfc7e6;
}

.card p {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.55;
}

.card p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--acc2);
  font-weight: 800;
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- catálogo */

.appscard {
  padding: 18px;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.4px;
  text-transform: none;
  color: #f3eeff;
}

.section-head .eyebrow {
  margin-bottom: 4px;
}

.count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  padding-bottom: 3px;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}

.tabs::-webkit-scrollbar {
  height: 0;
}

.tab {
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 11px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.15s;
}

.tab:hover {
  color: var(--tx);
}

.tab.on {
  color: var(--tx);
  border-bottom-color: var(--acc);
}

.tab .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #241a35;
  color: #b9b0cd;
  font-size: 10.5px;
  font-weight: 700;
}

.tab.on .n {
  background: rgba(128, 40, 248, 0.28);
  color: #eadcff;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  min-width: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 210px;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0a14;
  color: var(--muted);
}

.search .search-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--tx);
  font-size: 13px;
  padding: 0;
}

.search input::placeholder {
  color: #6f6884;
}

.sortbar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.sortbar select {
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--tx);
  border-radius: 9px;
  padding: 8px 9px;
  font-size: 12.5px;
  cursor: pointer;
  outline: none;
}

.apps-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

/* ---------------------------------------------------------------- app card */

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 16px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, var(--card2), #130e1d 72%);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent, var(--acc));
  opacity: 0.9;
}

.app-card:hover {
  border-color: rgba(128, 40, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.app-card.featured {
  border-color: rgba(128, 40, 248, 0.38);
  background: linear-gradient(155deg, #211534, #130e1d 72%);
}

.app-card.soon {
  opacity: 0.86;
}

.app-card.soon::before {
  opacity: 0.45;
}

.app-ribbon {
  position: absolute;
  top: 0;
  right: 16px;
  background: linear-gradient(140deg, var(--acc), #5a20c6);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  padding: 4px 9px 5px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(128, 40, 248, 0.35);
}

.app-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #0c0913;
  border: 1px solid #3a2a55;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-id {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 1px;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.app-id h3 {
  margin: 0 0 2px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.app-tagline {
  margin: 0;
  color: var(--acc2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.app-desc {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #8d85a3;
  font-size: 11.5px;
}

.app-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #120d1b;
  border: 1px solid #241d33;
  border-radius: 999px;
  padding: 3px 8px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.app-note {
  margin: 0;
  color: #6f6884;
  font-size: 11px;
  line-height: 1.5;
}

.empty {
  text-align: center;
  padding: 34px 18px 26px;
  border: 1px dashed #33284a;
  border-radius: 14px;
  color: var(--dim);
}

.empty .empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #3a2a55;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.empty .empty-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty h3 {
  margin: 0 0 4px;
  color: var(--tx);
  font-size: 16px;
}

.empty p {
  margin: 0;
  font-size: 13px;
}

/* ---------------------------------------------------------------- sidebar */

aside {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.side-card {
  padding: 16px;
}

.feature-card {
  background: linear-gradient(150deg, #241335, #141020 68%);
  border-color: #3b2a58;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.feature-top {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 12px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex: 0 0 auto;
  border: 1px solid #4a3570;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.feature-top h2 {
  margin: 0 0 3px;
  font-size: 17px;
  letter-spacing: -0.2px;
  text-transform: none;
  color: #f3eeff;
}

.feature-top p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--dim);
}

.mini-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mini-meta span {
  background: #120d1b;
  border: 1px solid #2a2138;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: #9a92ae;
}

.feature-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-actions .btn {
  flex: 1 1 auto;
}

.radio-card {
  background: linear-gradient(150deg, #13261c, #101720 62%);
  border-color: #244a35;
}

.radio-top {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 12px;
}

.radio-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex: 0 0 auto;
  border: 1px solid #2f5b40;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.radio-top h2 {
  margin: 4px 0 2px;
  font-size: 16px;
  letter-spacing: -0.2px;
  text-transform: none;
  color: #f1fff6;
}

.radio-top p {
  margin: 0;
  font-size: 12px;
  color: #9fb8a8;
}

.radio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.radio-stats div {
  background: rgba(9, 16, 12, 0.45);
  border: 1px solid #244a35;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: #9fb8a8;
}

.radio-stats b {
  display: block;
  color: #eafff1;
  font-size: 14px;
  margin-top: 2px;
}

.radio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-actions .btn {
  flex: 1 1 auto;
}

.radio-actions .btn.p {
  background: linear-gradient(140deg, #2ad779, #139a55);
  box-shadow: 0 8px 22px rgba(39, 196, 107, 0.3);
}

.donate {
  background: linear-gradient(150deg, #241335, #141020 65%);
  border-color: #3b2a58;
}

.pixwrap {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}

.pixqr {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: 0.18s;
}

.pixqr:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(128, 40, 248, 0.35);
}

.pixqr img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
}

.pixside {
  flex: 1 1 150px;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.note b {
  color: #cfc7e6;
}

.card .note {
  color: var(--muted);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.news-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(128, 40, 248, 0.15);
  flex: 0 0 auto;
  margin-top: 5px;
}

.news-list b {
  display: block;
  font-size: 12.5px;
  color: #e8e1f5;
  font-weight: 700;
}

.news-list small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 1px;
}

/* ---------------------------------------------------------------- modal */

.appdialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--tx);
  width: min(640px, calc(100vw - 28px));
  max-width: 640px;
}

.appdialog::backdrop {
  background: rgba(5, 3, 10, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.dialog-card {
  position: relative;
  background: linear-gradient(160deg, #1a1226, #100b18 70%);
  border: 1px solid #3a2a55;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  max-height: min(86vh, 780px);
  overflow: auto;
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #171122;
  color: var(--dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: 0.15s;
}

.dialog-close:hover {
  color: var(--tx);
  background: #241a35;
  border-color: var(--line2);
}

.dialog-head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 34px;
}

.dialog-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  flex: 0 0 auto;
  border: 1px solid #4a3570;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.dialog-head h2 {
  margin: 0 0 3px;
  font-size: 23px;
  letter-spacing: -0.4px;
  text-transform: none;
  color: #f3eeff;
}

.dialog-head p {
  margin: 0;
  font-size: 13px;
  color: var(--acc2);
  font-weight: 600;
}

.dialog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dialog-desc {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.6;
}

.dialog-req {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.dialog-grid div {
  background: #120d1b;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.dialog-grid b {
  display: block;
  font-size: 12.5px;
  color: var(--tx);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog-section {
  margin-top: 18px;
}

.dialog-section h3 {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfc7e6;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.feature-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #d8d2e8;
  font-size: 12.5px;
  line-height: 1.45;
}

.feature-list li::before {
  content: "✔";
  color: var(--live);
  font-size: 11px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.dialog-note {
  background: rgba(128, 40, 248, 0.09);
  border: 1px solid rgba(128, 40, 248, 0.24);
  border-radius: 12px;
  padding: 11px 13px;
  color: #c7bddb;
  font-size: 12px;
  line-height: 1.55;
  margin: 18px 0 0;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.dialog-actions .btn {
  flex: 1 1 auto;
}

/* ---------------------------------------------------------------- download progress */

.dlpanel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 80;
  width: min(360px, calc(100vw - 36px));
  background: #171122;
  border: 1px solid #3a2a55;
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: none;
}

.dlpanel.on {
  display: block;
}

.dl-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #eee7ff;
}

.dl-top span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-close {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}

.dl-close:hover {
  color: var(--tx);
}

.dl-bar {
  height: 7px;
  border-radius: 999px;
  background: #241a35;
  overflow: hidden;
  margin: 10px 0 6px;
}

.dl-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acc), #b07bff);
  transition: width 0.2s ease;
}

.dl-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- player bar */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: rgba(15, 11, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.player .in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  background: linear-gradient(140deg, var(--acc), #5a20c6);
  color: #fff;
  font-size: 17px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(128, 40, 248, 0.4);
  transition: 0.15s;
}

.play:hover {
  filter: brightness(1.08);
}

.play:active {
  transform: scale(0.96);
}

.ptxt {
  min-width: 0;
  flex: 1;
}

.ptxt .a {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ptxt .b {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ptxt .b a {
  color: var(--acc2);
}

.ptxt .b a:hover {
  text-decoration: underline;
}

.eq {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 18px;
  flex: 0 0 auto;
}

.eq i {
  width: 3px;
  background: var(--live);
  border-radius: 2px;
  height: 6px;
  opacity: 0.35;
}

.player.on .eq i {
  animation: eq 0.9s infinite ease-in-out;
  opacity: 1;
}

.eq i:nth-child(2) {
  animation-delay: 0.15s;
}

.eq i:nth-child(3) {
  animation-delay: 0.3s;
}

.eq i:nth-child(4) {
  animation-delay: 0.45s;
}

.eq i:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes eq {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 17px;
  }
}

.site-btn {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 26px 0 100px;
}

.footer-in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d9d1e9;
  font-weight: 700;
  font-size: 13px;
}

.footer-brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--dim);
}

.footer-links a:hover {
  color: var(--acc2);
}

.footer-note {
  width: 100%;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #241d33;
  line-height: 1.6;
}

.footer-note b {
  color: #cfc7e6;
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #1d1530;
  border: 1px solid #3a2a55;
  color: var(--tx);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  transition: 0.25s;
  pointer-events: none;
  z-index: 90;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- anim */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-card {
  animation: rise 0.28s ease both;
}

.app-card:nth-child(2) {
  animation-delay: 0.04s;
}

.app-card:nth-child(3) {
  animation-delay: 0.08s;
}

.app-card:nth-child(4) {
  animation-delay: 0.12s;
}

/* ---------------------------------------------------------------- responsive */

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

  aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card,
  .donate {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  .station {
    flex-direction: column;
    padding: 15px;
  }

  .cover {
    width: 138px;
    height: 138px;
  }

  .sinfo {
    padding: 0;
  }
}

@media (max-width: 760px) {
  .nav {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    row-gap: 8px;
    gap: 10px;
  }

  .brand {
    font-size: 15px;
  }

  .nav .sp {
    display: none;
  }

  .nav a.link {
    display: none;
  }

  .nav .btn.p {
    margin-left: auto;
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .hero {
    padding-top: 18px;
  }

  .stat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat div {
    padding: 8px 10px;
    border-radius: 10px;
    min-width: 0;
  }

  .stat b {
    font-size: 13px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .toolbar {
    align-items: stretch;
  }

  .search {
    flex-basis: 100%;
  }

  .sortbar {
    margin-left: auto;
  }

  aside {
    grid-template-columns: 1fr;
  }

  .dialog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-btn {
    display: none;
  }

  .player .in {
    padding: 9px 14px;
    gap: 11px;
  }

  .play {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .eq {
    display: none;
  }

  .toast {
    bottom: 82px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 14px;
  }

  .brand .logo {
    width: 32px;
    height: 32px;
  }

  .badges {
    gap: 6px;
  }

  .badges .tag,
  .badges .new {
    padding: 4px 8px;
    font-size: 11px;
  }

  .station {
    border-radius: 16px;
  }

  .cover {
    width: 112px;
    height: 112px;
    border-radius: 17px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .app-card {
    padding: 14px 14px 14px 17px;
  }

  .app-head {
    gap: 11px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .app-id h3 {
    font-size: 15.5px;
  }

  .app-actions .btn {
    flex: 1 1 auto;
  }

  .dialog-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .dialog-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .dialog-head h2 {
    font-size: 20px;
  }

  .dialog-grid {
    gap: 6px;
  }

  .pixwrap {
    gap: 10px;
  }

  .pixqr {
    width: 104px;
    height: 104px;
  }

  .dlpanel {
    right: 10px;
    bottom: 78px;
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
