/* ==========================================================================
   SmartCMS Video Gallery — public styles

   Self-contained on purpose: the plugin works on any SmartCMS theme. It inherits
   the theme's font-family and dark/light context, and takes one accent colour
   from the plugin setting (--vg-accent is set inline on .vg-page). Nothing here
   reads a theme's classes or variables, so a theme change never breaks the
   gallery.
   ========================================================================== */

.vg-page {
    --vg-accent: #0e6a66;
    --vg-accent-ink: #0b5450;
    --vg-accent-soft: #e6f2f1;
    --vg-ink: #16181d;
    --vg-body: #4b5563;
    --vg-muted: #7b8492;
    --vg-line: #e3e6ea;
    --vg-soft: #f5f6f7;
    --vg-canvas: #ffffff;
    --vg-dark: #14161a;
    --vg-radius: 12px;

    box-sizing: border-box;
    color: var(--vg-ink);
    font-family: inherit;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.vg-page *,
.vg-page *::before,
.vg-page *::after { box-sizing: border-box; }

.vg-page img { display: block; max-width: 100%; }
.vg-page a { color: inherit; text-decoration: none; }
.vg-page a:hover { color: var(--vg-accent-ink); }
.vg-page :focus-visible { outline: 3px solid var(--vg-accent); outline-offset: 2px; }
.vg-page ::selection { background: var(--vg-accent); color: #fff; }

.vg-page h1,
.vg-page h2,
.vg-page h3 {
    font-family: inherit;
    color: inherit;
}

.vg-page p { margin: 0; }

.vg-wrap {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.vg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Hero ---------------------------------------------------------------------- */
.vg-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: 74px 0 66px;
    overflow: hidden;
    background: var(--vg-dark);
    color: rgba(255, 255, 255, .8);
}

.vg-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .62;
}

.vg-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 14, 11, .94) 0%, rgba(12, 14, 11, .78) 55%, rgba(12, 14, 11, .44) 100%);
}

.vg-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    top: -180px;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--vg-accent-soft), transparent 68%);
    opacity: .18;
    pointer-events: none;
}

.vg-hero__inner { position: relative; z-index: 2; }

.vg-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 22px;
    color: var(--vg-muted);
    font-size: 12.5px;
}

.vg-crumbs a { color: inherit; }
.vg-crumbs a:hover { color: var(--vg-accent); }
.vg-crumbs span[aria-current] { color: var(--vg-body); }
.vg-crumbs--light { color: rgba(255, 255, 255, .62); }
.vg-crumbs--light a { color: rgba(255, 255, 255, .72); }
.vg-crumbs--light a:hover { color: #fff; }
.vg-crumbs--light span[aria-current] { color: rgba(255, 255, 255, .94); }

.vg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--vg-accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vg-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--vg-accent);
}

.vg-hero .vg-kicker { color: var(--vg-accent); }
.vg-hero h1 {
    max-width: 20ch;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.vg-hero__intro {
    max-width: 64ch;
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
    line-height: 1.6;
}

.vg-hero__count {
    margin-top: 18px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    letter-spacing: .02em;
}

.vg-section { padding: 64px 0 84px; background: var(--vg-canvas); }
.vg-section--watch { padding-top: 0; }

/* Buttons ------------------------------------------------------------------- */
.vg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--vg-ink);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}

.vg-btn:hover { color: #fff; transform: translateY(-1px); }
.vg-btn--accent { background: var(--vg-accent); border-color: var(--vg-accent); color: #fff; }
.vg-btn--accent:hover { background: var(--vg-accent-ink); border-color: var(--vg-accent-ink); color: #fff; }
.vg-btn--line { background: transparent; border-color: var(--vg-line); color: var(--vg-ink); }
.vg-btn--line:hover { border-color: var(--vg-ink); color: var(--vg-ink); }
.vg-btn--block { width: 100%; }

.vg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vg-accent-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.vg-link:hover { color: var(--vg-accent); }
.vg-link svg { width: 15px; height: 15px; }

/* Toolbar ------------------------------------------------------------------- */
.vg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--vg-line);
}

.vg-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.vg-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--vg-line);
    border-radius: 999px;
    background: var(--vg-canvas);
    color: var(--vg-body);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.vg-chip:hover { border-color: var(--vg-accent); color: var(--vg-accent-ink); }

.vg-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--vg-soft);
    color: var(--vg-muted);
    font-size: 11px;
    font-weight: 700;
}

.vg-chip.is-current { border-color: var(--vg-ink); background: var(--vg-ink); color: #fff; }
.vg-chip.is-current:hover { color: #fff; }
.vg-chip.is-current span { background: rgba(255, 255, 255, .18); color: #fff; }

.vg-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--vg-line);
    border-radius: 999px;
    background: var(--vg-canvas);
    overflow: hidden;
}

.vg-search input {
    width: 240px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--vg-ink);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.vg-search input::placeholder { color: var(--vg-muted); }

.vg-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--vg-ink);
    cursor: pointer;
}

.vg-search button:hover { color: var(--vg-accent); }
.vg-search svg { width: 18px; height: 18px; }

/* Featured ------------------------------------------------------------------ */
.vg-featured {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    margin: 0 0 42px;
    overflow: hidden;
    border: 1px solid var(--vg-line);
    border-radius: 18px;
    background: var(--vg-soft);
}

.vg-featured__media {
    position: relative;
    display: block;
    align-self: center;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: #171814;
}

.vg-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.vg-featured__media:hover img { transform: scale(1.03); }

.vg-featured__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 17, 12, .02) 40%, rgba(16, 17, 12, .6));
}

.vg-featured__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--vg-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vg-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 34px 38px;
}

.vg-featured__body .vg-kicker { margin: 0; }

.vg-featured h2 {
    margin: 0;
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.22;
    color: var(--vg-ink);
}

.vg-featured h2 a { color: inherit; }
.vg-featured h2 a:hover { color: var(--vg-accent-ink); }

.vg-featured__desc { color: var(--vg-body); font-size: 15px; line-height: 1.65; }

.vg-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--vg-muted);
    font-size: 13px;
}

.vg-featured__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vg-featured__meta svg { width: 15px; height: 15px; color: var(--vg-accent); }
.vg-featured__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Play overlay / duration ---------------------------------------------------- */
.vg-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.vg-play svg {
    width: 62px;
    height: 62px;
    padding: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #101310;
    box-shadow: 0 12px 30px rgba(9, 10, 8, .32);
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s ease, transform .2s ease;
}

.vg-card:hover .vg-play svg,
.vg-featured__media:hover .vg-play svg { opacity: 1; transform: scale(1); }

@media (hover: none) {
    .vg-play svg { opacity: 1; transform: none; }
}

.vg-dur {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(12, 13, 11, .84);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.4;
}

/* Cards ---------------------------------------------------------------------- */
.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
}

.vg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.vg-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.vg-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--vg-radius);
    background: #171814;
    box-shadow: 0 12px 30px rgba(22, 24, 29, .10);
}

.vg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.vg-card:hover .vg-card__media img { transform: scale(1.045); }

.vg-card__body { min-width: 0; }

.vg-card__eyebrow {
    margin: 0 0 5px;
    color: var(--vg-accent-ink);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.vg-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--vg-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.vg-card__title a { color: inherit; }
.vg-card:hover .vg-card__title a { color: var(--vg-accent-ink); }

.vg-card__meta { margin: 6px 0 0; color: var(--vg-muted); font-size: 12.5px; }

.vg-card--compact { gap: 10px; }
.vg-card--compact .vg-card__title { font-size: 15.5px; }

/* Pager / empty --------------------------------------------------------------- */
.vg-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 44px 0 0;
}

.vg-more p { color: var(--vg-muted); font-size: 13px; }

.vg-empty {
    padding: 56px 24px;
    border: 1px dashed var(--vg-line);
    border-radius: 12px;
    text-align: center;
}

.vg-empty h2 { margin: 0 0 8px; font-size: 20px; }
.vg-empty p { color: var(--vg-muted); }

/* Subscribe band --------------------------------------------------------------- */
.vg-subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 58px;
    padding: 28px 32px;
    border-radius: 16px;
    background: var(--vg-dark);
    color: #fff;
}

.vg-subscribe__body { max-width: 640px; }
.vg-subscribe .vg-kicker { color: var(--vg-accent); margin-bottom: 6px; }
.vg-subscribe h2 { margin: 0 0 8px; color: #fff; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
.vg-subscribe p { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
.vg-subscribe__actions { flex: none; }

/* Watch page -------------------------------------------------------------------- */
.vg-watchhead {
    position: relative;
    padding: 28px 0 40px;
    overflow: hidden;
    background: var(--vg-dark);
    color: rgba(255, 255, 255, .74);
}

.vg-watchhead::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -170px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--vg-accent-soft), transparent 66%);
    opacity: .16;
    pointer-events: none;
}

.vg-watchhead__inner { position: relative; z-index: 1; }
.vg-watchhead .vg-crumbs { margin-bottom: 24px; }

.vg-watchhead h1 {
    max-width: 880px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
}

.vg-watchhead__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    color: rgba(245, 241, 233, .7);
    font-size: 13px;
}

.vg-watchhead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vg-watchhead__meta svg { width: 15px; height: 15px; color: var(--vg-accent); }
.vg-watchhead__meta a { color: rgba(245, 241, 233, .86); text-decoration: underline; text-underline-offset: 3px; }
.vg-watchhead__meta a:hover { color: #fff; }

.vg-watch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 40px;
    align-items: start;
    padding: 40px 0 0;
}

.vg-watch__main { min-width: 0; }

.vg-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #0c0d0b;
    box-shadow: 0 24px 58px rgba(20, 20, 16, .22);
}

.vg-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vg-player__poster { width: 100%; height: 100%; object-fit: cover; opacity: .92; }

.vg-player::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 10, 8, .02) 55%, rgba(9, 10, 8, .42));
    pointer-events: none;
    opacity: 1;
    transition: opacity .2s;
}

.vg-player.is-playing::after { opacity: 0; }

.vg-player__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--vg-accent);
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
    cursor: pointer;
    transition: background-color .18s, transform .18s;
}

.vg-player__play:hover { background: var(--vg-accent-ink); transform: translate(-50%, -50%) scale(1.04); }
.vg-player__play svg { width: 30px; height: 30px; margin-left: 4px; }

.vg-noscript { margin-top: 10px; color: var(--vg-muted); font-size: 13px; }
.vg-noscript a { color: var(--vg-accent-ink); text-decoration: underline; }

.vg-watch__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--vg-line);
}

.vg-watch__byline { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--vg-muted); font-size: 13px; }
.vg-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--vg-accent-soft);
    color: var(--vg-accent-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}
.vg-watch__byline b { display: block; color: var(--vg-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }

.vg-watch__tools { display: flex; flex-wrap: wrap; gap: 8px; }

.vg-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--vg-line);
    border-radius: 999px;
    background: var(--vg-canvas);
    color: var(--vg-body);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.vg-tool svg { width: 15px; height: 15px; }
.vg-tool:hover { border-color: var(--vg-ink); color: var(--vg-ink); }
.vg-tool--accent { border-color: var(--vg-accent); background: var(--vg-accent); color: #fff; }
.vg-tool--accent:hover { border-color: var(--vg-accent-ink); background: var(--vg-accent-ink); color: #fff; }

.vg-desc { padding: 22px 0 0; }
.vg-desc h2 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--vg-ink); }
.vg-desc p { margin: 0 0 12px; color: var(--vg-body); font-size: 15px; line-height: 1.72; }

.vg-morevideos { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--vg-line); }
.vg-morevideos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.vg-morevideos__head h2 { margin: 0; font-size: clamp(20px, 2vw, 25px); font-weight: 700; color: var(--vg-ink); }

.vg-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Rail -------------------------------------------------------------------------- */
.vg-side { min-width: 0; }

.vg-rail {
    position: sticky;
    top: 20px;
    overflow: hidden;
    border: 1px solid var(--vg-line);
    border-radius: 14px;
    background: var(--vg-soft);
}

.vg-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--vg-line);
}

.vg-rail__head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--vg-ink); }
.vg-rail__head span { color: var(--vg-muted); font-size: 12px; }
.vg-rail__body { padding: 8px; }

.vg-rail__item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px;
    border-radius: 10px;
    color: inherit;
}

.vg-rail__item:hover { background: rgba(255, 255, 255, .8); }
.vg-rail__item.is-current { background: var(--vg-canvas); box-shadow: 0 8px 20px rgba(22, 24, 29, .10); }

.vg-rail__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #171814; }
.vg-rail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vg-rail__thumb .vg-dur { right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 3px; font-size: 10px; }

.vg-rail__text { display: grid; gap: 4px; min-width: 0; }
.vg-rail__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--vg-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
.vg-rail__meta { color: var(--vg-muted); font-size: 11.5px; }
.vg-rail__foot { padding: 6px 16px 16px; }

.vg-channel {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--vg-line);
    border-radius: 14px;
    background: var(--vg-canvas);
}

.vg-channel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vg-channel__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vg-accent-soft);
    color: var(--vg-accent-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}
.vg-channel h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--vg-ink); }
.vg-channel p { margin: 0 0 14px; color: var(--vg-body); font-size: 13px; line-height: 1.6; }

/* Shortcode strip / single player ------------------------------------------------- */
.vg-page--strip .vg-strip-block { margin: 0; }
.vg-strip-block { margin: 0; container-type: inline-size; }

/* A shortcode sits inside whatever column the theme gives it (often a page with a
   sidebar). Collapse by the container, not the viewport. */
@container (max-width: 900px) {
    .vg-strip-block .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 470px) {
    .vg-strip-block .vg-grid { grid-template-columns: 1fr; }
}
.vg-strip__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.vg-strip__head h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--vg-ink); }
.vg-strip__title { margin: 0 0 18px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }
.vg-strip__more { margin: 18px 0 0; }

.vg-page--strip { margin: 4px 0; }
.vg-page--single { margin: 4px 0; }
.vg-single__meta { margin-top: 12px; color: var(--vg-muted); font-size: 13px; }
.vg-single__meta strong { color: var(--vg-ink); font-weight: 600; }
.vg-single__meta .vg-link { margin-left: 10px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .vg-watch { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
    .vg-grid { gap: 26px 18px; }
    .vg-featured__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--vg-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vg-featured__body { padding: 28px; }
}

@media (max-width: 980px) {
    .vg-featured { grid-template-columns: 1fr; }
    .vg-featured__media { align-self: stretch; }
    .vg-watch { grid-template-columns: 1fr; }
    .vg-rail { position: static; }
    .vg-rail__body { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
    .vg-rail__item { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vg-strip > :last-child { display: none; }
    .vg-subscribe { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .vg-wrap { width: min(100% - 32px, 1200px); }
    .vg-section { padding: 40px 0 56px; }
    .vg-hero { min-height: 0; padding: 48px 0 44px; }
    .vg-hero h1 { font-size: clamp(30px, 9vw, 40px); }
    .vg-hero__intro { font-size: 15.5px; }
    .vg-toolbar { margin-bottom: 24px; padding-bottom: 18px; }
    .vg-chips {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .vg-chips::-webkit-scrollbar { display: none; }
    .vg-chip { flex: none; min-height: 38px; }
    .vg-search { width: 100%; }
    .vg-search input { flex: 1; width: auto; }
    .vg-grid,
    .vg-grid--2,
    .vg-grid--3,
    .vg-grid--4 { grid-template-columns: 1fr; gap: 24px; }
    .vg-strip { grid-template-columns: 1fr; }
    .vg-strip > :last-child { display: flex; }
    .vg-featured__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--vg-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vg-featured__body { padding: 22px 20px 26px; }
    .vg-watchhead { padding: 22px 0 28px; }
    .vg-watchhead h1 { font-size: clamp(22px, 6.4vw, 28px); }
    .vg-watch { padding-top: 24px; }
    .vg-player { border-radius: 10px; }
    .vg-player__play { width: 62px; height: 62px; }
    .vg-player__play svg { width: 24px; height: 24px; }
    .vg-watch__tools { width: 100%; flex-wrap: wrap; }
    .vg-rail__body { grid-template-columns: 1fr; }
    .vg-rail__item { grid-template-columns: 108px minmax(0, 1fr); }
    .vg-morevideos { margin-top: 36px; padding-top: 30px; }
    .vg-morevideos__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .vg-subscribe { padding: 22px 20px; }
    .vg-strip__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
