/* =========================================================
   Página Produções (producoes.html)
   Usa os tokens e componentes de style.css; aqui só o que é da página.
   ========================================================= */

/* ---------- Abertura ---------- */
.prod-hero { position: relative; overflow: hidden; padding-block: 64px 40px; text-align: center; }
.prod-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(148, 178, 255, .08) 1px, transparent 1px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 65%); mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 65%); pointer-events: none; }
.prod-hero-inner { position: relative; max-width: 820px; }
.prod-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); margin-bottom: 18px; }
.prod-hero .lead { margin: 0 auto 8px; }
.prod-hint .ico { vertical-align: -3px; margin-right: 6px; }
.prod-hint { display: block; color: var(--cyan); font-weight: 700; font-size: .92rem; }

/* ---------- Destaque ---------- */
.prod-featured-wrap { padding-block: 8px 72px; }
.prod-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: radial-gradient(500px 260px at 100% 0%, rgba(74, 144, 226, .18), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); box-shadow: var(--shadow); }
.prod-featured-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.prod-feat-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.prod-feat-info { padding: 8px 18px 8px 0; }
.prod-feat-title { font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.15; margin: 6px 0 12px; }
.prod-feat-text { color: var(--muted); margin-bottom: 22px; }

/* ---------- Miniaturas e botão play ---------- */
.prod-media img, .prod-feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; }
.prod-media::after, .prod-feat-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 8, 20, .55)); pointer-events: none; }
.prod-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(3, 8, 20, .62); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .3s ease, border-color .3s ease; }
.prod-play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.prod-feat-media .prod-play { width: 84px; height: 84px; }
.prod-feat-media .prod-play svg { width: 32px; height: 32px; }
.prod-media:hover img, .prod-feat-media:hover img, .prod-card:focus-within .prod-media img { transform: scale(1.04); }
.prod-media:hover .prod-play, .prod-feat-media:hover .prod-play, .prod-card:focus-within .prod-play { transform: translate(-50%, -50%) scale(1.08); background: linear-gradient(135deg, var(--moovi), var(--cyan)); border-color: transparent; }
.prod-media:hover .prod-play svg, .prod-feat-media:hover .prod-play svg, .prod-card:focus-within .prod-play svg { fill: var(--ink); }

.prod-program { color: var(--cyan); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Filtros e grade ---------- */
.prod-list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.prod-list-head h2 { margin: 0; }
.prod-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.prod-status { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); overflow: hidden; transition: border-color .3s ease, transform .35s var(--ease), box-shadow .35s ease; }
.prod-card[hidden] { display: none; }
.prod-card:hover, .prod-card:focus-within { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.prod-card.is-entering { animation: prodIn .45s var(--ease) both; animation-delay: calc(min(var(--n, 0), 8) * 40ms); }
.prod-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.prod-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 20px; }
.prod-title { margin: 0; font-size: 1.05rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prod-summary { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.prod-watch-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(95, 227, 255, .06); color: var(--text); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.prod-watch-link .ico, .prod-watch .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.prod-watch-link:hover, .prod-watch-link:focus-visible { background: linear-gradient(135deg, var(--moovi), var(--cyan)); color: var(--ink); border-color: transparent; }
.prod-watch { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }

/* ---------- Player ---------- */
.prod-player { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 5, 13, .94); color: var(--text); overflow-y: auto; }
.prod-player::backdrop { background: rgba(2, 5, 13, .6); }
.prod-player[open] { display: grid; place-items: center; animation: lbIn .25s ease both; }
.prod-player-inner { width: min(1100px, 100% - 48px); padding-block: 72px 32px; }
.prod-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.prod-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prod-player-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-top: 16px; }
.prod-player-meta h2 { font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.3; margin: 4px 0 0; }
.prod-player-meta a { color: var(--cyan); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.prod-player .lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }

@keyframes prodIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .prod-featured { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .prod-feat-info { padding: 4px 8px 10px; }
}
@media (max-width: 720px) {
  .prod-hero { padding-block: 40px 28px; }
  .prod-featured-wrap { padding-bottom: 56px; }
  .prod-grid { grid-template-columns: 1fr; gap: 16px; }
  .prod-title { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .prod-list-head { align-items: start; }
  .prod-filters { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin-inline: -16px; padding: 4px 16px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .prod-filters::-webkit-scrollbar { display: none; }
  .prod-filters .prod-filter { flex: none; scroll-snap-align: start; }
  .prod-feat-media .prod-play { width: 68px; height: 68px; }
  .prod-watch { width: 100%; }
  .prod-player-inner { width: 100%; padding: 64px 0 24px; }
  .prod-frame { border-radius: 0; }
  .prod-player-meta { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-card.is-entering, .prod-player[open] { animation: none; }
  .prod-media img, .prod-feat-media img, .prod-card { transition: none; }
}
