:root {
    --page-max: 390px;
    --pad: 12px;
    --bg: #edf3fb;
    --panel: #ffffff;
    --line: rgba(18, 32, 52, .14);
    --text: #0f1c2e;
    --muted: #667184;
}

* { box-sizing: border-box; }

html {
    min-width: 0;
    background: #dce6f2;
    color: var(--text);
}

body {
    width: min(100vw, var(--page-max));
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video, iframe { max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: min(100vw, var(--page-max));
    margin: 0 auto;
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
}

.site-header__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.home-back-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, .34);
    border-radius: 999px;
    background: #1a1a1a;
    color: #d4af37;
    font-size: 0;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-50%);
}

.home-back-arrow::before,
.home-back-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    pointer-events: none;
}

.home-back-arrow::before {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-58%, -50%) rotate(45deg);
}

.home-back-arrow::after {
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-35%, -50%);
}

.brand {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid rgba(212, 175, 55, .38);
    border-radius: 6px;
    background: linear-gradient(180deg, #2a0202, #120101);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 6px 18px rgba(0, 0, 0, .22);
}

.brand-name__text {
    color: #d4af37;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .12em;
    -webkit-text-stroke: .35px rgba(255, 255, 255, .42);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .18),
        0 0 1px rgba(212, 175, 55, .45);
}

.search {
    display: flex;
    gap: 8px;
}

.search__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #f8fbff;
    color: var(--text);
}

.search__input:focus {
    border-color: rgba(36, 107, 254, .52);
    box-shadow: 0 0 0 3px rgba(36, 107, 254, .12);
}

.search__button {
    width: 72px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #246bfe, #d93491);
    color: #fff;
    font-weight: 900;
}

.page {
    display: grid;
    width: min(100vw, var(--page-max));
    gap: 4px;
    padding: 8px 0 22px;
}

.home-layout {
    display: block;
    width: min(100vw, var(--page-max));
    margin: 0 auto;
    align-items: start;
}

.side-skyscraper {
    position: sticky;
    top: 20px;
    display: none;
    justify-items: center;
    padding-top: 8px;
}

.section {
    margin: 0 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

.section--carousel {
    overflow: hidden;
    background: #fff;
}

.section--carousel,
.section--quick-ad,
.section--ad-tight {
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.section--quick-ad {
    contain-intrinsic-size: 1px 266px;
}

.section--ad-tight {
    contain-intrinsic-size: 1px 416px;
}

.quick-replacement-ad-slot {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    height: 262px;
    margin: 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(36, 107, 254, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, .10), rgba(217, 52, 145, .08)),
        #eef6ff;
}

.quick-replacement-ad-slot::before {
    content: "AD";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(15, 74, 134, .42);
    font-size: 18px;
    font-weight: 900;
}

.quick-replacement-ad-stage {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 262px;
    max-width: 100%;
}

.carousel {
    display: grid;
    gap: 0;
}

.stack {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.carousel__viewport {
    width: 304px;
    height: 266px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #1d64ff;
    border-radius: 14px;
    background: #eef6ff;
    contain: layout paint style;
}

.carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .42s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.carousel__slide {
    flex: 0 0 100%;
    display: grid;
    height: 100%;
    place-items: center;
}

.native-ad-shell {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #eef6ff;
}

.native-ad-stage {
    width: 308px;
    height: 352px;
    transform-origin: 0 0;
}

.mobile-stack-ad-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    justify-items: center;
    overflow: hidden;
    background: #eef6ff;
}

.mobile-stack-ad-stage {
    width: 300px;
    height: 412px;
    transform-origin: top center;
}

.single-mobile-ad-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    justify-items: center;
    overflow: hidden;
    background: #eef6ff;
}

.single-mobile-ad-stage {
    width: 300px;
    height: 112px;
    transform-origin: top center;
}

.double-mobile-ad-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    justify-items: center;
    overflow: hidden;
    background: #eef6ff;
}

.double-mobile-ad-stage {
    width: 300px;
    height: 212px;
    transform-origin: top center;
}

.triple-mobile-ad-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    justify-items: center;
    overflow: hidden;
    background: #eef6ff;
}

.triple-mobile-ad-stage {
    width: 300px;
    height: 312px;
    transform-origin: top center;
}

.bottom-native-stack-ad-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    justify-items: center;
    overflow: hidden;
}

.bottom-native-stack-ad-stage {
    width: 308px;
    height: 1044px;
    transform-origin: top center;
}

.interaction-mobile-ad-shell {
    display: grid;
    width: 100%;
    min-height: 0;
    justify-items: center;
    overflow: hidden;
    background: #eef6ff;
}

.interaction-mobile-ad-stage {
    width: 300px;
    height: 112px;
    transform-origin: top center;
}

.carousel__bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.carousel__bar button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f4f8ff;
    color: #1f4ca3;
    font-size: 12px;
    font-weight: 900;
}

.carousel__bar strong {
    min-width: 48px;
    text-align: center;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 50px);
    justify-content: center;
    gap: 10px;
}

.quick-cell {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    padding-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
}

.quick-cell__box {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid #bdd5ff;
    border-radius: 12px;
    background: #eef6ff;
    color: #1d467e;
    font-weight: 900;
}

.quick-cell__label {
    min-height: 14px;
    line-height: 14px;
    white-space: nowrap;
    color: rgba(102, 113, 132, .72);
    font-size: 12px;
    text-align: center;
}

.quick-cell__label.is-empty::before {
    content: "·";
    color: rgba(102, 113, 132, .28);
}

.global-adv-container {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 6px auto;
    place-items: center;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #333;
    border-radius: 8px;
    background: #f4f6f8;
    color: #1f2a3a;
    font: 13px/1.3 system-ui, sans-serif;
    text-align: center;
}

.global-adv-container--large {
    min-height: 250px;
    background: #fff3e6;
}

.global-adv-container--strip {
    min-height: 100px;
    background: #eef6ff;
}

.global-adv-container--side {
    width: 48px;
    min-height: 150px;
    margin: 0 auto;
    background: #f1fff0;
    font-size: 10px;
}

.global-adv-container--skyscraper {
    width: 160px;
    min-height: 600px;
    margin: 15px auto;
    background: #eef6ff;
}

.global-adv-placeholder {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    padding: 20px;
}

.ad-slot {
    display: grid;
    place-items: center;
    overflow: hidden;
    contain: layout paint style;
    border: 1px solid #333;
    border-radius: 8px;
    background: #f4f6f8;
    color: #1f2a3a;
    font: 13px/1.3 system-ui, sans-serif;
    text-align: center;
}

.ad-slot--300x100 {
    width: 300px;
    height: 100px;
    background: #eef6ff;
}

.ad-slot--300x150 {
    width: 300px;
    height: 150px;
    background: #f4efff;
}

.ad-slot--300x250 {
    width: 300px;
    height: 250px;
    background: #fff3e6;
}

.ad-slot--160x600 {
    width: 160px;
    height: 600px;
    background: #eef6ff;
}

.ad-slot--side {
    width: 48px;
    height: 150px;
    background: #f1fff0;
    font-size: 10px;
}

.ad-slot--300x100,
.ad-slot--300x150,
.ad-slot--300x250 {
    width: 100%;
    max-width: none;
}

.section .stack > .global-adv-container {
    width: 100%;
    max-width: 100%;
    margin: 6px auto;
    border: 1px solid #333;
    border-radius: 8px;
}

.section--latest {
    padding: 10px;
    border-color: rgba(36, 107, 254, .35);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow:
        inset 0 0 0 1px rgba(36, 107, 254, .06),
        0 8px 22px rgba(15, 31, 54, .06);
}

.latest-preview {
    display: grid;
    gap: 9px;
}

.latest-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 8px;
    border-left: 3px solid #246bfe;
}

.latest-preview__head h2 {
    margin: 0;
    color: #06172f;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
}

.latest-preview__head span {
    flex: 0 0 auto;
    color: rgba(102, 113, 132, .75);
    font-size: 12px;
}

.latest-preview__head span:empty {
    display: none;
}

.latest-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.latest-preview__grid .home-video-card:nth-child(n+5) {
    display: none;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.video-grid + .video-grid {
    margin-top: 10px;
}

.home-video-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
}

.native-ad-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.native-ad-card__media {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    border-radius: 12px 12px 0 0;
    background: #eef6ff;
    color: #0f4a86;
    font-weight: 900;
}

.native-ad-card__body {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 10px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    background: #fff;
    color: #0f4a86;
    font-size: 13px;
    font-weight: 800;
}

.home-video-link {
    display: block;
}

.home-video-thumb {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.14), transparent),
        linear-gradient(135deg, #263957, #8062c8);
    color: #fff;
    font-weight: 900;
}

.home-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-mark {
    font-size: 20px;
    letter-spacing: .04em;
}

.home-video-duration {
    position: absolute;
    left: 6px;
    right: auto;
    bottom: 6px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 1.2;
}

.home-video-duration:empty {
    display: none;
}

.home-video-title {
    display: -webkit-box;
    min-height: 38px;
    margin: 0;
    padding: 7px 8px 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-video-card--large,
.home-video-card--wide {
    width: 100%;
}

.home-video-card--large .home-video-thumb,
.home-video-card--wide .home-video-thumb {
    height: 150px;
    aspect-ratio: auto;
}

.interaction-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    align-items: start;
}

.interaction-row .home-video-card {
    min-width: 0;
    width: 100%;
}

.category-group {
    display: grid;
    gap: 10px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.category-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.search-result-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-left: 3px solid #246bfe;
    background: #f8fbff;
    color: var(--muted);
    font-size: 13px;
}

.search-result-heading strong {
    min-width: 0;
    overflow: hidden;
    color: #06172f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section--search-results {
    padding: 10px;
    content-visibility: visible;
}

.search-result-meta {
    min-height: 22px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.search-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.search-video-card {
    width: 100%;
    min-width: 0;
}

.search-video-card .home-video-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.search-inline-ad {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    height: 112px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(36, 107, 254, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, .10), rgba(217, 52, 145, .08)),
        #eef6ff;
}

.search-inline-ad::before {
    content: "AD";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(15, 74, 134, .42);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    pointer-events: none;
}

.search-inline-ad__stage {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 112px;
    max-width: 100%;
}

.search-empty {
    display: grid;
    min-height: 120px;
    place-items: center;
    border: 1px dashed rgba(36, 107, 254, .26);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 13px;
}

.search-pagination {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 14px;
    overflow: hidden;
    white-space: nowrap;
}

.search-page-numbers {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.search-page-link {
    display: inline-grid;
    flex: 0 0 auto;
    min-width: 24px;
    height: 28px;
    place-items: center;
    padding: 0 5px;
    border: 1px solid rgba(36, 107, 254, .22);
    border-radius: 6px;
    background: #f8fbff;
    color: #1d467e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.search-page-link--step {
    min-width: 42px;
    padding: 0 4px;
    font-size: 11px;
}

.search-page-link.is-current {
    border-color: #246bfe;
    background: #246bfe;
    color: #fff;
}

.search-page-link.is-disabled {
    opacity: .42;
    pointer-events: none;
}

.section--bottom {
    border-color: #ff9f43;
    background: #fff8ef;
}

.compliance-footer {
    margin: 0 6px;
    padding: 12px;
    border: 1px solid rgba(18, 32, 52, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    color: rgba(51, 65, 85, .86);
    font-size: 11px;
    line-height: 1.55;
}

.compliance-footer p {
    margin: 0 0 8px;
}

.compliance-footer p:last-child {
    margin-bottom: 0;
}

.compliance-footer a {
    color: #1d4ed8;
    word-break: break-all;
}

@media (max-width: 374px) {
    .quick-grid {
        grid-template-columns: repeat(4, 50px);
    }
}

@media (max-width: 760px) {
    .home-layout {
        display: block;
        width: min(100vw, var(--page-max));
    }

    .side-skyscraper {
        display: none;
    }

}

@media (max-width: 374px) {
    .ad-slot--300x100,
    .ad-slot--300x150,
    .ad-slot--300x250,
    .home-video-card--large,
    .home-video-card--wide {
        width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    .carousel__track {
        transition: none;
    }
}

.native-ad-shell,
.mobile-stack-ad-shell,
.single-mobile-ad-shell,
.double-mobile-ad-shell,
.triple-mobile-ad-shell,
.interaction-mobile-ad-shell,
.bottom-native-stack-ad-shell {
    position: relative;
    border: 1px solid rgba(36, 107, 254, .18);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, .10), rgba(217, 52, 145, .08)),
        #eef6ff;
}

.native-ad-shell::before,
.mobile-stack-ad-shell::before,
.single-mobile-ad-shell::before,
.double-mobile-ad-shell::before,
.triple-mobile-ad-shell::before,
.interaction-mobile-ad-shell::before,
.bottom-native-stack-ad-shell::before {
    content: "AD";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(15, 74, 134, .42);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .12em;
    pointer-events: none;
}

.native-ad-stage,
.mobile-stack-ad-stage,
.single-mobile-ad-stage,
.double-mobile-ad-stage,
.triple-mobile-ad-stage,
.interaction-mobile-ad-stage,
.bottom-native-stack-ad-stage {
    position: relative;
    z-index: 1;
}

#fadeinbox {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(308px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    min-height: 286px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2147483000 !important;
    box-sizing: border-box !important;
}

#fadeinbox iframe {
    display: block !important;
    width: min(308px, calc(100vw - 24px)) !important;
    height: 286px !important;
    max-width: 100% !important;
    border: 0 !important;
}

#fibCloser a {
    right: -2px !important;
    top: -34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 30px !important;
}
