:root {
    --bg: #f8f9fb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #dc2626;
    --accent-dark: #b91c1c;
    --blue: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

.page {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--surface);
}

.video-shell {
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    background: #000;
}

.video-placeholder {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .72)),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1100&q=80") center / cover;
    color: #fff;
}

.video-placeholder::after {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    content: attr(data-time);
    font-size: 12px;
    font-weight: 700;
}

.vturbo-slot {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vturbo-slot vturb-smartplayer {
    width: 100%;
    min-height: 100%;
}

.content {
    padding: 14px 14px 28px;
}

h1 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: 0;
}

.author-bar,
.comment-input,
.comment {
    display: flex;
    gap: 10px;
}

.author-bar {
    align-items: center;
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--line);
}

.avatar {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-weight: 800;
    overflow: hidden;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-meta {
    min-width: 0;
    flex: 1;
}

.author-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscribers,
.comment-meta {
    color: var(--muted);
    font-size: 12px;
}

.interaction-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 112px));
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.action {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}

.action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.action:hover {
    background: #e5e7eb;
}

.action:active,
.action.is-tapped {
    transform: scale(.96);
}

.action.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--blue);
}

.comments-title {
    margin: 16px 0 12px;
    font-size: 18px;
    font-weight: 900;
}

.comment-input {
    align-items: center;
    margin-bottom: 16px;
    gap: 14px;
}

.comment-input input {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    color: var(--text);
}

.comment-input input:focus {
    border-color: var(--blue);
}

.post-button {
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: background .16s ease, transform .12s ease;
}

.post-button:active {
    transform: scale(.96);
}

.post-button:disabled {
    cursor: default;
    opacity: .55;
}

.pinned-comment {
    display: none;
    margin-bottom: 16px;
    padding: 14px;
    border: 3px solid #55a949;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(42, 96, 34, .14);
    opacity: 0;
    transform: translateY(8px);
}

.cta-under-video {
    margin: 12px 14px 0;
}

.pinned-comment.is-visible {
    display: block;
    animation: reveal .35s ease forwards;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 15px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #66b84f 0%, #4f9d3f 100%);
    box-shadow: inset 0 -5px 0 rgba(29, 105, 28, .35);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.cta-button:active {
    transform: scale(.98);
}

.cta-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #55a949;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.cta-secure {
    margin-bottom: 10px;
    color: #31812b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.cta-product {
    display: flex;
    justify-content: center;
    margin: 2px 0 8px;
}

.cta-product img {
    width: min(46vw, 150px);
    height: auto;
}

.cta-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 14px;
    white-space: nowrap;
}

.old-price,
.new-price {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.old-price {
    color: #4b4b4b;
    text-decoration: line-through;
    text-decoration-thickness: 4px;
}

.new-price {
    color: #39a846;
}

.cta-details {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f4fbf1;
    color: #243044;
    font-size: 14px;
    line-height: 1.3;
    list-style: none;
}

.scarcity {
    display: inline-block;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf7e4;
    color: #31812b;
    font-size: 12px;
    font-weight: 900;
}

.cta-secondary {
    display: block;
    margin: 10px 0 14px;
    color: #31812b;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.cta-secondary::before {
    content: "➔ ";
}

.comments-list {
    display: grid;
    gap: 16px;
}

.comment-thread {
    display: grid;
    gap: 10px;
}

.comment.reply {
    margin-left: 50px;
}

.comment.reply .avatar {
    width: 32px;
    height: 32px;
}

.comment-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.36;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 760px) {
    body {
        padding: 24px 0;
        background: #eceff3;
    }

    .page {
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 18px 50px rgba(15, 23, 42, .13);
    }

    .video-shell {
        position: relative;
    }
}
