/* ==========================================================================
   Video section (VideoRail.cshtml) and its player (video-frame.js).
   The row: Digikala's «ویدئوهای بررسی این کالا» - tall 5:7 covers with a play button, a line over
   the foot, the maker's round photo on the edge and a caption under it; scrolls sideways, natively
   (arrows on a desktop). The player: one video a screen, swiped up and down like a story.
   ========================================================================== */
.tc-vf {
    --vf-ink: #0C0C0C;
    --vf-muted: #81858B;
    --vf-line: #E0E0E2;
    --vf-soft: #F1F2F4;
    --vf-card: 196px;
    --vf-gap: 12px;
    --vf-radius: 16px;
    direction: rtl;
    margin: 32px auto;
    font-family: yekanbakh, tahoma, sans-serif;
    color: var(--vf-ink);
}

/* ---- head ---- */
.tc-vf__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tc-vf .tc-vf__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--tc-fs-section, 19px);
    font-weight: var(--tc-fw-title, 700);
    line-height: 1.5;
    color: var(--vf-ink);
}

.tc-vf__icon { flex: none; }

.tc-vf__count {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--vf-soft);
    font-size: var(--tc-fs-caption, 13px);
    color: var(--vf-muted);
    white-space: nowrap;
}

.tc-vf__steps {
    display: none;
    gap: 8px;
    margin-inline-start: auto;
}

.tc-vf.is-js.has-more .tc-vf__steps { display: inline-flex; }

.tc-vf .tc-vf__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--vf-line);
    border-radius: 50%;
    background: #FFF;
    color: var(--vf-ink);
    cursor: pointer;
    transition: background-color .15s ease, opacity .15s ease;
}

.tc-vf .tc-vf__step:hover:not(:disabled) { background: var(--vf-soft); }
.tc-vf .tc-vf__step:disabled { opacity: .35; cursor: default; }

/* ---- the row ---- */
.tc-vf__wrap { position: relative; }

.tc-vf__rail {
    display: flex;
    gap: var(--vf-gap);
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tc-vf__rail::-webkit-scrollbar { display: none; }

.tc-vf__item {
    flex: 0 0 var(--vf-card);
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}

/* ---- a card ---- */
.tc-vf .tc-vf__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: right;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tc-vf .tc-vf__card:focus-visible { outline: none; }
.tc-vf .tc-vf__card:focus-visible .tc-vf__cover { box-shadow: 0 0 0 3px #FFF, 0 0 0 5px var(--vf-ink); }

.tc-vf__cover {
    position: relative;
    display: block;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: var(--vf-radius);
    background: #1B1C1F;
    isolation: isolate;
}

/* browsers before aspect-ratio */
@supports not (aspect-ratio: 1) {
    .tc-vf__cover { height: 0; padding-bottom: 140%; }
}

.tc-vf__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
}

.tc-vf__cover.is-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2A2C31 0%, #121316 100%);
    color: rgba(255, 255, 255, .28);
}

.tc-vf__cover.is-blank .tc-vf__blank { position: absolute; top: 22%; }

/* legibility for what sits on the photo */
.tc-vf__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 38%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 22%);
    pointer-events: none;
}

.tc-vf__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    color: #0C0C0C;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: transform .2s ease, background-color .2s ease;
}

.tc-vf__play svg { margin-left: 3px; }

.tc-vf__time {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(12, 12, 12, .62);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 18px;
    color: #FFF;
    direction: ltr;
}

.tc-vf__headline {
    position: absolute;
    right: 10px;
    bottom: 12px;
    left: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.tc-vf__headline.has-author { bottom: 32px; }

.tc-vf__headline > span {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(18, 18, 20, .58);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: yekanbakhen, yekanbakh, tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    color: #FFF;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* the maker's photo across the foot of the cover */
.tc-vf__author {
    position: relative;
    z-index: 3;
    align-self: center;
    display: block;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    overflow: hidden;
    border: 3px solid #FFF;
    border-radius: 50%;
    background: var(--vf-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}

.tc-vf__author img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s ease;
}

.tc-vf__caption {
    display: -webkit-box;
    margin-top: 10px;
    padding: 0 2px;
    overflow: hidden;
    font-family: yekanbakhen, yekanbakh, tahoma, sans-serif;
    font-size: var(--tc-fs-small, 14px);
    font-weight: var(--tc-fw-text, 400);
    line-height: 1.7;
    color: #3F4064;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* a brand's (or the store's) logo: whole, on white, not cropped like a face */
.tc-vf__author.is-logo { background: #FFF; }
.tc-vf__author.is-logo img { box-sizing: border-box; padding: 7px; object-fit: contain; }

.tc-vf__author + .tc-vf__caption { margin-top: 6px; }

@media (hover: hover) {
    .tc-vf .tc-vf__card:hover .tc-vf__cover img { transform: scale(1.045); }
    .tc-vf .tc-vf__card:hover .tc-vf__play { transform: scale(1.08); background: rgba(255, 255, 255, .9); }
}

/* ---- the skeleton of a photo on its way ---- */
.tc-vf.is-js .is-wait img { opacity: 0; }

.tc-vf.is-js .tc-vf__cover.is-wait::before,
.tc-vf.is-js .tc-vf__author.is-wait::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, #EDEDEF 0%, #F8F8F9 50%, #EDEDEF 100%);
    background-size: 200% 100%;
    animation: tc-vf-shimmer 1.2s linear infinite;
}

.tc-vf.is-js .tc-vf__cover.is-wait .tc-vf__shade,
.tc-vf.is-js .tc-vf__cover.is-wait .tc-vf__headline { opacity: 0; }

@keyframes tc-vf-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ---- phones: the row runs to the screen's edge; two cards and a part of the third ---- */
@media (max-width: 959px) {
    .tc-vf {
        --vf-card: clamp(148px, 41vw, 200px);
        --vf-gap: 8px;
        --vf-radius: 14px;
        margin: 24px 0;
        padding: 0 16px;
    }

    .tc-vf__head { margin-bottom: 12px; }
    .tc-vf__count { display: none; }

    .tc-vf__rail {
        margin: 0 -16px;
        padding: 0 16px 4px;
        scroll-padding-inline: 16px;
    }

    .tc-vf__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
    .tc-vf__play svg { width: 20px; height: 20px; }
    .tc-vf__author { width: 46px; height: 46px; margin-top: -23px; }
    .tc-vf__headline.has-author { bottom: 28px; }
    .tc-vf__headline > span { font-size: 12px; padding: 5px 8px; }
}

/* ==========================================================================
   The player
   Flat: solid shapes, no glass and no shadows on the controls. The videos swipe up and down
   under one fixed set of controls (.tc-vfp__chrome), which is the size of the frame: the whole
   screen on a phone, a 9:16 frame in the middle on a desktop.
   - top: a segment for each video (the one playing fills), close, the count and the sound;
   - foot: the seek bar (a knob, the time over it while dragged, what is buffered), then the
     time, previous / play / next and the speed.
   The media controls and the segments read left to right, as every player's do; only the words
   around them are rtl.
   ========================================================================== */
html.tc-vfp-lock,
html.tc-vfp-lock body { overflow: hidden !important; }

.tc-vfp {
    --vfp-accent: var(--ryan-primary, #EF4056);
    --vfp-ink: #0C0C0C;
    --vfp-dock: calc(104px + env(safe-area-inset-bottom));
    --vfp-top: calc(64px + env(safe-area-inset-top));
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    direction: rtl;
    background: #000;
    font-family: yekanbakh, tahoma, sans-serif;
    color: #FFF;
    animation: tc-vfp-in .2s ease-out;
    -webkit-user-select: none;
    user-select: none;
}

.tc-vfp[hidden] { display: none; }

@keyframes tc-vfp-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tc-vfp button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tc-vfp button:focus-visible { outline: 2px solid #FFF; outline-offset: 2px; }

/* ---- the feed ---- */
.tc-vfp__feed {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.tc-vfp__feed::-webkit-scrollbar { display: none; }

.tc-vfp__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.tc-vfp__frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

/* the cover, blurred, behind a video that does not fill the frame */
.tc-vfp__backdrop {
    position: absolute;
    inset: -40px;
    z-index: 0;
    background-position: center;
    background-size: cover;
    filter: blur(28px) brightness(.4) saturate(1.2);
    transform: scale(1.1);
}

.tc-vfp__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tc-vfp__media video,
.tc-vfp__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    object-fit: contain;
}

/* an Aparat / YouTube frame has controls of its own: it sits between the top and the foot */
.tc-vfp__slide.is-embed .tc-vfp__media {
    top: var(--vfp-top);
    bottom: var(--vfp-dock);
}

/* the poster until the first frame */
.tc-vfp__poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: opacity .25s ease;
}

.tc-vfp__slide.is-started .tc-vfp__poster { opacity: 0; }

/* tap to pause / play */
.tc-vfp__tap {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tc-vfp__slide.is-embed .tc-vfp__tap,
.tc-vfp__slide.is-embed .tc-vfp__poster,
.tc-vfp__slide.is-embed .tc-vfp__info { display: none; }

/* the big sign in the middle: play while paused, replay at the end */
.tc-vfp__sign {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(12, 12, 12, .5);
    color: #FFF;
    opacity: 0;
    transform: scale(.8);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.tc-vfp__sign svg { width: 32px; height: 32px; }
.tc-vfp__sign .is-replay { display: none; }
.tc-vfp__slide.is-paused .tc-vfp__sign { opacity: 1; transform: none; }
.tc-vfp__slide.is-ended .tc-vfp__sign .is-play { display: none; }
.tc-vfp__slide.is-ended .tc-vfp__sign .is-replay { display: block; }

.tc-vfp__spin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #FFF;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: tc-vfp-spin .8s linear infinite;
    transition: opacity .2s ease;
}

.tc-vfp__slide.is-wait .tc-vfp__spin { opacity: 1; }
.tc-vfp__slide.is-wait .tc-vfp__sign { opacity: 0; }

@keyframes tc-vfp-spin { to { transform: rotate(360deg); } }

/* what the video is: over its foot, above the controls */
.tc-vfp__info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    padding: 96px 16px calc(var(--vfp-dock) + 4px);
    background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    transition: opacity .2s ease;
}

.tc-vfp__info > * { pointer-events: auto; }

.tc-vfp__who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tc-vfp__who img {
    width: 36px;
    height: 36px;
    border: 2px solid #FFF;
    border-radius: 50%;
    object-fit: cover;
}

.tc-vfp__who img.is-logo { box-sizing: border-box; padding: 4px; background: #FFF; object-fit: contain; }

.tc-vfp__who span {
    font-size: 14px;
    font-weight: 700;
}

.tc-vfp__name {
    margin: 0;
    font-family: yekanbakhen, yekanbakh, tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #FFF;
}

.tc-vfp__text {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    font-family: yekanbakhen, yekanbakh, tahoma, sans-serif;
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .84);
    white-space: pre-line;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tc-vfp__info.is-open .tc-vfp__text {
    display: block;
    max-height: 34vh;
    overflow-y: auto;
}

.tc-vfp .tc-vfp__more {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #FFF;
}

/* ==========================================================================
   The controls (one set, over every video)
   ========================================================================== */
.tc-vfp__chrome {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.tc-vfp__top,
.tc-vfp__dock,
.tc-vfp__nav { pointer-events: auto; transition: opacity .25s ease; }

/* ---- top ---- */
.tc-vfp__top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: calc(10px + env(safe-area-inset-top)) 12px 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
}

.tc-vfp__segs {
    display: flex;
    direction: ltr;
    gap: 4px;
    margin-bottom: 10px;
}

.tc-vfp__segs[hidden] { display: none; }

.tc-vfp__seg {
    position: relative;
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .3);
}

.tc-vfp__seg > i {
    position: absolute;
    inset: 0;
    background: #FFF;
    transform: scaleX(0);
    transform-origin: left;
}

.tc-vfp__seg.is-done > i { transform: none; }

.tc-vfp__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-vfp .tc-vfp__btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(12, 12, 12, .42);
    color: #FFF;
    transition: background-color .15s ease, opacity .15s ease;
}

.tc-vfp .tc-vfp__btn:disabled { opacity: .3; cursor: default; }

.tc-vfp__count {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
}

.tc-vfp__end {
    display: inline-flex;
    gap: 8px;
    margin-inline-start: auto;
}

/* the sound came back off (the browser's autoplay rule): say so until it is turned on */
.tc-vfp .tc-vfp__btn.is-hint {
    width: auto;
    gap: 6px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    background: #FFF;
    color: var(--vfp-ink);
    font-size: 13px;
    font-weight: 700;
}

/* ---- foot ---- */
.tc-vfp__dock {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 16px calc(8px + env(safe-area-inset-bottom));
}

.tc-vfp__seek {
    position: relative;
    height: 28px;
    cursor: pointer;
    touch-action: none;
}

.tc-vfp__track,
.tc-vfp__buf,
.tc-vfp__fill {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    transform-origin: left;
    transition: height .12s ease, margin-top .12s ease;
}

.tc-vfp__track { background: rgba(255, 255, 255, .24); }
.tc-vfp__buf { background: rgba(255, 255, 255, .34); transform: scaleX(0); }
.tc-vfp__fill { background: var(--vfp-accent); transform: scaleX(0); }

.tc-vfp__knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: #FFF;
    transform: translateX(-50%);
    transition: width .12s ease, height .12s ease, margin-top .12s ease;
}

.tc-vfp__seek.is-drag .tc-vfp__track,
.tc-vfp__seek.is-drag .tc-vfp__buf,
.tc-vfp__seek.is-drag .tc-vfp__fill { height: 6px; margin-top: -3px; }
.tc-vfp__seek.is-drag .tc-vfp__knob { width: 18px; height: 18px; margin-top: -9px; }

/* the time where the finger (or the pointer) is */
.tc-vfp__tip {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #FFF;
    color: var(--vfp-ink);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    direction: ltr;
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity .12s ease;
}

.tc-vfp__seek.is-drag .tc-vfp__tip,
.tc-vfp__seek.is-hover .tc-vfp__tip { opacity: 1; }

.tc-vfp__ctrls {
    display: grid;
    direction: ltr;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
}

.tc-vfp__time {
    justify-self: start;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    direction: ltr;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tc-vfp__time b { font-weight: 700; color: #FFF; }

.tc-vfp__mid {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.tc-vfp .tc-vfp__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FFF;
    transition: background-color .15s ease, opacity .15s ease;
}

.tc-vfp .tc-vfp__go:disabled { opacity: .3; cursor: default; }

.tc-vfp .tc-vfp__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFF;
    color: var(--vfp-ink);
    transition: transform .15s ease;
}

.tc-vfp .tc-vfp__play:active { transform: scale(.94); }
.tc-vfp__play .is-pause { display: none; }
.tc-vfp__play.is-on .is-play { display: none; }
.tc-vfp__play.is-on .is-pause { display: block; }

.tc-vfp .tc-vfp__speed {
    justify-self: end;
    min-width: 46px;
    height: 30px;
    padding: 0 10px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    color: #FFF;
    direction: ltr;
    transition: background-color .15s ease, color .15s ease;
}

.tc-vfp .tc-vfp__speed.is-on { border-color: #FFF; background: #FFF; color: var(--vfp-ink); }

/* an Aparat / YouTube video: its own frame plays it; only the way to the others is left */
.tc-vfp.is-embed .tc-vfp__seek,
.tc-vfp.is-embed .tc-vfp__time,
.tc-vfp.is-embed .tc-vfp__play,
.tc-vfp.is-embed .tc-vfp__speed { visibility: hidden; }

/* ---- a desktop's side arrows ---- */
.tc-vfp__nav {
    position: absolute;
    top: 50%;
    left: -72px;
    display: none;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}

.tc-vfp__nav .tc-vfp__btn { width: 48px; height: 48px; background: rgba(255, 255, 255, .12); }

/* ---- a desktop: a tall frame in the middle, the controls on it, the arrows beside it ---- */
@media (min-width: 960px) {
    .tc-vfp {
        --vfp-h: min(92vh, 900px);
        --vfp-dock: 104px;
        --vfp-top: 64px;
        background: #111214;
    }

    .tc-vfp__frame,
    .tc-vfp__chrome {
        width: calc(var(--vfp-h) * 9 / 16);
        height: var(--vfp-h);
        border-radius: 16px;
    }

    .tc-vfp__chrome {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .tc-vfp__top { padding: 12px 14px 18px; border-radius: 16px 16px 0 0; }
    .tc-vfp__dock { padding: 0 16px 8px; }
    .tc-vfp__nav { display: flex; }

    /* the pointer resting on a playing video: the controls step aside */
    .tc-vfp.is-idle .tc-vfp__top,
    .tc-vfp.is-idle .tc-vfp__dock { opacity: 0; }
    .tc-vfp.is-idle { cursor: none; }
}

@media (hover: hover) {
    /* a phone keeps :hover on what was tapped: only a pointer gets it */
    .tc-vfp .tc-vfp__btn:hover:not(:disabled) { background: rgba(12, 12, 12, .62); }
    .tc-vfp .tc-vfp__go:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
    .tc-vfp__nav .tc-vfp__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }

    .tc-vfp__knob { width: 0; height: 0; margin-top: 0; }
    .tc-vfp__seek:hover .tc-vfp__knob { width: 14px; height: 14px; margin-top: -7px; }
    .tc-vfp__seek:hover .tc-vfp__track,
    .tc-vfp__seek:hover .tc-vfp__buf,
    .tc-vfp__seek:hover .tc-vfp__fill { height: 6px; margin-top: -3px; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-vfp, .tc-vf .tc-vf__card .tc-vf__cover img { animation: none; transition: none; }
    .tc-vf.is-js .tc-vf__cover.is-wait::before, .tc-vf.is-js .tc-vf__author.is-wait::before { animation: none; }
}
