:root {
  --bg: #0a0f18;
  --card: #0f1522;
  --card-border: #1c2840;
  --orange: #2d8cff;
  --orange-dark: #1d4ed8;
  --green: #4ade80;
  --text: #fff;
  --muted: #b5b5b5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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%, #121a29 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 #1a2438;
}
.brand { display: flex; align-items: center; gap: 14px; }
.avatar {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(145deg, #9cc9ff, var(--orange-dark));
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(45, 140, 255, .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: #1a2438; color: #fff; border: 1px solid #2a3750; 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(45, 140, 255, .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(96, 175, 255, .55), transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(29, 78, 216, .55), transparent 50%),
    linear-gradient(135deg, #07162e, #0c2f66 55%, #1d4ed8);
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #000; }
.thumb::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .14); z-index: 1; pointer-events: none; }
.thumb .play { z-index: 2; }
.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: #111826; 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 #212d45; }

.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(45, 140, 255, .12); color: #9cc9ff; font-weight: 700; font-size: .72rem;
  border: 1.5px solid var(--orange); border-radius: 9px; padding: 9px 14px;
  box-shadow: 0 0 12px rgba(45, 140, 255, .3); transition: .2s;
}
.btn:hover { background: var(--orange); color: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(4, 7, 13, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; z-index: 50; }
.modal.open { display: flex; }
.modal-box { position: relative; width: min(960px, 100%); }
.modal-close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.modal-close:hover, .modal-close:focus-visible { background: var(--orange); border-color: var(--orange); outline: none; }
body.lock-scroll { overflow: hidden; }

.player { position: relative; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(45, 140, 255, .35); user-select: none; -webkit-user-select: none; }
.player video { display: block; width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); background: #000; cursor: pointer; }
.player.yt { aspect-ratio: 16 / 9; }
.player.yt iframe { width: 100%; height: 100%; border: 0; display: block; }

.p-big {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transform: scale(.9); transition: .2s;
}
.p-big svg { width: 34px; height: 34px; margin-left: 3px; }
.player.paused .p-big { opacity: 1; pointer-events: auto; transform: none; }
.player.paused .p-big:hover { transform: scale(1.08); }
.p-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: .95rem; background: #0a0e16; }

.p-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 34px 14px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
  opacity: 0; transform: translateY(6px); transition: .25s; pointer-events: none;
}
.player.show .p-bar, .player.paused .p-bar { opacity: 1; transform: none; pointer-events: auto; }
.p-btn {
  flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.p-btn svg { width: 22px; height: 22px; }
.p-btn:hover, .p-btn:focus-visible { background: rgba(45, 140, 255, .35); outline: none; }
.p-full { background: rgba(45, 140, 255, .28); }
.p-time { flex: none; font-size: .78rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }

.p-seek { --p: 0%; flex: 1; min-width: 0; height: 24px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.p-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--orange) var(--p), rgba(255, 255, 255, .28) var(--p)); }
.p-seek::-moz-range-track { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .28); }
.p-seek::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--orange); }
.p-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 0 0 3px rgba(45, 140, 255, .5); }
.p-seek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(45, 140, 255, .5); }

.player.is-fs { border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.player.is-fs video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.player:fullscreen { border-radius: 0; }
.player:-webkit-full-screen { border-radius: 0; }
.player.is-fs .p-bar { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

.no-video { background: var(--card); padding: 44px 24px; border-radius: 16px; text-align: center; color: var(--muted); font-size: .95rem; border: 1px solid var(--card-border); }

@media (max-width: 560px) {
  .modal { padding: 60px 10px 16px; }
  .modal-box { width: 100%; }
  .player { border-radius: 14px; }
  .player video { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); }
  .p-bar { gap: 4px; padding: 30px 8px 8px; }
  .p-btn { width: 42px; height: 42px; }
  .p-time { font-size: .7rem; min-width: 30px; }
  .p-big { width: 68px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) { .p-bar, .p-big { transition: none; } }

/* ===== 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: #06090f; --card: #0c111b; --card-border: #1a2438; --orange: #2d8cff; --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 #1a2438; }
  .brand { flex-direction: column; gap: 18px; }
  .avatar { width: 76px; height: 76px; background: var(--orange); box-shadow: 0 6px 22px rgba(45, 140, 255, .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: #0a0f18; border-color: #212d45; }
  .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: #111826; }
  .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: #9cc9ff; background: rgba(45, 140, 255, .16); border-color: rgba(45, 140, 255, .75); box-shadow: none; }
  .btn svg { width: 18px; height: 18px; }
}

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