.clips-feed {
    display: none;
}

.clips-share-sheet {
    width: min(520px, calc(100% - 24px));
    max-height: 85dvh;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid #70405b;
    border-radius: 26px;
    background: radial-gradient(ellipse at bottom right, #600e3266, transparent 70%), #16131ddf;
    color: #f8f8fa;
    backdrop-filter: blur(24px);
}

.clips-share-sheet::backdrop {
    background: #0009;
}

.clips-sheet-handle {
    width: 40px;
    height: 4px;
    margin: -8px auto 24px;
    border-radius: 8px;
    background: #89848f;
}

.clips-share-close {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 26px;
}

.clips-share-sheet h2 {
    margin: 0 30px 12px 0;
    font-size: 25px;
}

.clips-share-intro {
    color: #b9b3c1;
    font-size: 13px;
    line-height: 1.7;
}

.clips-share-drama {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0;
}

.clips-share-cover {
    width: 76px;
    height: 105px;
    flex-shrink: 0;
    border-radius: 10px;
    background-image: url('../images/drama-posters.png');
    background-size: 300% 300%;
    background-position: var(--art-x, 0%) var(--art-y, 0%);
}

.clips-share-drama h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.4;
}

.clips-share-drama p,
.clips-share-status {
    color: #b9b3c1;
    font-size: 12px;
    line-height: 1.7;
}

.clips-share-status {
    min-height: 20px;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .clips-page {
        overflow: hidden;
        background: #000;
    }

    .clips-page > .site-header,
    .clips-desktop {
        display: none;
    }

    .clips-page .bottom-nav {
        min-height: 0;
        height: calc(70px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #08090bf5;
    }

    .clips-feed {
        display: block;
        height: calc(100dvh - 70px - env(safe-area-inset-bottom));
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
        overscroll-behavior-y: contain;
    }

    .clips-feed::-webkit-scrollbar {
        display: none;
    }

    .clip-stage {
        position: relative;
        display: flex;
        align-items: flex-end;
        min-height: 100%;
        height: 100%;
        overflow: hidden;
        isolation: isolate;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background: #111018;
    }

    .clip-background,
    .clip-video {
        position: absolute;
        z-index: -3;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .clip-background {
        background-image: url('../images/drama-posters.png');
        background-size: 300% 300%;
        background-position: var(--art-x, 0%) var(--art-y, 0%);
    }

    .clip-video {
        object-fit: cover;
    }

    .clip-stage::after {
        position: absolute;
        z-index: -1;
        inset: 40% 0 0;
        background: linear-gradient(transparent, #08090b26 65%, #08090b80);
        transition: opacity .3s ease;
        content: '';
    }

    .clip-mute {
        position: absolute;
        top: 18px;
        right: 18px;
    }

    .clip-circle {
        display: grid;
        place-items: center;
        width: 43px;
        height: 43px;
        border-radius: 50%;
        background: #0b0a116e;
        color: white;
    }

    .clip-circle svg {
        width: 25px;
        height: 25px;
    }

    .clip-action-rail {
        position: absolute;
        right: 12px;
        bottom: 225px;
        display: grid;
        gap: 20px;
    }

    .clip-rail-action {
        display: grid;
        justify-items: center;
        gap: 7px;
        padding: 0;
        font-size: 11px;
        text-shadow: 0 1px 4px #000;
    }

    .clip-rail-action[aria-pressed="true"] {
        color: #ff4083;
    }

    .clip-rail-action[aria-pressed="true"] .clip-circle {
        color: #ff4083;
    }

    .clip-content {
        width: 100%;
        padding: 24px 18px 36px;
    }

    .clip-identity,
    .clip-description,
    .clip-buttons {
        transition: opacity .25s ease;
    }

    .video-overlay-hidden .clip-identity,
    .video-overlay-hidden .clip-description,
    .video-overlay-hidden .clip-buttons {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .clip-identity {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-right: 58px;
    }

    .clip-cover {
        width: 65px;
        height: 92px;
        flex-shrink: 0;
        border: 1px solid #ffffff24;
        border-radius: 8px;
        background-image: url('../images/drama-posters.png');
        background-size: 300% 300%;
        background-position: var(--art-x, 0%) var(--art-y, 0%);
    }

    .clip-tag {
        padding: 4px 7px;
        border-radius: 4px;
        background: #ff0060;
        font-size: 10px;
    }

    .clip-identity h2 {
        display: -webkit-box;
        overflow: hidden;
        margin: 9px 0;
        font-size: clamp(20px, 5.5vw, 28px);
        line-height: 1.2;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .clip-identity p {
        margin: 0;
        color: #ccc7d2;
        font-size: 12px;
    }

    .clip-description {
        margin: 16px 0;
        color: #d0c9d7;
        font-size: 13px;
        line-height: 1.7;
    }

    .clip-buttons {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .clip-buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px;
        border: 1px solid #d7d1df;
        border-radius: 10px;
        font-size: 12px;
    }

    .clip-buttons a:first-child {
        border-color: #ff0060;
        background: #ff0060;
    }

    .clip-player-controls {
        position: absolute;
        inset: auto 6px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 22px;
        font-size: 10px;
    }

    .clip-player-controls input {
        width: 100%;
        min-width: 0;
        accent-color: #ff1261;
        height: 22px;
        margin: 0;
        background: transparent;
        appearance: none;
        -webkit-appearance: none;
    }

    .clip-player-controls > button,
    .clip-player-controls > span {
        display: none;
    }

    .clip-player-controls input::-webkit-slider-runnable-track {
        height: 3px;
        border-radius: 4px;
        background: #ffffff80;
    }

    .clip-player-controls input::-webkit-slider-thumb {
        width: 7px;
        height: 7px;
        margin-top: -2px;
        border-radius: 50%;
        background: #fff;
        appearance: none;
        -webkit-appearance: none;
    }

    .clip-player-controls input::-moz-range-track {
        height: 3px;
        background: #ffffff80;
    }

    .clip-player-controls input::-moz-range-thumb {
        width: 7px;
        height: 7px;
        border: 0;
        background: white;
    }

    .clip-unavailable {
        margin: 10px 0 0;
        color: #a7a0b1;
        font-size: 10px;
    }

    .clip-circle:disabled,
    .clip-player-controls button:disabled {
        opacity: .45;
        cursor: default;
    }

    .clips-share-sheet {
        width: 100%;
        max-width: 100%;
        margin: auto auto 0;
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
        border-radius: 26px 26px 0 0;
    }
}

@media (max-width: 760px) and (max-height: 650px) {
    .clip-content {
        padding-bottom: 12px;
    }

    .clip-description {
        display: none;
    }

    .clip-action-rail {
        bottom: 180px;
        gap: 12px;
    }

    .clip-identity h2 {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 760px) {
    .clip-stage.video-overlay-hidden::after { opacity: .2; }
}

.clip-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 18px;
    border: 0;
    border-radius: 50%;
    background: #303239e6;
    color: #fff;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.clip-center-play svg { width: 24px; height: 24px; }
.clip-center-play[hidden] { display: none; }
.clip-center-play:focus-visible,
.watch-player .cinema-center:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.clip-view-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 12px 0;
    color: #e1e4eb;
    font-size: 11px;
    text-shadow: 0 1px 4px #0008;
    transition: opacity .25s ease;
}
.video-overlay-hidden .clip-view-counts { opacity: 0; pointer-events: none; }
