.page-movie-library {
  background: #f5f8fc;
  color: #18324a;
}

.page-movie-library * {
  box-sizing: border-box;
}

.page-movie-library a,
.page-movie-library button {
  font-family: "Noto Sans JP", sans-serif;
}

.page-movie-library a {
  color: inherit;
  text-decoration: none;
}

.page-movie-library img {
  max-width: 100%;
  height: auto;
  display: block;
}

.movie-library__container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 52px 0 72px;
}

.movie-library__hero {
  margin-bottom: 30px;
}

.movie-library__eyebrow {
  margin: 0 0 8px;
  color: #6b7f95;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
}

.movie-library__title {
  margin: 0 0 16px;
  color: #0b2545;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.movie-library__lead {
  margin: 0;
  color: #516578;
  font-size: 15px;
  line-height: 1.9;
}

.movie-library__finder {
  margin-bottom: 42px;
  padding: 0;
  background: linear-gradient(180deg, #eef4fb 0%, #e9f0f8 100%);
  border: 1px solid #d7e2ef;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 52, 91, 0.05);
  overflow: hidden;
}

.movie-library__finder-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.movie-library__tabs {
  display: flex;
  gap: 34px;
  padding: 0 28px;
  border-bottom: 1px solid #d7e2ef;
  background: rgba(255, 255, 255, 0.35);
}

.movie-library__tab {
  position: relative;
  padding: 20px 0 16px;
  border: 0;
  background: transparent;
  color: #53697d;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.movie-library__tab.is-active {
  color: #0d3e78;
}

.movie-library__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #0d4f9c;
  border-radius: 999px;
}

.movie-library__panel {
  padding: 22px 28px 18px;
}

.movie-library__panel:not([hidden]) {
  display: block;
}

.movie-library__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.movie-library__chip {
  padding: 10px 16px;
  border: 1px solid #cfd9e6;
  border-radius: 999px;
  background: #fff;
  color: #274765;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.movie-library__chip:hover {
  background: #eff6ff;
  border-color: #aecaec;
}

.movie-library__chip.is-selected {
  background: #d9eafe;
  border-color: #7ea8d9;
  color: #153d6f;
}

.movie-library__product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.movie-library__product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 92px;
  padding: 18px 18px 16px;
  border: 1px solid #d4deea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 49, 88, 0.04);
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.movie-library__product-card:hover {
  border-color: #8fb7e4;
  transform: translateY(-1px);
}

.movie-library__product-card.is-selected {
  border-color: #0d4f9c;
  box-shadow: 0 10px 24px rgba(13, 79, 156, 0.10);
  background: #fafdff;
}

.movie-library__product-name {
  display: block;
  margin-bottom: 12px;
  color: #102a43;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.movie-library__product-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f0fa;
  color: #4d6781;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.movie-library__clear {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.movie-library__clear-link {
  border: 0;
  background: transparent;
  color: #365f8c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.movie-library__section-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6e1ed;
  color: #102a43;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.movie-library__new {
  margin-bottom: 44px;
}

.movie-library__list {
  margin-bottom: 24px;
}

.movie-library__filter-status {
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 0;
  background: linear-gradient(90deg, #1a4c8d 0%, #5f92ca 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 74, 135, 0.18);
}

.movie-library__filter-status:not([hidden]) {
  display: flex;
}

.movie-library__filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}

.movie-library__filter-text {
  font-size: 15px;
  font-weight: 700;
}

.movie-library__filter-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.movie-library__video-grid {
  display: grid;
  gap: 22px;
}

.movie-library__video-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid #d9e3ef;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 49, 82, 0.05);
}

.movie-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #dce8f5;
  overflow: hidden;
}

.movie-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 24, 43, 0.80);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.movie-card__body {
  padding: 10px 12px 14px;
}

.movie-card__title {
  margin: 0 0 10px;
  color: #102a43;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.movie-card__desc {
  margin: 0 0 12px;
  color: #617486;
  font-size: 13px;
  line-height: 1.8;
}

.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3f9;
  color: #4f6780;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.movie-library__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.movie-library__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 24px;
  border: 1px solid #24578f;
  border-radius: 0;
  background: #fff;
  color: #24578f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.movie-library__more-btn:hover {
  background: #24578f;
  color: #fff;
}

.movie-library__empty {
  padding: 36px 16px;
  border: 1px solid #d9e3ef;
  background: #fff;
  text-align: center;
  color: #617486;
}
.movie-library__group-label {
  grid-column: 1 / -1;
  margin: 18px 0 4px;
}
.movie-library__product-category {
  display: block;
  margin-bottom: 8px;
  color: #5f748a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.movie-library__product-note {
  display: block;
  margin-bottom: 10px;
  color: #6b7f95;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.movie-library__group-label-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d5e1ee;
  border-left: 6px solid #24578f;
  background: linear-gradient(180deg, #e3edf9 0%, #dbe8f6 100%);
  color: #163a63;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 8px 18px rgba(20, 52, 91, 0.08);
}
.movie-library__group-label-name {
  display: inline-block;
}

.movie-library__group-label-count {
  color: #5d738a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
/* ===== 案A：ページ全体を少し上質にする ===== */

/* 1) 新着動画を“ひとつの面”として見せる */
.movie-library__new {
  margin-bottom: 52px;
  padding: 28px 28px 32px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  border: 1px solid #dbe6f1;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(20, 52, 91, 0.06);
}

/* 2) セクション見出しを少しだけ格上げ */
.movie-library__section-title {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d6e1ed;
  color: #0f2e4f;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* 3) カードを“少し良い箱”にする */
.movie-card {
  overflow: hidden;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(19, 49, 82, 0.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: #bfd3e7;
  box-shadow: 0 18px 36px rgba(19, 49, 82, 0.10);
}

/* サムネイルと本文のつながりも少し上質に */
.movie-card__body {
  padding: 12px 14px 16px;
}

.movie-card__title {
  margin: 0 0 10px;
  color: #102a43;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.movie-card__desc {
  margin: 0 0 12px;
  color: #617486;
  font-size: 13px;
  line-height: 1.75;
}
/* ===== 案A 微調整：さらに一段かっこよくする ===== */

/* 1. サムネイルにうっすらオーバーレイ */
.movie-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 37, 69, 0.00) 45%,
    rgba(11, 37, 69, 0.10) 100%
  );
  pointer-events: none;
}

/* 2. 時間バッジを少し上品に */
.movie-card__time {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(11, 37, 69, 0.78);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.18);
}

/* 3. タグを少し軽く整える */
.movie-card__tags {
  gap: 6px;
}

.movie-card__tag {
  padding: 5px 9px;
  background: #f2f6fb;
  color: #5b7087;
  font-size: 11px;
  border: 1px solid #e0e9f2;
}

/* 4. 商品セクションの余白を少し広げる */
.movie-library__group-label {
  margin: 24px 0 8px;
}

/* モバイルで新着の余白が重すぎないように */
@media (max-width: 767px) {
  .movie-library__new {
    padding: 20px 18px 22px;
    border-radius: 14px;
  }

  .movie-library__section-title {
    font-size: 24px;
  }
}
@media (max-width: 1100px) {
  .movie-library__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-library__video-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .movie-library__container {
    width: min(92%, 100%);
    padding: 32px 0 48px;
  }

  .movie-library__lead br {
    display: none;
  }

  .movie-library__tabs {
    gap: 20px;
    padding: 0 18px;
  }

  .movie-library__panel {
    padding: 18px;
  }

  .movie-library__product-grid {
    grid-template-columns: 1fr;
  }

  .movie-library__video-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .movie-library__section-title {
    font-size: 24px;
  }
}