@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: var(--reading-weight) var(--reading-size)/var(--reading-line) Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: var(--white); }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font: var(--entity-weight) var(--entity-size)/var(--entity-line) Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
h2 { font: var(--section-weight) var(--section-size)/var(--section-line) Inter, system-ui, sans-serif; margin-bottom: 16px; }
h3 { font: var(--body-weight) var(--body-size)/var(--body-line) Inter, system-ui, sans-serif; }
p + p { margin-top: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 64px)); margin: auto; }
.site-header { height: 64px; box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/* The logo, mark and name, is one drawing (assets/guve-logo.svg), the same in every page's header. */
.wordmark { display: flex; }
.wordmark img { width: auto; height: 22px; }
.outline-action { font: var(--compact-weight) var(--compact-size)/var(--compact-line) Inter, system-ui, sans-serif; }
/* The home's "Baixar o app", outlined: on these pages the conversion button leads. */
.text-link { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 600 14px/20px Inter, system-ui, sans-serif; }
.text-link:hover, .outline-action:hover { background: var(--canvas); }
.event-grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(280px, 340px); gap: 64px; padding-top: 32px; padding-bottom: 56px; }
.event-main { min-width: 0; }
/* The CMS's page crop (EventPreview.tsx), matching the app's photo frame. */
.cover { width: 100%; aspect-ratio: 390 / 315; object-fit: cover; border-radius: 20px; background: var(--canvas); }
.event-content { padding-top: 24px; }
.event-heading h1 { margin-bottom: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font: var(--tag-weight) var(--tag-size)/var(--tag-line) Inter, system-ui, sans-serif; color: var(--gray); margin-bottom: 2px; }
.tag svg { width: 12px; height: 12px; stroke-width: 2.2; }
.parties { margin-top: 12px; font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; color: var(--gray); }
.parties strong { font-weight: 500; color: var(--ink); }
.parties > a, .parties > summary, .party { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.parties > summary { cursor: pointer; list-style: none; }
.parties > summary::-webkit-details-marker { display: none; }
.parties > a:hover strong, .parties > summary:hover strong { text-decoration: underline; }
.parties > a > svg, .parties > summary > svg { width: 16px; height: 16px; color: var(--ink); }
.party-stack { display: flex; flex-shrink: 0; }
.party-stack .avatar { border: 2px solid var(--white); }
.party-stack .avatar + .avatar { margin-left: -8px; }
.party-credit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-list { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--ink); }
.party-list > a, .party-list > .party { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.party-list > a + a { border-top: 1px solid var(--line); }
.party-list > a > span:not(.avatar) { flex: 1; }
.party-list .avatar { width: 40px; height: 40px; font-size: 14px; }
.party-list > a > svg { width: 16px; height: 16px; }

.avatar { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--surface); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.section { border-top: 1px solid var(--line); padding-top: var(--section-space); margin-top: var(--section-space); }
.muted { color: var(--gray); font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; }
.description { white-space: pre-line; overflow-wrap: anywhere; font: var(--reading-weight) var(--reading-size)/var(--reading-line) Inter, system-ui, sans-serif; }
.schedule-section, .occurrence-summary { margin-top: var(--section-space); }
.date-carousel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.date-strip { display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: thin; }
.date-carousel[data-paged=true] .date-strip { overflow-x: hidden; }
.date-nav { display: inline-flex; width: 32px; height: 32px; padding: 0; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; }
.date-nav svg { width: 18px; height: 18px; }
.date-nav-prev svg { transform: rotate(180deg); }
.date-nav:disabled { color: var(--disabled); }
.date-nav:not(:disabled):hover { background: var(--canvas); }
.date-button { border: 1px solid var(--line); border-radius: 14px; width: 56px; min-width: 56px; height: 70px; padding: 9px 10px; text-align: center; flex-shrink: 0; }
.date-button span { display: block; color: var(--gray); font: var(--micro-weight) var(--micro-size)/var(--micro-line) Inter, system-ui, sans-serif; }
.date-button strong { display: block; font-size: 18px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.date-button[aria-pressed=true], .time-button[aria-pressed=true] { border-color: var(--gray); box-shadow: inset 0 0 0 .5px var(--gray); }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.time-button { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 16px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-button.past { color: var(--disabled); }
.format-label { font-size: 12px; line-height: 16px; font-weight: 600; margin-top: 20px; }
.booking { background: var(--white); align-self: start; position: sticky; top: 28px; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 4px 16px #2021240a; }
.booking-panel { min-width: 0; }
.price { font: var(--price-weight) var(--price-size)/var(--price-line) Inter, system-ui, sans-serif; }
.booking-when, .booking-place { color: var(--gray); font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; }
.booking-when { font-variant-numeric: tabular-nums; }
.booking-summary p + p { margin-top: 1px; }
.booking-action { margin-top: 20px; }
.conversion { display: flex; align-items: center; justify-content: center; padding: 14px 24px; min-height: 56px; border-radius: 999px; font: var(--action-weight) var(--action-size)/var(--action-line) Inter, system-ui, sans-serif; width: 100%; text-align: center; background: var(--brand); color: var(--white); }
.conversion:hover { filter: brightness(.96); }
.booking-note { color: var(--gray); font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; }
.booking-state .booking-place { color: var(--ink); font: var(--body-weight) var(--body-size)/var(--body-line) Inter, system-ui, sans-serif; }
.ended, .cancelled { color: var(--error); font-size: 16px; line-height: 22px; font-weight: 600; }
.event-state { margin-top: 16px; }
.where { display: flex; align-items: start; gap: 8px; }
.where > svg { width: 24px; height: 24px; padding: 2px; margin-top: 2px; }
.where > div { min-width: 0; }
.where p { margin-top: 3px; }
.outline-action { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 5px 11px; }
.outline-action svg { width: 14px; height: 14px; }
.place-list { display: grid; gap: 0; }
.place-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.place-row .avatar { width: 48px; height: 48px; font-size: 17px; }
.place-copy { flex: 1; min-width: 0; }
.place-row p { color: var(--gray); font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; margin-top: 3px; }
.film-hero { display: flex; gap: 16px; align-items: flex-end; padding: 32px 20px 24px; position: relative; isolation: isolate; overflow: hidden; border-radius: 20px 20px 0 0; }
.film-backdrop { position: absolute; z-index: -2; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(40px); }
.film-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to bottom, #fff2, #fffa 40%, #ffff 88%); }
.film-copy { flex: 1; min-width: 0; }
.poster { width: 122px; height: 183px; object-fit: cover; border-radius: 10px; flex-shrink: 0; box-shadow: 0 10px 28px #0004; }
.film-meta { display: flex; gap: 8px; align-items: center; margin-top: 12px; font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; }
.film-rating { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.event-cinema .event-content { padding-top: 0; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; }
.facts dt { color: var(--gray); }
.facts dd { margin: 0; }
.profile-page { padding-top: 32px; padding-bottom: 56px; }
.profile-header { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.profile-avatar { width: 80px; height: 80px; font-size: 26px; margin-bottom: 12px; }
.profile-avatar img { object-position: top center; }
.profile-header h1 { margin-bottom: 4px; }
.handle { color: var(--gray); font-size: 16px; line-height: 22px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(280px, 340px); gap: 64px; border-top: 1px solid var(--line); padding-top: 24px; }
.profile-layout-events { max-width: 720px; margin: auto; grid-template-columns: minmax(0, 1fr); }
.profile-details { min-width: 0; }
.profile-details > section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.social-links { display: grid; }
.social-links a { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 52px; font-size: 16px; line-height: 22px; }
.social-links a + a { border-top: 1px solid var(--line); }
.social-links svg { width: 18px; height: 18px; color: var(--gray); }
.cards { display: grid; gap: 16px; }
.card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.card-cover { width: 84px; height: 84px; object-fit: cover; object-position: top center; border-radius: 14px; background: var(--canvas); flex-shrink: 0; }
.card-copy { flex: 1; min-width: 0; }
.card h3 { font: var(--card-weight) var(--card-size)/var(--card-line) Inter, system-ui, sans-serif; margin-bottom: 2px; }
.card p { color: var(--gray); font: var(--metadata-weight) var(--metadata-size)/var(--metadata-line) Inter, system-ui, sans-serif; }
.card p + p { margin-top: 1px; }
.card:hover h3 { text-decoration: underline; }
.empty { color: var(--gray); padding: 24px 0; }
.empty p:first-child { color: var(--ink); font: var(--card-weight) var(--card-size)/var(--card-line) Inter, system-ui, sans-serif; }
.empty p + p { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--gray); font-size: 12px; line-height: 18px; }
.site-footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; }
.footer-brand img { width: auto; height: 16px; }
.app-banner { background: var(--canvas); padding: 12px 20px; display: flex; gap: 12px; align-items: center; }
.app-banner img { width: 40px; height: 40px; border-radius: 10px; }
.app-copy { flex: 1; font-size: 13px; line-height: 18px; }
.app-copy span { display: block; font-size: 11px; line-height: 14px; color: var(--gray); }
.app-banner a { font-size: 13px; font-weight: 600; }
.error-page { padding: 90px 0 160px; }
.error-page p { margin-top: 16px; }

@media (max-width: 1000px) and (min-width: 701px) {
  .event-grid, .profile-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .event-grid { display: flex; width: 100%; flex-direction: column; gap: 24px; padding-top: 0; padding-bottom: 32px; }
  .cover { height: clamp(240px, 70vw, 360px); aspect-ratio: auto; border-radius: 0; }
  .date-nav { display: none; }
  .event-content { position: relative; margin-top: calc(-1 * var(--content-radius)); padding: 24px 20px 0; border-radius: var(--content-radius) var(--content-radius) 0 0; background: var(--white); }
  .event-main:not(:has(.cover)) .event-content { margin-top: 0; }
  .event-cinema .event-content { margin-top: 0; border-radius: 0; }
  .film-hero { padding-top: 24px; border-radius: 0; }
  .event-cinema .parties { margin-top: 0; }
  .film-copy h1 { font-size: 24px; line-height: 30px; }
  .booking:not(.booking-places) { position: fixed; z-index: 20; inset: auto 0 0; width: 100%; border-radius: 0; border: 0; border-top: 1px solid var(--surface); padding: 16px 20px max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -3px 10px #00000014; }
  .booking-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
  .booking-summary { flex: 1; min-width: 0; }
  .booking-summary p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .booking-action { flex-shrink: 0; max-width: 44%; margin-top: 0; }
  .conversion { padding: 14px 20px; min-width: 120px; }
  .booking-places { position: static; width: calc(100% - 40px); margin: 0 auto; box-shadow: none; }
  .has-booking-bar .site-footer { padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
  .profile-page { padding-top: 24px; padding-bottom: 32px; }
  .profile-header { margin-bottom: 24px; }
  .profile-layout { display: flex; flex-direction: column; gap: 32px; }
  .profile-details { border-top: 1px solid var(--line); padding-top: 24px; }
  .facts { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .conversion { transition: filter .12s; }
}
