:root {
  --bg: #14111c;
  --card: #1d1928;
  --card-border: #322c44;
  --orange: #8b5cf6;
  --orange-dark: #6d28d9;
  --green: #4ade80;
  --text: #fff;
  --muted: #b5b5b5;
}

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

html { background: var(--bg); overscroll-behavior: none; }

body {
  overscroll-behavior: none;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #221d30 0%, var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 28px;
  border-bottom: 1px solid #2c2736;
}
.brand { display: flex; align-items: center; gap: 14px; }
.avatar {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(145deg, #c4b5fd, var(--orange-dark));
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, .45);
}
.online {
  position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px;
  background: #22c55e; border: 2px solid var(--bg); border-radius: 50%;
}
h1 { font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
h1 span { color: var(--orange); }
.subtitle { font-size: .75rem; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.subtitle b { color: var(--orange); }

.sort-btn {
  display: flex; align-items: center; gap: 8px;
  background: #2c2736; color: #fff; border: 1px solid #444; border-radius: 10px;
  padding: 9px 16px; font: 600 .75rem 'Inter', sans-serif; cursor: pointer;
  transition: .2s;
}
.sort-btn:hover { border-color: var(--orange); color: var(--orange); }

/* Grid */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.15rem; }
}

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 10px 10px 16px; overflow: hidden;
  transition: .25s; animation: fadeIn .4s ease both;
}
.card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 22px rgba(139, 92, 246, .25);
  transform: translateY(-3px);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(167, 139, 250, .55), transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(124, 58, 237, .55), transparent 50%),
    linear-gradient(135deg, #1e1038, #3b1a73 55%, #6d28d9);
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px;
  border-radius: 50%; background: var(--orange); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transition: .2s;
}
.thumb:hover .play { transform: scale(1.12); }

.date {
  display: flex; justify-content: flex-end; align-items: center; gap: 5px;
  margin: 12px 8px 0; font-size: .6rem; color: var(--muted);
}
.date span {
  display: inline-flex; align-items: center; gap: 5px;
  background: #1b1726; padding: 3px 8px; border-radius: 6px;
}

.info { margin: 0 8px; }
.info h3 { font-size: .85rem; font-weight: 700; margin-top: -4px; }
.secure { display: flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--muted); margin-top: 5px; padding-bottom: 12px; border-bottom: 1px solid #352f47; }

.bottom { display: flex; align-items: flex-end; justify-content: space-between; margin: 12px 8px 0; }
.price small { display: block; font-size: .55rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.price strong {
  font-size: 1.2rem; font-weight: 800; color: var(--green);
  text-shadow: 0 0 12px rgba(74, 222, 128, .55);
}

.btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: rgba(139, 92, 246, .12); color: #c4b5fd; font-weight: 700; font-size: .72rem;
  border: 1.5px solid var(--orange); border-radius: 9px; padding: 9px 14px;
  box-shadow: 0 0 12px rgba(139, 92, 246, .3); transition: .2s;
}
.btn:hover { background: var(--orange); color: #fff; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: none;
  align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal.open { display: flex; }
.modal-box { position: relative; width: min(900px, 100%); }
.modal-box video { width: 100%; max-height: 80vh; border-radius: 12px; background: #000; }
.modal-close {
  position: absolute; top: -38px; right: 0; background: none; border: 0;
  color: #fff; font-size: 2rem; cursor: pointer;
}
.no-video { background: var(--card); padding: 40px 24px; border-radius: 12px; text-align: center; color: var(--muted); }

/* ===== Celular ===== */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--orange); }
.online { display: grid; place-items: center; width: 14px; height: 14px; }
.online svg { width: 70%; height: 70%; }
.card:hover h3, .card:focus-within h3 { color: var(--orange); }
@media (max-width: 560px) {
  :root { --bg: #0c0a12; --card: #13101a; --card-border: #2c2736; --orange: #8b5cf6; --green: #22c55e; --muted: #a3a3a3; }
  body { background: var(--bg); overflow-x: clip; }
  .container { padding: 32px 16px 40px; }
  .topbar { flex-direction: column; justify-content: center; text-align: center; gap: 22px; padding: 0 16px 20px; margin: 0 -16px 26px; border-bottom: 1px solid #2c2736; }
  .brand { flex-direction: column; gap: 18px; }
  .avatar { width: 76px; height: 76px; background: var(--orange); box-shadow: 0 6px 22px rgba(139, 92, 246, .35); }
  .avatar > svg { width: 26px; height: 26px; }
  .online { width: 18px; height: 18px; right: -2px; bottom: -2px; background: #22c55e; border: 2px solid var(--bg); }
  h1 { font-size: 1.5rem; line-height: 1.2; }
  .subtitle { justify-content: center; font-size: .875rem; margin-top: 12px; }
  .subtitle svg { width: 16px; height: 16px; }
  .sort-btn { font-size: .875rem; padding: 12px 22px; border-radius: 12px; background: #14111c; border-color: #352f47; }
  .grid { gap: 26px; }
  .card { padding: 0 0 18px; border-radius: 24px; }
  .thumb { border-radius: 0; border-bottom: 1px solid var(--card-border); }
  .play { width: 64px; height: 64px; background: var(--orange); }
  .play svg { width: 28px; height: 28px; }
  .date { margin: 16px 17px 0; font-size: .75rem; }
  .date span { padding: 6px 12px; border-radius: 8px; font-size: .75rem; gap: 7px; background: #1b1726; }
  .date svg { width: 15px; height: 15px; }
  .info { margin: 0 17px; }
  .info h3 { font-size: 1.05rem; margin-top: 8px; }
  .secure { font-size: .8rem; margin-top: 6px; padding-bottom: 16px; }
  .secure svg { width: 16px; height: 16px; }
  .bottom { margin: 16px 17px 0; flex-wrap: nowrap; }
  .price small { font-size: .7rem; letter-spacing: .06em; }
  .price strong { font-size: 1.35rem; }
  .btn { font-size: .875rem; padding: 12px 18px; border-radius: 12px; color: #c4b5fd; background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .75); box-shadow: none; }
  .btn svg { width: 18px; height: 18px; }
}

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
