:root {
    --bg: #111216;
    --surface: #191b21;
    --surface-2: #20232b;
    --surface-3: #292d37;
    --text: #f3f4f6;
    --muted: #a0a4af;
    --line: rgba(255,255,255,.075);
    --accent: #ef3340;
    --accent-2: #b91f2c;
    --radius: 13px;
    --shadow: 0 12px 34px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: radial-gradient(ellipse at 50% -25%, rgba(239,51,64,.10), transparent 44%), var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17,18,22,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-inner {
    width: min(1440px, calc(100% - 52px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
    display: inline-flex;
    width: 37px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 8px 3px;
    color: #fff;
    background: linear-gradient(135deg, #ff4c58, #bb1423);
    box-shadow: 0 5px 18px rgba(239,51,64,.22);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -1px;
}
.brand-name { font-size: 20px; font-weight: 850; letter-spacing: -.6px; }
.main-nav { display: flex; align-items: center; gap: 7px; height: 72px; }
.main-nav > a,
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    height: 72px;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    color: #b7bac3;
    background: transparent;
    border: 0;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease;
}
.main-nav > a:hover, .main-nav > a.active,
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: #fff; }
.main-nav > a.active:after,
.nav-dropdown-toggle.active:after {
    position: absolute;
    right: 15px;
    bottom: 0;
    left: 15px;
    height: 2px;
    content: "";
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}
.nav-dropdown { position: relative; height: 72px; display: flex; align-items: center; }
.nav-chevron { color: #858b98; font-size: 11px; transition: transform .18s ease; }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 80;
    display: none;
    grid-template-columns: repeat(3, minmax(115px, 1fr));
    gap: 2px 4px;
    width: min(540px, 82vw);
    max-height: min(68vh, 560px);
    padding: 12px;
    overflow: auto;
    background: #1b1d24;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 42px rgba(0,0,0,.42);
}
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
    display: flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    padding: 6px 9px;
    color: #b9bdc7;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.35;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus { color: #fff; background: rgba(239,51,64,.13); outline: none; }
.header-search {
    width: min(320px, 28vw);
    height: 39px;
    display: flex;
    align-items: center;
    margin-left: auto;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.header-search:focus-within { border-color: rgba(239,51,64,.7); box-shadow: 0 0 0 3px rgba(239,51,64,.10); }
.header-search input { width: 100%; min-width: 0; padding: 0 13px; color: var(--text); background: transparent; border: 0; outline: 0; }
.header-search input::placeholder { color: #777c88; }
.header-search button { width: 45px; height: 100%; display: grid; place-items: center; color: #d6d8de; background: transparent; border: 0; cursor: pointer; }
.header-search button:hover { color: #fff; background: rgba(255,255,255,.05); }
.header-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-menu-toggle { display: none; }
.site-main { width: min(1440px, calc(100% - 52px)); min-height: calc(100vh - 190px); margin: 0 auto; padding: 34px 0 70px; }
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 5px 0 25px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}
.eyebrow { margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: 1.7px; text-transform: uppercase; }
.page-heading h1 { margin: 0; color: var(--text); font-size: clamp(24px, 3vw, 31px); font-weight: 780; letter-spacing: -.8px; line-height: 1.25; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 27px 17px;
}
.video-card { min-width: 0; }
.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2d3039, #181a20);
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.video-thumb:before {
    position: absolute;
    z-index: 1;
    inset: 45% 0 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0,0,0,.48));
    opacity: .55;
}
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease, filter .32s ease; }
.video-card:hover .video-thumb img { transform: scale(1.045); filter: brightness(.82); }
.thumb-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255,255,255,.24); font-size: 27px; font-weight: 900; letter-spacing: 5px; }
.duration-badge, .quality-badge {
    position: absolute;
    z-index: 2;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    color: #fff;
    background: rgba(0,0,0,.75);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}
.duration-badge { right: 8px; }
.quality-badge { left: 8px; color: #fff; background: rgba(185,31,44,.94); }
.thumb-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    padding-left: 3px;
    color: #fff;
    background: rgba(239,51,64,.88);
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%,-42%) scale(.8);
    transition: .2s ease;
}
.video-card:hover .thumb-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.video-title { margin: 9px 1px 0; color: #e9eaf0; font-size: 13px; font-weight: 650; line-height: 1.5; }
.video-title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-title a:hover { color: #ff6973; }
.video-views { margin: 5px 1px 0; color: #777d89; font-size: 11px; }
.entity-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.entity-card { min-width: 0; text-align: center; }
.entity-image { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.entity-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.entity-card:hover .entity-image img { transform: scale(1.05); }
.entity-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #6c717d; font-size: 35px; }
.entity-name { display: block; overflow: hidden; margin-top: 9px; color: #e5e6eb; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.entity-card:hover .entity-name { color: #ff6973; }
.tag-index-section { margin: 24px 0 34px; }
.tag-index-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.tag-index-heading h2 { margin: 0; color: #e8eaf0; font-size: 17px; font-weight: 750; }
.tag-index-heading span { color: var(--muted); font-size: 11px; }
.tag-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 9px; }
.tag-index-item { display: flex; min-height: 42px; align-items: center; padding: 9px 12px; color: #c7cad3; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.45; transition: .18s ease; }
.tag-index-item:hover { color: #fff; border-color: rgba(239,51,64,.55); background: rgba(239,51,64,.09); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 38px 0 0; }
.pagination a { display: inline-flex; min-width: 37px; height: 37px; align-items: center; justify-content: center; padding: 0 11px; color: #bfc2cb; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 650; transition: .18s ease; }
.pagination a:hover { color: #fff; border-color: rgba(239,51,64,.6); }
.pagination a.current { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 5px 15px rgba(239,51,64,.2); }
.pagination a.page-arrow { padding: 0 14px; }
.notice { margin: 15px 0 22px; padding: 12px 15px; color: #e9d6aa; background: rgba(177,128,37,.12); border: 1px solid rgba(219,167,68,.22); border-radius: 9px; font-size: 13px; }
.empty-state { display: flex; min-height: 240px; flex-direction: column; align-items: center; justify-content: center; margin: 8px 0; padding: 35px 20px; color: var(--muted); background: rgba(255,255,255,.018); border: 1px dashed rgba(255,255,255,.10); border-radius: var(--radius); text-align: center; }
.empty-icon { color: var(--accent); font-size: 37px; line-height: 1; }
.empty-state h2 { margin: 14px 0 3px; color: #e7e8ed; font-size: 17px; }
.empty-state p { margin: 0; font-size: 12px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.watch-main { min-width: 0; }
.player-shell { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background: #050506; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 18px 55px rgba(0,0,0,.34); }
.video-player, .video-embed { display: block; width: 100%; height: 100%; background: #000; border: 0; object-fit: contain; }
.player-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; color: #aeb3bf; background: #050506; text-align: center; font-size: 13px; }
.player-message[hidden] { display: none; }
.player-unavailable { display: grid; width: 100%; height: 100%; place-items: center; color: #999eaa; }
.watch-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 23px 0 0; }
.watch-title-row h1 { max-width: 900px; margin: 0; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.4; letter-spacing: -.4px; }
.watch-meta { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.watch-description { max-width: 900px; margin: 18px 0 0; color: #a9adb8; font-size: 13px; }
.related-section { margin-top: 52px; }
.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.footer-inner { width: min(1440px, calc(100% - 52px)); margin: 0 auto; padding: 24px 0 29px; color: #7c818d; font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #d6d8de; font-size: 13px; }
.brand-mark.small { width: 26px; height: 22px; border-radius: 5px 5px 5px 2px; font-size: 10px; }
.footer-inner p { margin: 9px 0 0; }
.footer-meta { color: #626773; }
@media (max-width: 1200px) {
    .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .entity-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .header-inner { gap: 22px; }
    .main-nav > a, .nav-dropdown-toggle { padding: 0 11px; }
}
@media (max-width: 900px) {
    .header-inner, .site-main, .footer-inner { width: min(100% - 36px, 760px); }
    .header-inner { min-height: 65px; gap: 15px; }
    .main-nav { gap: 0; height: 65px; }
    .main-nav > a, .nav-dropdown-toggle { height: 65px; padding: 0 9px; font-size: 12px; }
    .nav-dropdown { height: 65px; }
    .header-search { width: min(235px, 29vw); }
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
    .entity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .header-inner, .site-main, .footer-inner { width: calc(100% - 28px); }
    .header-inner { min-height: 60px; flex-wrap: wrap; gap: 0; }
    .brand { margin-right: auto; }
    .brand-name { font-size: 18px; }
    .mobile-menu-toggle { display: flex; width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: 8px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
    .mobile-menu-toggle span { display: block; width: 15px; height: 2px; background: #e5e6eb; border-radius: 2px; }
    .main-nav { display: none; order: 3; width: 100%; height: auto; flex-wrap: wrap; padding: 8px 0 12px; border-top: 1px solid var(--line); }
    .site-header.menu-open .main-nav { display: flex; }
    .main-nav > a, .nav-dropdown-toggle { height: 38px; padding: 0 12px; font-size: 13px; }
    .nav-dropdown { height: auto; flex: 0 0 100%; align-items: stretch; flex-direction: column; }
    .nav-dropdown-toggle { justify-content: flex-start; }
    .main-nav > a.active:after, .nav-dropdown-toggle.active:after { right: auto; bottom: 0; left: 12px; width: 44px; }
    .nav-dropdown-menu { position: static; width: 100%; max-height: 48vh; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 8px; border-radius: 9px; box-shadow: none; }
    .nav-dropdown-menu a { min-height: 32px; }
    .header-search { order: 2; width: 100%; height: 36px; margin: 0 0 10px; }
    .site-header.menu-open .header-search { margin-top: 8px; }
    .site-main { min-height: calc(100vh - 190px); padding: 25px 0 48px; }
    .page-heading { margin: 3px 0 19px; padding-bottom: 14px; }
    .page-heading h1 { font-size: 23px; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 11px; }
    .video-thumb { border-radius: 8px; }
    .video-title { margin-top: 7px; font-size: 12px; }
    .thumb-play { display: none; }
    .entity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 11px; }
    .entity-image { border-radius: 10px; }
    .entity-name { margin-top: 7px; font-size: 12px; }
    .pagination { gap: 5px; margin-top: 28px; }
    .pagination a { min-width: 33px; height: 34px; padding: 0 8px; }
    .pagination a.page-arrow { padding: 0 9px; }
    .watch-title-row { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 17px; }
    .watch-title-row h1 { font-size: 19px; }
    .related-section { margin-top: 36px; }
    .footer-inner { padding: 20px 0 24px; }
}

/* 扩展公开视频元数据 */
.video-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 9px;
    margin: 6px 1px 0;
    color: #858b98;
    font-size: 10px;
    line-height: 1.5;
}
.video-card-meta span { min-width: 0; }
.video-card-meta .video-uploader { overflow: hidden; max-width: 100%; color: #a9aeba; text-overflow: ellipsis; white-space: nowrap; }
.meta-dot { display: inline-block; width: 4px; height: 4px; margin: 0 5px 2px 0; background: var(--accent); border-radius: 50%; }
.original-hola-player, .player-shell .video-js { display: block; width: 100% !important; height: 100% !important; }
.watch-stat-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.watch-stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: #c7cad3; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.watch-stat b { color: #858b98; font-size: 10px; font-weight: 600; }
.video-detail-panel { margin-top: 22px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.detail-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-panel-heading h2 { margin: 0; color: #f0f1f5; font-size: 15px; }
.detail-panel-heading span { color: #737987; font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.detail-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.detail-label { color: #7e8491; font-size: 10px; }
.detail-value { overflow-wrap: anywhere; color: #dfe1e7; font-size: 12px; line-height: 1.55; }
@media (max-width: 720px) {
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13px; }
    .video-detail-panel { padding: 14px; }
}
@media (max-width: 420px) {
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .watch-stat-list { gap: 6px; }
    .watch-stat { padding: 5px 7px; }
}

/* 视频分类链接和系列页面 */
.taxonomy-links { display: flex; flex-wrap: wrap; gap: 7px; }
.taxonomy-link { display: inline-flex; align-items: center; padding: 5px 9px; color: #f0a0a5; background: rgba(244,67,80,.075); border: 1px solid rgba(244,67,80,.19); border-radius: 999px; font-size: 11px; line-height: 1.35; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.taxonomy-link:hover { color: #fff; background: rgba(244,67,80,.2); border-color: rgba(244,67,80,.48); }
.detail-link-item { grid-column: 1 / -1; }

/* 频道无视频数据时显示的内部诊断区域样式。 */

/* 频道排序标签 */
.channel-sort{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.channel-sort a{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid var(--border-color,#333);border-radius:8px;color:var(--text-secondary,#aaa);text-decoration:none;font-size:14px}
.channel-sort a.active{color:var(--text-color,#fff);border-color:var(--accent-color,#e33);background:rgba(220,40,55,.12)}



/* 本地完整标签索引页 */
.tag-index-toolbar { display: flex; flex-direction: column; gap: 11px; margin: 20px 0 18px; }
.tag-search-form { display: flex; align-items: center; gap: 9px; width: 100%; }
.tag-search-label { flex: 0 0 auto; color: #c7cad3; font-size: 12px; font-weight: 650; }
.tag-search-form input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; outline: none; }
.tag-search-form input:focus { border-color: rgba(239,51,64,.7); box-shadow: 0 0 0 3px rgba(239,51,64,.10); }
.tag-search-form input::placeholder { color: #777c88; }
.tag-search-form button, .tag-search-reset { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 15px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.tag-search-form button:hover { filter: brightness(1.08); }
.tag-search-reset { color: #c7cad3; background: var(--surface); border-color: var(--line); }
.tag-index-summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.tag-index-summary strong { color: #f2f3f7; }
.tag-index-summary span { margin-left: auto; color: #737987; font-size: 11px; }
.tag-index-complete-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.tag-index-card { min-width: 0; justify-content: space-between; gap: 10px; }
.tag-index-name { min-width: 0; overflow-wrap: anywhere; }
.tag-index-count { flex: 0 0 auto; color: #858b98; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
    .tag-search-form { flex-wrap: wrap; }
    .tag-search-label { flex: 0 0 100%; }
    .tag-search-form input { flex: 1 1 100%; }
    .tag-index-complete-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .tag-index-card { min-height: 39px; padding: 8px 9px; }
    .tag-index-name { font-size: 11px; }
}
