/* [리팩터링] content.css/goods.css/favorite.css에 완전 동일하게 중복 정의되어 있던
   list-header, card-*, detail-*, pagination, empty-state 등 공용 카드/리스트 스타일을
   css/component.css 로 통합 이동했습니다. (내용 변경 없음, 위치만 이동) */

/* =========================================================
   CONTENT COMMON WRAPPER
========================================================= */

.content-container,
.content-list-container,
.detail-container {
  padding: 40px 60px;
}

/* =========================================================
   PAGE TITLE
========================================================= */

.list-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================================================
   LIST GRID (ODITJI STYLE - 5 GRID 유지)
========================================================= */

/* =========================================================
   CONTENT CARD
========================================================= */

/* =========================================================
   LINK AREA
========================================================= */

/* =========================================================
   POSTER AREA (ODITJI 핵심 느낌)
========================================================= */

.card-poster {
  width: 100%;
  height: 240px;
  background: #111;

  overflow: hidden;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.35s ease;
}

.card-item:hover .card-poster img {
  transform: scale(1.08);
}

/* fallback */

/* =========================================================
   INFO AREA
========================================================= */

.card-title {
  font-size: 15px;
  font-weight: 600;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;

  font-size: 12px;
  color: #9a9a9a;
}

/* =========================================================
   FAVORITE BUTTON (ODITJI ICON STYLE)
========================================================= */

/* [리팩터링] .fav-btn 공통 스타일은 css/component.css 로 이동했습니다.
   .content-card__fav-btn 은 이 페이지 전용이라 그대로 유지합니다. */
.content-card__fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

/* =========================================================
   CONTENT HERO (백드롭 + 글래스 카드)

   [강화] 넷플릭스 · 웨이브 · 티빙 등 실제 OTT 상세페이지는
   포스터를 흐리게 확대한 배경(백드롭) 위에 반투명 정보 카드를
   띄우는 구조가 공통적이다. 별도 백드롭 이미지가 없으므로
   이미 갖고 있는 포스터를 재사용해 같은 효과를 낸다.
========================================================= */

.content-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
}

.content-hero-backdrop {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-position: center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(40px) saturate(115%) brightness(0.5);
  transform: scale(1.12);
  opacity: 0.9;
  pointer-events: none;
}

.content-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(12, 12, 12, 0.82) 65%, #181818 100%);
  pointer-events: none;
}

.content-hero .content-detail-card,
.content-hero .person-hero {
  position: relative;
  z-index: 2;
}

/* =========================================================
   DETAIL HEADER CARD (포스터 + 정보)

   [리팩토링] 예전에는 이 영역이 배경/테두리 없이 텍스트만
   나열돼 있어서 아래 섹션들(줄거리/출연진/관련 콘텐츠 등)과
   붕 떠 보였다. 상품 상세(goods-detail-card)와 동일한 카드
   언어(테두리 · 라운드 20px · 그라디언트 배경 · 그림자)를
   적용해 첫인상부터 통일감을 준다.

   [강화] 백드롭 위에 뜨는 유리(glass) 느낌의 카드로 업그레이드해
   깊이감과 고급스러움을 더했다.
========================================================= */

.content-detail-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 45%, rgba(20, 20, 20, 0.86));
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.content-detail-card .detail-poster {
  position: relative;
  width: 300px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.content-detail-card .detail-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.content-detail-card .detail-poster:hover img {
  transform: scale(1.045);
}

/* title */
.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.info-box .title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  word-break: keep-all;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* 연령등급 뱃지 (콘텐츠 카드와 동일한 컴포넌트 - main.css/content-more.css와 동일 스타일) */
.content-age-rating-badge {
  display: inline-flex;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.content-age-rating-badge.is-all {
  width: 32px;
  border-radius: 999px;
  background: #2f855a;
  font-size: 8.5px;
}

.content-age-rating-badge.is-age7 {
  background: #3478b9;
}

.content-age-rating-badge.is-age12 {
  background: #b88416;
}

.content-age-rating-badge.is-age15 {
  background: #ce6428;
}

.content-age-rating-badge.is-adult {
  background: #c53f45;
}

.content-age-rating-badge.is-unknown {
  background: #555c66;
}

/* 조회수 - 연령등급 뱃지 옆에 가볍게 텍스트로 붙는 형태.
   연령등급처럼 눈길을 끌 필요는 없는 보조 정보라 원형 뱃지 대신
   아이콘 + 숫자로만 절제해서 표시한다. */
.content-view-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* [수정] #9a9a9a on 글래스 카드 배경(약 #2a2a2a)은 대비 약 6.4:1로 충분 */
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 600;
}

/* meta - 콘텐츠 유형 / 길이 / 공개일을 알약(pill) 형태 칩으로 표시 */
.info-box .meta {
  margin: 0;
  color: #b0b0b0;
  font-size: 13px;
  line-height: 1.7;
}

.meta-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dddddd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.meta-chip--date {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #9a9a9a;
  font-weight: 500;
}

.info-box .genre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #b7b7b7;
  font-size: 13px;
  line-height: 1.6;
}

.genre-label {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ededed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* overview */
.detail-desc,
.overview {
  max-width: 900px;
  margin: 0;
  color: #dadada;
  font-size: 14.5px;
  line-height: 1.85;
}

/* =========================================================
   SCORE BADGE (평점 알약)

   [강화] 기존에는 "글로벌 평점 ⭐ 8.2 | 오딧지 평점 ⭐ 4.5 (12건)"처럼
   한 줄 텍스트로만 표시되어 눈에 잘 띄지 않았다. 실제 OTT 사이트의
   평점 배지처럼 각 지표를 카드형 알약으로 분리해 시각적 위계를 준다.
========================================================= */

/* [수정] component.css의 .score-box는 margin-bottom만 지정하고
   margin-top이 없어 장르 줄과 평점 뱃지 사이 간격이 좁아 보였다.
   component.css보다 높은 특이도의 선택자로 위쪽 여백을 더한다. */
.content-detail-card .score-box {
  margin-top: 22px;
  margin-bottom: 20px;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.score-badge-icon {
  font-size: 15px;
  line-height: 1;
}

.score-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.score-badge-text em {
  color: #9c9c9c;
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2px;
}

.score-badge-text strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

/* [수정] strong(값)과 small(리뷰 건수)이 score-badge-text의
   column 레이아웃 안에서 각자 줄바꿈되어 오딧지 평점 뱃지만
   글로벌 평점 뱃지보다 한 줄 더 길어지는 문제가 있었다.
   값과 건수를 한 줄로 묶어 두 뱃지의 높이를 맞춘다. */
.score-badge-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.score-badge-text small {
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 500;
}

.score-badge--tmdb {
  border-color: rgba(255, 213, 74, 0.3);
  background: rgba(255, 213, 74, 0.09);
}

.score-badge--tmdb .score-badge-text strong {
  color: #ffd54a;
}

.score-badge--user {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

/* =========================================================
   ACTION BUTTONS

   [강화] 알약(pill) 형태로 통일하고, 찜하기는 채워진 버튼으로
   눌러 활성화되었을 때 붉은 그라디언트로 강조해 클릭 결과가
   한눈에 보이도록 했다.
========================================================= */

.action-box {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;

  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background: #3a3a3a;
  border-color: rgba(255, 255, 255, 0.24);
}

/* 헤더 카드 안의 찜/리뷰 버튼은 살짝 더 크고 굵게, 알약 형태로 */
.action-box .btn {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.action-box .btn:hover {
  transform: translateY(-1px);
}

.action-box .detail-favorite-btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.action-box .detail-favorite-btn.is-active {
  border-color: rgba(255, 92, 110, 0.55);
  background: linear-gradient(135deg, #ff5c6e, #b8222f);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 71, 87, 0.32);
}

.action-box #scrollReviewWriteBtn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #eaeaea;
}

.action-box #scrollReviewWriteBtn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   PAGE SECTIONS (공통)

   [리팩토링] 줄거리 / 감독·출연 / 관련 콘텐츠 / 관련 상품 / 리뷰가
   전부 <section class="detail-section">를 쓰는데도 정작 이 클래스
   자체엔 스타일이 하나도 없어서, 섹션마다 여백과 제목 크기가
   제각각(혹은 아예 브라우저 기본값)이었다. 여기서 한 번에
   통일한다. (개별 섹션의 내부 카드/그리드 스타일은 그대로 유지)
========================================================= */

.detail-section {
  margin-top: 48px;
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.detail-section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.2));
}

/* =========================================================
   GOODS GRID (LIST와 동일 시스템 공유)
========================================================= */

.goods-grid {
  display: grid;
  /* [수정] 페이지 폭에 상수 없이 5분할이라 넓은 화면에서 상품
     카드(포스터 aspect-ratio 2/3)가 지나치게 커지는 문제가 있었다.
     카드 폭을 상한선(180px)으로 고정하고, 남는 공간만큼 컬럼 수를
     자동으로 늘려 화면이 넓어져도 카드 자체는 일정한 크기를 유지한다. */
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  gap: 20px;
  margin-top: 20px;
}

.goods-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.goods-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.goods-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.goods-info {
  padding: 12px;
}

.goods-info .name {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-info .price {
  margin-top: 4px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* [수정] .more-btn에 별도 스타일이 없어 밑줄 없는 기본 링크
   텍스트로만 보여 특히 관련 상품이 없을 때 어색하게 떠 보였다.
   #scrollReviewWriteBtn과 같은 아웃라인 알약 버튼 언어로 통일한다. */
.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #dddddd;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.more-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* =========================================================
   PAGINATION
========================================================= */

/* =========================================================
   EMPTY STATE
========================================================= */

/* =========================================================
   RESPONSIVE (필수 유지)
========================================================= */

@media (max-width: 1400px) {
  .card-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .goods-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 140px));
    gap: 14px;
  }

  .content-container,
  .content-list-container,
  .detail-container,
  .filmography-container {
    padding: 28px 24px;
  }

  .content-hero {
    border-radius: 18px;
  }

  .content-hero-backdrop {
    filter: blur(26px) saturate(110%) brightness(0.48);
  }

  .content-detail-card,
  .person-hero {
    padding: 18px;
    border-radius: 16px;
  }

  .content-detail-card .detail-poster {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .person-hero-profile {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  /* 모바일에서는 포스터 아래 정보 영역(제목/뱃지/메타/장르/평점)이
     세로로 쌓이므로, 왼쪽 정렬 대신 포스터와 같은 기준으로
     가운데 정렬해 보기 좋게 정리합니다. (데스크톱은 기존 왼쪽
     정렬 그대로 유지) */
  .info-box {
    text-align: center;
  }

  .title-row,
  .meta-chip-list,
  .info-box .genre {
    justify-content: center;
  }

  .score-box {
    gap: 8px;
    justify-content: center;
  }

  .score-badge {
    padding: 7px 12px;
  }

  .action-box {
    flex-wrap: wrap;
  }

  .action-box .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .goods-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .goods-info {
    padding: 7px 8px;
  }

  .goods-info .name {
    font-size: 12px;
  }

  .content-container,
  .content-list-container,
  .detail-container,
  .filmography-container {
    padding: 20px 16px;
  }

  .info-box .title {
    font-size: 24px;
  }
}

/* =========================
   REVIEW SECTION WRAPPER
========================= */

/* 여백/제목 크기는 .detail-section, .detail-section h2 공통 규칙을
   그대로 사용 (다른 섹션들과 동일한 리듬 유지) */

/* .review-item / .review-meta / .review-content 기본 스타일은
   component.css 로 이동 (goodsDetail.jsp 와 통일).
   [강화] 콘텐츠 상세페이지에서는 작성자 옆에 이니셜 아바타를 붙이고,
   카드에 은은한 호버 효과를 더해 리뷰 목록에 생동감을 준다. */

.review-item {
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.review-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.review-avatar {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3c3c3c, #1c1c1c);
  color: #e6e6e6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* =========================
   REVIEW FORM
========================= */

.review-form {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px;
  border-radius: 14px;
  margin-top: 20px;
}

.review-form textarea {
  width: 100%;
  min-height: 100px;

  margin-top: 10px;
  padding: 10px;

  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;

  color: #fff;
  resize: none;
  transition: border-color 0.2s ease;
}

.review-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

/* [수정] 스포일러 체크박스(margin-top만 있고 margin-bottom은 없음)
   바로 아래 등록 버튼이 붙어서 너무 가까워 보였다. 등록 버튼에만
   위쪽 여백을 더해 시각적으로 분리한다. */
.review-form button[type="submit"] {
  display: block;
  margin-top: 16px;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
  color: #aaa;
}

.rating-box input {
  width: 80px;
  padding: 6px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.rating-box input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

/* =========================================================
   PEOPLE / FILMOGRAPHY
========================================================= */

/* 섹션 자체의 여백은 .detail-section 공통 규칙(48px)을 그대로 사용 */

.people-group + .people-group {
  margin-top: 32px;
}

.people-group h3 {
  margin: 0 0 16px;
  color: #d7d7d7;
  font-size: 15px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.person-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #1b1b1b;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.person-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #242424;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.person-profile {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #101010;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease;
}

.person-card:hover .person-profile {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.person-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-no-image,
.person-hero-no-image,
.filmography-no-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  /* [수정] #666 on #101010은 대비 약 3.3:1로 부족해 더 밝게 교체 */
  color: #7d7d7d;
  background: #101010;
  font-size: 10px;
}

.person-info {
  min-width: 0;
}

.person-info strong,
.person-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-info strong {
  color: #fff;
  font-size: 13px;
}

.person-info span {
  margin-top: 5px;
  color: #888;
  font-size: 11px;
}

.people-empty {
  color: #777;
  font-size: 13px;
}

.filmography-container {
  padding: 40px 60px 80px;
}

.person-hero {
  display: flex;
  gap: 36px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 45%, rgba(20, 20, 20, 0.86));
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.person-hero-profile {
  position: relative;
  width: 220px;
  height: 300px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #101010;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.person-hero-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.person-hero-profile:hover img {
  transform: scale(1.045);
}

.person-hero-info {
  min-width: 0;
  flex: 1;
}

.person-role-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 700;
}

.person-hero-info h1 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: 32px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.person-basic-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #999;
  font-size: 13px;
}

.person-biography {
  max-width: 900px;
  margin-top: 24px;
  color: #ccc;
  line-height: 1.75;
  white-space: pre-line;
}

.filmography-section {
  margin-top: 42px;
}

.filmography-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filmography-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.filmography-header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.2));
}

.filmography-header span {
  color: #888;
  font-size: 13px;
}

.filmography-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.filmography-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #1a1a1a;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.filmography-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.filmography-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #101010;
}

.filmography-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmography-type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.filmography-info {
  padding: 13px;
}

.filmography-info h3 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filmography-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #888;
  font-size: 11px;
}

.filmography-participation {
  overflow: hidden;
  margin: 8px 0 0;
  color: #aaa;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-btn {
  border: 0;
  background: transparent;
  color: #ddd;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .people-list,
  .filmography-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .people-list,
  .filmography-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .person-hero {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .filmography-container {
    padding: 24px 20px 60px;
  }

  .people-list,
  .filmography-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-hero-profile {
    width: 180px;
    height: 246px;
  }
}

/* =========================================================
   FILMOGRAPHY TAB
========================================================= */

.filmography-summary {
  margin: 8px 0 0;
  color: #858585;
  font-size: 13px;
}

.filmography-total-count {
  flex-shrink: 0;
}

.filmography-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filmography-tab-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #1c1c1c;
  color: #a8a8a8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.filmography-tab-button span {
  display: inline-flex;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c8c8c8;
  font-size: 11px;
}

.filmography-tab-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.filmography-tab-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.filmography-tab-button.is-active {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.filmography-tab-button.is-active span {
  background: #202020;
  color: #ffffff;
}

.filmography-tab-panel[hidden] {
  display: none;
}

.filmography-tab-panel.is-active {
  animation: filmographyPanelFadeIn 0.2s ease;
}

.filmography-role {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}

.filmography-role-label {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d4;
  font-size: 10px;
  font-weight: 700;
}

.filmography-role-value {
  overflow: hidden;
  color: #b5b5b5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-biography-empty {
  color: #777777;
}

@keyframes filmographyPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 650px) {
  .filmography-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .filmography-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .filmography-tab-button {
    min-width: 0;
    min-height: 40px;
    gap: 5px;
    padding: 0 8px;
    font-size: 11px;
  }

  .filmography-tab-button span {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
  }
}

/* =========================================================
   FILMOGRAPHY CARD SIZE OVERRIDE
========================================================= */

.filmography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.filmography-card {
  min-width: 0;
  border-radius: 12px;
}

.filmography-poster {
  aspect-ratio: 2 / 3;
}

.filmography-info {
  padding: 11px 12px 12px;
}

.filmography-info h3 {
  font-size: 13px;
}

.filmography-meta {
  margin-top: 7px;
  font-size: 10px;
}

.filmography-participation {
  margin-top: 7px;
  font-size: 10px;
}

.filmography-type {
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  font-size: 9px;
}

/* 큰 화면 */
@media (min-width: 1600px) {
  .filmography-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }
}

/* 노트북 화면 */
@media (max-width: 1200px) {
  .filmography-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
}

/* 태블릿 */
@media (max-width: 768px) {
  .filmography-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 모바일 */
@media (max-width: 520px) {
  .filmography-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .filmography-info {
    padding: 8px 9px 9px;
  }

  .filmography-info h3 {
    font-size: 12px;
  }
}

/* =========================================================
   CONTENT RIGHT SIDEBAR RECOMMEND CAROUSEL
========================================================= */

.recommend-sidebar {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #181818;
}

.recommend-sidebar-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.recommend-sidebar-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
}

.recommend-carousel-controls {
  display: flex;
  gap: 6px;
}

.recommend-carousel-button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: #222222;
  color: #ffffff;
  font-family: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.recommend-carousel-button:hover {
  background: #303030;
}

.recommend-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.recommend-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.recommend-carousel-track {
  display: flex;
  width: 100%;
}

.recommend-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.recommend-item {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.recommend-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #101010;
}

.recommend-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommend-item:hover .recommend-poster img {
  transform: scale(1.04);
}

.recommend-no-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  /* [수정] #666666 on #101010은 대비 약 3.3:1로 부족해 더 밝게 교체 */
  color: #7d7d7d;
  background: #101010;
  font-size: 11px;
}

.recommend-info {
  padding: 13px 14px 12px;
}

.recommend-title {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #999999;
  font-size: 11px;
}

.recommend-carousel-status {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0 14px 13px;
  color: #888888;
  font-size: 11px;
}

.recommend-empty {
  padding: 28px 16px;
  color: #777777;
  font-size: 12px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .recommend-carousel-viewport,
  .recommend-poster img {
    scroll-behavior: auto;
    transition: none;
  }
}

/* =========================================================
   CONTENT DETAIL OTT PLATFORM LIST
   - 상세 정보의 리뷰 버튼 아래에 작은 크기로 표시
========================================================= */

.ott-section {
  margin-top: 22px;
}

.ott-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.ott-section h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.2));
}

.ott-platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ott-platform-item {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ott-platform-item:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: #272727;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.ott-platform-item:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.ott-platform-logo-wrap {
  display: flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #101010;
}

.ott-platform-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ott-platform-no-logo {
  color: #777777;
  font-size: 8px;
  font-weight: 700;
}

.ott-platform-name {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ott-platform-link-icon {
  flex-shrink: 0;
  color: #777777;
  font-size: 10px;
}

.ott-platform-item:hover .ott-platform-link-icon {
  color: #ffffff;
}

.ott-platform-empty {
  margin: 0;
  color: #777777;
  font-size: 12px;
}

@media (max-width: 768px) {
  .ott-platform-list {
    width: 100%;
  }
}

/* =========================================================
   CONTENT DETAIL RELATED CONTENT RECOMMENDATION
========================================================= */

/* 섹션 자체의 여백은 .detail-section 공통 규칙(48px)과 동일해 별도 선언 없음 */

.related-content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

/* font-size/color/weight는 .detail-section h2 공통 규칙을 그대로 사용,
   여기서는 header flex 안에서의 margin만 초기화 */
.related-content-header h2 {
  margin: 0;
}

.related-content-header p {
  margin: 8px 0 0;
  color: #858585;
  font-size: 12px;
}

.related-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-content-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #1a1a1a;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.related-content-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.related-content-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #101010;
}

.related-content-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-content-card:hover .related-content-poster img {
  transform: scale(1.05);
}

.related-content-score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  /* [수정] #ffd54a on rgba(0,0,0,0.72)는 대비 약 10.8:1로 충분 */
  color: #ffd54a;
  font-size: 11px;
  font-weight: 700;
}

.related-content-no-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  /* [수정] #666666 on #101010은 대비 약 3.3:1로 부족해 더 밝게 교체 */
  color: #7d7d7d;
  background: #101010;
  font-size: 10px;
}

.related-content-type {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.related-content-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
}

.related-content-info h3 {
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-content-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #aaaaaa;
  font-size: 11px;
}

.related-content-genre {
  display: -webkit-box;
  overflow: hidden;
  margin: 13px 0 0;
  color: #7f7f7f;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
}

/*
 * 관련 콘텐츠 추천 이유 영역
 * 장르 정보와 시각적으로 구분하면서도 카드 높이가 지나치게 커지지 않도록
 * 최대 세 줄까지만 표시합니다.
 */
.related-content-reason {
  --reason-color: #9b9b9b;
  --reason-background: rgba(155, 155, 155, 0.1);

  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.related-content-reason-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--reason-color) 38%, transparent);
  border-radius: 999px;
  background: var(--reason-background);
  color: var(--reason-color);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.related-content-reason p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--reason-color);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.88;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* 같은 감독이 추천 근거인 경우: 보라색 */
.related-content-reason.reason-director {
  --reason-color: #c4a7ff;
  --reason-background: rgba(196, 167, 255, 0.1);
}

/* 같은 출연진이 추천 근거인 경우: 주황색 */
.related-content-reason.reason-cast {
  --reason-color: #ffbd7a;
  --reason-background: rgba(255, 189, 122, 0.1);
}

/* 주 장르까지 같은 경우: 청록색 */
.related-content-reason.reason-main-genre {
  --reason-color: #78ddd2;
  --reason-background: rgba(120, 221, 210, 0.1);
}

/* 일부 장르가 일치하는 경우: 연두색 */
.related-content-reason.reason-genre {
  --reason-color: #a9d985;
  --reason-background: rgba(169, 217, 133, 0.1);
}

/* 콘텐츠 분류만 유사한 기본 추천: 회색 */
.related-content-reason.reason-category {
  --reason-color: #a9adb5;
  --reason-background: rgba(169, 173, 181, 0.1);
}

.related-content-empty {
  padding: 38px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #181818;
  /* [수정] #777777 on #181818은 대비 약 4.0:1로 부족해 더 밝게 교체 */
  color: #818181;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1200px) {
  .related-content-grid {
    grid-template-columns: 1fr;
  }

  .related-content-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .related-content-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-content-info {
    padding: 14px 12px;
  }

  .related-content-info h3 {
    font-size: 14px;
  }
}

/* =========================================================
   CONTENT LIST OTT PLATFORM MODAL
========================================================= */

.content-provider-group {
  padding-bottom: 16px;
}

.content-provider-select-btn {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #222222;
  color: #dddddd;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.content-provider-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #2b2b2b;
  color: #ffffff;
}

.content-provider-select-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.content-provider-summary {
  overflow: hidden;
  margin: 10px 0 0;
  color: #999999;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.content-ott-modal-open {
  overflow: hidden;
}

body.content-ott-modal-open .content-list-left-sidebar {
  z-index: 100000;
}

body.content-ott-modal-open .content-filter-form {
  overflow: visible;
}

.content-ott-modal[hidden] {
  display: none !important;
}

.content-ott-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: flex;
  width: 100vw;
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
}

.content-ott-modal-backdrop {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.content-ott-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #1d1d1d;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: contentOttModalOpen 0.18s ease;
}

@keyframes contentOttModalOpen {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.content-ott-modal-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.content-ott-modal-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.content-ott-modal-close-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaaaaa;
  font-family: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.content-ott-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.content-ott-modal-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 20px;
}

.content-ott-modal-all-option {
  margin-bottom: 14px;
  border-color: rgba(255, 255, 255, 0.15);
  background: #252525;
}

.content-ott-modal-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.content-ott-modal-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #202020;
  color: #cccccc;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.content-ott-modal-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #282828;
  color: #ffffff;
}

.content-ott-modal-option:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.44);
  background: #303030;
  color: #ffffff;
}

.content-ott-modal-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #ffffff;
  cursor: pointer;
}

.content-ott-modal-option-logo {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  min-height: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #ffffff;
  object-fit: cover;
  object-position: center;
}

.content-ott-modal-option-text {
  font-size: 13px;
  font-weight: 600;
}

.content-ott-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-ott-modal-cancel-btn,
.content-ott-modal-confirm-btn {
  min-width: 96px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.content-ott-modal-cancel-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #292929;
  color: #dddddd;
}

.content-ott-modal-confirm-btn {
  border: 0;
  background: #ffffff;
  color: #111111;
}

@media (max-width: 600px) {
  .content-ott-modal {
    padding: 14px;
  }

  .content-ott-modal-option-grid {
    grid-template-columns: 1fr;
  }

  .content-ott-modal-footer {
    flex-direction: column-reverse;
  }

  .content-ott-modal-cancel-btn,
  .content-ott-modal-confirm-btn {
    width: 100%;
  }
}

/* =========================================================
   [추가] 콘텐츠 리뷰 스포일러 기능
========================================================= */
.spoiler-check-box {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #cfcfcf;
  font-size: 13px;
  cursor: pointer;
}
.spoiler-check-box input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #fff;
}
.spoiler-review {
  position: relative;
  min-height: 92px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #171717;
}
.spoiler-review-content {
  min-height: 68px;
  margin: 0;
  padding: 16px;
  filter: blur(7px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}
.spoiler-review-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.74);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}
.spoiler-review-overlay span {
  color: #aaa;
  font-size: 12px;
}
.spoiler-review.revealed .spoiler-review-content {
  filter: none;
  opacity: 1;
  user-select: text;
  pointer-events: auto;
}
.spoiler-review.revealed .spoiler-review-overlay {
  display: none;
}
body.spoiler-modal-open {
  overflow: hidden;
}
.spoiler-confirm-modal[hidden] {
  display: none;
}
.spoiler-confirm-modal {
  position: fixed;
  inset: 0;
  width: auto;
  max-width: none;
  margin: 0;
  border: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 3000;
}
.spoiler-confirm-dialog {
  width: min(100%, 390px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #202020;
  color: #fff;
  text-align: center;
}
.spoiler-confirm-dialog h3 {
  margin: 0 0 14px;
}
.spoiler-confirm-dialog p {
  margin: 0;
  color: #d0d0d0;
  line-height: 1.7;
}
.spoiler-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.spoiler-confirm-actions .btn {
  min-width: 100px;
}

/* =========================================================
   [추가] 콘텐츠 상세 페이지 본인 리뷰 수정·삭제 영역
   - 기존 리뷰 카드 레이아웃과 색상은 유지한다.
   ========================================================= */
.my-review-actions,
.inline-review-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  /* [수정] 스포일러 체크박스와 너무 붙어 보이던 문제를 등록 폼과
     동일하게 위쪽 여백으로 분리한다. */
  margin-top: 16px;
  margin-left: auto;
}

.review-delete-form {
  margin: 0;
}

.inline-review-edit-form {
  margin-top: 16px;
}

.visually-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* [추가] 본인 리뷰의 수정·삭제 버튼 디자인을 기존 신고 버튼과 동일하게 유지한다.
   신고 모달 이벤트와 충돌하지 않도록 report-btn 클래스는 사용하지 않는다. */
.review-edit-open-btn,
.review-delete-btn {
  padding: 7px 12px;
  border: 1px solid #7f3035;
  border-radius: 7px;
  background: transparent;
  color: #d96a70;
  font-size: 13px;
  cursor: pointer;
}

/* [추가] 수정·삭제 버튼 마우스 오버 효과 */
.review-edit-open-btn:hover,
.review-delete-btn:hover {
  background: rgba(127, 48, 53, 0.18);
}
