/* Homepage sections: reference typography and spacing, existing data and ads retained. */
@media (min-width: 768px) {
    main.dx-container > *:not(.home-page-v2),
    #app-footer #ssite { display: none !important; }
}
.home-page-v2 { box-sizing: border-box; padding-bottom: 32px; }
.home-page-v2__intro { padding: clamp(18px, 2.6vw, 26px) 0 24px; }
.home-page-v2__h1 {
    margin: 0 0 10px;
    font-size: clamp(21px, 2.6vw, 29px);
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #f4f4f6;
    overflow-wrap: anywhere;
}
.home-page-v2__lead { margin: 0; color: #a9a9b6; font-size: clamp(13px, 1.2vw, 15px); line-height: 1.6; }
.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(26px, 3.4vw, 40px);
    border-radius: 20px;
    background: #17171e;
    color: #f4f4f6;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
}
.home-hero__slide { display: grid; grid-template-columns: 63% minmax(0, 1fr); }
.home-hero__slide[hidden] { display: none; }
.home-hero__art {
    position: relative;
    display: flex;
    align-items: center;
    aspect-ratio: 16 / 9;
    min-width: 0;
    background:
        radial-gradient(70% 80% at 0 100%, hsl(var(--hero-hue) 85% 37% / .85), transparent 70%),
        radial-gradient(80% 65% at 100% 0, hsl(calc(var(--hero-hue) + 40) 65% 40% / .75), transparent 75%),
        linear-gradient(145deg, hsl(var(--hero-hue) 80% 20%), hsl(calc(var(--hero-hue) + 30) 75% 10%));
    color: #f4f4f6;
    text-decoration: none;
}
.home-hero__image { width: 100%; height: 100%; object-fit: cover; }
.home-hero__slide--group-ad .home-hero__image { object-fit: contain; }
.home-hero__mark { position: absolute; right: 12px; top: 12px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: rgba(0,0,0,.3); color: #ddd; font-size: 12px; }
.home-hero__creative { position: relative; z-index: 1; width: 100%; padding: clamp(22px, 3vw, 42px); }
.home-hero__brand { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: clamp(14px, 1.5vw, 19px); font-weight: 650; }
.home-hero__brand > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #ff2f6d, #ff5a3d); color: #fff; }
.home-hero__creative strong { display: block; font-size: clamp(28px, 4.3vw, 64px); line-height: 1.2; font-weight: 850; letter-spacing: -.025em; overflow-wrap: anywhere; }
.home-hero__points { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: clamp(12px, 1.4vw, 18px); }
.home-hero__points span::before { content: '✓ '; color: #ff9985; }
.home-hero__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(22px, 2.4vw, 40px);
    padding-bottom: 50px;
    background: radial-gradient(100% 80% at 0 100%, #08261a, transparent), linear-gradient(130deg, #0b2028, #092139);
}
.home-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.home-hero__tags span { padding: 4px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11.5px; font-weight: 600; }
.home-hero__title { margin: 0 0 12px; color: #f4f4f6; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; line-height: 1.24; overflow-wrap: anywhere; }
.home-hero__desc { margin: 0 0 14px; color: rgba(255,255,255,.72); font-size: clamp(13px, 1.2vw, 15.5px); line-height: 1.65; overflow-wrap: anywhere; }
.home-hero__meta { margin: 0 0 18px; color: #6f6f7e; font-size: 12.5px; overflow-wrap: anywhere; }
.home-hero__cta { display: inline-flex; align-items: center; align-self: flex-start; gap: 14px; min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#ff2f6d,#ff5a3d); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(255,47,109,.3); cursor: pointer; opacity: 1; }
.home-hero__cta:hover { color: #fff; filter: brightness(1.08); }
.home-hero__tags span, .home-hero__points span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.home-hero__cta { max-width: 100%; overflow-wrap: anywhere; }
.home-hero__arrow { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; padding: 0 0 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(10,10,14,.55); color: #fff; font-size: 32px; line-height: 1; transform: translateY(-50%); cursor: pointer; backdrop-filter: blur(8px); }
.home-hero__arrow--prev { left: 16px; }
.home-hero__arrow--next { right: calc(37% + 16px); }
.home-hero__arrow:hover { background: #ff2f6d; }
.home-hero__dots { position: absolute; bottom: 16px; right: clamp(18px,3.4vw,46px); display: flex; gap: 8px; }
.home-hero__dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-hero__dot span { display: block; width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.home-hero__dot[aria-pressed="true"] span { background: linear-gradient(90deg,#ff2f6d,#ff7a3d); }
.home-hero:focus-visible, .home-hero button:focus-visible, .home-hero a:focus-visible { outline: 2px solid #ff6b95; outline-offset: -3px; }
@media (max-width: 759px) {
    .home-hero { border-radius: 16px; }
    .home-hero__slide { grid-template-columns: minmax(0,1fr); }
    .home-hero__brand { margin-bottom: 10px; }
    .home-hero__brand > span { width: 28px; height: 28px; border-radius: 8px; }
    .home-hero__creative { padding: 18px 22px; }
    .home-hero__creative strong { font-size: clamp(25px,7vw,42px); }
    .home-hero__creative strong br { display: none; }
    .home-hero__points { margin-top: 12px; gap: 8px; }
    .home-hero__body { padding: 18px 20px 50px; }
    /* 16:9 图片区域的垂直中点；百分比 margin 按轮播宽度计算。 */
    .home-hero__arrow { top: 0; margin-top: 28.125%; width: 44px; height: 44px; font-size: 30px; }
    .home-hero__arrow--prev { left: 8px; }
    .home-hero__arrow--next { right: 8px; }
    .home-hero__dots { left: 0; right: 0; bottom: 12px; justify-content: center; }
}
@media (max-width: 390px) {
    .home-hero__dots { gap: 4px; }
    .home-hero__dot { width: 18px; }
    .home-hero__dot span { width: 16px; }
    .home-hero__body { padding: 16px 16px 46px; }
    .home-hero__tags { margin-bottom: 9px; }
    .home-hero__title { margin-bottom: 9px; }
    .home-hero__desc { margin-bottom: 10px; }
    .home-hero__meta { margin-bottom: 14px; }
    .home-hero__cta { min-height: 40px; padding: 0 21px; font-size: 14px; }
}
.home-page-v2__section { margin: 0; }
.home-page-v2__section + .home-page-v2__section { margin-top: clamp(34px, 4vw, 56px); }
.home-page-v2__section-head {
    display: grid;
    grid-template-columns: fit-content(45%) minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 16px;
}
.home-page-v2__section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-width: 0;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
    font-weight: 750;
    color: #f4f4f6;
    overflow-wrap: anywhere;
}
.home-page-v2__section-title::before {
    content: '';
    width: 4px;
    height: 19px;
    flex: none;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--dx-primary-color), #ff7a3d);
}
.home-page-v2__section-sub {
    min-width: 0;
    padding-bottom: 2px;
    color: #6f6f7e;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.home-page-v2__section-more { display: inline-flex; grid-column: 3; align-items: center; flex: none; gap: 4px; color: #a9a9b6; font-size: 13px; line-height: 1.6; }
.home-page-v2__section-more:hover { color: #ff6b95; }
.home-page-v2__section-more-icon { width: 18px; height: 16px; }
.home-page-v2__row.video-items-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-page-v2__row.video-items-v2 > li { min-width: 0; }
.home-drama-grid--home + .home-content-empty { margin-top: 18px; }
@media (min-width: 560px) and (max-width: 1199px) {
    .home-drama-grid--home > :nth-child(n+9) { display: none; }
}
.home-page-v2 .video-card-v2 {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    transform: none;
}
.home-page-v2 .video-card-v2__thumb { border-radius: 14px; }
.home-page-v2 .video-card-v2__info { gap: 8px; padding: 10px 0 0; }
.home-page-v2 .video-card-v2__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    min-height: 0;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.5;
    white-space: normal;
    overflow: hidden;
    -webkit-line-clamp: 2;
}
.home-page-v2 .video-card-v2__tags a {
    color: #6f6f7e;
    border-color: rgba(255, 255, 255, .07);
}
.home-page-v2 .video-card-v2__tags a:hover {
    color: #fff;
    border-color: rgba(255, 47, 109, .45);
}
.home-page-v2 .video-card-v2__duration {
    right: 7px;
    bottom: 7px;
    padding: 4px 7px;
    border: 0;
    border-radius: 6px;
    background: rgba(6, 6, 9, .78);
    font-size: 11px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
    /* An unconfigured ad slot must not add two empty margin gaps above the intro. */
    main.dx-container:has(> .home-page-v2) > .my-2:not(:has(> .grid > *)) { display: none; }
    .home-page-v2 { padding-bottom: 20px; }
    .home-page-v2__intro { padding: 18px 0 22px; }
    .home-page-v2__section-head {
        grid-template-columns: minmax(0, 1fr) max-content;
        column-gap: 12px;
        row-gap: 6px;
        margin-bottom: 12px;
    }
    .home-page-v2__section-title { grid-column: 1; }
    .home-page-v2__section-sub {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0 0 0 14px;
    }
    .home-page-v2__section-more { grid-column: 2; grid-row: 1; }
    .home-page-v2__row.video-items-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
