/* Original video-discovery layout with a persistent desktop sidebar. */
:root {
    --bg: #f3f6f8;
    --surface: #fff;
    --surface-2: #e7ebef;
    --ink: #1d2732;
    --muted: #64717e;
    --line: #dce2e8;
    --primary: #1f6f78;
    --primary-ink: #fff;
    --accent: #d8ae5e;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(28, 44, 58, .08);
    --maxw: 1400px;
    --header-bg: #fff;
    --header-ink: #1d2732;
}

.theme-videohub .site-header { border-bottom: 1px solid var(--line); }
.theme-videohub .brand-mark { border-radius: 12px; background: var(--primary); }
.theme-videohub .bar-tools { gap: 12px; }
.theme-videohub .hdr-search { flex: 1; max-width: 720px; margin-inline: auto; }
.theme-videohub .hdr-search input { width: auto; min-width: 100px; flex: 1; }
.theme-videohub .main-nav a { border-radius: 10px; font-size: .92rem; }
.theme-videohub .main-nav a.active { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.theme-videohub .vh-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 34px 18px; }
.theme-videohub .vh-intro .kicker { color: var(--primary); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theme-videohub .vh-intro h1 { margin-bottom: .2em; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.theme-videohub .vh-intro .lead { max-width: 64ch; margin: 0; }
.theme-videohub .vh-intro .btn { flex: none; border-radius: 10px; }
.theme-videohub .vh-intro-actions { display:flex; gap:10px; flex-wrap:wrap; flex:none; }
.theme-videohub .vh-featured { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.8fr); gap: clamp(22px,4vw,52px); align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.theme-videohub .vh-feature-player .card-video { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.theme-videohub .vh-feature-player .thumb { aspect-ratio: 16 / 9; border-radius: 12px; }
.theme-videohub .vh-feature-player .card-body { padding: 12px 0 0; }
.theme-videohub .vh-feature-player .card-title { font-size: 1.4rem; letter-spacing: -.025em; }
.theme-videohub .vh-feature-copy .kicker { color: var(--primary); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.theme-videohub .vh-feature-copy .lead { font-size: 1rem; }
.theme-videohub .vh-channel { color: var(--muted); font-weight: 650; }
.theme-videohub .vh-feature-copy .btn { border-radius: 10px; }
.theme-videohub .vh-shelf { padding-top: 40px; }
.theme-videohub .vh-shelf .sec-line { align-items: center; }
.theme-videohub .vh-shelf .sec-line h2, .theme-videohub .vh-news .sec-line h2 { font-size: 1.35rem; }
.theme-videohub .vh-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 18px; }
.theme-videohub .card-video { border: 0; background: transparent; box-shadow: none; }
.theme-videohub .card-video .thumb { border-radius: 12px; }
.theme-videohub .card-video .card-body { padding: 10px 2px 0; }
.theme-videohub .card-video .card-title { font-size: 1rem; line-height: 1.35; }
.theme-videohub .card-video .meta { color: var(--muted); font-size: .86rem; }
.theme-videohub .card-video .badge { padding: 2px 7px; font-size: .72rem; }
.theme-videohub .vh-news .grid-post { grid-template-columns: repeat(2,minmax(0,1fr)); }

@media (min-width: 1281px) {
    .theme-videohub .site-header .bar { display: grid; width: 100%; max-width: none; grid-template-columns: 220px minmax(0,1fr); grid-template-areas: "brand tools"; gap: 0 24px; padding-inline: var(--gutter); flex-wrap: initial; }
    .theme-videohub .brand { grid-area: brand; }
    .theme-videohub .bar-tools { grid-area: tools; justify-self: stretch; }
    .theme-videohub .main-nav { position: fixed; inset: 68px auto 0 0; z-index: 49; display: block; width: 220px; overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface); }
    .theme-videohub .main-nav ul { flex-direction: column; gap: 5px; }
    .theme-videohub .main-nav a { width: 100%; padding: 10px 12px; }
    .theme-videohub .site-main, .theme-videohub .site-footer { margin-left: 220px; }
}

@media (max-width: 1280px) {
    .theme-videohub .main-nav { position: static; width: 100%; overflow: visible; padding: 0; border-right: 0; background: transparent; }
    .theme-videohub .main-nav ul { flex-direction: column; }
}

@media (max-width: 1050px) {
    .theme-videohub .vh-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .theme-videohub .vh-featured { grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); padding: 22px; }
}

@media (max-width: 760px) {
    .theme-videohub .vh-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
    .theme-videohub .vh-featured { grid-template-columns: 1fr; }
    .theme-videohub .vh-intro { align-items: flex-start; flex-direction: column; }
    .theme-videohub .vh-news .grid-post { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body.theme-videohub.theme-layout-cards .vh-grid { grid-template-columns: 1fr; }
    .theme-videohub .vh-featured { padding: 14px; border-radius: 14px; }
    .theme-videohub .vh-intro { padding-top: 24px; }
}
