/* Liepin-Inspired Theme — Dark NavBar · White Body · Orange Accent */

:root {
    --nav-bg:       #1c1c1c;
    --nav-text:     #e8e8e8;
    --orange:       #ff6a00;
    --orange-hi:    #ff7d1a;
    --orange-pale:  rgba(255,106,0,0.10);
    --orange-glow:  rgba(255,106,0,0.28);
    --body-bg:      #f4f5f7;
    --surface:      #ffffff;
    --card:         #ffffff;
    --border:       #e5e7eb;
    --border-dark:  #d1d5db;
    --text-primary: #1a1a1a;
    --text-second:  #555c68;
    --text-muted:   #9ca3af;
    --shadow-xs:    0 1px 3px rgba(0,0,0,0.07);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.09);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.11);
    --rad:          6px;
    --rad-sm:       4px;
    --rad-pill:     20px;
    --ease:         all 0.20s ease;
    --maxw:         1060px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== TOP NAV HEADER ===== */
.lp-topbar {
    background: var(--nav-bg);
    border-bottom: 1px solid #2e2e2e;
    padding: 0;
}

.lp-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.lp-brand-link {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.lp-site-name {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: none;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

.lp-site-name span {
    color: var(--orange);
}

.lp-domain-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    border: 1.5px solid var(--orange);
    border-radius: var(--rad-pill);
    background: var(--orange-pale);
}

.lp-domain-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-domain-addr {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ===== LAYOUT ===== */
.lp-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
}

.lp-sect {
    padding: 7px 0;
}

/* ===== PROMO ===== */
.lp-promo {
    overflow: hidden;
    margin-bottom: 7px;
    border-radius: var(--rad);
    box-shadow: var(--shadow-sm);
}

/* ===== CATEGORY NAV ===== */
.lp-catnav {
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    margin-bottom: 7px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.lp-catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.lp-catrow:last-child {
    border-bottom: none;
}

.lp-catlabel {
    font-size: 13px;
    font-weight: 700;
    color: var(--surface);
    background: var(--nav-bg);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    border-right: 2px solid var(--orange);
    letter-spacing: 0.2px;
}

.lp-catlinks {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 10px;
    align-items: center;
    background: #fafbfc;
}

.lp-catlinks a {
    display: inline-block;
    color: var(--text-second);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--surface);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.lp-catlinks a:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 2px 8px var(--orange-glow);
}

.lp-catlinks a.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--orange-glow);
}

/* ===== SEARCH ===== */
.lp-searchbox {
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    padding: 12px 14px;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

.lp-searchbox form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.lp-searchbox input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 9px 14px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--rad-pill);
    background: var(--body-bg);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.lp-searchbox input[type="text"]:focus {
    border-color: var(--orange);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--orange-pale);
}

.lp-searchbox input[type="text"]::placeholder {
    color: var(--text-muted);
}

.lp-searchbox button {
    padding: 9px 20px;
    border: none;
    border-radius: var(--rad-pill);
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.lp-searchbox button:hover {
    background: var(--orange-hi);
    box-shadow: 0 4px 12px var(--orange-glow);
}

/* ===== HOT TAGS ===== */
.lp-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

.lp-tagcloud a {
    display: inline-block;
    padding: 5px 13px;
    background: var(--body-bg);
    border-radius: var(--rad-pill);
    color: var(--text-second);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.lp-tagcloud a:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

/* ===== HOT HEADING ===== */
.lp-hothd {
    margin-bottom: 6px;
}

.lp-hothd strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-second);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ===== SECTION HEADING ===== */
.lp-filmblk {
    margin-bottom: 10px;
}

.lp-blkhead {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lp-blkhead::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--orange);
}

.lp-blktitle {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    text-transform: uppercase;
    margin: 0;
}

.lp-blktitle a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.lp-blktitle a:hover { color: var(--orange); }

/* ===== MEDIA GRID ===== */
.lp-thumbgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.lp-thumbgrid li {
    animation: lpRise 0.42s ease backwards;
}

.lp-thumbgrid li:nth-child(1) { animation-delay: 0.04s; }
.lp-thumbgrid li:nth-child(2) { animation-delay: 0.08s; }
.lp-thumbgrid li:nth-child(3) { animation-delay: 0.12s; }
.lp-thumbgrid li:nth-child(4) { animation-delay: 0.16s; }
.lp-thumbgrid li:nth-child(5) { animation-delay: 0.20s; }
.lp-thumbgrid li:nth-child(6) { animation-delay: 0.24s; }
.lp-thumbgrid li:nth-child(7) { animation-delay: 0.28s; }
.lp-thumbgrid li:nth-child(8) { animation-delay: 0.32s; }

@keyframes lpRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lp-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--border);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.lp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
    display: block;
}

.lp-thumb:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px var(--orange-glow);
}

.lp-thumb:hover img { transform: scale(1.07); }

.lp-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.lp-thumb:hover::after { opacity: 1; }

.lp-thumbcap {
    padding: 7px 0 3px;
}

.lp-thumbcap h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.lp-thumbcap h5 a {
    color: var(--text-second);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-thumbcap h5 a:hover { color: var(--orange); }

/* ===== DETAIL TITLE ===== */
.lp-dtlbar {
    line-height: 1.8;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    box-shadow: var(--shadow-xs);
}

.lp-dtlbar a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.lp-dtlbar b { color: var(--text-primary); }

/* ===== INFO PANEL ===== */
.lp-infopanel {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    margin: 7px 0;
    color: var(--text-second);
    box-shadow: var(--shadow-xs);
}

/* ===== CAPTURE ===== */
.lp-capframe { margin-top: 12px; }

.lp-capframe picture,
.lp-capframe img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    border: 1px solid var(--border);
}

/* ===== ACTION BUTTONS ===== */
.lp-btnrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    margin: 7px 0;
    box-shadow: var(--shadow-xs);
}

.lp-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.lp-btn:hover {
    background: var(--orange-hi);
    box-shadow: 0 4px 14px var(--orange-glow);
}

/* ===== SHARE PANEL ===== */
.lp-sharebox {
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    padding: 13px 18px;
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}

.lp-shareurl-row {
    background: var(--body-bg);
    border: 1px solid var(--border-dark);
    border-radius: var(--rad-pill);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 11px;
    color: var(--orange);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.share-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--orange-hi);
    box-shadow: 0 4px 12px var(--orange-glow);
}

.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

/* ===== PAGINATION ===== */
.lp-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.lp-pgbtn,
.lp-pgcur {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--rad-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.lp-pgbtn {
    background: var(--surface);
    color: var(--text-second);
    border: 1px solid var(--border-dark);
}

.lp-pgbtn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.lp-pgcur {
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
    cursor: default;
}

/* ===== FOOTER ===== */
.lp-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--border);
    margin-top: 14px;
    background: var(--nav-bg);
}

.lp-footer p {
    margin: 5px 0;
    color: #888;
    font-size: 12px;
}

.lp-footer a {
    color: #888;
    text-decoration: none;
    transition: var(--ease);
}

.lp-footer a:hover { color: var(--orange); }

/* ===== FRIENDLY LINKS ===== */
.lp-flinks {
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

.lp-flinks dl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-flinks dd { display: inline-block; margin: 0; }

.lp-flinks a {
    color: var(--text-second);
    text-decoration: none;
    font-size: 13px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: var(--rad-pill);
    display: inline-block;
    transition: var(--ease);
}

.lp-flinks a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    margin-bottom: 7px;
    overflow: hidden;
    border-radius: var(--rad);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ===== UTILS ===== */
.clearfix::after { content: ''; display: table; clear: both; }
.lp-showpc  { display: block; }
.lp-showmob { display: block; }
img[data-original] { background: var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .lp-thumbgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .lp-wrap { padding: 0 9px; }
    .lp-topbar-inner { padding: 9px 0; gap: 10px; }
    .lp-site-name { font-size: 22px; }
    .lp-domain-wrap { padding: 4px 12px; gap: 8px; }
    .lp-domain-label { font-size: 9px; }
    .lp-domain-addr { font-size: 15px; }
    .lp-sect { padding: 5px 0; }

    /* mobile nav 15/85 */
    .lp-catlabel {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        letter-spacing: 0;
    }
    .lp-catlinks {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .lp-catlinks a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .lp-thumbgrid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .lp-blktitle { font-size: 15px; }

    .lp-searchbox { padding: 9px 10px; }
    .lp-searchbox form { gap: 6px; }
    .lp-searchbox input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .lp-searchbox button { padding: 8px 12px; font-size: 12px; }

    .lp-thumbcap { padding: 5px 0 2px; }
    .lp-thumbcap h5 { font-size: 12px; }

    .lp-btnrow { padding: 11px 8px; gap: 8px; flex-wrap: nowrap; }
    .lp-btn { padding: 9px 16px; font-size: 13px; }

    .lp-sharebox { padding: 10px 11px; gap: 8px; flex-wrap: nowrap; margin: 5px 0; }
    .lp-shareurl-row { padding: 8px 10px; gap: 6px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 9px 12px; font-size: 12px; }
    .share-icon { font-size: 13px; }

    .lp-pager { padding: 12px 0; gap: 4px; }
    .lp-pgbtn, .lp-pgcur { padding: 6px 10px; font-size: 12px; min-width: 30px; }

    .lp-tagcloud { padding: 9px 10px; gap: 5px; }
    .lp-tagcloud a { font-size: 12px; padding: 4px 10px; }

    .lp-dtlbar { font-size: 14px; padding: 12px 14px; }
    .lp-infopanel { font-size: 14px; padding: 13px 14px; }
    .lp-footer { padding: 14px 0; margin-top: 10px; }
}

@media (max-width: 480px) {
    .lp-site-name { font-size: 18px; }
    .lp-domain-addr { font-size: 13px; }

    .lp-catlabel { width: 15%; font-size: 10px; padding: 5px 1px; }
    .lp-catlinks { width: 85%; gap: 3px; padding: 5px 3px; }
    .lp-catlinks a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .lp-thumbgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lp-thumbcap h5 { font-size: 12px; }
    .lp-blktitle { font-size: 14px; }

    .lp-searchbox input[type="text"] { min-width: 70px; font-size: 12px; }
    .lp-searchbox button { padding: 8px 10px; font-size: 11px; }

    .lp-btnrow { padding: 10px 6px; gap: 6px; }
    .lp-btn { padding: 8px 12px; font-size: 12px; }

    .lp-sharebox { padding: 8px 7px; gap: 5px; }
    .lp-shareurl-row { padding: 7px 8px; gap: 4px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 9px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
}

@media (min-width: 769px) { .lp-showmob { display: none !important; } }
@media (max-width: 768px) { .lp-showpc  { display: none !important; } }
