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

:root {
    --crimson:     #b01a1a;
    --crimson-dk:  #8a1010;
    --crimson-lt:  #d42020;
    --crimson-bg:  #fdf2f2;
    --crimson-bdr: #e8b8b8;

    --blk:         #111111;
    --blk2:        #222222;
    --blk3:        #333333;
    --charcoal:    #444444;
    --silver:      #888888;
    --smoke:       #cccccc;

    --bg-page:     #f2f2f2;
    --bg-white:    #ffffff;
    --bg-offwhite: #f8f8f8;
    --bg-card:     #ffffff;

    --txt-hd:      #111111;
    --txt-main:    #222222;
    --txt-sub:     #444444;
    --txt-muted:   #888888;
    --bdr:         #dddddd;
    --bdr2:        #bbbbbb;

    --shade1: 0 1px 4px rgba(0,0,0,.08);
    --shade2: 0 3px 12px rgba(0,0,0,.12);
    --shade3: 0 6px 24px rgba(0,0,0,.18);

    --grad-hd:    linear-gradient(90deg, #8a1010 0%, #b01a1a 50%, #c82020 100%);
    --grad-btn:   linear-gradient(135deg, #b01a1a 0%, #d42020 100%);
    --grad-btn2:  linear-gradient(135deg, #111111 0%, #333333 100%);
    --grad-silver: linear-gradient(135deg, #555555 0%, #777777 100%);

    --radius:    6px;
    --radius-sm: 3px;
    --radius-lg: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.si-hd {
    background: var(--grad-hd);
    border-bottom: 3px solid var(--blk);
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

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

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

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

.si-sitename {
    font-size: 1.44rem;
    font-weight: 900;
    color: #ffffff;
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0,0,0,.35);
}

.si-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.35);
    border: 1.5px solid rgba(255,255,255,.30);
    border-radius: 4px;
    padding: 4px 15px;
}

.si-domain .sid-tag {
    font-size: 0.66rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.si-domain .sid-url {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .1px;
}

/* ===== BANNER ZONE ===== */
.si-bnr {
    margin: 5px 0 3px;
}
.si-bnr img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.si-nav {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-top: 3px solid var(--crimson);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

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

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

.si-zone-lbl {
    background: var(--blk);
    color: rgba(255,255,255,.88);
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 2px solid var(--crimson);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.si-cat-links a {
    font-size: .82rem;
    color: var(--txt-sub);
    padding: 4px 5px;
    border-radius: var(--radius-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.si-cat-links a:hover {
    background: var(--crimson-bg);
    color: var(--crimson);
    border-color: var(--crimson-bdr);
}

.si-cat-links a.active {
    background: var(--crimson);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.si-srch {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

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

.si-srch input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-main);
    background: var(--bg-offwhite);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.si-srch input[type="text"]:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 0 3px rgba(176,26,26,.10);
    background: var(--bg-white);
}

.si-srch button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--grad-silver);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.si-srch button:hover { filter: brightness(1.18); transform: translateY(-1px); }

.si-srch button[value="1"] {
    background: var(--grad-btn);
    color: #fff;
}

.si-srch button[value="2"] {
    background: var(--grad-btn2);
    color: #fff;
}

/* ===== HOT TAGS ===== */
.si-hotbox {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-left: 3px solid var(--crimson);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

.si-hotbox h4 {
    font-size: .79rem;
    font-weight: 800;
    color: var(--blk);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

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

.si-tag-row .si-tag {
    display: inline-block;
    background: var(--bg-offwhite);
    color: var(--txt-sub);
    border: 1px solid var(--bdr);
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}

.si-tag-row .si-tag:hover {
    background: var(--crimson);
    color: #fff;
    border-color: var(--crimson);
}

/* ===== CONTENT SECTION ===== */
.si-sect {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--radius-lg);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

.si-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--blk);
    position: relative;
}

.si-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 56px;
    height: 3px;
    background: var(--crimson);
    border-radius: 0;
}

.si-sect-hd h3 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--txt-hd);
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

.si-sect-hd h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--txt-hd);
    text-transform: uppercase;
    letter-spacing: .4px;
}

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

.si-vgrid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--bg-offwhite);
    transition: box-shadow .18s, transform .18s;
}

.si-vgrid li:hover {
    box-shadow: var(--shade3);
    transform: translateY(-2px);
    border-color: var(--bdr2);
}

.si-vthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
}

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

.si-vthumb:hover img { transform: scale(1.06); }

/* Red accent line on hover */
.si-vgrid li:hover .si-vthumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--crimson);
}

.si-vcap {
    padding: 6px 7px 8px;
    border-top: 1px solid var(--bdr);
}

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

.si-vcap h5 a { color: var(--txt-main); }
.si-vcap h5 a:hover { color: var(--crimson); }

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

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

.si-pg-row a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 600;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .15s;
}

.si-pg-row a.pgb:hover {
    background: var(--crimson-bg);
    border-color: var(--crimson);
    color: var(--crimson);
}

.si-pg-row a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--crimson);
    border: 1.5px solid var(--crimson-dk);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.si-ftr {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-top: 3px solid var(--blk);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

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

.si-flinks dd { display: inline; }

.si-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-muted);
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bdr);
    background: var(--bg-offwhite);
    text-decoration: none;
    transition: all .15s;
}

.si-flinks a:hover { color: var(--crimson); border-color: var(--crimson-bdr); }

.si-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt-muted);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.si-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-top: 4px solid var(--crimson);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
}

.si-dtl-title a {
    color: var(--crimson);
    font-weight: 700;
    margin-right: 6px;
    text-transform: uppercase;
    font-size: .9em;
    letter-spacing: .3px;
}

.si-dtl-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
    margin: 5px 0;
}

.si-capture {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.si-capture picture,
.si-capture img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

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

.si-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(176,26,26,.22);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.si-action-btn:hover {
    background: var(--crimson-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(176,26,26,.30);
}

.si-dl-hint {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.si-dl-hint a { color: var(--blk3); font-weight: 600; }
.si-dl-hint a:hover { color: var(--crimson); }

/* ===== SHARE BAR ===== */
.si-shrbar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-offwhite);
    border: 1px solid var(--bdr);
    border-left: 3px solid var(--crimson);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.si-shrbar .sshr-lbl { font-size: .77rem; color: var(--txt-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .3px; }
.si-shrbar .sshr-url { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.si-shrbar .sshr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--blk);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.si-shrbar .sshr-btn:hover { background: var(--crimson); transform: translateY(-1px); }

/* ===== VISIBILITY HELPERS ===== */
.si-pconly { display: block; }
.si-mbonly { display: none; }

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

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

    .si-sitename { font-size: 1.1rem; }
    .si-domain .sid-url { font-size: .92rem; }

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

    .si-zone-lbl {
        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;
    }

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

    .si-cat-links a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: one row no wrap */
    .si-srch form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .si-srch input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 7px;
    }

    .si-srch button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

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

    .si-vthumb { aspect-ratio: 600 / 350; }
    .si-vcap h5 { font-size: .72rem; }
    .si-sect { padding: 9px 9px 7px; }
    .si-action-btn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .si-zone-lbl { font-size: 10px; }
    .si-cat-links a { font-size: 12px; }
    .si-srch button { padding: 0 5px; font-size: .68rem; }
}
