.quote-shorts, .shorts-sheet { display: none; }
@media (max-width: 767.98px) {
    .quote-shorts, .shorts-sheet { min-height: 0; }
    html.quote-shorts-open, .quote-shorts-open body { overflow: hidden; overscroll-behavior: none; }
    .quote-shorts { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--nv-surface); color: var(--nv-text); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); box-sizing: border-box; }
    .shorts-header { display: flex; flex: 0 0 56px; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid #ddd; min-width: 0; }
    .shorts-header .nv-logo { flex: 0 1 64px; min-width: 0; overflow: hidden; }
    .shorts-header .nv-logo-subtext { display: none; }
    .shorts-header .selectgo-logo { width: 44px; height: 36px; --logo-height: 36px; margin: 0; border: 0; }
    html[data-theme] .shorts-header .nv-logo-img { display: none; }
    html[data-theme] .shorts-header .nv-logo-img--mobile-light { display: block; }
    html[data-theme='dark'] .shorts-header .nv-logo-img--mobile-light { display: none; }
    html[data-theme='dark'] .shorts-header .nv-logo-img--mobile-dark { display: block; }
    .shorts-header h1 { font-size: 18px; margin: 0; flex: 1; }
    .quote-shorts button, .shorts-sheet > button { color: inherit; background: transparent; border: 1px solid #bbb; border-radius: 6px; min-height: 44px; min-width: 44px; padding: 6px 10px; font: inherit; cursor: pointer; }
    .quote-shorts :focus-visible, .shorts-sheet :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
    .quote-shorts button:disabled { opacity: .35; cursor: default; }
    .shorts-viewer { width: 100%; flex: 1; min-height: 0; margin: 0; }
    .shorts-tracking { position: absolute; inset: 56px 0 48px; pointer-events: none; }
    .shorts-viewer .swiper-slide { box-sizing: border-box; overflow: hidden; isolation: isolate; }
    .shorts-viewer .shorts-quote { height: 100%; margin: 0; border: 0; border-radius: 0; padding: 20px 76px 20px 24px; display: flex; flex-direction: column; justify-content: center; background: transparent; color: inherit; box-sizing: border-box; }
    .shorts-quote .nv-qentry__panel { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 0; padding: 0; background: none; }
    .shorts-quote .nv-qentry__quote { margin: 0; padding: 0; border: 0; min-height: 0; }
    .shorts-quote .nv-qentry__text { font-size: clamp(20px, 5.5vw, 28px); line-height: 1.5; font-weight: 400; white-space: pre-line; overflow-wrap: anywhere; text-align: center; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; max-height: 48dvh; margin: 0; user-select: text; touch-action: pan-y; }
    .shorts-quote .nv-qentry__author { justify-content: center; text-align: center; margin: 0; font-size: 15px; flex-shrink: 0; }
    .shorts-quote .nv-qentry__avatar { display: none; }
    .shorts-quote .shorts-read { align-self: center; font-size: 13px; border: 0; text-decoration: underline; }
    .shorts-quote .nv-qentry__actions { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 52px; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; border: 0; }
    .shorts-quote .nv-qentry__actions > * { margin: 0; padding: 4px; border: 0; min-height: 44px; width: 48px; color: inherit; background: none; justify-content: center; }
    .shorts-quote .nv-qentry__actions > *::before, .shorts-quote .nv-qentry__actions > *::after { display: none; }
    .shorts-quote .nv-qentry__actions svg { width: 22px; height: 22px; flex-shrink: 0; }
    .shorts-quote .nv-qentry__actions span:not([data-nv-quote-like-count]), .shorts-quote [data-nv-quote-embed-copy] { display: none; }
    .shorts-quote .nv-qentry__detail { font-size: 11px; text-align: center; line-height: 1.4; display:none; }
    .shorts-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
    .shorts-image::before { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .72); z-index: -1; }
    .shorts-image { color: #fff; }
    .shorts-quote .nv-qentry__text, .shorts-quote .nv-qentry__author { color: inherit; }
    .shorts-image a { color: inherit; }
    .shorts-footer { display: flex; align-items: center; justify-content: space-between; flex: 0 0 48px; padding: 0 12px; gap: 8px; font-size: 12px; display:none; }
    .shorts-footer [role="status"] { text-align: center; }
    .shorts-hint { color: var(--nv-text-secondary); }
    .shorts-sheet[open] { display: block; position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: 85vh; max-height: 85dvh; box-sizing: border-box; border: 1px solid #aaa; border-radius: 18px 18px 0 0; padding: 20px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: var(--nv-surface); color: var(--nv-text); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
    .shorts-sheet::backdrop { background: rgb(0 0 0 / .55); }
    .shorts-sheet h2 { margin: 0 72px 24px 0; font-size: 20px; }
    .shorts-sheet > button { position: absolute; top: 10px; right: 16px; }
    .shorts-sheet-content .nv-qentry { border: 0; padding: 0; }
    .shorts-sheet-content .nv-qentry__text { display: block; max-height: none; overflow: visible; font-size: 20px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
    .shorts-sheet-content .nv-quotes__chips { flex-wrap: wrap; max-height: none; }
    .nv-feedback-btn {
        bottom: 10px;
    }
    @media (max-height: 480px) {
        .shorts-header {
            flex-basis: 44px;
        }

        .shorts-quote .nv-qentry__text {
            -webkit-line-clamp: 3;
            max-height: 30dvh;
        }

        .shorts-quote .nv-qentry__panel {
            gap: 4px;
        }

        .shorts-quote .nv-qentry__actions {
            gap: 0;
        }

            .shorts-quote .nv-qentry__actions > * {
                height: 36px;
                min-height: 36px;
            }
    }
}
@media (prefers-reduced-motion: reduce) { .quote-shorts * { transition-duration: 0ms !important; animation: none !important; } }
