/* Лента роликов подряд для гостя (/v/watch): полноэкранные карточки с вертикальной прокруткой по одной */
* { box-sizing: border-box; }

html, body { height: 100%; }

.gf-body {
    margin: 0;
    overflow: hidden;
    background: #000;
    color: #f5f7fa;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.gf-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.gf-top > * { pointer-events: auto; }

.gf-back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 11, 13, 0.55);
    color: #f5f7fa;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.gf-brand { display: inline-flex; align-items: center; min-height: 44px; }

.gf-login {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 22px;
    background: #d8fb50;
    color: #12160a;
    font-weight: 800;
    text-decoration: none;
}

.gf-scroll {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.gf-scroll::-webkit-scrollbar { display: none; }

.gf-item {
    position: relative;
    height: 100dvh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}

.gf-stage { position: absolute; inset: 0; background: #000; }

.gf-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: linear-gradient(160deg, #2b3340, #12151a);
    color: #f5f7fa;
    font: inherit;
    cursor: pointer;
}

.gf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.gf-cover-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #d8fb50;
    color: #12160a;
    font-size: 28px;
}

.gf-cover-label {
    position: relative;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(10, 11, 13, 0.6);
    font-size: 14px;
    font-weight: 700;
}

.gf-stage .gv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gf-info {
    position: absolute;
    right: 84px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.gf-info > * { pointer-events: auto; }
.gf-author { font-size: 17px; font-weight: 800; }
.gf-text { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gf-tags { font-size: 13px; font-weight: 700; opacity: 0.9; }
.gf-open { color: #f5f7fa; font-size: 12px; text-decoration: underline; }

.gf-actions {
    position: absolute;
    right: 8px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gf-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: #f5f7fa;
    font: inherit;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.gf-act span { font-size: 28px; line-height: 1; }
.gf-act b { font-size: 12px; }

.gf-tail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
}

.gf-tail h2 { margin: 0; font-size: 26px; }
.gf-tail p { max-width: 420px; margin: 0; color: #c3c9d2; }

.gf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    background: #d8fb50;
    color: #12160a;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.gf-link {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: none;
    color: #f5f7fa;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.gf-sentinel { height: 1px; overflow: hidden; color: transparent; }

.gf-sheet {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}

.gf-sheet[hidden], .gf-toast[hidden] { display: none; }

.gf-sheet-card {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #181b20;
    text-align: center;
}

.gf-sheet-card h2 { margin: 0; font-size: 20px; }
.gf-sheet-card p { margin: 0; color: #c3c9d2; }

.gf-toast {
    position: fixed;
    right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 30;
    max-width: 360px;
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f5f7fa;
    color: #12160a;
    font-weight: 700;
    text-align: center;
}

.gf-btn:focus-visible, .gf-link:focus-visible, .gf-act:focus-visible, .gf-cover:focus-visible, .gf-login:focus-visible, .gf-back:focus-visible, .gf-open:focus-visible {
    outline: 3px solid #d8fb50;
    outline-offset: 2px;
}
