/* torrent 门户前台样式(P0 骨架版, 够看即可; 视觉打磨后置) */
* { box-sizing: border-box; }
body {
    margin: 0;
    font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #222;
    background: #f5f6f8;
}
a { color: #1a6ec0; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---- header ---- */
.site-header { background: #1f2430; color: #fff; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { color: #fff; font-size: 20px; font-weight: 700; white-space: nowrap; }
.search-box { flex: 1; display: flex; max-width: 560px; }
.search-box input { flex: 1; height: 36px; padding: 0 12px; border: 0; border-radius: 4px 0 0 4px; font-size: 14px; }
.search-box button { height: 36px; padding: 0 20px; border: 0; border-radius: 0 4px 4px 0; background: #f0a020; color: #fff; cursor: pointer; }
.user-box { margin-left: auto; white-space: nowrap; }
.user-box a, .user-box .me { color: #cfd6e4; margin-left: 12px; }

/* ---- 类型导航 ---- */
.type-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.type-nav a { padding: 6px 16px; background: #fff; border-radius: 16px; color: #444; }
.type-nav a.on { background: #1a6ec0; color: #fff; }

.page-title { font-size: 20px; margin: 8px 0 16px; }
.page-title .total { font-size: 13px; color: #888; font-weight: 400; margin-left: 10px; }
.empty { padding: 40px 0; color: #888; text-align: center; }

/* ---- 卡片列表 ---- */
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.card { background: #fff; border-radius: 6px; overflow: hidden; }
.card a { display: block; color: inherit; }
.card a:hover { text-decoration: none; }
.poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #e6e8ec; }
.card .meta { padding: 8px 10px 12px; }
.card .title { display: block; font-size: 14px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .status { display: inline-block; margin-top: 4px; font-size: 12px; color: #c0392b; }
.card .sub { display: block; margin-top: 2px; font-size: 12px; color: #888; }

/* ---- 分页 ---- */
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 28px 0; }
.pager a { padding: 6px 18px; background: #fff; border-radius: 4px; }
.pager .cur { color: #666; font-size: 14px; }

/* ---- 详情页 ---- */
.detail { padding-top: 20px; }
.detail .head { display: flex; gap: 24px; background: #fff; border-radius: 6px; padding: 20px; }
.poster-big { width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: #e6e8ec; }
.detail h1 { margin: 0 0 6px; font-size: 24px; }
.detail h1 .year { color: #888; font-weight: 400; }
.detail .en { margin: 0 0 12px; color: #888; }
.attrs { list-style: none; margin: 0; padding: 0; }
.attrs li { padding: 3px 0; font-size: 14px; }
.attrs em { display: inline-block; width: 56px; color: #888; font-style: normal; }
.intro, .links { background: #fff; border-radius: 6px; padding: 20px; margin-top: 16px; }
.intro h2, .links h2 { margin: 0 0 12px; font-size: 17px; }
.links .cnt { margin-left: 10px; font-size: 13px; color: #888; font-weight: 400; }

.link-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.link-table th, .link-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; }
.link-table th { color: #888; font-weight: 400; font-size: 13px; }
.link-table .type { width: 76px; color: #555; }
.link-table .res { width: 90px; color: #666; }
.link-table .ops { width: 180px; white-space: nowrap; }
.link-table .grp { margin-left: 8px; padding: 1px 6px; background: #eef3f9; border-radius: 3px; font-size: 12px; color: #567; }
.link-table .pwd { margin-left: 8px; color: #c0392b; font-size: 12px; }
.link-table .warn { margin-left: 8px; color: #999; font-size: 12px; }
.btn { display: inline-block; padding: 5px 14px; border: 1px solid #1a6ec0; border-radius: 4px;
    background: #fff; color: #1a6ec0; font-size: 13px; cursor: pointer; }
.btn:hover { background: #1a6ec0; color: #fff; text-decoration: none; }
.btn.play { border-color: #f0a020; color: #fff; background: #f0a020; }
.btn.copy { margin-left: 6px; }

/* ---- 播放页 ---- */
.player-wrap { background: #000; border-radius: 6px; overflow: hidden; margin-top: 20px; }
.player-wrap video { width: 100%; max-height: 72vh; display: block; background: #000; }
.player-tip { padding: 12px 0; color: #888; font-size: 13px; }

/* ---- footer ---- */
.site-footer { margin-top: 40px; padding: 20px 0; background: #1f2430; color: #8a93a6; font-size: 13px; text-align: center; }

@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
    .search-box { order: 3; width: 100%; max-width: none; }
    .detail .head { flex-direction: column; }
    .poster-big { width: 150px; }
    .link-table .ops { width: auto; }
}
