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

:root {
    --white: #ffffff;
    --bg: #f7f8f7;
    --bg-card: #ffffff;
    --bg-panel: #f2f4f2;
    --forest: #1e5c3a;
    --forest-mid: #276b45;
    --forest-dk: #164830;
    --forest-lt: rgba(30,92,58,.08);
    --forest-deep: #1a3d2b;
    --ink: #111111;
    --ink2: #2c2c2c;
    --sub: #555555;
    --hint: #888888;
    --ghost: #b8b8b8;
    --border: #e2e8e4;
    --border2: #d0d9d3;
    --sh1: 0 1px 4px rgba(30,92,58,.07);
    --sh2: 0 3px 14px rgba(30,92,58,.10);
    --sh3: 0 7px 26px rgba(30,92,58,.14);
    --rg: 6px;
    --rg2: 4px;
    --rg3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.ot-mastbar {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--sh1);
}

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

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

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

.ot-sitename {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--forest);
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    border-bottom: none;
}

.ot-addr-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-panel);
    border: 1px solid var(--border2);
    border-radius: var(--rg2);
    padding: 4px 12px;
}

.ot-addr-chip .oac-label {
    font-size: .67rem;
    color: var(--hint);
    white-space: nowrap;
}

.ot-addr-chip .oac-val {
    font-size: 1.07rem;
    font-weight: 800;
    color: var(--forest);
    white-space: nowrap;
}

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

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

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

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

.ot-zone-tab {
    background: var(--forest);
    color: rgba(255,255,255,.88);
    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 rgba(255,255,255,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.ot-catitems a:hover {
    background: var(--forest-lt);
    color: var(--forest);
    border-color: rgba(30,92,58,.2);
}

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

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

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

.ot-querybox input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border2);
    border-radius: var(--rg2);
    padding: 0 13px;
    font-size: .86rem;
    color: var(--ink);
    background: var(--bg-panel);
    outline: none;
    transition: border-color .18s, background .18s;
}

.ot-querybox input[type="text"]::placeholder { color: var(--ghost); }
.ot-querybox input[type="text"]:focus {
    border-color: var(--forest);
    background: var(--white);
}

.ot-querybox button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--rg2);
    background: var(--sub);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.ot-querybox button:hover { background: var(--ink); }

.ot-querybox button[value="1"] {
    background: var(--forest);
    color: #fff;
    font-weight: 700;
}
.ot-querybox button[value="1"]:hover { background: var(--forest-dk); }

.ot-querybox button[value="2"] {
    background: var(--white);
    color: var(--forest);
    font-weight: 700;
    border: 1.5px solid var(--forest);
}
.ot-querybox button[value="2"]:hover { background: var(--forest-lt); }

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

.ot-tagpod h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--hint);
    margin-bottom: 5px;
    letter-spacing: .4px;
}

.ot-tagpod h4 strong { color: var(--forest); }

.ot-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ot-taglist .ottag {
    display: inline-block;
    background: var(--bg-panel);
    color: var(--sub);
    border: 1px solid var(--border2);
    border-radius: var(--rg2);
    padding: 2px 9px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.ot-taglist .ottag:hover {
    background: var(--forest-lt);
    color: var(--forest);
    border-color: rgba(30,92,58,.22);
}

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

.ot-sect-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.ot-sect-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
}

.ot-sect-head h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--ink);
}

.ot-sect-head h3 a { color: var(--ink); }
.ot-sect-head h3 a:hover { color: var(--forest); }

.ot-sect-head h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--ink);
}

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

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

.ot-vidlist li:hover {
    box-shadow: var(--sh3);
    border-color: rgba(30,92,58,.3);
    transform: translateY(-2px);
}

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

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

.ot-vidcover:hover img { transform: scale(1.04); }

.ot-vidtext {
    padding: 5px 7px 7px;
}

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

.ot-vidtext h5 a { color: var(--sub); }
.ot-vidtext h5 a:hover { color: var(--forest); }

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

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

.ot-pglinks a.otpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border2);
    border-radius: var(--rg2);
    font-size: .82rem;
    color: var(--sub);
    text-decoration: none;
    transition: all .15s;
}

.ot-pglinks a.otpg:hover {
    background: var(--forest-lt);
    border-color: var(--forest);
    color: var(--forest);
}

.ot-pglinks a.otpg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--forest);
    border: 1.5px solid var(--forest);
    border-radius: var(--rg2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ot-flinksect {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rg);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ot-flinkdl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ot-flinkdl dd { display: inline; }

.ot-flinkdl a {
    display: inline-block;
    font-size: .74rem;
    color: var(--ghost);
    padding: 2px 9px;
    border-radius: var(--rg2);
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    transition: all .15s;
}

.ot-flinkdl a:hover { color: var(--forest); border-color: rgba(30,92,58,.28); }

.ot-footcopy {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--ghost);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.ot-itemhd {
    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(--border);
    border-left: 4px solid var(--forest);
    border-radius: var(--rg);
    box-shadow: var(--sh1);
    color: var(--ink);
}

.ot-itemhd a {
    color: var(--forest);
    font-weight: 700;
    margin-right: 6px;
}

.ot-itemmeta {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rg);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--sub);
}

.ot-previewpic {
    display: block;
    width: 100%;
    margin-top: 9px;
}

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

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

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

.ot-actbtn:hover {
    background: var(--forest-dk);
    border-color: var(--forest-dk);
    color: #fff;
    transform: translateY(-1px);
}

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

.ot-clientnote a { color: var(--hint); font-weight: 600; }
.ot-clientnote a:hover { color: var(--forest); }

/* ===== SHARE ===== */
.ot-shareline {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--rg);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.ot-shareline .osl-lbl { font-size: .73rem; color: var(--ghost); white-space: nowrap; }
.ot-shareline .osl-url { font-size: .76rem; color: var(--sub); flex: 1; min-width: 0; word-break: break-all; }

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

.ot-shareline .osl-copy:hover { background: var(--forest-dk); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ot-vidlist { 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-sitename { font-size: 1.06rem; }
    .ot-addr-chip .oac-val { font-size: .9rem; }

    .ot-navstrip { align-items: stretch; }

    .ot-zone-tab {
        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;
    }

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

    .ot-catitems 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 */
    .ot-querybox form {
        flex-wrap: nowrap;
        gap: 3px;
    }

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

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

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

    .ot-vidcover { aspect-ratio: 600 / 350; }
    .ot-vidtext h5 { font-size: .7rem; }
    .ot-section { padding: 8px 8px 6px; }
    .ot-actbtn { padding: 9px 16px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .ot-zone-tab { font-size: 10px; }
    .ot-catitems a { font-size: 12px; }
    .ot-querybox button { padding: 0 4px; font-size: .66rem; }
}
