/*
Pomo4K - 4K 影视资源 WordPress 主题
前端自定义样式（对应原站内联样式，覆盖 Tailwind 运行时未覆盖的部分）
*/

/* ===== 通用 ===== */
.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
}

.hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 100%);
}

.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ===== 移动端导航 ===== */
.mobile-nav-wrap ul { display: flex; flex-direction: column; margin: 0; padding: 0; }
.mobile-nav-wrap li { list-style: none; border-bottom: 1px solid #1f1f1f; position: relative; }
.mobile-nav-wrap li:last-child { border-bottom: none; }
.mobile-nav-wrap a { display: block; padding: 16px 12px; color: #d1d5db; transition: all 0.3s ease; font-size: 15px; font-weight: bold; border-radius: 8px; margin: 4px 0; }
.mobile-nav-wrap a:hover { color: var(--p4k-accent,#f5c518); padding-left: 20px; background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.05); }
.mobile-nav-wrap span.absolute { display: none !important; }

/* ===== 评论分页 ===== */
#comment-pagination a,
#comment-pagination span,
#comment-pagination em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-style: normal;
}
#comment-pagination a { background: transparent; color: #6b7280; }
.dark #comment-pagination a { color: #9ca3af; }
#comment-pagination a:hover { background: #f3f4f6; color: #000000; }
.dark #comment-pagination a:hover { background: rgba(255, 255, 255, 0.1); color: var(--p4k-accent,#f5c518); }
#comment-pagination span { background: var(--p4k-accent,#f5c518); color: #000000; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.dark #comment-pagination span { background: var(--p4k-accent,#f5c518); color: #000; }
#comment-pagination em { padding: 0 10px; color: #6b7280; }

/* ===== 筛选器 ===== */
.filter-container { margin-bottom: 30px; }
.compact-filter { background: transparent; padding: 10px 0 20px 0; border: none; box-shadow: none; border-radius: 0; }
.compact-select { width: 100%; border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 12px; font-size: 14px; color: #4b5563; outline: none; background-color: #fff; transition: border-color 0.2s, background-color 0.2s, color 0.2s; cursor: pointer; }
.compact-select:focus { border-color: var(--p4k-accent,#f5c518); }
.dark .compact-select { background-color: #1f1f1f; border-color: #374151; color: #d1d5db; }
.dark .compact-select:focus { border-color: var(--p4k-accent,#f5c518); }
.compact-btn { background-color: var(--p4k-accent,#f5c518); color: #000; font-weight: bold; padding: 8px 24px; border-radius: 6px; font-size: 14px; transition: background-color 0.2s; white-space: nowrap; border: 1px solid var(--p4k-accent,#f5c518); cursor: pointer; width: 100%; text-align: center; }
.compact-btn:hover { background-color: #e6b816; border-color: #e6b816; }
.compact-btn-outline { background-color: transparent; color: #4b5563; font-weight: bold; padding: 8px 24px; border-radius: 6px; font-size: 14px; transition: all 0.2s; white-space: nowrap; border: 1px solid #d1d5db; cursor: pointer; width: 100%; text-align: center; display: inline-flex; justify-content: center; align-items: center; }
.compact-btn-outline:hover { background-color: #f9fafb; border-color: #9ca3af; color: #111827; }
.dark .compact-btn-outline { color: #d1d5db; border-color: #4b5563; }
.dark .compact-btn-outline:hover { background-color: #1f1f1f; border-color: #6b7280; color: #fff; }
@media (min-width: 768px) {
    .compact-btn { width: auto; }
    .compact-btn-outline { width: auto; }
}

/* ===== 分页 ===== */
.pagination-container span, .pagination-container a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 4px; border-radius: 4px; background-color: #fff; color: #333; font-weight: bold; font-size: 14px; border: 1px solid #e5e7eb; text-decoration: none; transition: all 0.2s; }
.pagination-container a:hover { background-color: #f9fafb; }
.pagination-container span { background-color: var(--p4k-accent,#f5c518); border-color: var(--p4k-accent,#f5c518); color: #000; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.dark .pagination-container a { background-color: #1f1f1f; color: #d1d5db; border-color: #374151; }
.dark .pagination-container a:hover { background-color: #374151; }
.dark .pagination-container span { background-color: var(--p4k-accent,#f5c518); border-color: var(--p4k-accent,#f5c518); color: #000; }

/* ===== 卡片标签 ===== */
.tag-container { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; align-items: center; justify-content: space-between; width: 100%; }
.tag { background-color: #2a2a2a; color: #ffffff; font-size: 14px; font-weight: 800; padding: 6px 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: 1; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); transition: background-color 0.3s, color 0.3s; }
.tag .highlight { color: var(--p4k-accent,#f5c518); margin-left: 6px; transition: color 0.3s; }
/* ---- v3.9.0 卡片强化：海报评分角标 + 资源小标签 ---- */
.p4k-card-score { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); color: var(--p4k-accent,#f5c518); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; border: 1px solid rgb(var(--p4k-accent-rgb,245 197 24) / 0.35); line-height: 1; }
.p4k-card-score i { font-size: 10px; }
.p4k-card-tag { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; padding: 6px 8px; border-radius: 6px; line-height: 1; white-space: nowrap; flex: none; }
.p4k-card-tag.is-pan { background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.14); color: var(--p4k-accent,#f5c518); border: 1px solid rgb(var(--p4k-accent-rgb,245 197 24) / 0.4); }
.p4k-card-tag.is-spec { background: #2a2a2a; color: #e5e7eb; border: 1px solid #3a3a3a; }
/* ---- v3.9.0 首页板块头 ---- */
.p4k-sec-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 14px; }
.p4k-sec-head h2 { font-size: 20px; font-weight: 800; color: #ffffff; display: flex; align-items: center; gap: 10px; }
.p4k-sec-head h2::before { content: ''; display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: var(--p4k-accent,#f5c518); }
.p4k-sec-head span { font-size: 12px; color: #9ca3af; font-weight: 500; }

/* ===== 详情页（x-dbjs）===== */
#x-dbjs-download-section h3 { margin-top: 20px; }

.x-dbjs-card { background-color: #181818; border-radius: 12px; padding: 25px; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin-bottom: 20px; }
.x-dbjs-header { display: flex; gap: 30px; }
.x-dbjs-poster { flex-shrink: 0; width: 260px; position: relative; }
.x-dbjs-poster img { width: 100%; height: auto; max-height: 390px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); display: block; }
.x-dbjs-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.x-dbjs-title { color: #ffffff; font-size: 26px; font-weight: 700; margin: 0 0 20px 0; line-height: 1.3; border-bottom: none !important; }
.x-dbjs-meta { font-size: 14px; line-height: 1.8; color: #aaa; }
.meta-row { margin-bottom: 8px; }
.meta-row span { color: #666; margin-right: 8px; min-width: 30px; display: inline-block; }
.meta-row.actors { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; max-height: 3.2em; }
.x-dbjs-actions { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.x-dbjs-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.rating-badge { background-color: #333; color: var(--p4k-accent,#f5c518); border: 1px solid #444; }
.x-dbjs-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid #444 !important; background-color: transparent; color: #fff; transition: all 0.2s; cursor: pointer; text-decoration: none !important; box-sizing: border-box; }
.x-dbjs-card .x-dbjs-actions .x-dbjs-btn-icon,
.x-dbjs-card .x-dbjs-actions .fav-btn { border: 1px solid #444 !important; }
.x-dbjs-btn-icon:hover { background-color: #333; border-color: #fff !important; color: #fff; }
.fav-btn.active svg { fill: currentColor; }
.x-dbjs-desc-block { margin-top: 30px; margin-bottom: 20px; }
.x-dbjs-desc-block p { color: #333; font-size: 15px; line-height: 1.8; margin: 0; }

/* 剧照墙（v3.7.4）：固定单行、横向滚动（胶片条效果），不再折行成两行 */
.pic-col5 { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; clear: both; padding-left: 0px !important; scrollbar-width: thin; }
.pic-col5 li { width: 15.5%; min-width: 130px; flex: 0 0 auto; margin-bottom: 10px; box-sizing: border-box; }
.pic-col5 li .still-wrap { display: block; width: 100%; height: 0; padding-bottom: 100%; position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.pic-col5 li img { position: absolute; top: 0; left: 0; margin: 0 auto; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.pic-col5 li img:hover { transform: scale(1.1); }

/* 下载折叠面板 */
.x-dbjs-accordion { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fff; }
.x-dbjs-accordion-item { border-bottom: 1px solid #e0e0e0; }
.x-dbjs-accordion-item:last-child { border-bottom: none; }
.x-dbjs-accordion-header { padding: 15px 20px; background: #f8f9fa; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 16px; transition: background 0.2s; user-select: none; }
.x-dbjs-accordion-header:hover { background: #e9ecef; }
.x-dbjs-accordion-title { color: #333; }
.x-dbjs-accordion-icon { font-size: 14px; color: #666; transition: transform 0.3s ease; display: inline-block; }
.x-dbjs-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fff; }
.x-dbjs-accordion-inner { padding: 15px 20px; }

.download-links .download-item { margin: 0; padding: 12px 0; background: transparent; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s ease; }
.download-links .download-item:last-child { border-bottom: none; }
.download-links .download-item:hover { background: #fafafa; }
.x-dbjs-download-link { color: #333; text-decoration: none !important; flex-grow: 1; font-weight: 500; font-size: 14px; -webkit-tap-highlight-color: transparent; margin-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-dbjs-download-link:hover { color: #6c757d; }
.download-info { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.file-size { color: #999; font-size: 12px; font-weight: normal; margin-right: 15px; white-space: nowrap; }
.x-dbjs-download-btn { background: #333; color: white !important; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; text-decoration: none !important; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; }
.x-dbjs-download-btn:hover { background: #555; text-decoration: none !important; }
.x-dbjs-download-btn:active { transform: translateY(0); text-decoration: none !important; }
.x-dbjs-copy-btn { background: #f8f9fa; border: 1px solid #dee2e6; color: #495057; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; }
.x-dbjs-copy-btn:hover { background: #e9ecef; border-color: #adb5bd; }
.x-dbjs-copy-btn:active { transform: translateY(0); }
.x-dbjs-copy-btn.copied { background: #d4edda; border-color: #c3e6cb; color: #155724; }

/* 详情页 dark 模式覆盖 */
.dark .text-gray-900 { color: #e0e0e0; }
.dark .x-dbjs-desc-block p { color: #e0e0e0; }
.dark .download-block { background: transparent; }
.dark .x-dbjs-accordion { border-color: #333; background: #121212; }
.dark .x-dbjs-accordion-item { border-bottom-color: #333; }
.dark .x-dbjs-accordion-header { background: #1a1a1a; color: #e0e0e0; }
.dark .x-dbjs-accordion-header:hover { background: #222; }
.dark .x-dbjs-accordion-title { color: #e0e0e0; }
.dark .x-dbjs-accordion-icon { color: #aaa; }
.dark .x-dbjs-accordion-content { background: #121212; }
.dark .x-dbjs-accordion-inner { background: #121212; }
.dark .download-links .download-item { background: transparent; border-bottom-color: #333; }
.dark .download-links .download-item:hover { background: #1a1a1a; }
.dark .x-dbjs-download-link { color: #e9ecef; }
.dark .x-dbjs-download-link:hover { color: var(--p4k-accent,#f5c518); }
.dark .file-size { color: #aaa; }
.dark .x-dbjs-download-btn { background: var(--p4k-accent,#f5c518); color: #000 !important; }
.dark .x-dbjs-download-btn:hover { background: #e6b816; }
.dark .x-dbjs-copy-btn { background: #1f1f1f; border-color: #333; color: #e0e0e0; }
.dark .x-dbjs-copy-btn:hover { background: #2a2a2a; border-color: #444; }
.dark .x-dbjs-copy-btn.copied { background: #2d5f3d; border-color: #3a7c4a; color: #d4edda; }

@media (max-width: 768px) {
    .x-dbjs-header { flex-direction: column; align-items: center; }
    .x-dbjs-poster { width: 220px; margin-bottom: 15px; }
    .x-dbjs-info { text-align: center; width: 100%; }
    .x-dbjs-meta { text-align: left; }
    .x-dbjs-actions { justify-content: center; }
    .pic-col5 li { width: 40%; min-width: 120px; } /* 单行横向滚动条：手机上稍宽、左右滑看全部 */
    .download-links .download-item { flex-direction: column; align-items: flex-start; padding: 12px; }
    .x-dbjs-download-link { flex-grow: 1; margin-right: 0; margin-bottom: 10px; white-space: normal; overflow: visible; text-overflow: clip; width: 100%; line-height: 1.5; }
    .download-info { flex-shrink: 0; gap: 8px; display: flex; align-items: center; width: 100%; }
    .file-size { margin-right: auto; white-space: nowrap; color: #999; font-size: 12px; }
    .x-dbjs-download-btn, .x-dbjs-copy-btn { padding: 5px 10px; font-size: 13px; min-width: 28px; height: 28px; flex-shrink: 0; }
}

/* ===== 收藏 Toast ===== */
#fav-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.8); color: #fff; padding: 15px 25px; border-radius: 6px; z-index: 9999; display: none; font-size: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); animation: p4k-fadein 0.3s; }
@keyframes p4k-fadein { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ===== 豆瓣热门榜单模态框 ===== */
#douban-modal-body { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .2) transparent; }
.dark #douban-modal-body { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
#douban-modal-body::-webkit-scrollbar { width: 6px; }
#douban-modal-body::-webkit-scrollbar-track { background: transparent; }
#douban-modal-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 3px; }
#douban-modal-body::-webkit-scrollbar-thumb:hover { background: var(--p4k-accent,#f5c518); }
.dark #douban-modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }
.dark #douban-modal-body::-webkit-scrollbar-thumb:hover { background: var(--p4k-accent,#f5c518); }

.douban-skel { position: relative; overflow: hidden; background: #e5e7eb; }
.dark .douban-skel { background: #1f1f1f; }
.douban-skel::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: douban-shimmer 1.4s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
.dark .douban-skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); }
@keyframes douban-shimmer { 100% { transform: translateX(100%); } }
@keyframes douban-modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes douban-fade-in { from { opacity: 0; } to { opacity: 1; } }
#douban-modal > .douban-panel { animation: douban-modal-in .28s cubic-bezier(.16, 1, .3, 1); }
#douban-modal > #douban-modal-overlay { animation: douban-fade-in .2s ease; }

.douban-tab.active { background: var(--p4k-accent,#f5c518); color: #000; }
.douban-tab:not(.active) { background: #f3f4f6; color: #4b5563; }
.dark .douban-tab:not(.active) { background: #1f1f1f; color: #9ca3af; }

/* ===== 评论区 ===== */
.p4k-comment { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; transition: border-color .3s ease; }
.dark .p4k-comment { background: #121212; border-color: #1f1f1f; }
.p4k-comment:hover { border-color: var(--p4k-accent,#f5c518); }
.p4k-comment .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p4k-comment .comment-author img { width: 36px; height: 36px; border-radius: 9999px; }
.p4k-comment .comment-author .fn { font-weight: 700; font-size: 14px; color: #111827; text-decoration: none; }
.dark .p4k-comment .comment-author .fn { color: #e5e7eb; }
.p4k-comment .comment-metadata { font-size: 11px; color: #9ca3af; margin-left: auto; }
.p4k-comment .comment-content { font-size: 14px; line-height: 1.7; color: #374151; word-break: break-word; }
.dark .p4k-comment .comment-content { color: #d1d5db; }
.p4k-comment .comment-body > .reply { margin-top: 8px; }
.p4k-comment .reply a { font-size: 12px; font-weight: 700; color: #4b5563; text-decoration: none; padding: 4px 10px; border: 1px solid #d1d5db; border-radius: 9999px; }
.dark .p4k-comment .reply a { color: #9ca3af; border-color: #374151; }
.p4k-comment .reply a:hover { color: #000; background: var(--p4k-accent,#f5c518); border-color: var(--p4k-accent,#f5c518); }
.children { list-style: none; margin-left: 44px; padding-left: 0; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; color: #6b7280; margin-bottom: 6px; }
.dark .comment-form label { color: #9ca3af; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; background: #f9f9f9; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none; transition: border-color .2s;
}
.dark .comment-form input[type="text"], .dark .comment-form input[type="email"], .dark .comment-form input[type="url"], .dark .comment-form textarea { background: #1f1f1f; border-color: #374151; color: #e5e7eb; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--p4k-accent,#f5c518); }
.comment-form input[type="submit"] { background: var(--p4k-accent,#f5c518); color: #000; font-weight: 700; border: none; border-radius: 8px; padding: 10px 28px; font-size: 14px; cursor: pointer; transition: background .2s; }
.comment-form input[type="submit"]:hover { background: #e6b816; }
.logged-in-as, .comment-notes, .form-allowed-tags, .logged-in-as a { font-size: 12px; color: #9ca3af; }
.nocomments { font-size: 13px; color: #9ca3af; }

/* ===== 点赞（值得一看/浪费时间）—— 原站 em_digg 插件样式逐字还原 ===== */
.em-digg-container { display: flex; justify-content: center; align-items: center; margin: 40px auto; width: 100%; }
.em-digg-social-main { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; max-width: 100%; }
/* 强制外层包裹 span 彻底透明，防范外界对 .active / .em-digg-like 结构的背景污染 */
.em-digg-like,
.em-digg-bad { background: transparent !important; background-color: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; display: inline-block !important; }
.em-digg-social-main a { display: inline-flex; align-items: center; justify-content: center; color: #666 !important; border: 1px solid #e2e8f0 !important; background-color: #ffffff !important; border-radius: 24px !important; min-width: 140px; height: 48px; padding: 0 20px 0 62px; box-sizing: border-box; transition: all 0.2s ease-in-out; font-size: 14px; text-decoration: none !important; position: relative; overflow: hidden; outline: none !important; }
.em-digg-like a { background: url('../img/yjz-dark.png') no-repeat 16px center !important; background-size: 32px 32px !important; }
.em-digg-bad a { background: url('../img/wjz-dark.png') no-repeat 16px center !important; background-size: 32px 32px !important; }
.em-digg-social-main a:focus,
.em-digg-social-main a:active { outline: none !important; text-decoration: none !important; background-color: #ffffff !important; color: #666 !important; border-color: #e2e8f0 !important; box-shadow: none !important; }
.em-digg-social-main a:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; color: #333 !important; border-color: #cbd5e1 !important; }
/* 点赞高亮状态 - 微信绿 */
.em-digg-like a.active,
.em-digg-like a.active:focus,
.em-digg-like a.active:active { border-color: #2ecc71 !important; color: #2ecc71 !important; background-color: #ffffff !important; font-weight: 600; }
.em-digg-like a:not(.active):hover { border-color: #2ecc71 !important; color: #2ecc71 !important; }
/* 点踩高亮状态 - 优雅红 */
.em-digg-bad a.active,
.em-digg-bad a.active:focus,
.em-digg-bad a.active:active { border-color: #e74c3c !important; color: #e74c3c !important; background-color: #ffffff !important; font-weight: 600; }
.em-digg-bad a:not(.active):hover { border-color: #e74c3c !important; color: #e74c3c !important; }
.em-digg-num { margin-left: 6px; font-weight: bold; }
.em-digg-num i { font-style: normal; }
/* 按压质感 */
.em-digg-social-main a:active { transform: scale(0.96) !important; }

/* ===== WordPress 核心补充 ===== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wp-block-image img, .entry-content img { max-width: 100%; height: auto; }
img.p4k-placeholder { width: 100%; height: 100%; object-fit: cover; }


/* ==================== 增强功能样式（p4k-*） ==================== */

/* 搜索关键词高亮 */
mark.p4k-hl { background: var(--p4k-accent,#f5c518); color: #000; border-radius: 2px; padding: 0 2px; }

/* ---- 即时搜索建议下拉 ---- */
.p4k-search-live { position: relative; }
.p4k-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1200; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); overflow-y: auto; max-height: 420px; }
.dark .p4k-suggest { background: #121212; border-color: #1f1f1f; }
.p4k-suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none !important; color: #111827; }
.p4k-suggest-item + .p4k-suggest-item { border-top: 1px solid #f1f5f9; }
.dark .p4k-suggest-item + .p4k-suggest-item { border-color: #1f1f1f; }
.dark .p4k-suggest-item { color: #e5e7eb; }
.p4k-suggest-item:hover, .p4k-suggest-item.is-active { background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.12); }
.p4k-suggest-item img { width: 40px; height: 56px; object-fit: cover; object-position: top; border-radius: 6px; flex: none; background: #e5e7eb; }
.dark .p4k-suggest-item img { background: #1f1f1f; }
.p4k-suggest-noimg { width: 40px; height: 56px; flex: none; border-radius: 6px; background: linear-gradient(135deg, #1f2937, #374151); }
.p4k-suggest-txt { display: flex; flex-direction: column; min-width: 0; }
.p4k-suggest-txt strong { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p4k-suggest-txt em { font-style: normal; font-size: 11px; color: #6b7280; }
.dark .p4k-suggest-txt em { color: #9ca3af; }

/* ---- 筛选多选 chips ---- */
.p4k-chip-row { display: flex; align-items: flex-start; gap: 10px; }
.p4k-chip-label { flex: none; font-size: 13px; font-weight: 700; color: #374151; padding-top: 6px; min-width: 70px; }
.dark .p4k-chip-label { color: #d1d5db; }
.p4k-chip-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 96px; overflow-y: auto; padding: 2px; }
.p4k-chip { display: inline-flex; align-items: center; position: relative; cursor: pointer; user-select: none; }
.p4k-chip input { position: absolute; opacity: 0; pointer-events: none; }
.p4k-chip span { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #ffffff; color: #4b5563; transition: all 0.15s ease; white-space: nowrap; }
.dark .p4k-chip span { background: #1f1f1f; border-color: #374151; color: #9ca3af; }
.p4k-chip:hover span { border-color: var(--p4k-accent,#f5c518); color: #b58b00; color: color-mix(in srgb, var(--p4k-accent,#f5c518) 75%, #000); }
.dark .p4k-chip:hover span { color: var(--p4k-accent,#f5c518); }
.p4k-chip.is-active span { background: var(--p4k-accent,#f5c518); border-color: var(--p4k-accent,#f5c518); color: #000000; font-weight: 700; }
.dark .p4k-chip.is-active span { background: var(--p4k-accent,#f5c518); color: #000000; border-color: var(--p4k-accent,#f5c518); }

/* ---- 列表骨架屏 ---- */
.p4k-skel-card { display: flex; flex-direction: column; gap: 10px; border-radius: 12px; overflow: hidden; }
.p4k-skel-poster, .p4k-skel-line { background: linear-gradient(100deg, rgba(148, 163, 184, 0.12) 40%, rgba(148, 163, 184, 0.24) 50%, rgba(148, 163, 184, 0.12) 60%); background-size: 200% 100%; animation: p4k-skel-shimmer 1.2s ease-in-out infinite; }
.p4k-skel-poster { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; }
.p4k-skel-line { height: 12px; border-radius: 6px; }
@keyframes p4k-skel-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }

/* ---- 剧照灯箱 ---- */
#p4k-lightbox { position: fixed; inset: 0; z-index: 12000; align-items: center; justify-content: center; }
.p4k-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.92); }
.p4k-lightbox-view { position: relative; z-index: 1; max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.p4k-lightbox-close, .p4k-lightbox-prev, .p4k-lightbox-next { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease; }
.p4k-lightbox-close:hover, .p4k-lightbox-prev:hover, .p4k-lightbox-next:hover { background: var(--p4k-accent,#f5c518); color: #000000; border-color: var(--p4k-accent,#f5c518); }
.p4k-lightbox-close { top: 18px; right: 18px; }
.p4k-lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.p4k-lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.p4k-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, 0.5); padding: 4px 14px; border-radius: 999px; }

/* ---- 站内五星评分 ---- */
.p4k-ur { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.1); border: 1px solid rgb(var(--p4k-accent-rgb,245 197 24) / 0.35); }
.p4k-ur-stars { display: inline-flex; gap: 2px; }
.p4k-ur-star { font-size: 20px; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color 0.1s ease, transform 0.1s ease; }
.dark .p4k-ur-star { color: #4b5563; }
.p4k-ur-star.is-on, .p4k-ur-star.is-hover { color: var(--p4k-accent,#f5c518); }
.p4k-ur-star.is-hover { transform: scale(1.15); }
.p4k-ur.is-done .p4k-ur-star { cursor: default; }
.p4k-ur-meta { font-size: 12px; color: #6b7280; white-space: nowrap; }
.dark .p4k-ur-meta { color: #9ca3af; }
.p4k-ur-meta i { font-style: normal; font-weight: 800; color: var(--p4k-accent,#f5c518); font-size: 14px; }

/* ---- 追更订阅按钮状态 ---- */
.p4k-sub-btn.is-active { color: var(--p4k-accent,#f5c518); box-shadow: 0 0 0 2px rgb(var(--p4k-accent-rgb,245 197 24) / 0.4); }
.p4k-sub-btn.is-busy { opacity: 0.5; pointer-events: none; }

/* ---- 资源失效反馈按钮 ---- */
.p4k-report-btn { font-size: 11px; padding: 2px 10px; border-radius: 999px; border: 1px solid #e2e8f0; background: transparent; color: #9ca3af; cursor: pointer; transition: all 0.15s ease; line-height: 1.6; }
.dark .p4k-report-btn { border-color: #374151; color: #9ca3af; }
.p4k-report-btn:hover { border-color: #e74c3c; color: #e74c3c; }
.p4k-report-btn.is-done { border-color: #2ecc71; color: #2ecc71; cursor: default; }

/* ---- 移动端底部 Tab Bar ---- */
#p4k-tabbar { height: 60px; }
#p4k-tabbar .p4k-tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1; max-width: 120px; color: #6b7280; text-decoration: none !important; font-size: 11px; font-weight: 600; padding: 8px 0; cursor: pointer; background: none; border: none; -webkit-tap-highlight-color: transparent; }
#p4k-tabbar .p4k-tab-item i { font-size: 18px; }
#p4k-tabbar .p4k-tab-item.is-active, #p4k-tabbar .p4k-tab-item:hover { color: var(--p4k-accent,#f5c518); }
body.p4k-has-tabbar { padding-bottom: 64px; }
@media (min-width: 1024px) { body.p4k-has-tabbar { padding-bottom: 0; } }

/* ---- 收藏面板（Tab Bar 入口） ---- */
#p4k-fav-modal { position: fixed; inset: 0; z-index: 11000; align-items: center; justify-content: center; padding: 20px; }
.p4k-fav-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(2px); }
.p4k-fav-panel { position: relative; width: 100%; max-width: 520px; max-height: 80vh; display: flex; flex-direction: column; background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.dark .p4k-fav-panel { background: #121212; }
.p4k-fav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.dark .p4k-fav-head { border-color: #1f1f1f; }
.p4k-fav-title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #111827; }
.p4k-fav-title i { color: #e74c3c; }
.dark .p4k-fav-title { color: #f3f4f6; }
.p4k-fav-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: #f1f5f9; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dark .p4k-fav-close { background: #1f1f1f; color: #9ca3af; }
.p4k-fav-close:hover { background: var(--p4k-accent,#f5c518); color: #000000; }
.p4k-fav-body { overflow-y: auto; padding: 8px; }
.p4k-fav-item { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; }
.p4k-fav-item:hover { background: #f8fafc; }
.dark .p4k-fav-item:hover { background: #1a1a1a; }
.p4k-fav-item a { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none !important; }
.p4k-fav-item img { width: 44px; height: 60px; object-fit: cover; object-position: top; border-radius: 6px; flex: none; background: #e5e7eb; }
.dark .p4k-fav-item img { background: #1f1f1f; }
.p4k-fav-remove { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.p4k-fav-remove:hover { background: rgba(231, 76, 60, 0.12); color: #e74c3c; }
.p4k-fav-empty { text-align: center; padding: 48px 20px; color: #9ca3af; }
.p4k-fav-empty i { font-size: 40px; display: block; margin-bottom: 12px; }
.p4k-fav-empty p { font-size: 13px; margin: 4px 0; }
.p4k-fav-loading { text-align: center; padding: 40px; color: #9ca3af; font-size: 13px; }


/* ===== 下载二维码 / 提取码（v3.1.6）===== */
.p4k-qr-btn { background: #f8f9fa; border: 1px solid #dee2e6; color: #495057; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; }
.p4k-qr-btn:hover { background: #e9ecef; border-color: #adb5bd; }
.dark .p4k-qr-btn { background: #1f1f1f; border-color: #333; color: #e0e0e0; }
.dark .p4k-qr-btn:hover { background: #2a2a2a; border-color: #555; }

.p4k-passcode { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 4px; font-size: 13px; font-weight: 500; background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.15); border: 1px dashed var(--p4k-accent,#f5c518); color: #7a6116; color: color-mix(in srgb, var(--p4k-accent,#f5c518) 60%, #000); cursor: pointer; white-space: nowrap; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; }
.p4k-passcode b { font-weight: 700; margin-left: 2px; user-select: all; }
.p4k-passcode:hover { background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.22); }
.p4k-passcode.copied { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.dark .p4k-passcode { background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.08); border-color: rgb(var(--p4k-accent-rgb,245 197 24) / 0.4); color: var(--p4k-accent,#f5c518); }
.dark .p4k-passcode:hover { background: rgb(var(--p4k-accent-rgb,245 197 24) / 0.15); }
.dark .p4k-passcode.copied { background: rgba(46, 204, 113, 0.15); border-color: rgba(46, 204, 113, 0.4); color: #2ecc71; }

#p4k-qr-pop { position: fixed; z-index: 11000; width: 208px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px 12px; text-align: center; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); animation: p4kQrPopIn 0.15s ease; }
.dark #p4k-qr-pop { background: #1f1f1f; border-color: #374151; }
@keyframes p4kQrPopIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.p4k-qr-title { font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dark .p4k-qr-title { color: #f3f4f6; }
.p4k-qr-canvas { display: inline-block; background: #ffffff; border-radius: 8px; padding: 8px; border: 1px solid #e5e7eb; }
#p4k-qr-pop .p4k-qr-canvas img { display: block; width: 168px; height: 168px; image-rendering: pixelated; }
#p4k-qr-pop .p4k-qr-canvas canvas { display: block; }
.p4k-qr-hint { margin-top: 8px; font-size: 12px; color: #6b7280; }
.dark .p4k-qr-hint { color: #9ca3af; }


/* ===== 网盘交互改造 / 品牌角标 / 失效标红 / 本周热门榜（v3.2.0）===== */
/* 网盘链接「扫码」主按钮（黄色，与下载按钮同级视觉权重） */
.p4k-qr-btn.is-primary { background: var(--p4k-accent,#f5c518); border: 1px solid var(--p4k-accent,#f5c518); color: #111; font-weight: 700; }
.p4k-qr-btn.is-primary:hover { background: #e6b816; border-color: #e6b816; color: #000; }
.dark .p4k-qr-btn.is-primary { background: var(--p4k-accent,#f5c518); border-color: var(--p4k-accent,#f5c518); color: #0b0b0f; }
.dark .p4k-qr-btn.is-primary:hover { background: #e6b816; border-color: #e6b816; color: #0b0b0f; }

/* 操作栏「夸克扫码」按钮（v3.7.6，收藏旁边）：夸克主色 #408CFF + 夸克 Q 形白色图标，
   44px 与铃铛/下载/收藏对齐；悬停 / 点按弹二维码（复用资源区扫码交互）。 */
.p4k-head-qr-btn { width: 44px; height: 44px; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.p4k-head-qr-btn.is-quark { background: #408cff; border-color: #408cff; color: #fff; }
.p4k-head-qr-btn.is-quark:hover { background: #3378e0; border-color: #3378e0; color: #fff; }

/* 「防丢」备用地址按钮（v3.7.0）：绿色描边样式，与「下载」「扫码」视觉区分 */
.p4k-backup-btn { background: #fff !important; border: 1px solid #2ecc71 !important; color: #1ea45c !important; font-weight: 600 !important; }
.p4k-backup-btn:hover { background: #eafaf1 !important; border-color: #27ae60 !important; color: #178a4c !important; }
.dark .p4k-backup-btn { background: rgba(46, 204, 113, 0.10) !important; border-color: rgba(46, 204, 113, 0.55) !important; color: #2ecc71 !important; }
.dark .p4k-backup-btn:hover { background: rgba(46, 204, 113, 0.20) !important; border-color: #2ecc71 !important; }

/* 影片信息卡主视觉（v3.7.3）：仅「海报 + 影片信息 / 演职员」这一块用横幅做背景 + 渐变蒙版
   （参考流媒体详情页 Hero 区），海报与信息浮于其上；页面其余部分（简介 / 剧照 / 资源）保持原样。 */
.p4k-hero-card { position: relative; background-size: cover; background-position: center top; background-repeat: no-repeat; overflow: hidden; }
.p4k-hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 10, 10, 0.90) 0%, rgba(10, 10, 10, 0.74) 50%, rgba(10, 10, 10, 0.58) 100%); }
.p4k-hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 10, 10, 0.12) 0%, rgba(10, 10, 10, 0.28) 60%, rgba(10, 10, 10, 0.50) 100%); }
.p4k-hero-card > * { position: relative; z-index: 1; }
.p4k-hero-card .x-dbjs-poster img { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); }
/* 无横幅、用竖版海报做卡片背景：居中平铺 + 加重蒙版（竖图细节碎，压暗保证文字可读） */
.p4k-hero-card.is-poster-bg { background-position: center; }
.p4k-hero-card.is-poster-bg::before { background: linear-gradient(to right, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.80) 50%, rgba(10, 10, 10, 0.72) 100%); }

/* 网盘品牌角标（底色由 PHP 内联注入品牌色） */
.p4k-pan-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.5px; white-space: nowrap; }

/* 失效链接标记 */
.p4k-dead-mark { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; background: #e74c3c; white-space: nowrap; }
.download-item.is-dead .x-dbjs-download-link { color: #e74c3c !important; text-decoration: line-through; }

/* 本周热门下载榜（[p4k_hot_week] 短代码：横向海报卡） */
.p4k-hot-week { margin: 24px 0; }
.p4k-hot-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.p4k-hot-title { font-size: 20px; font-weight: 900; color: #111; }
.dark .p4k-hot-title { color: #f9fafb; }
.p4k-hot-sub { font-size: 12px; color: #999; }
.p4k-hot-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.p4k-hot-scroll::-webkit-scrollbar { height: 6px; }
.p4k-hot-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.p4k-hot-card { position: relative; flex: 0 0 128px; width: 128px; min-height: 178px; border-radius: 10px; overflow: hidden; background: #1a1a22; text-decoration: none !important; }
.p4k-hot-card img { width: 128px; height: 178px; object-fit: cover; display: block; }
.p4k-hot-rank { position: absolute; top: 6px; left: 6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; font-weight: 800; font-style: italic; display: flex; align-items: center; justify-content: center; }
.p4k-hot-rank.rank-1 { background: var(--p4k-accent,#f5c518); color: #000; }
.p4k-hot-rank.rank-2 { background: #c0c4cc; color: #000; }
.p4k-hot-rank.rank-3 { background: #cd7f32; color: #fff; }
.p4k-hot-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 8px 8px; background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent); display: flex; flex-direction: column; gap: 2px; }
.p4k-hot-meta b { color: #fff; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p4k-hot-meta i { color: var(--p4k-accent,#f5c518); font-size: 10px; font-style: normal; }
.p4k-hot-card:hover .p4k-hot-meta b { color: var(--p4k-accent,#f5c518); }


/* ---- 列表卡片网格（列数可后台设置，桌面 3-6 列） ---- */
.p4k-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .p4k-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.p4k-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.p4k-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.p4k-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.p4k-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* ===== v3.14.0：手机端主网格 2 列 + 卡片字号适配 ===== */
@media (max-width: 639px) {
	.p4k-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.p4k-grid .p4k-card-title { font-size: 13px; }
	.p4k-grid .p4k-card-en, .p4k-grid .p4k-card-genre { font-size: 11px; }
	.p4k-grid .tag-container { gap: 4px; flex-wrap: nowrap; overflow: hidden; }
	.p4k-grid .tag { font-size: 11px; padding: 4px 0; }
	.p4k-grid .tag .highlight { margin-left: 3px; }
	.p4k-grid .p4k-card-tag { font-size: 10px; padding: 4px 5px; }
}

/* ===== 会员登录 / 注册弹窗（v3.10.0）===== */
/* 头部入口：未登录按钮 */
.p4k-auth-entry { width: 40px; height: 40px; border-radius: 9999px; background: #1f1f1f; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: all 0.2s; cursor: pointer; border: none; }
.p4k-auth-entry:hover { background: #2a2a2a; color: #fff; }

/* 已登录：头像 + 下拉菜单 */
.p4k-user-wrap { position: relative; }
.p4k-user-avatar { width: 40px; height: 40px; border-radius: 9999px; background: var(--p4k-accent, #f5c518); color: #000; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.2s; border: none; }
.p4k-user-avatar:hover { opacity: 0.85; }
.p4k-user-menu { display: none; position: absolute; right: 0; top: 48px; width: 200px; background: #141414; border: 1px solid #2a2a2a; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); padding: 6px 0; z-index: 60; }
.p4k-user-menu.is-open { display: block; }
.p4k-user-info { padding: 10px 16px 12px; border-bottom: 1px solid #2a2a2a; margin-bottom: 6px; }
.p4k-user-name { color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p4k-user-mail { color: #6b7280; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.p4k-user-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; font-size: 13px; color: #d1d5db; background: none; border: none; cursor: pointer; transition: all 0.15s; text-decoration: none; }
.p4k-user-link i { width: 16px; text-align: center; }
.p4k-user-link:hover { color: #fff; background: #1f1f1f; }
.p4k-user-link.is-logout:hover { color: #f87171; }

/* 弹窗 */
.p4k-modal-mask { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.p4k-modal-mask.is-open { display: flex; }
.p4k-modal { position: relative; width: 100%; max-width: 400px; background: #121212; border: 1px solid #2a2a2a; border-radius: 16px; padding: 28px 26px 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7); animation: p4kModalIn 0.22s ease; max-height: 90vh; overflow-y: auto; }
@keyframes p4kModalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.p4k-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; background: none; border: none; color: #6b7280; font-size: 16px; cursor: pointer; transition: all 0.15s; }
.p4k-modal-close:hover { color: #fff; background: #1f1f1f; }
.p4k-modal-head { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--p4k-accent, #f5c518); font-weight: 800; font-size: 17px; margin-bottom: 18px; }

/* ===== v3.36.0 影片分享面板 ===== */
.p4k-share-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0 12px; }
.p4k-share-qrcanvas { width: 168px; height: 168px; background: #fff; border-radius: 10px; padding: 8px; box-sizing: content-box; }
.p4k-share-qrcanvas canvas, .p4k-share-qrcanvas img { display: block; }
.p4k-share-qrhint { font-size: 12px; color: #9ca3af; }
.p4k-share-linkrow { display: flex; gap: 8px; margin: 6px 0 18px; }
.p4k-share-input { flex: 1; min-width: 0; background: #1f1f1f; border: 1px solid #2a2a2a; border-radius: 8px; padding: 9px 12px; font-size: 13px; color: #d1d5db; outline: none; }
.p4k-share-input:focus { border-color: var(--p4k-accent, #f5c518); }
.p4k-share-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--p4k-accent, #f5c518); color: #000; border: none; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p4k-share-copy:hover { filter: brightness(1.08); }
.p4k-share-row { display: flex; justify-content: space-between; gap: 10px; }
.p4k-share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none !important; flex: 1; }
.p4k-share-logo { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.p4k-share-item:hover .p4k-share-logo { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.is-wechat .p4k-share-logo { background: #07c160; }
.is-weibo .p4k-share-logo { background: #e6162d; }
.is-qq .p4k-share-logo { background: #12b7f5; }
.is-native .p4k-share-logo { background: #2a2a2a; border: 1px solid #3a3a3a; }
.p4k-share-name { font-size: 12px; color: #9ca3af; }
@media (max-width: 480px) { .p4k-share-logo { width: 44px; height: 44px; font-size: 18px; } }

/* Tab */
.p4k-auth-tabs { display: flex; border-bottom: 1px solid #2a2a2a; margin-bottom: 20px; }
.p4k-auth-tab { flex: 1; padding: 10px 0; background: none; border: none; font-size: 14px; font-weight: 700; color: #6b7280; cursor: pointer; position: relative; transition: color 0.15s; }
.p4k-auth-tab:hover { color: #d1d5db; }
.p4k-auth-tab.is-on { color: var(--p4k-accent, #f5c518); }
.p4k-auth-tab.is-on::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--p4k-accent, #f5c518); }

/* 表单 */
.p4k-auth-form { display: flex; flex-direction: column; gap: 14px; }
.p4k-auth-form.is-hidden { display: none; }
.p4k-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.p4k-field > span { font-size: 12px; color: #9ca3af; font-weight: 600; }
.p4k-field > input { width: 100%; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.p4k-field > input:focus { border-color: var(--p4k-accent, #f5c518); box-shadow: 0 0 0 3px rgb(var(--p4k-accent-rgb, 245 197 24) / 0.18); }
.p4k-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9ca3af; cursor: pointer; }
.p4k-check input { accent-color: var(--p4k-accent, #f5c518); width: 15px; height: 15px; cursor: pointer; }
.p4k-auth-submit { width: 100%; background: var(--p4k-accent, #f5c518); color: #000; border: none; border-radius: 10px; padding: 11px 0; font-size: 14px; font-weight: 800; letter-spacing: 2px; cursor: pointer; transition: filter 0.15s, transform 0.1s; }
.p4k-auth-submit:hover { filter: brightness(1.08); }
.p4k-auth-submit:active { transform: scale(0.985); }
.p4k-auth-submit:disabled { opacity: 0.6; cursor: wait; }
.p4k-auth-tip { text-align: center; font-size: 13px; color: #6b7280; }
.p4k-auth-tip a { color: var(--p4k-accent, #f5c518); text-decoration: none; font-weight: 700; }
.p4k-auth-tip a:hover { text-decoration: underline; }
.p4k-auth-note { font-size: 12px; color: #6b7280; line-height: 1.6; text-align: center; }
.p4k-auth-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); color: #f87171; font-size: 13px; border-radius: 10px; padding: 9px 12px; line-height: 1.5; }

/* 邮箱后缀：常用后缀快选 + 输入 @ 后的联想列表 */
.p4k-suffix-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.p4k-suffix-chip { background: #1f1f1f; border: 1px solid #2a2a2a; color: #9ca3af; font-size: 12px; padding: 4px 10px; border-radius: 9999px; cursor: pointer; transition: all 0.15s; }
.p4k-suffix-chip:hover { border-color: var(--p4k-accent, #f5c518); color: var(--p4k-accent, #f5c518); }
.p4k-suffix-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 10px; max-height: 180px; overflow-y: auto; z-index: 20; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.p4k-suffix-item { display: block; width: 100%; text-align: left; padding: 8px 12px; background: none; border: none; color: #d1d5db; font-size: 13px; cursor: pointer; transition: background 0.12s; }
.p4k-suffix-item:hover { background: #262626; color: #fff; }


/* 首页热门榜名次角标（v3.10.1：卡片左上角，替代 TOP 角标；金银铜 + 半透明通用） */
.p4k-card-rank { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; font-size: 15px; font-weight: 900; font-style: italic; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.18); line-height: 1; }
.p4k-card-rank.rank-1 { background: var(--p4k-accent, #f5c518); color: #000; border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 0 10px rgb(var(--p4k-accent-rgb, 245 197 24) / 0.45); }
.p4k-card-rank.rank-2 { background: #c0c4cc; color: #000; border-color: rgba(255, 255, 255, 0.35); }
.p4k-card-rank.rank-3 { background: #cd7f32; color: #fff; border-color: rgba(255, 255, 255, 0.25); }


/* ===== 首页板块（v3.11.0）：热门榜横版排行宽卡 + 高分佳作竖版单行滚动 ===== */
/* 热门榜：横版宽卡横向滚动（左海报 + 右信息 + 名次徽章） */
/* ===== v3.12.0 Bento 热榜（榜首大卡 + 2-5 紧凑格 + 6-10 迷你条） ===== */
.p4k-top10 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 152px; gap: 14px; }
.p4k-bento-main { position: relative; grid-column: span 2; grid-row: span 2; border-radius: 14px; overflow: hidden; text-decoration: none !important; background: #16161e; border: 1px solid rgba(255, 255, 255, 0.06); }
.p4k-bento-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s ease; }
.p4k-bento-main:hover > img { transform: scale(1.05); }
.p4k-bento-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%); }
.p4k-bento-num { position: absolute; top: 10px; left: 14px; font-size: 52px; font-weight: 900; font-style: italic; line-height: 1; color: var(--p4k-accent, #f5c518); text-shadow: 0 2px 14px rgb(var(--p4k-accent-rgb, 245 197 24) / 0.5); }
.p4k-bento-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.p4k-bento-title { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p4k-bento-main:hover .p4k-bento-title { color: var(--p4k-accent, #f5c518); }
.p4k-bento-genre { color: #9ca3af; font-size: 12px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p4k-bento-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p4k-bento-cell { position: relative; display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: #16161e; border: 1px solid rgba(255, 255, 255, 0.06); text-decoration: none !important; overflow: hidden; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.p4k-bento-cell:hover { transform: translateY(-3px); border-color: rgb(var(--p4k-accent-rgb, 245 197 24) / 0.4); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.p4k-bento-thumb { flex: none; width: 56px; height: 100%; border-radius: 8px; overflow: hidden; background: #1f1f28; }
.p4k-bento-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.p4k-bento-cellbody { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.p4k-bento-celltitle { color: #e5e7eb; font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p4k-bento-cellrank { font-style: italic; font-weight: 900; color: var(--p4k-accent, #f5c518); margin-right: 6px; }
.p4k-bento-cellrank.rank-2 { color: #c0c4cc; }
.p4k-bento-cellrank.rank-3 { color: #cd7f32; }
.p4k-bento-cellrank.rank-4, .p4k-bento-cellrank.rank-5 { color: #6b7280; }
.p4k-bento-cellinfo { font-style: normal; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #9ca3af; font-size: 11px; }
.p4k-bento-cellscore { color: var(--p4k-accent, #f5c518); font-weight: 800; }
.p4k-bento-cellinfo .fa-download { color: #6b7280; }
/* 6-10 名迷你条 */
.p4k-bento-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.p4k-bento-mini { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #131318; border: 1px solid rgba(255, 255, 255, 0.05); text-decoration: none !important; transition: border-color 0.2s ease, background 0.2s ease; min-width: 0; }
.p4k-bento-mini:hover { border-color: rgb(var(--p4k-accent-rgb, 245 197 24) / 0.35); background: #191920; }
.p4k-bento-minirank { flex: none; font-style: italic; font-weight: 900; font-size: 15px; color: #4b5563; width: 18px; text-align: center; }
.p4k-bento-mini b { color: #d1d5db; font-size: 12px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p4k-bento-mini:hover b { color: #fff; }
.p4k-bento-mini span { flex: none; color: #6b7280; font-size: 11px; }
/* Bento 移动端：榜首全宽 + 紧凑格两列 */
@media (max-width: 767px) {
    .p4k-top10 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 148px; }
    .p4k-bento-main { grid-column: span 2; grid-row: span 2; }
    .p4k-bento-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 窄屏 Bento 下的迷你条单列 */
@media (max-width: 479px) { .p4k-bento-strip { grid-template-columns: 1fr; } }
/* 亮色模式 Bento */
html:not(.dark) .p4k-bento-main, html:not(.dark) .p4k-bento-cell { background: #ffffff; border-color: rgba(0, 0, 0, 0.08); }
html:not(.dark) .p4k-bento-celltitle { color: #1f2937; }
html:not(.dark) .p4k-bento-mini { background: #f9fafb; border-color: rgba(0, 0, 0, 0.06); }
html:not(.dark) .p4k-bento-mini b { color: #374151; }
.p4k-rank-dl { background: rgb(var(--p4k-accent-rgb, 245 197 24) / 0.14); color: var(--p4k-accent, #f5c518); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1px solid rgb(var(--p4k-accent-rgb, 245 197 24) / 0.4); white-space: nowrap; }
/* 高分佳作：竖版海报卡片单行滚动（宽度与主列表网格列宽一致，超出一行滚动）。
   v3.11.2：弃用 flex-basis + var() 计算（Chromium 下行为不可靠，卡片被内容撑大），
   改为 p4k-cols-N 类 + 纯数字 calc 宽度，与主网格同款确定性公式；:where() 保持低特异性，
   使末尾的窄屏媒体查询可靠覆盖。 */
.p4k-scroll-row { display: flex; gap: 24px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.p4k-scroll-row::-webkit-scrollbar { height: 6px; }
.p4k-scroll-row::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 3px; }
.p4k-scroll-row > * { flex: none; min-width: 150px; }
.p4k-scroll-row:where(.p4k-cols-3) > * { width: calc((100% - 48px) / 3); }
.p4k-scroll-row:where(.p4k-cols-4) > * { width: calc((100% - 72px) / 4); }
.p4k-scroll-row:where(.p4k-cols-5) > * { width: calc((100% - 96px) / 5); }
.p4k-scroll-row:where(.p4k-cols-6) > * { width: calc((100% - 120px) / 6); }
@media (max-width: 639px) { .p4k-scroll-row > * { width: 46%; min-width: 140px; } }


/* ===== 首页板块间距 + 标题统一（v3.11.1）===== */
/* 板块自身留白（两个板块之间的呼吸感） */
.p4k-home-sec { margin-bottom: 10px; }

/* v3.31.0：hero 页内容区顶部间距——hero 盒 32px 下边距与首板块标题 26px 上边距
   发生 margin 折叠合并成一个间隙，被 hero-strip 纯黑条盖住后黑白缝几乎贴到
   「高分佳作」标题（实测 ~10px）；奈飞实测缝→板块标题约 70-120px。
   main padding 不参与折叠：48px padding + 26px 标题 margin = 缝下 74px。 */
main.p4k-main-after-hero { padding-top: 48px; }
/* 手机端略收（hero 手机高度已压缩，等比保持节奏） */
@media (max-width: 767px) {
	main.p4k-main-after-hero { padding-top: 32px; }
}

/* 首页：板块与主列表（筛选器）之间拉开距离；无板块页面（搜索/归档）不生效 */
main .p4k-home-sec + #pjax-container { margin-top: 42px; }

/* 统一后的三块标题在亮色模式下保持可读 */
html:not(.dark) .p4k-sec-head h2 { color: #111827; }
html:not(.dark) .p4k-sec-head h2::before { background: var(--p4k-accent, #f5c518); }
html:not(.dark) .p4k-sec-head span { color: #6b7280; }


/* ===== v3.12.0：板块标题右侧（查看全部 + 箭头）===== */
.p4k-sec-head { flex-wrap: wrap; }
.p4k-sec-more { margin-left: auto; font-size: 13px; font-weight: 700; color: #9ca3af; text-decoration: none; transition: color 0.15s; display: inline-flex; align-items: center; gap: 5px; }
.p4k-sec-more i { font-size: 11px; transition: transform 0.15s; }
.p4k-sec-more:hover { color: var(--p4k-accent, #f5c518); }
.p4k-sec-more:hover i { transform: translateX(3px); }
html:not(.dark) .p4k-sec-more { color: #6b7280; }
.p4k-sec-arrows { display: inline-flex; gap: 8px; margin-left: 12px; }
.p4k-sec-arrow { width: 32px; height: 32px; border-radius: 9999px; background: #1f1f28; border: 1px solid rgba(255, 255, 255, 0.08); color: #d1d5db; font-size: 12px; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; }
.p4k-sec-arrow:hover { background: var(--p4k-accent, #f5c518); border-color: var(--p4k-accent, #f5c518); color: #000; }
html:not(.dark) .p4k-sec-arrow { background: #f3f4f6; border-color: rgba(0, 0, 0, 0.1); color: #374151; }

/* ===== v3.12.0：Hero 分体式（左海报卡 + 右信息）===== */
.p4k-hero-poster { flex: none; width: 200px; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: #1a1a22; border: 2px solid rgb(var(--p4k-accent-rgb, 245 197 24) / 0.45); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgb(var(--p4k-accent-rgb, 245 197 24) / 0.12); transition: transform 0.3s ease, border-color 0.3s ease; }
.p4k-hero-poster:hover { transform: translateY(-4px); border-color: var(--p4k-accent, #f5c518); }
@media (max-width: 767px) { .p4k-hero-poster { width: 112px; border-radius: 10px; } }
.p4k-hero-badge { display: inline-flex; align-items: center; background: rgb(var(--p4k-accent-rgb, 245 197 24) / 0.15); color: var(--p4k-accent, #f5c518); font-size: 12px; font-weight: 800; letter-spacing: 1px; padding: 4px 12px; border-radius: 9999px; border: 1px solid rgb(var(--p4k-accent-rgb, 245 197 24) / 0.4); }
.p4k-hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--p4k-accent, #f5c518); color: #000; padding: 10px 26px; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none !important; transition: filter 0.15s, transform 0.1s; box-shadow: 0 8px 26px rgb(var(--p4k-accent-rgb, 245 197 24) / 0.28); }
.p4k-hero-btn:hover { filter: brightness(1.08); }
.p4k-hero-btn:active { transform: scale(0.97); }

/* ===== v3.12.0：导航吸顶毛玻璃 ===== */
.p4k-navbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
html:not(.dark) .p4k-navbar { background: rgba(20, 20, 24, 0.6); border-bottom-color: rgba(255, 255, 255, 0.08); }
/* v3.29.0：hero 页导航初始透明（奈飞实测：海报墙从页面顶部开始、导航无底色叠在
   墙上）；滚出 hero 区后 JS 加 is-solid 恢复毛玻璃（内容区上白字需实底保可读）。 */
.p4k-navbar-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
html:not(.dark) .p4k-navbar-hero { background: transparent; border-bottom-color: transparent; }
.p4k-navbar-hero.is-solid { background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: rgba(255, 255, 255, 0.06); }
html:not(.dark) .p4k-navbar-hero.is-solid { background: rgba(20, 20, 24, 0.6); border-bottom-color: rgba(255, 255, 255, 0.08); }

/* ===== v3.12.0：卡片 hover 摘要 ===== */

/* ===== v3.13.0：个人中心（/user） ===== */
.p4k-uc { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.p4k-uc-head { display: flex; align-items: center; gap: 18px; background: #16161e; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 24px 26px; }
.p4k-uc-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--p4k-accent, #f5c518), #ff8c42); color: #0a0a0a; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; flex: none; box-shadow: 0 6px 20px rgb(var(--p4k-accent-rgb, 245 197 24) / 0.25); }
.p4k-uc-name { font-size: 20px; font-weight: 800; color: #fff; }
.p4k-uc-mail { font-size: 13px; color: #9ca3af; margin-top: 3px; }
.p4k-uc-since { font-size: 12px; color: #6b7280; margin-top: 2px; }
.p4k-uc-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.p4k-uc-tab { background: #16161e; border: 1px solid rgba(255, 255, 255, 0.08); color: #9ca3af; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.p4k-uc-tab em { font-style: normal; opacity: 0.7; margin-left: 4px; }
.p4k-uc-tab:hover { color: #e5e7eb; border-color: rgba(255, 255, 255, 0.18); }
.p4k-uc-tab.is-on { background: var(--p4k-accent, #f5c518); color: #0a0a0a; border-color: transparent; }
.p4k-uc-panel.is-hidden { display: none; }
.p4k-uc-item { position: relative; }
.p4k-uc-rm { position: absolute; top: 8px; right: 8px; z-index: 60; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(12, 12, 16, 0.82); color: #d1d5db; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s; }
.p4k-uc-item:hover .p4k-uc-rm { opacity: 1; }
.p4k-uc-rm:hover { background: #dc2626; color: #fff; }
.p4k-uc-empty { text-align: center; padding: 56px 16px; color: #6b7280; background: #16161e; border: 1px dashed rgba(255, 255, 255, 0.08); border-radius: 14px; }
.p4k-uc-empty i { font-size: 34px; opacity: 0.5; }
.p4k-uc-empty p { margin: 8px 0 0; font-size: 13px; }
.p4k-uc-form { max-width: 440px; display: flex; flex-direction: column; gap: 14px; background: #16161e; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 22px 24px; }
.p4k-uc-form + .p4k-uc-form { margin-top: 18px; }
.p4k-uc-form-title { font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.p4k-uc-form-title i { color: var(--p4k-accent, #f5c518); }
.p4k-uc-msg { font-size: 12px; font-weight: 600; }
.p4k-uc-msg.is-ok { color: #22c55e; }
.p4k-uc-msg.is-err { color: #ef4444; }
.p4k-uc-note { font-size: 11px; color: #6b7280; line-height: 1.6; }
html:not(.dark) .p4k-uc-head, html:not(.dark) .p4k-uc-form { background: #fff; border-color: rgba(0, 0, 0, 0.08); }
html:not(.dark) .p4k-uc-name, html:not(.dark) .p4k-uc-form-title { color: #111; }
html:not(.dark) .p4k-uc-tab { background: #fff; border-color: rgba(0, 0, 0, 0.1); color: #6b7280; }
html:not(.dark) .p4k-uc-empty { background: #fff; border-color: rgba(0, 0, 0, 0.12); }
@media (max-width: 767px) {
	.p4k-uc-head { padding: 18px; }
	.p4k-uc-avatar { width: 52px; height: 52px; font-size: 22px; }
}

/* ===== v3.14.1：修复手机端聚焦输入框页面自动放大（iOS Safari / 微信） =====
   iOS 规则：表单控件字号 < 16px 时，聚焦会自动放大页面且不还原，导致页面错位。
   仅移动端把输入类控件提到 16px，桌面端保持原设计不变。 */
@media (max-width: 767px) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]),
	select,
	textarea { font-size: 16px !important; }
}


/* ===== v3.15.0：影片卡片封面改版（参考图样式） =====
   不悬停 = 干净封面（右上画质规格角标 / 左下网盘品牌小标）+ 海报下方独立信息区
   （标题 + IMDb 黄标）；悬停 = 海报浮出信息层（标题 / 年份·地区·类型 / IMDb /
   查看详情按钮）。全部自定义类，不依赖 tailwind 静态快照；信息层仅在支持 hover
   的设备启用，移动端（<=639px）彻底隐藏，直接点进详情页。 */
.p4k-card-spec {
	display: inline-block;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.p4k-card-pan {
	background: rgba(0, 0, 0, 0.72);
	color: #e5e7eb;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 5px;
	margin-right: 4px;
}
.p4k-card-hover {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 12px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	background: linear-gradient(to top, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.62) 48%, rgba(8, 8, 10, 0.18) 100%);
	pointer-events: none;
}
@media (hover: hover) {
	.group:hover .p4k-card-hover {
		opacity: 1;
		visibility: visible;
	}
}
.p4k-hover-title {
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 3px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.p4k-hover-en {
	color: #9ca3af;
	font-size: 11px;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.p4k-hover-meta {
	color: #d1d5db;
	font-size: 12px;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.p4k-hover-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.p4k-badge-imdb {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f5c518;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 5px;
	white-space: nowrap;
}
.p4k-badge-imdb i { font-size: 9px; }
.p4k-hover-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #2f6bff;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35);
	white-space: nowrap;
}
.p4k-hover-btn i { font-size: 10px; }
.p4k-card-body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.p4k-card-badges {
	margin-top: 7px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}
@media (max-width: 639px) {
	.p4k-card-hover { display: none; }
	.p4k-card-spec { font-size: 10px; padding: 4px 6px; }
	.p4k-card-pan { font-size: 9px; padding: 3px 5px; }
	.p4k-card-body { padding: 8px 10px 10px; }
}


/* ===== v3.26.0：奈飞式异形背景搜索区（Netflix 台湾官网风格·直边墙重做） =====
   背景层（后台自定义图 / TOP 影片封面墙）裁剪为奈飞官网实测结构：
   左右边缘为垂直直线（与搜索区盒缘重合，全高不变——v3.25.0 及此前的
   「护盾形弧边」为误判，奈飞参考图逐列实测墙缘 x 恒定、无弧形内收）；
   底部为缓拱（中央最高约 88% 高度、两侧降至 92.5%），
   拱以下是暗空间（与奈飞一致，现正热播区从暗空间下方开始）；
   底拱沿弧线铺一条红→粉渐变细线（奈飞签名元素），左右端渐隐；
   盒缘一条垂直亮红细线（奈飞实测峰 rgb(110,23,28)，线宽约 2-4px，
   垂直方向中部最强、上下渐隐），线外为线性外溢坡（::before/::after）。
   奈飞翼部（贴缘内侧）为正常海报内容色——无暗红翼带（v3.25.0 前的
   盒内红翼带为误判，已整层删除）。
   data-URI SVG mask（mask-size:100% 100% 拉伸）实现，
   任意视口宽度 / 任意后台自定义高度都自适应。
   前景居中大标题 + 副标题 + 大搜索框（带即时搜索建议）。 */
.p4k-hero-search {
	/* v3.26.0：直边矩形墙（奈飞逐列实测：左右缘为垂直直线、与盒缘重合、全高恒定，
	   此前护盾形弧边为误判）；底部保留缓拱（中央 88%、两侧 92.5%）；
	   实色填充（奈飞墙缘截止干脆，x+2px 即海报色，无水平羽化）。 */
	--p4k-shape-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,0 L100,0 L100,92.5 C75,90.5 63,88.2 50,88 C37,88.2 25,90.5 0,92.5 Z' fill='%23000'/></svg>");
	/* v3.27.0：底拱弧线 mask——横向扩到近全宽（奈飞实测弧线覆盖 3%~94% 墙宽、
	   几乎横贯整个搜索区，此前 12.5%~87.5% 偏窄一半）；拱形不变（中央 88%、
	   两端 91.5%）。
	   v3.28.0：线带厚由 1.5 单位减到 0.6 单位（≈2.9px）——奈飞实测线厚 2.5-3px，
	   此前 7.2px 过粗，红/玫红各自成粗色带、加藏蓝辉光视觉上成了三条色带；
	   细线后红→玫红读作一条线的渐变，与奈飞一致。
	   v3.34.0：弧线上沿改用与 shape-mask 完全同一条曲线（中央 88%、两端 92.5%），
	   且弧线/辉光层改用与 .p4k-hero-clip 相同的盒子（top:-80px/bottom:0）。
	   原因（用户反馈「红框里为什么会有这个缝隙」实测取证）：
	     切边 shape-mask 作用在 clip 盒（高 = 80 + hero_h = 560px），
	     弧线 line-mask 作用在 hero 盒（高 = hero_h = 480px）——
	     同一段百分比落在不同高度的盒子上，底拱弧度被放大（4.5 单位 × 560 = 25.2px
	     vs 弧线 3.5 单位 × 480 = 16.8px），两条曲线必然错位：
	     实测图下沿在中央 css 412.8、弧线在 422.4 → 中央裂开约 10px 黑缝，
	     两端 438 vs 439.2 几乎贴合，所以是「中间大、两头尖」的缝。
	     奈飞原图实测（dev x=1914 中央）：图内容 → 红线 1344-1349 → 藏蓝辉光 1350+
	     → 黑，图下沿与红线严丝合缝，中间没有任何空隙。
	   修订：三层（切边 / 弧线 / 辉光）共用同一个盒子与同一条基准曲线，
	     弧线带上沿 = 切边曲线、下沿 = 切边曲线 +0.6 单位（线厚仍 ≈3px，与奈飞一致）。 */
	--p4k-line-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,92.5 C25,90.5 37,88.2 50,88 C63,88.2 75,90.5 100,92.5 L100,93.1 C75,91.1 63,88.8 50,88.6 C37,88.8 25,91.1 0,93.1 Z' fill='%23000'/></svg>");
	/* v3.21.0：弧线下藏蓝辉光的 mask 带——上沿贴弧线下缘曲线、向下垂直渐隐；
	   v3.27.0 随弧线同步扩到近全宽；v3.28.0 上沿随细线下缘同步上移。
	   v3.34.0：上沿改贴新弧线下沿（切边曲线 +0.6）、下沿 +5.1 单位，
	   与弧线、切边同一盒子同一曲线（奈飞实测辉光在红线下方渐隐入黑）。 */
	--p4k-glow-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23000'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient></defs><path d='M0,93.1 C25,91.1 37,88.8 50,88.6 C63,88.8 75,91.1 100,93.1 L100,97.6 C75,95.6 63,93.3 50,93.1 C37,93.3 25,95.6 0,97.6 Z' fill='url(%23g)'/></svg>");
	/* v3.26.0：盒缘亮红细线 mask（奈飞实测：峰 rgb(110,23,28) 恰在盒缘、
	   线宽约 2-4px，垂直方向中部最强；直垂直线带）。
	   v3.30.0：垂直羽化按奈飞归一化曲线重做缓衰减——奈飞线从峰值到接缝
	   缓慢下降（70% 高度 0.66、85% 0.34、缝前 ~70px 仍有 R=37），线一直
	   延伸到接近底部接缝才融入黑；此前 80% 处骤降 0.4 + 100% 截断，
	   hero 高度设小时骤降段极短，视觉上线提前断掉没接到缝（用户反馈）。
	   顶部同步：奈飞墙顶处线仍有 ~35% 强度，线顶接到导航缝。 */
	--p4k-edge-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><defs><linearGradient id='e' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23000' stop-opacity='0.35'/><stop offset='0.15' stop-color='%23000' stop-opacity='0.7'/><stop offset='0.42' stop-color='%23000'/><stop offset='0.68' stop-color='%23000' stop-opacity='0.78'/><stop offset='0.88' stop-color='%23000' stop-opacity='0.48'/><stop offset='1' stop-color='%23000' stop-opacity='0.22'/></linearGradient></defs><path d='M0,0 L0.15,0 L0.15,100 L0,100 Z' fill='url(%23e)'/><path d='M99.85,0 L100,0 L100,100 L99.85,100 Z' fill='url(%23e)'/></svg>");
	position: relative;
	/* v3.25.0：左右留白改后台可调（「搜索区左右留白」选项，默认 12% 即 76% 宽，
	   0 为通铺）；--p4k-hero-margin 由 header.php 按选项输出。 */
	width: calc(100% - var(--p4k-hero-margin, 12%) * 2);
	height: var(--p4k-hero-h, 480px);
	margin: 0 auto 32px;
	background: #0a0a0c;
	z-index: 20;
}
/* v3.25.0：hero 页顶部纯黑底条——按导航（80px）+ 搜索区实际高度 + 下边距铺满，
   左右留白区为纯黑（奈飞式），亮色模式下不再露页面白底；
   非 hero 页仍用 400px 暗条（header.php 分支输出）。 */
.p4k-hero-strip {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(80px + var(--p4k-hero-h, 480px) + 32px);
	background: #000;
}
/* v3.25.0：奈飞式流血外溢坡——hero 盒缘亮红线（奈飞实测 rgb(108,24,28)=#6c181c）
   向左右留白区外溢约 140px 单调渐黑（实测：贴缘 5px 内由亮线骤降至 rgb(46,14,16)=#2e0e10，
   140px 处近纯黑），垂直方向中部最强、上下渐隐（同翼部流血曲线）。
   溢出画在盒外留白区（纯黑底条之上），补上此前被 76% 盒裁掉的框缘外溢。 */
.p4k-hero-search::before,
.p4k-hero-search::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 140px;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 15%, #000 42%, rgba(0, 0, 0, 0.78) 68%, rgba(0, 0, 0, 0.48) 88%, rgba(0, 0, 0, 0.22) 100%);
	-webkit-mask-size: 100% 100%;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 15%, #000 42%, rgba(0, 0, 0, 0.78) 68%, rgba(0, 0, 0, 0.48) 88%, rgba(0, 0, 0, 0.22) 100%);
	mask-size: 100% 100%;
}
.p4k-hero-search::before {
	left: -140px;
	/* v3.26.0：外坡改线性（奈飞实测 x=150css (22,6,7)、x=220 (45,13,15)，
	   0→92% 段线性爬升至 rgb(46,14,16)，末段 8% 骤升至亮线峰） */
	background: linear-gradient(90deg, #000 0%, #2e0e10 92%, #6c181c 100%);
}
.p4k-hero-search::after {
	right: -140px;
	background: linear-gradient(270deg, #000 0%, #2e0e10 92%, #6c181c 100%);
}
/* v3.25.0：外溢坡画在盒外，留白百分比调小到临界值（约 10% 以下）或设 0 通铺时
   会超出视口——overflow-x: clip 直接裁掉且不产生横向滚动条、不影响 sticky 导航
   （clip 不创建滚动容器，与 hidden 不同）。 */
body { overflow-x: clip; }
.p4k-hero-clip {
	position: absolute;
	/* v3.29.0：上延 80px 到页面顶部（奈飞实测：海报墙从 y=0 开始、透明导航叠在墙上，
	   此前墙从导航下方 y=80 起步）。mask 100% 100% 拉伸，底拱仍贴 hero 底不变。 */
	top: -80px;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	-webkit-mask-image: var(--p4k-shape-mask);
	-webkit-mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image: var(--p4k-shape-mask);
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
}
.p4k-hero-wall {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
	pointer-events: none;
}
.p4k-hero-wallimg { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 4px; opacity: 0.85; }
.p4k-hero-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* v3.21.0：明暗曲线按奈飞参考图逐区实测重做——
   上部中暗（α≈0.6-0.66）、标题区背景保持可读（实测与奈飞一致）、
   两侧水平暗角不变。
   v3.32.0：底部压黑曲线后移并封平——用户反馈「最深的黑与搜索框图衔接太长」。
   量化取证（同口径：只取盒宽左右各 20% 海报翼带、避开中央白色搜索框；
   以 p95 相对「弧上 150css 处」的保留比衡量衰减形状）：
     参考图（奈飞台湾首屏原图，弧行 dev 1344 = css 672）：
       弧上 5css p95=28、20=29、50=28、100=31、150=32
       保留比 0.88 / 0.91 / 0.88 / 0.97 —— 亮部一路保持到贴弧，弧前不衰减。
     线上 v3.31（旧曲线 68%→α0.9、80%→0.975、88%→1.0）：
       22 / 25 / 29 / 36 / 40，保留比 0.55 / 0.62 / 0.72 / 0.90
       贴弧只剩 55%，「图」在到达弧线前已黑成一片 → 用户看到的就是这条过长的衔接带。
   修订：50% 处 α 0.72，66% 起固定 0.84 直到底——亮部保留到 shape-mask 底拱硬边，
   由 mask 硬裁 + 弧下藏蓝辉光完成「图→纯黑」的骤降（参考图正是这种锐利交界，
   黑区在弧线**以下**）。实测新曲线 32/32/34/36/40，保留比 0.80/0.80/0.85/0.90，
   贴弧亮度由 22 升到 32（参考 28）。 */
.p4k-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 10, 0.45) 0%, rgba(8, 8, 10, 0.18) 12%, rgba(8, 8, 10, 0) 22%, rgba(8, 8, 10, 0) 78%, rgba(8, 8, 10, 0.18) 88%, rgba(8, 8, 10, 0.45) 100%), linear-gradient(to bottom, rgba(8, 8, 10, 0.66) 0%, rgba(8, 8, 10, 0.62) 28%, rgba(8, 8, 10, 0.72) 50%, rgba(10, 10, 13, 0.84) 66%, rgba(10, 10, 13, 0.84) 82%, rgba(10, 10, 13, 0.84) 100%); }
/* v3.29.0：墙顶黑渐变（奈飞实测：y=0 近黑（非零像素仅 ~11%）、约 45px 处消退至
   正常海报亮度）——clip 已上延到页面顶，本层叠在 shade 上主导顶部暗化，
   保证透明导航下白字可读；高度 96px 覆盖 80px 导航 + 过渡。 */
.p4k-hero-topfade { position: absolute; top: 0; left: 0; right: 0; height: 96px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.22) 72%, transparent 100%); }
/* v3.26.0：盒缘亮红细线——贴搜索区左右盒缘的直垂直线（奈飞实测峰 rgb(110,23,28)、
   线宽约 2-4px），垂直中部最强、上下渐隐；线外接线性外溢坡（::before/::after）。
   v3.25.0 前的「盒内暗红翼带 + 盾缘第二条线」双峰结构为误判，bleed 层已整层删除
   （奈飞翼部为正常海报内容色）。 */
.p4k-hero-edgeline {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: #6e171c;
	-webkit-mask-image: var(--p4k-edge-mask);
	-webkit-mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image: var(--p4k-edge-mask);
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
}


.p4k-hero-arcline {
	position: absolute;
	/* v3.34.0：与 .p4k-hero-clip 同一个盒子（top:-80px / bottom:0，高 = 80 + hero_h），
	   使 shape-mask（切边）、line-mask（弧线）、glow-mask（辉光）落在同一坐标系，
	   三条曲线共用同一条基准线，弧线上沿与图下沿严丝合缝、不再裂出黑缝。
	   此前本层 inset:0（高 = hero_h = 480px），与 clip 盒（560px）相差 80px，
	   同一百分比映射到不同绝对几何，中央错位 ≈9.6px。 */
	top: -80px;
	left: 0;
	right: 0;
	bottom: 0;
	/* v3.27.0：弧线横向覆盖重做——奈飞实测弧线几乎横贯全宽（3%~94% 盒宽），
	   两端暗紫红、向中心过渡为紫粉再到纯红，逐点色值：
	   5% (33,13,22) → 11% (46,15,29) → 20% (108,26,63) → 28% (169,38,97)
	   → 36% (198,30,78) → 44% (217,18,44) → 中心 (226,11,26)，
	   对称回落，94% 处渐隐；此前只做 20%~80% 中段、两端 transparent 截断。 */
	background: linear-gradient(90deg,
			transparent 1.5%,
			#210d16 5%,
			#2e0f1d 11%,
			#4d152e 15.5%,
			#6c1a3f 20%,
			#8b2050 24%,
			#a92661 28%,
			#c61e4e 36%,
			#d9122c 44%,
			#e20b1a 48.5%,
			#e20b1a 51.5%,
			#d61331 57%,
			#c32053 65%,
			#a0235b 73.5%,
			#801e4a 78%,
			#62193a 82%,
			#441329 86%,
			#250e18 90.5%,
			rgba(37, 14, 24, 0.5) 93.5%,
			transparent 96%);
	-webkit-mask-image: var(--p4k-line-mask);
	-webkit-mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image: var(--p4k-line-mask);
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
	pointer-events: none;
}
/* v3.21.0：弧线下的藏蓝辉光（奈飞签名细节：线下中央一段藏蓝色向两侧渐黑，最亮 rgb(20,31,74)）。
   v3.27.0：实测辉光横向覆盖 25%~75% 盒宽（峰值中央），由 30%~70% 微扩。 */
.p4k-hero-arcglow {
	position: absolute;
	/* v3.34.0：同 .p4k-hero-clip 的盒子（高 = 80 + hero_h），与弧线层、切边层同坐标系。 */
	top: -80px;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent 24%, rgba(16, 24, 56, 0.5) 32%, rgba(18, 27, 64, 0.85) 40%, rgba(20, 31, 74, 1) 50%, rgba(18, 27, 64, 0.85) 60%, rgba(16, 24, 56, 0.5) 68%, transparent 76%);
	-webkit-mask-image: var(--p4k-glow-mask);
	-webkit-mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image: var(--p4k-glow-mask);
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
	pointer-events: none;
}
.p4k-hero-search-inner { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; }
.p4k-hero-stitle { color: #fff; font-size: clamp(26px, 4.2vw, 44px); font-weight: 900; letter-spacing: 0.5px; line-height: 1.25; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55); max-width: 760px; margin: 0; }
.p4k-hero-ssub { color: #d1d5db; font-size: clamp(13px, 1.4vw, 16px); line-height: 1.6; max-width: 600px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); margin: 0; }
.p4k-hero-sbox { position: relative; display: flex; width: 100%; max-width: 640px; margin-top: 10px; }
.p4k-hero-sbox input { flex: 1; height: 56px; border: none; outline: none; border-radius: 14px 0 0 14px; padding: 0 20px; font-size: 16px; color: #111827; background: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4); min-width: 0; }
.p4k-hero-sbox input::placeholder { color: #9ca3af; }
.p4k-hero-sbox button { height: 56px; border: none; cursor: pointer; padding: 0 28px; font-size: 16px; font-weight: 800; color: #000; background: var(--p4k-accent, #f5c518); border-radius: 0 14px 14px 0; transition: filter 0.15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.p4k-hero-sbox button:hover { filter: brightness(1.08); }
.p4k-hero-sbox button:active { transform: scale(0.98); }
.p4k-hero-sbox .p4k-suggest { border-radius: 14px; text-align: left; }
@media (max-width: 767px) {
	.p4k-hero-search { width: 100%; height: max(340px, calc(var(--p4k-hero-h, 480px) * 0.72)); margin: 0 auto 20px; }
	.p4k-hero-wall { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
	/* v3.25.0：手机端黑底条按手机搜索区高度（0.72 比例 + 20px 下边距）铺满；
	   手机端搜索区通铺全宽、无左右留白，隐藏外溢坡（避免盒外溢出引发横向滚动）。 */
	.p4k-hero-strip { height: calc(80px + max(340px, calc(var(--p4k-hero-h, 480px) * 0.72)) + 20px); }
	.p4k-hero-search::before, .p4k-hero-search::after { display: none; }
}
@media (max-width: 639px) {
	.p4k-hero-search-inner { padding: 16px; gap: 10px; }
	.p4k-hero-sbox input, .p4k-hero-sbox button { height: 50px; font-size: 16px; }
	.p4k-hero-sbox button { padding: 0 18px; }
	.p4k-hero-sbox input { border-radius: 12px 0 0 12px; }
	.p4k-hero-sbox button { border-radius: 0 12px 12px 0; }
	.p4k-hero-sbox .p4k-suggest { border-radius: 12px; }
}

/* ===== v3.35.0 无障碍：尊重系统「减少动态效果」偏好（prefers-reduced-motion） =====
   开启该系统偏好的用户：关闭 shimmer / 弹入 / 无限循环等装饰动画，过渡瞬时完成；
   功能不受影响（动画终态即元素常态）。配套 JS 侧同降级（轮播不自动播、平滑滚动直跳）。 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
