/* Gym features — clean club floor aesthetic */

.gym-features {
  --gym-bg: #0e0e10;
  --gym-panel: #161618;
  --gym-line: rgba(255, 255, 255, 0.08);
  --gym-text: #f3f3f3;
  --gym-muted: #8a8a90;
  --gym-red: #d32f2f;
  --gym-red-soft: rgba(211, 47, 47, 0.18);

  background:
    linear-gradient(180deg, #121214 0%, var(--gym-bg) 40%, #0a0a0b 100%);
  color: var(--gym-text);
  padding: clamp(4rem, 8vw, 7rem) var(--moytay-gutter, clamp(1.35rem, 5.5vw, 4rem));
  position: relative;
  overflow: hidden;
}

.gym-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
  pointer-events: none;
}

.gym-features__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.gym-features__head {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.gym-features__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gym-red);
}

.gym-features__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--gym-red);
}

.gym-features__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.gym-features__title span {
  color: var(--gym-red);
}

.gym-features__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #fff;
  max-width: 28rem;
}

.gym-features__stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.gym-features__media-frame {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--gym-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.gym-features__media-frame.is-playing .gym-features__media-shade,
.gym-features__media-frame.is-playing .gym-features__caption {
  display: none;
}

.gym-features__media:has(.gym-features__media-frame.is-playing) {
  align-self: start;
}

.gym-features__media-frame.is-playing {
  height: auto;
  min-height: 0;
}

.gym-features__cover,
.gym-features__player {
  position: absolute;
  inset: 0;
}

.gym-features__cover.hidden,
.gym-features__player.hidden {
  display: none;
}

.gym-features__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.gym-features__video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.gym-features__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.gym-features__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 16, 0.15), transparent 45%),
    linear-gradient(180deg, transparent 35%, rgba(14, 14, 16, 0.75));
}

.gym-features__play {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 14, 16, 0.72);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.gym-features__play:hover:not(.is-disabled) {
  border-color: var(--gym-red);
  background: rgba(211, 47, 47, 0.2);
  transform: translateY(-1px);
}

.gym-features__play.is-disabled {
  cursor: default;
  opacity: 0.7;
}

.gym-features__play-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gym-red);
  position: relative;
  flex-shrink: 0;
}

.gym-features__play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.gym-features__play-label {
  font-size: 0.85rem;
  font-weight: 700;
}

.gym-features__caption {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.gym-features__list {
  display: flex;
  flex-direction: column;
  background: var(--gym-panel);
  border: 1px solid var(--gym-line);
  border-radius: 4px;
  overflow: hidden;
}

.gym-feature {
  border-bottom: 1px solid var(--gym-line);
}

.gym-feature:last-child {
  border-bottom: 0;
}

.gym-feature__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 4px auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s;
}

.gym-feature__trigger:hover,
.gym-feature.is-open .gym-feature__trigger {
  background: rgba(255, 255, 255, 0.03);
}

.gym-feature__mark {
  width: 4px;
  height: 1.6rem;
  background: transparent;
  border-radius: 1px;
  transition: background 0.2s;
}

.gym-feature.is-open .gym-feature__mark,
.gym-feature__trigger:hover .gym-feature__mark {
  background: var(--gym-red);
}

.gym-feature__index {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gym-muted);
  font-variant-numeric: tabular-nums;
}

.gym-feature.is-open .gym-feature__index {
  color: var(--gym-red);
}

.gym-feature__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.gym-feature__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gym-muted);
  border-bottom: 2px solid var(--gym-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s;
  margin-top: -0.2rem;
}

.gym-feature.is-open .gym-feature__chevron {
  transform: rotate(225deg);
  border-color: var(--gym-red);
  margin-top: 0.15rem;
}

.gym-feature__body {
  padding: 0 1.25rem 1.2rem 2.6rem;
}

.gym-feature__body[hidden] {
  display: none;
}

.gym-feature__body p {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.85;
}

.gym-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gym-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.gym-feature__link:hover {
  text-decoration: underline;
}

.gym-feature__link::after {
  content: "←";
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .gym-features__stage {
    grid-template-columns: 1fr;
  }

  .gym-features__media-frame {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gym-features__cover-img {
    object-position: center 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gym-features__play,
  .gym-feature__chevron,
  .gym-feature__trigger {
    transition: none;
  }
}
