.ryc,
.ryc * { box-sizing: border-box; }

.ryc {
  --ryc-orange: #ff5a1f;
  --ryc-black: #090909;
  --ryc-white: #fff;
  --ryc-muted: #6d6d6d;
  --ryc-line: #e7e7e7;
  --ryc-gap: 22px;
  width: 100%;
  position: relative;
  font-family: inherit;
  color: var(--ryc-black);
  padding: 18px 0 22px;
}

.ryc--dark {
  --ryc-black: #fff;
  --ryc-white: #080808;
  --ryc-muted: #aaa;
  --ryc-line: #2a2a2a;
  color: #fff;
  background: #080808;
  padding: 34px 30px 38px;
}

.ryc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.ryc__heading-wrap { min-width: 0; }

.ryc__head--controls-only {
  justify-content: flex-end;
  margin-bottom: 26px;
}

.ryc__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ryc-muted);
}

.ryc__eyebrow span {
  width: 28px;
  height: 3px;
  background: var(--ryc-orange);
  flex: 0 0 auto;
}

.ryc__title {
  margin: 0;
  max-width: 760px;
  font: inherit;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 650;
  color: var(--ryc-black);
}

.ryc__controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.ryc__arrow {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid var(--ryc-line);
  background: var(--ryc-white);
  color: var(--ryc-black);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.ryc__arrow:hover {
  background: var(--ryc-black);
  color: var(--ryc-white);
  border-color: var(--ryc-black);
  transform: translateY(-2px);
}

.ryc__arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ryc__viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}

.ryc__track {
  display: flex;
  gap: var(--ryc-gap);
  transform: translate3d(0,0,0);
  transition: transform .48s cubic-bezier(.22,.8,.22,1);
  will-change: transform;
}

.ryc__card {
  min-width: calc((100% - (var(--ryc-gap) * (var(--ryc-columns) - 1))) / var(--ryc-columns));
  width: calc((100% - (var(--ryc-gap) * (var(--ryc-columns) - 1))) / var(--ryc-columns));
  margin: 0;
}

.ryc__video-button {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ryc__media {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0b0b0b;
}

.ryc__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

.ryc__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(0,0,0,.48) 100%);
  transition: background .3s ease;
}

.ryc__video-button:hover .ryc__media img { transform: scale(1.045); }
.ryc__video-button:hover .ryc__shade { background: linear-gradient(180deg, rgba(0,0,0,.04) 10%, rgba(0,0,0,.58) 100%); }

.ryc__play {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ryc-orange);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  transition: transform .25s ease, background .25s ease;
}

.ryc__video-button:hover .ryc__play { transform: scale(1.08); }

.ryc__play svg { width: 28px; height: 28px; fill: currentColor; }

.ryc__number {
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(255,255,255,.95);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.ryc__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding-top: 16px;
}

.ryc__card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--ryc-black);
}

.ryc__cta {
  white-space: nowrap;
  color: var(--ryc-muted);
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease;
}
.ryc__video-button:hover .ryc__cta { color: var(--ryc-orange); }

.ryc__modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483647 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 42px);
  isolation: isolate;
}

.ryc__modal.is-open {
  display: flex !important;
}

.ryc__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.ryc__dialog {
  position: relative;
  z-index: 2;
  width: min(1500px, 94vw);
  max-height: calc(100dvh - 54px);
  display: flex;
  flex-direction: column;
  background: #050505;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .65);
}

.ryc__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 120px);
  background: #000;
}

.ryc__player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.ryc__dialog-title {
  flex: 0 0 auto;
  padding: 14px 18px 16px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 560;
  background: #050505;
}

.ryc__close {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  top: clamp(14px, 2vw, 30px);
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: #ff5a1f;
  color: #fff;
  font: 300 34px/1 Arial, sans-serif;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}

.ryc__close:hover {
  transform: scale(1.06);
  background: #fff;
  color: #000;
}

html.ryc-modal-open,
body.ryc-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (max-width: 980px) {
  .ryc { --ryc-columns: 2 !important; }
  .ryc__title { font-size: clamp(31px, 6vw, 48px); }
}

@media (max-width: 640px) {
  .ryc { --ryc-columns: 1 !important; --ryc-gap: 14px; }
  .ryc--dark { padding: 28px 18px 32px; }
  .ryc__head { align-items: center; margin-bottom: 20px; }
  .ryc__controls { gap: 6px; }
  .ryc__arrow { width: 42px; height: 42px; }
  .ryc__title { font-size: 35px; }
  .ryc__meta { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .ryc__card-title { min-height: auto; font-size: 20px; }
  .ryc__cta { display: none; }
  .ryc__modal { padding: 58px 10px 14px; }
  .ryc__dialog { width: 100%; max-height: calc(100dvh - 72px); }
  .ryc__player { max-height: calc(100dvh - 120px); }
  .ryc__dialog-title { padding: 11px 13px 13px; font-size: 13px; }
  .ryc__close { width: 42px; height: 42px; font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .ryc__track,
  .ryc__media img,
  .ryc__arrow,
  .ryc__play { transition: none !important; }
}
