html {
    --hg-shell-max: 1180px;
    font-size: 16px !important;
    background: #1a140e;
}

body {
    margin: 0;
    background: #1a140e;
    color: #ded6c8;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.55;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hide {
    display: none !important;
}

.hg-page {
    min-height: 100vh;
    background: #1a140e;
}

.hg-shell {
    width: min(var(--hg-shell-max), calc(100% - 48px));
    margin: 0 auto;
}

.hg-header {
    position: sticky;
    top: 0;
    z-index: 4000;
    color: #f2f2f2;
    background: rgba(18, 18, 18, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.hg-header__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hg-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-width: 104px;
}

.hg-logo {
    max-width: 126px;
    max-height: 38px;
    object-fit: contain;
}

html.theme-black .hg-logo--dark,
html.theme-white .hg-logo--light,
html.theme-black .hg-auth__logo--dark,
html.theme-white .hg-auth__logo--light {
    display: none;
}

.hg-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hg-nav::-webkit-scrollbar {
    display: none;
}

.hg-nav__item {
    flex: 0 0 auto;
    height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #ddd5c7;
    font-size: 14px;
    border-radius: 2px;
}

.hg-nav__item:hover,
.hg-nav__item.is-current {
    color: #fff;
    background: #c98a2e;
}

.hg-search {
    flex: 0 0 250px;
    height: 34px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
}

.hg-search__input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 10px;
}

.hg-search__input::placeholder {
    color: #a6a6a6;
}

.hg-search__button {
    flex: 0 0 76px;
    height: 100%;
    border: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    background: #c98a2e;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.hg-search__icon {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.hg-search__icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -5px;
    bottom: -3px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.hg-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hg-action,
.hg-menu-toggle {
    min-width: 34px;
    height: 34px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ddd5c7;
    background: transparent;
    line-height: 1;
}

.hg-action--text {
    min-width: auto;
    gap: 4px;
    padding: 0 4px;
    font-size: 13px;
}

.hg-action__icon {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-block;
}

.hg-action__icon--rank {
    border: 2px solid currentColor;
    border-radius: 2px;
}

.hg-action__icon--rank::before,
.hg-action__icon--rank::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    background: currentColor;
}

.hg-action__icon--rank::before {
    top: 5px;
    box-shadow: 0 5px 0 currentColor;
}

.hg-action__icon--rank::after {
    top: 10px;
    opacity: .45;
}

.hg-action__icon--user {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.hg-action__icon--user::before,
.hg-action__icon--user::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: currentColor;
}

.hg-action__icon--user::before {
    top: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.hg-action__icon--user::after {
    bottom: 3px;
    width: 10px;
    height: 5px;
    border-radius: 8px 8px 2px 2px;
}

.hg-action__icon--sun {
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hg-action__icon--moon {
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 6px -4px 0 -1px currentColor;
    transform: rotate(-18deg);
}

.hg-action__icon--moon::before {
    content: "";
    position: absolute;
    right: 1px;
    top: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -6px 8px 0 -1px currentColor;
}

.hg-theme-toggle {
    width: 34px;
}

.hg-action:hover,
.hg-menu-toggle:hover {
    color: #eac568;
}

.hg-menu-toggle {
    display: none;
    position: relative;
    width: 36px;
}

.hg-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hg-mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #1f1f1f;
}

.hg-mobile-panel.is-open {
    display: block;
}

.hg-mobile-search {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
}

.hg-mobile-search input {
    min-width: 0;
    flex: 1;
    height: 36px;
    border: 1px solid #3a3a3a;
    color: #fff;
    background: #151515;
    padding: 0 10px;
}

.hg-mobile-search button {
    border: 0;
    padding: 0 14px;
    color: #fff;
    background: #c98a2e;
}

.hg-mobile-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 0 16px 14px;
}

.hg-mobile-links a {
    min-width: 0;
    padding: 9px 6px;
    text-align: center;
    background: #2b2b2b;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-focus {
    position: relative;
    min-height: 340px;
    height: clamp(340px, 26vw, 400px);
    overflow: hidden;
    background: #0c0c0c;
}

.hg-focus__slides,
.hg-focus__slide {
    position: absolute;
    inset: 0;
}

.hg-focus__slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .38s ease;
}

.hg-focus__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hg-focus__media,
.hg-focus__media .hg-poster {
    position: absolute;
    inset: 0;
}

.hg-focus__media .hg-poster {
    background-size: cover;
    background-position: center;
}

.hg-focus__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 12, 12, .92) 0%, rgba(12, 12, 12, .28) 38%, rgba(12, 12, 12, .86) 100%),
        linear-gradient(180deg, rgba(12, 12, 12, .08) 0%, rgba(12, 12, 12, .75) 100%);
}

.hg-focus__copy {
    position: relative;
    z-index: 2;
    width: min(var(--hg-shell-max), calc(100% - 48px));
    margin: 0 auto;
    padding-top: clamp(64px, 5.6vw, 84px);
    padding-right: 320px;
    display: none;
    pointer-events: none;
}

.hg-focus__copy.is-active {
    display: block;
}

.hg-focus__copy a,
.hg-focus__copy button {
    pointer-events: auto;
}

.hg-kicker {
    display: inline-flex;
    align-items: center;
    color: #eac568;
    font-size: 12px;
    font-weight: 700;
}

.hg-focus h1,
.hg-watch-card h1,
.hg-player-aside h1 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
}

.hg-focus p,
.hg-watch-card p {
    max-width: 460px;
    margin: 0 0 12px;
    color: #d2d2d2;
    font-size: 14px;
}

.hg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0 16px;
}

.hg-meta span,
.hg-meta strong {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    color: #d9d9d9;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 400;
}

.hg-meta strong {
    color: #eac568;
    font-weight: 800;
}

.hg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    font-weight: 700;
}

.hg-btn--primary {
    color: #fff;
    background: #c98a2e;
}

.hg-btn--primary:hover {
    background: #b5761f;
}

.hg-btn--ghost {
    color: #e8e8e8;
    border-color: #3e3e3e;
    background: #241c12;
}

.hg-focus__nav {
    position: absolute;
    z-index: 4;
    right: calc((100% - min(var(--hg-shell-max), calc(100% - 48px))) / 2);
    top: 48px;
    width: 270px;
    max-height: calc(100% - 80px);
    padding: 6px 10px;
    background: rgba(255, 255, 255, .72);
    color: #303030;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
}

.hg-focus__nav button,
.hg-channel-hero__nav button {
    width: 100%;
    border: 0;
    text-align: left;
    background: transparent;
    color: inherit;
    padding: 2px 8px;
    display: grid;
    gap: 1px;
    flex: 0 0 auto;
}

.hg-focus__nav button.is-active,
.hg-channel-hero__nav button.is-active {
    color: #fff;
    background: #c98a2e;
}

.hg-focus__nav span,
.hg-channel-hero__nav span {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-focus__nav em,
.hg-channel-hero__nav em {
    min-width: 0;
    font-size: 12px;
    font-style: normal;
    opacity: .78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-section {
    padding: 28px 0;
}

.hg-section__head {
    margin-bottom: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.hg-section__head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
}

.hg-section__head a,
.hg-text-link {
    color: #eac568;
    font-size: 13px;
}

.hg-tab-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hg-tab-nav::-webkit-scrollbar {
    display: none;
}

.hg-tab-nav button {
    flex: 0 0 auto;
    border: 0;
    padding: 7px 13px;
    color: #cfcfcf;
    background: #242424;
}

.hg-tab-nav button.is-active {
    color: #fff;
    background: #c98a2e;
}

.hg-tab-panel {
    display: none;
}

.hg-tab-panel.is-active {
    display: block;
}

.hg-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 12px;
}

.hg-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hg-grid--home-latest .hg-card:nth-child(n+19),
.hg-grid--home-compact .hg-card:nth-child(n+11),
.hg-grid--channel-all .hg-card:nth-child(n+49),
.hg-grid--channel-child .hg-card:nth-child(n+19),
.hg-grid--related .hg-card:nth-child(n+13),
.hg-home-rank li:nth-child(n+11) {
    display: none;
}

.hg-card {
    min-width: 0;
    padding: 6px 6px 0;
    border: 1px solid rgba(201, 138, 46, .22);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(201, 138, 46, .07), rgba(201, 138, 46, .02) 38%, transparent 62%);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hg-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #241c12;
    border-radius: 3px;
}

/* 走马灯灯泡顶带 */
.hg-card__poster::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: radial-gradient(circle at 6px 4px, #eac568 1.6px, rgba(234, 197, 104, .22) 2.4px, transparent 3px);
    background-size: 12px 8px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 0 2px rgba(234, 197, 104, .5));
}

.hg-poster {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hg-card__poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(26, 20, 14, 0), rgba(20, 13, 7, .86));
}

.hg-card__score,
.hg-card__tag {
    position: absolute;
    z-index: 2;
    font-size: 12px;
}

/* 鎏金印章角标 */
.hg-card__score {
    right: 6px;
    bottom: 6px;
    min-width: 30px;
    padding: 1px 6px;
    color: #241703;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(160deg, #eac568, #c98a2e);
    border: 1px solid rgba(255, 240, 205, .55);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* 票根副券：虚线撕裂分隔 */
.hg-card__tag {
    left: 6px;
    right: 46px;
    bottom: 6px;
    padding-top: 4px;
    border-top: 1px dashed rgba(234, 197, 104, .55);
    color: #e8d9b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-card__body {
    padding: 8px 2px 4px;
    border-top: 1px dashed rgba(201, 138, 46, .35);
    margin-top: 8px;
}

.hg-card__title {
    display: block;
    color: #f1efe8;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}

.hg-card__meta {
    margin: 2px 0 0;
    color: #978a72;
    font-size: 12px;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 悬停“点灯”：无位移无缩放，仅灯晕 */
.hg-card:hover {
    border-color: rgba(234, 197, 104, .6);
    box-shadow: 0 6px 24px rgba(201, 138, 46, .22), 0 0 0 1px rgba(234, 197, 104, .18) inset;
}

.hg-card:hover .hg-card__poster::before {
    background-image: radial-gradient(circle at 6px 4px, #f7dc9a 2px, rgba(247, 220, 154, .4) 2.8px, transparent 3.4px);
    filter: drop-shadow(0 0 4px rgba(247, 220, 154, .85));
}

.hg-card:hover .hg-card__title {
    color: #eac568;
}

.hg-home-channel + .hg-home-channel {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.hg-home-channel__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
}

.hg-home-rank,
.hg-watch-side,
.hg-source,
.hg-filter,
.hg-channel-filter,
.hg-prose,
.hg-comment-shell {
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .07);
}

.hg-home-rank {
    padding: 14px;
}

.hg-home-rank h3,
.hg-watch-source h3,
.hg-watch-reco h3,
.hg-source h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 15px;
}

.hg-home-rank ol,
.hg-watch-reco ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.hg-home-rank li a {
    display: grid;
    grid-template-columns: 24px 58px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.hg-home-rank__text {
    min-width: 0;
}

.hg-home-rank li span,
.hg-watch-reco li span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #fff;
    background: #c98a2e;
    font-size: 12px;
    font-weight: 800;
}

.hg-rank-thumb {
    display: block;
    width: 58px;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.hg-home-rank strong,
.hg-home-rank em,
.hg-watch-reco strong,
.hg-watch-reco em {
    display: block;
    min-width: 0;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-home-rank strong,
.hg-watch-reco strong {
    color: #e9e9e9;
    font-size: 13px;
}

.hg-home-rank em,
.hg-watch-reco em {
    color: #8d8d8d;
    font-size: 12px;
}

.hg-rank-page__tabs {
    padding-top: 28px;
}

.hg-rank-page__section-note {
    margin: 0;
    color: #b8b8b8;
    font-size: 14px;
}

.hg-rank-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hg-rank-page__card {
    min-width: 0;
    padding: 14px;
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .07);
}

.hg-rank-page__card-head {
    min-height: 42px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hg-rank-page__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #eac568;
    font-size: 12px;
}

.hg-rank-page__card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.hg-rank-page__feature {
    min-width: 0;
    min-height: 126px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 10px;
    color: inherit;
    background: #191919;
}

.hg-rank-page__feature-thumb {
    display: block;
    width: 92px;
    aspect-ratio: 2 / 3;
    background-color: #111;
    background-size: cover;
    background-position: center;
}

.hg-rank-page__feature-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hg-rank-page__feature-badge {
    align-self: flex-start;
    margin-bottom: 7px;
    padding: 3px 7px;
    color: #fff;
    background: #c98a2e;
    font-size: 12px;
    font-weight: 800;
}

.hg-rank-page__feature strong,
.hg-rank-page__item-body strong {
    display: block;
    min-width: 0;
    color: #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hg-rank-page__feature strong {
    font-size: 17px;
    line-height: 1.3;
}

.hg-rank-page__feature-meta {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #eac568;
    font-size: 12px;
}

.hg-rank-page__feature p {
    margin: 8px 0 0;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-rank-page__feature p span {
    margin-left: 6px;
    color: #7f7f7f;
}

.hg-rank-page__list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.hg-rank-page__list a {
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: 26px 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 6px;
    color: inherit;
    background: #241c12;
}

.hg-rank-page__list a:hover {
    background: #332a20;
}

.hg-rank-page__index {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #fff;
    background: #c98a2e;
    font-size: 12px;
    font-weight: 800;
}

.hg-rank-page__thumb {
    display: block;
    width: 58px;
    aspect-ratio: 2 / 3;
    background-color: #151515;
    background-size: cover;
    background-position: center top;
}

.hg-rank-page__item-body {
    min-width: 0;
}

.hg-rank-page__item-body em {
    display: block;
    min-width: 0;
    margin-top: 2px;
    color: #8d8d8d;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-channel-hero {
    padding: 12px 0;
    background: #191919;
}

.hg-channel-hero__inner {
    height: 260px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 0;
    background: #111;
}

.hg-channel-hero__slides {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.hg-channel-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.hg-channel-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hg-channel-hero__media,
.hg-channel-hero__media .hg-poster {
    position: absolute;
    inset: 0;
}

.hg-channel-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .2));
}

.hg-channel-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 440px;
    padding: 72px 28px 12px;
    display: none;
    pointer-events: none;
}

.hg-channel-hero__copy.is-active {
    display: block;
}

.hg-channel-hero__copy a,
.hg-channel-hero__copy button {
    pointer-events: auto;
}

.hg-channel-hero__copy h1 {
    margin: 7px 0;
    color: #fff;
    font-size: 22px;
}

.hg-channel-hero__copy p {
    margin: 0;
    color: #cfcfcf;
    font-size: 13px;
}

.hg-channel-hero__nav {
    padding: 6px 10px;
    color: #2a2a2a;
    background: rgba(255, 255, 255, .72);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

.hg-channel-strip {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    padding: 0 0 14px;
    scrollbar-width: none;
    margin-top: 10px;
}

.hg-channel-strip::-webkit-scrollbar {
    display: none;
}

.hg-channel-strip a {
    flex: 0 0 auto;
    padding: 8px 13px;
    color: #ddd;
    background: #2a2a2a;
}

.hg-channel-strip a.is-current {
    color: #fff;
    background: #c98a2e;
}

.hg-channel-filter-toggle {
    display: none;
}

.hg-channel-filter {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 24px;
}

.hg-channel-filter__col {
    min-width: 0;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.hg-channel-filter__col strong {
    display: block;
    margin-bottom: 8px;
    color: #eac568;
    font-size: 13px;
}

.hg-channel-filter nav {
    max-height: var(--hg-filter-collapsed-height, 132px);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.hg-channel-filter nav.is-expanded {
    max-height: none;
}

.hg-channel-filter nav a,
.hg-channel-filter__more {
    border: 0;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    color: #cfcfcf;
    background: #2c2c2c;
    font-size: 12px;
    line-height: 1.55;
}

.hg-channel-filter nav a.is-current,
.hg-channel-filter nav a:hover {
    color: #fff;
    background: #c98a2e;
}

.hg-channel-filter__more {
    color: #eac568;
}

.hg-channel-filter nav:not(.is-expanded) a.is-collapsed-hidden {
    display: none;
}

.hg-channel-block + .hg-channel-block {
    margin-top: 28px;
}

.hg-watch-hero,
.hg-player-stage {
    padding: 16px 0 24px;
    background: #241b12;
}

.hg-watch-hero__grid,
.hg-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 10px;
    align-items: stretch;
}

.hg-watch-hero__grid {
    align-items: start;
}

.hg-watch-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    background: #151515;
}

.hg-watch-card__media {
    position: relative;
    aspect-ratio: 2 / 3;
    min-height: 0;
    overflow: hidden;
    background: #050505;
}

.hg-watch-card__media .hg-poster {
    position: absolute;
    inset: 0;
}

.hg-watch-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%);
}

.hg-watch-card__body {
    padding: 12px;
}

.hg-watch-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hg-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #8e8e8e;
    font-size: 13px;
}

.hg-detail-rating strong {
    color: #ff6a00;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.hg-detail-rating__divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .18);
}

.hg-detail-rating__stars {
    position: relative;
    display: inline-block;
    width: 105px;
    height: 22px;
    overflow: hidden;
    color: #555;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.hg-detail-rating__track,
.hg-detail-rating__fill {
    position: absolute;
    top: 0;
    left: 0;
}

.hg-detail-rating__track {
    color: #4a4a4a;
}

.hg-detail-rating__fill {
    width: var(--hg-score-percent, 0%);
    overflow: hidden;
    color: #ff9d1a;
}

.hg-detail-facts {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.hg-detail-facts div {
    min-width: 0;
}

.hg-detail-facts dt {
    margin: 0;
    color: #858585;
    font-size: 12px;
}

.hg-detail-facts dd {
    margin: 2px 0 0;
    color: #ddd;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hg-watch-side {
    min-width: 0;
    padding: 14px;
    background: #2f2f2f;
    overflow: hidden;
}

.hg-watch-side__head {
    min-height: 38px;
    margin: -14px -14px 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: #241c12;
    line-height: 1.15;
}

.hg-watch-side__head strong,
.hg-watch-side__head span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-watch-side__head strong {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 15px;
}

.hg-watch-side__head span {
    flex: 0 0 auto;
    margin-left: auto;
    color: #989898;
    font-size: 12px;
}

.hg-watch-source + .hg-watch-source,
.hg-watch-reco {
    margin-top: 8px;
}

.hg-episode-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hg-episode-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 0 10px;
    color: #ded6c8;
    background: #303030;
}

.hg-episode-grid a:hover,
.hg-episode-grid li.is-active a {
    color: #fff;
    background: #c98a2e;
}

.hg-episode-grid--side {
    max-height: 112px;
    overflow: hidden;
}

.hg-watch-reco li a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 42px;
    gap: 9px;
    align-items: center;
    min-height: 63px;
}

.hg-watch-reco b {
    min-width: 0;
    display: block;
    font-weight: inherit;
    overflow: hidden;
}

.hg-watch-reco__thumb {
    display: block;
    width: 42px;
    aspect-ratio: 2 / 3;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
}

.hg-prose {
    padding: 18px;
    color: #cfcfcf;
}

.hg-prose p {
    margin: 0;
    line-height: 1.9;
}

.hg-play-sources {
    display: grid;
    gap: 12px;
}

.hg-source {
    padding: 16px;
}

.hg-player-box {
    aspect-ratio: 16 / 9;
    min-height: 365px;
    background: #050505;
    overflow: hidden;
}

.hg-player-box .VideoPlayer,
.hg-player-box iframe,
.hg-player-box video {
    width: 100% !important;
    height: 100% !important;
}

.hg-player-lock {
    min-height: 0;
    height: 100%;
    display: grid;
    place-items: center;
    color: #bbb;
}

.hg-player-aside {
    padding: 16px;
    color: #ded6c8;
    background: #2f2f2f;
}

.hg-player-aside p {
    margin: 0 0 12px;
    color: #eac568;
}

.hg-player-actions,
.hg-next-prev {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hg-player-actions a,
.hg-next-prev a {
    padding: 7px 10px;
    color: #ddd;
    background: #241c12;
}

.hg-next-prev {
    margin-top: 12px;
}

.hg-next-prev .is-disabled {
    opacity: .4;
    pointer-events: none;
}

.hg-filter {
    padding: 12px;
}

.hg-filter__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hg-filter__summary strong {
    color: #fff;
}

.hg-filter__summary div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hg-filter__summary span {
    color: #eac568;
    font-size: 12px;
}

.hg-filter__toggle,
.hg-filter__reset {
    margin-left: auto;
    border: 0;
    color: #fff;
    background: #c98a2e;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.hg-filter__reset {
    margin-left: 0;
    background: #333;
}

.hg-filter__body {
    display: none;
    gap: 8px;
}

.hg-filter.is-open .hg-filter__body {
    display: grid;
}

.hg-filter__row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.hg-filter__row > span {
    color: #eac568;
    font-size: 13px;
}

.hg-filter__row nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hg-filter__row a {
    padding: 4px 8px;
    color: #cfcfcf;
    background: #2b2b2b;
    font-size: 12px;
}

.hg-filter__row a.is-current,
.hg-filter__row a:hover {
    color: #fff;
    background: #c98a2e;
}

.hg-sortbar {
    margin: 14px 0 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ded6c8;
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .07);
}

.hg-sortbar div,
.hg-sortbar nav {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.hg-sortbar strong {
    color: #fff;
    font-size: 15px;
}

.hg-sortbar span {
    color: #8d8d8d;
    font-size: 13px;
}

.hg-sortbar nav {
    justify-content: flex-end;
}

.hg-sortbar nav a {
    padding: 5px 10px;
    color: #cfcfcf;
    background: #2b2b2b;
    font-size: 13px;
}

.hg-sortbar nav a.is-current,
.hg-sortbar nav a:hover {
    color: #fff;
    background: #c98a2e;
}

.hg-pagination {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.hg-pagination a {
    min-width: 34px;
    min-height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ddd5c7;
    background: #241c12;
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
}

.hg-pagination a.is-current,
.hg-pagination a:hover {
    color: #fff;
    background: #c98a2e;
    border-color: #c98a2e;
}

.hg-pagination a.is-disabled {
    opacity: .42;
    pointer-events: none;
}

.hg-footer {
    position: relative;
    margin-top: 32px;
    padding: 34px 0 26px;
    color: #999;
    background: #140f0a;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* 灯市招牌：灯泡串吊线 */
.hg-footer__wire {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: radial-gradient(circle at 10px 3px, #eac568 2px, rgba(234, 197, 104, .28) 3px, transparent 3.8px);
    background-size: 20px 10px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 1px 3px rgba(234, 197, 104, .45));
    pointer-events: none;
}

/* 居中招牌式堆叠 */
.hg-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.hg-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 6px 18px;
    border: 1px solid rgba(201, 138, 46, .4);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(201, 138, 46, .12), transparent);
}

.hg-footer__brand img {
    max-width: 120px;
    max-height: 34px;
}

.hg-footer__text {
    margin: 0;
    max-width: 720px;
    font-size: 13px;
}

/* 灯笼胶囊频道行 */
.hg-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: center;
}

.hg-footer__pill {
    padding: 3px 14px;
    color: #d8c9a8;
    font-size: 13px;
    background: rgba(201, 138, 46, .1);
    border: 1px solid rgba(201, 138, 46, .32);
    border-radius: 50px;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.hg-footer__links a:hover,
.hg-footer__pill:hover {
    color: #241703;
    background: #eac568;
    border-color: #eac568;
}

.hg-footer__meta {
    text-align: center;
    font-size: 12px;
}

.hg-footer__meta p {
    margin: 4px 0;
}

/* 回顶钮（纯锚点） */
.hg-footer__totop {
    position: absolute;
    right: 18px;
    bottom: 20px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #eac568;
    font-size: 16px;
    background: rgba(201, 138, 46, .12);
    border: 1px solid rgba(234, 197, 104, .45);
    border-radius: 50%;
    transition: color .18s ease, background .18s ease;
}

.hg-footer__totop:hover {
    color: #241703;
    background: #eac568;
}

.am-share,
.tplconfig_history_pop,
.hg-qrcode-buffer {
    display: none;
}

.am-share {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 9200;
    width: min(520px, calc(100% - 28px));
    color: #e6e6e6;
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    transform: translate(-50%, calc(100% + 32px));
    transition: transform .24s ease, opacity .24s ease;
    opacity: 0;
}

.am-share.am-modal-active {
    display: block;
    transform: translate(-50%, 0);
    opacity: 1;
}

.am-share-url {
    padding: 14px 16px;
    background: #241b12;
}

.am-share-url .title_span,
.am-share-url .url_span {
    display: block;
}

.am-share-url .title_span {
    margin-bottom: 8px;
    color: #eac568;
    font-size: 13px;
}

.am-share-url .url_span {
    min-height: 36px;
    padding: 8px 10px;
    color: #ddd;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, .1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-share-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.am-share-footer .share_btn,
.am-share-footer .copy_btn {
    min-width: 0;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    background: #262626;
    cursor: pointer;
}

.am-share-footer .copy_btn {
    color: #fff;
    background: #c98a2e;
}

.tplconfig_history_pop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9100;
    padding: 68px 18px 18px;
    background: rgba(0, 0, 0, .56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.tplconfig_history_pop:has(.tplconfig_history_bg.hfixed),
.tplconfig_history_pop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tplconfig_history_bg {
    width: min(720px, 100%);
    max-height: min(640px, calc(100vh - 96px));
    margin: 0 auto;
    color: #ddd;
    background: #262017;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .36);
    overflow: hidden;
}

.tplconfig_history_title {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    color: #fff;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tplconfig_history_title .clean_history {
    order: 2;
    margin-left: auto;
    color: #eac568;
    font-size: 13px;
}

.tplconfig_history_title #close_history {
    order: 3;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    background: #2b2b2b;
}

.tplconfig_history_box {
    max-height: calc(min(640px, calc(100vh - 96px)) - 48px);
    overflow: auto;
}

#tplconfig_history {
    list-style: none;
    margin: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#tplconfig_history .vodlist_item {
    min-width: 0;
}

#tplconfig_history .vodlist_thumb {
    position: relative;
    aspect-ratio: 2 / 3;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
}

#tplconfig_history .pic_text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px 7px;
    color: #fff;
    font-size: 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
}

#tplconfig_history .vodlist_title {
    margin: 7px 0 0;
    color: #eee;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tplconfig_history .tplconfig_history_no,
.tplconfig_history_clear {
    grid-column: 1 / -1;
    min-height: 140px;
    display: grid;
    place-items: center;
    color: #999;
    text-align: center;
}

.hl_wrap,
.mac_pop_bg {
    position: fixed;
    inset: 0;
    z-index: 9300;
}

.mac_pop_bg {
    background: rgba(0, 0, 0, .58);
}

.hl_content,
.hl_content.hl_notice,
.mac_pop,
.mac_pop_msg {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9310;
    width: min(420px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    color: #ddd;
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .42);
    overflow: auto;
    transform: translate(-50%, -50%) scale(.96);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.hl_content.hl_show,
.hl_content.hl_notice.hl_show,
.mac_pop,
.mac_pop_msg {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.hl_content_hd,
.gonggao .hl_content_hd,
.mac_pop .pop_top {
    padding: 16px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hl_content_title,
.mac_pop .pop_top h2 {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.hl_content_bd,
.hl_notice .hl_content_bd,
.mac_pop .pop_content,
.mac_pop .pop-content,
.mac_pop_msg .pop-msg {
    padding: 16px 18px;
    color: #d4d4d4;
    text-align: left;
}

.hl_content_bd .info_img {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.hl_content_ft,
.mac_pop .pop-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.hl_content_ft a,
.mac_pop .pop-cancel,
.mac_pop .pop-ok {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #fff;
    background: #c98a2e;
}

.hl_content_ft .close_box,
.mac_pop .pop-cancel {
    color: #ddd;
    background: #333;
}

.mac_pop span.pop_close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
}

.mac_pop span.pop_close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.mac_pop:has(.hg-login-pop) {
    width: min(420px, calc(100% - 32px)) !important;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.mac_pop .hg-login-pop {
    margin: -4px -2px 0;
    color: #ded6c8;
}

.mac_pop .hg-login-pop .user-bg {
    padding: 0 !important;
}

.mac_pop .hg-login-pop .reg-w {
    width: 100%;
}

.mac_pop .hg-login-pop .reg-w form {
    display: grid;
    gap: 10px;
}

.mac_pop .hg-login-pop .reg-w form .reg-group {
    min-height: 42px;
    margin: 0 !important;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    background: #1b1b1b;
}

.mac_pop .hg-login-pop .reg-w form .reg-group label {
    width: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    color: #eac568;
    font-size: 13px;
    white-space: nowrap;
}

.mac_pop .hg-login-pop .reg-w form .reg-group .l-icon {
    flex: 0 0 auto;
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    opacity: .68;
    filter: grayscale(1) brightness(1.35);
}

.mac_pop .hg-login-pop .reg-w form .reg-group .reg-control {
    min-width: 0;
    width: 100% !important;
    height: 40px !important;
    padding: 0 !important;
    color: #f2f2f2;
    font-size: 14px !important;
    line-height: 40px !important;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
}

.mac_pop .hg-login-pop .reg-w form .reg-group .reg-control::placeholder {
    color: #777;
}

.mac_pop .hg-login-pop .reg-w form .reg-group .w150 {
    width: 55% !important;
}

.mac_pop .hg-login-pop .reg-w form .m-hi {
    flex: 0 0 auto;
    width: 96px !important;
    height: 34px !important;
    position: static !important;
    object-fit: cover;
    border: 0;
    color: #fff;
    background: #333;
}

.mac_pop .hg-login-pop .reg-w form input[type="button"].m-hi {
    padding: 0 8px;
    font-size: 12px;
    background: #363026;
}

.mac_pop .hg-login-pop .reg-w form .btn-brand.btn-sub {
    width: 100%;
    min-height: 42px;
    margin: 4px 0 2px !important;
    padding: 0 16px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 42px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #c98a2e !important;
}

.mac_pop .hg-login-pop .reg-w form .btn-brand.btn-sub:hover {
    background: #b5761f !important;
}

.mac_pop .hg-login-pop .reg-ts,
.mac_pop .hg-login-pop .reg-od,
.mac_pop .hg-login-pop .find-bt,
.mac_pop .hg-login-pop .reg-bt {
    margin-top: 10px;
    color: #aaa;
    font-size: 13px;
}

.mac_pop .hg-login-pop .reg-od {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0 !important;
}

.mac_pop .hg-login-pop .rega-fl,
.mac_pop .hg-login-pop .rega-fr {
    float: none !important;
    color: #aaa;
}

.mac_pop .hg-login-pop .reg-od span,
.mac_pop .hg-login-pop .find-bt span,
.mac_pop .hg-login-pop .reg-bt {
    color: #eac568 !important;
}

.mac_pop .hg-login-pop .reg-dl h5 {
    margin: 12px 0 8px !important;
    padding: 0 !important;
    color: #858585 !important;
    font-size: 12px !important;
    font-weight: 400;
}

.mac_pop .hg-login-pop .reg-dl ul {
    margin: 0;
    padding: 0;
}

.mac_pop .hg-login-pop .reg-dl li {
    margin: 0 6px !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.mac_pop.hg-pop--findpass {
    width: min(480px, calc(100% - 32px)) !important;
}

html.theme-white {
    background: #f4f5f1;
}

html.theme-white body,
html.theme-white .hg-page {
    background: #f4f5f1;
    color: #3a3026;
}

html.theme-white .hg-header {
    color: #262019;
    background: rgba(255, 255, 255, .94);
    border-bottom-color: rgba(46,36,21, .12);
}

html.theme-white .hg-nav__item {
    color: #332c22;
}

html.theme-white .hg-nav__item:hover,
html.theme-white .hg-nav__item.is-current {
    color: #fff;
    background: #c98a2e;
}

html.theme-white .hg-search {
    background: #fff;
    border-color: #dbd3c4;
}

html.theme-white .hg-search__input {
    color: #241b12;
}

html.theme-white .hg-search__input::placeholder {
    color: #817a6c;
}

html.theme-white .hg-action,
html.theme-white .hg-menu-toggle {
    color: #3d362b;
}

html.theme-white .hg-action:hover,
html.theme-white .hg-menu-toggle:hover {
    color: #c98a2e;
}

html.theme-white .hg-mobile-panel {
    background: #fff;
    border-top-color: #e3dac9;
}

html.theme-white .hg-mobile-search input {
    color: #241b12;
    background: #f6f7f4;
    border-color: #d8d0c2;
}

html.theme-white .hg-mobile-links a {
    color: #312a21;
    background: #f5efdf;
}

html.theme-white .hg-home-rank,
html.theme-white .hg-watch-side,
html.theme-white .hg-source,
html.theme-white .hg-filter,
html.theme-white .hg-sortbar,
html.theme-white .hg-channel-filter,
html.theme-white .hg-prose,
html.theme-white .hg-comment-shell,
html.theme-white .hg-empty,
html.theme-white .hg-unavailable,
html.theme-white .hg-box {
    color: #3a3026;
    background: #fff;
    border-color: #e8ddc8;
}

html.theme-white .hg-tab-nav button,
html.theme-white .hg-channel-strip a,
html.theme-white .hg-channel-filter nav a,
html.theme-white .hg-channel-filter__more,
html.theme-white .hg-filter__row a,
html.theme-white .hg-sortbar nav a,
html.theme-white .hg-pagination a,
html.theme-white .hg-episode-grid a,
html.theme-white .hg-player-actions a,
html.theme-white .hg-next-prev a {
    color: #3a3328;
    background: #f5efdf;
}

html.theme-white .hg-section__head h2,
html.theme-white .hg-home-rank h3,
html.theme-white .hg-watch-source h3,
html.theme-white .hg-watch-reco h3,
html.theme-white .hg-source h3,
html.theme-white .hg-filter__summary strong {
    color: #26201a;
}

html.theme-white .hg-card__meta,
html.theme-white .hg-sortbar span,
html.theme-white .hg-home-rank em,
html.theme-white .hg-watch-reco em,
html.theme-white .hg-detail-facts dt,
html.theme-white .hg-watch-side__head span {
    color: #7a7060;
}

html.theme-white .hg-third-party-card {
    color: #312818;
    background: linear-gradient(180deg, #f8f3e6 0%, #ecdfc4 100%);
    border-color: rgba(201,138,46, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

html.theme-white .hg-third-party-card:hover {
    background: linear-gradient(180deg, #f4ead2 0%, #e8d8b0 100%);
    border-color: rgba(201,138,46, .46);
}

html.theme-white .hg-third-party-copy strong {
    color: #312818;
}

html.theme-white .hg-third-party-copy small {
    color: #6f6449;
}

html.theme-white .hg-tab-nav button.is-active,
html.theme-white .hg-channel-strip a.is-current,
html.theme-white .hg-channel-filter nav a.is-current,
html.theme-white .hg-channel-filter nav a:hover,
html.theme-white .hg-filter__row a.is-current,
html.theme-white .hg-filter__row a:hover,
html.theme-white .hg-sortbar nav a.is-current,
html.theme-white .hg-sortbar nav a:hover,
html.theme-white .hg-pagination a.is-current,
html.theme-white .hg-pagination a:hover,
html.theme-white .hg-episode-grid a:hover,
html.theme-white .hg-episode-grid li.is-active a {
    color: #fff;
    background: #c98a2e;
}

html.theme-white .hg-card__title,
html.theme-white .hg-home-rank strong,
html.theme-white .hg-watch-reco strong,
html.theme-white .hg-detail-facts dd,
html.theme-white .hg-prose {
    color: #2f2a22;
}

html.theme-white .hg-meta span,
html.theme-white .hg-meta strong {
    color: #3b3227;
    background: #f4eee1;
    border-color: #e2dacb;
}

html.theme-white .hg-meta strong,
html.theme-white .hg-kicker,
html.theme-white .hg-detail-rating,
html.theme-white .hg-section__head a,
html.theme-white .hg-text-link,
html.theme-white .hg-channel-filter__col strong,
html.theme-white .hg-filter__row > span {
    color: #c98a2e;
}

html.theme-white .hg-watch-hero,
html.theme-white .hg-player-stage,
html.theme-white .hg-channel-hero {
    background: #efe8db;
}

html.theme-white .hg-watch-card {
    background: #fff;
    border: 1px solid #e8ddc8;
}

html.theme-white .hg-watch-card h1,
html.theme-white .hg-player-aside h1 {
    color: #26201a;
}

html.theme-white .hg-watch-card p {
    color: #443c31;
}

html.theme-white .hg-detail-facts {
    background: #fbf8f2;
    border-color: #e8ddc8;
}

html.theme-white .hg-watch-side__head,
html.theme-white .hg-player-aside {
    color: #241b12;
    background: #f5efdf;
}

html.theme-white .hg-footer {
    color: #777062;
    background: #efe8db;
    border-top-color: #dccfb9;
}

html.theme-white .hg-footer__brand {
    color: #251f18;
}

html.theme-white .hg-footer__pill {
    color: #5c4a2a;
    background: rgba(201, 138, 46, .12);
    border-color: rgba(201, 138, 46, .35);
}

html.theme-white .hg-footer__totop {
    color: #8a5f1c;
    background: rgba(201, 138, 46, .1);
}

html.theme-white .am-share,
html.theme-white .tplconfig_history_bg,
html.theme-white .hl_content,
html.theme-white .hl_content.hl_notice,
html.theme-white .mac_pop,
html.theme-white .mac_pop_msg,
html.theme-white .hg-third-party-modal__card {
    color: #3a3026;
    background: #fff;
    border-color: #e8ddc8;
}

html.theme-white .am-share-url,
html.theme-white .tplconfig_history_title,
html.theme-white .hl_content_hd,
html.theme-white .gonggao .hl_content_hd,
html.theme-white .mac_pop .pop_top {
    background: #f5f0e6;
    border-color: #e8ddc8;
}

html.theme-white .am-share-url .url_span,
html.theme-white .am-share-footer .share_btn,
html.theme-white .hl_content_ft .close_box,
html.theme-white .mac_pop .pop-cancel {
    color: #3a3026;
    background: #f5efdf;
    border-color: #e8ddc8;
}

html.theme-white .hl_content_title,
html.theme-white .mac_pop .pop_top h2,
html.theme-white #tplconfig_history .vodlist_title {
    color: #26201a;
}

html.theme-white .mac_pop .hg-login-pop {
    color: #3a3026;
}

html.theme-white .mac_pop .hg-login-pop .reg-w form .reg-group {
    border-color: #e8ddc8 !important;
    background: #f7f9f4;
}

html.theme-white .mac_pop .hg-login-pop .reg-w form .reg-group label {
    color: #c98a2e;
}

html.theme-white .mac_pop .hg-login-pop .reg-w form .reg-group .l-icon {
    opacity: .58;
    filter: grayscale(1) brightness(.58);
}

html.theme-white .mac_pop .hg-login-pop .reg-w form .reg-group .reg-control {
    color: #251f18;
}

html.theme-white .mac_pop .hg-login-pop .reg-w form .reg-group .reg-control::placeholder {
    color: #8a8274;
}

html.theme-white .mac_pop .hg-login-pop .reg-w form .m-hi {
    color: #332c23;
    background: #f0eadf;
}

html.theme-white .mac_pop .hg-login-pop .reg-ts,
html.theme-white .mac_pop .hg-login-pop .reg-od,
html.theme-white .mac_pop .hg-login-pop .find-bt,
html.theme-white .mac_pop .hg-login-pop .reg-bt,
html.theme-white .mac_pop .hg-login-pop .rega-fl,
html.theme-white .mac_pop .hg-login-pop .rega-fr {
    color: #706758;
}

.hg-empty,
.hg-unavailable,
.hg-box {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #999;
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .07);
}

.hg-third-party-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}

.hg-third-party-card {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: #f8f5ee;
    background: linear-gradient(180deg, #3a321f 0%, #2b2417 100%);
    border: 1px solid rgba(234,197,104, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
    border-radius: 10px;
}

.hg-third-party-card:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #4d4224 0%, #38301d 100%);
    border-color: rgba(234,197,104, .58);
}

.hg-third-party-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #ffffff;
    overflow: hidden;
    border-radius: 8px;
}

.hg-third-party-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-third-party-copy strong,
.hg-third-party-copy small {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-third-party-copy small {
    margin-top: 3px;
    color: #f8f3e6;
}

.hg-third-party-copy strong {
    color: #fdfbf0;
}

.hg-third-party-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .68);
}

.hg-third-party-modal.is-active {
    display: grid;
}

.hg-third-party-modal__card {
    width: min(420px, 100%);
    padding: 24px;
    color: #ddd;
    background: #241b12;
    border: 1px solid rgba(255, 255, 255, .1);
}

.hg-third-party-modal h3 {
    margin: 8px 0;
    color: #fff;
}

.hg-third-party-modal__eyebrow,
.hg-third-party-modal__count strong {
    color: #eac568;
}

.hg-third-party-modal__note {
    display: none;
    color: #ffb68a;
}

.hg-third-party-modal__note.is-active {
    display: block;
}

.hg-third-party-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hg-comment-shell {
    padding: 16px;
}

.hg-comment-section__head {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
}

.hg-comment-section__head h2 {
    white-space: nowrap;
}

.hg-comment-section__summary {
    min-width: 0;
    margin: 0;
    color: #9a9a9a;
    font-size: 14px;
    text-align: right;
}

.hg-comment-composer {
    display: grid;
    gap: 12px;
}

.hg-comment-composer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hg-comment-composer__copy {
    min-width: 0;
}

.hg-comment-composer__eyebrow {
    display: inline-flex;
    margin-bottom: 4px;
    color: #eac568;
    font-size: 12px;
    font-weight: 700;
}

.hg-comment-composer__copy strong {
    display: block;
    color: #f2f2f2;
    font-size: 18px;
    line-height: 1.35;
}

.hg-comment-composer__copy p {
    margin: 4px 0 0;
    color: #a8a8a8;
    font-size: 13px;
}

.hg-comment-shell .comment_form,
.hg-comment-shell .input_wrap {
    margin: 0;
}

.hg-comment-shell .comment_form .comment_content {
    width: 100%;
    min-height: 96px;
    display: block;
    resize: vertical;
    padding: 11px 12px;
    color: #ededed;
    background: #1c150f;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 2px;
    outline: none;
    font-size: 14px;
    line-height: 1.65;
}

.hg-comment-shell .comment_form .comment_content:focus,
.hg-comment-shell .verify:focus {
    border-color: #c98a2e;
    box-shadow: 0 0 0 2px rgba(201,138,46, .18);
}

.hg-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.hg-comment-toolbar__tips {
    color: #8d8d8d;
    font-size: 13px;
}

.hg-comment-toolbar__tips .comment_remaining {
    color: #eac568;
    font-weight: 700;
}

.hg-comment-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.hg-comment-toolbar__actions .comm-code {
    width: 110px;
    height: 38px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #140f0a;
}

.hg-comment-shell .verify {
    width: 108px;
    height: 38px;
    padding: 0 10px;
    color: #ededed;
    background: #1c150f;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 2px;
    outline: none;
    font-size: 14px;
}

.hg-comment-shell .comment_submit {
    width: auto;
    height: 38px;
    min-width: 72px;
    padding: 0 16px;
    color: #fff;
    background: #c98a2e;
    border: 1px solid #c98a2e;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.hg-comment-shell .comment_submit:hover {
    background: #b5761f;
    border-color: #b5761f;
}

.hg-comment-shell .part_rows {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hg-comment-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.hg-comment-item__avatar img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #333;
}

.hg-comment-item__card {
    padding: 12px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, .07);
}

.hg-comment-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #f2f2f2;
    font-size: 13px;
}

.hg-comment-item__head .part_tips {
    color: #777;
    font-size: 12px;
}

.hg-comment-item__text {
    margin-top: 8px;
    color: #ddd5c7;
    font-size: 14px;
    line-height: 1.75;
}

.hg-comment-item__actions,
.hg-comment-reply__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.hg-comment-item__actions a,
.hg-comment-reply__actions a {
    color: #9a9a9a;
    font-size: 12px;
}

.hg-comment-item__actions a:hover,
.hg-comment-reply__actions a:hover {
    color: #eac568;
}

.hg-comment-reply {
    margin-top: 10px;
    padding: 10px;
    background: #242424;
    border-left: 2px solid #c98a2e;
}

.hg-comment-reply__meta {
    color: #dcdcdc;
    font-size: 12px;
}

.hg-comment-reply__meta em {
    color: #888;
    font-style: normal;
}

.hg-comment-reply__text {
    margin-top: 6px;
    color: #d0d0d0;
    font-size: 13px;
}

.hg-comment-empty {
    margin-top: 14px;
    padding: 18px;
    color: #9a9a9a;
    background: #1b1b1b;
    border: 1px dashed rgba(255, 255, 255, .12);
    text-align: center;
}

.hg-comment-empty strong {
    display: block;
    color: #efefef;
    font-size: 16px;
}

.hg-comment-empty p {
    margin: 4px 0 0;
    color: #8d8d8d;
    font-size: 13px;
}

.hg-comment-page {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.hg-comment-page a,
.hg-comment-page span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    color: #ddd5c7;
    background: #241c12;
}

.hg-comment-page .active a,
.hg-comment-page a:hover {
    color: #fff;
    background: #c98a2e;
}

.hg-comment-page__tips {
    margin-top: 8px;
    color: #888;
    text-align: center;
    font-size: 12px;
}

html.theme-white .hg-comment-section__summary,
html.theme-white .hg-comment-composer__copy p,
html.theme-white .hg-comment-toolbar__tips,
html.theme-white .hg-comment-empty p,
html.theme-white .hg-comment-page__tips {
    color: #7c7465;
}

html.theme-white .hg-comment-composer__copy strong,
html.theme-white .hg-comment-empty strong,
html.theme-white .hg-comment-item__head {
    color: #26201a;
}

html.theme-white .hg-comment-composer__eyebrow,
html.theme-white .hg-comment-toolbar__tips .comment_remaining {
    color: #c98a2e;
}

html.theme-white .hg-comment-shell .comment_form .comment_content,
html.theme-white .hg-comment-shell .verify {
    color: #2b251e;
    background: #f7f9f5;
    border-color: #ddd0ba;
}

html.theme-white .hg-comment-toolbar__actions .comm-code {
    background: #f5efdf;
    border-color: #ddd0ba;
}

html.theme-white .hg-comment-item__card,
html.theme-white .hg-comment-empty {
    background: #f7f9f5;
    border-color: #e8ddc8;
}

html.theme-white .hg-comment-item__text,
html.theme-white .hg-comment-reply__text {
    color: #3a3026;
}

html.theme-white .hg-comment-item__head .part_tips,
html.theme-white .hg-comment-item__actions a,
html.theme-white .hg-comment-reply__actions a,
html.theme-white .hg-comment-reply__meta em {
    color: #7e7566;
}

html.theme-white .hg-comment-reply {
    background: #f4eee1;
}

html.theme-white .hg-comment-reply__meta {
    color: #312a21;
}

html.theme-white .hg-rank-page__section-note {
    color: #726a5c;
}

html.theme-white .hg-rank-page__card {
    background: #fff;
    border-color: #e8ddc8;
}

html.theme-white .hg-rank-page__card-head h3,
html.theme-white .hg-rank-page__feature strong,
html.theme-white .hg-rank-page__item-body strong {
    color: #26201a;
}

html.theme-white .hg-rank-page__feature,
html.theme-white .hg-rank-page__list a {
    background: #f8f4ec;
}

html.theme-white .hg-rank-page__list a:hover {
    background: #f5f0e7;
}

html.theme-white .hg-rank-page__feature p,
html.theme-white .hg-rank-page__item-body em {
    color: #776e5f;
}

html.theme-white .hg-comment-page a,
html.theme-white .hg-comment-page span {
    color: #3a3328;
    background: #f5efdf;
}

html.theme-white .hg-comment-page .active a,
html.theme-white .hg-comment-page a:hover {
    color: #fff;
    background: #c98a2e;
}

@media (min-width: 1280px) {
    html {
        --hg-shell-max: 1200px;
    }

    .hg-focus {
        height: 380px;
    }

    .hg-focus__copy {
        padding-top: 118px;
        padding-right: 330px;
    }

    .hg-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .hg-grid--compact {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hg-home-channel__body {
        grid-template-columns: minmax(0, 1fr) 276px;
        gap: 20px;
    }
}

@media (min-width: 1440px) {
    html {
        --hg-shell-max: 1280px;
    }

    .hg-focus {
        height: 400px;
    }

    .hg-focus__copy {
        padding-top: 126px;
        padding-right: 360px;
    }

    .hg-focus__nav {
        width: 300px;
        top: 56px;
        max-height: calc(100% - 88px);
    }

    .hg-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .hg-grid--compact {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hg-grid--home-latest .hg-card:nth-child(n),
    .hg-grid--home-compact .hg-card:nth-child(n),
    .hg-grid--channel-all .hg-card:nth-child(n),
    .hg-grid--channel-child .hg-card:nth-child(n),
    .hg-grid--related .hg-card:nth-child(n),
    .hg-home-rank li:nth-child(n) {
        display: block;
    }

    .hg-grid--home-latest .hg-card:nth-child(n+22),
    .hg-grid--home-compact .hg-card:nth-child(n+13),
    .hg-grid--channel-all .hg-card:nth-child(n+50),
    .hg-grid--channel-child .hg-card:nth-child(n+22),
    .hg-grid--related .hg-card:nth-child(n+15),
    .hg-home-rank li:nth-child(n+11) {
        display: none;
    }

    .hg-home-channel__body {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 22px;
    }

    .hg-watch-hero__grid {
        grid-template-columns: minmax(0, 1fr) 370px;
        gap: 18px;
    }

    .hg-player-layout {
        grid-template-columns: minmax(0, 1fr) 370px;
        gap: 18px;
    }

    .hg-channel-hero__inner {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .hg-rank-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1680px) {
    html {
        --hg-shell-max: 1400px;
    }

    .hg-focus {
        height: 420px;
    }

    .hg-focus__copy {
        padding-top: 132px;
        padding-right: 390px;
    }

    .hg-focus h1 {
        font-size: 28px;
    }

    .hg-focus p {
        max-width: 540px;
        font-size: 15px;
    }

    .hg-focus__nav {
        width: 320px;
        top: 60px;
    }

    .hg-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 22px 15px;
    }

    .hg-grid--compact {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .hg-grid--home-latest .hg-card:nth-child(n),
    .hg-grid--home-compact .hg-card:nth-child(n),
    .hg-grid--channel-all .hg-card:nth-child(n),
    .hg-grid--channel-child .hg-card:nth-child(n),
    .hg-grid--related .hg-card:nth-child(n),
    .hg-home-rank li:nth-child(n) {
        display: block;
    }

    .hg-grid--home-latest .hg-card:nth-child(n+25),
    .hg-grid--home-compact .hg-card:nth-child(n+15),
    .hg-grid--channel-all .hg-card:nth-child(n+57),
    .hg-grid--channel-child .hg-card:nth-child(n+25),
    .hg-grid--related .hg-card:nth-child(n+17) {
        display: none;
    }

    .hg-home-channel__body {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 24px;
    }
}

@media (min-width: 1900px) {
    html {
        --hg-shell-max: 1500px;
    }

    .hg-focus {
        height: 440px;
    }

    .hg-focus__copy {
        padding-top: 138px;
        padding-right: 420px;
    }

    .hg-focus__nav {
        width: 340px;
        top: 64px;
        max-height: calc(100% - 96px);
    }

    .hg-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .hg-grid--compact {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .hg-grid--home-latest .hg-card:nth-child(n),
    .hg-grid--home-compact .hg-card:nth-child(n),
    .hg-grid--channel-all .hg-card:nth-child(n),
    .hg-grid--channel-child .hg-card:nth-child(n),
    .hg-grid--related .hg-card:nth-child(n),
    .hg-home-rank li:nth-child(n) {
        display: block;
    }

    .hg-grid--home-latest .hg-card:nth-child(n+25),
    .hg-grid--home-compact .hg-card:nth-child(n+15),
    .hg-grid--channel-all .hg-card:nth-child(n+57),
    .hg-grid--channel-child .hg-card:nth-child(n+25),
    .hg-grid--related .hg-card:nth-child(n+17) {
        display: none;
    }

    .hg-home-channel__body {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 26px;
    }

    .hg-watch-hero__grid {
        grid-template-columns: minmax(0, 1fr) 370px;
        gap: 20px;
    }

    .hg-player-layout {
        grid-template-columns: minmax(0, 1fr) 370px;
        gap: 20px;
    }
}

@media (max-width: 1020px) {
    .hg-shell {
        width: min(100% - 24px, 970px);
    }

    .hg-focus__copy {
        width: min(100% - 24px, 970px);
    }

    .hg-search {
        flex-basis: 210px;
    }

    .hg-focus__nav {
        right: 12px;
    }

    .hg-watch-hero__grid,
    .hg-player-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .hg-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hg-grid--related .hg-card:nth-child(n) {
        display: block;
    }

    .hg-grid--related .hg-card:nth-child(n+16) {
        display: none;
    }
}

@media (max-width: 760px) {
    .hg-header__inner {
        min-height: 50px;
        gap: 8px;
    }

    .hg-logo {
        max-width: 110px;
        max-height: 32px;
    }

    .hg-nav,
    .hg-search,
    .hg-action--text span {
        display: none;
    }

    .hg-actions {
        margin-left: auto;
        gap: 6px;
    }

    .hg-action--text {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    .hg-theme-toggle {
        display: inline-flex;
    }

    .hg-menu-toggle {
        display: block;
    }

    .hg-focus {
        height: 312px;
    }

    .hg-focus__copy {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 22px;
        width: auto;
        margin: 0;
        padding: 0;
        z-index: 5;
    }

    .hg-focus h1 {
        max-width: 100%;
        margin: 5px 0 6px;
        font-size: 20px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hg-focus p {
        display: none;
    }

    .hg-focus .hg-kicker {
        font-size: 12px;
    }

    .hg-focus .hg-meta {
        flex-wrap: nowrap;
        gap: 5px;
        margin: 6px 0 8px;
        max-width: 100%;
        overflow: hidden;
    }

    .hg-focus .hg-meta span,
    .hg-focus .hg-meta strong {
        flex: 0 1 auto;
        min-width: 0;
        min-height: 22px;
        padding: 1px 6px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hg-focus .hg-meta span {
        max-width: 82px;
    }

    .hg-focus .hg-btn {
        min-height: 32px;
        padding: 0 14px;
        font-size: 14px;
    }

    .hg-focus__nav {
        display: none;
    }

    .hg-grid,
    .hg-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .hg-grid--related .hg-card:nth-child(n) {
        display: block;
    }

    .hg-grid--related .hg-card:nth-child(n+17) {
        display: none;
    }

    .hg-home-channel__body,
    .hg-watch-hero__grid,
    .hg-player-layout,
    .hg-rank-page__grid {
        grid-template-columns: 1fr;
    }

    .hg-footer__totop {
        display: none;
    }

    .hg-home-rank {
        display: none;
    }

    .hg-channel-hero__inner {
        height: 312px;
        display: block;
        position: relative;
    }

    .hg-channel-hero__slides {
        position: absolute;
        inset: 0;
    }

    .hg-channel-hero__copy {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 22px;
        max-width: none;
        padding: 0;
        z-index: 5;
    }

    .hg-channel-hero__copy h1 {
        margin: 5px 0 0;
        font-size: 20px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hg-channel-hero__copy p {
        display: none;
    }

    .hg-channel-hero__nav {
        display: none;
    }

    .hg-channel-page .hg-channel-strip {
        padding-bottom: 6px;
    }

    .hg-channel-page .hg-channel-strip a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        font-size: 13px;
    }

    .hg-channel-page .hg-listing {
        padding-top: 8px;
    }

    .hg-channel-filter-toggle {
        display: inline-flex;
        align-items: center;
        border: 0;
        min-height: 32px;
        padding: 5px 11px;
        margin-bottom: 8px;
        color: #fff;
        background: #c98a2e;
        font-size: 13px;
    }

    .hg-channel-filter {
        display: none;
        grid-template-columns: 1fr;
    }

    .hg-channel-filter.is-open {
        display: grid;
    }

    .hg-channel-filter__col {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding: 8px 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .hg-channel-filter__col strong {
        margin: 0;
    }

    .hg-channel-filter nav {
        max-height: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hg-channel-filter nav::-webkit-scrollbar {
        display: none;
    }

    .hg-channel-filter nav a {
        flex: 0 0 auto;
    }

    .hg-rank-page__tabs {
        padding-top: 14px;
    }

    .hg-rank-page__tabs .hg-section__head {
        align-items: flex-start;
        gap: 6px;
    }

    .hg-rank-page__section-note {
        font-size: 12px;
    }

    .hg-rank-page__card {
        padding: 10px;
    }

    .hg-rank-page__card-head {
        min-height: 34px;
        margin-bottom: 9px;
    }

    .hg-rank-page__card-head h3 {
        font-size: 16px;
    }

    .hg-rank-page__feature {
        min-height: 108px;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .hg-rank-page__feature-thumb {
        width: 76px;
    }

    .hg-rank-page__feature strong {
        font-size: 15px;
    }

    .hg-rank-page__feature-meta,
    .hg-rank-page__feature p,
    .hg-rank-page__item-body em {
        font-size: 12px;
    }

    .hg-rank-page__list {
        gap: 6px;
    }

    .hg-rank-page__list a {
        min-height: 74px;
        grid-template-columns: 24px 52px minmax(0, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .hg-rank-page__index {
        width: 24px;
        height: 24px;
    }

    .hg-rank-page__thumb {
        width: 52px;
    }

    .hg-watch-card {
        grid-template-columns: 116px minmax(0, 1fr);
        column-gap: 12px;
        padding: 12px;
    }

    .hg-watch-card__body {
        display: contents;
    }

    .hg-watch-card__top {
        display: block;
    }

    .hg-watch-card__top,
    .hg-watch-card h1,
    .hg-watch-card p,
    .hg-watch-card .hg-meta,
    .hg-detail-actions {
        grid-column: 2;
        min-width: 0;
    }

    .hg-watch-card__media {
        grid-column: 1;
        grid-row: 1 / span 5;
    }

    .hg-detail-rating {
        margin-top: 6px;
    }

    .hg-watch-card h1 {
        margin: 7px 0 6px;
        font-size: 20px;
    }

    .hg-watch-card p {
        display: none;
    }

    .hg-watch-card .hg-meta {
        gap: 5px;
        margin: 8px 0 10px;
    }

    .hg-watch-card .hg-meta span,
    .hg-watch-card .hg-meta strong {
        min-height: 22px;
        padding: 1px 6px;
        font-size: 12px;
    }

    .hg-detail-facts {
        grid-column: 1 / -1;
        margin: 10px 0 0;
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 12px;
        background: rgba(255, 255, 255, .03);
        border: 1px solid rgba(255, 255, 255, .07);
    }

    .hg-detail-facts dt {
        font-size: 12px;
    }

    .hg-detail-facts dd {
        margin-top: 1px;
        font-size: 13px;
    }

    .hg-detail-actions {
        gap: 6px;
    }

    .hg-detail-actions .hg-btn {
        min-height: 32px;
        padding: 0 12px;
        font-size: 14px;
    }

    .hg-watch-side {
        display: none;
    }

    .hg-comment-section__head {
        align-items: flex-start;
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .hg-comment-section__summary {
        display: none;
    }

    .hg-comment-shell {
        padding: 12px;
    }

    .hg-comment-composer__copy strong {
        font-size: 16px;
    }

    .hg-comment-composer__copy p {
        font-size: 12px;
    }

    .hg-comment-shell .comment_form .comment_content {
        min-height: 88px;
    }

    .hg-comment-toolbar {
        display: block;
    }

    .hg-comment-toolbar__actions {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .hg-comment-toolbar__actions .comm-code {
        width: 102px;
    }

    .hg-comment-shell .verify {
        flex: 1 1 92px;
        min-width: 0;
    }

    .hg-comment-shell .comment_submit {
        min-width: 64px;
        padding: 0 12px;
    }

    .hg-comment-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
    }

    .hg-comment-item__avatar img {
        width: 34px;
        height: 34px;
    }

    .hg-comment-item__card {
        padding: 10px;
    }

    .hg-comment-item__head {
        display: block;
    }

    .hg-player-box,
    .hg-player-box .VideoPlayer,
    .hg-player-box iframe,
    .hg-player-box video,
    .hg-player-lock {
        min-height: 230px;
        height: 230px !important;
    }

    .hg-filter {
        padding: 7px;
    }

    .hg-filter__summary {
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 4px;
    }

    .hg-filter__summary strong {
        font-size: 16px;
        line-height: 1.2;
    }

    .hg-filter__summary div {
        flex: 1 1 100%;
        gap: 4px;
        order: 3;
    }

    .hg-filter__summary span {
        font-size: 11px;
    }

    .hg-filter__toggle,
    .hg-filter__reset {
        min-height: 28px;
        padding: 0 8px;
        font-size: 12px;
        line-height: 1;
    }

    .hg-filter__toggle {
        margin-left: 0;
    }

    .hg-filter__body {
        gap: 4px;
    }

    .hg-filter__row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 4px;
    }

    .hg-filter__row > span {
        font-size: 12px;
        line-height: 28px;
    }

    .hg-filter__row nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hg-filter__row nav::-webkit-scrollbar {
        display: none;
    }

    .hg-filter__row a {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        font-size: 12px;
        line-height: 1;
    }

    .hg-sortbar {
        margin: 8px 0 10px;
        padding: 6px 7px;
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    .hg-sortbar div {
        flex: 0 0 auto;
        gap: 4px;
        white-space: nowrap;
    }

    .hg-sortbar strong {
        font-size: 13px;
    }

    .hg-sortbar span,
    .hg-sortbar nav a {
        font-size: 12px;
    }

    .hg-sortbar nav {
        flex: 1 1 auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hg-sortbar nav::-webkit-scrollbar {
        display: none;
    }

    .hg-sortbar nav a {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
    }

    .hg-pagination {
        margin-top: 14px;
        gap: 5px;
    }

    .hg-pagination a {
        min-width: 30px;
        min-height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }

    .hg-third-party-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hg-third-party-card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .hg-third-party-logo {
        width: 36px;
        height: 36px;
    }

    .hg-footer__links,
    .hg-footer__meta {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .hg-mobile-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hg-focus__copy {
        left: 14px;
        right: 14px;
        bottom: 62px;
        padding: 0;
    }

    .hg-section {
        padding: 22px 0;
    }

    .hg-prose {
        padding: 18px 14px;
    }

    .hg-section__head h2 {
        font-size: 20px;
    }
}

/* Letv article list and detail pages */
.hg-article-page,
.hg-article-detail-page {
    --hg-article-surface: #262017;
    --hg-article-surface-soft: #282828;
    --hg-article-border: rgba(255, 255, 255, .09);
    --hg-article-text: #f0f0f0;
    --hg-article-muted: #a89e8e;
    --hg-article-accent: #d9a94f;
    min-height: calc(100vh - 64px);
    color: var(--hg-article-text);
    background: #1a140e;
}

html.theme-white .hg-article-page,
html.theme-white .hg-article-detail-page {
    --hg-article-surface: #ffffff;
    --hg-article-surface-soft: #f5efdf;
    --hg-article-border: #e4dccc;
    --hg-article-text: #2a241d;
    --hg-article-muted: #777063;
    --hg-article-accent: #c98a2e;
    background: #f4f5f1;
}

.hg-article-hero {
    padding: 38px 0 30px;
    border-bottom: 1px solid var(--hg-article-border);
    background: var(--hg-article-surface);
}

.hg-article-hero h1 {
    margin: 0;
    color: var(--hg-article-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.hg-article-hero p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--hg-article-muted);
    font-size: 15px;
    line-height: 1.75;
}

.hg-article-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hg-article-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--hg-article-border);
    border-radius: 4px;
    background: var(--hg-article-surface-soft);
    color: var(--hg-article-muted);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.hg-article-tabs a:hover,
.hg-article-tabs a.is-current {
    border-color: #c98a2e;
    background: #c98a2e;
    color: #fff;
}

.hg-article-list {
    padding-top: 28px;
    padding-bottom: 58px;
}

.hg-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hg-article-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    height: 100%;
    padding: 13px;
    border: 1px solid var(--hg-article-border);
    border-radius: 6px;
    background: var(--hg-article-surface);
    transition: border-color .18s ease, transform .18s ease;
}

.hg-article-card:hover {
    border-color: rgba(217,169,79, .58);
    transform: translateY(-2px);
}

.hg-article-card__media {
    position: relative;
    align-self: start;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    background: var(--hg-article-surface-soft);
}

.hg-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-article-card.is-placeholder .hg-article-card__media img {
    padding: 28px;
    object-fit: contain;
    opacity: .62;
}

.hg-article-card__badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: calc(100% - 16px);
    padding: 0 8px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(150,100,25, .9);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hg-article-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hg-article-card h2 {
    display: -webkit-box;
    margin: 1px 0 0;
    overflow: hidden;
    color: var(--hg-article-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hg-article-card h2 a:hover {
    color: var(--hg-article-accent);
}

.hg-article-card__body > p {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: var(--hg-article-muted);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hg-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--hg-article-muted);
    font-size: 12px;
    line-height: 1.4;
}

.hg-article-card__meta time,
.hg-article-card__meta span {
    font: inherit;
}

.hg-article-list .hg-pagination,
.hg-article-detail .hg-pagination {
    justify-content: center;
}

.hg-article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 26px;
    max-width: 1240px;
    padding-top: 34px;
    padding-bottom: 66px;
}

.hg-article-detail {
    min-width: 0;
}

.hg-article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
    color: var(--hg-article-muted);
    font-size: 12px;
    line-height: 1.5;
}

.hg-article-breadcrumb a:hover {
    color: var(--hg-article-accent);
}

.hg-article-detail__header {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--hg-article-border);
}

.hg-article-detail__header h1 {
    margin: 0;
    color: var(--hg-article-text);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hg-article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 15px;
    color: var(--hg-article-muted);
    font-size: 13px;
    line-height: 1.5;
}

.hg-article-detail__meta a {
    color: var(--hg-article-accent);
}

.hg-article-detail__meta a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hg-article-detail__lead {
    margin: 22px 0 0;
    padding: 15px 17px;
    border: 1px solid var(--hg-article-border);
    border-radius: 4px;
    background: var(--hg-article-surface-soft);
    color: var(--hg-article-text);
    font-size: 15px;
    line-height: 1.8;
}

.hg-article-detail__content {
    padding-top: 28px;
    color: var(--hg-article-text);
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.hg-article-detail__content > :first-child {
    margin-top: 0;
}

.hg-article-detail__content > :last-child {
    margin-bottom: 0;
}

.hg-article-detail__content p {
    margin: 0 0 1.2em;
}

.hg-article-detail__content h2,
.hg-article-detail__content h3,
.hg-article-detail__content h4 {
    margin: 1.65em 0 .7em;
    color: var(--hg-article-text);
    line-height: 1.45;
}

.hg-article-detail__content a {
    color: var(--hg-article-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hg-article-detail__content img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 24px auto;
    border-radius: 4px;
}

.hg-article-detail__content iframe,
.hg-article-detail__content video {
    display: block;
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin: 24px auto;
}

.hg-article-detail__content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
}

.hg-article-detail__content th,
.hg-article-detail__content td {
    padding: 9px 11px;
    border: 1px solid var(--hg-article-border);
}

.hg-article-detail .hg-pagination {
    margin-top: 30px;
}

.hg-article-neighbor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    padding: 18px 0;
    border-top: 1px solid var(--hg-article-border);
    border-bottom: 1px solid var(--hg-article-border);
}

.hg-article-neighbor__item {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 11px 13px;
    border-radius: 4px;
    background: var(--hg-article-surface-soft);
}

.hg-article-neighbor__item > span {
    color: var(--hg-article-accent);
    font-size: 12px;
}

.hg-article-neighbor__item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hg-article-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hg-article-neighbor__item:hover strong {
    color: var(--hg-article-accent);
}

.hg-article-neighbor__item.is-disabled {
    opacity: .55;
}

.hg-article-related {
    margin-top: 32px;
}

.hg-article-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hg-article-section-head h2,
.hg-article-side-card h2 {
    margin: 0;
    color: var(--hg-article-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.hg-article-section-head > a {
    flex: 0 0 auto;
    color: var(--hg-article-accent);
    font-size: 13px;
}

.hg-article-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hg-article-related__item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 11px;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--hg-article-border);
    border-radius: 5px;
    background: var(--hg-article-surface);
}

.hg-article-related__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 3px;
    background: var(--hg-article-surface-soft);
}

.hg-article-related__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-article-related__media img.is-placeholder {
    padding: 18px;
    object-fit: contain;
    opacity: .6;
}

.hg-article-related__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hg-article-related__body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hg-article-text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hg-article-related__body em {
    margin-top: auto;
    color: var(--hg-article-muted);
    font-size: 11px;
    font-style: normal;
}

.hg-article-related__item:hover strong {
    color: var(--hg-article-accent);
}

.hg-article-sidebar {
    position: sticky;
    top: 82px;
    display: grid;
    gap: 16px;
}

.hg-article-side-card {
    padding: 17px;
    border: 1px solid var(--hg-article-border);
    border-radius: 6px;
    background: var(--hg-article-surface);
}

.hg-article-side-card h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hg-article-border);
    font-size: 18px;
}

.hg-article-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hg-article-side-list li + li {
    border-top: 1px solid var(--hg-article-border);
}

.hg-article-side-list a {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 11px 0;
}

.hg-article-side-list a > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 3px;
    background: var(--hg-article-surface-soft);
    color: var(--hg-article-accent);
    font-size: 12px;
    font-weight: 700;
}

.hg-article-side-list li:nth-child(-n+3) a > span {
    background: #c98a2e;
    color: #fff;
}

.hg-article-side-list strong {
    min-width: 0;
    overflow: hidden;
    color: var(--hg-article-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hg-article-side-list em {
    color: var(--hg-article-muted);
    font-size: 11px;
    font-style: normal;
}

.hg-article-side-list a:hover strong {
    color: var(--hg-article-accent);
}

.hg-article-side-list--latest li:nth-child(-n+3) a > span {
    background: var(--hg-article-surface-soft);
    color: var(--hg-article-accent);
}

@media (max-width: 1100px) {
    .hg-article-grid {
        grid-template-columns: 1fr;
    }

    .hg-article-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .hg-article-detail-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 20px;
    }

    .hg-article-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hg-article-detail-layout {
        grid-template-columns: 1fr;
    }

    .hg-article-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hg-article-hero {
        padding: 25px 0 22px;
    }

    .hg-article-hero h1 {
        font-size: 27px;
    }

    .hg-article-hero p {
        margin-top: 5px;
        font-size: 14px;
    }

    .hg-article-tabs {
        flex-wrap: nowrap;
        gap: 7px;
        margin-top: 16px;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hg-article-tabs::-webkit-scrollbar {
        display: none;
    }

    .hg-article-tabs a {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 0 12px;
    }

    .hg-article-list {
        padding-top: 18px;
        padding-bottom: 40px;
    }

    .hg-article-grid {
        gap: 10px;
    }

    .hg-article-card {
        grid-template-columns: 138px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .hg-article-card h2 {
        font-size: 16px;
        line-height: 1.45;
    }

    .hg-article-card__body > p {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.55;
        -webkit-line-clamp: 1;
    }

    .hg-article-card__meta {
        gap: 8px;
        padding-top: 6px;
    }

    .hg-article-detail-layout {
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .hg-article-detail__header {
        padding-bottom: 21px;
    }

    .hg-article-detail__header h1 {
        font-size: 27px;
        line-height: 1.45;
    }

    .hg-article-detail__content {
        padding-top: 22px;
        font-size: 16px;
        line-height: 1.9;
    }

    .hg-article-detail__lead {
        margin-top: 18px;
        padding: 13px 14px;
        font-size: 14px;
    }

    .hg-article-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .hg-article-card {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
    }

    .hg-article-card__badge {
        left: 6px;
        bottom: 6px;
        min-height: 21px;
        max-width: calc(100% - 12px);
        padding: 0 6px;
        font-size: 11px;
    }

    .hg-article-card__body > p {
        display: none;
    }

    .hg-article-card__meta {
        flex-wrap: nowrap;
        gap: 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    .hg-article-detail__header h1 {
        font-size: 23px;
    }

    .hg-article-detail__meta {
        gap: 6px 12px;
        margin-top: 12px;
    }

    .hg-article-neighbor {
        grid-template-columns: 1fr;
    }

    .hg-article-related__item {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .hg-article-detail__content img,
    .hg-article-detail__content iframe,
    .hg-article-detail__content video {
        margin: 18px auto;
    }
}


/* WB-ART-INDENT-20260914 */
/* 资讯正文排版：每个段落首行缩进两个中文字符（2em 即两个汉字宽度） */
.hg-article-detail__content p {
    text-indent: 2em;
}
/* 纯媒体段落不缩进，避免图片/视频被右推 */
.hg-article-detail__content p:has(> img:only-child),
.hg-article-detail__content p:has(> a:only-child),
.hg-article-detail__content p:has(> iframe:only-child),
.hg-article-detail__content p:has(> video:only-child) {
    text-indent: 0;
}
