.affcore-frontend-home,
.affcore-frontend-main {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.affcore-frontend-home *,
.affcore-frontend-main * { box-sizing: border-box; }
.affcore-home-content-block,
.affcore-home-intro,
.affcore-home-free-content,
.affcore-home-section,
.affcore-archive-header { margin: 0 0 36px; }
.affcore-section-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.35;
}
.affcore-archive-title {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.35;
}
.affcore-home-content-block__text {
    color: var(--affcore-content-text-color, #333);
    font-size: var(--affcore-content-font-size, 16px);
    line-height: var(--affcore-content-line-height, 1.55);
}
.affcore-home-content-block__text p {
    margin-top: 0 !important;
    margin-bottom: var(--affcore-content-paragraph-spacing, 8px) !important;
    line-height: inherit !important;
}
.affcore-home-content-block__text p:last-child {
    margin-bottom: 0 !important;
}
.affcore-home-content-block__text ul,
.affcore-home-content-block__text ol {
    margin-top: 0 !important;
    margin-bottom: var(--affcore-content-paragraph-spacing, 8px) !important;
    line-height: inherit !important;
}
.affcore-home-content-block__text li {
    line-height: inherit !important;
}
.affcore-archive-description { line-height: 1.85; }
.affcore-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--affcore-columns-pc, 4), minmax(0, 1fr));
    gap: 22px;
}
.affcore-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(127,127,127,.24);
    border-radius: 10px;
    background: var(--affcore-card-bg, transparent);
    box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.affcore-product-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(127,127,127,.12);
}
.affcore-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.affcore-product-card__image-link:hover .affcore-product-card__image { transform: scale(1.025); }
.affcore-product-card__duration {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: calc(100% - 14px);
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    background: rgba(0,0,0,.78);
    box-shadow: 0 1px 4px rgba(0,0,0,.28);
    color: #fff !important;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .01em;
    text-decoration: none !important;
    white-space: nowrap;
}
.affcore-product-card__image--empty {
    display: grid;
    place-items: center;
    color: rgba(127,127,127,.75);
    font-size: .85rem;
    letter-spacing: .06em;
}
.affcore-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px 12px 12px;
}
/* Cocoonなどのテーマがh3へ付ける背景・枠・余白を動画カード内では無効化します。 */
.affcore-product-card .affcore-product-card__title {
    display: block !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}
.affcore-product-card .affcore-product-card__title::before,
.affcore-product-card .affcore-product-card__title::after {
    display: none !important;
    content: none !important;
}
.affcore-product-card__title a {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    text-decoration: none !important;
}
.affcore-product-card__title a:hover { text-decoration: underline !important; }
/* 商品情報は列数に関係なく、項目名を残したままコンパクトに全文表示します。 */
.affcore-product-card__meta {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: .78rem;
    line-height: 1.25;
}
.affcore-product-card__meta-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    min-width: 0;
    margin: 0 0 1px;
    padding: 0;
    border: 0;
    column-gap: .18em;
}
.affcore-product-card__meta-label,
.affcore-product-card__meta-value {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    line-height: inherit;
}
.affcore-product-card__meta-label {
    color: inherit;
    font-weight: 400;
    opacity: .72;
    white-space: nowrap;
}
.affcore-product-card__meta-value {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.affcore-product-card__meta-row--rating .affcore-product-card__meta-value {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}
.affcore-product-card__meta a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}
/* 動画タイトル・分類リンクなどはカード本文色を維持し、リンク色だらけになることを防ぎます。 */
.affcore-product-card__meta a:not(.affcore-product-card__affiliate-text-link) {
    color: inherit;
}
/* 配信品番と評価件数のアフィリエイトリンクは、色をテーマ／スキンへ委ね、下線だけを保証します。 */
.affcore-product-card__meta .affcore-product-card__affiliate-text-link {
    font-weight: inherit !important;
    text-decoration-line: underline !important;
    text-decoration-color: currentColor !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}
.affcore-product-card__meta .affcore-product-card__affiliate-text-link:hover,
.affcore-product-card__meta .affcore-product-card__affiliate-text-link:focus {
    text-decoration-thickness: 2px !important;
}
.affcore-product-card__meta .affcore-product-card__affiliate-text-link:focus-visible {
    border-radius: 2px;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
/* 評価値は数字ではなく、半星対応の5段階スターで表示します。 */
.affcore-product-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-right: 2px;
    vertical-align: -0.08em;
    white-space: nowrap;
}
.affcore-product-card__star {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    overflow: hidden;
    line-height: 1;
}
.affcore-product-card__star::before,
.affcore-product-card__star::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "★";
    font-size: 1em;
    line-height: 1;
}
.affcore-product-card__star::before { color: rgba(127,127,127,.28); }
.affcore-product-card__star::after {
    width: 0;
    overflow: hidden;
    color: #f5b800;
    white-space: nowrap;
}
.affcore-product-card__star.is-full::after { width: 100%; }
.affcore-product-card__star.is-half::after { width: 50%; }
.affcore-product-card__rating-count {
    font-size: .94em;
    white-space: nowrap;
}
.affcore-product-card__button {
    display: block;
    margin-top: auto;
    padding: 9px 8px;
    border: 1px solid var(--affcore-card-button-border, #b32d2e) !important;
    border-radius: 6px;
    background: var(--affcore-card-button-bg, #d63638) !important;
    color: var(--affcore-card-button-text, #fff) !important;
    text-align: center;
    text-decoration: none !important;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.affcore-product-card__button:hover,
.affcore-product-card__button:focus {
    background: var(--affcore-card-button-hover-bg, #b32d2e) !important;
    color: var(--affcore-card-button-hover-text, #fff) !important;
    text-decoration: none !important;
}
.affcore-product-card__button:focus-visible {
    outline: 3px solid rgba(34,113,177,.35);
    outline-offset: 2px;
}
.affcore-product-card__button--tachiyomi {
    margin-top: 8px;
}
.affcore-taxonomy-directory {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.affcore-taxonomy-directory li { flex: 0 0 auto; max-width: 100%; margin: 0; }
.affcore-taxonomy-directory a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    gap: 4px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid rgba(127,127,127,.24);
    border-radius: 6px;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
}
.affcore-taxonomy-directory a:hover { background: rgba(127,127,127,.08); }
.affcore-taxonomy-directory__name { min-width: 0; overflow-wrap: anywhere; }
.affcore-taxonomy-directory__count {
    flex: 0 0 auto;
    min-width: 1.8em;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(127,127,127,.11);
    text-align: center;
    font-size: .72rem;
}
.affcore-frontend-main { padding-top: 28px; padding-bottom: 48px; }
.affcore-archive-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.affcore-archive-count { margin: 0; }
.affcore-archive-sort { display: flex; align-items: center; gap: 8px; }
.affcore-archive-sort select { min-height: 38px; }
.affcore-pagination {
    display: block !important;
    clear: both;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 34px 0 24px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    line-height: normal !important;
}
/* Cocoonなどテーマ側のページ送りCSSを、このプラグインの範囲だけリセットします。 */
.affcore-pagination ul.page-numbers {
    display: flex !important;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    line-height: normal !important;
    box-sizing: border-box;
    list-style: none !important;
}
.affcore-pagination ul.page-numbers::before,
.affcore-pagination ul.page-numbers::after {
    display: none !important;
    content: none !important;
}
.affcore-pagination ul.page-numbers > li {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
}
.affcore-pagination ul.page-numbers > li > .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    float: none !important;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 36px;
    max-width: 100%;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 5px;
    color: inherit;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none;
    vertical-align: middle !important;
    white-space: nowrap;
    box-shadow: none !important;
}
.affcore-pagination ul.page-numbers > li > .current {
    background: #202124;
    color: #fff;
    border-color: #202124;
}
.affcore-pagination ul.page-numbers > li > .dots {
    min-width: 28px;
    padding-right: 4px;
    padding-left: 4px;
    border-color: transparent;
    background: transparent;
}
.affcore-empty-message { padding: 20px; border: 1px solid rgba(127,127,127,.22); border-radius: 7px; }
/* カード列数は本文コンテナ幅ではなく、画面幅のmedia queryだけで切り替えます。 */
@media (max-width: 900px) {
    .affcore-product-grid { grid-template-columns: repeat(var(--affcore-columns-tablet, 3), minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
    .affcore-pagination ul.page-numbers { gap: 5px; }
    .affcore-pagination ul.page-numbers > li > .page-numbers {
        min-width: 34px;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 8px !important;
    }
    .affcore-frontend-home,
    .affcore-frontend-main { width: min(100% - 20px, 1180px); }
    .affcore-product-grid { grid-template-columns: repeat(var(--affcore-columns-mobile, 2), minmax(0, 1fr)); gap: 10px; }
    .affcore-product-card__body { padding: 9px; }
    .affcore-product-card .affcore-product-card__title { font-size: .82rem !important; line-height: 1.32 !important; }
    .affcore-product-card__meta { font-size: .72rem; line-height: 1.28; }
    .affcore-product-card__meta-row { margin-bottom: 1px; }
    .affcore-product-card__button { padding: 8px 5px; font-size: .76rem; }
    .affcore-taxonomy-directory { gap: 6px; }
    .affcore-taxonomy-directory a { min-height: 34px; padding: 5px 7px; font-size: 14px; }
    .affcore-archive-tools { align-items: flex-start; flex-direction: column; }
}

/* 動画記事末尾の関連記事。動画カード設定を共通利用し、取得件数だけをHTMLへ出力します。 */
.affcore-related-products {
    margin: 48px 0 20px;
}
.affcore-related-products * { box-sizing: border-box; }
.affcore-related-products__title { margin-bottom: 14px; }
.affcore-related-products__more {
    margin: 22px 0 0;
    text-align: center;
}
.affcore-related-products__more-link {
    display: inline-block;
    padding: 7px 2px;
    color: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration-line: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.affcore-related-products__more-link:hover,
.affcore-related-products__more-link:focus {
    text-decoration-thickness: 2px;
}
.affcore-related-products__more-link:focus-visible {
    border-radius: 3px;
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
/* Frontend関連記事を使用するときだけ、Cocoon標準の関連記事を動画記事で非表示にします。 */
body.affcore-frontend-hide-theme-related.single-affcore_item #related-entries {
    display: none !important;
}
@media (max-width: 600px) {
    .affcore-related-products { margin-top: 38px; }
    .affcore-related-products__more { margin-top: 18px; }
}

/* サイドバー用動画ランキング：全幅カード、コンパクト、上位強調 */
.affcore-video-ranking {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.affcore-video-ranking__item {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(127,127,127,.22);
}
.affcore-video-ranking__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.affcore-video-ranking__rank {
    z-index: 3;
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #646970;
    box-shadow: 0 1px 5px rgba(0,0,0,.32);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}
.affcore-video-ranking__rank--1 { background: #b78b00; }
.affcore-video-ranking__rank--2 { background: #7d8790; }
.affcore-video-ranking__rank--3 { background: #a45d2d; }
.affcore-video-ranking__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
    background: rgba(127,127,127,.12);
    line-height: 0;
}
.affcore-video-ranking__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .18s ease;
}
.affcore-video-ranking__image-link:hover .affcore-video-ranking__image { transform: scale(1.018); }
.affcore-video-ranking__image--empty {
    display: grid;
    min-height: 150px;
    place-items: center;
    color: rgba(127,127,127,.75);
    font-size: 12px;
    letter-spacing: .06em;
}
.affcore-video-ranking__duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,.8);
    box-shadow: 0 1px 4px rgba(0,0,0,.28);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}
.affcore-video-ranking__content { min-width: 0; }
.affcore-video-ranking__title {
    display: -webkit-box;
    overflow: hidden;
    color: inherit !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.affcore-video-ranking__title:hover,
.affcore-video-ranking__title:focus { text-decoration: underline !important; }
.affcore-video-ranking__rating {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
}
.affcore-video-ranking__rating .affcore-product-card__rating-count { opacity: .72; }

/* 大きなカード表示。順位は画像左上、収録時間は右下へ重ねます。 */
.affcore-video-ranking__item--featured .affcore-video-ranking__rank {
    position: absolute;
    top: 8px;
    left: 8px;
}
.affcore-video-ranking__item--featured .affcore-video-ranking__content {
    padding-top: 9px;
}
.affcore-video-ranking.no-image .affcore-video-ranking__item--featured .affcore-video-ranking__rank {
    position: static;
    margin: 0 8px 7px 0;
    vertical-align: middle;
}
.affcore-video-ranking.no-image .affcore-video-ranking__item--featured .affcore-video-ranking__content {
    padding-top: 0;
}
.affcore-video-ranking.no-rank .affcore-video-ranking__item--featured .affcore-video-ranking__rank { display: none; }

/* コンパクト表示。既存の横並びを残し、用途に応じて選択できます。 */
.affcore-video-ranking__item--compact {
    display: grid;
    grid-template-columns: 27px 96px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding-bottom: 10px;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__rank {
    width: 25px;
    height: 25px;
    box-shadow: none;
    font-size: 12px;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__image-link {
    aspect-ratio: 4 / 3;
    border-radius: 5px;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__image {
    height: 100%;
    object-fit: cover;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__image--empty {
    min-height: 0;
    height: 100%;
    font-size: 10px;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__duration {
    right: 4px;
    bottom: 4px;
    padding: 2px 5px;
    font-size: 10px;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__title {
    font-size: 13px;
    -webkit-line-clamp: 3;
}
.affcore-video-ranking__item--compact .affcore-video-ranking__rating {
    font-size: 11px;
}
.affcore-video-ranking.no-rank .affcore-video-ranking__item--compact {
    grid-template-columns: 96px minmax(0, 1fr);
}
.affcore-video-ranking.no-image .affcore-video-ranking__item--compact {
    grid-template-columns: 27px minmax(0, 1fr);
}
.affcore-video-ranking.no-rank.no-image .affcore-video-ranking__item--compact {
    grid-template-columns: minmax(0, 1fr);
}
.affcore-video-ranking-shortcode { margin: 0 0 28px; }
.affcore-video-ranking-shortcode__title { margin: 0 0 14px; }

/* 画像バナーと広告コード */
.affcore-ad-banner,
.affcore-ad-code {
    width: 100%;
    margin-top: var(--affcore-ad-margin-top, 0);
    margin-bottom: var(--affcore-ad-margin-bottom, 20px);
}
.affcore-ad-banner--align-left { text-align: left; }
.affcore-ad-banner--align-center { text-align: center; }
.affcore-ad-banner--align-right { text-align: right; }
.affcore-ad-banner__pr,
.affcore-ad-code__pr {
    margin: 0 0 4px;
    color: inherit;
    font-size: 10px;
    line-height: 1.3;
    opacity: .72;
}
.affcore-ad-banner__link,
.affcore-ad-banner__picture {
    display: inline-block;
    width: 100%;
    max-width: var(--affcore-ad-max-width, 100%);
    line-height: 0;
}
.affcore-ad-banner__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--affcore-ad-radius, 0);
}
.affcore-ad-banner__description {
    width: 100%;
    max-width: var(--affcore-ad-max-width, 100%);
    margin: 6px auto 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}
.affcore-ad-banner--align-left .affcore-ad-banner__description { margin-right: auto; margin-left: 0; }
.affcore-ad-banner--align-right .affcore-ad-banner__description { margin-right: 0; margin-left: auto; }
.affcore-ad-banner__description p { margin: 0 0 5px; }
.affcore-ad-banner__description p:last-child { margin-bottom: 0; }
.affcore-ad-code { overflow: hidden; }
.affcore-ad-code img,
.affcore-ad-code iframe { max-width: 100%; }

/* 動画絞り込み検索 */
.affcore-home-section--search {
    margin-bottom: 28px;
}
.affcore-video-search__description {
    margin: -4px 0 14px;
    color: inherit;
    font-size: .94em;
    line-height: 1.6;
    opacity: .82;
}
.affcore-video-search {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: 8px;
    background: rgba(127, 127, 127, .055);
}
.affcore-video-search__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
}
.affcore-video-search__field {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    gap: 5px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
.affcore-video-search__field input[type="text"],
.affcore-video-search__field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid rgba(127, 127, 127, .45);
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
    font-weight: 400;
    line-height: 1.35;
}
.affcore-video-search__field input[type="text"]:focus,
.affcore-video-search__field select:focus {
    border-color: currentColor;
    outline: 2px solid rgba(34, 113, 177, .28);
    outline-offset: 1px;
}
.affcore-video-search__help {
    display: block;
    margin: 0;
    color: inherit;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    opacity: .72;
}
.affcore-video-search__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
}
.affcore-video-search__submit {
    min-width: 150px;
    min-height: 42px;
    padding: 8px 20px;
    border: 1px solid var(--affcore-search-button-border, #b32d2e);
    border-radius: 6px;
    background: var(--affcore-search-button-bg, #d63638);
    color: var(--affcore-search-button-color, #fff);
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.affcore-video-search__submit:hover,
.affcore-video-search__submit:focus {
    background: var(--affcore-search-button-hover-bg, #b32d2e);
    color: var(--affcore-search-button-hover-color, #fff);
}
.affcore-video-search__reset {
    color: inherit;
    font-size: 13px;
    text-decoration: underline;
}
.affcore-video-search-autocomplete {
    position: relative;
    display: block;
}
.affcore-video-search-autocomplete__list {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    max-height: 260px;
    overflow: auto;
    border: 1px solid #8c8f94;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    color: #1d2327;
}
.affcore-video-search-autocomplete__option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #e2e4e7;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
.affcore-video-search-autocomplete__option:last-child { border-bottom: 0; }
.affcore-video-search-autocomplete__option:hover,
.affcore-video-search-autocomplete__option:focus {
    background: #f0f6fc;
    outline: none;
}
.affcore-video-search-autocomplete__empty {
    display: block;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 400;
}
.affcore-video-search-results__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 15px;
}
.affcore-video-search-results__summary p { margin: 0; }

@media (max-width: 900px) {
    .affcore-video-search__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .affcore-video-search { padding: 13px; }
    .affcore-video-search__fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .affcore-video-search__actions { align-items: stretch; flex-direction: column; }
    .affcore-video-search__submit { width: 100%; }
    .affcore-video-search-results__summary { align-items: flex-start; flex-direction: column; }
}

.affiliate-content-taxonomy-widget__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.affiliate-content-taxonomy-widget__item + .affiliate-content-taxonomy-widget__item {
    margin-top: .4em;
}
.affiliate-content-taxonomy-widget__count {
    margin-inline-start: .15em;
}
