/* The supplied page styles are loaded in their original order by each document. */
html[data-theme="hongguo-original"] { font-size: 64px; color-scheme: dark; }
html[data-theme="hongguo-original"] [data-hg-document] { display: contents; }
html[data-theme="hongguo-original"] [data-hg-shell] { min-height: 100vh; display: flex; flex-direction: column; }
html[data-theme="hongguo-original"] [data-hg-chrome] { --hg-chrome-unit: 64px; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }
html[data-theme="hongguo-original"] [data-hg-chrome="footer"] { margin-top: auto; }
/* Header luôn trong suốt, vô hiệu hoá background #131414 */
html[data-theme="hongguo-original"] [data-hg-chrome="header"] .pc-page-BTzUmP,
html[data-theme="hongguo-original"] [data-hg-chrome="header"] .pc-page-BTzUmP::before,
html[data-theme="hongguo-original"] [data-hg-chrome="header"] .m-page-IGqlPw,
html[data-theme="hongguo-original"] [data-hg-chrome="header"] .m-page-IGqlPw::before {
    background: transparent !important;
}
html[data-theme="hongguo-original"].ns-lock,
html[data-theme="hongguo-original"] body.ns-lock { overflow: hidden !important; }
@media (max-width: 1271px) {
    html[data-theme="hongguo-original"] [data-hg-chrome][data-hg-chrome] .pc-page-BTzUmP .pc-container-atbRe3,
    html[data-theme="hongguo-original"] [data-hg-chrome][data-hg-chrome] .pc-page-c99OQM { width: calc(100% - 32px); }
    html[data-theme="hongguo-original"] [data-hg-chrome][data-hg-chrome] .pc-brand-link-fdLNJ_ { margin-right: 32px; }
}
@media (max-width: 999px) {
    html[data-theme="hongguo-original"] [data-hg-chrome][data-hg-chrome] .pc-entry-kwckfj { display: none; }
    html[data-theme="hongguo-original"] [data-hg-chrome][data-hg-chrome] .pc-search-box-EIvK8X { width: 32px; }
    html[data-theme="hongguo-original"] [data-hg-chrome][data-hg-chrome] .pc-input-O6YvaJ { display: none; }
}
@media (max-width: 768px) {
    html[data-theme="hongguo-original"] [data-hg-chrome] { --hg-chrome-unit: min(10vw, 64px); }
    html[data-theme="hongguo-original"] [data-hg-chrome] .hg-chrome-desktop { display: none; }
}
/* Catalog posters are 3:4; the supplied mobile banner uses a taller frame. */
html[data-theme="hongguo-original"] .m-img-AMsf7V { object-fit: cover; object-position: center top; }
html[data-theme="hongguo-original"] .hg-original-extra { font-size: 14px; line-height: 1.6; color: #eee; padding: 96px 24px 32px; max-width: 1240px; margin: auto; }

/* Source logos and slogans contain Chinese text baked into images. Render site branding instead. */
html[data-theme="hongguo-original"] .hg-brand-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    letter-spacing: -.4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html[data-theme="hongguo-original"] .hg-brand-image { object-fit: contain; }
html[data-theme="hongguo-original"] [data-hg-chrome] .pc-page-BTzUmP .pc-brand-link-fdLNJ_ { width: auto; max-width: 220px; margin-right: 48px; flex-shrink: 0; }
html[data-theme="hongguo-original"] .pc-icon-link-LA0dCC.hg-brand-text { width: auto; max-width: 220px; height: 32px; justify-content: flex-start; font-size: 20px; font-weight: 800; object-fit: initial; }
html[data-theme="hongguo-original"] [data-hg-chrome] .pc-page-BTzUmP .pc-link-UBmRbj,
html[data-theme="hongguo-original"] [data-hg-chrome] .pc-page-BTzUmP .pc-guide-desc-l8TLuQ { font-size: 15px; white-space: nowrap; }
html[data-theme="hongguo-original"] [data-hg-chrome] .m-page-IGqlPw .m-brand-link-rNxXs7 { flex: 0 1 auto; width: auto; max-width: 36vw; height: 28px; }
html[data-theme="hongguo-original"] .m-icon-link-cajPqx.hg-brand-text { width: auto; max-width: 100%; height: 28px; justify-content: flex-start; font-size: clamp(16px, 4.3vw, 18px); font-weight: 800; object-fit: initial; }
html[data-theme="hongguo-original"] [data-hg-chrome] .m-page-IGqlPw .links-s40c6A { flex-shrink: 0; white-space: nowrap; }
html[data-theme="hongguo-original"] [data-hg-chrome] .m-page-IGqlPw .m-link-MAkZDJ { font-size: clamp(13px, 3.4vw, 15px); margin-left: clamp(10px, 2.8vw, 18px); white-space: nowrap; flex-shrink: 0; }
html[data-theme="hongguo-original"] [data-hg-chrome] .m-page-IGqlPw .m-link-MAkZDJ:first-child { margin-left: 0; }
html[data-theme="hongguo-original"] [data-hg-chrome] .m-page-IGqlPw .m-search-entry-yTtTEx { margin-left: clamp(10px, 2.8vw, 18px); flex-shrink: 0; }
html[data-theme="hongguo-original"] .pc-hero-logo-hFm4Du.hg-brand-text { width: auto; max-width: 656px; height: 40px; font-size: 34px; line-height: 40px; }
html[data-theme="hongguo-original"] .pc-hero-slogan-aSwNRX.hg-brand-tagline { display: flex; align-items: center; justify-content: center; width: 656px; height: 100px; padding: 0 24px; color: #fff; font-size: 30px; font-weight: 600; line-height: 1.2; text-align: center; }
html[data-theme="hongguo-original"] .m-font-aGHRzp.hg-mobile-title { display: block; max-width: 100%; max-height: none; overflow: hidden; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; zoom: 1; }
html[data-theme="hongguo-original"] .pc-icon-ojlELA.hg-brand-text { width: 108px; height: 32px; left: 101px; top: 48px; justify-content: center; font-size: 18px; object-fit: initial; }
html[data-theme="hongguo-original"] .pc-icon-WNlDp2.hg-brand-text { width: 121px; height: auto; aspect-ratio: auto; margin-top: 20px; font-size: 16px; object-fit: initial; }

/* Vietnamese-first typography: the supplied CSS targets PingFang SC. */
html[data-theme="hongguo-original"] body,
html[data-theme="hongguo-original"] [data-hg-shell],
html[data-theme="hongguo-original"] [data-hg-shell] * { font-family: 'Be Vietnam Pro', sans-serif !important; }

/* Tablet: keep brand logo larger than navigation labels and tighten spacing. */
@media (min-width: 769px) and (max-width: 1200px) {
    html[data-theme="hongguo-original"] [data-hg-chrome] .pc-page-BTzUmP .pc-brand-link-fdLNJ_ { margin-right: 28px; }
    html[data-theme="hongguo-original"] [data-hg-chrome] .pc-icon-link-LA0dCC.hg-brand-text { font-size: 18px; }
    html[data-theme="hongguo-original"] [data-hg-chrome] .pc-page-BTzUmP .pc-link-UBmRbj,
    html[data-theme="hongguo-original"] [data-hg-chrome] .pc-page-BTzUmP .pc-guide-desc-l8TLuQ { font-size: 15px; margin-right: 24px; }
}

/* The supplied app-download popover is a QR code. Keep the nav, show a development placeholder. */
html[data-theme="hongguo-original"] .pc-guide-box-PEF_dz { min-width: 180px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(27,28,28,.98); }
html[data-theme="hongguo-original"] .pc-guide-box-PEF_dz > * { display: none !important; }
html[data-theme="hongguo-original"] .pc-guide-box-PEF_dz::after { content: 'Đang phát triển'; display: flex; align-items: center; justify-content: center; min-height: 32px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; }
html[data-theme="hongguo-original"] [data-hg-chrome] .ns-dl-box { padding: 36px 24px 32px; }
html[data-theme="hongguo-original"] [data-hg-chrome] .ns-dl-box p { margin: 0; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }

html[data-theme="hongguo-original"] .hg-account-button { min-width: 82px; }
html[data-theme="hongguo-original"] .play-episode-grid button.hg-episode--full { width: auto; min-width: 72px; padding: 0 12px; }

/* Standard Member Login Popup */
html[data-theme="hongguo-original"] [data-hg-chrome] .ns-login-overlay .pc-login-dialog-I1zYTU {
    width: 440px;
    height: auto;
    min-height: 0;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 38px 36px 30px;
    border-radius: 24px;
    background: linear-gradient(180deg, #242628 0%, #1a1b1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .ns-login-overlay .pc-login-dialog-I1zYTU::after {
    display: none !important;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-decoration {
    pointer-events: none;
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 126, 13, 0.22) 0%, rgba(255, 126, 13, 0) 70%);
    z-index: 0;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 2;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: scale(1.05);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-badge {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 126, 13, 0.2), rgba(255, 146, 51, 0.08));
    border: 1px solid rgba(255, 126, 13, 0.35);
    color: #ff7e0d;
    box-shadow: 0 0 24px rgba(255, 126, 13, 0.2);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-desc {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-body {
    width: 100%;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-providers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn:hover {
    transform: translateY(-1px);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn:active {
    transform: translateY(0);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn svg {
    flex-shrink: 0;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn-text {
    flex: 1;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn-arrow {
    opacity: 0.5;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn:hover .hg-auth-btn-arrow {
    opacity: 1;
    transform: translateX(3px);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--google {
    background: #ffffff;
    color: #1f2937;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--google:hover {
    background: #f1f3f5;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--facebook {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--facebook:hover {
    background: #166fe5;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none !important;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-note {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-notice {
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 126, 13, 0.3);
    border-radius: 10px;
    background: rgba(255, 126, 13, 0.1);
    color: #ffb066;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    line-height: 1.6;
    width: 100%;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 126, 13, 0.5);
    display: grid;
    place-items: center;
    background: rgba(255, 126, 13, 0.15);
    color: #ff7e0d;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-user-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-user-email {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--primary {
    justify-content: center;
    background: linear-gradient(135deg, #ff7e0d, #ff9233);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 126, 13, 0.35);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--logout {
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="hongguo-original"] [data-hg-chrome] .hg-auth-btn--logout:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* pc-episode-list: hiển thị nút 'FULL' cạnh nút 'xem ngay' */
html[data-theme="hongguo-original"] .pc-episodes-MJlIL5 {
    display: flex;
    align-items: center;
    gap: 12px;
}
html[data-theme="hongguo-original"] .pc-episode-list-container-lw6CEM {
    flex: 0 0 auto;
}
html[data-theme="hongguo-original"] .pc-episode-list-Duubqn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 46px;
    overflow: visible;
}
html[data-theme="hongguo-original"] .pc-episode-n9V57o {
    width: auto;
    min-width: 64px;
    height: 46px;
    padding: 0 16px;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
html[data-theme="hongguo-original"] .pc-episode-toggle-AyKYMG {
    display: none !important;
}

