/* Mobile catalogue presentation. Routing, media and data markers stay unchanged. */
[data-md-tab-panel="video"], body .sd-shell {
    color: var(--md-mobile-text, #f3f3f5);
    background: var(--md-mobile-bg, #111113);
}
.md-catalogue-header, .md-catalogue-header * { box-sizing: border-box; }
.md-catalogue-header .top, .md-catalogue-header .content, .md-catalogue-header .van-stickys {
    background: var(--md-mobile-bg, #111113);
}
.md-catalogue-header .search {
    display: flex; align-items: center; flex-wrap: nowrap;
    height: 44px; gap: 8px; padding: 0 10px;
}
#sticky.md-catalogue-header .search .logo {
    flex: 0 0 52px; width: 52px; height: 24px; margin: 0 2px 0 0; object-fit: contain;
}
.md-catalogue-header .search .seek {
    display: flex; flex: 1; min-width: 0; height: 30px; padding: 0 10px;
    border: 1px solid var(--md-mobile-border, rgba(255,255,255,.08)); border-radius: 18px;
    background: var(--md-mobile-surface, #1b1c20);
}
.md-catalogue-header .search .seek i { flex: 0 0 16px; width: 16px; height: 16px; }
.md-catalogue-header .search .seek span {
    min-width: 0; margin-left: 7px; font-family: inherit; font-size: 12px; line-height: 20px;
    color: var(--md-mobile-muted, #9899a2);
}
.md-catalogue-header .search .vault { display: flex; flex: none; gap: 2px; }
.md-catalogue-header .search .vault .vault_col {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 30px; height: 36px; margin: 0; border-radius: 8px;
}
.md-catalogue-header .search .vault .vault_col i { width: 20px; height: 20px; opacity: .85; }
.md-catalogue-header .search .vault .vault_col span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.md-catalogue-header .nav_tab { height: 40px; padding: 0 10px; gap: 8px; }
.md-catalogue-header .nav_tab .nav_tab_left { min-width: 0; height: 40px; }
.md-catalogue-header .nav_tab .van-tabs__wrap,
.md-catalogue-header .nav_tab .van-tabs__nav { height: 40px; }
.md-catalogue-header .nav_tab .van-tabs__nav {
    display: flex; align-items: stretch; gap: 22px; padding: 0;
    overflow-x: auto; scrollbar-width: none; background: transparent;
}
.md-catalogue-header .nav_tab .van-tabs__nav::-webkit-scrollbar { display: none; }
.md-catalogue-header .nav_tab a.van-tab {
    position: relative; flex: 0 0 auto; min-width: 0; height: 40px; padding: 0 1px;
    font: 14px/40px -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 600; color: var(--md-mobile-muted, #9899a2);
}
.md-catalogue-header .nav_tab a.van-tab--active { color: var(--md-mobile-accent, #ffd09b); }
.md-catalogue-header .nav_tab .nav_tab_left a.van-tab--active::after {
    left: 50%; bottom: 3px; width: 18px; height: 3px; border-radius: 3px;
    background: var(--md-mobile-accent, #ffd09b);
}
.md-catalogue-header .nav_tab .nav_tab_right {
    flex: 0 0 28px; width: 28px; height: 32px; margin: 0; background-size: 19px;
    opacity: .8;
}
.md-catalogue-header a:focus-visible, .md-video-card:focus-visible,
.md-video-card > a:focus-visible {
    outline: 2px solid var(--md-mobile-accent, #ffd09b); outline-offset: 2px;
}

/* Only catalogue containers become grids; recommendations keep their own layout. */
.theme_list[data-md-video-results], .type_list[data-md-video-results] {
    padding: 0 10px 20px;
}
.theme_list[data-md-video-results] > .list { margin: 0 0 10px; }
.theme_list[data-md-video-results] > .list > .van-row,
.type_list[data-md-video-results] > .list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start; gap: 12px 10px; margin: 0;
}
.theme_list[data-md-video-results] > .list > .van-row::before,
.theme_list[data-md-video-results] > .list > .van-row::after { content: none; }
body #app [data-md-video-results] .list .van-cell {
    display: flex; align-items: center; grid-column: 1 / -1;
    min-width: 0; min-height: 42px; margin: 0 0 -6px; padding: 10px 0 4px;
    border: 0; background: transparent;
}
[data-md-video-results] .list .van-cell::after { border: 0; }
[data-md-video-results] .list .van-cell__title {
    font-family: inherit; font-size: 16px; font-weight: 650; line-height: 24px;
    color: var(--md-mobile-text, #f3f3f5);
}
[data-md-video-results] .list .van-cell__value {
    flex: 0 0 auto; font-size: 12px; line-height: 24px; color: var(--md-mobile-muted, #9899a2);
}
[data-md-video-results] .list .van-cell__right-icon { font-size: 13px; line-height: 24px; color: inherit; }
[data-md-video-results] .list .md-video-card {
    float: none; width: auto; min-width: 0; margin: 0; padding: 0;
}
.md-video-card {
    position: relative; display: block; box-sizing: border-box; overflow: hidden;
    border-radius: 9px; background: var(--md-mobile-surface, #1b1c20);
    color: var(--md-mobile-text, #f3f3f5); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.md-video-card > a { display: block; color: inherit; text-decoration: none; }
.md-video-card .md-video-cover,
.theme_list .list .md-video-card .md-video-cover,
.type_list .list .md-video-card .md-video-cover {
    position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
    overflow: hidden; border-radius: 9px; background: #24252b;
}
.md-video-card .md-video-cover .md-video-picture {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden;
}
.md-video-card .md-video-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-video-card .md-video-title,
.theme_list .list .md-video-card .md-video-title,
.type_list .list .md-video-card .list_item_content .list_item_top .md-video-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    height: 40px; margin: 7px 8px 0; padding: 0; overflow: hidden;
    font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px;
    color: var(--md-mobile-text, #f3f3f5); overflow-wrap: anywhere;
}
.md-video-card .list_item_content, .md-video-card .list_item_top { position: static; min-width: 0; }
.md-video-card .md-video-meta,
.theme_list .list .md-video-card .md-video-meta,
.type_list .list .md-video-card .list_item_content .md-video-meta {
    position: static; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    height: 18px; min-width: 0; margin: 5px 8px 8px; padding: 0;
    font-family: inherit; font-size: 12px; line-height: 18px; color: var(--md-mobile-muted, #9899a2);
}
.md-video-card .md-video-meta .md-video-views,
.theme_list .list .md-video-card .md-video-meta .md-video-views,
.type_list .list .md-video-card .list_item_content .md-video-meta .md-video-views {
    display: flex; flex: 1; align-items: center; min-width: 0; margin: 0; overflow: hidden;
}
.md-video-card .md-video-meta .md-video-views span,
.theme_list .list .md-video-card .md-video-meta .md-video-views span,
.type_list .list .md-video-card .list_item_content .md-video-meta .md-video-views span {
    font-family: inherit; font-size: 12px; line-height: 18px; color: inherit;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.md-video-card .md-video-meta .md-video-views .list_status_icon,
.md-video-card .md-video-meta .md-video-views .list_item_icon { display: none !important; }
.md-video-card .md-video-meta .md-video-length {
    position: static; flex: 0 0 auto; max-width: 48%; margin: 0; padding: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: none; color: inherit; font: inherit;
}
/* Access labels stay visible without squeezing counts and duration into one line. */
.md-video-card .md-video-meta > .list_status_item:not(.md-video-views),
.md-video-card .md-video-meta > .list_item_status:not(.md-video-views) {
    position: absolute; z-index: 1; top: 6px; right: 6px;
    display: flex; align-items: center; gap: 3px; margin: 0 !important; padding: 3px 5px;
    border-radius: 4px; background: rgba(17,17,19,.76); color: #f3f3f5; font-size: 10px;
}
.md-video-card .md-video-meta > .list_status_item:not(.md-video-views) span,
.md-video-card .md-video-meta > .list_item_status:not(.md-video-views) span {
    font-family: inherit; font-size: 10px; line-height: 13px;
}
.md-video-card .md-video-meta > .list_status_item:not(.md-video-views) .list_status_icon,
.md-video-card .md-video-meta > .list_item_status:not(.md-video-views) .list_item_icon {
    width: 12px; height: 12px; margin: 0;
}
[data-md-video-banner] .swipers { padding: 8px 10px 2px; }
[data-md-video-banner] .swipers .swiper_img { width: 100%; border-radius: 9px !important; }
[data-md-video-banner] .md-banner-list--mobile { padding-right: 10px; padding-left: 10px; }
.theme_list[data-md-video-notice] { padding-right: 10px; padding-left: 10px; }
[data-md-video-results] .md-tab-skeleton { gap: 12px 10px; }

/* Short-drama artwork retains the previously chosen 3:4 full-source stretch. */
body .sd-shell { padding: 0 10px 24px; }
body .sd-shell .sd-top { height: 44px; gap: 12px; }
body .sd-shell .sd-brand strong { font-size: 19px; line-height: 24px; }
body .sd-shell .sd-brand span { color: var(--md-mobile-muted, #9899a2); font-size: 11px; }
body .sd-shell .sd-top .sd-back { color: var(--md-mobile-muted, #9899a2); }
body .sd-shell .sd-hero { border-radius: var(--md-mobile-radius, 12px); }
body .sd-shell .sd-slide::after {
    background: linear-gradient(180deg, rgba(17,17,19,.02) 12%, rgba(17,17,19,.2) 30%, rgba(17,17,19,.9) 63%, var(--md-mobile-bg, #111113) 100%);
}
body .sd-shell .sd-carousel-nav { background: var(--md-mobile-bg, #111113); }
body .sd-shell .sd-eyebrow, body .sd-shell .sd-score { color: var(--md-mobile-accent, #ffd09b); }
body .sd-shell .sd-watch { background: var(--md-mobile-accent, #ffd09b); color: #29221c; }
body .sd-shell .sd-dot[aria-current="true"]::after,
body .sd-shell .sd-section-title::before { background: var(--md-mobile-accent, #ffd09b); }
body .sd-shell .sd-section { margin-top: 20px; }
body .sd-shell .sd-section-head { margin-bottom: 12px; }
body .sd-shell .sd-section-title { font-size: 16px; line-height: 24px; }
body .sd-shell .sd-section-title::before { width: 3px; height: 14px; }
body .sd-shell .sd-sort { border-color: var(--md-mobile-border, rgba(255,255,255,.08)); background: var(--md-mobile-surface, #1b1c20); }
body .sd-shell .sd-sort a { color: var(--md-mobile-muted, #9899a2); }
body .sd-shell .sd-sort a.is-active { background: var(--md-mobile-accent, #ffd09b); color: #29221c; }
body .sd-shell .sd-categories { gap: 8px; margin-bottom: 14px; }
body .sd-shell .sd-categories a { border-radius: 7px; background: var(--md-mobile-surface, #1b1c20); color: var(--md-mobile-muted, #9899a2); }
body .sd-shell .sd-categories a.is-active { border-color: rgba(255,208,155,.32); background: #33291f; color: var(--md-mobile-accent, #ffd09b); }
body .sd-shell .sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
body .sd-shell .sd-card { overflow: hidden; border-radius: 9px; background: var(--md-mobile-surface, #1b1c20); }
body .sd-shell .sd-card-picture { aspect-ratio: 3 / 4; border-radius: 9px; }
body .sd-shell .sd-card-picture img { object-fit: fill; }
body .sd-shell .sd-card h3 { margin: 5px 7px 3px; font-size: 14px; line-height: 20px; color: var(--md-mobile-text, #f3f3f5); }
body .sd-shell .sd-card p { margin: 0 7px; font-size: 12px; color: var(--md-mobile-muted, #9899a2); }
body .sd-shell .sd-card-tags { margin: 6px 7px 8px; gap: 4px; }
body .sd-shell .sd-class-tag { border-color: rgba(255,208,155,.2); background: #302820; color: var(--md-mobile-accent, #ffd09b); }
body .sd-shell .sd-card-link { padding-bottom: 7px; }
body .sd-shell .sd-card-tags:last-child { margin-bottom: 0; }
body .sd-shell .sd-next { border-color: rgba(255,208,155,.24); color: var(--md-mobile-accent, #ffd09b); }
body .sd-shell .sd-empty { border-color: var(--md-mobile-border, rgba(255,255,255,.08)); background: var(--md-mobile-surface, #1b1c20); color: var(--md-mobile-muted, #9899a2); }
@media (min-width: 680px) {
    body .sd-shell .sd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
