/* =====================================================================
   VAI FLIX — visual
   ===================================================================== */
:root {
  --bg: #07060c;
  --bg2: #0e0c17;
  --surface: #14111f;
  --surface2: #1c182c;
  --surface3: #272140;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --text: #f7f5ff;
  --muted: #a7a2bf;
  --dim: #6f6a8a;
  --pink: #ff2e7e;
  --orange: #ff7a1a;
  --yellow: #ffc83d;
  --violet: #7b5cff;
  --green: #2fd27e;
  --red: #ff4d5e;
  --grad: linear-gradient(100deg, #ff2e7e 0%, #ff7a1a 60%, #ffc83d 100%);
  --glow: 0 14px 40px -12px rgba(255, 46, 126, .75);
  --radius: 16px;
  --pad: clamp(16px, 4vw, 56px);
  --display: "Unbounded", system-ui, sans-serif;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--pink); color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 26px; height: 26px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* brilho de fundo */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(130px);
}
.ambient::before { background: var(--pink); opacity: .16; top: -32vmax; left: -22vmax; }
.ambient::after { background: var(--violet); opacity: .16; bottom: -36vmax; right: -26vmax; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 6px 18px rgba(255, 46, 126, .55)); }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }

/* ---------- botões ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 14px; font-weight: 800; font-size: 16px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #1d0812; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(255, 46, 126, .95); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%); transition: transform .7s;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); color: #e9e6f6; }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.btn-danger { background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .35); color: #ff98a2; }
.btn-danger:hover { background: rgba(255, 77, 94, .22); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; gap: 8px; }
.btn-xs { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); transform: scale(1.05); }

/* =====================================================================
   TELA DE LOGIN
   ===================================================================== */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.wall { position: fixed; inset: -25vh -25vw; z-index: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; transform: rotate(-9deg); opacity: .6; }
.wall-row { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row:nth-child(even) { animation-direction: reverse; animation-duration: 85s; }
.wall-row > * { width: 300px; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 20px 40px -20px #000; }
.tile { display: grid; place-items: center; font-size: 64px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.login-shade { position: fixed; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(7, 6, 12, .55) 0%, rgba(7, 6, 12, .9) 60%, var(--bg) 100%); }
.login-card {
  position: relative; z-index: 2; width: min(440px, 100%); padding: 44px 34px 30px; border-radius: 28px; text-align: center;
  background: rgba(16, 13, 27, .74); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95);
  animation: pop .7s cubic-bezier(.2, .8, .2, 1);
}
.login-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 46, 126, .9), rgba(255, 122, 26, .25) 35%, transparent 55%, rgba(123, 92, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.login-card .logo { font-size: 34px; gap: 14px; margin-bottom: 16px; }
.login-card .logo img { width: 54px; height: 54px; }
.login-tag { color: #c9c4dd; font-size: 15px; margin: 0 auto 30px; max-width: 330px; text-wrap: balance; }
.field-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #d6d2e8; margin-bottom: 9px; }
.key-input {
  display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 18px; border-radius: 16px;
  background: rgba(7, 6, 12, .7); border: 1.5px solid var(--line2); transition: .25s;
}
.key-input:focus-within { border-color: var(--pink); box-shadow: 0 0 0 5px rgba(255, 46, 126, .18); }
.key-input .ic { color: var(--pink); }
.key-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.key-input input::placeholder { color: var(--dim); }
.login-card .btn { width: 100%; height: 58px; margin-top: 16px; font-size: 17px; }
.login-err { min-height: 22px; margin-top: 14px; color: #ff98a2; font-weight: 700; font-size: 14px; }
.login-foot { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.login-foot a { font-weight: 800; }
.login-foot a:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.shake { animation: shake .45s; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.login-card.ok { animation: zoomOut .5s forwards; }
@keyframes zoomOut { to { opacity: 0; transform: scale(1.06); filter: blur(6px); } }

/* =====================================================================
   SITE (catálogo)
   ===================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 72px; display: flex; align-items: center; gap: 26px;
  padding: 0 var(--pad); border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 6, 12, .9), rgba(7, 6, 12, 0));
  transition: background .3s, border-color .3s;
}
.topbar.solid { background: rgba(11, 9, 19, .82); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav { display: flex; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; transition: .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a.on { color: var(--text); background: rgba(255, 255, 255, .1); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.searchbox {
  display: flex; align-items: center; gap: 9px; width: 240px; height: 42px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: .3s; cursor: text;
}
.searchbox:focus-within { width: 300px; border-color: rgba(255, 46, 126, .6); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(255, 46, 126, .15); }
.searchbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.searchbox input::-webkit-search-cancel-button { filter: invert(1); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1d0812; font-weight: 900; font-size: 16px; box-shadow: var(--glow); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 16px;
  background: rgba(22, 19, 36, .97); border: 1px solid var(--line2); box-shadow: 0 30px 60px -20px #000;
  animation: pop .2s; z-index: 50;
}
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 15px; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu a, .menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .07); }
.admin-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14px; background: rgba(255, 46, 126, .14); border: 1px solid rgba(255, 46, 126, .4); color: #ffc0d6; transition: .2s; }
.admin-pill:hover { background: rgba(255, 46, 126, .24); }

/* destaque (carrossel) */
.hero { position: relative; height: min(90vh, 880px); min-height: 560px; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.1); }
.slide.on .slide-bg { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02) translate3d(-1.2%, -1%, 0); } }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 12, .98) 0%, rgba(7, 6, 12, .93) 36%, rgba(7, 6, 12, .62) 56%, rgba(7, 6, 12, .1) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 12, 0) 42%),
    radial-gradient(110% 90% at 0% 100%, rgba(255, 46, 126, .28), transparent 60%);
}
.slide-info { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(130px, 21vh, 210px); width: min(720px, calc(100% - 2 * var(--pad))); }
@media (min-width: 761px) and (max-height: 800px) {
  .hero-title, .hero-desc { -webkit-line-clamp: 2; }
}
.slide.on .slide-info > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.slide.on .slide-info > :nth-child(2) { animation-delay: .07s; }
.slide.on .slide-info > :nth-child(3) { animation-delay: .14s; }
.slide.on .slide-info > :nth-child(4) { animation-delay: .21s; }
.slide.on .slide-info > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.badge-hot {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 46, 126, .16); border: 1px solid rgba(255, 46, 126, .45); color: #ffc0d6;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge-hot i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 46, 126, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 46, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 126, 0); } }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, min(5.4vw, 7.6vh), 76px); line-height: 1; letter-spacing: -.035em; margin: 18px 0 16px; padding-bottom: .06em; text-wrap: balance; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; color: #e2dff0; font-weight: 700; font-size: 14px; }
.hero-meta > span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px 0 0; border-radius: 50%; background: var(--dim); vertical-align: middle; }
.hero-desc { max-width: 560px; margin-bottom: 26px; color: #dad6ea; font-size: clamp(15px, 1.25vw, 17px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(136px, 21.5vh, 216px); display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 36px; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.hero-dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; animation: fillbar 8s linear forwards; }
.hero.paused .hero-dots button.on::after { animation-play-state: paused; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid var(--line2); color: #e2def2; white-space: nowrap; }
a.pill:hover, button.pill:hover { background: rgba(255, 46, 126, .16); border-color: rgba(255, 46, 126, .5); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* categorias (chips) */
.chips-bar { position: sticky; top: 72px; z-index: 30; margin-top: -120px; padding: 14px 0 12px; transition: background .3s; }
.chips-bar.flat { margin-top: 0; }
.chips-bar.stuck { background: rgba(11, 9, 19, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--pad); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  background: rgba(20, 17, 31, .8); border: 1px solid var(--line2); color: #dcd8ee; font-weight: 700; font-size: 14px; transition: .2s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.chip.on { background: var(--grad); color: #1d0812; border-color: transparent; box-shadow: var(--glow); }
.chip small { font-size: 12px; opacity: .65; font-weight: 800; }

/* fileiras */
.content { position: relative; z-index: 2; padding: 18px 0 70px; min-height: 40vh; }
.content.page { padding-top: 0; }
.row { position: relative; margin-bottom: 40px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--pad); margin-bottom: 6px; }
.row-title { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.015em; }
.row-more { font-size: 13px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: .2s; }
.row-more:hover { color: #ff8fb7; }
.track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 14px var(--pad) 24px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > .card { flex: 0 0 clamp(240px, 23vw, 340px); scroll-snap-align: start; }
.track-wrap { position: relative; }
.row-arrow {
  position: absolute; z-index: 5; top: calc(14px + clamp(67px, 6.47vw, 96px)); width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 13, 24, .88); border: 1px solid var(--line2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: .2s; box-shadow: 0 10px 30px -10px #000;
}
.track-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.l { left: 10px; } .row-arrow.r { right: 10px; }
.row-arrow:hover { background: var(--surface3); transform: scale(1.08); }
@media (hover: none) { .row-arrow { display: none; } }

/* card de vídeo */
.card { position: relative; cursor: pointer; isolation: isolate; border-radius: var(--radius); transition: transform .4s cubic-bezier(.2, .8, .2, 1); outline: none; }
.card-frame { position: relative; border-radius: var(--radius); }
.card-frame::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--radius) + 2px);
  background: var(--grad); opacity: 0; transition: opacity .3s; box-shadow: 0 22px 50px -16px rgba(255, 46, 126, .8);
}
.card:hover, .card:focus-visible { transform: translateY(-6px); }
.card:hover .card-frame::before, .card:focus-visible .card-frame::before { opacity: 1; }
.card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface2); box-shadow: 0 14px 30px -18px #000; }
.card-media > img, .card-media > .nocover { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media > img, .card:hover .card-media > .nocover { transform: scale(1.08); }
.card-media::after { content: ""; position: absolute; inset: 0; background: rgba(7, 6, 12, 0); transition: background .3s; }
.card:hover .card-media::after, .card:focus-visible .card-media::after { background: rgba(7, 6, 12, .28); }
.card-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .96); color: #160a12;
  transform: scale(.5); opacity: 0; transition: .35s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.card-play .ic { margin-left: 3px; }
.card:hover .card-play, .card:focus-visible .card-play { transform: scale(1); opacity: 1; }
.card-body { padding: 12px 4px 0; }
.card-title { font-weight: 800; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.card:hover .card-title { color: #fff; }
.card-sub { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tag { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 900; letter-spacing: .08em; background: var(--grad); color: #1d0812; }
.card-dur { position: absolute; z-index: 2; bottom: 10px; right: 10px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; background: rgba(7, 6, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); }
.card-progress i { display: block; height: 100%; background: var(--grad); }
.nocover { display: grid; place-items: center; padding: 16px; text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(18px, 2vw, 26px); line-height: 1.05; letter-spacing: -.02em; color: rgba(255, 255, 255, .95); text-shadow: 0 4px 20px rgba(0, 0, 0, .3); }

/* grade (categoria / busca / minha lista) */
.page-head { position: relative; padding: 120px var(--pad) 26px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 10% 0%, rgba(255, 46, 126, .22), transparent 60%), radial-gradient(50% 100% at 90% 0%, rgba(123, 92, 255, .2), transparent 60%); }
.page-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ff8fb7; }
.page-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.02; margin-top: 8px; }
.page-sub { color: var(--muted); font-weight: 600; margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 18px; padding: 10px var(--pad) 0; }

/* vazio */
.empty { position: relative; z-index: 2; display: grid; place-items: center; text-align: center; padding: 160px var(--pad) 80px; }
.empty-art { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; font-size: 56px; background: var(--grad); box-shadow: var(--glow); transform: rotate(-6deg); margin-bottom: 30px; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: rotate(-2deg) translateY(-10px); } }
.empty h1 { font-family: var(--display); font-size: clamp(24px, 3.5vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 26px; }
.empty-small { padding: 40px var(--pad); color: var(--muted); font-weight: 600; }

/* player */
.modal { position: fixed; inset: 0; z-index: 100; display: none; overflow-y: auto; background: rgba(4, 3, 8, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 36px 24px 60px; }
.modal.open { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; max-width: 1120px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 24px; overflow: hidden; box-shadow: 0 50px 140px -30px #000; animation: pop .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; background: #000; }

/* ----- player próprio ----- */
.vfp { overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vfp video { object-fit: contain; pointer-events: none; }
.vfp.fs { aspect-ratio: auto; width: 100vw; height: 100vh; }
.vfp.idle.playing { cursor: none; }
.pl-layer { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.pl-big {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #1d0812; box-shadow: var(--glow), 0 0 0 10px rgba(255, 255, 255, .08);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.pl-big .ic { width: 34px; height: 34px; margin-left: 4px; }
.pl-big:hover { transform: scale(1.08); }
.vfp.playing .pl-big, .vfp.waiting .pl-big { opacity: 0; transform: scale(.7); pointer-events: none; }
.pl-spin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .18); border-top-color: var(--pink); animation: spin .8s linear infinite; display: none; pointer-events: none; }
.vfp.waiting .pl-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-flash { position: absolute; z-index: 2; left: 50%; top: 50%; padding: 10px 18px; border-radius: 999px; background: rgba(7, 6, 12, .72); font-weight: 900; font-size: 18px; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.pl-flash.show { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -40%); } 25% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.pl-ui {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 56px 16px 10px;
  background: linear-gradient(0deg, rgba(4, 3, 8, .92) 0%, rgba(4, 3, 8, .55) 55%, rgba(4, 3, 8, 0) 100%);
  transition: opacity .3s, transform .3s;
}
.vfp.idle.playing .pl-ui { opacity: 0; transform: translateY(10px); pointer-events: none; }
.pl-prog { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.pl-track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: height .15s; }
.pl-prog:hover .pl-track, .vfp.seeking .pl-track { height: 7px; }
.pl-buf, .pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; }
.pl-buf { background: rgba(255, 255, 255, .35); }
.pl-fill { background: var(--grad); }
.pl-knob { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 46, 126, .35); transform: scale(0); transition: transform .15s; }
.pl-prog:hover .pl-knob, .vfp.seeking .pl-knob { transform: scale(1); }
.pl-tip { position: absolute; bottom: 26px; left: 0; padding: 4px 9px; border-radius: 8px; background: rgba(7, 6, 12, .92); border: 1px solid var(--line2); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; transform: translateX(-50%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.pl-prog:hover .pl-tip, .vfp.seeking .pl-tip { opacity: 1; }
.pl-row { display: flex; align-items: center; gap: 4px; }
.pl-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; transition: background .15s, transform .15s; }
.pl-btn:hover { background: rgba(255, 255, 255, .12); }
.pl-btn:active { transform: scale(.92); }
.pl-btn .ic { width: 22px; height: 22px; }
.pl-skip b { position: absolute; left: 0; right: 0; top: 50%; margin-top: -5px; font-size: 8.5px; font-weight: 900; line-height: 10px; text-align: center; }
.pl-vol { display: flex; align-items: center; }
.pl-vol input {
  --v: 100%;
  width: 0; opacity: 0; height: 4px; margin: 0; border-radius: 999px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, #fff var(--v), rgba(255, 255, 255, .25) var(--v)); transition: width .2s, opacity .2s, margin .2s;
}
.pl-vol:hover input, .pl-vol:focus-within input { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.pl-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.pl-vol input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.pl-time { margin-left: 6px; font-size: 13px; font-weight: 700; color: #ece9f8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-gap { flex: 1; }
.pl-q { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 11px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; transition: background .15s; }
.pl-q:hover, .vfp.menu-open .pl-q { background: rgba(255, 255, 255, .2); }
.pl-q.hd::after { content: "HD"; font-size: 9.5px; font-weight: 900; padding: 2px 5px; border-radius: 5px; background: var(--grad); color: #1d0812; }
.pl-menu {
  position: absolute; z-index: 6; right: 14px; bottom: 70px; width: 230px; max-height: calc(100% - 90px); overflow-y: auto;
  padding: 8px; border-radius: 16px; background: rgba(16, 13, 27, .97); border: 1px solid var(--line2);
  box-shadow: 0 24px 60px -12px #000; animation: pop .2s; scrollbar-width: thin;
}
.pl-menu h4 { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pl-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #e9e6f6; text-align: left; }
.pl-menu button:hover:not([disabled]) { background: rgba(255, 255, 255, .08); }
.pl-menu button small { color: var(--muted); font-weight: 700; }
.pl-menu button em { font-style: normal; font-size: 9.5px; font-weight: 900; padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); color: #ffc0d6; }
.pl-menu button.on { color: #fff; }
.pl-menu button.on::after { content: "✓"; margin-left: auto; font-weight: 900; color: #ff8fb7; }
.pl-menu button[disabled] { cursor: default; }
.pl-menu .pl-x { display: none; }
@media (max-width: 760px) {
  .pl-ui { padding: 40px 8px 4px; }
  .pl-btn { width: 38px; height: 38px; }
  .pl-skip, .pl-vol input { display: none; }
  .pl-time { font-size: 12px; }
  .pl-q { height: 32px; padding: 0 10px; font-size: 12px; }
  .pl-big { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  /* no celular o menu ocupa o player inteiro, com as duas colunas lado a lado */
  .pl-menu {
    inset: 6px; width: auto; max-height: none; display: grid; grid-template-columns: 1fr 1fr; align-content: start;
    gap: 0 8px; padding: 6px 8px; border-radius: 14px;
  }
  .pl-menu h4 { padding: 6px 8px 2px; font-size: 10.5px; }
  .pl-menu button { padding: 4px 8px; font-size: 13px; border-radius: 8px; }
  .pl-menu .pl-sec + .pl-sec { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 2px; }
  .pl-menu .pl-sec + .pl-sec h4 { grid-column: 1 / -1; }
  .pl-menu .pl-x {
    display: grid; place-items: center; position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0;
    border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 13px;
  }
}
@media (hover: none) { .pl-vol input { display: none; } }

/* curtir */
.btn.liked { background: rgba(255, 46, 126, .16); border-color: rgba(255, 46, 126, .55); color: #ffc0d6; }
.btn.liked .ic { fill: currentColor; }
.btn.pulse .ic { animation: likepop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes likepop { 40% { transform: scale(1.45) rotate(-12deg); } }
.sheet-close { position: absolute; z-index: 5; top: 14px; right: 14px; background: rgba(7, 6, 12, .7); border-color: var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; padding: 28px clamp(18px, 3vw, 36px) 30px; }
.sheet-title { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px; }
.sheet-desc { color: #d6d2e6; margin-top: 16px; white-space: pre-line; }
.sheet-side { display: flex; flex-direction: column; gap: 10px; }
.sheet-side .btn { width: 100%; }
.sheet-side .btn.on { border-color: rgba(255, 46, 126, .55); background: rgba(255, 46, 126, .14); color: #ffc0d6; }
.side-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }
.related { padding: 0 clamp(18px, 3vw, 36px) 34px; }
.related h3 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.related .grid { padding: 6px 0 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* rodapé */
.footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 30px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .logo { font-size: 16px; }
.footer .logo img { width: 26px; height: 26px; }
.footer a:hover { color: #fff; }

/* avisos */
.toasts { position: fixed; z-index: 300; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; background: rgba(30, 26, 48, .97); border: 1px solid var(--line2); box-shadow: 0 20px 50px -10px #000; font-weight: 700; font-size: 14px; animation: toastIn .35s cubic-bezier(.2, .8, .2, 1); }
.toast.ok .ic { color: var(--green); }
.toast.err .ic { color: var(--red); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* =====================================================================
   PAINEL DO CRIADOR
   ===================================================================== */
.admin-main { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 108px var(--pad) 80px; }
.admin-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; background: rgba(255, 255, 255, .08); border: 1px solid var(--line2); color: #d6d2e8; }
.admin-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.admin-hello h1 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.admin-hello p { color: var(--muted); margin-top: 6px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad); opacity: .1; filter: blur(10px); }
.stat-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 46, 126, .14); color: #ff8fb7; }
.stat b { display: block; margin-top: 14px; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tabs { display: flex; gap: 6px; padding: 6px; margin-bottom: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 13px; color: var(--muted); font-weight: 800; font-size: 14px; white-space: nowrap; transition: .2s; }
.tab:hover { color: #fff; }
.tab.on { background: var(--surface3); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.tab .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, .1); }
.panel { display: none; }
.panel.on { display: block; animation: fade .3s; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.panel-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.box + .box { margin-top: 16px; }
.box h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.box > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* lista de vídeos do painel */
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.vitem { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: .25s; }
.vitem:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 24px 50px -24px #000; }
.vitem-cover { position: relative; aspect-ratio: 16 / 9; background: var(--surface2); overflow: hidden; }
.vitem-cover > img, .vitem-cover > .nocover { width: 100%; height: 100%; object-fit: cover; }
.vitem-cover .card-dur { top: auto; bottom: 10px; }
.star-btn { position: absolute; z-index: 2; top: 10px; right: 10px; height: 34px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; background: rgba(7, 6, 12, .75); border: 1px solid var(--line2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: .2s; }
.star-btn:hover { background: rgba(7, 6, 12, .9); }
.star-btn.on { background: var(--grad); color: #1d0812; border-color: transparent; }
.star-btn.on .ic { fill: currentColor; }
.vitem-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 16px; }
.vitem-title { font-weight: 800; font-size: 16px; line-height: 1.3; }
.vitem-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.vitem-meta span { display: inline-flex; align-items: center; gap: 5px; }
.vitem-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.vitem-actions .btn { flex: 1; }
.proc {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 16px 18px;
  background: rgba(7, 6, 12, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.proc b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.proc b .ic { color: #ff8fb7; }
.proc[data-status="processando"] b .ic { animation: spin 2.4s linear infinite; }
.proc .bar { height: 8px; }
.proc span { font-size: 12.5px; font-weight: 600; color: #d3cfe6; }
.proc.err b .ic { color: var(--red); }
.proc.err span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proc .btn { align-self: flex-start; }
.warn-box { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .35); color: #ffe3a3; font-size: 14px; }
.warn-box .ic { color: var(--yellow); margin-top: 1px; }
.warn-box code { font-family: var(--mono); background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 6px; }
.add-tile { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 260px; border-radius: 20px; border: 2px dashed var(--line2); color: var(--muted); font-weight: 800; transition: .2s; text-align: center; padding: 20px; }
.add-tile:hover { border-color: var(--pink); color: #fff; background: rgba(255, 46, 126, .05); }
.add-tile .plus { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #1d0812; box-shadow: var(--glow); }

/* formulários */
.inp { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line2); outline: 0; transition: border-color .2s, box-shadow .2s; }
textarea.inp { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a7a2bf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.inp:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 46, 126, .16); }
.inp::placeholder { color: var(--dim); }
.inp:disabled { opacity: .6; cursor: not-allowed; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lbl { font-size: 13px; font-weight: 800; color: #dcd8ee; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lbl small { font-weight: 600; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.hint.warn { color: #ffcf7a; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line2); }
.seg button { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 800; color: var(--muted); }
.seg button.on { background: var(--surface3); color: #fff; }

/* modal do formulário */
.dialog { position: fixed; inset: 0; z-index: 120; display: none; overflow-y: auto; padding: 28px 16px; background: rgba(4, 3, 8, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dialog.open { display: block; animation: fade .2s; }
.dialog-card { max-width: 920px; margin: 0 auto; border-radius: 26px; background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 50px 140px -30px #000; animation: pop .35s cubic-bezier(.2, .8, .2, 1); }
.dialog-card.small { max-width: 460px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; padding: 22px 24px; }
.dialog-body .span2 { grid-column: 1 / -1; }
.dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.confirm-body { padding: 22px 24px 6px; color: #d6d2e6; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  aspect-ratio: 16 / 9; padding: 20px; border-radius: 16px; border: 2px dashed var(--line2); background: rgba(255, 255, 255, .02);
  color: var(--muted); font-size: 13px; cursor: pointer; transition: .2s; overflow: hidden;
}
.drop:hover, .drop.over { border-color: var(--pink); background: rgba(255, 46, 126, .06); color: #fff; }
.drop b { color: #fff; font-size: 15px; }
.drop-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; background: rgba(255, 46, 126, .14); color: #ff8fb7; }
.drop.has { border-style: solid; padding: 0; border-color: var(--line2); }
.drop > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .swap { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; }
.drop.has:hover .swap { display: inline-flex; }
.file-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line2); }
.file-card .drop-ic { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.file-card div { min-width: 0; flex: 1; }
.file-card b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card span { font-size: 12px; color: var(--muted); font-weight: 600; }
.vprev { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vprev video { width: 100%; height: 100%; object-fit: contain; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.capture { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 46, 126, .1), rgba(123, 92, 255, .1)); border: 1px solid rgba(255, 46, 126, .3); }
.capture-ctrl { display: flex; flex-direction: column; gap: 12px; }
.capture-ctrl b { font-size: 15px; }
.range { width: 100%; accent-color: var(--pink); height: 28px; }
.time-read { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-opt { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line2); font-weight: 700; font-size: 13.5px; color: #d6d2e8; transition: .15s; }
.cat-opt:hover { border-color: rgba(255, 255, 255, .3); }
.cat-opt.on { background: rgba(255, 46, 126, .16); border-color: var(--pink); color: #fff; }
.cat-opt.on::before { content: "✓"; font-weight: 900; color: #ff8fb7; }
.cat-opt.add { border-style: dashed; color: var(--muted); }
.cat-new { display: inline-flex; gap: 6px; }
.cat-new .inp { height: 38px; width: 190px; border-radius: 999px; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track-sw { position: relative; width: 46px; height: 26px; flex: none; border-radius: 999px; background: var(--surface3); transition: .2s; }
.switch .track-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .25s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + .track-sw { background: var(--grad); }
.switch input:checked + .track-sw::after { transform: translateX(20px); }
.switch input:focus-visible + .track-sw { box-shadow: 0 0 0 4px rgba(255, 46, 126, .3); }
.switch b { display: block; font-size: 14px; }
.switch small { color: var(--muted); font-size: 12.5px; }

.upload-progress { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.upload-progress span { font-size: 13px; font-weight: 700; color: #dcd8ee; }
.bar { height: 10px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* categorias no painel */
.cat-form { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; }
.cat-form .emoji-inp { text-align: center; font-size: 22px; padding: 0; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.emoji-row button { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; background: var(--bg); border: 1px solid var(--line); transition: .15s; }
.emoji-row button:hover { border-color: var(--pink); transform: translateY(-2px); }
.clist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.citem { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.citem-emoji { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--bg); border: 1px solid var(--line); }
.citem-name { flex: 1; min-width: 0; }
.citem-name b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem-name span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.citem-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.citem .inp { height: 40px; }
.order-btns { display: flex; flex-direction: column; gap: 2px; }
.order-btns button { width: 28px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.order-btns button:hover:not([disabled]) { background: rgba(255, 255, 255, .08); color: #fff; }
.order-btns button[disabled] { opacity: .25; cursor: default; }

/* keys */
.key-new { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; align-items: end; }
.key-born { margin-top: 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 46, 126, .14), rgba(255, 122, 26, .1)); border: 1px solid rgba(255, 46, 126, .4); animation: pop .4s cubic-bezier(.2, .8, .2, 1); }
.key-born small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff8fb7; }
.key-big { display: block; margin: 8px 0 14px; font-family: var(--mono); font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: .08em; word-break: break-all; }
.klist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
/* cada key: em cima nome, código, situação e botões; embaixo a validade, o aparelho e o último acesso */
.kitem {
  display: grid; grid-template-columns: minmax(140px, 1fr) auto 140px 372px;
  grid-template-areas: "name code status actions" "info info info info";
  align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.kitem.off { opacity: .6; }
.kitem-name { grid-area: name; min-width: 0; }
.kitem .kcode { grid-area: code; }
.kitem .status { grid-area: status; }
.kitem-name b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kitem-name span, .kitem-dates { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kitem-dates { grid-area: info; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.kitem-dates > span + span::before { content: "•"; margin: 0 10px; color: var(--dim); }
.kcode { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--mono); font-weight: 700; font-size: 14.5px; letter-spacing: .06em; padding: 7px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); transition: .15s; max-width: 100%; }
.kcode:hover { border-color: var(--pink); }
.kcode .ic { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 800; justify-self: start; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { background: rgba(47, 210, 126, .13); color: #6fe3a6; }
.status.off { background: rgba(255, 255, 255, .08); color: var(--muted); }
.status.exp { background: rgba(255, 77, 94, .14); color: #ff98a2; }
.status.warn { background: rgba(255, 200, 61, .13); color: #ffd572; }
.linkbtn { margin-left: 4px; padding: 0; font-size: 12.5px; font-weight: 800; color: #ff8fb7; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: #fff; }
.kitem-actions { grid-area: actions; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* loja no Discord */
.loja-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.loja-erro { grid-column: 1 / -1; margin: 0; }
.lcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lcard-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.lcard-top b { flex: 1; font-size: 15px; }
.lcard p { color: var(--muted); font-size: 13.5px; }
.lcard p b { color: #fff; }
.lcard code, .steps code, .hint code { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .35); word-break: break-all; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; pointer-events: none; }
.money .inp { padding-left: 42px; font-variant-numeric: tabular-nums; }
.steps { display: flex; flex-direction: column; gap: 12px; padding-left: 20px; color: #d6d2e8; font-size: 14px; }
.steps a { color: #ff8fb7; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.sale { display: grid; grid-template-columns: minmax(150px, 1fr) 84px 110px 140px minmax(230px, auto); align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sale-who b { display: block; font-size: 14.5px; }
.sale-who span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sale-val { font-variant-numeric: tabular-nums; }
.sale .status { justify-self: start; }
.sale .kcode { justify-self: start; font-size: 13px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-grid .box + .box { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Discord: moderação e novidades */
.h-ic { display: flex; align-items: center; gap: 8px; }
.h-ic .ic { color: #ff8fb7; }
.srv-lines { display: flex; flex-direction: column; gap: 8px; }
.srv-lines:empty { display: none; }
.srv-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.srv-line .ic { flex: none; margin-top: 2px; }
.srv-line b { color: #fff; }
.srv-line.ok .ic { color: var(--green); }
.srv-line.warn { color: #ffcf7a; }
.srv-line.warn b { color: #ffe3a3; }
.mod-lista { border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line2); }
.mod-lista summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.mod-lista summary::-webkit-details-marker { display: none; }
.mod-lista summary small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.mod-lista summary::after { content: "Ver e editar"; margin-left: auto; font-size: 12.5px; font-weight: 800; color: #ff8fb7; }
.mod-lista[open] summary::after { content: "Esconder"; }
.mod-lista > div { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.mono { font-family: var(--mono); font-size: 13px; }
.puni { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(110px, 240px) 150px; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.puni .status { justify-self: start; }
.puni-erro { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: #ffcf7a; }
.puni-erro .ic { flex: none; margin-top: 1px; }
.spoiler { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .4); font-family: var(--mono); font-size: 13px; color: #e2def2; filter: blur(5px); transition: filter .2s; }
.spoiler.show { filter: none; }
.btn-icon { flex: none !important; width: 38px; padding: 0 !important; justify-content: center; }
.tag-nov { color: #ff8fb7; }

/* =====================================================================
   CELULAR
   ===================================================================== */
@media (max-width: 1080px) {
  .kitem { grid-template-columns: 1fr auto; grid-template-areas: "name status" "code code" "info info" "actions actions"; }
  .kitem .kcode { justify-self: start; }
  .kitem .status { justify-self: end; }
  .kitem-actions { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .loja-status { grid-template-columns: 1fr; }
  .sale { grid-template-columns: 1fr auto; }
  .sale .kcode { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
  .puni { grid-template-columns: 1fr auto; }
  .puni .spoiler { grid-column: 1 / -1; grid-row: 2; }
  .puni .puni-sem { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: 64px; gap: 12px; }
  .nav { display: none; }
  .logo { font-size: 18px; }
  .logo img { width: 30px; height: 30px; }
  .searchbox { width: 42px; padding: 0 12px; }
  .searchbox:focus-within { width: min(62vw, 260px); }
  .admin-pill span { display: none; }
  .admin-pill { width: 42px; padding: 0; justify-content: center; }
  .chips-bar { top: 64px; }
  .hero { height: 82vh; min-height: 560px; }
  .hero .m-views, .hero .m-likes { display: none; }
  .hero-desc { -webkit-line-clamp: 2; margin-bottom: 22px; }
  .hero-title { margin: 14px 0 12px; }
  .slide::after { background: linear-gradient(0deg, var(--bg) 4%, rgba(7, 6, 12, .92) 50%, rgba(7, 6, 12, .35) 100%); }
  .slide-info { bottom: 126px; }
  .hero-dots { left: var(--pad); right: auto; bottom: 104px; }
  .hero-btns .btn { flex: 1; padding: 0 16px; }
  .track > .card { flex-basis: 72vw; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
  .modal { padding: 0; }
  .sheet { border-radius: 0; border: 0; min-height: 100%; }
  .sheet-body { grid-template-columns: 1fr; gap: 20px; }
  .dialog { padding: 0; }
  .dialog-card { border-radius: 0; min-height: 100%; border: 0; }
  .dialog-body { grid-template-columns: 1fr; }
  .capture { grid-template-columns: 1fr; }
  .key-new { grid-template-columns: 1fr; }
  .cat-form { grid-template-columns: 64px 1fr; }
  .cat-form .btn { grid-column: 1 / -1; }
  .citem { flex-wrap: wrap; }
  .citem-actions { width: 100%; justify-content: flex-start; }
  .admin-tag, .hide-sm { display: none; }
  .kitem { padding: 14px; }
  .kitem-dates { flex-direction: column; align-items: flex-start; gap: 3px; }
  .kitem-dates > span + span::before { content: none; }
  .kitem-actions { gap: 6px; }
  .kitem-actions .btn-xs { padding: 0 9px; gap: 5px; font-size: 12.5px; }
  .kitem-actions .btn-xs:not(.btn-danger) .ic { display: none; }
  .login-card { padding: 36px 22px 24px; }
  .login-card .logo { font-size: 28px; }
  .wall-row > * { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
