/* Drama Hub - Shorts feed (/shorts). Always dark: it is a video screen. */
body.shorts-page { margin: 0; background: #000; color: #fff; overflow: hidden; }
.shorts { position: fixed; inset: 0; display: grid; place-items: center; background: #000;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.shorts-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; pointer-events: none; }
.shorts-top > * { pointer-events: auto; }
.shorts-back, .shorts-sound { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: #fff; background: rgba(0, 0, 0, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.shorts-brand { font-weight: 800; font-size: 17px; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.shorts-sound { margin-left: auto; }
.shorts-sound .s-on, .shorts-sound[aria-pressed="true"] .s-off { display: none; }
.shorts-sound[aria-pressed="true"] .s-on { display: block; }

.shorts-track { width: 100%; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shorts-track::-webkit-scrollbar { display: none; }

.shorts-card { position: relative; height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; background: #0b0b0f; }
.sc-media { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.sc-cover, .sc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-cover { filter: brightness(.75); transition: opacity .3s; }
.sc-video { object-fit: contain; background: #000; }
.shorts-card.playing .sc-cover { opacity: 0; }
.sc-play { position: relative; z-index: 2; width: 72px; height: 72px; border-radius: 50%; border: 0; color: #fff;
  background: rgba(0, 0, 0, .45); display: grid; place-items: center; cursor: pointer; }
.sc-play[hidden] { display: none; }
.sc-spin { position: relative; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: sc-spin .8s linear infinite; display: none; }
.shorts-card.loading .sc-spin { display: block; }
@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-shade { position: absolute; inset: auto 0 0 0; height: 48%; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.sc-info { position: absolute; z-index: 3; left: 0; right: 64px; bottom: 0;
  padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 22px); }
.sc-title { margin: 0 0 6px; font-size: 19px; line-height: 1.25; font-weight: 800; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-meta { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.sc-meta span { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.sc-meta .sc-rate { color: #ffd166; background: rgba(0, 0, 0, .35); font-weight: 700; }
.sc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-watch, .sc-more, .sc-next { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; }
.sc-watch { color: #fff; background: linear-gradient(135deg, #ff2e63, #ff7a45); box-shadow: 0 6px 18px rgba(255, 46, 99, .35); }
.sc-more, .sc-next { color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.sc-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.sc-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .25s linear; }

.sc-end { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sc-end[hidden] { display: none; }
.sc-end-k { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.sc-end-t { margin: 0 0 6px; font-size: 21px; font-weight: 800; max-width: 420px; }
.sc-watch.big { min-height: 48px; padding: 0 26px; font-size: 16px; }
.shorts-card.nostream .sc-cover { filter: brightness(.55); }
.shorts-card.nostream .sc-media::after { content: "Preview unavailable - tap Watch episode 1"; position: relative; z-index: 2;
  font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); }

.shorts-nav { display: none; }
.shorts-hint { position: fixed; z-index: 4; left: 50%; top: 58%; transform: translateX(-50%);
  margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; background: rgba(0, 0, 0, .5); pointer-events: none;
  animation: sc-hint 2.4s ease-in-out 3; transition: opacity .4s; }
.shorts-hint.gone { opacity: 0; }
@keyframes sc-hint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
.shorts-empty { padding: 40px 24px; text-align: center; color: rgba(255, 255, 255, .8); }
.shorts-empty a { color: #ff7a45; }

/* Desktop: a phone-shaped column in the middle with up/down buttons. */
@media (min-width: 760px) {
  .shorts-track { width: min(100%, calc(100vh * 9 / 16)); border-radius: 0; }
  .shorts-top { left: 50%; right: auto; width: min(100%, calc(100vh * 9 / 16)); transform: translateX(-50%); }
  .shorts-nav { display: flex; flex-direction: column; gap: 12px; position: fixed; z-index: 5; top: 50%; transform: translateY(-50%);
    left: calc(50% + min(50vw, 100vh * 9 / 32) + 20px); }
  .shorts-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
  .shorts-nav button:hover { background: rgba(255, 255, 255, .22); }
  .shorts-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shorts-hint { animation: none; } .sc-spin { animation-duration: 2s; } }
