/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #000000;
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-muted: #1a1a1a;
    --bg-hover: #222222;
    --white: #ffffff;
    --lemon: #f8f8f8;
    --orange: #f5821f;
    --orange-dk: #d96b10;
    --orange-lt: rgba(245,130,31,.12);
    --txt: #e8e8e8;
    --txt2: #aaaaaa;
    --txt3: #666666;
    --border: #2a2a2a;
    --border2: #383838;
    --sh1: 0 1px 6px rgba(0,0,0,.6);
    --sh2: 0 4px 18px rgba(0,0,0,.7);
    --sh3: 0 8px 32px rgba(0,0,0,.8);
    --lg: 6px;
    --lg2: 4px;
    --lg3: 10px;
}

html { font-size: 15px; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.65;
}

a { color: var(--txt2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.ld-cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.ld-frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.ld-topbar {
    background: var(--black);
    border-bottom: 1px solid var(--border2);
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.ld-topbar .ld-frame {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.ld-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.ld-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ld-sitename {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--white);
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
    border: 1.5px solid var(--border2);
    padding: 3px 10px;
    border-radius: var(--lg2);
}

.ld-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-muted);
    border: 1px solid var(--border2);
    border-radius: var(--lg2);
    padding: 4px 12px;
}

.ld-domain-tag .ldt-hint {
    font-size: .67rem;
    color: var(--txt3);
    white-space: nowrap;
}

.ld-domain-tag .ldt-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--orange);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.ld-hero-img {
    margin: 4px 0 3px;
}
.ld-hero-img img { border-radius: var(--lg); width: 100%; }

/* ===== CATEGORY NAV ===== */
.ld-navbox {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg3);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ld-navband {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 38px;
}

.ld-navband:last-child { border-bottom: none; }

.ld-zone-chip {
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border2);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.ld-catlinks {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.ld-catlinks a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--lg2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.ld-catlinks a:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: rgba(245,130,31,.25);
}

.ld-catlinks a.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ld-querybar {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg3);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ld-querybar form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.ld-querybar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border2);
    border-radius: var(--lg2);
    padding: 0 14px;
    font-size: .86rem;
    color: var(--txt);
    background: var(--bg-muted);
    outline: none;
    transition: border-color .18s;
}

.ld-querybar input[type="text"]::placeholder { color: var(--txt3); }
.ld-querybar input[type="text"]:focus {
    border-color: var(--orange);
    background: var(--bg-hover);
}

.ld-querybar button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--lg2);
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.ld-querybar button:hover { background: var(--bg-hover); color: var(--white); }

.ld-querybar button[value="1"] {
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    border-radius: 18px;
}
.ld-querybar button[value="1"]:hover { background: var(--orange-dk); color: #fff; }

.ld-querybar button[value="2"] {
    background: transparent;
    color: var(--orange);
    font-weight: 700;
    border: 1.5px solid var(--orange);
    border-radius: var(--lg2);
}
.ld-querybar button[value="2"]:hover { background: var(--orange-lt); }

/* ===== HOT TAGS ===== */
.ld-tagzone {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ld-tagzone h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--txt3);
    margin-bottom: 5px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ld-tagzone h4 strong { color: var(--orange); }

.ld-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ld-tagcloud .ldtag {
    display: inline-block;
    background: var(--bg-muted);
    color: var(--txt2);
    border: 1px solid var(--border2);
    border-radius: var(--lg2);
    padding: 2px 9px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.ld-tagcloud .ldtag:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: rgba(245,130,31,.3);
}

/* ===== CONTENT SECTION ===== */
.ld-panel {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ld-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border2);
    position: relative;
}

.ld-panel-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.ld-panel-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: .2px;
}

.ld-panel-hd h3 a { color: var(--white); }
.ld-panel-hd h3 a:hover { color: var(--orange); }

.ld-panel-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--white);
}

/* ===== FILM GRID ===== */
.ld-videogrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ld-videogrid li {
    border-radius: var(--lg);
    overflow: hidden;
    border: 1px solid var(--border2);
    background: var(--bg-muted);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.ld-videogrid li:hover {
    box-shadow: var(--sh3);
    border-color: rgba(245,130,31,.4);
    transform: translateY(-2px);
}

.ld-filmthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

.ld-filmthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    opacity: .92;
}

.ld-filmthumb:hover img { transform: scale(1.04); opacity: 1; }

.ld-filmcap {
    padding: 5px 7px 7px;
}

.ld-filmcap h5 {
    font-size: .75rem;
    font-weight: 400;
    color: var(--txt2);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ld-filmcap h5 a { color: var(--txt2); }
.ld-filmcap h5 a:hover { color: var(--orange); }

/* ===== PAGINATION ===== */
.ld-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.ld-pgbtns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.ld-pgbtns a.ldpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg2);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.ld-pgbtns a.ldpg:hover {
    background: var(--orange-lt);
    border-color: var(--orange);
    color: var(--orange);
}

.ld-pgbtns a.ldpg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: var(--lg2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ld-flinks-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ld-flink-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ld-flink-dl dd { display: inline; }

.ld-flink-dl a {
    display: inline-block;
    font-size: .74rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--lg2);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    text-decoration: none;
    transition: all .15s;
}

.ld-flink-dl a:hover { color: var(--orange); border-color: rgba(245,130,31,.3); }

.ld-copyright {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt3);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.ld-item-hd {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-left: 3px solid var(--orange);
    border-radius: var(--lg);
    box-shadow: var(--sh1);
    color: var(--txt);
}

.ld-item-hd a {
    color: var(--orange);
    font-weight: 700;
    margin-right: 6px;
}

.ld-item-body {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--lg);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--txt2);
}

.ld-screenpic {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.ld-screenpic picture,
.ld-screenpic img {
    width: 100%;
    height: auto;
    border-radius: var(--lg2);
    display: block;
}

/* ===== DL BUTTONS ===== */
.ld-btnrow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.ld-dlbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
    letter-spacing: .2px;
}

.ld-dlbtn:hover {
    background: var(--orange-dk);
    color: #fff;
    transform: translateY(-1px);
}

.ld-clientline {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.ld-clientline a { color: var(--txt3); font-weight: 600; }
.ld-clientline a:hover { color: var(--orange); }

/* ===== SHARE ===== */
.ld-sharebar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-muted);
    border: 1px solid var(--border2);
    border-radius: var(--lg);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.ld-sharebar .ldsb-lbl { font-size: .73rem; color: var(--txt3); white-space: nowrap; }
.ld-sharebar .ldsb-url { font-size: .76rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.ld-sharebar .ldsb-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.ld-sharebar .ldsb-copy:hover { background: var(--orange-dk); }

/* ===== VIS HELPERS ===== */
.ld-pc { display: block; }
.ld-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ld-videogrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ld-pc { display: none; }
    .ld-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .ld-sitename { font-size: 1.06rem; }
    .ld-domain-tag .ldt-val { font-size: .9rem; }

    .ld-navband { align-items: stretch; }

    .ld-zone-chip {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ld-catlinks {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 4px;
        align-items: center;
    }

    .ld-catlinks a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: NO wrap, all in one row */
    .ld-querybar form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .ld-querybar input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 8px;
    }

    .ld-querybar button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

    .ld-videogrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .ld-filmthumb { aspect-ratio: 600 / 350; }
    .ld-filmcap h5 { font-size: .7rem; }
    .ld-panel { padding: 8px 8px 6px; }
    .ld-dlbtn { padding: 9px 18px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .ld-zone-chip { font-size: 10px; }
    .ld-catlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .ld-zone-chip { font-size: 10px; }
    .ld-catlinks a { font-size: 12px; }
    .ld-querybar button { padding: 0 4px; font-size: .66rem; }
}
