/* ═══════════════════════════════════════════════════════════════
   showcase.css — Official Filmography + Watchable Reels UI
   Namespace: rxl-* / fgx-* (no collision with legacy films.css)
   ═══════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rxl-section {
  position: relative;
  padding: 96px 24px;
  overflow: hidden;
}

.rxl-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.rxl-head .body {
  margin: 14px auto 0;
  max-width: 640px;
}

/* ---------- Filter tabs ---------- */
.fgx-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 34px;
  padding: 0;
  list-style: none;
}

.fgx-tab {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 100px;
  padding: 11px 20px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fgx-tab:hover,
.fgx-tab:focus-visible {
  color: #fff;
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
  outline: none;
}

.fgx-tab[aria-pressed="true"] {
  color: #1a0b22;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  border-color: #ffd700;
  font-weight: 700;
}

.fgx-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  opacity: 0.75;
}

/* ---------- Filmography grid ---------- */
.fgx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.fgx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.16);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fgx-card:hover,
.fgx-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.fgx-card[hidden] {
  display: none !important;
}

.fgx-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #120a2e;
  overflow: hidden;
}

.fgx-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.fgx-card:hover .fgx-poster img {
  transform: scale(1.04);
}

.fgx-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1a0b22;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  border-radius: 100px;
  padding: 5px 10px;
  line-height: 1.2;
}

.fgx-kind {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 9, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 4px 9px;
}

.fgx-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.fgx-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.fgx-title a {
  color: inherit;
  text-decoration: none;
}

.fgx-title a:hover {
  color: #ffd700;
}

.fgx-year {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #ffd700;
  text-transform: uppercase;
}

.fgx-role {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.5;
}

.fgx-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.fgx-btn {
  flex: 1;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.fgx-btn:hover {
  background: rgba(255, 215, 0, 0.14);
  color: #fff;
}

.fgx-btn--solid {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #1a0b22;
  border-color: #ffd700;
  font-weight: 700;
}

.fgx-btn--solid:hover {
  color: #1a0b22;
  background: #ffd700;
}

.fgx-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

/* ---------- Reels: 9:16 vertical rail ---------- */
.rxl-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4px 4px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.4) transparent;
}

.rxl-rail::-webkit-scrollbar {
  height: 8px;
}

.rxl-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.35);
  border-radius: 100px;
}

.rxl-card {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: #0d0920;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rxl-card:hover,
.rxl-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  outline: none;
}

.rxl-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rxl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 9, 32, 0) 42%, rgba(13, 9, 32, 0.92) 100%);
}

.rxl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(13, 9, 32, 0.6);
  border: 2px solid #ffd700;
  color: #ffd700;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rxl-card:hover .rxl-play {
  background: #ffd700;
  color: #1a0b22;
  transform: translate(-50%, -50%) scale(1.06);
}

.rxl-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rxl-cat {
  align-self: flex-start;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a0b22;
  background: #ffd700;
  border-radius: 100px;
  padding: 3px 8px;
  font-weight: 700;
}

.rxl-title {
  font-size: 0.88rem;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.rxl-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 18px auto 0;
}

/* ---------- Modal player ---------- */
.rxl-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 4, 16, 0.88);
  backdrop-filter: blur(8px);
}

.rxl-modal.is-open {
  display: flex;
}

.rxl-modal-inner {
  position: relative;
  width: min(420px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rxl-modal video,
.rxl-modal iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 76vh;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  background: #000;
  display: block;
}

.rxl-modal-title {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.rxl-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.5);
  background: rgba(13, 9, 32, 0.9);
  color: #ffd700;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

body.rxl-locked {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rxl-section {
    padding: 72px 18px;
  }

  .fgx-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .fgx-title {
    font-size: 0.92rem;
  }

  .rxl-rail {
    grid-auto-columns: 62%;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .fgx-tabs {
    gap: 8px;
  }

  .fgx-tab {
    font-size: 0.74rem;
    padding: 9px 14px;
  }

  .rxl-rail {
    grid-auto-columns: 74%;
  }

  .rxl-modal {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fgx-card,
  .rxl-card,
  .fgx-poster img {
    transition: none;
  }
}

