:root {
    --reel-space-1: 4px;
    --reel-space-2: 8px;
    --reel-space-3: 12px;
    --reel-space-4: 16px;
    --reel-space-6: 24px;
    --reel-space-8: 32px;
    --reel-radius-card: 20px;
    --reel-comments-mobile-initial-height: 76dvh;
    --reel-comments-mobile-expanded-height: 88dvh;
    --reel-comments-panel-gap: 28px;
    --reel-product-dialog-width: 520px;
    --reel-visible-viewport-height: 100dvh;
    --reel-visible-viewport-bottom: 0px;
}

.public-reels-rail {
    padding: var(--reel-space-8) 0;
    overflow: clip;
}

.public-reels-rail--home {
    padding-top: var(--reel-space-4);
}

.public-reels-rail--seller {
    border-bottom: 1px solid var(--c-n-200, #e5e7eb);
    background: var(--c-n-0, #fff);
}

.public-reels-rail__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--reel-space-4);
    margin-bottom: var(--reel-space-4);
}

.public-reels-rail__header h2,
.public-reels-rail__header p {
    margin: 0;
}

.public-reels-rail__header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.15;
}

.public-reels-rail__header p:not(.public-reels-rail__eyebrow) {
    margin-top: var(--reel-space-2);
    color: var(--c-n-600, #64748b);
    line-height: 1.45;
}

.public-reels-rail__eyebrow {
    margin-bottom: var(--reel-space-2) !important;
    color: var(--c-primary, #7048e8);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-reels-rail__actions {
    display: flex;
    align-items: center;
    gap: var(--reel-space-2);
    flex: 0 0 auto;
}

.public-reels-rail__actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 var(--reel-space-3);
    color: var(--c-primary, #7048e8);
    font-weight: 700;
    text-decoration: none;
}

.public-reels-rail__progress {
    min-width: 52px;
    color: var(--c-n-600, #64748b);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.public-reels-rail__actions button,
.public-reel-feed__navigation button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-n-200, #e5e7eb);
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 1.15rem;
    cursor: pointer;
}

.public-reels-rail__actions button:disabled {
    opacity: .38;
    cursor: default;
}

.public-reels-rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(148px, 38vw, 190px);
    gap: var(--reel-space-3);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: var(--reel-space-1) 0 var(--reel-space-3);
}

.public-reel-card {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--reel-radius-card);
    background: #111827;
    color: #fff;
    scroll-snap-align: start;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

.public-reel-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.public-reel-card > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity .18s ease;
}

.public-reel-card[data-previewing] > video { opacity: 1; }
.public-reel-card[data-previewing] > img { opacity: 0; }
.public-reel-card[data-previewing] .public-reel-card__play { opacity: 0; }

.public-reel-card:hover > img {
    transform: scale(1.025);
}

.public-reel-card__shade {
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .84));
}

.public-reel-card__play {
    position: absolute;
    top: var(--reel-space-3);
    left: var(--reel-space-3);
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(0, 0, 0, .36);
    backdrop-filter: blur(8px);
}

.public-reel-card__duration {
    position: absolute;
    top: var(--reel-space-3);
    right: var(--reel-space-3);
    padding: var(--reel-space-1) var(--reel-space-2);
    border-radius: 999px;
    background: rgba(0, 0, 0, .58);
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
}

.public-reel-card__body {
    position: absolute;
    right: var(--reel-space-3);
    bottom: var(--reel-space-3);
    left: var(--reel-space-3);
    display: grid;
    gap: var(--reel-space-1);
    line-height: 1.3;
}

.public-reel-card__body strong {
    font-size: .9rem;
}

.public-reel-card__body span {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-reel-feed-shell {
    position: relative;
    padding: var(--reel-space-6) 0 var(--reel-space-8);
    background: #090b10;
    color: #fff;
}

.public-reel-feed-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--reel-space-4);
    margin-bottom: var(--reel-space-4);
}

.public-reel-feed-shell__header p,
.public-reel-feed-shell__header h1 {
    margin: 0;
}

.public-reel-tabs {
    display: flex;
    gap: var(--reel-space-2);
    margin-bottom: var(--reel-space-6);
    overflow-x: auto;
    scrollbar-width: none;
}

.public-reel-tabs::-webkit-scrollbar { display: none; }

.public-reel-tabs a {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 var(--reel-space-4);
    border: 1px solid #303744;
    border-radius: 999px;
    color: #d6dbe4;
    font-weight: 750;
    text-decoration: none;
}

.public-reel-tabs a[aria-current="page"] {
    border-color: #fff;
    background: #fff;
    color: #111827;
}

.public-reel-browse { display: none; }

.public-reel-browse__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--reel-space-4);
}

.public-reel-browse__card { width: 100%; }
.public-reel-browse__card .public-reel-card__body small { color: rgba(255,255,255,.72); font-size: .7rem; }
.public-reel-browse__product-marker {
    position: absolute;
    top: 58px;
    left: var(--reel-space-3);
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.public-reel-feed-shell__header p {
    color: #a7b0c0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-reel-feed-shell__header h1 {
    margin-top: var(--reel-space-1);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.public-reel-feed-shell__all,
.public-reel-feed__more a,
.public-reel-feed-empty a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 var(--reel-space-4);
    background: #fff;
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

.public-reel-feed {
    display: grid;
    max-height: calc(100svh - 190px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.public-reel-feed::-webkit-scrollbar {
    display: none;
}

.public-reel-viewer {
    display: grid;
    min-height: calc(100svh - 190px);
    place-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.public-reel-viewer__stage {
    position: relative;
    width: min(100%, 430px);
    height: min(calc(100svh - 190px), 764px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: #000;
}

.public-reel-viewer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.public-reel-viewer__overlay {
    position: absolute;
    right: 0;
    bottom: 48px;
    left: 0;
    display: grid;
    gap: var(--reel-space-3);
    padding: 72px 76px var(--reel-space-4) var(--reel-space-4);
    background: linear-gradient(transparent, rgba(0, 0, 0, .88));
    pointer-events: none;
}

.public-reel-viewer__sound {
    position: absolute;
    right: var(--reel-space-4);
    bottom: calc(100% + var(--reel-space-3));
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(0,0,0,.48);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.public-reel-viewer__overlay a,
.public-reel-viewer__overlay button {
    pointer-events: auto;
}

.public-reel-viewer__seller {
    display: flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: var(--reel-space-3);
    color: #fff;
    text-decoration: none;
}

.public-reel-viewer__seller-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--reel-space-3);
}

.public-reel-viewer__subscribe {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.public-reel-viewer__subscribe[aria-pressed="true"] {
    background: rgba(17,24,39,.64);
    color: #fff;
}

.public-reel-viewer__seller img,
.public-reel-viewer__seller-fallback {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.public-reel-viewer__seller-fallback {
    display: grid;
    place-items: center;
    background: #6d28d9;
    font-weight: 900;
}

.public-reel-viewer__seller span {
    display: grid;
}

.public-reel-viewer__seller small {
    color: #d1d5db;
}

.public-reel-viewer__overlay p {
    max-width: 38rem;
    margin: 0;
    line-height: 1.45;
}

.public-reel-viewer__product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--reel-space-3);
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 12px;
    background: rgba(17,24,39,.62);
    color: #f3f4f6;
    font: inherit;
    font-size: .88rem;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.public-reel-viewer__product small { width:100%; color:#d1d5db; font-size:.7rem; }

.public-reel-action-rail {
    position: absolute;
    right: 12px;
    bottom: 72px;
    z-index: 2;
    display: grid;
    gap: 10px;
}
.public-reel-action-rail button {
    display: grid;
    width: 52px;
    min-height: 52px;
    place-items: center;
    gap: 1px;
    padding: 5px 3px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 16px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(9px);
}
.public-reel-action-rail button > span { font-size:1.25rem; line-height:1; }
.public-reel-action-rail button > small { max-width:48px; overflow:hidden; font-size:.62rem; text-overflow:ellipsis; }
.public-reel-action-rail button[aria-pressed="true"] { border-color:#fda4af; background:#be123c; }

.public-reel-sheet {
    width: min(92vw, 560px);
    max-height: min(82vh, 720px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #111827;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.public-reel-sheet::backdrop { background:rgba(0,0,0,.68); backdrop-filter:blur(3px); }
.public-reel-sheet > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-bottom:1px solid #e5e7eb; }
.public-reel-sheet > header h2,.public-reel-sheet > header p { margin:0; }
.public-reel-sheet > header h2 { font-size:1.125rem; }
.public-reel-sheet > header p { margin-top:3px; color:#6b7280; font-size:.75rem; }
.public-reel-sheet > header button { display:grid; width:44px; height:44px; flex:0 0 auto; place-items:center; border:1px solid #d1d5db; border-radius:50%; background:#fff; color:#111827; font-size:1.45rem; cursor:pointer; }
.gm-reel-comments__header-main { min-width:0; }
.gm-reel-comments__title-row { display:flex; min-width:0; align-items:baseline; gap:8px; }
.gm-reel-comments__title { color:#111827; line-height:1.2; }
.gm-reel-comments__count { color:#64748b; font-size:.82rem; font-weight:700; font-variant-numeric:tabular-nums; }
.gm-reel-comments__header-actions { display:flex; flex:0 0 auto; align-items:center; gap:8px; }
.gm-reel-comments__sort { display:flex; padding:3px; border-radius:999px; background:#f1f5f9; }
.public-reel-sheet > header .gm-reel-comments__sort button { width:auto; min-width:44px; padding:0 10px; border:0; border-radius:999px; background:transparent; font-size:.72rem; font-weight:750; }
.public-reel-sheet > header .gm-reel-comments__sort button[aria-pressed="true"] { background:#fff; box-shadow:0 1px 4px rgba(15,23,42,.14); }
.gm-reel-comments__sort-menu { position:relative; display:none; }
.gm-reel-comments__sort-menu > summary { display:grid; width:44px; height:44px; place-items:center; border:1px solid #d1d5db; border-radius:50%; background:#fff; color:#334155; cursor:pointer; list-style:none; }
.gm-reel-comments__sort-menu > summary::-webkit-details-marker { display:none; }
.gm-reel-comments__sort-menu > div { position:absolute; z-index:14; top:48px; right:0; display:grid; min-width:156px; overflow:hidden; border:1px solid #dbe3ec; border-radius:12px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.18); }
.public-reel-sheet > header .gm-reel-comments__sort-menu button { width:100%; justify-content:flex-start; padding-inline:14px; border:0; border-radius:0; background:#fff; font-size:.78rem; }
.public-reel-sheet > header .gm-reel-comments__sort-menu button[aria-pressed="true"] { background:#f1f5f9; color:#047857; }
.public-reel-sheet form { display:grid; gap:12px; padding:16px 18px; border-top:1px solid #e5e7eb; }
.public-reel-sheet form label { display:grid; gap:6px; color:#374151; font-size:.76rem; font-weight:750; }
.public-reel-sheet textarea,.public-reel-sheet select { width:100%; min-height:44px; padding:10px 12px; border:1.5px solid #d1d5db; border-radius:10px; color:#111827; font:inherit; resize:vertical; }
.public-reel-sheet form > button,.public-reel-products__list button,.public-reel-products__list a { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:0 14px; border:0; border-radius:10px; background:#111827; color:#fff; font:inherit; font-weight:800; text-decoration:none; cursor:pointer; }
.public-reel-sheet .gm-reel-comments__composer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
    gap: 8px;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px));
    background: #fff;
    align-self: end;
}
.gm-reel-comments__composer-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.gm-reel-comments__reply-context { grid-column:1/-1; display:flex; min-height:32px; align-items:center; justify-content:space-between; gap:8px; padding:4px 4px 4px 10px; border-radius:10px; background:#f1f5f9; color:#475569; font-size:.76rem; }
.gm-reel-comments__reply-context[hidden] { display:none; }
.gm-reel-comments__reply-context strong { color:#047857; }
.gm-reel-comments__reply-context button { display:grid; width:32px; min-height:32px; place-items:center; padding:0; border:0; border-radius:8px; background:transparent; color:#475569; font:inherit; font-size:1.15rem; cursor:pointer; }
.gm-reel-comments__composer textarea { min-height:44px; max-height:112px; padding:11px 13px; overflow-y:auto; border:1px solid #cbd5e1; border-radius:16px; line-height:1.35; resize:none; }
.gm-reel-comments__composer > button { width:44px; height:44px; min-height:44px; padding:0; border-radius:14px; background:#111827; }
.gm-reel-comments__composer > button .gm-reel-icon { width:20px; height:20px; }
.public-reel-sheet__status { min-height:20px; margin:0; padding:0 18px 12px; color:#4b5563; font-size:.78rem; white-space:pre-line; }
.gm-reel-comments__content { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.public-reel-comments__list { display:grid; gap:0; min-height:180px; }
.public-reel-comment { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:start; gap:10px; padding:14px 16px; border-bottom:1px solid #f0f1f3; }
.public-reel-comment__avatar { display:grid; width:34px; height:34px; place-items:center; overflow:hidden; border-radius:50%; background:#e2e8f0; color:#334155; font-size:.8rem; font-weight:800; }
.public-reel-comment__avatar img { width:100%; height:100%; object-fit:cover; }
.public-reel-comment__content { display:grid; min-width:0; gap:6px; }
.public-reel-comment__content > header { display:flex; min-width:0; align-items:baseline; gap:6px; }
.public-reel-comment strong { color:#111827; font-size:.8rem; }
.public-reel-comment time { color:#94a3b8; font-size:.72rem; }
.public-reel-comment p { margin:0; color:#374151; font-size:.9375rem; line-height:1.4; white-space:pre-wrap; overflow-wrap:anywhere; }
.public-reel-comment__mention { color:#047857; font-weight:750; }
.public-reel-comment--deleted { opacity:.78; }
.public-reel-comment--deleted p { color:#64748b; font-style:italic; }
.public-reel-comment__actions { position:relative; display:flex; min-height:44px; align-items:center; gap:8px; }
.public-reel-comment__actions button,
.public-reel-comment__actions summary { display:inline-flex; height:44px; min-width:44px; flex:0 0 auto; align-items:center; justify-content:center; gap:4px; padding:0 6px; border:0; border-radius:8px; background:transparent; color:#64748b; font:inherit; font-size:.78rem; cursor:pointer; }
.public-reel-comment__actions button[data-reel-comment-action="like"] { width:auto; }
.public-reel-comment__actions button[data-reel-comment-action="like"][aria-pressed="true"] { color:#be123c; }
.public-reel-comment__actions button:focus-visible,
.public-reel-comment__actions summary:focus-visible,
.public-reel-comment__replies-toggle:focus-visible { outline:3px solid #facc15; outline-offset:1px; }
.public-reel-comment__action-icon { width:20px; height:20px; flex:0 0 auto; }
.public-reel-comment__action-count { min-width:1ch; color:inherit; font-size:.78rem; font-variant-numeric:tabular-nums; }
.public-reel-comment__reply { padding-inline:4px !important; color:#475569 !important; font-weight:700 !important; }
.public-reel-comment__more { position:relative; margin-left:auto; }
.public-reel-comment__more > summary { list-style:none; }
.public-reel-comment__more > summary::-webkit-details-marker { display:none; }
.public-reel-comment__menu { position:absolute; z-index:12; right:0; bottom:42px; display:grid; width:max-content; min-width:164px; overflow:hidden; border:1px solid #dbe3ec; border-radius:12px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.18); }
.public-reel-comment__menu button { width:100%; justify-content:flex-start; padding-inline:14px; border-radius:0; color:#334155; }
.public-reel-comment__menu button + button { border-top:1px solid #e5e7eb; color:#b91c1c; }
.public-reel-comment__replies-toggle { display:inline-flex; min-height:44px; align-items:center; justify-self:start; padding:0 4px; border:0; background:transparent; color:#475569; font:inherit; font-size:.78rem; font-weight:800; cursor:pointer; }
.public-reel-comment__thread { display:grid; margin-left:8px; border-left:2px solid #e2e8f0; }
.public-reel-comment__thread[hidden] { display:none; }
.public-reel-comment--reply { grid-template-columns:30px minmax(0,1fr); padding:10px 0 10px 14px; border-bottom:0; }
.public-reel-comment--reply .public-reel-comment__avatar { width:30px; height:30px; }
.public-reel-products__list { display:grid; max-height:540px; overflow-y:auto; }
.public-reel-products__list article { display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid #eef0f2; }
.public-reel-products__list img { width:72px; height:72px; border-radius:10px; object-fit:cover; background:#f3f4f6; }
.public-reel-products__list h3 { margin:0 0 5px; color:#111827; font-size:.86rem; }
.public-reel-products__list strong,.public-reel-products__list small { display:block; }
.public-reel-products__list small { margin-top:3px; color:#6b7280; font-size:.7rem; }
.public-reel-products__list article > div:last-child { display:grid; gap:6px; }
.public-reel-products__list button:disabled { cursor:not-allowed; opacity:.45; }

.public-reel-viewer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--reel-space-2);
}

.public-reel-viewer__actions a,
.public-reel-viewer__actions button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    padding: 0 var(--reel-space-4);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.public-reel-viewer__cta {
    border-color: #fff !important;
    background: #fff;
    color: #111827;
    text-decoration: none;
}

.public-reel-viewer__actions button {
    background: rgba(0, 0, 0, .35);
    color: #fff;
}

.public-reel-feed__navigation {
    position: absolute;
    top: 50%;
    left: calc(50% + 235px);
    display: grid;
    gap: var(--reel-space-2);
    transform: translateY(-50%);
}

.public-reel-feed__more {
    display: flex;
    justify-content: center;
    padding-top: var(--reel-space-6);
}

.public-reel-feed-empty {
    display: grid;
    min-height: 360px;
    place-items: center;
    align-content: center;
    gap: var(--reel-space-3);
    text-align: center;
}

.public-reel-feed-empty > span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid #374151;
    border-radius: 50%;
    font-size: 1.5rem;
}

.public-reel-feed-empty h2,
.public-reel-feed-empty p {
    margin: 0;
}

.public-reel-feed-empty p {
    color: #a7b0c0;
}

.public-reel-card:focus-visible,
.public-reels-rail__actions a:focus-visible,
.public-reels-rail__actions button:focus-visible,
.public-reel-feed a:focus-visible,
.public-reel-feed button:focus-visible,
.public-reel-feed video:focus-visible,
.public-reel-feed-shell__all:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .public-reels-rail {
        padding: var(--reel-space-6) 0;
    }

    .public-reels-rail__header {
        align-items: start;
    }

    .public-reels-rail__actions button {
        display: none;
    }

    .public-reels-rail__actions a {
        padding-inline: var(--reel-space-2);
    }

    .public-reels-rail__progress {
        display: none;
    }

    .public-reel-feed-shell {
        padding-top: var(--reel-space-4);
    }

    .public-reel-feed {
        max-height: calc(100svh - 148px);
    }

    .public-reel-viewer {
        min-height: calc(100svh - 148px);
    }

    .public-reel-viewer__stage {
        width: 100%;
        height: calc(100svh - 148px);
        border-inline: 0;
        border-radius: 0;
    }

    .public-reel-sheet { width:100%; max-width:none; max-height:88svh; margin:auto 0 0; border-radius:20px 20px 0 0; }
    .public-reel-products__list article { grid-template-columns:64px minmax(0,1fr); }
    .public-reel-products__list article > div:last-child { grid-column:1/-1; grid-template-columns:1fr 1fr; }

    .public-reel-feed__navigation {
        display: none;
    }
}

@media (min-width: 1024px) {
    .public-reel-feed-shell.is-browse .public-reel-browse { display: block; }
    .public-reel-feed-shell.is-browse .public-reel-feed,
    .public-reel-feed-shell.is-browse .public-reel-feed__navigation { display: none; }
}

@media (min-width: 1280px) {
    .public-reel-browse__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

    .public-reel-feed-shell.is-single .public-reel-viewer__stage {
        transition: transform .2s ease;
    }

    .public-reel-feed-shell.is-single.has-comments-panel .public-reel-viewer__stage {
        transform: translateX(-220px);
    }

    .public-reel-feed-shell.is-single .public-reel-comments[open] {
        position: fixed;
        inset: 96px max(24px, calc((100vw - 1280px) / 2)) 32px auto;
        z-index: 20;
        width: min(430px, 31vw);
        height: calc(100svh - 128px);
        max-height: none;
        margin: 0;
        border-radius: 20px;
    }

    .public-reel-feed-shell.is-single .public-reel-comments__list {
        max-height: calc(100svh - 390px);
    }
}

@media (max-width: 359px) {
    .public-reels-rail__header {
        display: grid;
    }

    .public-reels-rail__actions a {
        padding-inline: 0;
    }

    .public-reel-viewer__overlay {
        padding-left: var(--reel-space-3);
        padding-right: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-reel-card > img {
        transition: none;
    }

    .public-reels-rail__track,
    .public-reel-feed {
        scroll-behavior: auto !important;
    }
}

/* Reels 03.2 immersive viewer hardening. Keep preview rails independent. */
:root {
    --gm-bottom-nav-height: 60px;
    --gm-safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --reel-global-header-height: 0px;
    --reel-desktop-vertical-margin: 24px;
    --reel-timeline-height: 48px;
    --reel-overlay-gap: 12px;
    --reel-actions-width: 60px;
    --reel-safe-right: 76px;
    --reel-safe-bottom: calc(var(--gm-bottom-nav-height) + var(--gm-safe-area-bottom) + var(--reel-timeline-height) + var(--reel-overlay-gap));
}

.gm-reel-shell {
    min-height: 100dvh;
    padding-block: 24px;
    background: #f9fafb;
    color: #111827;
}

.gm-reel-shell > .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gm-reel-shell.is-single {
    display: grid;
    min-height: calc(100dvh - var(--reel-global-header-height));
    padding: 12px 24px;
    place-items: center;
}

.gm-reel-shell .public-reel-feed-shell__header p { color: #64748b; }
.gm-reel-shell .public-reel-tabs a { border-color: #d1d5db; color: #475569; }
.gm-reel-shell .public-reel-tabs a[aria-current="page"] { border-color: #059669; background: #059669; color: #fff; }

.gm-reel-viewer-layout {
    position: relative;
    display: grid;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.gm-reel-shell .public-reel-feed {
    width: 100%;
    max-height: calc(100dvh - 24px);
}

.gm-reel-shell.is-single .public-reel-feed {
    max-height: calc(100dvh - var(--reel-global-header-height));
}

.gm-reel-shell .public-reel-viewer {
    min-height: calc(100dvh - 24px);
}

.gm-reel-shell.is-single .public-reel-viewer {
    min-height: calc(100dvh - var(--reel-global-header-height));
}

.gm-reel-stage {
    position: relative;
    width: min(92vw, 460px);
    height: min(calc(100dvh - var(--reel-global-header-height) - var(--reel-desktop-vertical-margin)), 818px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 20px;
    background: #000;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .18);
}

.gm-reel-stage video { object-fit: contain; }
.gm-reel-stage[data-reel-fit="cover"] video { object-fit: cover; }

.gm-reel-topbar {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    align-items: center;
    gap: 8px;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px;
    background: linear-gradient(rgba(0, 0, 0, .58), transparent);
    color: #fff;
    pointer-events: none;
}

.gm-reel-topbar__spacer { flex: 1; }
.gm-reel-topbar__control,
.gm-reel-player-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.gm-reel-icon { width: 24px; height: 24px; }
.gm-reel-verified { display: inline; width: 17px; height: 17px; color: #10b981; vertical-align: -3px; }

.gm-reel-play-indicator {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
    pointer-events: none;
}

.gm-reel-stage[data-paused] .gm-reel-play-indicator { opacity: 1; pointer-events: auto; }

.gm-reel-player-controls {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: var(--reel-timeline-height);
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.gm-reel-player-controls button { width: 44px; height: 44px; border: 0; background: transparent; }
.gm-reel-player-controls input[type="range"] { width: 100%; min-width: 0; accent-color: #10b981; }

.gm-reel-meta {
    position: absolute;
    z-index: 4;
    right: var(--reel-safe-right);
    bottom: 64px;
    left: 16px;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-top: 96px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    pointer-events: none;
}

.gm-reel-meta a,
.gm-reel-meta button { pointer-events: auto; }

.gm-reel-meta .public-reel-viewer__seller-row {
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.gm-reel-meta .public-reel-viewer__seller {
    min-width: 0;
    flex: 1;
    gap: 8px;
}

.gm-reel-meta .public-reel-viewer__seller > span:last-child { min-width: 0; }
.gm-reel-meta .public-reel-viewer__seller strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.gm-reel-meta .public-reel-viewer__seller small { font-size: 11px; }
.gm-reel-meta .public-reel-viewer__seller img,
.gm-reel-meta .public-reel-viewer__seller-fallback { width: 38px; height: 38px; flex: 0 0 38px; }

.gm-reel-meta .public-reel-viewer__subscribe {
    position: relative;
    z-index: 0;
    height: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.gm-reel-meta .public-reel-viewer__subscribe::before {
    position: absolute;
    z-index: -1;
    inset: 4px 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    content: '';
}

.gm-reel-meta .public-reel-viewer__subscribe:not([aria-pressed="true"]) { color: #111827; }
.gm-reel-meta .public-reel-viewer__subscribe[aria-pressed="true"]::before { background: rgba(17, 24, 39, .68); }

.gm-reel-caption { display: block; min-width: 0; }
.gm-reel-caption p {
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.gm-reel-caption[data-expanded] p { max-height: 8.1em; overflow-y: auto; }
.gm-reel-caption button {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    margin-block: -12px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gm-reel-product-chip {
    order: -1;
    display: grid;
    width: min(240px, 100%);
    min-height: 72px;
    max-height: 88px;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    color: #111827;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    cursor: pointer;
}

.gm-reel-product-chip__images { position: relative; display: block; width: 56px; height: 56px; }
.gm-reel-product-chip__image { width: 56px; height: 56px; border-radius: 9px; background: #f3f4f6; object-fit: cover; }
.gm-reel-product-chip__images > span { position: absolute; right: -4px; bottom: -4px; padding: 2px 5px; border-radius: 999px; background: #111827; color: #fff; font-size: 10px; }
.gm-reel-product-chip__body { display: grid; min-width: 0; gap: 2px; }
.gm-reel-product-chip__body > span { display: -webkit-box; overflow: hidden; font-size: 13px; font-weight: 700; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gm-reel-product-chip__body strong { font-size: 15px; }
.gm-reel-product-chip__body small { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.gm-reel-product-chip__mini-label { display:block; width:0; overflow:hidden; font-size:12px; font-weight:800; opacity:0; white-space:nowrap; }

.gm-reel-actions {
    position: absolute;
    z-index: 5;
    right: 8px;
    bottom: 70px;
    display: grid;
    width: var(--reel-actions-width);
    gap: 8px;
}

.gm-reel-actions__navigation { display: grid; gap: 8px; }
.gm-reel-actions__separator { width: 40px; height: 1px; margin: 4px; background: rgba(255, 255, 255, .42); }

.gm-reel-actions button {
    position: relative;
    display: grid;
    width: 48px;
    min-height: 48px;
    place-items: center;
    gap: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(0, 0, 0, .46);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.gm-reel-actions button > small { max-width: none; overflow: visible; font-size: 11px; line-height: 1; }
.gm-reel-actions button[aria-pressed="true"] { border-color: #10b981; background: #059669; }
.gm-reel-actions button[data-reel-save][aria-pressed="true"] .icon-bookmark { fill: currentColor; }
.gm-reel-actions button:disabled { cursor: not-allowed; opacity: .38; }

.gm-reel-shell [data-tooltip]::after {
    position: absolute;
    z-index: 20;
    top: 50%;
    right: calc(100% + 8px);
    width: max-content;
    max-width: 180px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    content: attr(data-tooltip);
    font-size: 12px;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .15s ease;
    pointer-events: none;
}
.gm-reel-shell [data-tooltip]:hover::after,
.gm-reel-shell [data-tooltip]:focus-visible::after { opacity: 1; }

.gm-reel-auth-gate { display: grid; gap: 12px; padding: 28px 18px; text-align: center; }
.gm-reel-auth-gate h3,
.gm-reel-auth-gate p { margin: 0; }
.gm-reel-auth-gate p { color: #64748b; }
.gm-reel-auth-gate a,
.gm-reel-auth-gate button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #059669; border-radius: 10px; background: #059669; color: #fff; font: inherit; font-weight: 800; text-decoration: none; }
.gm-reel-auth-gate button { background: #fff; color: #334155; }

.gm-reel-comments,
.gm-reel-products { overscroll-behavior: contain; }

.gm-reel-sheet-handle {
    display: none;
    width: 64px;
    height: 44px;
    margin: 0 auto -10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: ns-resize;
    touch-action: none;
}
.gm-reel-sheet-handle > span { width: 40px; height: 4px; border-radius: 999px; background: #94a3b8; }

html.reel-sheet-open { overflow: hidden; }

.gm-reel-comments[open]:has([data-reel-comment-form]) { display: grid; grid-template-rows: auto auto minmax(0, 1fr) min-content; }
.gm-reel-comments[open]:has([data-reel-comment-form]) .gm-reel-comments__content,
.gm-reel-comments[open]:has([data-reel-comment-form]) .public-reel-comments__list { min-height: 0; max-height: none; }
.gm-reel-comments[open]:has([data-reel-comment-form]) [data-reel-comment-form] { background: #fff; }

.public-reel-sheet header h2[tabindex="-1"]:focus { outline: none; }

.gm-reel-shell.has-comments-panel .gm-reel-viewer-layout { transform: none; }

body.page-public-reels-single { overflow: hidden; }
body.page-public-reels-single .site-header { z-index: 100; }
body.page-public-reels-single .site-footer { display: none; }
body.page-public-reels-single .site-main { padding-bottom: 0; }

@media (min-width: 1024px) {
    .gm-reel-topbar [data-reel-search] { display: none; }
    .page-public-reels-single .gm-reel-shell { isolation: isolate; }
    .gm-reel-products[open] {
        position: fixed;
        inset: calc(var(--reel-global-header-height) + 16px) 16px 16px;
        display: grid;
        width: min(calc(100vw - 32px), var(--reel-product-dialog-width));
        max-height: min(720px, calc(100dvh - var(--reel-global-header-height) - 32px));
        grid-template-rows: auto minmax(0, 1fr) auto;
        margin: auto;
    }
    .gm-reel-products.public-reel-products--single { --reel-product-dialog-width: 500px; }
    .gm-reel-products.public-reel-products--multiple { --reel-product-dialog-width: 600px; }
    .gm-reel-products > header { position: sticky; z-index: 2; top: 0; background: #fff; }
    .gm-reel-products .public-reel-products__list { max-height: none; }
    .gm-reel-products .public-reel-products__list article > div:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; }
}

@media (max-width: 1279px) {
    .gm-reel-meta { bottom: 60px; }
    .gm-reel-actions { bottom: 68px; }
}

@media (max-width: 1023px) {
    body.page-public-reels .site-header,
    body.page-public-reels .site-footer { display: none; }
    body.page-public-reels .site-main { padding-bottom: 0; }

    .gm-reel-shell {
        min-height: 100dvh;
        padding: 0;
        background: #000;
        color: #fff;
    }
    .gm-reel-shell.is-single { padding: 0; place-items: stretch; }
    .gm-reel-shell .public-reel-feed-shell__header,
    .gm-reel-shell .public-reel-tabs,
    .gm-reel-shell .public-reel-feed__more { display: none; }
    .gm-reel-shell .public-reel-feed { max-height: 100dvh; }
    .gm-reel-shell .public-reel-feed { grid-template-columns: minmax(0, 1fr); }
    .gm-reel-shell .public-reel-viewer { width: 100%; min-width: 0; min-height: 100dvh; }
    .gm-reel-viewer-layout { width: 100%; grid-template-columns: minmax(0, 1fr); }
    .gm-reel-stage { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .gm-reel-player-controls { bottom: calc(var(--gm-bottom-nav-height) + var(--gm-safe-area-bottom)); }
    .gm-reel-meta { right: var(--reel-safe-right); bottom: var(--reel-safe-bottom); left: calc(16px + env(safe-area-inset-left, 0px)); }
    .gm-reel-meta { padding-top: 0; background: transparent; text-shadow: 0 1px 3px rgba(0, 0, 0, .72); }
    .gm-reel-meta [data-reel-overlay-content] {
        max-height: 96px;
        overflow: hidden;
        opacity: 1;
        transform: translateY(0);
        transition: opacity .22s ease, transform .22s ease, max-height .22s ease;
    }
    .gm-reel-meta .gm-reel-caption[data-reel-overlay-content] { max-height: 120px; }
    .gm-reel-product-chip,
    .gm-reel-product-chip__body,
    .gm-reel-product-chip__mini-label,
    .gm-reel-product-chip__images,
    .gm-reel-product-chip__image { transition: width .22s ease, height .22s ease, min-height .22s ease, max-width .22s ease, opacity .22s ease; }
    [data-reel-overlay-state="hidden-content"] .gm-reel-meta { gap: 0; }
    [data-reel-overlay-state="hidden-content"] .gm-reel-meta [data-reel-overlay-content] {
        max-height: 0;
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
    }
    [data-reel-overlay-state="hidden-content"] .gm-reel-product-chip {
        width: auto;
        min-height: 52px;
        max-width: 156px;
        grid-template-columns: 40px minmax(0, auto);
        gap: 8px;
        padding: 6px;
        border-radius: 999px;
    }
    [data-reel-overlay-state="hidden-content"] .gm-reel-product-chip__images,
    [data-reel-overlay-state="hidden-content"] .gm-reel-product-chip__image { width: 40px; height: 40px; border-radius: 50%; }
    [data-reel-overlay-state="hidden-content"] .gm-reel-product-chip__body { display: none; }
    [data-reel-overlay-state="hidden-content"] .gm-reel-product-chip__mini-label { width: auto; opacity: 1; }
    .gm-reel-actions { right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(var(--reel-safe-bottom) + 4px); }
    .gm-reel-topbar { padding-inline: calc(8px + env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-right, 0px)); }
    .gm-reel-shell [data-tooltip]::after { display: none; }
    .public-reel-feed__navigation { display: none; }
    .public-reel-sheet { width: 100%; max-width: none; max-height: 90dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .gm-reel-comments {
        inset: auto 0 var(--reel-visible-viewport-bottom);
        height: min(var(--reel-comments-mobile-initial-height), calc(var(--reel-visible-viewport-height) - 8px));
        min-height: min(520px, var(--reel-comments-mobile-initial-height), calc(var(--reel-visible-viewport-height) - 8px));
        max-height: min(var(--reel-comments-mobile-expanded-height), calc(var(--reel-visible-viewport-height) - 8px));
        transition: height .24s ease;
    }
    .gm-reel-comments[data-expanded] { height: min(var(--reel-comments-mobile-expanded-height), calc(var(--reel-visible-viewport-height) - 8px)); }
    .gm-reel-comments .gm-reel-sheet-handle { display: grid; place-items: center; }
    .gm-reel-shell.has-comments-panel .gm-reel-viewer-layout { transform: none; }
    .gm-reel-actions__navigation,
    .gm-reel-actions__separator { display: none; }
    .public-reel-products--single { height: auto; max-height: min(72dvh, 560px); }
    .public-reel-products--multiple { max-height: 80dvh; }
}

@media (max-width: 767px) {
    .gm-reel-product-chip { width: min(240px, 100%); max-width: 240px; }
    .gm-reel-meta .public-reel-viewer__seller small { display: none; }
    .gm-reel-comments > header { gap: 10px; padding: 8px 12px 10px; }
    .gm-reel-comments__header-main { flex: 1; }
    .gm-reel-comments__header-actions { width: auto; gap: 6px; }
    .gm-reel-comments__sort { display: none; }
    .gm-reel-comments__sort-menu { display: block; }
    .gm-reel-comments__title { font-size: 1.125rem; }
    .gm-reel-comments__header-main > p { display: none; }
    .gm-reel-comments .gm-reel-auth-gate { align-content: center; }
}

@media (max-width: 359px) {
    .gm-reel-product-chip { width: min(200px, 100%); grid-template-columns: 48px minmax(0, 1fr); min-height: 66px; }
    .gm-reel-product-chip__images,
    .gm-reel-product-chip__image { width: 48px; height: 48px; }
    .gm-reel-meta { left: 12px; gap: 7px; }
    .gm-reel-meta .public-reel-viewer__subscribe { max-width: 116px; overflow: hidden; padding-inline: 10px; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 1024px) {
    .gm-reel-shell.is-single .gm-reel-viewer-layout {
        grid-template-columns: minmax(300px, 340px) auto 60px;
        gap: 16px;
    }
    .gm-reel-shell.is-single .gm-reel-meta {
        position: static;
        align-self: center;
        max-height: min(calc(100dvh - var(--reel-global-header-height) - var(--reel-desktop-vertical-margin)), 818px);
        overflow-y: auto;
        padding: 16px;
        border: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, .72);
        color: #111827;
        box-shadow: none;
        pointer-events: auto;
    }
    .gm-reel-shell.is-single .gm-reel-meta .public-reel-viewer__seller { color: #111827; }
    .gm-reel-shell.is-single .gm-reel-meta .public-reel-viewer__seller small { color: #64748b; }
    .gm-reel-shell.is-single .gm-reel-meta .public-reel-viewer__seller-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .gm-reel-shell.is-single .gm-reel-meta .public-reel-viewer__seller { width: 100%; }
    .gm-reel-shell.is-single .gm-reel-meta .public-reel-viewer__seller strong { font-size: 14px; }
    .gm-reel-shell.is-single .gm-reel-meta .public-reel-viewer__subscribe { justify-self: start; }
    .gm-reel-shell.is-single .gm-reel-caption button { color: #047857; }
    .gm-reel-shell.is-single .gm-reel-product-chip { order: initial; width: 100%; max-height: 112px; box-shadow: 0 5px 16px rgba(15, 23, 42, .08); }
    .gm-reel-shell.is-single .public-reel-viewer__subscribe { min-width: 112px; color: #fff; }
    .gm-reel-shell.is-single .public-reel-viewer__subscribe::before { border-color: #059669; background: #059669; }
    .gm-reel-shell.is-single .public-reel-viewer__subscribe[aria-pressed="true"] { color: #334155; }
    .gm-reel-shell.is-single .public-reel-viewer__subscribe[aria-pressed="true"]::before { border-color: #cbd5e1; background: #fff; }
    .gm-reel-shell.is-single .gm-reel-actions { position: static; align-self: center; }
    .gm-reel-shell.is-single .gm-reel-actions button { border-color: #d1d5db; background: #fff; color: #111827; }
    .gm-reel-shell.is-single .gm-reel-actions button[aria-pressed="true"] { border-color: #059669; background: #ecfdf5; color: #047857; }
    .gm-reel-shell.is-single .gm-reel-actions__separator { background: #cbd5e1; }
    .gm-reel-shell.is-single .gm-reel-stage {
        width: auto;
        height: min(calc(100dvh - var(--reel-global-header-height) - var(--reel-desktop-vertical-margin)), 818px);
        aspect-ratio: 9 / 16;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .gm-reel-shell.is-single .gm-reel-comments[open] {
        position: fixed;
        z-index: 120;
        inset: var(--reel-global-header-height) 0 0 auto;
        width: min(420px, 42vw);
        height: calc(100dvh - var(--reel-global-header-height));
        max-height: none;
        margin: 0;
        border-radius: 18px 0 0 18px;
    }
}

@media (min-width: 1280px) {
    .gm-reel-shell.is-single .gm-reel-viewer-layout {
        display: grid;
        grid-template-columns: minmax(280px, 340px) minmax(360px, 480px) 64px;
        gap: 20px;
        transition: none;
    }
    .gm-reel-shell.is-single .gm-reel-meta {
        padding: 20px 16px;
    }
    .gm-reel-shell.is-single .public-reel-viewer {
        width: 100%;
        grid-template-columns: minmax(0, auto);
        gap: var(--reel-comments-panel-gap);
        padding-inline: 20px;
    }
    .gm-reel-shell.is-single .public-reel-viewer:has(> .gm-reel-comments[open]) {
        grid-template-columns: minmax(0, auto) minmax(420px, 460px);
    }
    .gm-reel-shell.is-single .gm-reel-comments[open] {
        position: static;
        z-index: 120;
        width: clamp(420px, 31vw, 460px);
        height: min(calc(100dvh - var(--reel-global-header-height) - var(--reel-desktop-vertical-margin)), 818px);
        max-height: none;
        margin: 0;
        border-radius: 18px;
    }
    .gm-reel-shell.is-single .public-reel-comments__list { max-height: none; }

    .public-reel-feed-shell.is-single.has-comments-panel .public-reel-viewer__stage {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-reel-play-indicator,
    .gm-reel-shell.has-comments-panel .gm-reel-viewer-layout,
    .gm-reel-shell [data-tooltip]::after,
    .gm-reel-meta [data-reel-overlay-content],
    .gm-reel-product-chip,
    .gm-reel-product-chip__body,
    .gm-reel-product-chip__mini-label,
    .gm-reel-product-chip__images,
    .gm-reel-product-chip__image { transition: none; }
}
