/* Theta Credits Grid Pro */

.theta-credits-section {
  padding: 140px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(155,232,255,.10), transparent 35%),
    linear-gradient(180deg, #030305, #080810);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: center;
  overflow: hidden;
}

.theta-credits-head {
  max-width: 920px;
  margin: 0 auto 44px;
}

.theta-credits-head h2 {
  color: #fff !important;
  font-size: clamp(38px, 6vw, 78px);
  line-height: .9;
  margin: 0 0 24px;
  letter-spacing: -0.06em;
}

.theta-credits-subtitle {
  max-width: 740px;
  margin: 0 auto;
  color: #aeb0c2 !important;
  font-size: 17px;
  line-height: 1.7;
}

.theta-credit-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 46px auto 54px;
}

.theta-credit-filters button {
  border: 1px solid rgba(155,232,255,.25);
  background: rgba(255,255,255,.035);
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.theta-credit-filters button:hover,
.theta-credit-filters button.active {
  border-color: rgba(155,232,255,.85);
  background: rgba(155,232,255,.10);
  box-shadow: 0 0 24px rgba(155,232,255,.18);
  color: #9be8ff;
}

.theta-credits-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
}

.theta-credit-card {
  transition: opacity .35s ease, transform .35s ease;
}

.theta-credit-card.is-hidden {
  display: none;
}

.theta-credit-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b10;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 80px rgba(0,0,0,.58);
  transform: translateZ(0);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}

.theta-credit-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.78)),
    radial-gradient(circle at 50% 20%, rgba(155,232,255,.08), transparent 35%);
  opacity: .55;
  transition: opacity .35s ease;
  pointer-events: none;
}

.theta-credit-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(12%) brightness(.82) contrast(1.08);
  transform: scale(1.01);
  transition: transform .55s ease, filter .55s ease;
}

.theta-credit-overlay {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 22px;
  text-align: left;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.theta-credit-overlay h3 {
  color: #fff !important;
  font-size: 24px;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.theta-credit-overlay p {
  margin: 0 0 8px;
  color: #9be8ff !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.theta-credit-overlay span {
  display: block;
  color: #d8d8e6 !important;
  font-size: 13px;
  line-height: 1.4;
}

.theta-credit-overlay small {
  display: block;
  margin-top: 7px;
  color: #a8a8b8 !important;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.theta-credit-card:hover .theta-credit-poster {
  transform: translateY(-12px) scale(1.025);
  border-color: rgba(155,232,255,.55);
  box-shadow:
    0 40px 110px rgba(0,0,0,.75),
    0 0 42px rgba(155,232,255,.16);
}

.theta-credit-card:hover .theta-credit-poster::before {
  opacity: 1;
}

.theta-credit-card:hover .theta-credit-poster img {
  filter: brightness(1.02) contrast(1.08);
  transform: scale(1.08);
}

.theta-credit-card:hover .theta-credit-overlay {
  opacity: 1;
  transform: translateY(0);
}

.theta-credit-stats {
  max-width: 980px;
  margin: 86px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.theta-credit-stats div {
  padding: 34px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(155,232,255,.10), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.10);
}

.theta-credit-stats strong {
  display: block;
  color: #fff !important;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .95;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.theta-credit-stats span {
  color: #9be8ff !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .20em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .theta-credits-section {
    padding: 110px 18px;
  }

  .theta-credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .theta-credit-overlay {
    opacity: 1;
    transform: none;
    padding: 20px 16px;
  }

  .theta-credit-overlay h3 {
    font-size: 19px;
  }

  .theta-credit-stats {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }
}


.theta-credit-card.has-video .theta-credit-poster {
  cursor: pointer;
}

.theta-video-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(3,3,5,.72);
  border: 1px solid rgba(155,232,255,.45);
  color: #9be8ff !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-6px);
  transition: .3s ease;
}

.theta-credit-card.has-video:hover .theta-video-badge {
  opacity: 1;
  transform: translateY(0);
}

.theta-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.theta-video-modal.is-open {
  display: flex;
}

.theta-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(12px);
}

.theta-video-modal-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  border-radius: 22px;
  overflow: hidden;
  background: #050508;
  border: 1px solid rgba(155,232,255,.22);
  box-shadow:
    0 40px 140px rgba(0,0,0,.85),
    0 0 60px rgba(155,232,255,.13);
}

.theta-video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.theta-video-modal-frame iframe,
.theta-video-modal-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.theta-video-modal-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: .25s ease;
}

.theta-video-modal-close:hover {
  border-color: rgba(155,232,255,.85);
  box-shadow: 0 0 24px rgba(155,232,255,.25);
}

body.theta-video-lock {
  overflow: hidden !important;
}
