/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  THE MASK CUP — HIGHLIGHTS                                           ║
   ║  Galeria de vídeos da comunidade + player em tela cheia.             ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.hl { --gutter: clamp(16px, 4vw, 48px); --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  padding-bottom: clamp(64px, 8vw, 110px); }
.hl-wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ═══════════════ TOPO ═══════════════ */
.hl-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); margin-bottom: 24px;
  background:
    radial-gradient(50% 120% at 20% 0%, rgba(79,163,157,.16), transparent 62%),
    radial-gradient(40% 100% at 90% 10%, rgba(217,169,76,.12), transparent 62%);
  border-bottom: 1px solid var(--border);
}
.hl-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hl-title { margin: 12px 0 8px; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(46px, 7vw, 84px); line-height: .92; color: var(--silver-hi); }
.hl-sub { margin: 0; max-width: 560px; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.hl-stats { display: flex; gap: 8px; margin-top: 20px; }
.hl-stats div {
  display: flex; flex-direction: column; min-width: 100px; padding: 10px 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: linear-gradient(155deg, #121418, #0B0C0F); background: linear-gradient(155deg, light-dark(#fefefe, #121418), light-dark(#f5f6f8, #0B0C0F)); box-shadow: inset 0 0 0 1px var(--border);
}
.hl-stats b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; line-height: 1; color: var(--silver-hi); }
.hl-stats span { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-mute); }
.hl-send { flex: 0 0 auto; text-decoration: none; }

/* ═══════════════ BUSCA + ORDEM ═══════════════ */
.hl-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.hl-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--border); color: var(--text-mute); }
.hl-search:focus-within { box-shadow: inset 0 0 0 1px var(--teal); }
.hl-search input { width: 100%; padding: 11px 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.hl-sort { display: flex; gap: 4px; padding: 4px; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--border); }
.hl-sort button {
  padding: 8px 14px; border: 0; background: none; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim);
}
.hl-sort button:hover { color: var(--silver-hi); }
.hl-sort button.is-on { color: #06110F; color: light-dark(#ffffff, #06110F); background: linear-gradient(100deg, var(--teal), var(--teal-hi)); }

/* ═══════════════ GRADE ═══════════════ */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hl-card { display: flex; flex-direction: column; clip-path: var(--cut); background: linear-gradient(160deg, #131519, #0B0C0F); background: linear-gradient(160deg, light-dark(#ffffff, #131519), light-dark(#f5f6f8, #0B0C0F)); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .15s, transform .15s; }
.hl-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(79,163,157,.45); }
.hl-card[hidden] { display: none; }
.hl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #000; background: light-dark(#eaedf0, #000); }
.hl-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transition: transform .35s, filter .35s; filter: brightness(.82); }
.hl-card:hover .hl-thumb video { transform: scale(1.04); filter: brightness(1); }
.hl-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54px; height: 54px; display: grid; place-items: center;
  color: #06110F; color: light-dark(#ffffff, #06110F); background: linear-gradient(135deg, var(--teal), var(--teal-hi));
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); transition: scale .2s;
}
.hl-play .ico { margin-left: 3px; }
.hl-card:hover .hl-play { scale: 1.1; }
.hl-thumb:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.hl-pro {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #140D02; color: light-dark(#ffffff, #140D02); background: linear-gradient(100deg, var(--gold), var(--gold-hi));
}
.hl-info { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; min-width: 0; }
.hl-avatar img { display: block; width: 34px; height: 34px; object-fit: cover; clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.hl-text { min-width: 0; display: flex; flex-direction: column; }
.hl-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Rajdhani', sans-serif; font-size: 15.5px; color: var(--silver-hi); }
.hl-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-mute); }
.hl-text a { color: var(--teal-hi); text-decoration: none; }
.hl-text a:hover { text-decoration: underline; }

.hl-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 20px; text-align: center; color: var(--text-mute);
  background: var(--bg1); box-shadow: inset 0 0 0 1px var(--border); }
.hl-empty[hidden] { display: none; }
.hl-empty p { margin: 0; max-width: 440px; color: var(--text-dim); line-height: 1.6; }
.hl-empty .g-btn { margin-top: 6px; text-decoration: none; }

/* ═══════════════ PLAYER ═══════════════ */
.hl-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(3,4,5,.88); background: light-dark(rgba(14,20,28,.141), rgba(3,4,5,.88)); backdrop-filter: blur(6px); }
.hl-modal[hidden] { display: none; }
.hl-modal-box { position: relative; width: min(1100px, 100%); background: #0B0C0F; background: light-dark(#f5f6f8, #0B0C0F); box-shadow: 0 0 0 1px var(--border-hi), 0 30px 80px rgba(0,0,0,.6); box-shadow: 0 0 0 1px var(--border-hi), 0 30px 80px light-dark(rgba(14,20,28,.228), rgba(0,0,0,.6)); }
.hl-modal-box video { display: block; width: 100%; max-height: calc(100vh - 150px); background: #000; background: light-dark(#eaedf0, #000); }
.hl-modal-info { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.hl-modal-info img { width: 38px; height: 38px; object-fit: cover; clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.hl-modal-info div { display: flex; flex-direction: column; min-width: 0; }
.hl-modal-info strong { font-family: 'Rajdhani', sans-serif; font-size: 17px; color: var(--silver-hi); }
.hl-modal-info a { font-size: 13px; color: var(--teal-hi); text-decoration: none; }
.hl-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--silver-hi); background: rgba(255,255,255,.08); background: light-dark(rgba(14,20,28,.084), rgba(255,255,255,.08)); }
.hl-close:hover { background: rgba(255,255,255,.16); background: light-dark(rgba(14,20,28,.168), rgba(255,255,255,.16)); }

/* ═══════════════ RESPONSIVO ═══════════════ */
@media (max-width: 700px) {
  .hl-hero-row { flex-direction: column; align-items: stretch; }
  .hl-bar { flex-direction: column; }
  .hl-search { max-width: none; }
  .hl-sort button { flex: 1; }
  .hl-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-card, .hl-thumb video, .hl-play { transition: none; }
  .hl-card:hover { transform: none; }
}

/* Highlights por link */
.hl-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.82); transition: transform .35s, filter .35s; }
.hl-card:hover .hl-thumb-img { transform: scale(1.04); filter: brightness(1); }
.hl-thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 2px; color: var(--text-mute);
  background: radial-gradient(60% 80% at 50% 40%, rgba(79,163,157,.14), transparent 70%), #0E1013; background: radial-gradient(60% 80% at 50% 40%, rgba(79,163,157,.14), transparent 70%), light-dark(#f9fafb, #0E1013); }
.hl-src { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; font-family: 'Rajdhani', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--silver-hi); background: rgba(6,7,8,.72); background: light-dark(rgba(238,240,243,.72), rgba(6,7,8,.72)); }
a.hl-thumb { text-decoration: none; }
.hl-modal-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); border: 0; background: #000; background: light-dark(#eaedf0, #000); }
.hl-modal-box iframe[hidden] { display: none; }
