:root {
    --ghoomi-clips-top: 56px;
}

html.ghoomi-clips-body,
body.ghoomi-clips-body {
    overflow: hidden;
    height: 100%;
}

body.ghoomi-clips-body main {
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: calc(100dvh - var(--ghoomi-clips-top));
    background: #000;
}

body.ghoomi-clips-body header.header-style {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
}

body.ghoomi-clips-body #pwa-container {
    position: sticky;
    top: 0;
    z-index: 21;
}

.ghoomi-clips-page {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    margin: 0 auto;
}

.ghoomi-clips-feed {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.ghoomi-clip-item {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghoomi-clip-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

.ghoomi-clip-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.08) 42%, transparent 68%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 72px 24px 16px;
    color: #fff;
}

.ghoomi-clip-overlay .clip-actions {
    pointer-events: auto;
}

.ghoomi-clip-property-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.ghoomi-clip-location {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.ghoomi-clip-price {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.ghoomi-clip-controls {
    position: absolute;
    right: 12px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
    z-index: 2;
}

.ghoomi-clip-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.15s ease;
}

.ghoomi-clip-ctrl-btn:hover,
.ghoomi-clip-ctrl-btn:focus-visible {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.ghoomi-clip-ctrl-btn.is-active {
    background: rgba(255, 255, 255, 0.2);
}

.ghoomi-clip-ctrl-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    display: none;
}

.ghoomi-clips-loading-more {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.ghoomi-clips-end {
    scroll-snap-align: end;
    min-height: 48px;
}

.ghoomi-clips-empty {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    padding: 2rem;
}

.clips-share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.clips-share-grid .btn {
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    body.ghoomi-clips-body main {
        display: flex;
        justify-content: center;
        background: #0a0a0a;
    }

    .ghoomi-clips-page {
        /*max-width: 480px;
        border-left: 1px solid #222;
        border-right: 1px solid #222;*/
    }
}
