/**
 * 메인 홈 — teo.stays 쇼츠 가로 레일 (sybeyun 전용)
 * teorail10e: 외곽은 즉시예약 폭(margin 20 / PC 0), 안쪽 pad-x는 유지
 */
.r26-teo-shorts {
  --teo-card-w: 160px;
  --teo-pad-x: 16px;
  position: relative;
  box-sizing: border-box;
  margin: 8px 20px 12px;
  padding: 20px 0 12px;
  background: var(--wh-card, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--wh-radius-md, 20px);
}
.r26-teo-shorts *,
.r26-teo-shorts *::before,
.r26-teo-shorts *::after {
  box-sizing: border-box;
}
.r26-teo-shorts__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--teo-pad-x);
  margin: 0 0 14px;
}
.r26-teo-shorts__intro-left {
  min-width: 0;
  flex: 1 1 auto;
}
.r26-teo-shorts__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 11px 5px 8px;
  border-radius: var(--wh-radius-pill, 999px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #F2F4F6;
  color: #191f28;
  font-family: var(--wh-ff);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.r26-teo-shorts__chip:hover {
  background: #E8EBEE;
  color: #191f28;
  text-decoration: none;
  border-color: rgba(0, 0, 0, 0.08);
}
.r26-teo-shorts__chip:focus-visible {
  outline: 2px solid var(--wh-focus-ring, var(--wh-brand, #681DC7));
  outline-offset: 2px;
}
.r26-teo-shorts__chip-ig {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: block;
  opacity: 0.85;
}
.r26-teo-shorts__chip-handle {
  letter-spacing: 0.02em;
}
.r26-teo-shorts__chip-sep {
  opacity: 0.35;
  font-weight: 500;
}
.r26-teo-shorts__chip-cta {
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: -0.01em;
}
.r26-teo-shorts__chip-ext {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: block;
  opacity: 0.45;
}
.r26-teo-shorts__title {
  margin: 0;
  font-family: var(--wh-ff-display, var(--wh-ff));
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wh-tx, #191f28);
  line-height: 1.3;
  word-break: keep-all;
}
.r26-teo-shorts__sub {
  margin: 4px 0 0;
  font-family: var(--wh-ff);
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-tx2, #4e5968);
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-break: keep-all;
}
.r26-teo-shorts__intro-nav {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  /* 칩 높이만큼 내려 제목 라인과 맞춤 */
  margin-top: 28px;
}
.r26-teo-shorts__nav {
  position: static;
  transform: none;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: var(--wh-tx, #191f28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.r26-teo-shorts__nav:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.r26-teo-shorts__nav:active,
.r26-teo-shorts__nav:focus-visible {
  transform: none;
}
.r26-teo-shorts__nav:focus-visible {
  outline: 2px solid var(--wh-focus-ring, var(--wh-brand, #681DC7));
  outline-offset: 2px;
}
.r26-teo-shorts__nav[hidden] {
  display: none !important;
}
.r26-teo-shorts__nav:disabled {
  opacity: 0.3 !important;
  pointer-events: none !important;
  cursor: default;
  box-shadow: none;
}
.r26-teo-shorts__nav svg {
  width: 18px;
  height: 18px;
  display: block;
}
.r26-teo-shorts__nav--prev,
.r26-teo-shorts__nav--next {
  left: auto;
  right: auto;
}
.r26-teo-shorts__rail-wrap {
  position: relative;
}
.r26-teo-shorts__rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* mandatory는 초기 스냅으로 rail padding을 밀어내므로 proximity */
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--teo-pad-x);
  padding: 0 var(--teo-pad-x);
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.r26-teo-shorts__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.r26-teo-shorts__rail.is-dragging .r26-teo-shorts__card-hit {
  pointer-events: none;
}
.r26-teo-shorts__rail::-webkit-scrollbar {
  display: none;
}
.r26-teo-shorts__card {
  position: relative;
  flex: 0 0 var(--teo-card-w);
  width: var(--teo-card-w);
  scroll-snap-align: start;
  color: inherit;
  display: block;
}
.r26-teo-shorts__card-hit {
  display: block;
  text-decoration: none;
  color: inherit;
  /* wh-pressable manipulation이 가로 스와이프를 막지 않게 */
  touch-action: pan-x pan-y;
}
.r26-teo-shorts__card-hit.wh-pressable {
  touch-action: pan-x pan-y;
}
.r26-teo-shorts__media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}
/* 밝은 썸네일에서도 뱃지·플레이 가독 */
.r26-teo-shorts__media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 2;
}
.r26-teo-shorts__video,
.r26-teo-shorts__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 기본: 정적 썸네일. 미리보기 중에만 video 표시 */
.r26-teo-shorts__img {
  z-index: 1;
}
.r26-teo-shorts__video {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
.r26-teo-shorts__media.is-playing .r26-teo-shorts__video {
  z-index: 2;
  opacity: 1;
}
.r26-teo-shorts__media.is-playing .r26-teo-shorts__img {
  opacity: 0;
}
.r26-teo-shorts__media.is-fallback .r26-teo-shorts__video {
  display: none;
}
.r26-teo-shorts__media.is-fallback .r26-teo-shorts__img {
  opacity: 1;
  z-index: 1;
}
.r26-teo-shorts__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.r26-teo-shorts__media.is-playing .r26-teo-shorts__play {
  opacity: 0;
}
.r26-teo-shorts__play svg {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}
.r26-teo-shorts__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-family: var(--wh-ff);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  pointer-events: none;
}
.r26-teo-shorts__badge[hidden] {
  display: none !important;
}
.r26-teo-shorts__badge svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  opacity: 0.9;
}
.r26-teo-shorts__meta {
  margin-top: 10px;
  min-width: 0;
}
.r26-teo-shorts__card-title {
  font-family: var(--wh-ff);
  font-size: 13px;
  font-weight: 600;
  color: var(--wh-tx, #191f28);
  line-height: 1.4;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}
.r26-teo-shorts__place {
  margin-top: 3px;
  font-family: var(--wh-ff);
  font-size: 12px;
  font-weight: 500;
  color: #8B95A1;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r26-teo-shorts__price {
  margin-top: 4px;
  font-family: var(--wh-ff);
  font-size: 14px;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

/* 릴스 모달 (teorail12) */
html.r26-teo-modal-open {
  overflow: hidden;
}
/* 쇼츠 모달 중 챗봇 FAB(우하단) 가림 — z-index가 모달보다 높음 */
html.r26-teo-modal-open .wh-air-fab,
html.r26-teo-modal-open .wh-air-tip,
html.r26-teo-modal-open .wh-air-panel {
  display: none !important;
}
.r26-teo-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.r26-teo-modal[hidden] {
  display: none !important;
}
.r26-teo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.r26-teo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
}
.r26-teo-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(90vh, 760px);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  touch-action: pan-y;
}
.r26-teo-modal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
}
.r26-teo-modal__chrome {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: auto;
}
/* 볼륨 = 단일 알약(캡슐). 기본 원형, 호버 시 가로로 확장 */
.r26-teo-modal__vol {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  height: 36px;
  width: 36px;
  min-width: 36px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: width 0.3s ease, min-width 0.3s ease;
}
.r26-teo-modal__vol-btn,
.r26-teo-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  padding: 0;
  margin: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
/* 스피커는 캡슐 안에 있으므로 자체 배경 없음 */
.r26-teo-modal__vol-btn {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.r26-teo-modal__close {
  position: static;
  top: auto;
  right: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.r26-teo-modal__close-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.r26-teo-modal__vol-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.r26-teo-modal__vol-btn.is-muted .r26-teo-modal__vol-icon--on {
  display: none;
}
.r26-teo-modal__vol-btn.is-muted .r26-teo-modal__vol-icon--off {
  display: block;
}
.r26-teo-modal__vol-btn:not(.is-muted) .r26-teo-modal__vol-icon--off {
  display: none;
}
.r26-teo-modal__vol-btn:not(.is-muted) .r26-teo-modal__vol-icon--on {
  display: block;
}
.r26-teo-modal__vol-slider-wrap {
  position: relative;
  width: 0;
  height: 36px;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  pointer-events: none;
  transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.r26-teo-modal__vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  min-width: 80px;
  height: 3.5px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff var(--teo-vol-pct, 100%),
    rgba(255, 255, 255, 0.35) var(--teo-vol-pct, 100%),
    rgba(255, 255, 255, 0.35) 100%
  );
}
.r26-teo-modal__vol-slider::-webkit-slider-runnable-track {
  height: 3.5px;
  border-radius: 999px;
  background: transparent;
}
.r26-teo-modal__vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -2.75px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.r26-teo-modal__vol-slider::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}
.r26-teo-modal__vol-slider::-moz-range-track {
  height: 3.5px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

/* 미확장: 슬라이더 래퍼만 접힘 (모바일도 is-expandable 부여) */
.r26-teo-modal__vol:not(.is-expandable) .r26-teo-modal__vol-slider-wrap {
  display: none !important;
}

/* PC: 호버/is-open 시 캡슐 확장 + 슬라이더 등장 */
.r26-teo-modal__vol.is-expandable:hover,
.r26-teo-modal__vol.is-expandable.is-open {
  width: 128px;
  min-width: 128px;
}
.r26-teo-modal__vol.is-expandable:hover .r26-teo-modal__vol-slider-wrap,
.r26-teo-modal__vol.is-expandable.is-open .r26-teo-modal__vol-slider-wrap {
  width: 92px;
  opacity: 1;
  padding: 0 8px 0 14px;
  pointer-events: auto;
}

/* 모바일: 호버 없음 → 항상 펼침(슬라이더 노출) */
@media (max-width: 767px) {
  .r26-teo-modal__vol.is-expandable {
    width: 128px;
    min-width: 128px;
  }
  .r26-teo-modal__vol.is-expandable .r26-teo-modal__vol-slider-wrap {
    width: 92px;
    opacity: 1;
    padding: 0 8px 0 14px;
    pointer-events: auto;
  }
}
.r26-teo-modal__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.r26-teo-modal__copy {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
.r26-teo-modal__title {
  font-family: var(--wh-ff);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r26-teo-modal__sub {
  margin-top: 4px;
  font-family: var(--wh-ff);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r26-teo-modal__sub[hidden] {
  display: none !important;
}
.r26-teo-modal__cta {
  pointer-events: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--wh-ff);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.r26-teo-modal__cta:hover,
.r26-teo-modal__cta:focus-visible {
  background: #fff;
  color: #111;
  border-color: #fff;
  text-decoration: none;
}
.r26-teo-modal__cta:active {
  background: #f2f2f2;
  color: #111;
}
.r26-teo-modal__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 18px;
  display: flex;
  align-items: flex-end;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
}
.r26-teo-modal__progress::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.r26-teo-modal__progress-fill {
  position: relative;
  height: 2px;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* 모바일: 노치 + 하단 네비 가림 방지 (프레임만) */
@media (max-width: 767px) {
  html.r26-teo-modal-open nav#bottom_nav {
    visibility: hidden;
    pointer-events: none;
  }
  .r26-teo-modal {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    align-items: center;
  }
  .r26-teo-modal__dialog,
  .r26-teo-modal__player {
    max-height: calc(
      100dvh
      - env(safe-area-inset-top, 0px)
      - env(safe-area-inset-bottom, 0px)
      - 24px
    );
    width: min(360px, 100%);
  }
  .r26-teo-modal__close {
    top: auto;
    right: auto;
  }
  .r26-teo-modal__overlay {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .r26-teo-shorts {
    --teo-card-w: 180px;
    --teo-pad-x: 20px;
    margin: 10px 20px 14px;
    padding: 24px 0 14px;
    border-radius: var(--wh-radius-md, 20px);
  }
  .r26-teo-shorts__rail {
    gap: 24px;
  }
  .r26-teo-shorts__intro-nav {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .r26-teo-shorts__intro-nav .r26-teo-shorts__nav {
    display: inline-flex;
  }
  .r26-teo-modal__dialog {
    width: min(380px, 100%);
  }
}

/* PC: 섹션 hover 시에만 헤더 화살표 fade-in */
@media (min-width: 768px) and (hover: hover) {
  .r26-teo-shorts:hover .r26-teo-shorts__intro-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 터치 PC/태블릿: hover 없으면 약하게 상시 */
@media (min-width: 768px) and (hover: none) {
  .r26-teo-shorts__intro-nav {
    opacity: 0.9;
    pointer-events: auto;
  }
}

/* PC 메인: 외곽 margin 0(즉시예약 폭), 안쪽 pad-x 20 유지 */
@media (min-width: 1024px) {
  html.index-force-desktop-ui .r26-teo-shorts {
    --teo-pad-x: 20px;
    margin: 12px 0 16px;
    padding: 28px 0 16px;
  }
}
