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

:root {
    --bg-page: #f8f6ff;
    --bg-grad: linear-gradient(135deg, #fce8e4 0%, #f8f0ff 40%, #eef0ff 100%);
    --bg-white: #ffffff;
    --bg-soft: #f9f8ff;
    --bg-muted: #f0eeff;
    --violet: #6b3fe0;
    --violet-dk: #5530c0;
    --violet-lt: #ede8ff;
    --violet-mid: #7b4ff0;
    --violet-glow: rgba(107,63,224,.25);
    --red: #ff1b2d;
    --txt: #0d0d0d;
    --txt2: #2a2a2a;
    --txt3: #666677;
    --link: #6b3fe0;
    --bdr: #e0daf5;
    --bdr2: #c8bfee;
    --sh1: 0 1px 4px rgba(107,63,224,.08);
    --sh2: 0 2px 12px rgba(107,63,224,.12);
    --sh3: 0 6px 24px rgba(107,63,224,.16);
    --r: 12px;
    --r2: 8px;
    --r3: 16px;
    --r4: 50px;
}

html { font-size: 15px; }

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

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

/* ===== WRAPPER ===== */
.op-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.op-topbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
    box-shadow: var(--sh1);
}

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

.op-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

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

.op-sitename {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--txt);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.op-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--violet);
    border-radius: var(--r4);
    padding: 5px 16px;
}

.op-domain-pill .odp-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.op-domain-pill .odp-val {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.op-navframe {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

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

.op-zone-mark {
    background: var(--violet);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.2);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.op-navlinks a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 6px;
    border-radius: var(--r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.op-navlinks a:hover {
    background: var(--violet-lt);
    color: var(--violet);
    border-color: rgba(107,63,224,.3);
}

.op-navlinks a.active {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet-dk);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.op-searchbar {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 8px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.op-searchbar form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.op-searchbar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--bdr2);
    border-radius: var(--r4);
    padding: 0 18px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.op-searchbar input[type="text"]:focus {
    border-color: var(--violet);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--violet-glow);
}

.op-searchbar button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: var(--r4);
    background: var(--bg-muted);
    color: var(--txt2);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    font-family: inherit;
    border: 1.5px solid var(--bdr);
}

.op-searchbar button:hover {
    background: var(--violet-lt);
    border-color: rgba(107,63,224,.35);
    color: var(--violet);
}

.op-searchbar button[value="1"] {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet-dk);
}
.op-searchbar button[value="1"]:hover { background: var(--violet-dk); }

.op-searchbar button[value="2"] {
    background: var(--bg-white);
    color: var(--violet);
    border: 1.5px solid var(--violet);
}
.op-searchbar button[value="2"]:hover { background: var(--violet-lt); }

/* ===== HOT TAGS ===== */
.op-tagblock {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 8px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.op-tagblock h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 6px;
}

.op-tagset {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.op-tagset .op-tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--bdr);
    border-radius: var(--r4);
    padding: 3px 12px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.op-tagset .op-tag:hover {
    background: var(--violet-lt);
    color: var(--violet);
    border-color: rgba(107,63,224,.35);
}

/* ===== CONTENT SECTION ===== */
.op-section {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 14px 14px 11px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.op-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.op-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--violet);
    border-radius: 2px;
}

.op-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt);
}

.op-sect-hd h3 a { color: var(--txt); }
.op-sect-hd h3 a:hover { color: var(--violet); }

.op-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
}

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

.op-filmgrid li {
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

.op-filmgrid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
}

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

.op-filmcover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.op-filmcover:hover img { transform: scale(1.04); }

.op-filmcap {
    padding: 5px 8px 7px;
}

.op-filmcap h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.op-filmcap h5 a { color: var(--txt); }
.op-filmcap h5 a:hover { color: var(--violet); }

/* ===== PAGINATION ===== */
.op-pgzone {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

.op-pglist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.op-pglist a.opp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr2);
    border-radius: var(--r4);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.op-pglist a.opp:hover {
    background: var(--violet-lt);
    border-color: var(--violet);
    color: var(--violet);
}

.op-pglist a.opp-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--violet);
    border: 1.5px solid var(--violet-dk);
    border-radius: var(--r4);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 10px var(--violet-glow);
}

/* ===== FOOTER ===== */
.op-flink-box {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 9px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.op-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.op-flinks dd { display: inline; }

.op-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 10px;
    border-radius: var(--r4);
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
}

.op-flinks a:hover {
    color: var(--violet);
    border-color: var(--violet);
    background: var(--violet-lt);
}

.op-copyright {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.op-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--violet);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    font-weight: 600;
}

.op-dtl-title a {
    color: var(--violet);
    font-weight: 700;
    margin-right: 6px;
}

.op-dtl-body {
    font-size: .9rem;
    line-height: 1.95;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

.op-snapview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.op-snapview picture,
.op-snapview img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

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

.op-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 28px;
    background: var(--violet);
    color: #fff;
    border: none;
    border-radius: var(--r4);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 3px 14px var(--violet-glow);
}

.op-action-btn:hover {
    background: var(--violet-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px var(--violet-glow);
}

.op-note {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.op-note a { color: var(--txt2); font-weight: 600; }
.op-note a:hover { color: var(--violet); }

/* ===== SHARE BAR ===== */
.op-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 8px 14px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.op-share-bar .osb-lbl { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.op-share-bar .osb-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.op-share-bar .osb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: var(--violet);
    color: #fff;
    border: none;
    border-radius: var(--r4);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.op-share-bar .osb-btn:hover { background: var(--violet-dk); }

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

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

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

    .op-sitename { font-size: 1.1rem; }
    .op-domain-pill .odp-val { font-size: .94rem; }

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

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

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

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

    /* Search: single row, no wrap */
    .op-searchbar form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .op-searchbar input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 10px;
    }

    .op-searchbar button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

    /* Film grid: 2 col */
    .op-filmgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .op-filmcover { aspect-ratio: 600 / 350; }
    .op-filmcap h5 { font-size: .72rem; }
    .op-section { padding: 9px 9px 7px; }
    .op-action-btn { padding: 9px 18px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .op-zone-mark { font-size: 10px; }
    .op-navlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .op-zone-mark { font-size: 10px; }
    .op-navlinks a { font-size: 12px; }
    .op-searchbar button { padding: 0 5px; font-size: .68rem; }
}
