:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #13141a;
  --surface-2: #191a22;
  --text: #f5f4f7;
  --muted: #9a9ba8;
  --line: rgba(255,255,255,.09);
  --accent: #ff725e;
  --accent-2: #ffb36b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background:
    radial-gradient(ellipse at 75% -15%, rgba(135,69,99,.18), transparent 38%),
    radial-gradient(ellipse at 0% 35%, rgba(80,54,120,.09), transparent 30%), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.015em;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 20px; letter-spacing: -.06em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; padding-left: 2px; border-radius: 9px; background: linear-gradient(140deg, var(--accent), #bd4974); color: #fff; font-size: 11px; box-shadow: 0 5px 24px rgba(255,96,91,.25); }
.brand-dot { color: var(--accent); }
.top-nav { display: flex; gap: 34px; color: var(--muted); font-size: 13px; }
.top-nav a { transition: color .2s ease; }
.top-nav a:hover, .top-nav .nav-active { color: var(--text); }
.demo-label { display: inline-flex; align-items: center; gap: 8px; color: #c4c3cb; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #72d89b; box-shadow: 0 0 12px rgba(114,216,155,.55); }
.hero { min-height: 370px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 42px; padding: 60px 0 48px; }
.eyebrow { margin: 0 0 15px; color: #aaa9b5; font-size: 10px; font-weight: 760; letter-spacing: .16em; }
.eyebrow-line { width: 22px; height: 1px; display: inline-block; margin: 0 8px 3px 0; background: var(--accent); }
.hero h1 { max-width: 570px; margin: 0; font-size: clamp(44px, 6vw, 70px); line-height: .99; letter-spacing: -.075em; font-weight: 770; }
.hero h1 span { color: var(--accent); }
.hero-text { max-width: 470px; margin: 22px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.hero-link span { color: var(--accent); font-size: 17px; transition: transform .2s ease; }
.hero-link:hover span { transform: translateY(3px); }
.hero-aside { height: 220px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: radial-gradient(circle at 50% 48%, rgba(255,114,94,.28), transparent 27%), linear-gradient(145deg, #291b28, #17151e 60%, #171c25); }
.hero-aside:before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
.hero-orbit { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit-two { width: 290px; height: 290px; border-style: dashed; border-color: rgba(255,255,255,.09); }
.hero-play { z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), #cf4e70); color: #fff; font-size: 20px; box-shadow: 0 0 50px rgba(255,114,94,.3); }
.hero-caption { position: absolute; left: 25px; right: 25px; bottom: 22px; display: flex; align-items: end; justify-content: space-between; }
.hero-caption span { color: #aaa9b5; font-size: 8px; letter-spacing: .15em; }
.hero-caption strong { font-size: 13px; font-weight: 650; }
.hero-caption i { padding-inline: 7px; color: var(--accent); font-style: normal; }
.gallery-section { padding: 27px 0 52px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2, .sidebar-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.055em; }
.search-box { width: min(290px, 100%); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); }
.search-box > span { font-size: 23px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #797a87; }
.search-box kbd { flex-shrink: 0; padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; color: #777986; font: 9px ui-monospace, monospace; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 18px; }
.filter-chip { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #a5a5b0; cursor: pointer; font-size: 10px; transition: .2s ease; }
.filter-chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.filter-chip.is-active { border-color: rgba(255,114,94,.4); background: rgba(255,114,94,.11); color: #ff9a89; }
.filter-chip span { color: inherit; opacity: .7; font-size: 9px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.video-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.card-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 1.58 / 1; background: linear-gradient(135deg, #402735, #222c3a); }
.card-cover:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,5,9,.1), transparent 38%, rgba(4,5,9,.48)); }
.card-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .88; animation: slowZoom 15s ease-in-out infinite alternate; transition: opacity .25s ease; }
.video-card:hover .card-image { opacity: 1; animation-play-state: paused; transform: scale(1.08); }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.075) translateX(-1%); } }
.preview-label, .duration-label { z-index: 1; position: absolute; top: 12px; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid rgba(255,255,255,.19); border-radius: 6px; background: rgba(8,9,13,.52); color: #fff; backdrop-filter: blur(10px); font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.preview-label { left: 12px; }
.preview-label:before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.duration-label { right: 12px; font-size: 9px; letter-spacing: .04em; }
.play-button { z-index: 1; position: absolute; left: 50%; top: 50%; display: grid; width: 47px; height: 47px; place-items: center; padding-left: 3px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(14,14,20,.48); color: #fff; font-size: 14px; backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.video-card:hover .play-button { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 28px rgba(255,114,94,.38); }
.card-content { padding: 13px 14px 14px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #a5a5b1; font-size: 9px; }
.card-category { color: #ff9a89; font-weight: 700; }
.card-title { overflow: hidden; margin: 0; font-size: 15px; font-weight: 670; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; color: #858692; font-size: 9px; }
.card-arrow { color: #d6d4dd; font-size: 15px; transition: transform .2s ease; }
.video-card:hover .card-arrow { transform: translateX(3px); color: var(--accent); }
.loading-card { min-height: 160px; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 34px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.how-it-works { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 16px; margin: 6px 0 56px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(100deg, rgba(255,114,94,.06), rgba(255,255,255,.02)); }
.how-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,114,94,.25); border-radius: 10px; background: rgba(255,114,94,.1); color: var(--accent); font-size: 20px; }
.how-it-works .eyebrow { margin-bottom: 6px; }
.how-it-works h2 { margin: 0; font-size: 15px; letter-spacing: -.035em; }
.how-it-works p:last-child { max-width: 560px; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.flow-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: #c9c7cf; font-size: 8px; font-weight: 760; letter-spacing: .12em; white-space: nowrap; }
.flow-pill b { color: var(--accent); font-size: 14px; }
.site-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #777985; font-size: 9px; }
.brand-small { font-size: 15px; }
.brand-small .brand-mark { width: 23px; height: 23px; border-radius: 7px; font-size: 9px; }
.detail-header { margin-bottom: 27px; }
.back-link { color: #b5b3bf; font-size: 11px; transition: color .2s ease; }
.back-link span { margin-right: 5px; color: var(--accent); font-size: 16px; vertical-align: -1px; }
.back-link:hover { color: #fff; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; min-height: calc(100vh - 180px); padding-bottom: 60px; }
.player-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 14px; background: #050508; }
.player-shell video { width: 100%; height: 100%; display: block; object-fit: contain; background: #050508; }
.player-error { position: absolute; inset: auto 12px 46px; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(12,12,17,.86); color: #e7e3e5; font-size: 11px; }
.detail-meta { padding-top: 20px; }
.detail-meta .eyebrow { margin-bottom: 9px; }
.detail-meta h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.06em; line-height: 1.1; }
.meta-separator { padding: 0 5px; color: #6f707a; }
.detail-description { max-width: 730px; margin: 12px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.detail-note { display: flex; align-items: start; gap: 10px; max-width: 700px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.detail-note span { flex: 0 0 17px; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid rgba(255,114,94,.4); border-radius: 50%; color: var(--accent); font-size: 10px; font-weight: 750; }
.detail-note p { margin: 0; color: #aaa9b3; font-size: 10px; line-height: 1.55; }
.detail-sidebar { padding: 5px 0 0; }
.sidebar-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.sidebar-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
.sidebar-heading h2 { font-size: 20px; }
.sidebar-count { color: #797a86; font-size: 10px; }
.related-list { display: grid; gap: 10px; }
.related-card { display: grid; grid-template-columns: 106px 1fr; align-items: center; gap: 11px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); transition: border-color .2s ease, transform .2s ease; }
.related-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.related-cover { position: relative; overflow: hidden; aspect-ratio: 1.35 / 1; border-radius: 6px; background: #20212a; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-cover span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.13); color: white; font-size: 13px; }
.related-info small { display: block; margin-bottom: 5px; color: #ff9a89; font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.related-info strong { display: block; color: #eee; font-size: 10px; font-weight: 650; line-height: 1.4; }
.related-info em { display: block; margin-top: 5px; color: #858692; font-size: 8px; font-style: normal; }
.all-videos-link { display: flex; justify-content: space-between; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: #bbb9c3; font-size: 10px; }
.all-videos-link span { color: var(--accent); font-size: 15px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .72fr; gap: 24px; }
  .hero-aside { height: 190px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 32px, 500px); }
  .site-header { height: 66px; }
  .top-nav { display: none; }
  .demo-label { font-size: 8px; }
  .hero { display: block; padding: 47px 0 35px; }
  .hero h1 { max-width: 410px; font-size: clamp(43px, 12vw, 58px); }
  .hero-text { margin: 16px 0 18px; font-size: 13px; }
  .hero-aside { height: 145px; margin-top: 28px; }
  .hero-orbit { width: 145px; height: 145px; }
  .orbit-two { width: 205px; height: 205px; }
  .hero-play { width: 48px; height: 48px; font-size: 15px; }
  .hero-caption { left: 18px; right: 18px; bottom: 15px; }
  .hero-caption span { font-size: 7px; }
  .section-heading { align-items: start; flex-direction: column; }
  .search-box { width: 100%; }
  .video-grid { gap: 11px; }
  .card-cover { aspect-ratio: 1.2 / 1; }
  .card-content { padding: 10px; }
  .card-title { font-size: 12px; }
  .card-topline, .card-foot { font-size: 8px; }
  .play-button { width: 39px; height: 39px; }
  .filter-row { gap: 6px; }
  .filter-chip { min-height: 30px; padding: 0 10px; font-size: 9px; }
  .how-it-works { grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 35px; padding: 15px; }
  .how-icon { width: 34px; height: 34px; }
  .flow-pill { grid-column: 1 / -1; justify-content: center; margin-top: 2px; }
  .site-footer { min-height: 62px; gap: 12px; font-size: 8px; }
  .detail-header { margin-bottom: 16px; }
  .detail-header .demo-label { display: none; }
  .detail-layout { display: flex; flex-direction: column; gap: 32px; padding-bottom: 38px; }
  .player-shell { border-radius: 10px; }
  .detail-meta { padding-top: 15px; }
  .detail-meta h1 { font-size: 29px; }
  .detail-description { font-size: 12px; }
  .detail-sidebar { padding-top: 0; }
  .related-list { grid-template-columns: 1fr; }
  .back-link { font-size: 10px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 24px); }
  .video-grid { grid-template-columns: 1fr; }
  .card-cover { aspect-ratio: 1.55 / 1; }
  .brand { font-size: 17px; }
  .hero h1 { font-size: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Galeria completa sem rolagem */
html:has(body[data-page="gallery"]) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body[data-page="gallery"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #050507;
}
body[data-page="gallery"] .gallery-screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
}
body[data-page="gallery"] .video-grid.full-screen {
  width: min(1120px, 100%);
  height: min(590px, calc(100svh - 48px));
  min-height: min(380px, calc(100svh - 48px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: auto;
  padding: 0;
  background: transparent;
}
body[data-page="gallery"] .video-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #111;
  box-shadow: none;
  transition: none;
}
body[data-page="gallery"] .video-card:hover {
  transform: none;
  border: 0;
  box-shadow: none;
}
body[data-page="gallery"] .card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #17171b;
}
body[data-page="gallery"] .card-cover:after {
  background: linear-gradient(180deg, rgba(0,0,0,.06), transparent 35%, rgba(0,0,0,.15));
}
body[data-page="gallery"] .card-image {
  opacity: .92;
  animation: slowZoom 18s ease-in-out infinite alternate;
  transition: transform .3s ease, opacity .3s ease;
}
body[data-page="gallery"] .video-card:hover .card-image {
  opacity: 1;
  transform: scale(1.08);
  animation-play-state: paused;
}
body[data-page="gallery"] .preview-label,
body[data-page="gallery"] .duration-label,
body[data-page="gallery"] .card-content {
  display: none;
}
body[data-page="gallery"] .play-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.88);
  background: rgba(8,8,10,.34);
  font-size: 12px;
}
body[data-page="gallery"] .video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: #fff;
  background: rgba(8,8,10,.6);
  box-shadow: 0 0 25px rgba(0,0,0,.25);
}
@media (max-width: 900px) {
  body[data-page="gallery"] .gallery-screen {
    height: 100%;
    min-height: 0;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  body[data-page="gallery"] .video-grid.full-screen {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  body[data-page="gallery"] .play-button {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  body[data-page="gallery"] .video-grid.full-screen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}
