/* 流し見（feed.html）: 全画面・縦スナップ・1 作品 = 1 画面 */
body.is-reel { overflow: hidden; padding-bottom: 0 !important; }
body.is-reel .site-header, body.is-reel .site-footer { display: none; }
@media (max-width: 600px) {
  body.is-reel .bottom-nav { display: flex; background: rgba(0,0,0,.72); border-top-color: rgba(255,255,255,.08); z-index: 5; }
  body.is-reel .slide__info { bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.is-reel .slide__rail { bottom: calc(150px + env(safe-area-inset-bottom)); }
  body.is-reel .reel__hint { bottom: auto; top: 30%; }   /* 情報・プレースホルダーと重ならない位置に */
  body.is-reel .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 601px) { body.is-reel .bottom-nav { display: none; } }
.reel { position: fixed; inset: 0; background: #000; }
.reel__scroller {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.reel__scroller::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.slide__bg { position: absolute; inset: 0; overflow: hidden; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; transform: scale(1.15); filter: none; }
.slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.85) 100%); }
.slide__media { position: absolute; inset: 0; display: grid; place-items: center; }
.slide__poster { max-width: 100%; max-height: 100%; width: 100%; object-fit: contain; }
.slide__noimage { color: var(--text-muted); font-size: .9rem; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.slide__noimage img { width: 64px; height: 64px; object-fit: contain; opacity: .6; }
.slide__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.slide__play { position: absolute; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; pointer-events: none; }
.slide__rail { position: absolute; right: 8px; bottom: 120px; display: flex; flex-direction: column; gap: 10px; align-items: center; z-index: 2; }
.slide__btn { width: 46px; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.slide__btn span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); transition: background .15s, transform .1s, color .15s; }
.slide__btn span svg { width: 22px; height: 22px; }
.slide__btn--like.is-on span { background: #ff4d6d; color: #fff; }
.slide__btn--meh.is-on span { background: #d9a441; color: #111; }
.slide__btn--no.is-on span { background: #444a57; color: #fff; }
.slide__btn--sub { margin-top: 6px; opacity: .85; }
.slide__btn--sub span { width: 36px; height: 36px; }
.slide__btn--sub span svg { width: 22px; height: 22px; }
.slide__btn small { white-space: nowrap; font-size: .6rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.slide__btn:active span { transform: scale(.92); }
.slide__rail { gap: 14px; }
.slide__info { position: absolute; left: 10px; right: 62px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 2; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.slide__sale { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #e0322f; font-size: .68rem; font-weight: 800; vertical-align: 1px; }
.slide__title { display: block; width: 100%; margin: 0 0 2px; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.slide__info.is-open .slide__title { white-space: normal; }
.slide__tags { display: none; }
.slide__info.is-open .slide__tags { display: block; }
.slide__meta { margin: 0 0 6px; font-size: .76rem; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide__info.is-open .slide__meta { white-space: normal; }
.slide__tags { margin: 6px 0 0; font-size: .74rem; color: rgba(255,255,255,.75); }
.slide__tags span { margin-right: 6px; }
.slide__links { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.slide__links .slide__link { padding: 6px 11px; font-size: .78rem; white-space: nowrap; }
.slide__link--share { width: 34px; height: 30px; padding: 0 !important; display: grid; place-items: center; flex: none; }
.slide__link--share svg { width: 16px; height: 16px; }
.slide__note { display: none; }
/* あなた向けセール（4 枚ごと） */
.slide--sale .slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(167,139,250,.18), rgba(0,0,0,.65)); }
.slide__salebox { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(12,12,18,.78); border: 1px solid rgba(167,139,250,.45); backdrop-filter: blur(6px); }
.slide__salelabel { margin: 0 0 4px; font-size: .68rem; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.slide__saleprice { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.slide__saleprice strong { font-size: 1.15rem; }
.slide__saleprice s { color: rgba(255,255,255,.55); font-size: .9rem; }
.slide__saleoff { padding: 2px 8px; border-radius: 4px; background: #e0322f; font-size: .78rem; font-weight: 800; }
.slide__salelabel .is-soon { color: #ffb4a8; }
.slide__salewhy { margin: 3px 0 0; font-size: .72rem; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide__link--sale { background: var(--accent); color: #0b0b0f; font-weight: 800; }
.slide__salebox { margin-bottom: 6px; }
.slide__link--share { border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: #fff; font: inherit; cursor: pointer; }
.slide__link { padding: 8px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.slide__link--primary { background: var(--accent); }
.reel__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.reel__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.reel__brand { flex: none; display: flex; align-items: center; }
.reel__brand img { width: 28px; height: 28px; object-fit: contain; }
.reel__cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.reel__cats::-webkit-scrollbar { display: none; }
.reel__cats .chip { padding: 5px 11px; font-size: .78rem; background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.25); color: #fff; }
.reel__cats .chip.is-active { background: var(--accent); border-color: var(--accent); }
.reel__count { flex-shrink: 0; font-size: .74rem; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.reel__hint { position: absolute; left: 50%; bottom: calc(200px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .74rem; animation: reelhint 1.6s ease-in-out infinite; }
.reel__hint[hidden] { display: none; }
@keyframes reelhint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
/* PC: スマホ幅の縦画面を中央に */
@media (min-width: 601px) {
  .reel { background: #050507; }
  .reel__scroller, .reel__top, .reel__hint { left: 50%; right: auto; width: min(480px, 100vw); transform: translateX(-50%); }
  .reel__scroller { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .reel__hint { transform: translateX(-50%); animation: none; }
}
