* { box-sizing: border-box; }
:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--page-bg, #0B0D15);
    color: var(--page-text, #fff);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page-shell { width: min(1200px, calc(100% - 32px)); margin: auto; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { display: block; width: auto; max-width: 220px; max-height: 64px; margin: 0 auto; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-button, .search-bar button, .pagination a, .user-modal > a {
    border: 0; border-radius: 6px; padding: 7px 12px; color: #fff; background: transparent; cursor: pointer; transition: .2s;
}
.nav-button:hover, .pagination a:hover { color: var(--accent); background: rgba(254, 98, 142, .1); }
.category-wrap { position: relative; }
.category-menu { display: none; position: absolute; z-index: 10; top: 100%; right: 0; min-width: 120px; padding: 6px; margin-top: 4px; border: 1px solid #2b2e3c; border-radius: 8px; background: #171a27; box-shadow: 0 10px 28px #0008; }
.category-menu.is-open { display: block; }
.category-menu a { display: block; padding: 6px 10px; border-radius: 5px; white-space: nowrap; }
.category-menu a:hover { color: var(--accent); background: #252938; }
.search-bar { display: none; align-items: center; max-width: 600px; margin: 0 0 26px auto; padding: 5px; border: 1px solid #2b2e3c; border-radius: 8px; background: #171a27; }
.search-bar.is-open { display: flex; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 7px 10px; color: #fff; background: transparent; }
.search-bar button { background: var(--accent); color: #17121a; font-weight: 700; }
.result-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 12px 0 20px; }
.result-heading > div:first-child { flex: 1; margin: 0 auto; text-align: center; }
h1 { margin: 0; font-size: clamp(20px, 3vw, 28px); font-weight: 600; }
.result-heading p { margin: 4px 0 0; color: #85899c; font-size: 12px; }
.result-tools { display: flex; align-items: center; gap: 12px; color: #9da1b5; white-space: nowrap; }
.result-tools select { border: 1px solid #2b2e3c; border-radius: 6px; padding: 7px 9px; outline: 0; color: #ddd; background: #171a27; }
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; }
.cover-box { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 7px; background: #171a27; }
.cover-box img, .cover-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-box video { position: absolute; inset: 0; z-index: 1; }
.cover-box::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(transparent 55%, #0007); transition: .2s; }
.cover-box:hover::after, .cover-box.playing::after { opacity: 1; }
.vector-dot { position: absolute; top: 9px; right: 9px; z-index: 3; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #171a2788; }
.media-tip { position: absolute; right: 7px; bottom: 7px; z-index: 3; max-width: calc(100% - 14px); overflow: hidden; padding: 2px 6px; border-radius: 3px; color: #fff; background: #000; opacity: var(--tip-opacity); font-size: var(--tip-size); line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.video-title { display: block; overflow: hidden; margin-top: 8px; color: #eee; white-space: nowrap; text-overflow: ellipsis; }
.video-title:hover { color: var(--accent); }
.empty-state { padding: 70px 0; text-align: center; color: #85899c; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 34px 0 50px; color: #9da1b5; }
.pagination a { border: 1px solid #2b2e3c; }
.pagination input { width: 48px; padding: 6px; border: 1px solid #2b2e3c; border-radius: 5px; outline: 0; color: #fff; background: #171a27; text-align: center; }
.search-cost { margin: -34px 0 14px; color: #5d6173; font-size: 11px; text-align: center; }
.site-footer { padding: 34px 0 26px; border-top: 1px solid #202330; text-align: center; color: #85899c; }
.site-footer img { max-width: 120px; max-height: 34px; object-fit: contain; opacity: .85; }
.site-footer p { max-width: 600px; margin: 12px auto; font-size: 12px; }
.partner-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.partner-links a:hover { color: var(--accent); }
.site-footer small { font-size: 11px; color: #5d6173; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: none; width: 38px; height: 38px; border: 1px solid #363a4a; border-radius: 50%; color: #fff; background: #171a27e8; cursor: pointer; font-size: 18px; }
.to-top.is-visible { display: block; }
.modal-mask { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 20px; background: #0009; }
.modal-mask.is-open { display: flex; }
.user-modal { position: relative; width: min(380px, 100%); padding: 32px 24px 24px; border: 1px solid #343747; border-radius: 10px; background: #171a27; text-align: center; box-shadow: 0 18px 50px #0009; }
.user-modal p { margin: 4px 0 22px; color: #e2e3e9; }
.modal-actions { display: flex; justify-content: center; gap: 10px; }
.modal-actions button, .modal-actions a { min-width: 88px; border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; text-align: center; }
.modal-actions button { color: #ddd; background: #2a2e3d; }
.modal-actions a { display: inline-block; background: var(--accent); color: #1b1117; font-weight: 700; }
.modal-close { position: absolute; top: 6px; right: 9px; border: 0; color: #aaa; background: transparent; cursor: pointer; font-size: 24px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .page-shell { width: calc(100% - 20px); }
    .site-header { min-height: 62px; gap: 8px; }
    .logo img { max-width: 160px; max-height: 48px; }
    .header-nav { gap: 0; }
    .nav-button { padding: 6px 5px; font-size: 12px; }
    .result-heading { align-items: start; flex-direction: column; gap: 10px; margin-top: 8px; }
    .result-tools { width: 100%; justify-content: space-between; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .pagination { margin-top: 28px; }
    .to-top { right: 14px; bottom: 14px; }
}
