/* DAYSTY Watch: vertical snap-scroll video feed */
body.d-reelmode { background: #000; overflow: hidden; --rtab: 0px; }
@media (max-width: 1024px) { body.d-reelmode { --rtab: calc(58px + env(safe-area-inset-bottom)); } }
.d-reelmode .d-gate { z-index: 200; }

/* top overlay */
.d-rtop { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 14px 18px; background: linear-gradient(to bottom, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); pointer-events: none; }
.d-rtop > * { pointer-events: auto; }
.d-rtop__brand { justify-self: start; display: block; }
.d-rtop__tabs { display: flex; gap: 4px; justify-self: center; }
.d-rtop__tabs a { position: relative; padding: 8px 11px; font: 700 15px var(--d-font-body); color: rgba(255, 255, 255, .68); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.d-rtop__tabs a[aria-current='page'] { color: #fff; }
.d-rtop__tabs a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: var(--d-red-logo, #FF2040); }
.d-rtop__acts { justify-self: end; display: flex; align-items: center; gap: 4px; }
.d-rtop__ico { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; border-radius: 50%; }
.d-rtop__ico .d-ico { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.d-rtop__ico:hover { background: rgba(255, 255, 255, .12); }
.d-rtop__join { padding: 8px 16px; border-radius: 999px; background: var(--d-red, #E5173A); color: #fff; font: 700 14px var(--d-font-body); }
.d-rtop a:focus-visible, .d-rnav button:focus-visible, .d-rbtn:focus-visible, .d-reel__tap:focus-visible, .d-reel__follow:focus-visible, .d-reel__sound:focus-visible { outline: 2px solid var(--d-violet, #8C62F6); outline-offset: 2px; }

/* scroller */
.d-reels { position: fixed; z-index: 1; left: 0; right: 0; top: 0; bottom: var(--rtab); overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; background: #000; -webkit-overflow-scrolling: touch; }
.d-reels::-webkit-scrollbar { display: none; }
.d-reel { position: relative; height: 100%; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; }
.d-reel__frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; }
.d-reel__media { position: absolute; inset: 0; overflow: hidden; background: #000; }
.d-reel__poster, .d-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-reel__poster { transition: opacity .25s; }
.d-reel__video { opacity: 0; transition: opacity .25s; background: #000; }
.d-reel.has-video .d-reel__video { opacity: 1; }
.d-reel.has-video .d-reel__poster { opacity: 0; }
.d-reel.is-wide .d-reel__video { object-fit: contain; }
.d-reel.is-wide .d-reel__poster { filter: blur(26px) brightness(.55); transform: scale(1.25); }
.d-reel.is-wide.has-video .d-reel__poster { opacity: 1; }
.d-reel__tap { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.d-reel__shade { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0)); }

/* states */
.d-reel__state { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none; }
.d-reel__play, .d-reel__spin { grid-area: 1 / 1; opacity: 0; transition: opacity .15s; }
.d-reel__play { width: 76px; height: 76px; border-radius: 50%; background: rgba(0, 0, 0, .45); position: relative; }
.d-reel__play::after { content: ''; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.d-reel.is-paused .d-reel__play { opacity: 1; }
.d-reel__spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: drspin .8s linear infinite; }
.d-reel.is-loading .d-reel__spin { opacity: 1; }
.d-reel__err { position: absolute; z-index: 4; inset: 0; display: none; place-content: center; justify-items: center; gap: 12px; text-align: center; background: rgba(0, 0, 0, .72); color: #fff; }
.d-reel.is-error .d-reel__err { display: grid; }
.d-reel__err p { margin: 0; }
.d-reel__retry { padding: 10px 20px; border: 0; border-radius: 999px; background: #fff; color: #111; font-weight: 700; cursor: pointer; }
.d-reel__heart { position: absolute; z-index: 4; left: 50%; top: 44%; width: 104px; height: 104px; margin: -52px 0 0 -52px; color: var(--d-red-logo, #FF2040); opacity: 0; pointer-events: none; }
.d-reel__heart .d-ico { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }
.d-reel__heart.go { animation: drheart .7s ease-out; }
@keyframes drspin { to { transform: rotate(360deg); } }
@keyframes drheart { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* sound, progress */
.d-reel__sound { position: absolute; z-index: 6; top: calc(60px + env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.d-snd--on { display: none; }
.d-reel-sound .d-snd--on { display: block; }
.d-reel-sound .d-snd--off { display: none; }
.d-reel__bar { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 14px; cursor: pointer; }
.d-reel__bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.d-reel__bar i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #fff; }
.d-reel__bar:hover::before, .d-reel__bar:hover i { height: 6px; }

/* info */
.d-reel__info { position: absolute; z-index: 5; left: 14px; right: 78px; bottom: 22px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.d-reel__who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.d-reel__av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #2A2A33 center / cover no-repeat; color: #fff; font: 800 17px var(--d-font-head); border: 2px solid #fff; overflow: hidden; }
.d-reel__name { font-weight: 800; font-size: 16px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.d-reel__follow { flex: none; padding: 5px 13px; border-radius: 6px; border: 1px solid transparent; background: var(--d-red, #E5173A); color: #fff; font: 700 13px var(--d-font-body); cursor: pointer; }
.d-reel__follow[aria-pressed='true'] { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
.d-reel__title { margin: 0 0 4px; font: 700 15px/1.3 var(--d-font-body); letter-spacing: 0; color: #fff; }
.d-reel__desc { margin: 0 0 4px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-reel__meta { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.d-reel__demo { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #F5A524; color: #1A1A1F; font-size: 10px; letter-spacing: .06em; text-shadow: none; }

/* action rail */
.d-reel__rail { position: absolute; z-index: 6; right: 8px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.d-rbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 56px; padding: 6px 0; border: 0; background: none; color: #fff; font: 700 12px var(--d-font-body); cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); -webkit-tap-highlight-color: transparent; }
.d-rbtn .d-ico { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); transition: transform .15s; }
.d-rbtn:active .d-ico { transform: scale(.88); }
.d-rbtn[aria-pressed='true'] .d-ico { fill: var(--d-red-logo, #FF2040); stroke: var(--d-red-logo, #FF2040); }
.d-rbtn[disabled] { opacity: .5; }

/* desktop: rail sits beside the video, frame is rounded */
@media (min-width: 1025px) {
  .d-reel__frame { height: calc(100% - 28px); margin: 14px 0 14px; max-height: 920px; }
  .d-reel__media { border-radius: 16px; }
  .d-reel__shade { border-radius: 0 0 16px 16px; }
  .d-reel__rail { right: auto; left: calc(100% + 14px); bottom: 12px; }
  .d-rbtn { color: #F4EFE9; text-shadow: none; }
  .d-rbtn .d-ico { width: 26px; height: 26px; filter: none; padding: 11px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .1); }
  .d-rbtn:hover .d-ico { background: rgba(255, 255, 255, .18); }
  .d-reel__sound { top: 16px; }
  .d-reel__info { bottom: 26px; right: 18px; }
}
@media (max-width: 480px) {
  .d-reel__frame { aspect-ratio: auto; width: 100%; }
  .d-rtop { padding-left: 10px; padding-right: 10px; }
  .d-rtop__tabs a { padding: 8px 8px; font-size: 14px; }
  .d-rtop__brand .d-logo { --w: 78px !important; }
}

/* prev / next for mouse users */
.d-rnav { display: none; }
@media (min-width: 1025px) {
  .d-rnav { position: fixed; z-index: 60; right: 26px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
  .d-rnav button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
  .d-rnav button:hover { background: rgba(255, 255, 255, .22); }
}

/* comments sheet */
.d-rscrim { position: fixed; z-index: 80; inset: 0; background: rgba(0, 0, 0, .5); }
.d-rsheet { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; }
.d-rscrim[hidden], .d-rsheet[hidden], .d-rtoast[hidden], .d-rsheet__form[hidden], .d-rsheet__login[hidden] { display: none !important; }
.d-rsheet__panel { width: min(520px, 100%); max-height: 74vh; display: flex; flex-direction: column; background: #16161C; color: #F4EFE9; border: 1px solid var(--d-line, rgba(244, 239, 233, .12)); border-bottom: 0; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.d-rsheet__panel header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--d-line, rgba(244, 239, 233, .12)); }
.d-rsheet__panel h2 { margin: 0; font-size: 17px; font-weight: 800; }
.d-rsheet__panel h2 small { color: #A0A0AB; font-weight: 600; }
.d-rsheet__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.d-rsheet__list { flex: 1; min-height: 140px; margin: 0; padding: 6px 16px; list-style: none; overflow-y: auto; }
.d-rsheet__list li { position: relative; display: flex; gap: 10px; padding: 10px 28px 10px 0; }
.d-rsheet__list .d-reel__av { width: 34px; height: 34px; font-size: 14px; border-width: 0; }
.d-rsheet__list b { font-size: 14px; }
.d-rsheet__list em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--d-red, #E5173A); margin-left: 4px; }
.d-rsheet__list p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.d-rsheet__list small { color: #A0A0AB; font-size: 12px; }
.d-rsheet__empty { color: #A0A0AB; padding: 24px 0; justify-content: center; }
.d-rsheet__del { position: absolute; right: 0; top: 8px; width: 26px; height: 26px; border: 0; background: none; color: #A0A0AB; font-size: 20px; cursor: pointer; }
.d-rsheet__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--d-line, rgba(244, 239, 233, .12)); }
.d-rsheet__form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--d-line, rgba(244, 239, 233, .12)); background: #0E0E12; color: #fff; font: 16px var(--d-font-body); }
.d-rsheet__form input:focus { outline: none; border-color: var(--d-violet, #8C62F6); }
.d-rsheet__login { margin: 0; padding: 14px 16px; border-top: 1px solid var(--d-line, rgba(244, 239, 233, .12)); color: #A0A0AB; }
.d-rsheet__login a { color: #fff; text-decoration: underline; }
@media (min-width: 1025px) { .d-rsheet { left: auto; right: 24px; bottom: 24px; } .d-rsheet__panel { border-radius: 18px; border-bottom: 1px solid var(--d-line, rgba(244, 239, 233, .12)); max-height: 70vh; } .d-rscrim { background: transparent; } }

/* toast, empty, bottom tabs */
.d-rtoast { position: fixed; z-index: 95; left: 50%; bottom: calc(var(--rtab) + 22px); transform: translateX(-50%); max-width: 92vw; margin: 0; padding: 10px 16px; border-radius: 999px; background: #F4EFE9; color: #1A1A1F; font-weight: 700; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.d-rtoast__a { color: var(--d-red, #E5173A); text-decoration: underline; }
.d-rempty { height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; color: #F4EFE9; }
.d-rempty h1 { font-size: 26px; margin-bottom: 8px; }
.d-rempty p { color: #A0A0AB; max-width: 40ch; margin: 0 auto 14px; }
.d-rtab { display: none; }
@media (max-width: 1024px) {
  .d-rtab { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: rgba(16, 16, 20, .97); border-top: 1px solid rgba(244, 239, 233, .12); padding-bottom: env(safe-area-inset-bottom); }
  .d-rtab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: #A0A0AB; }
  .d-rtab a[aria-current='page'] { color: #fff; }
  .d-rtab a[aria-current='page'] .d-ico { color: var(--d-red-logo, #FF2040); }
  .d-rtab .d-ico { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .d-reel__poster, .d-reel__video, .d-rbtn .d-ico { transition: none; }
  .d-reel__heart.go, .d-reel__spin { animation: none; }
}
/* header fit on small screens: the bottom bar already has Home and Join/Account */
.d-rtop__tabs a { white-space: nowrap; }
.d-rtop__tabs { grid-column: 2; }
.d-rtop__acts { grid-column: 3; }
@media (max-width: 1024px) { .d-rtop__join, .d-rtop__acct { display: none; } }
@media (max-width: 480px) { .d-rtop__brand { display: none; } }
@media (max-width: 360px) { .d-rtop__tabs a { padding: 8px 6px; font-size: 13px; } .d-rtop__ico { width: 36px; } }