.happyell-video-page .hvs-video-main {
    width: min(100% - 32px, 980px);
    margin: 32px auto 64px;
}

.happyell-video-page .hvs-video-article {
    min-width: 0;
}

.happyell-video-page .hvs-video-title {
    margin: 0 0 12px;
    line-height: 1.45;
}

.happyell-video-page .hvs-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 20px;
    font-size: .9rem;
}

.happyell-video-page .hvs-video-player-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.happyell-video-page .hvs-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.happyell-video-page .hvs-video-related,
.happyell-video-page .hvs-video-description {
    margin-top: 32px;
}

.happyell-video-page .hvs-video-related h2,
.happyell-video-page .hvs-video-description h2 {
    margin: 0 0 14px;
}

.happyell-video-page .hvs-video-related-links {
    display: grid;
    gap: 10px;
}

.happyell-video-page .hvs-video-related-link {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid currentColor;
    border-radius: 8px;
    text-decoration: none;
}

.happyell-video-page .hvs-video-related-link__title {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.happyell-video-page .hvs-video-related-link__arrow {
    flex: 0 0 auto;
    margin-left: 12px;
    font-size: 1.4em;
    line-height: 1;
}

.happyell-video-page .hvs-video-description__body {
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.happyell-video-page .hvs-video-description__body p {
    margin: 0 0 1em;
}

.happyell-video-page .hvs-video-description__body p:last-child {
    margin-bottom: 0;
}

.happyell-video-page .hvs-video-description__body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.happyell-video-page .hvs-video-youtube-link {
    margin-top: 28px;
}

@media (max-width: 480px) {
    .happyell-video-page .hvs-video-main {
        width: min(100% - 24px, 980px);
        margin-top: 20px;
    }

    .happyell-video-page .hvs-video-related-link {
        padding: 12px;
    }
}

.happyell-video-archive-page .hvs-video-archive-main {
    width: min(100% - 32px, 1120px);
    margin: 32px auto 64px;
}

.happyell-video-archive-page .hvs-video-archive-header {
    margin-bottom: 20px;
}

.happyell-video-archive-page .hvs-video-archive-title {
    margin: 0 0 10px;
    line-height: 1.4;
}

.happyell-video-archive-page .hvs-video-archive-lead {
    margin: 0;
    line-height: 1.8;
}

.happyell-video-archive-page .hvs-video-category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 24px;
    padding: 0 0 8px;
    scrollbar-width: thin;
}

.happyell-video-archive-page .hvs-video-category-nav a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.3;
}

.happyell-video-archive-page .hvs-video-category-nav a.is-current {
    color: #fff;
    background: #333;
    border-color: #333;
}

.happyell-video-archive-page .hvs-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 20px;
}

.happyell-video-archive-page .hvs-video-card,
.happyell-video-archive-page .hvs-video-card__link,
.happyell-video-archive-page .hvs-video-card__body {
    min-width: 0;
}

.happyell-video-archive-page .hvs-video-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.happyell-video-archive-page .hvs-video-card__thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
}

.happyell-video-archive-page .hvs-video-card__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.happyell-video-archive-page .hvs-video-card__link:hover .hvs-video-card__thumb {
    transform: scale(1.025);
}

.happyell-video-archive-page .hvs-video-card__duration {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 3px 6px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    border-radius: 4px;
    font-size: .78rem;
    line-height: 1.2;
}

.happyell-video-archive-page .hvs-video-card__body {
    display: block;
    padding-top: 10px;
}

.happyell-video-archive-page .hvs-video-card__category {
    display: block;
    margin-bottom: 5px;
    font-size: .78rem;
    line-height: 1.4;
    opacity: .72;
}

.happyell-video-archive-page .hvs-video-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3em;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.happyell-video-archive-page .hvs-video-card__date {
    display: block;
    margin-top: 7px;
    font-size: .8rem;
    opacity: .68;
}

.happyell-video-archive-page .hvs-video-pagination {
    margin-top: 36px;
}

.happyell-video-archive-page .hvs-video-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.happyell-video-archive-page .hvs-video-pagination a,
.happyell-video-archive-page .hvs-video-pagination .current {
    display: grid;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 10px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    text-decoration: none;
}

.happyell-video-archive-page .hvs-video-pagination .current {
    color: #fff;
    background: #333;
    border-color: #333;
}

.happyell-video-archive-page .hvs-video-empty {
    padding: 30px 0;
}

@media (max-width: 800px) {
    .happyell-video-archive-page .hvs-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .happyell-video-archive-page .hvs-video-archive-main {
        width: min(100% - 24px, 1120px);
        margin-top: 20px;
    }

    .happyell-video-archive-page .hvs-video-grid {
        gap: 22px 12px;
    }

    .happyell-video-archive-page .hvs-video-card__title {
        font-size: .94rem;
    }
}

/* 1.5.0: breadcrumb, article categories, latest videos and pagination hardening. */
.happyell-video-page .hvs-video-breadcrumb {
    margin: 0 0 20px;
    font-size: .86rem;
}

.happyell-video-page .hvs-video-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.happyell-video-page .hvs-video-breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.happyell-video-page .hvs-video-breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    opacity: .55;
}

.happyell-video-page .hvs-video-breadcrumb a,
.happyell-video-page .hvs-video-category-link {
    text-decoration: none;
}

.happyell-video-page .hvs-video-category-link {
    padding: 4px 9px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .82rem;
    line-height: 1.3;
}

.happyell-video-page .hvs-video-article-categories,
.happyell-video-page .hvs-video-latest {
    margin-top: 32px;
}

.happyell-video-page .hvs-video-article-categories h2,
.happyell-video-page .hvs-video-latest h2 {
    margin: 0 0 14px;
}

.happyell-video-page .hvs-video-article-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.happyell-video-page .hvs-video-article-category-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 9px 13px;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
}

.happyell-video-page .hvs-video-related--fallback p {
    margin: 0 0 12px;
    line-height: 1.8;
}

.happyell-video-page .hvs-video-latest__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.happyell-video-page .hvs-video-latest__header h2 {
    margin: 0;
}

.happyell-video-page .hvs-video-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.happyell-video-page .hvs-video-latest-card,
.happyell-video-page .hvs-video-latest-card a {
    min-width: 0;
}

.happyell-video-page .hvs-video-latest-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.happyell-video-page .hvs-video-latest-card__thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
}

.happyell-video-page .hvs-video-latest-card__thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.happyell-video-page .hvs-video-latest-card__duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 3px 6px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    border-radius: 4px;
    font-size: .75rem;
}

.happyell-video-page .hvs-video-latest-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.happyell-video-page .hvs-video-latest-card.is-mobile-only {
    display: none;
}

.happyell-video-archive-page .hvs-video-pagination > ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.happyell-video-archive-page .hvs-video-pagination > ul.page-numbers > li {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.happyell-video-archive-page .hvs-video-pagination > ul.page-numbers > li > .page-numbers {
    display: grid !important;
    width: auto !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    place-items: center !important;
}

@media (max-width: 800px) {
    .happyell-video-page .hvs-video-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .happyell-video-page .hvs-video-latest-card.is-mobile-only {
        display: block;
    }
}


/* 1.6.0: video pages use the article header, hide the PC ad rail and improve navigation. */
body.happyell-video-page .happyell-pc-ad-rail,
body.happyell-video-archive-page .happyell-pc-ad-rail {
    display: none !important;
}

.happyell-video-page .happyell-page-tools,
.happyell-video-archive-page .happyell-page-tools {
    width: 100%;
    max-width: 980px;
    margin-bottom: 14px;
}

.happyell-video-archive-page .hvs-video-archive-main {
    max-width: 1120px;
}

.happyell-video-page .hvs-video-mapped-article-category,
.happyell-video-archive-page .hvs-video-archive-article-link {
    margin: 10px 0 0;
}

.happyell-video-page .hvs-video-mapped-article-category a,
.happyell-video-archive-page .hvs-video-archive-article-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #eadde2;
    border-radius: 999px;
    color: #6e203c;
    background: #fff8fb;
    text-decoration: none;
}

.happyell-video-page .hvs-video-youtube-link {
    margin: 10px 0 0;
}

.happyell-video-page .hvs-video-youtube-link a {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 11px 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.happyell-video-page .hvs-video-youtube-link__prefix {
    flex: 0 0 auto;
    margin-right: 7px;
    font-weight: 700;
}

.happyell-video-page .hvs-video-youtube-link__title {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hvs-search-videos {
    margin: 0 0 24px;
    padding: 14px;
    border: 1px solid #ffd3df;
    border-radius: 18px;
    background: #fff8fb;
}

.hvs-search-videos__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hvs-search-videos__header h2 {
    margin: 0;
    font-size: 20px;
}

.hvs-search-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hvs-search-video-card,
.hvs-search-video-card a {
    min-width: 0;
}

.hvs-search-video-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hvs-search-video-card__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #111;
}

.hvs-search-video-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hvs-search-video-card__thumb > span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    font-size: 11px;
}

.hvs-search-video-card__body {
    display: block;
    padding-top: 7px;
}

.hvs-search-video-card__type {
    display: block;
    margin-bottom: 4px;
    color: #ff3366;
    font-size: 12px;
    font-weight: 800;
}

.hvs-search-video-card__title {
    display: -webkit-box;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 700px) {
    .hvs-search-videos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.hvs-article-video-link{margin:.45em 0 1.2em;font-size:.95em;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hvs-article-video-link a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hvs-article-related{margin:32px 0}.hvs-article-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hvs-article-related__card a{display:block;color:inherit;text-decoration:none}.hvs-article-related__thumb{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#eee}.hvs-article-related__thumb img{width:100%;height:100%;object-fit:cover}.hvs-article-related__thumb>span{position:absolute;right:5px;bottom:5px;background:rgba(0,0,0,.78);color:#fff;font-size:12px;padding:2px 5px}.hvs-article-related__title{display:-webkit-box;margin-top:7px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.hvs-category-video-link{margin:16px 0 24px}.hvs-category-video-link .q_button{display:inline-block;margin:0}@media(max-width:767px){.hvs-article-related__grid{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x proximity}.hvs-article-related__card{flex:0 0 76%;scroll-snap-align:start}}

/* Search results: reuse the theme's happyell-search-card layout. */
.hvs-search-videos__results {
    margin-top: 12px;
}
.happyell-search-card--video .happyell-search-card__type,
.happyell-search-card--video .happyell-search-card__button {
    background: #ff3366;
}
