* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    color-scheme: dark;
    --stage: #05060a;
    --stage-glow-1: rgba(140, 180, 255, 0.14);
    --stage-glow-2: rgba(255, 94, 167, 0.12);
    --panel: rgba(16, 18, 24, 0.86);
    --panel-strong: rgba(10, 12, 18, 0.96);
    --text-soft: rgba(255, 255, 255, 0.72);
    --stroke: rgba(255, 255, 255, 0.14);
    --accent: #8cb4ff;
}

/* Theme sync with the rest of Lookie (Settings / quick switcher). */
:root[data-theme="light"] {
    color-scheme: light;
    --stage: #e4e9f0;
    --stage-glow-1: rgba(60, 110, 255, 0.10);
    --stage-glow-2: rgba(255, 60, 140, 0.08);
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.97);
    --text-soft: rgba(10, 15, 25, 0.75);
    --stroke: rgba(10, 15, 25, 0.14);
    --accent: #2d7cff;
}
:root[data-theme="midnight"] {
    --stage: #020308;
    --accent: #8577f0;
}
:root[data-theme="web20"] {
    color-scheme: light;
    --stage: #143055;
    --stage-glow-1: rgba(143, 185, 230, 0.25);
    --stage-glow-2: rgba(47, 111, 181, 0.2);
    --panel: rgba(220, 230, 241, 0.92);
    --panel-strong: rgba(255, 255, 255, 0.97);
    --text-soft: rgba(18, 52, 87, 0.8);
    --stroke: rgba(79, 119, 170, 0.5);
    --accent: #2f6fb5;
}

html,
body {
    height: 100%;
    background:
        radial-gradient(circle at 20% 10%, var(--stage-glow-1), transparent 28%),
        radial-gradient(circle at 80% 70%, var(--stage-glow-2), transparent 32%),
        var(--stage);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overflow: hidden;
}

button,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

#clips-container {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
}

#loading {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 50;
    transform: translateX(-50%);
    padding: 10px 14px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: var(--panel);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#loading[hidden] {
    display: none;
}

.clip-skeleton {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.clip-skeleton .media-shell {
    background: linear-gradient(100deg, #0c0e14 40%, #171a24 50%, #0c0e14 60%);
    background-size: 220% 100%;
    animation: skeletonShine 1.5s ease-in-out infinite;
    box-shadow: none;
}

.clip-skeleton .media-shell::after {
    display: none;
}

@keyframes skeletonShine {
    0% { background-position: 120% 0; }
    100% { background-position: -20% 0; }
}

.clips-topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

.clips-topbar > * {
    pointer-events: auto;
}

.clips-topbar-logo {
    color: #fff;
    font-weight: 850;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.clips-feed-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(16, 18, 24, 0.55);
    border: 1px solid var(--stroke);
    flex: none;
}

.feed-tab {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 750;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease;
}

.feed-tab.active {
    background: var(--accent);
    color: #fff;
}

.clips-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.clips-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(16, 18, 24, 0.6);
    border: 1px solid var(--stroke);
    color: #fff;
    cursor: pointer;
    flex: none;
}

.clips-search-form {
    width: 0;
    overflow: hidden;
    transition: width 180ms ease;
    margin-left: 0;
}

.clips-search-wrap.open .clips-search-form {
    width: 200px;
    margin-left: 8px;
}

.clips-search-form input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(16, 18, 24, 0.8);
    color: #fff;
    font-size: 13.5px;
}

.clips-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    justify-content: center;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.46));
}

.upload-clip-btn {
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #05060a;
    cursor: pointer;
    font-weight: 850;
    letter-spacing: 0.01em;
    padding: 13px 20px;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.upload-clip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

.clip {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: transparent;
    contain: layout paint style;
    will-change: transform;
}

.clip-frame {
    width: min(100%, 680px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 22px;
}

.media-shell {
    position: relative;
    height: min(92dvh, 860px);
    max-height: calc(100vh - 44px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: #000;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.media-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.scrub-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 16;
    height: 20px;
    padding-top: 17px;
    cursor: pointer;
    touch-action: none;
}

.scrub-track {
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.scrub-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8cb4ff, #93f4c7);
}

.heart-burst {
    position: absolute;
    z-index: 20;
    font-size: 72px;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.3);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
    animation: heartBurst 650ms ease-out forwards;
}

@keyframes heartBurst {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    35% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    60% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.clip-controls {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.media-shell:hover .clip-controls,
.clip.is-paused .clip-controls,
.clip-controls:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.control-btn,
.speed-control {
    min-height: 38px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.64);
    color: #fff;
}

.control-btn {
    width: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 21px;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 12px;
    border-radius: 8px;
    font-size: 13px;
}

.speed-control span {
    color: var(--text-soft);
}

.speed-control select {
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 5px 8px;
    cursor: pointer;
}

.pause-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 14;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.66);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.pause-indicator svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.clip.is-paused .pause-indicator {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    z-index: 10;
    color: #fff;
}

.ai-badge {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 196, 92, 0.4);
    border-radius: 999px;
    background: rgba(255, 196, 92, 0.16);
    color: #ffd98a;
    font-size: 11.5px;
    font-weight: 750;
}

.channel {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 7px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.channel:hover {
    text-decoration: underline;
}

.title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 650;
    line-height: 1.32;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.caption-button {
    display: block;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.caption-button:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.actions {
    position: static;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 74px;
}

.action-btn {
    display: flex;
    min-height: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--panel);
    color: #fff;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(28, 31, 42, 0.92);
}

.action-btn:active {
    transform: scale(0.96);
}

.action-btn.active {
    border-color: rgba(140, 180, 255, 0.7);
    background: rgba(78, 115, 190, 0.35);
}

.action-btn.follow {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.92);
    color: #05060a;
}

.action-btn.follow.active {
    border-color: rgba(140, 180, 255, 0.7);
    background: rgba(140, 180, 255, 0.28);
    color: #fff;
}

.action-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.action-icon {
    font-size: 24px;
    line-height: 1;
}

.counter {
    max-width: 62px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.comments-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.58);
}

/* The comments backdrop is transparent by default (desktop) — comments dock
   to the side like a YouTube-style panel alongside the still-visible clip,
   not a dimmed modal. It's click-to-close, just invisible. The mobile media
   query below turns it back into a real dimmed modal backdrop, because on
   mobile the comments panel becomes a full bottom sheet again. */
.comments-backdrop-side {
    background: transparent;
}

.comments-panel,
.details-panel,
.upload-panel,
.more-panel,
.report-panel {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1000;
    display: grid;
    width: min(560px, calc(100vw - 24px));
    max-height: min(72vh, 720px);
    grid-template-rows: auto minmax(160px, 1fr) auto;
    overflow: hidden;
    transform: translate(-50%, calc(100% + 24px));
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--panel-strong);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.more-panel,
.report-panel {
    grid-template-rows: auto auto;
    max-height: min(70vh, 540px);
}

.comments-panel.open,
.details-panel.open,
.upload-panel.open,
.more-panel.open,
.report-panel.open {
    transform: translate(-50%, 0);
}

/* Desktop: comments dock full-height on the right, like a YouTube sidebar,
   instead of floating as a bottom-center card. Narrower screens revert this
   to the shared bottom-sheet treatment via the max-width:760px block below. */
.comments-panel {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(420px, 36vw);
    min-width: 320px;
    max-width: 420px;
    height: 100dvh;
    max-height: none;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
}

.comments-panel.open {
    transform: translateX(0);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-header h2 {
    font-size: 20px;
}

.comments-header p {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 13px;
}

.comments-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 25px;
}

.comments-list {
    overflow-y: auto;
    padding: 14px 18px;
}

.details-content,
.clip-upload-form {
    overflow-y: auto;
    padding: 16px 18px 18px;
}

.clip-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.clip-stats-grid div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    padding: 12px;
}

.clip-stats-grid span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 6px;
}

.clip-stats-grid strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.details-description {
    margin-top: 18px;
}

.details-description h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.details-description p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.comment-thread {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-item {
    padding: 12px 0;
    transition: background-color 0.3s;
}

.comment-item.comment-highlighted {
    background: rgba(140, 180, 255, 0.22);
}

.comment-thread .comment-item {
    border-bottom: none;
}

.comment-item.comment-reply {
    margin-left: 28px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-reply-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.comment-reply-btn:hover {
    color: #fff;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-meta b {
    font-size: 14px;
}

.comment-meta span,
.empty-comments {
    color: var(--text-soft);
    font-size: 12px;
}

.comment-item p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.42;
    white-space: pre-wrap;
}

.comments-form {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-form textarea {
    min-height: 46px;
    flex: 1;
    resize: none;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 11px 12px;
}

.comments-form textarea:focus {
    border-color: rgba(140, 180, 255, 0.72);
}

.comments-form button,
.comments-login button {
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 16px;
}

.comments-form button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.comments-login {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-login button {
    width: 100%;
    min-height: 44px;
}

.clip-upload-form {
    display: grid;
    gap: 14px;
}

.more-menu-list {
    display: grid;
    gap: 6px;
    padding: 10px 14px 18px;
    overflow-y: auto;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 650;
    padding: 13px 14px;
    text-align: left;
    transition: background 150ms ease, border-color 150ms ease;
}

.more-menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
}

.more-menu-item.danger {
    color: #ff9c9c;
}

.more-menu-icon {
    font-size: 19px;
    line-height: 1;
}

.report-form {
    display: grid;
    gap: 12px;
    padding: 12px 18px 18px;
    overflow-y: auto;
}

.report-reasons {
    display: grid;
    gap: 8px;
}

.report-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    cursor: pointer;
}

.report-reason input {
    accent-color: var(--accent);
}

.report-form textarea {
    min-height: 70px;
    resize: vertical;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 12px;
}

.report-status {
    min-height: 18px;
    color: var(--text-soft);
    font-size: 13px;
}

.clip-upload-form label {
    display: grid;
    gap: 7px;
}

.clip-upload-form label > span {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.clip-upload-form input[type="text"],
.clip-upload-form input[type="file"],
.clip-upload-form textarea {
    width: 100%;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px;
}

.clip-upload-form textarea {
    min-height: 110px;
    resize: vertical;
}

.clip-upload-form input:focus,
.clip-upload-form textarea:focus {
    border-color: rgba(140, 180, 255, 0.72);
}

.clip-upload-form small {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.35;
}

.upload-submit {
    min-height: 46px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 850;
}

.upload-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.upload-progress {
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.upload-progress[hidden] {
    display: none;
}

.upload-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8cb4ff, #93f4c7);
    transition: width 140ms ease;
}

.upload-progress-text {
    min-height: 20px;
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 760px) {
    .comments-backdrop-side {
        background: rgba(0, 0, 0, 0.58);
    }

    .comments-panel,
    .details-panel,
    .upload-panel,
    .more-panel,
    .report-panel {
        box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
    }

    .clips-topbar {
        flex-wrap: wrap;
    }

    .clips-feed-tabs {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 2px;
    }

    .clip-frame {
        width: 100%;
        padding: 0;
    }

    .media-shell {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .actions {
        position: absolute;
        right: 10px;
        bottom: 98px;
        width: 58px;
        gap: 13px;
    }

    .action-btn {
        min-height: auto;
        border-color: transparent;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.34);
        box-shadow: none;
        padding: 8px 5px;
    }

    .action-btn.follow {
        background: rgba(255, 255, 255, 0.9);
        color: #05060a;
    }

    .action-btn.follow.active {
        background: rgba(140, 180, 255, 0.32);
        color: #fff;
    }

    .action-icon {
        font-size: 25px;
    }

    .counter {
        font-size: 11px;
    }

    .info {
        right: 82px;
        bottom: 24px;
    }

    .clip-controls {
        opacity: 1;
        transform: none;
    }

    .speed-control span {
        display: none;
    }

    .comments-panel,
    .details-panel,
    .upload-panel,
    .more-panel,
    .report-panel {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        max-height: 74dvh;
        transform: translateY(100%);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 14px 14px 0 0;
    }

    .comments-panel.open,
    .details-panel.open,
    .upload-panel.open,
    .more-panel.open,
    .report-panel.open {
        transform: translateY(0);
    }

    .clips-footer {
        justify-content: flex-start;
        padding-right: 84px;
    }

    .upload-clip-btn {
        min-width: 0;
        padding: 12px 16px;
    }

    .clip-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 620px) and (min-width: 761px) {
    .media-shell {
        height: calc(100vh - 24px);
    }

    .clip-frame {
        padding: 12px;
    }
}
