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

:root {
    --bg-page:    #f5f5f5;
    --bg-white:   #ffffff;
    --bg-light:   #fafafa;
    --bg-card:    #ffffff;

    --red:        #d9390b;
    --red-dk:     #b52e06;
    --red-lt:     #f05030;
    --red-bg:     #fff2ee;
    --red-bdr:    #f5c4b8;

    --navy:       #1b3a6b;
    --navy-dk:    #122a50;
    --navy-lt:    #2a5298;
    --teal:       #1a7a78;

    --txt-hd:     #1a1a1a;
    --txt-main:   #2c2c2c;
    --txt-sub:    #555555;
    --txt-muted:  #999999;
    --bdr:        #e0e0e0;
    --bdr2:       #cccccc;

    --shade1: 0 1px 4px rgba(0,0,0,.07);
    --shade2: 0 3px 12px rgba(0,0,0,.10);
    --shade3: 0 6px 22px rgba(0,0,0,.14);

    --grad-hd:    linear-gradient(90deg, #1b3a6b 0%, #2a5298 100%);
    --grad-red:   linear-gradient(135deg, #d9390b 0%, #f05030 100%);
    --grad-navy:  linear-gradient(135deg, #1b3a6b 0%, #2a5298 100%);
    --grad-teal:  linear-gradient(135deg, #1a7a78 0%, #2aadaa 100%);

    --radius:    8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
}

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(--red); text-decoration: none; transition: color .18s; }
a:hover { color: var(--red-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.arfix::after { content: ''; display: table; clear: both; }

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

/* ===== SITE HEADER ===== */
.ar-hd {
    background: var(--bg-white);
    border-bottom: 3px solid var(--navy);
    padding: 10px 0;
    box-shadow: var(--shade1);
}

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

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

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

.ar-sitename {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--red);
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
}

.ar-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    border-radius: 22px;
    padding: 4px 15px;
}

.ar-domain .ard-tag {
    font-size: 0.66rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.ar-domain .ard-url {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: .2px;
}

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

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

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

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

.ar-zone-tag {
    background: var(--navy);
    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: 1px solid rgba(255,255,255,.12);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.ar-cat-row a:hover {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red-bdr);
}

.ar-cat-row a.active {
    background: var(--red);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

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

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

.ar-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-light);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ar-srch input[type="text"]:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(217,57,11,.10);
    background: var(--bg-white);
}

.ar-srch button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--txt-sub);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}

.ar-srch button:hover { background: var(--txt-hd); transform: translateY(-1px); }

.ar-srch button[value="1"] {
    background: var(--grad-red);
    color: #fff;
}
.ar-srch button[value="1"]:hover { background: var(--red-dk); }

.ar-srch button[value="2"] {
    background: var(--grad-navy);
    color: #fff;
}
.ar-srch button[value="2"]:hover { background: var(--navy-dk); }

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

.ar-tags h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ar-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ar-tag-cloud .ar-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--txt-sub);
    border: 1px solid var(--bdr);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.ar-tag-cloud .ar-tag:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ===== CONTENT SECTION ===== */
.ar-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);
}

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

.ar-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 52px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

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

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

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

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

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

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

.ar-vcover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-page);
}

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

.ar-vcover:hover img { transform: scale(1.06); }

.ar-vcap {
    padding: 5px 7px 7px;
    border-top: 2px solid transparent;
    transition: border-color .2s;
}

.ar-vgrid li:hover .ar-vcap {
    border-top-color: var(--red);
}

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

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

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

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

.ar-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;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .18s;
}

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

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

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

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

.ar-flinks dd { display: inline; }

.ar-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-light);
    text-decoration: none;
    transition: all .18s;
}

.ar-flinks a:hover { color: var(--red); border-color: var(--red-bdr); }

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

/* ===== DETAIL PAGES ===== */
.ar-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: 3px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
}

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

.ar-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;
}

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

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

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

.ar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--grad-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(217,57,11,.20);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ar-action-btn:hover {
    background: var(--red-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(217,57,11,.28);
}

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

.ar-dl-hint a { color: var(--navy); font-weight: 600; }
.ar-dl-hint a:hover { color: var(--red); }

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

.ar-shrbar .shb-lbl { font-size: .77rem; color: var(--txt-muted); white-space: nowrap; }
.ar-shrbar .shb-url { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.ar-shrbar .shb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.ar-shrbar .shb-btn:hover { background: var(--red); transform: translateY(-1px); }

/* ===== VISIBILITY HELPERS ===== */
.ar-deskonly { display: block; }
.ar-mobionly { display: none; }

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

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

    .ar-sitename { font-size: 1.08rem; }
    .ar-domain .ard-url { font-size: .92rem; }

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

    .ar-zone-tag {
        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;
    }

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

    .ar-cat-row 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 */
    .ar-srch form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

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

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

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