:root {
  --ink: #0e1f4a;
  --muted: #5a6884;
  --bd: #e9eef6;
  --card: #ffffff;
  --accent: #1b4ef0;
}

/* 배너 */
.res-hero {
  background: linear-gradient(180deg, #2d3f5c, #2d3f5c);
  border-bottom: 1px solid var(--bd);
}

.res-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  padding: 42px 20px;
  text-align: center;
}

.res-hero__title {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "SUIT", "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: white;
}

.res-hero__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  color: white;
}

/* 그리드 */
.res-grid {
  max-width: 1200px;
  margin: 26px auto 80px;
  padding: 0 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

@media (max-width: 980px) {
  .res-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 620px) {
  .res-grid {
    grid-template-columns: 1fr;
  }
}

.res-tabs {
  display: flex;
  gap: 10px;
  margin: 30px auto 10px;
  max-width: 1180px;
  padding: 0 16px;
}

.res-tab {
  font-family: 'suit-semibold';
  font-size: clamp(20px, 2vw, 25px);
  border: none;
  background: #e9edf4;
  color: #344053;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.res-tab.active {
  background: #152b3e;
  color: #fff;
}

.res-grid-panel {
  display: none;
}

.res-grid-panel.active {
  display: grid;
  /* 기존 .res-grid가 grid라서 그대로 */
}

/* 카드 */
.res-card {
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.res-card__btn {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.res-card__thumb {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.res-card__body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
}

.res-card__title {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
}

.res-card__meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}

.res-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

/* 호버 */
.res-card__btn:hover .res-card__title {
  color: var(--accent);
}

.res-card__btn:hover .res-card__thumb {
  filter: brightness(0.96);
}

/* 모달 */
.res-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 16, 30, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 60;
}

.res-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.res-modal__overlay {
  position: absolute;
  inset: 0;
}

.res-modal__dialog {
  position: relative;
  width: min(92vw, 960px);
  background: #000;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.res-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
}

.res-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: none;
}

#ytPlayer,
#mp4Player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}