/* ==========================================================================
   hero.css — Agent B: 대기 배경, 브레드크럼, 제목 행, 미디어 플레이어, 글랜스
   값 출처: 실제 스팀 game.css / store.css / apphub.css 에서 검증한 수치 사용
   ========================================================================== */

/* --------------------------------------------------------------------------
   대기 배경 (2025-10 신형 게임페이지 배경 합성)
   store.css: .page_top_area { position:relative; overflow-y:hidden; }
   — 가로 스크롤바 방지를 위해 overflow 전체 hidden 사용 (시각 결과 동일)
   -------------------------------------------------------------------------- */
.page_top_area {
  position: relative;
  overflow: hidden;
}

.game_page_background_ctn {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  max-width: 2300px;
  margin: 0 auto;
  background: var(--gradient-hero-glow);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
}

.game_page_background_ctn img {
  width: 100%;
  display: block;
}

.game_page_background_ctn img.gameColor {
  filter: blur(60px);
  opacity: 0.5;
  mix-blend-mode: color;
}

.game_page_background_ctn img.gameTexture {
  position: absolute;
  top: 0;
  left: 0;
  filter: saturate(0.1) opacity(0.2);
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(180deg, #000 38%, rgba(0, 0, 0, 0.5) 96%);
  mask-image: linear-gradient(180deg, #000 38%, rgba(0, 0, 0, 0.5) 96%);
}

/* --------------------------------------------------------------------------
   브레드크럼 — store.css: 12px #56707f, 링크 #8f98a0(호버 흰색),
   .v7menu .breadcrumbs { padding-top: 20px }
   -------------------------------------------------------------------------- */
.breadcrumbs {
  color: var(--color-breadcrumb);
  font-size: 12px;
  padding-top: 20px;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   앱 제목 행 — apphub.css: .apphub_AppName 26px/32px 흰색
   -------------------------------------------------------------------------- */
.apphub_HomeHeaderContent {
  max-width: 1200px;
  margin: 0 auto;
}

.apphub_OtherSiteInfo {
  position: relative;
  float: right;
}

.apphub_AppName {
  color: #fff;
  font-size: 26px;
  line-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   미디어 + 요약 블록 — game.css #game_highlights (widestore)
   -------------------------------------------------------------------------- */
.game_background_glow {
  margin: 0 auto;
  padding-bottom: 1px;
  background: radial-gradient(800px 120px at 50% bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  background-position: bottom;
  background-repeat: no-repeat;
}

#game_highlights {
  display: flex;
  flex-direction: row-reverse;
  background: var(--gradient-highlights);
  backdrop-filter: blur(7px);
  padding-bottom: 12px;
}

/* 스팀 원본과 동일하게 :where()로 특이도 0 유지 (행 링크 color:inherit이 이기도록) */
:where(#game_highlights) a {
  color: var(--color-link);
}

:where(#game_highlights) a:hover {
  color: #fff;
}

#game_highlights .rightcol {
  width: var(--hero-rightcol-width);
  flex-grow: 0;
  flex-shrink: 0;
}

#game_highlights .leftcol {
  max-width: 824px;
  min-width: 0;
  width: auto;
  flex-grow: 1;
  flex-shrink: 1;
}

/* --------------------------------------------------------------------------
   글랜스 컬럼 (우측 375px)
   -------------------------------------------------------------------------- */
.glance_ctn {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.game_header_ctn {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

img.game_header_image_full {
  width: 375px;
  height: auto;
  aspect-ratio: 920 / 430;
  display: block;
  object-fit: cover;
}

.game_description_snippet {
  overflow: hidden;
  font-size: 14px;
  line-height: 19px;
  padding-right: 16px;
  display: -webkit-box;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.glance_mid_ctn {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-around;
}

.glance_ctn .user_reviews {
  font-size: 13px;
  color: var(--summary-title-text-color);
}

.glance_ctn .user_reviews_summary_row,
.glance_ctn .dev_row,
.glance_ctn .release_date {
  display: flex;
  line-height: 18px;
  font-size: 13px;
  color: inherit;
}

.glance_ctn .user_reviews_summary_row .column,
.glance_ctn .dev_row .column,
.glance_ctn .release_date .column {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.glance_ctn .subtitle {
  text-transform: uppercase;
  font-size: 11px;
  padding-right: 10px;
  min-width: 35%;
  color: var(--summary-title-text-color);
}

.glance_ctn .summary.column {
  min-width: 50%;
}

.glance_ctn .dev_row {
  color: var(--summary-title-text-color);
}

.glance_ctn .release_date {
  padding-top: 9px;
  padding-bottom: 13px;
  color: var(--summary-title-text-color);
}

.glance_ctn .release_date .date {
  color: var(--color-text-muted);
  max-height: 30px;
  overflow: hidden;
}

/* 태그 영역 — game.css: 라벨 12px #556772, 태그 행 22px 한 줄 */
.glance_tags_ctn {
  margin: 10px 0 0 0;
  font-size: 11px;
}

.glance_tags_label {
  line-height: 19px;
  font-size: 12px;
  color: var(--color-tag-label);
}

.glance_tags {
  white-space: nowrap;
  height: 22px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   미디어 플레이어 (좌측) — game.css
   -------------------------------------------------------------------------- */
.highlight_overflow {
  overflow: hidden;
  margin-right: 16px;
  position: relative;
}

#highlight_player_area {
  background-color: #000;
  overflow: hidden;
  position: relative;
  aspect-ratio: 600 / 338;
}

.highlight_player_item {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  display: none;
}

.highlight_player_item.active {
  display: block;
}

.highlight_screenshot_link {
  display: block;
  height: 100%;
}

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

.highlight_movie video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* 썸네일 스트립 — 항목 116×65 + 2px 마진, 선택 시 3px #d6d7d8 테두리 */
#highlight_strip {
  margin-top: 4px;
  margin-bottom: 4px;
  position: relative;
  height: 69px;
  z-index: 40;
  overflow: hidden;
}

#highlight_strip_scroll {
  position: absolute;
  top: 0;
  left: 0;
  transition: left 0.3s ease;
}

.highlight_strip_item {
  box-sizing: content-box; /* 스팀 원본 치수 재현 — 전역 border-box 예외 */
  float: left;
  height: 65px;
  width: 116px;
  cursor: pointer;
  text-align: center;
  margin: 2px;
  background-color: #000;
  position: relative;
}

.highlight_strip_item img {
  width: 116px;
  height: 65px;
  object-fit: cover;
  display: block;
}

.highlight_strip_item.focus {
  margin: 0;
  border: 3px solid #d6d7d8;
}

.highlight_movie_marker {
  position: absolute;
  top: 16px;
  left: 42px;
  width: 32px;
  height: 32px;
}

/* 슬라이더 — store.css: 트랙/핸들/화살표 버튼 수치 그대로 */
.slider_ctn {
  position: relative;
  height: 18px;
  -webkit-user-select: none;
  user-select: none;
}

.slider {
  position: absolute;
  left: 39px;
  right: 39px;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.slider_ctn .handle {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 60px;
  border-radius: 3px;
  cursor: pointer;
}

.slider_ctn .slider_left,
.slider_ctn .slider_right {
  position: absolute;
  width: 38px;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted); /* 원본은 스프라이트 화살표 — 근사색 */
}

.highlight_ctn .slider_ctn .slider_left,
.highlight_ctn .slider_ctn .slider_right,
.highlight_ctn .slider .handle {
  background-color: rgba(35, 60, 81, 0.4);
}

.slider_ctn .slider_left:hover,
.slider_ctn .slider_right:hover,
.slider .handle:hover {
  background: linear-gradient(135deg, #3d6c8d 0%, #2e5470 100%);
  color: var(--color-text);
}

.slider_left {
  left: 0;
}

.slider_right {
  right: 0;
}

.slider_left.disabled,
.slider_right.disabled {
  opacity: 0.4;
  cursor: default;
}

/* --------------------------------------------------------------------------
   스크린샷 라이트박스 — game.css .screenshot_popup_modal_* 값 재사용
   (오버레이/중앙 정렬은 정적 클론용 재구성)
   -------------------------------------------------------------------------- */
.screenshot_popup_modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.screenshot_popup_modal_content {
  position: relative;
  padding: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #356480 5%, #1a303d 95%);
  max-width: min(1240px, 94vw);
}

.screenshot_popup_modal_title {
  height: 20px;
  line-height: 20px;
  margin-bottom: 6px;
  padding-right: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
  font-size: 12px;
}

.screenshot_popup_close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  color: var(--color-text);
  font-size: 16px;
  line-height: 20px;
}

.screenshot_popup_close:hover {
  color: #fff;
}

.screenshot_img_ctn img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  cursor: pointer;
}

.screenshot_popup_modal_footer {
  position: relative;
  height: 28px;
  line-height: 28px;
  margin-top: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screenshot_popup_modal_footer .btnv6_blue_hoverfade span {
  line-height: 26px;
  padding: 0 15px;
  font-size: 12px;
}

.screenshot_popup_modal_footer .previous {
  position: absolute;
  left: 0;
  top: 0;
}

.screenshot_popup_modal_footer .next {
  position: absolute;
  right: 0;
  top: 0;
}

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */
@media (max-width: 910px) {
  .game_page_background_ctn {
    width: 96vw;
    min-width: 0;
  }

  .page_title_area {
    padding-left: 2vw;
    padding-right: 2vw;
  }

  /* 플레이어를 위, 글랜스를 아래로 (DOM은 rightcol 먼저) */
  #game_highlights {
    flex-direction: column-reverse;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  /* 좁은 화면: 태그 한 줄 클램프 해제(여러 줄 표시) */
  .glance_tags {
    height: auto;
    white-space: normal;
    overflow: visible;
  }

  #game_highlights .rightcol {
    width: 100%;
  }

  #game_highlights .leftcol {
    max-width: none;
    width: 100%;
  }

  .highlight_overflow {
    margin-right: 0;
  }

  img.game_header_image_full {
    width: 100%;
  }

  .game_description_snippet {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .apphub_AppName {
    font-size: 20px;
  }

  .breadcrumbs {
    padding-top: 10px;
  }

  /* 썸네일 스트립: 네이티브 가로 스크롤 */
  #highlight_strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #highlight_strip_scroll {
    position: static;
    display: flex;
    width: auto !important;
    transition: none;
  }

  .highlight_strip_item {
    float: none;
    flex: 0 0 auto;
  }

  .slider_ctn {
    display: none;
  }
}
