@charset "UTF-8";

.recommendation-detail {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--sl-page, #fff6f4);
  color: var(--sl-ink, #111);
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  height: calc(56px + env(safe-area-inset-top));
  margin-bottom: calc(-56px - env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.detail-topbar.is-solid {
  background: linear-gradient(180deg, #ff6b6b 0%, var(--sl-brand, #ff5b5b) 100%);
  box-shadow: 0 2px 12px rgba(150, 15, 15, 0.14);
  pointer-events: auto;
}

.detail-topbar > span {
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.detail-topbar.is-solid > span {
  opacity: 1;
}

.detail-topbar button {
  width: 40px;
  height: 40px;
  margin-left: 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
}

.detail-topbar.is-solid button {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.detail-topbar button svg {
  width: 22px;
  height: 22px;
}

.detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sl-brand-soft, #fff0ee);
}

.detail-hero-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.detail-hero-caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 0 20px 36px;
  color: #fff;
  pointer-events: none;
}

.detail-hero-caption h1 {
  min-width: 0;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.detail-hero-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-photo-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  padding: 5px 11px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.detail-sheet {
  position: relative;
  z-index: 2;
  margin-top: -20px;
  padding: 18px 16px 20px;
  border-radius: 24px 24px 0 0;
  background: var(--sl-surface, #fff);
  box-shadow: 0 -8px 24px rgba(150, 15, 15, 0.08);
}

.detail-sheet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--sl-line, #f3e2de);
  transform: translateX(-50%);
}

.detail-stars {
  display: flex;
  gap: 4px;
  margin: 10px 0 4px;
}

.detail-stars svg {
  width: 18px;
  height: 18px;
}

.detail-star {
  color: #fbbf24;
}

.detail-star-empty {
  color: #d1d5db;
}

.detail-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.detail-param-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sl-page, #fff6f4);
}

.detail-param-label {
  color: var(--sl-muted, #6b6b6b);
  font-size: 12px;
}

.detail-param-value {
  color: var(--sl-ink, #111);
  font-size: 15px;
  font-weight: 700;
}

.detail-date-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--sl-cta-gradient, linear-gradient(180deg, #ff8a0f 0%, #ee6c00 100%));
  box-shadow: 0 8px 20px rgba(238, 108, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.detail-date-btn:active {
  transform: translateY(1px);
}

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.detail-section-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: var(--sl-ink, #111);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.detail-section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--sl-cta-gradient, linear-gradient(180deg, #ff8a0f 0%, #ee6c00 100%));
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-gallery button {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sl-brand-soft, #fff0ee);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photo-index {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.detail-intro {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--sl-page, #fff6f4);
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-video-box {
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.detail-video-box .video-js {
  width: 100%;
  min-height: 200px;
}

.detail-related {
  padding: 0 16px;
}

.detail-related-row {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.detail-related-row::-webkit-scrollbar {
  display: none;
}

.detail-related-card {
  position: relative;
  flex: 0 0 132px;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sl-brand-soft, #fff0ee);
  box-shadow: 0 6px 18px rgba(150, 15, 15, 0.06);
  scroll-snap-align: start;
  text-decoration: none;
}

.detail-related-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.detail-related-card > div {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.detail-related-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-related-card p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.85;
}

.detail-sheet .profile-tags {
  margin: 6px 0 0;
}

.detail-sheet .profile-tag {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
}
