/* Updated channels preview on the home sidebar. */
.updated-channels-list > li.updated-channel-item {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    min-width: 0;
    padding-bottom: 14px;
}

.updated-channels-list > li.updated-channel-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.updated-channel-item__avatar {
    border-radius: 50%;
    flex: 0 0 42px;
    height: 42px;
    margin: 0;
    overflow: hidden;
    width: 42px;
}

.updated-channel-item__avatar a,
.updated-channel-item__avatar img {
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.updated-channel-item__avatar img {
    object-fit: cover;
}

.updated-channel-item__meta {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    top: 0;
    width: auto;
}

.updated-channel-item__meta > h6 {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 4px;
    min-width: 0;
}

.updated-channel-item__meta > h6 > a {
    color: #535165;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.updated-channel-item__meta > h6 > a:hover,
.updated-channel-item__meta > h6 > a:focus-visible {
    color: #fa6342;
}

.updated-channel-item__details {
    align-items: center;
    color: #8a91a3;
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    gap: 3px 10px;
    line-height: 1.6;
    min-width: 0;
}

.updated-channel-item__details > span,
.updated-channel-item__details > time {
    align-items: center;
    display: inline-flex;
    float: none;
    gap: 4px;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
}

.updated-channel-item__details i {
    color: #fa6342;
    font-size: 10px;
    margin: 0;
}

.sidebar .widget .updated-channel-item__details i {
    margin: 0;
}

.updated-channels-list > li.updated-channels-list__empty {
    align-items: center;
    color: #8a91a3;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 7px;
    justify-content: center;
    line-height: 1.7;
    margin: 0;
    padding: 12px 8px 4px;
    text-align: center;
}

.updated-channels-list__empty i {
    color: #fa6342;
    font-size: 20px;
}

.sidebar .widget .updated-channels-list__empty i {
    margin: 0;
}

/* Full updated-channel listing. */
.updated-channels-page {
    --updated-channel-accent: #fa6342;
    --updated-channel-accent-dark: #df4d2f;
    --updated-channel-ink: #2f405f;
    --updated-channel-muted: #75819a;
    --updated-channel-border: #e2e8f1;
    background:
        radial-gradient(circle at 8% -8%, rgba(250, 99, 66, .14), transparent 29%),
        radial-gradient(circle at 96% 12%, rgba(81, 128, 255, .10), transparent 25%),
        linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
    min-height: calc(100vh - 110px);
    overflow: hidden;
    padding-block: clamp(22px, 4vw, 48px) clamp(34px, 5vw, 64px);
    position: relative;
}

html[dir="rtl"] .updated-channels-page,
html[dir="rtl"] .updated-channels-page__heading-copy,
html[dir="rtl"] .updated-channel-card__body,
html[dir="rtl"] .updated-channels-page__summary {
    text-align: right;
}

html[dir="ltr"] .updated-channels-page,
html[dir="ltr"] .updated-channels-page__heading-copy,
html[dir="ltr"] .updated-channel-card__body,
html[dir="ltr"] .updated-channels-page__summary {
    text-align: left;
}

.updated-channels-page::before {
    border: 1px solid rgba(250, 99, 66, .12);
    border-radius: 50%;
    content: "";
    height: 280px;
    inset-block-start: -170px;
    inset-inline-end: 7%;
    pointer-events: none;
    position: absolute;
    width: 280px;
}

.updated-channels-page > .container {
    position: relative;
    z-index: 1;
}

.updated-channels-page__shell {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(218, 226, 237, .92);
    border-radius: 24px;
    box-shadow: 0 18px 54px rgba(46, 64, 95, .10);
    margin: 0 auto;
    max-width: 1120px;
    overflow: hidden;
    padding: clamp(22px, 3.2vw, 38px);
}

.updated-channels-page__header {
    align-items: start;
    border-bottom: 1px solid #e7edf5;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-block-end: 28px;
    padding-block-end: 26px;
}

.updated-channels-page__heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.updated-channels-page__heading-icon {
    align-items: center;
    background: linear-gradient(145deg, #ff7d5f 0%, var(--updated-channel-accent) 100%);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(250, 99, 66, .22);
    color: #fff;
    display: inline-flex;
    flex: 0 0 54px;
    font-size: 22px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.updated-channels-page__heading-copy {
    min-width: 0;
}

.updated-channels-page__eyebrow {
    align-items: center;
    background: #fff4f0;
    border: 1px solid #ffe0d7;
    border-radius: 999px;
    color: var(--updated-channel-accent-dark);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    margin-block-end: 10px;
    padding-block: 5px;
    padding-inline: 10px;
}

.updated-channels-page__header h1 {
    color: var(--updated-channel-ink);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.45;
    margin: 0;
    text-align: inherit;
}

.updated-channels-page__header p {
    color: var(--updated-channel-muted);
    font-size: 13px;
    line-height: 1.9;
    margin-block: 8px 0;
    max-width: 62ch;
    text-align: inherit;
}

.updated-channels-page__home-link {
    align-items: center;
    align-self: start;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(46, 64, 95, .06);
    color: var(--updated-channel-accent);
    display: inline-flex;
    font-size: 12px;
    gap: 8px;
    justify-self: end;
    line-height: 1.5;
    padding-block: 10px;
    padding-inline: 14px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
    white-space: nowrap;
}

.updated-channels-page__home-link:hover,
.updated-channels-page__home-link:focus-visible {
    background: #fff5f1;
    border-color: #ffc9bc;
    box-shadow: 0 8px 18px rgba(250, 99, 66, .13);
    color: var(--updated-channel-accent-dark);
}

.updated-channels-page__home-link:focus-visible,
.updated-channel-card__avatar:focus-visible,
.updated-channel-card__title a:focus-visible,
.updated-channels-pagination__button:focus-visible {
    outline: 3px solid rgba(250, 99, 66, .24);
    outline-offset: 3px;
}

.updated-channels-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.updated-channels-grid__item {
    display: flex;
    min-width: 0;
}

.updated-channel-card {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    border: 1px solid var(--updated-channel-border);
    border-radius: 18px;
    box-shadow: 0 5px 16px rgba(46, 64, 95, .035);
    display: flex;
    gap: 16px;
    min-height: 122px;
    min-width: 0;
    overflow: hidden;
    padding-block: 17px;
    padding-inline: 18px;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.updated-channel-card::before {
    background: var(--updated-channel-accent);
    content: "";
    inset-block: 0;
    inset-inline-start: 0;
    position: absolute;
    transform: scaleY(.28);
    transform-origin: center;
    transition: transform .18s ease;
    width: 3px;
}

.updated-channel-card:hover {
    border-color: rgba(250, 99, 66, .34);
    box-shadow: 0 13px 28px rgba(46, 64, 95, .10);
    transform: translateY(-3px);
}

.updated-channel-card:hover::before {
    transform: scaleY(1);
}

.updated-channel-card__avatar {
    align-items: center;
    background: linear-gradient(145deg, #fbd1c7 0%, #fff1ed 100%);
    border: 1px solid #ffe0d8;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 66px;
    height: 66px;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    transition: box-shadow .18s ease, transform .18s ease;
    width: 66px;
}

.updated-channel-card:hover .updated-channel-card__avatar {
    box-shadow: 0 0 0 4px rgba(250, 99, 66, .10);
    transform: scale(1.03);
}

.updated-channel-card__avatar img {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.updated-channel-card__body {
    align-self: stretch;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.updated-channel-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 10px;
    min-width: 0;
}

.updated-channel-card__title a {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--updated-channel-ink);
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color .18s ease;
}

.updated-channel-card__title a:hover,
.updated-channel-card__title a:focus-visible {
    color: var(--updated-channel-accent-dark);
}

.updated-channel-card__details {
    align-items: center;
    border-block-start: 1px solid #edf1f6;
    color: var(--updated-channel-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 7px;
    line-height: 1.5;
    padding-block-start: 9px;
}

.updated-channel-card__detail {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #edf1f6;
    border-radius: 999px;
    display: inline-flex;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding-block: 4px;
    padding-inline: 8px;
    white-space: nowrap;
}

.updated-channel-card__detail i {
    color: var(--updated-channel-accent);
    flex: 0 0 auto;
    font-size: 11px;
}

.updated-channels-page__footer {
    align-items: center;
    background: #f8fafd;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    justify-content: space-between;
    margin-block-start: 28px;
    padding-block: 13px;
    padding-inline: 16px;
}

.updated-channels-page__summary {
    align-items: center;
    color: var(--updated-channel-muted);
    display: inline-flex;
    flex: 1 1 230px;
    font-size: 12px;
    gap: 8px;
    line-height: 1.7;
    margin: 0;
    min-width: 0;
}

.updated-channels-page__summary i {
    color: var(--updated-channel-accent);
    flex: 0 0 auto;
}

.updated-channels-pagination {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.updated-channels-pagination__button {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    color: #66738f;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding-inline: 10px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.updated-channels-pagination__button:hover,
.updated-channels-pagination__button:focus-visible,
.updated-channels-pagination__button.is-active {
    background: var(--updated-channel-accent);
    border-color: var(--updated-channel-accent);
    color: #fff;
    transform: translateY(-1px);
}

.updated-channels-pagination__button.is-disabled {
    background: #f8fafd;
    color: #c3cad6;
    cursor: default;
    pointer-events: none;
}

.updated-channels-pagination__button i {
    font-size: 11px;
}

html[dir="ltr"] .updated-channels-page__home-link i,
html[dir="ltr"] .updated-channels-pagination__button i {
    transform: rotate(180deg);
}

.updated-channels-empty {
    align-items: center;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
    border: 1px dashed #d8e0ec;
    border-radius: 18px;
    color: var(--updated-channel-muted);
    display: flex;
    flex-direction: column;
    gap: 9px;
    justify-content: center;
    min-height: 240px;
    padding: 28px;
    text-align: center;
}

.updated-channels-empty > i {
    align-items: center;
    background: #fff1ed;
    border-radius: 50%;
    color: var(--updated-channel-accent);
    display: inline-flex;
    font-size: 24px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.updated-channels-empty strong {
    color: var(--updated-channel-ink);
    font-size: 16px;
}

.updated-channels-empty p {
    font-size: 12px;
    line-height: 1.9;
    margin: 0;
    max-width: 48ch;
}

@media (max-width: 991px) {
    .updated-channels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .updated-channels-page__shell {
        border-radius: 20px;
    }

    .updated-channels-page__header {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .updated-channels-page__home-link {
        align-self: flex-start;
        justify-self: auto;
    }

    .updated-channels-page__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .updated-channels-page__summary {
        flex-basis: auto;
    }

    .updated-channels-pagination {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .updated-channels-page {
        padding-block: 16px 30px;
    }

    .updated-channels-page__shell {
        border-radius: 17px;
        padding-block: 20px;
        padding-inline: 14px;
    }

    .updated-channels-page__heading {
        gap: 12px;
    }

    .updated-channels-page__heading-icon {
        border-radius: 14px;
        flex-basis: 46px;
        font-size: 18px;
        height: 46px;
        width: 46px;
    }

    .updated-channels-page__header h1 {
        font-size: 21px;
    }

    .updated-channels-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .updated-channel-card {
        min-height: 112px;
        padding-block: 15px;
        padding-inline: 14px;
    }

    .updated-channel-card__avatar {
        flex-basis: 58px;
        height: 58px;
        width: 58px;
    }

    .updated-channel-card__title {
        font-size: 14px;
        margin-block-end: 8px;
    }

    .updated-channel-card__details {
        gap: 5px;
        font-size: 10px;
        padding-block-start: 8px;
    }

    .updated-channel-card__detail {
        gap: 4px;
        padding-inline: 7px;
    }

    .updated-channels-pagination {
        gap: 5px;
    }

    .updated-channels-pagination__button {
        height: 34px;
        min-width: 34px;
        padding-inline: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .updated-channel-card,
    .updated-channel-card::before,
    .updated-channel-card__avatar,
    .updated-channels-page__home-link,
    .updated-channels-pagination__button {
        transition: none;
    }
}
