@charset "utf-8";

:root {
    color-scheme: dark;
    --ys-bg: #2b2a2a;
    --ys-bg-subtle: #303030;
    --ys-surface: #333333;
    --ys-surface-raised: #3b3b3b;
    --ys-surface-soft: #424242;
    --ys-border: #515151;
    --ys-border-soft: #414141;
    --ys-text: #f3f6fa;
    --ys-text-secondary: #aab7c7;
    --ys-text-muted: #7f8fa3;
    --ys-accent: #19c463;
    --ys-accent-hover: #24d974;
    --ys-accent-soft: #163426;
    --ys-info: #55c7d2;
    --ys-info-soft: #17333b;
    --ys-success: #35c77a;
    --ys-success-soft: #163426;
    --ys-danger: #ff7582;
    --ys-danger-soft: #3b2027;
    --ys-warning: #f2b84b;
    --ys-warning-soft: #342a19;
    --ys-header-bg: rgba(43, 42, 42, .97);
    --ys-toolbar-bg: rgba(43, 42, 42, .98);
    --ys-panel-bg: rgba(51, 51, 51, .985);
    --ys-on-accent: #07140d;
    --ys-selection-text: #fff;
    --ys-radius-sm: 8px;
    --ys-radius: 12px;
    --ys-radius-pill: 999px;
    --ys-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    --ys-shadow-soft: 0 6px 20px rgba(0, 0, 0, .14);
    --ys-focus-ring: rgba(25, 196, 99, .2);
    --ys-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
    --ys-type-section: 16px;
    --ys-type-section-mobile: 15px;
    --ys-type-body: 14px;
    --ys-type-meta: 12px;
    --ys-section-line: 22px;
    --ys-section-gap: 12px;
}

/* DSYSTV 2026 unified component skin: all active SeaCMS page archetypes. */
button,
.btn,
input,
select,
textarea,
.form-control {
    font-family: var(--ys-font);
}

.btn,
.form-control,
.input-group-addon,
.dropdown-menu,
.modal-content,
.pagination > li > a,
.pagination > li > span {
    border-radius: var(--ys-radius-sm);
}

.btn-default,
.btn-link,
.form-control,
.input-group-addon,
.dropdown-menu,
.modal-content,
.popover,
.well,
.panel,
.list-group-item {
    border-color: var(--ys-border);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
}

.form-control:focus,
.btn-default:hover,
.btn-default:focus,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft);
    color: var(--ys-text);
    box-shadow: 0 0 0 3px var(--ys-focus-ring);
}

.btn-primary,
.btn-success,
.hy-play-list .item .playlist ul li.active a,
.hy-video-details .item .content .play a,
.hy-common .item .content .head .text-color {
    border-color: var(--ys-accent);
    background: var(--ys-accent);
    color: var(--ys-on-accent) !important;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.hy-video-details .item .content .play a:hover {
    border-color: var(--ys-accent-hover);
    background: var(--ys-accent-hover);
    color: var(--ys-on-accent) !important;
}

.label,
.badge,
.hy-video-list .item .pic .score,
.hy-video-list .item .pic .text,
.hy-topic-list .item .pic .text {
    border-radius: var(--ys-radius-pill);
    font-weight: 600;
}

.label-default,
.badge {
    background: var(--ys-surface-soft);
    color: var(--ys-text-secondary);
}
.label-primary,
.label-info { background: var(--ys-info-soft); color: var(--ys-info); }
.label-success { background: var(--ys-success-soft); color: var(--ys-success); }
.label-warning { background: var(--ys-warning-soft); color: var(--ys-warning); }
.label-danger { background: var(--ys-danger-soft); color: var(--ys-danger); }

.hy-video-list .item .pic,
.hy-topic-list .item .pic,
.related-card-poster {
    border-radius: var(--ys-radius-sm);
    background: var(--ys-surface-raised);
    box-shadow: inset 0 0 0 1px var(--ys-border-soft);
}

.hy-video-list .item:hover .pic,
.hy-topic-list .item:hover .pic,
.related-card:hover .related-card-poster {
    box-shadow: 0 0 0 2px var(--ys-accent), var(--ys-shadow-soft);
}

.hy-video-list .item .title,
.hy-video-list .item .title a,
.hy-topic-list .item .title,
.related-card-title a {
    color: var(--ys-text);
    font-weight: 600;
}

.hy-video-list .item .subtitle,
.hy-video-list .item .text-muted,
.hy-topic-list .item .text-muted,
.related-card-meta {
    color: var(--ys-text-muted) !important;
}

.hy-video-head h3,
.hy-video-head h4,
.hy-common .head h3,
.hy-common .head h4,
.hy-topic-content .head h3 {
    position: relative;
    padding-left: 13px;
}

.hy-video-head h3:before,
.hy-video-head h4:before,
.hy-common .head h3:before,
.hy-common .head h4:before,
.hy-topic-content .head h3:before {
    position: absolute;
    top: .22em;
    bottom: .22em;
    left: 0;
    width: 3px;
    border-radius: var(--ys-radius-pill);
    background: var(--ys-accent);
    content: "";
}

.nav-tabs,
.nav-pills,
.hy-cascade .content-meun,
.hy-play-list .item .panel,
.hy-new-list .item,
.hy-comment-list .item,
.table > thead > tr > th,
.table > tbody > tr > td {
    border-color: var(--ys-border-soft);
}

.nav-tabs > li > a,
.nav-pills > li > a,
.pagination > li > a,
.pagination > li > span,
.pager li > a,
.pager li > span {
    border-color: var(--ys-border);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-pills > li.active > a,
.pagination > .active > a,
.pagination > .active > span {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft);
    color: var(--ys-accent);
}

.dropdown-menu > li > a,
.dropdown-menu > li > a:visited { color: var(--ys-text-secondary); }
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--ys-accent-soft);
    color: var(--ys-text);
}

.alert-info { border-color: var(--ys-info); background: var(--ys-info-soft); color: var(--ys-info); }
.alert-success { border-color: var(--ys-success); background: var(--ys-success-soft); color: var(--ys-success); }
.alert-warning { border-color: var(--ys-warning); background: var(--ys-warning-soft); color: var(--ys-warning); }
.alert-danger { border-color: var(--ys-danger); background: var(--ys-danger-soft); color: var(--ys-danger); }

.iconfont,
[class^="icon-"],
[class*=" icon-"] {
    color: inherit;
}

.hy-head-menu .item .menulist li.active a:after,
.hy-video-head .active:after {
    border-radius: var(--ys-radius-pill);
    background: var(--ys-accent);
}

.hy-gototop .item > li > a,
.hy-gototop .item > li > button,
.mobile-toolbar button,
.theme-mode-option {
    border-color: var(--ys-border);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
}

.hy-gototop .item > li > a:hover,
.hy-gototop .item > li > button:hover,
.mobile-toolbar button:hover,
.theme-mode-option.active {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft);
    color: var(--ys-accent);
}

/* The playback canvas stays neutral black; only its surrounding controls follow the theme. */
.hy-player .item .info,
.page-play .hy-player .item .info,
.page-play .embed-responsive,
.page-play #playleft {
    background: #050607 !important;
}

:root[data-theme="light"] {
    color-scheme: light;
    --ys-bg: #f4f7fa;
    --ys-bg-subtle: #eaf0f5;
    --ys-surface: #ffffff;
    --ys-surface-raised: #f7f9fc;
    --ys-surface-soft: #e8eef4;
    --ys-border: #cfd9e3;
    --ys-border-soft: #e1e8ef;
    --ys-text: #17202b;
    --ys-text-secondary: #526173;
    --ys-text-muted: #718095;
    --ys-accent: #079b43;
    --ys-accent-hover: #05863a;
    --ys-accent-soft: #def5e9;
    --ys-info: #087c8c;
    --ys-info-soft: #ddf4f6;
    --ys-success: #168252;
    --ys-success-soft: #def5e9;
    --ys-danger: #c84250;
    --ys-danger-soft: #fde7e9;
    --ys-warning: #a86500;
    --ys-warning-soft: #fff0d4;
    --ys-header-bg: rgba(255, 255, 255, .97);
    --ys-toolbar-bg: rgba(255, 255, 255, .98);
    --ys-panel-bg: rgba(255, 255, 255, .985);
    --ys-on-accent: #ffffff;
    --ys-selection-text: #ffffff;
    --ys-shadow: 0 12px 32px rgba(35, 54, 75, .12);
    --ys-shadow-soft: 0 6px 20px rgba(35, 54, 75, .09);
    --ys-focus-ring: rgba(7, 155, 67, .18);
}

html {
    background: var(--ys-bg);
    font-size: var(--ys-type-body);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--ys-bg);
    color: var(--ys-text-secondary);
    font-family: var(--ys-font);
    font-size: var(--ys-type-body);
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* The bottom-floating ad injects body padding that becomes an empty strip at page end. */
html body {
    position: relative !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

/* Provider bottom-float spacer: the ad itself is fixed, so this empty flow node must not reserve height. */
body > #IBotp + ptddm {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

::selection {
    background: var(--ys-focus-ring);
    color: var(--ys-selection-text);
}

a,
a:link,
a:visited {
    color: var(--ys-text-secondary);
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, opacity .18s ease;
}

a:hover,
a:focus,
.text-color {
    color: var(--ys-accent);
}

:focus-visible {
    outline: 2px solid var(--ys-accent);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0;
    color: var(--ys-text);
    font-family: var(--ys-font);
    font-weight: 600;
    line-height: 1.35;
}

h1, .h1 { font-size: 24px; }
h2, .h2 { font-size: 20px; }
h3, .h3 { font-size: 18px; }
h4, .h4 { font-size: 16px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

p { margin: 0 0 10px; }
small, .small, .text-muted { color: var(--ys-text-muted) !important; }
strong, b { color: var(--ys-text); font-weight: 600; }
hr { border-color: var(--ys-border-soft); }

/* Page canvas and shared surfaces */
.hy-head-menu,
.hy-layout,
.hy-player,
.hy-video-details,
.hy-cascade,
.hy-login,
.hy-common .item .content,
.hy-comment-list .item .content,
.hy-new-content .item .des {
    border: 1px solid var(--ys-border-soft);
    background: var(--ys-surface);
    box-shadow: none;
}

.hy-layout {
    margin-top: var(--ys-section-gap);
    padding: 12px;
    border: 0;
    border-radius: var(--ys-radius);
}

/* Section surfaces should blend into the dark page canvas without pale outlines. */
.hy-player,
.hy-video-details,
.hy-cascade {
    border: 0;
}

.hy-layout [class*=col-],
.hy-layout-main [class*=col-] {
    padding: 7px;
}

.hy-layout + .hy-layout { margin-top: 10px; }

.hy-right-qrcode dl {
    border: 1px solid var(--ys-border);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
}

.hy-main-side .side,
.hy-topic-content .head,
.hy-video-head h4,
.hy-video-details.active .item .content,
.hy-cascade .left-head li a,
.hy-cascade .left-head li.text,
.hy-new-content .item .head,
.hy-gototop .item > li > .history .head {
    border-color: var(--ys-border-soft);
}

/* Header and navigation */
.hy-head-menu {
    border-width: 0 0 1px;
    border-color: var(--ys-border);
    border-radius: 0;
    background: var(--ys-header-bg);
}

.hy-head-menu .item { height: 60px; }
.hy-head-menu .item .menulist li a {
    color: var(--ys-text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.hy-head-menu .item .menulist li.active a,
.hy-head-menu .item .menulist li.active a:hover,
.hy-head-menu .item .menulist li.active a:focus {
    border-bottom-color: var(--ys-accent);
    color: var(--ys-text);
}

.desktop-theme-utility {
    position: relative;
}

.desktop-theme-toggle[aria-expanded="true"] { color: var(--ys-accent) !important; }

.desktop-theme-panel {
    position: absolute;
    z-index: 1100;
    right: 65px;
    bottom: 0;
    width: 264px;
    padding: 13px;
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius);
    background: var(--ys-surface);
    box-shadow: var(--ys-shadow);
}
.desktop-theme-panel[hidden] { display: none !important; }
.desktop-theme-panel::after {
    position: absolute;
    right: -8px;
    bottom: 17px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--ys-surface);
    content: "";
}
.desktop-theme-panel > strong {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
}

.theme-mode-options {
    display: grid;
    grid-template-columns: 1.35fr .8fr .8fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius);
    background: var(--ys-bg-subtle);
}
.theme-mode-options button {
    min-width: 0;
    height: 32px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--ys-radius-sm);
    background: transparent;
    color: var(--ys-text-muted);
    font-size: 12px;
    line-height: 32px;
    white-space: nowrap;
}
.theme-mode-options button:hover,
.theme-mode-options button:focus-visible { color: var(--ys-text); }
.theme-mode-options button.active {
    background: var(--ys-surface);
    color: var(--ys-accent);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
    font-weight: 600;
}

.hy-head-menu .item .search .form-control,
.mobile-toolbar-search input,
.form-control,
input[type="text"],
input[type="password"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-sm);
    background: var(--ys-surface-raised);
    color: var(--ys-text);
    box-shadow: none;
}

.hy-head-menu .item .search .form-control::placeholder,
.mobile-toolbar-search input::placeholder,
.form-control::placeholder,
textarea::placeholder { color: var(--ys-text-muted); opacity: 1; }

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--ys-accent);
    box-shadow: 0 0 0 3px var(--ys-accent-soft);
}

.breadcrumb {
    min-height: 38px;
    margin: 0;
    padding: 8px 15px;
    border: 0;
    border-bottom: 1px solid var(--ys-border-soft);
    border-radius: 0;
    background: var(--ys-bg-subtle) !important;
    color: var(--ys-text-muted);
    font-size: 12px;
}

.breadcrumb > li + li:before { color: #505860; }
.breadcrumb a { color: var(--ys-text-secondary); }

/* Detail/play breadcrumbs are navigation only, not a full content surface. */
.breadcrumb-layout {
    margin-top: 5px;
    padding: 0 7px;
    border: 0;
    background: transparent;
}

.breadcrumb-layout .breadcrumb {
    min-height: 0;
    padding: 3px 0;
    border: 0;
    background: transparent !important;
    line-height: 20px;
}

/* Keep variety/anime ranking aligned with the desktop feature poster. */
@media (min-width: 992px) {
	.type-1 .channel-feature-row > .channel-ranking-column,
	.type-2 .channel-feature-row > .channel-ranking-column {
		display: none !important;
	}

	.type-3 .channel-feature,
    .type-4 .channel-feature {
        float: left;
        margin: 0;
    }

    .channel-feature-row {
        display: flex;
        align-items: stretch;
		overflow: hidden;
    }

    .channel-ranking-column {
        display: flex;
        padding: 0 0 0 10px;
    }

    .channel-ranking-panel {
        display: flex;
        width: 100%;
        min-height: 0;
        padding: 10px 12px;
        flex: 1 1 auto;
        flex-direction: column;
        border: 0;
        background: transparent;
		overflow: hidden;
    }

    .channel-ranking-panel .head { flex: 0 0 auto; }
    .channel-ranking-panel .item {
		min-height: 0;
		flex: 1 1 auto;
		overflow: hidden;
	}
    .channel-ranking-panel .item ul {
        display: grid;
        height: 100%;
        grid-template-rows: repeat(10, minmax(0, 1fr));
		overflow: hidden;
    }

	.channel-ranking-panel .item ul:before,
	.channel-ranking-panel .item ul:after {
		display: none;
		content: none;
	}

    .channel-ranking-panel .item li {
        display: flex;
        min-height: 0;
        align-items: center;
        margin: 0;
    }

    .channel-ranking-panel .item li > a {
        min-width: 0;
        flex: 1 1 auto;
        order: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .channel-ranking-panel .item li > .pull-right {
        margin-left: 8px;
        order: 2;
        flex: 0 0 auto;
    }
}

/* Section hierarchy */
.hy-video-head,
.hy-video-min-head,
.hy-topic-content .head,
.hy-new-content .item .head {
    position: relative;
}

.hy-video-head {
    padding: 5px 6px 7px;
}

.hy-video-min-head { padding-right: 6px; padding-left: 6px; }
.hy-video-list .item .title h3,
.hy-video-list .item .title h5 { margin-top: 7px; }
.hy-video-list .item .subtitle { margin-top: 3px; }
.page-latest .latest-card-time {
    display: block;
    max-width: none;
    margin-top: 3px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}
.hy-video-text-list .item { margin-top: 6px; }
.hy-video-list.side .head,
.hy-video-list.side .item li,
.hy-topic-content .head,
.hy-new-content .item .head { margin-bottom: var(--ys-section-gap); }

.hy-video-head h2,
.hy-video-head h3,
.hy-video-head h4,
.hy-video-min-head h4,
.hy-video-min-head h5,
.hy-topic-content .head h3,
.hy-new-content .item .head h3,
.hy-common .head h3,
.hy-common .head h4,
.hy-video-ranking .head h4 {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--ys-text);
    font-size: var(--ys-type-section);
    line-height: var(--ys-section-line);
    font-weight: 600;
    letter-spacing: .01em;
}

.hy-video-head h2,
.hy-video-head h3,
.hy-topic-content .head h3,
.hy-video-head h4,
.hy-video-min-head h4,
.hy-video-min-head h5 { font-size: var(--ys-type-section); }

.hy-video-head h2 .icon,
.hy-video-head h3 .icon,
.hy-video-head h4 .icon,
.hy-video-min-head h4 .icon,
.hy-video-min-head h5 .icon,
.hy-video-ranking .head h4 .icon {
    margin-right: 6px;
    font-size: 16px;
    line-height: 1;
    vertical-align: 0;
}

.hy-video-ranking.side {
    margin-bottom: 10px;
    padding: 16px 0;
}

.hy-video-ranking .head {
    min-height: 32px;
    margin-bottom: 10px;
}

.hy-video-ranking .head .pull-right {
    font-size: var(--ys-type-meta);
    line-height: var(--ys-section-line);
}

.hy-video-ranking .item li {
    margin-top: 8px;
    line-height: 20px;
}

.page-gbook .hy-video-head {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

.page-gbook .hy-video-head h4 {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 22px;
}

.page-gbook .hy-common-text {
    display: grid;
    gap: var(--ys-section-gap);
}

.hy-video-head h2:before,
.hy-video-head h3:before,
.hy-video-head h4:before,
.hy-video-min-head h5:before {
    background: var(--ys-accent);
}

.hy-video-head .pull-right,
.hy-video-head .pull-right a,
.hy-topic-content .head .pull-right {
    color: var(--ys-text-muted);
    font-size: 12px;
}

/* Poster cards and lists */
.videopic {
    overflow: hidden;
    border-radius: var(--ys-radius-sm);
    background-color: var(--ys-surface-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.videopic:after {
    background: linear-gradient(180deg, transparent 62%, rgba(7, 9, 11, .46) 100%);
}

.videopic .score {
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 5px;
    border-radius: var(--ys-radius-sm);
    background: var(--ys-accent);
    color: var(--ys-on-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.videopic .score:before { display: none; }

.videopic .textbg,
.videopic .note {
    color: #f1f4f6;
    background: rgba(6, 8, 10, .46);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .88);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

/* Keep normal variety-show date remarks readable on one poster line. */
.videopic .note {
    max-width: 100%;
    padding: 4px 5px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: -.2px;
    white-space: nowrap;
    text-overflow: clip;
}

@media (max-width: 767px) {
    .videopic .note {
        padding: 3px;
        font-size: 10px;
        letter-spacing: -.35px;
    }
}

.hy-video-list .item .title,
.hy-video-list .item .title a,
.hy-video-text-list .item li .title a,
.hy-video-ranking li .title,
.hy-video-ranking li .title a {
    color: var(--ys-text);
    font-size: var(--ys-type-body);
    font-weight: 500;
}

.hy-video-list .item .text,
.hy-video-list .item .text a,
.hy-video-list .item p,
.hy-video-text-list .item li p,
.hy-video-ranking li,
.hy-video-ranking .text-overflow .pull-right {
    color: var(--ys-text-muted);
    font-size: var(--ys-type-meta);
}

.hy-video-list .item .videopic:hover {
    box-shadow: 0 0 0 1px var(--ys-accent), 0 10px 24px rgba(0, 0, 0, .24);
}

.hy-video-ranking li .number {
    background: var(--ys-surface-soft);
    color: var(--ys-text-muted);
}

.hy-video-ranking li .number.active {
    background: var(--ys-accent);
    color: var(--ys-on-accent);
}

/* Filters, tabs, tags and pagination */
.hy-index-menu li a,
.hy-index-tags li a,
.hy-cascade .content-meun .item ul li a,
.hy-cascade .left-head li a,
.hy-switch-tabs .nav-tabs li a,
.hy-page ul li a,
.hy-page ul li .num,
.search-order-mobile a,
.hy-play-list .item .panel .playlist ul li a,
.btn,
.btn-default {
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-sm);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
    font-size: 13px;
}

.hy-index-menu li a:hover,
.hy-index-tags li a:hover,
.hy-cascade .content-meun .item ul li a:hover,
.hy-cascade .content-meun .item ul li a.active,
.hy-cascade .left-head li a.active,
.hy-switch-tabs .nav-tabs li.active a,
.hy-page ul li a:hover,
.hy-page ul li.active a,
.search-order-mobile a.text-color,
.btn-warning,
.btn-primary {
    border-color: var(--ys-accent);
    background: var(--ys-accent);
    color: var(--ys-on-accent);
    font-weight: 600;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--ys-accent-hover);
    background: var(--ys-accent-hover);
    color: var(--ys-on-accent);
}

.hy-switch-tabs .nav-tabs {
    border-bottom: 1px solid var(--ys-border);
}

.hy-switch-tabs .nav-tabs li a {
    border-color: transparent;
    background: transparent;
    font-size: var(--ys-type-section);
}

/* Full-site map uses the same quiet section system as lists and rankings. */
.page-map .container > .row > [class*=col-] {
    padding-right: 0;
    padding-left: 0;
}

.map-section {
    padding: 16px;
}

.map-section-head {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--ys-section-gap);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ys-border-soft);
}

.map-section-head h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    color: var(--ys-text);
    font-size: var(--ys-type-section);
    line-height: var(--ys-section-line);
    font-weight: 600;
}

.map-section-head h2::before {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 3px;
    border-radius: var(--ys-radius-pill);
    background: var(--ys-accent);
    content: "";
}

.map-section-head h2 span {
    margin-left: 8px;
    color: var(--ys-text-muted);
    font-size: var(--ys-type-meta);
    font-weight: 400;
}

.map-section-more {
    color: var(--ys-text-muted);
    font-size: var(--ys-type-meta);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px 16px;
    margin: 0;
}

.map-grid li {
    min-width: 0;
}

.map-grid a {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    color: var(--ys-text-secondary);
    font-size: var(--ys-type-body);
}

.map-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-update {
    flex: 0 0 auto;
    color: var(--ys-text-muted);
    font-size: var(--ys-type-meta);
}

.hy-switch-tabs .nav-tabs li.active a,
.hy-switch-tabs .nav-tabs li.active a:hover,
.hy-switch-tabs .nav-tabs li.active a:focus {
    border: 0;
    border-bottom: 2px solid var(--ys-accent);
    border-radius: 0;
    background: transparent;
    color: var(--ys-accent);
}

/* Detail and playback */
.hy-video-details .item .content h3,
.hy-video-details .item .content h1 {
    color: var(--ys-text);
    font-size: 22px;
    font-weight: 600;
}

.hy-video-details .item .content li,
.hy-video-details .item .content p {
    color: var(--ys-text-secondary);
    font-size: 14px;
}

.hy-video-details .item .content .text-muted { color: var(--ys-text-muted) !important; }

.hy-play-list .item .panel {
    border-color: var(--ys-border-soft);
    background: transparent;
}

.hy-play-list .item .panel .option,
.hy-play-list.play .item .panel .option,
.hy-play-list.play .item .panel .playlist,
.hy-player .item .footer {
    background: var(--ys-surface);
    color: var(--ys-text-secondary);
}

.hy-play-list .item .panel .playlist ul li a:hover,
.hy-play-list .item .panel .playlist ul li a.active,
.hy-play-list .item .panel .playlist ul li a:focus {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft);
    color: var(--ys-accent);
}

.hy-player .item .info { background: #050607; }

.player-quick-actions { display:none !important; }
.mobile-nav-utility > a,
.mobile-nav-utility > .mobile-nav-share {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--ys-text-muted) !important;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
}
.mobile-nav-utility > a .icon,
.mobile-nav-utility > .mobile-nav-share .icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: inherit !important;
    font-size: 17px !important;
    line-height: 18px;
    vertical-align: middle;
}

.mobile-theme-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--ys-border-soft);
}
.theme-mode-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: var(--ys-text-secondary);
    font-size: 12px;
}
.theme-mode-label .icon { color: var(--ys-accent); font-size: 17px; }
.mobile-theme-control .theme-mode-options { flex: 1 1 auto; }

.mobile-nav-panel,
.mobile-watch-history-panel {
    border-color: var(--ys-border) !important;
    background: var(--ys-panel-bg) !important;
    box-shadow: var(--ys-shadow) !important;
}
.mobile-nav-item {
    border: 1px solid var(--ys-border-soft);
    background: var(--ys-surface-raised) !important;
    color: var(--ys-text-secondary) !important;
}
.mobile-nav-item.active {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft) !important;
    color: var(--ys-accent) !important;
    box-shadow: none !important;
}
.mobile-watch-history-head { color: var(--ys-text) !important; }
.mobile-watch-history-clear,
.mobile-watch-history-empty { color: var(--ys-text-muted) !important; }
.mobile-watch-history-item {
    border-top-color: var(--ys-border-soft) !important;
    color: var(--ys-text-secondary) !important;
}
.mobile-watch-history-item .icon { color: var(--ys-accent) !important; }
.mobile-watch-history-item > .icon {
    flex: 0 0 18px;
    font-size: 17px;
}
.mobile-watch-history-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
}
.mobile-watch-history-content strong {
    overflow: hidden;
    color: var(--ys-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-watch-history-content small {
    overflow: hidden;
    color: var(--ys-text-muted);
    font-size: 11px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hy-player .item .sidebar { background: var(--ys-surface-raised); }
.hy-player .item .footer { border-color: var(--ys-border); }

.playlist-line-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    background: var(--ys-surface);
}

.playlist-line-button {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-sm);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
    font-size: 13px;
    line-height: 36px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-line-button:hover,
.playlist-line-button:focus,
.playlist-line-button.active {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft);
    color: var(--ys-accent);
}

.playlist-line-button.active { font-weight: 600; }

#playlist > .panel {
    margin: 0;
    border: 0;
    box-shadow: none;
}

#playlist > .panel > .option.collapsed { display: none; }

#playlist > .panel > .option:not(.collapsed) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 38px;
    padding: 8px 14px;
    border-top: 1px solid var(--ys-border-soft);
}

.video-playlist-section .hy-play-list .item .panel .playlist ul li {
    width: 25% !important;
}

.hy-play-list .item .panel .playlist ul.playlist-has-long-labels {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hy-play-list .item .panel .playlist ul.playlist-has-long-labels::before,
.hy-play-list .item .panel .playlist ul.playlist-has-long-labels::after {
    display: none;
    content: none;
}

.hy-play-list .item .panel .playlist ul.playlist-has-long-labels li,
.video-playlist-section .hy-play-list .item .panel .playlist ul.playlist-has-long-labels li {
    float: none;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
}

.playlist-has-long-labels li a {
    display: flex !important;
    min-height: 42px;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 7px 8px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 17px;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word;
}

#playlist > .panel > .option:not(.collapsed) .playlist-line-name,
#playlist > .panel > .option:not(.collapsed) .playlist-line-intro { display: none; }

/* Tables, messages, account and article pages */
.table { color: var(--ys-text-secondary); }
.table > thead > tr > th {
    border-bottom-color: var(--ys-border);
    color: var(--ys-text);
    font-size: 13px;
}
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th { border-top-color: var(--ys-border-soft); }

:root[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd),
:root[data-theme="light"] .table-hover > tbody > tr:hover { background: var(--ys-bg-subtle); }

.panel,
.well,
.modal-content,
.dropdown-menu {
    border-color: var(--ys-border);
    background: var(--ys-surface);
    color: var(--ys-text-secondary);
    box-shadow: var(--ys-shadow);
}

.panel-heading,
.modal-header,
.modal-footer {
    border-color: var(--ys-border);
    background: var(--ys-surface-raised);
    color: var(--ys-text);
}

.hy-common .item .content p,
.hy-common .item .num em,
.hy-comment-list .item .content,
.hy-new-content .item .des { background: var(--ys-surface-raised); }

.hy-comment-list .item .content:before { border-bottom-color: var(--ys-surface-raised); }

/* Search assist and floating utilities */
.web-search-assist {
    border-color: var(--ys-border);
    background: var(--ys-surface-raised);
    color: var(--ys-text-secondary);
}
.web-search-assist-head { color: var(--ys-text); }
.web-search-assist-head span,
.web-search-clear { color: var(--ys-text-muted); }
.web-search-assist-section + .web-search-assist-section { border-color: var(--ys-border); }
.web-search-chip {
    border-color: var(--ys-border);
    background: var(--ys-surface-soft);
    color: var(--ys-text-secondary);
}
.web-search-chip:hover,
.web-search-chip:focus {
    border-color: var(--ys-accent);
    background: var(--ys-accent-soft);
    color: var(--ys-text);
}

.hy-gototop .item > li > a,
.hy-gototop .item > li > .hy-gototop-action,
.hy-gototop .item > li > .code,
.hy-gototop .item > li > .history {
    border: 1px solid var(--ys-border-soft);
    background: var(--ys-surface-raised);
    color: var(--ys-text-muted);
    box-shadow: none;
}

.hy-gototop .item > li > a:hover,
.hy-gototop .item > li > .hy-gototop-action:hover,
.hy-gototop .item > li > .hy-gototop-action:focus { color: var(--ys-accent); }

.hy-gototop .item > li > .hy-gototop-action {
    display: flex;
    width: 50px;
    height: 50px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ys-border-soft);
    border-radius: 0;
    background: var(--ys-surface-raised);
    color: var(--ys-text-muted);
    font: inherit;
    line-height: 1;
}

.hy-gototop .item > li > .hy-gototop-action .icon { font-size: 18px; }

@media (min-width: 992px) {
    .page-cascade .hy-cascade {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: stretch;
        min-height: 0;
        padding: 0;
    }

    .page-cascade .hy-cascade .left-head {
        position: relative;
        top: auto;
        left: auto;
        width: 120px;
    }

    .page-cascade .hy-cascade .content-meun {
        min-width: 0;
        min-height: 0;
        padding: 10px 20px;
    }
}

.hy-footer-partner .item,
.hy-footer-partner .item a {
    border-color: var(--ys-border);
    background: var(--ys-surface-raised);
}

.hy-footer,
footer {
    color: var(--ys-text-muted);
    font-size: 12px;
}

/* Playback canvas stays dark while the iframe document and player initialize. */
.page-play .hy-player .info,
.page-play .hy-player .info iframe,
.page-play #cciframe {
    background: #050607 !important;
    color-scheme: dark;
}

/* The removed mobile ad placeholder must not leave a footer-sized empty strip. */
.page-play .hy-footer {
    padding-top: 14px;
    padding-bottom: 14px;
}

@media (max-width: 767px) {
    .page-play .hy-footer {
        padding-top: 12px;
        padding-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: calc(54px + env(safe-area-inset-top));
        font-size: var(--ys-type-body);
        background: var(--ys-bg);
    }

    body.apptop {
        padding-top: calc(54px + env(safe-area-inset-top)) !important;
    }

    .hy-head-menu {
        height: 0;
        min-height: 0;
        border: 0;
        background: transparent;
    }

    .hy-head-menu > .container {
        display: none;
    }

    .mobile-toolbar {
        border-bottom: 1px solid var(--ys-border);
        background: var(--ys-toolbar-bg);
        box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
    }

    .mobile-toolbar a,
    .mobile-toolbar button { color: var(--ys-text-secondary); }

    .mobile-toolbar .mobile-toolbar-action {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-toolbar .mobile-toolbar-action:hover,
    .mobile-toolbar .mobile-toolbar-action:focus,
    .mobile-toolbar .mobile-toolbar-action:focus-visible {
        border: 0;
        outline: 0;
        background: transparent;
        box-shadow: none;
    }

    .mobile-toolbar .mobile-toolbar-action:active {
        background: var(--ys-surface-soft);
        color: var(--ys-text) !important;
    }

    .mobile-toolbar .mobile-toolbar-action.is-open,
    .mobile-toolbar .mobile-toolbar-action[aria-expanded="true"] {
        background: var(--ys-surface-soft);
        color: var(--ys-text) !important;
    }

    .mobile-toolbar-search {
        border-color: var(--ys-border);
        background: var(--ys-surface-raised);
    }

    .mobile-toolbar-search input,
    .mobile-toolbar-search input:focus {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .page-detail .hy-switch-tabs .nav-tabs li a:focus,
    .page-detail .hy-switch-tabs .nav-tabs li a:focus-visible,
    .page-play .hy-switch-tabs .nav-tabs li a:focus,
    .page-play .hy-switch-tabs .nav-tabs li a:focus-visible {
        outline: 0;
        box-shadow: none;
    }

    .hy-layout,
    .hy-video-details,
    .hy-player .content,
    .hy-player .sidebar .hy-play-list.play,
    .hy-cascade {
        margin-top: 8px;
        border-width: 1px 0;
        border-color: var(--ys-border-soft);
        border-radius: 0;
        background: var(--ys-surface);
        box-shadow: none;
    }

    .hy-layout { padding: 10px; }
    .hy-layout + .hy-layout { margin-top: 8px; }
    .hy-layout [class*=col-],
    .hy-layout-main [class*=col-] { padding: 5px; }

    .hy-video-head { padding: 4px 5px 6px; }
    .hy-video-list .item .title h3,
    .hy-video-list .item .title h5 { margin-top: 6px; }
    .page-latest .latest-card-time {
        width: calc(100% + 10px);
        margin-left: -5px;
        font-size: 11px;
        text-align: center;
    }
    .hy-video-text-list .item { margin-top: 4px; }

    .breadcrumb {
        min-height: 38px;
        padding: 8px 10px;
        background: var(--ys-bg-subtle) !important;
    }

    .breadcrumb-layout {
        margin-top: 3px;
        padding: 0 10px;
    }

    .breadcrumb-layout .breadcrumb {
        min-height: 0;
        padding: 2px 0;
        background: transparent !important;
    }

    .hy-video-head h2,
    .hy-video-head h3,
    .hy-topic-content .head h3,
    .hy-video-head h4,
    .hy-video-min-head h4,
    .hy-video-min-head h5,
    .hy-common .head h3,
    .hy-common .head h4,
    .hy-video-ranking .head h4,
    .hy-switch-tabs .nav-tabs li a { font-size: var(--ys-type-section-mobile); }

    .map-section {
        padding: 10px;
    }

    .map-section-head {
        margin-bottom: 8px;
    }

    .map-section-head h2 {
        font-size: var(--ys-type-section-mobile);
    }

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

    .page-gbook .hy-video-head {
        min-height: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hy-video-list .item .title,
    .hy-video-list .item .title a { font-size: 14px; }

    .hy-video-details .item .content h3,
    .hy-video-details .item .content h1 { font-size: 20px; }

    .hy-video-details .item .content li,
    .hy-video-details .item .content p { font-size: 14px; }

    .hy-cascade .content-meun .head {
        min-height: 32px;
        padding: 4px 0;
        border-bottom: 1px solid var(--ys-border);
        background: var(--ys-surface);
        font-size: 13px;
        line-height: 22px;
        box-shadow: none;
    }

    .hy-index-menu li a,
    .hy-index-tags li a,
    .hy-cascade .content-meun .item ul li a {
        min-height: 34px;
        color: var(--ys-text-secondary);
    }

    .web-search-assist {
        border-color: var(--ys-border);
        background: var(--ys-surface);
    }

    .web-search-assist-body { background: var(--ys-surface); }

    .playlist-line-grid {
        gap: 6px;
        padding: 10px;
    }

    .playlist-line-button {
        height: 36px;
        padding: 0 5px;
        font-size: 12px;
        line-height: 34px;
    }

    .video-playlist-section .hy-play-list .item .panel .playlist ul li {
        width: 25%;
    }

    .hy-play-list .item .panel .playlist ul.playlist-has-long-labels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .page-play .hy-player .footer.visible-xs ul {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
    }

    .page-play .hy-player .footer.visible-xs ul:before,
    .page-play .hy-player .footer.visible-xs ul:after {
        display: none;
    }

    .page-play .hy-player .footer.visible-xs .btn {
        min-width: 0;
        padding-right: 3px;
        padding-left: 3px;
        overflow: hidden;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
    }

    .hy-cascade .content-meun .item ul:not(.letter) li:not(.text) {
        margin-right: 2px;
        margin-bottom: 4px;
    }

    .hy-cascade .content-meun .item {
        padding-right: 5px;
        padding-left: 5px;
    }

    .hy-cascade .content-meun .item ul:not(.letter) li:not(.text) a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        min-height: 28px;
        height: 28px;
        margin: 0;
        padding: 0 3px;
        box-sizing: border-box;
        font-size: 11px;
        line-height: 26px;
        text-align: center;
        white-space: nowrap;
    }

    .hy-cascade .content-meun .item ul {
        padding-top: 5px;
    }

    .hy-cascade .content-meun .item ul li.text,
    .hy-cascade .content-meun .item ul li.text span {
        margin-right: 3px;
        font-size: 11px;
        line-height: 28px;
    }

    .hy-cascade .content-meun .item ul.letter li a {
        min-width: 32px;
        height: 32px;
        line-height: 30px;
        text-align: center;
    }

    .tabbar {
        border-top: 1px solid var(--ys-border);
        background: var(--ys-surface);
    }
    .tabbar .item { color: var(--ys-text-muted); }
    .tabbar .item.active { color: var(--ys-accent); }
}
