:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --card: #1f1f1f;
  --muted: #a0a0a0;
  --accent: #ffaa00;
  --header-h: 50px;
  --footer-h: 76px;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; padding: calc(var(--header-h) + env(safe-area-inset-top)) 0 calc(var(--footer-h) + env(safe-area-inset-bottom)); overflow-x: hidden; background: var(--bg); color: #e0e0e0; }
button { font: inherit; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: calc(var(--header-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 15px 0; display: flex; align-items: center; justify-content: space-between; background: rgba(26,26,26,.96); border-bottom: 1px solid #333; box-shadow: 0 4px 10px #0008; backdrop-filter: blur(10px); }
.logo { font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: .5px; color: #f4f4f4; }
.logo span { display: inline-block; margin-left: 3px; padding: 2px 6px; border-radius: 3px; background: linear-gradient(45deg,#ffaa00,#ff7700); color: #17100a; font-size: 12px; font-style: normal; vertical-align: 3px; }
.search-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: #ccc; cursor: pointer; }
.search-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.notice-bar { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; overflow: hidden; white-space: nowrap; background: #222; color: var(--accent); border-bottom: 1px solid #333; box-shadow: inset 0 -2px 5px #0003; font-size: 12px; }
.notice-icon { flex: none; font-size: 11px; }
.notice-content { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-150%); } }
.feature-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 10px 12px; background: #1a1a1a; border-bottom: 1px solid #333; }
.feature-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--card); color: var(--muted); white-space: nowrap; font-size: 12px; }
.feature-icon { color: var(--accent); font-size: 11px; }
.container { padding: 10px 10px 20px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 15px 0 10px 5px; color: #eee; font-size: 15px; font-weight: 700; }
.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; }
.video-card { position: relative; overflow: hidden; border-radius: 6px; background: var(--card); box-shadow: 0 2px 4px #0006; cursor: pointer; animation: fade-in .5s ease-out both; transform: translateZ(0); }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.video-card:active { transform: scale(.985); }
.thumbnail-wrapper { position: relative; width: 100%; padding-top: 150%; overflow: hidden; background: #080808; }
.thumbnail-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-card:hover .thumbnail-wrapper img { transform: scale(1.04); }
.video-overlay-hd,.video-overlay-vip,.video-overlay-time { position: absolute; z-index: 2; box-shadow: 0 2px 4px #0008; }
.video-overlay-hd { top: 6px; right: 6px; padding: 2px 6px; border-radius: 3px; background: linear-gradient(45deg,#fc0,#fa0); color: #000; font-size: 11px; font-weight: 800; }
.video-overlay-vip { top: 6px; left: 6px; padding: 2px 6px; border-radius: 3px; background: linear-gradient(45deg,#ff4757,#ff6b81); color: #fff; font-size: 11px; font-weight: 800; }
.video-overlay-time { right: 6px; bottom: 6px; padding: 2px 5px; border-radius: 3px; background: #000c; color: #fff; font-size: 10px; }
.video-info { padding: 8px; }
.video-title { display: -webkit-box; height: 44px; margin-bottom: 6px; overflow: hidden; color: #ddd; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag { padding: 2px 5px; border-radius: 2px; background: #333; color: #888; font-size: 10px; }
.tag.hot { background: #ff475733; color: #ff4757; }
.video-meta { display: flex; justify-content: space-between; color: #777; font-size: 10px; }
.loading-more { display: block; width: 100%; margin: 10px 0; padding: 20px; border: 0; border-radius: 6px; background: transparent; color: #777; font-size: 13px; opacity: .85; cursor: pointer; transition: opacity .2s,transform .2s; }
.loading-more:active { opacity: .5; transform: scale(.98); }
.loading-more span { margin-right: 4px; font-size: 17px; vertical-align: -1px; }
.sticky-footer { position: fixed; inset: auto 0 0; z-index: 90; height: calc(var(--footer-h) + env(safe-area-inset-bottom)); padding: 0 15px env(safe-area-inset-bottom); display: flex; align-items: center; justify-content: space-between; background: rgba(20,20,20,.98); border-top: 1px solid #333; box-shadow: 0 -5px 15px #0008; backdrop-filter: blur(10px); }
.footer-logo { display: flex; align-items: center; color: #ddd; font-size: 16px; font-weight: 700; }
.footer-logo img { width: 30px; height: 30px; margin-right: 8px; object-fit: contain; }
.footer-btn,.vip-download { border: 0; border-radius: 24px; background: linear-gradient(45deg,#fa0,#f70); color: #15100a; font-weight: 800; white-space: nowrap; cursor: pointer; }
.footer-btn { padding: 12px 16px; font-size: 15px; box-shadow: 0 0 10px #ffaa0066; animation: pulse 1.5s infinite; }
@keyframes pulse { 70% { transform: scale(1.04); box-shadow: 0 0 0 9px #ffaa0000; } }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 18px; background: #000e; backdrop-filter: blur(3px); }
.dialog { position: relative; width: min(100%,340px); padding: 24px; border-radius: 12px; background: #1e1e1e; text-align: center; box-shadow: 0 10px 25px #0008; }
.age-backdrop { z-index: 999999; background: #000e; }
.age-dialog h2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 16px; color: #fff; font-size: 22px; }
.age-dialog h2 img { width: 30px; height: 30px; object-fit: contain; }
.age-dialog p { margin: 0 0 24px; color: #ccc; font-size: 16px; line-height: 1.5; }
.age-actions { display: flex; flex-direction: column; gap: 14px; }
.age-actions button { width: 100%; padding: 15px 8px; border: 0; border-radius: 30px; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.age-yes { background: #28a745; box-shadow: 0 4px 15px #28a74566; }
.age-no { background: #dc3545; box-shadow: 0 4px 15px #dc354566; }
.vip-backdrop,.download-backdrop { z-index: 1200; display: none; background: #000d; }
.vip-backdrop.active,.download-backdrop.active { display: flex; }
.vip-dialog,.download-dialog { width: min(100%,320px); padding: 25px 20px; }
.modal-close { position: absolute; top: 7px; right: 9px; width: 32px; height: 32px; border: 0; background: transparent; color: #aaa; font-size: 26px; cursor: pointer; }
.vip-title { margin: 0 0 10px; color: #ff4757; font-size: 22px; font-weight: 800; }
.vip-copy { margin: 0 0 20px; color: #e0e0e0; font-size: 14px; line-height: 1.45; }
.vip-download { display: block; width: 100%; padding: 15px 8px; background: #ff4d4d; color: white; font-size: 17px; box-shadow: 0 4px 15px #ff4d4d66; }
@media (max-width: 340px) { .video-grid { grid-template-columns: 1fr; gap: 10px; } }
@media (min-width: 550px) and (max-width: 767px) { .video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; } .container { max-width: 1200px; margin: 0 auto; padding-right: 14px; padding-left: 14px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
