* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a0a0a; color: #fff; min-height: 100vh; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* === Topbar (sticky header + tabs) === */
.topbar { background: #0a0a0a; position: sticky; top: 0; z-index: 100; padding-top: env(safe-area-inset-top); border-bottom: 1px solid #161616; }
.topbar-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 18px; font-weight: 700; color: #ff4757; flex-shrink: 0; letter-spacing: -0.3px; }
.search-box { display: flex; flex: 1; min-width: 0; gap: 6px; position: relative; }
.search-box input { flex: 1; min-width: 0; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 20px; padding: 9px 14px; color: #fff; font-size: 14px; outline: none; -webkit-appearance: none; appearance: none; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-box input:focus { border-color: #ff4757; }
.search-box button { background: #ff4757; border: none; border-radius: 20px; padding: 0 16px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; flex-shrink: 0; min-height: 38px; }
.lang-select { flex-shrink: 0; position: relative; }
.lang-btn { display: flex; align-items: center; gap: 5px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 20px; padding: 6px 12px; color: #fff; cursor: pointer; min-height: 38px; font-size: 13px; font-weight: 600; transition: border-color .15s; }
.lang-btn:hover { border-color: #444; }
.lang-code { letter-spacing: .5px; }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #141414; border: 1px solid #222; border-radius: 12px; padding: 6px; min-width: 180px; max-height: 320px; overflow-y: auto; z-index: 300; box-shadow: 0 8px 28px rgba(0,0,0,.7); display: none; grid-template-columns: 1fr 1fr; gap: 2px; overscroll-behavior: contain; scrollbar-width: none; }
.lang-dropdown::-webkit-scrollbar { display: none; }
.lang-dropdown.open { display: grid; }
.lang-opt { display: flex; align-items: center; gap: 8px; padding: 10px 10px; background: transparent; border: none; color: #ccc; font-size: 13px; cursor: pointer; border-radius: 8px; transition: background .12s, color .12s; white-space: nowrap; }
.lang-opt:hover { background: #222; color: #fff; }
.lang-opt.active { background: #2a1520; color: #ff4757; font-weight: 600; }
.lang-opt-code { font-weight: 700; min-width: 22px; }
.lang-opt-name { overflow: hidden; text-overflow: ellipsis; }
#suggestBox { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #0a0a0a; border: 1px solid #222; border-radius: 8px; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.6); -webkit-overflow-scrolling: touch; }
.suggest-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #1a1a1a; transition: background .15s; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item:active { background: #161616; }
.suggest-cover { width: 56px; min-width: 56px; aspect-ratio: 2/3; border-radius: 4px; object-fit: cover; }
.suggest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.suggest-title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-cast { font-size: 12px; color: #888; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-tags { font-size: 12px; color: #888; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.kw-hl { color: #ff4757; }

/* Tabs row — horizontal scroll, optimized for touch */
nav.tabs { display: flex; gap: 22px; padding: 4px 12px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 1200px; margin: 0 auto; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { color: #888; font-size: 14px; font-weight: 500; white-space: nowrap; padding: 12px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; flex-shrink: 0; }
nav.tabs a:hover { color: #ccc; }
nav.tabs a.active { color: #fff; border-bottom-color: #fff; font-weight: 600; }

/* Tablet+ */
@media (min-width: 768px) {
  .topbar-row { padding: 12px 16px; gap: 16px; }
  .logo { font-size: 22px; }
  .search-box input { padding: 10px 18px; font-size: 14px; }
  .search-box button { padding: 0 20px; font-size: 14px; }
  nav.tabs { gap: 28px; padding: 4px 16px 0; }
  nav.tabs a { font-size: 15px; }
}

.search-empty { text-align: center; padding: 40px; color: #666; }
.search-list { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.search-card { display: flex; gap: 14px; }
.search-card-cover { position: relative; width: 120px; min-width: 120px; border-radius: 8px; overflow: hidden; }
.search-card-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.search-card-cover .badge { top: 6px; left: 6px; right: auto; }
.search-card-cover .views { position: absolute; bottom: 6px; left: 6px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); display: flex; align-items: center; gap: 3px; }
.search-card-cover .views::before { content: '▶'; font-size: 9px; }
.search-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.search-card-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-card-cast { font-size: 12px; color: #888; line-height: 1.3; }
.search-card-desc { font-size: 12px; color: #888; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.search-card-tags { font-size: 12px; color: #888; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; }
.section { margin: 20px 0; }
.section h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { position: relative; border-radius: 8px; overflow: hidden; background: #0a0a0a; transition: transform .2s; }
.card:hover { transform: scale(1.02); }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.card .views { position: absolute; bottom: 78px; left: 6px; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.9); display: flex; align-items: center; gap: 3px; }
.card .views::before { content: '▶'; font-size: 10px; }
.card .info { padding: 8px; }
.card .title { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 11px; color: #888; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-pill { display: inline-block; background: #2a2a2a; border: none; padding: 2px 8px; border-radius: 10px; font-size: 10px; color: #bbb; cursor: pointer; }
.tag-pill:hover { background: #383838; color: #fff; }
.badge { position: absolute; top: 6px; right: 6px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.detail-hero { display: flex; gap: 20px; margin: 20px 0; }
.detail-hero img { width: 180px; border-radius: 8px; aspect-ratio: 2/3; object-fit: cover; }
.detail-info h1 { font-size: 20px; margin-bottom: 8px; }
.detail-info p { color: #aaa; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.detail-info .tags { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.detail-info .tag { background: #1a1a1a; padding: 4px 10px; border-radius: 12px; font-size: 11px; color: #aaa; }

/* Detail page redesign */
.book-header { display: flex; gap: 14px; padding: 16px 0 10px; }
.book-header-cover { width: 92px; min-width: 92px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; }
.book-header-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.book-header-title { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3; }
.book-header-meta { font-size: 13px; color: #aaa; }
.book-header-rating { font-size: 13px; color: #ccc; display: flex; align-items: center; gap: 4px; }
.book-header-rating .star { color: #ffb01a; }
.book-header-rating .count { color: #888; }
.book-header-rating::after { content: '›'; color: #888; margin-left: 4px; }
.detail-tabs { display: flex; gap: 28px; padding: 12px 0; border-bottom: 1px solid #1a1a1a; }
.detail-tabs a { color: #888; font-size: 16px; font-weight: 500; position: relative; padding: 4px 0; transition: color .2s; }
.detail-tabs a.active { color: #fff; font-weight: 700; }
.detail-tabs a.active::after { content: ''; position: absolute; bottom: -13px; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; }
.tab-pane { display: none; padding: 16px 0; }
.tab-pane.active { display: block; }
.book-desc { font-size: 14px; color: #ccc; line-height: 1.6; white-space: pre-wrap; }
.book-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.book-tag { background: #1a1a1a; padding: 6px 12px; border-radius: 14px; font-size: 12px; color: #bbb; cursor: pointer; transition: background .15s; }
.book-tag:hover { background: #2a2a2a; }
.book-tag::after { content: ' ›'; opacity: .6; }
.actor-section { margin: 18px 0; }
.actor-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.actor-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.actor-row::-webkit-scrollbar { display: none; }
.actor-card { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.actor-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.actor-card .actor-name { font-size: 14px; color: #fff; }
.section-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: #666; font-size: 13px; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: #222; }

/* Episode tab */
.ep-ranges { display: flex; gap: 24px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ep-ranges::-webkit-scrollbar { display: none; }
.ep-ranges a { color: #666; font-size: 14px; font-weight: 600; padding: 4px 0; flex-shrink: 0; transition: color .2s; }
.ep-ranges a.active { color: #fff; }
.ep-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ep-cell { position: relative; aspect-ratio: 1/1; background: #1a1a1a; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 600; transition: background .15s; }
.ep-cell:hover { background: #2a2a2a; }
.ep-cell.active { background: #2a2017; color: #fff; }
.ep-cell.locked { color: #fff; }
.ep-cell.active::after { content: ''; position: absolute; bottom: 5px; left: 5px; width: 10px; height: 10px; background: linear-gradient(to top, #ff4757 50%, transparent 50%), linear-gradient(to top, #ff4757 50%, transparent 50%); background-position: 0 0, 5px 0; background-size: 3px 100%; background-repeat: no-repeat; }
@media (min-width: 768px) {
  .ep-grid { grid-template-columns: repeat(10, 1fr); }
  .book-header-cover { width: 120px; min-width: 120px; }
  .book-header-title { font-size: 22px; }
}

/* Player page */
body.no-chrome { overflow: hidden; background: #000; }
.fs-player { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; z-index: 50; }
.fs-top, .fs-rail, .fs-bottom, .fs-progress { transition: opacity .25s ease; }
.fs-player.controls-hidden .fs-top,
.fs-player.controls-hidden .fs-rail,
.fs-player.controls-hidden .fs-bottom,
.fs-player.controls-hidden .fs-progress { opacity: 0; pointer-events: none; }
.fs-video-wrap { position: relative; flex: 1; min-height: 0; background: #000; overflow: hidden; }
.fs-video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.fs-video-wrap video::cue { font-size: 1px; color: transparent; background: transparent; }
.fs-subtitle { position: absolute; left: 10%; right: 10%; top: 65%; transform: translateY(-50%); text-align: center; font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.7); line-height: 1.4; pointer-events: none; z-index: 3; }
.fs-video-wrap .fs-video-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #666; font-size: 14px; }

/* Top overlay */
.fs-top { position: absolute; top: 0; left: 0; right: 0; padding: env(safe-area-inset-top) 14px 24px; padding-top: calc(env(safe-area-inset-top, 0) + 12px); display: flex; align-items: center; gap: 12px; background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent); z-index: 5; pointer-events: none; }
.fs-top > * { pointer-events: auto; }
.fs-back { color: #fff; font-size: 18px; font-weight: 600; padding: 6px 8px; min-width: 44px; min-height: 44px; display: flex; align-items: center; gap: 4px; }
.fs-back::before { content: '‹'; font-size: 28px; line-height: 1; margin-right: 4px; }
.fs-top-spacer { flex: 1; }
.fs-top-action { color: #fff; font-size: 13px; padding: 8px 10px; min-height: 44px; display: flex; align-items: center; gap: 4px; background: transparent; border: none; cursor: pointer; }
.fs-top-action.icon { font-size: 20px; min-width: 44px; justify-content: center; }
.fs-top-action::before { font-size: 16px; opacity: .9; }
.fs-speed::before { content: '⏲'; }

/* Right side rail */
.fs-rail { position: absolute; right: 8px; bottom: 180px; display: flex; flex-direction: column; gap: 22px; z-index: 5; align-items: center; }.fs-rail button { background: transparent; border: none; color: #fff; cursor: pointer; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; min-height: 56px; }
.fs-rail .ico { font-size: 28px; line-height: 1; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.fs-rail .lbl { font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* Bottom info overlay (above progress slider) */
.fs-bottom { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0) + 40px); padding: 0 14px 8px; z-index: 4; pointer-events: none; }
.fs-bottom > * { pointer-events: auto; }
.fs-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.fs-title::after { content: ' ›'; opacity: .7; }
.fs-desc { color: #ccc; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.fs-desc-more { color: #fff; font-weight: 600; }

/* Progress bar (at very bottom of video area) */
.fs-progress { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0) + 4px); height: 32px; padding: 4px 12px; cursor: pointer; z-index: 5; touch-action: none; display: flex; align-items: center; gap: 10px; user-select: none; -webkit-user-select: none; }
.fs-progress-track { flex: 1; height: 3px; background: rgba(255,255,255,.25); position: relative; border-radius: 2px; transition: height .15s; }
.fs-progress:hover .fs-progress-track, .fs-progress.dragging .fs-progress-track { height: 5px; }
.fs-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #ff4757; width: 0; border-radius: 2px; }
.fs-progress-knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: #ff4757; opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 0 4px rgba(0,0,0,.5); }
.fs-progress:hover .fs-progress-knob, .fs-progress.dragging .fs-progress-knob { opacity: 1; }
.fs-progress.dragging .fs-progress-knob { transform: translate(-50%, -50%) scale(1.2); }
.fs-time { color: #fff; font-size: 12px; font-weight: 500; min-width: 36px; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.7); flex-shrink: 0; }
.fs-time-cur { text-align: right; }
.fs-time-dur { text-align: left; opacity: .8; }
@media (pointer: coarse) {
  .fs-progress-knob { opacity: 1; width: 12px; height: 12px; }
  .fs-progress-track { height: 3px; }
}

/* Speed / Quality menu (top right) */
.fs-speed-menu, .fs-quality-menu { position: absolute; top: 60px; right: 14px; background: rgba(20,20,20,.95); border-radius: 8px; padding: 6px 0; z-index: 10; min-width: 90px; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.fs-speed-menu[hidden], .fs-quality-menu[hidden] { display: none; }
.fs-speed-menu button, .fs-quality-menu button { display: block; width: 100%; padding: 10px 18px; background: transparent; border: none; color: #fff; font-size: 14px; cursor: pointer; text-align: left; }
.fs-speed-menu button.active, .fs-quality-menu button.active { color: #ff4757; font-weight: 700; }

/* Bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; opacity: 0; transition: opacity .25s; pointer-events: none; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #1a1310; border-radius: 16px 16px 0 0; z-index: 101; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: rgba(255,255,255,.4); border-radius: 2px; margin: 8px auto 0; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; border: none; font-size: 18px; cursor: pointer; line-height: 1; z-index: 1; }
.sheet-content { overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 20px; -webkit-overflow-scrolling: touch; }

/* Share sheet */
.share-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; transition: opacity .2s; pointer-events: none; }
.share-backdrop.open { opacity: 1; pointer-events: auto; }
.share-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #1a1310; border-radius: 16px 16px 0 0; z-index: 201; transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); padding: 0 14px calc(env(safe-area-inset-bottom, 0) + 24px); }
.share-sheet.open { transform: translateY(0); }
.share-title { color: #fff; font-size: 16px; font-weight: 700; text-align: center; padding: 14px 0 18px; }
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding-bottom: 8px; }
.share-opt { background: transparent; border: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; font-weight: 500; }
.share-opt[hidden] { display: none; }
.share-opt:active { opacity: .7; }
.share-ico { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; font-weight: 700; }
.share-toast { position: fixed; left: 50%; bottom: 30%; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 13px; z-index: 300; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
.share-toast[hidden] { display: none; }
@media (max-width: 360px) {
  .share-grid { grid-template-columns: repeat(4, 1fr); }
}
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; margin: 12px 0; }
.ep-btn { background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 8px; text-align: center; font-size: 13px; cursor: pointer; transition: all .2s; display: block; }
.ep-btn:hover, .ep-btn.active { background: #ff4757; border-color: #ff4757; color: #fff; }
.player-wrap { width: 100%; max-width: 500px; margin: 16px auto; background: #000; border-radius: 8px; overflow: hidden; }
.player-wrap video { width: 100%; aspect-ratio: 9/16; background: #000; }
.player-nav { display: flex; justify-content: space-between; padding: 12px; max-width: 500px; margin: 0 auto; }
.player-nav a { background: #1a1a1a; padding: 8px 16px; border-radius: 6px; font-size: 13px; }
.player-nav a:hover { background: #ff4757; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.empty { text-align: center; padding: 40px; color: #666; }
.actor-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.actor-item { text-align: center; min-width: 70px; }
.actor-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #333; }
.actor-item .name { font-size: 11px; margin-top: 4px; color: #ccc; }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
}
.list-card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1a1a1a; }
.list-card-cover { position: relative; width: 100px; min-width: 100px; border-radius: 8px; overflow: hidden; }
.list-card-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.list-card-cover .badge { top: 6px; left: 6px; right: auto; }
.list-card-cover .views { position: absolute; bottom: 6px; left: 6px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); display: flex; align-items: center; gap: 3px; }
.list-card-cover .views::before { content: '▶'; font-size: 9px; }
.list-card-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.list-card-desc { font-size: 12px; color: #888; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.list-card-meta { display: flex; align-items: center; gap: 12px; }
.list-card-ep { font-size: 11px; color: #666; }

.rank-pills { display: flex; gap: 10px; margin: 16px 0 18px; flex-wrap: wrap; }
.rank-pill { padding: 8px 18px; border-radius: 20px; border: 1px solid #333; color: #aaa; font-size: 13px; font-weight: 500; transition: all .2s; white-space: nowrap; }
.rank-pill:hover { color: #fff; border-color: #555; }
.rank-pill.active { background: #2a2a2a; border-color: #2a2a2a; color: #fff; font-weight: 600; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: #131313; border-radius: 12px; transition: background .2s; }
.rank-item:hover { background: #1a1a1a; }
.rank-num { font-size: 22px; font-weight: 700; min-width: 28px; text-align: center; color: #fff; font-style: italic; }
.rank-item:nth-child(1) .rank-num { color: #ff4757; }
.rank-item:nth-child(2) .rank-num { color: #ff7b1a; }
.rank-item:nth-child(3) .rank-num { color: #ffb01a; }
.rank-item:nth-child(n+10) .rank-num { font-size: 18px; color: #888; }
.rank-cover { width: 64px; min-width: 64px; aspect-ratio: 2/3; border-radius: 6px; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.rank-tags { font-size: 12px; color: #888; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rank-heat { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #ccc; white-space: nowrap; }
.rank-heat::before { content: '🔥'; font-size: 14px; }

.cat-filters { margin: 8px 0 18px; display: flex; flex-direction: column; gap: 4px; }
.cat-filter-row { display: flex; gap: 8px; padding: 6px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cat-filter-row::-webkit-scrollbar { display: none; }
.cat-pill { padding: 7px 16px; border-radius: 18px; font-size: 13px; color: #bbb; font-weight: 500; transition: all .15s; flex-shrink: 0; }
.cat-pill:hover { color: #fff; }
.cat-pill.active { background: #3a1820; color: #ff4757; font-weight: 600; }
.cat-pagination { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
