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

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8f6;
    --bg-muted: #eef0ec;
    --bg-deep: #f0f2ee;
    --green: #1c6136;
    --green-dk: #145029;
    --green-lt: #edf4ee;
    --green2: #2d7a4a;
    --green3: #4a9b68;
    --green-mid: #1e6e3c;
    --txt: #111111;
    --txt2: #3a3a3a;
    --txt3: #888888;
    --border: #dfe3db;
    --border2: #cdd3c8;
    --border-dk: #b4bfad;
    --shadow1: 0 1px 4px rgba(28,97,54,.07);
    --shadow2: 0 3px 12px rgba(28,97,54,.10);
    --shadow3: 0 6px 22px rgba(28,97,54,.15);
    --radius: 4px;
    --radius2: 3px;
    --radius3: 4px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.ot-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 11px 0;
    box-shadow: var(--shadow1);
}

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

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

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

/* OneTrust-style: bold lowercase green wordmark */
.ot-site-name {
    font-size: 1.40rem;
    font-weight: 800;
    color: var(--green);
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.ot-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--green);
    border-radius: var(--radius3);
    padding: 5px 15px;
    box-shadow: 0 2px 8px rgba(28,97,54,.2);
}

.ot-domain-pill .od-tip {
    font-size: 0.66rem;
    color: rgba(255,255,255,.62);
    white-space: nowrap;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ot-domain-pill .od-url {
    font-size: 1.06rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .1px;
}

/* ===== BANNER ===== */
.ot-hero {
    margin: 5px 0 3px;
    border-radius: var(--radius);
    overflow: hidden;
}
.ot-hero img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.ot-nav-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.ot-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 36px;
}

.ot-nav-row:last-child { border-bottom: none; }

.ot-zone-lbl {
    background: var(--bg-deep);
    color: var(--txt3);
    font-size: .64rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.ot-zone-links a {
    font-size: .79rem;
    color: var(--txt2);
    padding: 4px 4px;
    border-radius: var(--radius2);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.ot-zone-links a:hover {
    background: var(--green-lt);
    color: var(--green);
    border-color: #b8d8c2;
}

.ot-zone-links a.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ot-search-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

.ot-search-card input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 37px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    font-family: inherit;
}

.ot-search-card input[type="text"]:focus {
    border-color: var(--green);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(28,97,54,.09);
}

.ot-search-card button {
    height: 37px;
    padding: 0 14px;
    border: 1px solid var(--border-dk);
    border-radius: var(--radius);
    background: var(--txt2);
    color: #fff;
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, transform .12s;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: .3px;
}

.ot-search-card button:hover { background: var(--txt); transform: translateY(-1px); }

.ot-search-card button[value="1"] {
    background: var(--green);
    border-color: var(--green);
}
.ot-search-card button[value="1"]:hover { background: var(--green-dk); }

.ot-search-card button[value="2"] {
    background: transparent;
    border: 1.5px solid var(--green);
    color: var(--green);
}
.ot-search-card button[value="2"]:hover {
    background: var(--green-lt);
    transform: translateY(-1px);
}

/* ===== HOT TAGS ===== */
.ot-hot-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 14px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.ot-hot-card h4 {
    font-size: .72rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.ot-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ot-tag-row .ot-tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px 11px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .16s;
    font-weight: 500;
    letter-spacing: .1px;
}

.ot-tag-row .ot-tag:hover {
    background: var(--green-lt);
    color: var(--green);
    border-color: #b8d8c2;
    transform: translateY(-1px);
}

/* ===== CONTENT SECTION ===== */
.ot-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px 10px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

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

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

.ot-sec-hd h3 {
    font-size: .96rem;
    font-weight: 700;
    color: var(--txt);
    letter-spacing: -.1px;
}

.ot-sec-hd h3 a { color: var(--txt); }
.ot-sec-hd h3 a:hover { color: var(--green); }

.ot-sec-hd h4 {
    font-size: .94rem;
    font-weight: 700;
    color: var(--txt);
}

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

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

.ot-grid li:hover {
    box-shadow: var(--shadow3);
    transform: translateY(-2px);
}

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

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

.ot-thumb:hover img { transform: scale(1.05); }

.ot-caption {
    padding: 6px 8px 7px;
    border-top: 1px solid var(--border);
}

.ot-caption h5 {
    font-size: .77rem;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: .05px;
}

.ot-caption h5 a { color: var(--txt); }
.ot-caption h5 a:hover { color: var(--green); }

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

.ot-pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.ot-pager-row a.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .16s;
    font-weight: 500;
    font-family: inherit;
}

.ot-pager-row a.op-btn:hover {
    background: var(--green-lt);
    border-color: var(--green);
    color: var(--green);
}

.ot-pager-row a.op-btn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    font-family: inherit;
}

/* ===== FOOTER ===== */
.ot-flink-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 14px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

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

.ot-flinks dd { display: inline; }

.ot-flinks a {
    display: inline-block;
    font-size: .73rem;
    color: var(--txt3);
    padding: 2px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .16s;
    font-family: inherit;
}

.ot-flinks a:hover {
    color: var(--green);
    border-color: #b8d8c2;
    background: var(--green-lt);
}

.ot-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .72rem;
    font-family: inherit;
}

/* ===== DETAIL PAGES ===== */
.ot-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .96rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
}

.ot-dtl-title a {
    color: var(--green);
    font-weight: 700;
    margin-right: 6px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ot-dtl-info {
    font-size: .9rem;
    line-height: 2;
    padding: 15px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    margin: 5px 0;
    color: var(--txt2);
    font-family: inherit;
}

.ot-preview-box {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.ot-preview-box picture,
.ot-preview-box img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* ===== DL BUTTONS ===== */
.ot-dl-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}

.ot-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .14s, box-shadow .18s;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: .2px;
    box-shadow: 0 2px 8px rgba(28,97,54,.25);
}

.ot-dl-btn:hover {
    background: var(--green-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(28,97,54,.35);
}

.ot-cli-hint {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
    font-family: inherit;
}

.ot-cli-hint a { color: var(--green); font-weight: 600; }
.ot-cli-hint a:hover { color: var(--green-dk); }

/* ===== SHARE ===== */
.ot-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.ot-share-bar .os-lbl {
    font-size: .72rem;
    color: var(--txt3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-family: inherit;
}
.ot-share-bar .os-url {
    font-size: .78rem;
    color: var(--txt2);
    flex: 1;
    min-width: 0;
    word-break: break-all;
    font-family: inherit;
}

.ot-share-bar .os-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 15px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, transform .12s;
    flex-shrink: 0;
    font-family: inherit;
}

.ot-share-bar .os-btn:hover {
    background: var(--green-dk);
    transform: translateY(-1px);
}

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

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

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

    .ot-site-name { font-size: 1.1rem; }
    .ot-domain-pill .od-url { font-size: .9rem; }

    .ot-nav-row { align-items: stretch; }

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

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

    .ot-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: one row, no wrap */
    .ot-search-card form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .ot-search-card input[type="text"] {
        height: 34px;
        font-size: .74rem;
        padding: 0 8px;
    }

    .ot-search-card button {
        height: 34px;
        padding: 0 7px;
        font-size: .69rem;
    }

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

    .ot-thumb { aspect-ratio: 600 / 350; }
    .ot-caption h5 { font-size: .71rem; }
    .ot-section { padding: 10px 10px 8px; }
    .ot-dl-btn { padding: 9px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .ot-zone-lbl { font-size: 10px; }
    .ot-zone-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .ot-zone-lbl { font-size: 10px; }
    .ot-zone-links a { font-size: 12px; }
    .ot-search-card button { padding: 0 5px; font-size: .63rem; }
}
