/* =====================================================================
   shorts.css — styles for shorts.js (YouTube Shorts in the Community Feed).
   Load it AFTER boost.css. Delete its <link> to remove. Only transform/opacity animate; no blur anywhere.
   ===================================================================== */

/* ---------- Composer: the link box ---------- */
.sv-link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 0 12px; min-height: 44px;
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(2, 6, 23, .55); color: #f87171; }
.sv-link-row input { flex: 1; min-width: 160px; min-height: 42px; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
    color: #e8ecf6; font: 600 12px/1.4 inherit; font-family: inherit; outline: none; }
.sv-link-row small { font-size: 11px; font-weight: 700; color: #98a4bb; }
.sv-link-row.is-ok { border-color: rgba(52, 211, 153, .45); } .sv-link-row.is-ok small { color: #34d399; }
.sv-link-row.is-bad { border-color: rgba(248, 113, 113, .45); } .sv-link-row.is-bad small { color: #f87171; }
.light-theme .sv-link-row { background: #fff; border-color: rgba(109, 94, 252, .22); }
.light-theme .sv-link-row input { color: #1e1b4b; }
@media (max-width: 767px) { .sv-link-row input { font-size: 16px; } }

/* ---------- The post card hands likes + comments to the video bar ---------- */
.fx-card.sv-card .fx-bar, .fx-card.sv-card .fx-comments { display: none !important; }

/* ---------- Player ---------- */
.sv-wrap { display: flex; justify-content: center; margin-top: 14px; }
.sv {
    position: relative; overflow: hidden; background: #000; color: #fff; isolation: isolate;
    height: min(76vh, 600px); aspect-ratio: 9 / 16; max-width: 100%;
    border-radius: 22px; border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .85);
    user-select: none; -webkit-user-select: none; touch-action: pan-y; contain: layout paint;
}
.sv-stage { position: absolute; inset: 0; overflow: hidden; background: #000; }
.sv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .25s ease; z-index: 2; pointer-events: none; }
/* The frame is a little bigger than the box so YouTube's title bar (top) and logo (bottom) fall outside it. */
.sv-frame { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; z-index: 1; }
.sv-frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none !important; display: block; }
.sv.is-playing .sv-poster { opacity: 0; }

.sv-shade { position: absolute; inset: auto 0 0 0; height: 38%; z-index: 3; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }
.sv-hit { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.sv-play { position: absolute; left: 50%; top: 50%; z-index: 5; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; pointer-events: none;
    display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .25);
    transition: opacity .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.sv-play svg { fill: #fff; margin-left: 4px; }
.sv.is-playing .sv-play { opacity: 0; transform: scale(.7); }

.sv-burst { position: absolute; left: 50%; top: 50%; z-index: 6; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; opacity: 0; color: #f87171; }
.sv-burst svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }
.sv-burst.go { animation: svBurst .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes svBurst { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.5) translateY(-18px); } }

/* ---------- Control bar: like / comment / sound down the right edge, seek bar along the bottom ---------- */
.sv-rail { position: absolute; right: 10px; bottom: 26px; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sv-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 46px; min-height: 46px; padding: 0; border: 0;
    border-radius: 23px; background: transparent; color: #fff; cursor: pointer; font: 800 11.5px/1 inherit; font-family: inherit; -webkit-tap-highlight-color: transparent;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .7); transition: transform .15s ease; }
.sv-act:active { transform: scale(.88); }
.sv-act svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .65)); }
.sv-like.is-on { color: #f87171; }
.sv-like.is-on svg { fill: currentColor; animation: svPop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes svPop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.sv-snd { width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .42); }
.sv-snd .sv-i-off { display: none; }
.sv.sv-muted .sv-snd .sv-i-on { display: none; }
.sv.sv-muted .sv-snd .sv-i-off { display: block; }
.sv-snd .sv-i-on polygon, .sv-snd .sv-i-off polygon { fill: currentColor; }

.sv-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; height: 22px; cursor: pointer; touch-action: none; }
.sv-prog::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); transition: height .15s ease; }
.sv-prog i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #6366f1, #a855f7); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; will-change: transform; }
.sv.is-seek .sv-prog i { transition: none; }
@media (hover: hover) { .sv-prog:hover::before, .sv-prog:hover i { height: 6px; } }

/* ---------- Comments sheet (slides up inside the player) ---------- */
.sv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; height: 66%; display: flex; flex-direction: column;
    background: rgba(12, 15, 32, .97); border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 20px 20px 0 0;
    transform: translate3d(0, 102%, 0); visibility: hidden; transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .32s; }
.sv.is-sheet .sv-sheet { transform: none; visibility: visible; transition-delay: 0s; }
.sv.is-sheet .sv-rail { opacity: 0; pointer-events: none; }
.sv-rail { transition: opacity .2s ease; }
.sv-sh-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.sv-sh-head b { font-size: 13px; font-weight: 800; }
.sv-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; cursor: pointer; }
.sv-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 12px; }
.sv-empty { margin: auto; text-align: center; font-size: 12.5px; color: #98a4bb; }
.sv-c { display: flex; gap: 9px; align-items: flex-start; }
.sv-c.is-reply { margin-left: 28px; }
.sv-ca { flex: none; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: rgba(129, 140, 248, .25); color: #c7d2fe; }
.sv-c b { font-size: 12.5px; font-weight: 800; }
.sv-c small { font-size: 10.5px; color: #98a4bb; margin-left: 4px; }
.sv-c p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #e8ecf6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sv-compose { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sv-compose input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(2, 6, 23, .6); color: #fff; font: 500 14px/1.4 inherit; font-family: inherit; }
.sv-send { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 14px; cursor: pointer; font: 800 13px/1 inherit; font-family: inherit; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
@media (max-width: 767px) { .sv-compose input { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) {
    .sv-burst.go, .sv-like.is-on svg { animation: none; }
    .sv-sheet, .sv-poster, .sv-play, .sv-prog i { transition: none !important; }
}