@charset "utf-8";

:root {
    color-scheme: dark;
    --ys-bg: #101214;
    --ys-bg-subtle: #14171a;
    --ys-surface: #191c1f;
    --ys-surface-raised: #202429;
    --ys-surface-soft: #252a2f;
    --ys-border: #30363d;
    --ys-border-soft: #272c31;
    --ys-text: #e8ebee;
    --ys-text-secondary: #a8b0b8;
    --ys-text-muted: #747d86;
    --ys-accent: #19c463;
    --ys-accent-hover: #24d974;
    --ys-accent-soft: rgba(25, 196, 99, .13);
    --ys-danger: #ef6b73;
    --ys-warning: #e5b45b;
    --ys-radius-sm: 4px;
    --ys-radius: 6px;
    --ys-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    --ys-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

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

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

::selection {
    background: rgba(25, 196, 99, .28);
    color: #fff;
}

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: 12px;
    padding: 12px;
    border-radius: var(--ys-radius);
}

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

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

.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: rgba(25, 28, 31, .97);
}

.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);
}

.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); }

/* 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 h5 { margin-top: 7px; }
.hy-video-list .item .subtitle { margin-top: 3px; }
.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: 12px; }

.hy-video-head h3,
.hy-video-head h4,
.hy-video-min-head h5,
.hy-topic-content .head h3,
.hy-new-content .item .head h3 {
    color: var(--ys-text);
    font-weight: 600;
    letter-spacing: .01em;
}

.hy-video-head h3,
.hy-topic-content .head h3 { font-size: 18px; }
.hy-video-head h4,
.hy-video-min-head h5 { font-size: 16px; }

.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: #07140d;
    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);
}

.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: 14px;
    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: 12px;
}

.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: #07140d;
}

/* 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: #07140d;
    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: #06130c;
}

.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: 14px;
}

.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; }
.hy-player .item .sidebar { background: var(--ys-surface-raised); }
.hy-player .item .footer { border-color: var(--ys-border); }

.hy-player .item .play-lines-column .sidebar {
    height: auto;
    overflow: visible;
    border-top: 1px solid 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);
}

.page-play #playlist > .panel > .option {
    display: none !important;
}

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

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

.play-lines-column .hy-play-list.play .item .panel .playlist ul li {
    width: 12.5%;
}

/* 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); }

.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 > .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 { color: var(--ys-accent); }

.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: 14px;
        background: var(--ys-bg);
    }

    .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: rgba(25, 28, 31, .98);
        box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
    }

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

    .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;
    }

    .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: 7px; }
    .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 h5 { margin-top: 6px; }
    .hy-video-text-list .item { margin-top: 4px; }

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

    .hy-video-head h3,
    .hy-topic-content .head h3 { font-size: 17px; }
    .hy-video-head h4,
    .hy-video-min-head h5 { font-size: 15px; }

    .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 {
        border-bottom: 1px solid var(--ys-border);
        background: var(--ys-surface);
        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,
    .web-search-assist-toolbar {
        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;
    }

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

    .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: 6px;
        margin-bottom: 8px;
    }

    .hy-cascade .content-meun .item ul:not(.letter) li:not(.text) a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 32px;
        margin: 0;
        padding: 0 6px;
        box-sizing: border-box;
        line-height: 30px;
        text-align: center;
        white-space: nowrap;
    }

    .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); }
}
