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

:root {
    /* Core palette – Criteo blue-purple */
    --indigo:      #2d1fa3;
    --indigo-dk:   #1e1470;
    --indigo-lt:   #4535c8;
    --violet:      #3d2bc0;
    --violet-lt:   #5a42e0;
    --cobalt:      #1a1a6e;
    --orange-acc:  #f05a28;
    --orange-lt:   #ff7043;
    --white:       #ffffff;
    --bg-page:     #1e1680;
    --bg-body:     #f0f2ff;

    /* Card surfaces */
    --card-glass:  rgba(255,255,255,.10);
    --card-solid:  rgba(255,255,255,.96);
    --card-hover:  rgba(255,255,255,.18);

    /* Text */
    --txt-hd:      #0f0c38;
    --txt-main:    #1a1640;
    --txt-sub:     #4a4880;
    --txt-muted:   #9896c8;
    --txt-white:   #f0eeff;
    --txt-white2:  rgba(255,255,255,.70);

    /* Borders */
    --bdr:         rgba(255,255,255,.18);
    --bdr2:        rgba(255,255,255,.32);
    --bdr-card:    #dddcf8;
    --bdr-card2:   #c8c6f0;

    /* Shadows */
    --shade1: 0 2px 8px rgba(30,20,112,.15);
    --shade2: 0 4px 18px rgba(30,20,112,.22);
    --shade3: 0 8px 32px rgba(30,20,112,.32);

    /* Gradients */
    --grad-bg:    linear-gradient(145deg, #1e1470 0%, #2d1fa3 40%, #4535c8 75%, #5a3ad4 100%);
    --grad-hd:    linear-gradient(90deg, #1e1470 0%, #2d1fa3 60%, #3d2bc0 100%);
    --grad-btn:   linear-gradient(135deg, #f05a28 0%, #ff7043 100%);
    --grad-btn2:  linear-gradient(135deg, #2d1fa3 0%, #4535c8 100%);
    --grad-acc:   linear-gradient(135deg, #4535c8 0%, #7c6cff 100%);

    --radius:    10px;
    --radius-sm: 5px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

html { font-size: 15px; }

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

a { color: var(--orange-acc); text-decoration: none; transition: color .18s; }
a:hover { color: var(--orange-lt); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cfix::after { content: ''; display: table; clear: both; }

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

/* ===== SITE HEADER ===== */
.cr-hd {
    background: var(--grad-hd);
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

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

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

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

.cr-sitename {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--orange-acc);
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    text-shadow: 0 0 18px rgba(240,90,40,.4);
}

.cr-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-glass);
    border: 1.5px solid var(--bdr2);
    border-radius: var(--radius-xl);
    padding: 4px 16px;
    backdrop-filter: blur(10px);
}

.cr-domain .crd-tag {
    font-size: 0.66rem;
    color: var(--txt-white2);
    white-space: nowrap;
}

.cr-domain .crd-url {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: .1px;
}

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

/* ===== CATEGORY NAV ===== */
.cr-nav {
    background: var(--card-glass);
    border: 1px solid var(--bdr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(14px);
}

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

.cr-nav-strip:last-child { border-bottom: none; }

.cr-zone-nm {
    background: rgba(45,31,163,.55);
    color: var(--txt-white2);
    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 var(--bdr);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cr-cat-items a {
    font-size: .82rem;
    color: var(--txt-white2);
    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;
}

.cr-cat-items a:hover {
    background: var(--card-hover);
    color: var(--white);
    border-color: var(--bdr2);
}

.cr-cat-items a.active {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(240,90,40,.35);
}

/* ===== SEARCH BAR ===== */
.cr-srch {
    background: var(--card-glass);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(14px);
}

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

.cr-srch input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--bdr2);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--white);
    background: rgba(255,255,255,.10);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.cr-srch input[type="text"]::placeholder { color: var(--txt-white2); }

.cr-srch input[type="text"]:focus {
    border-color: var(--orange-acc);
    box-shadow: 0 0 0 3px rgba(240,90,40,.18);
    background: rgba(255,255,255,.16);
}

.cr-srch button {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--bdr2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.14);
    color: var(--txt-white);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}

.cr-srch button:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }

.cr-srch button[value="1"] {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(240,90,40,.3);
}
.cr-srch button[value="1"]:hover { opacity: .9; }

.cr-srch button[value="2"] {
    background: var(--grad-acc);
    color: #fff;
    border-color: transparent;
}
.cr-srch button[value="2"]:hover { opacity: .9; }

/* ===== HOT TAGS ===== */
.cr-hotbox {
    background: var(--card-glass);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(14px);
}

.cr-hotbox h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--orange-acc);
    margin-bottom: 5px;
}

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

.cr-tag-row .cr-titem {
    display: inline-block;
    background: rgba(255,255,255,.10);
    color: var(--txt-white2);
    border: 1px solid var(--bdr);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.cr-tag-row .cr-titem:hover {
    background: var(--orange-acc);
    color: #fff;
    border-color: transparent;
}

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

.cr-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eeeeff;
    position: relative;
}

.cr-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--grad-btn);
    border-radius: 2px;
}

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

.cr-sect-hd h3 a { color: var(--txt-hd); }
.cr-sect-hd h3 a:hover { color: var(--orange-acc); }

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

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

.cr-vgrid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--bdr-card);
    background: #f6f6ff;
    transition: box-shadow .2s, transform .2s;
}

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

.cr-vthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: #eeeeff;
}

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

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

.cr-vcap {
    padding: 5px 7px 7px;
}

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

.cr-vcap h5 a { color: var(--txt-main); }
.cr-vcap h5 a:hover { color: var(--orange-acc); }

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

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

.cr-pg-row a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--card-glass);
    border: 1px solid var(--bdr2);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--txt-white);
    text-decoration: none;
    transition: all .18s;
    backdrop-filter: blur(8px);
}

.cr-pg-row a.pgb:hover {
    background: var(--card-hover);
    border-color: var(--white);
    color: var(--white);
}

.cr-pg-row a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--grad-btn);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 10px rgba(240,90,40,.35);
}

/* ===== FOOTER ===== */
.cr-ftr {
    background: var(--card-glass);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shade1);
    backdrop-filter: blur(14px);
}

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

.cr-flinks dd { display: inline; }

.cr-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-white2);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: rgba(255,255,255,.07);
    text-decoration: none;
    transition: all .18s;
}

.cr-flinks a:hover { color: var(--white); border-color: var(--bdr2); background: rgba(255,255,255,.16); }

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

/* ===== DETAIL PAGES ===== */
.cr-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--card-solid);
    border: 1px solid var(--bdr-card);
    border-top: 3px solid var(--orange-acc);
    border-radius: var(--radius);
    box-shadow: var(--shade2);
}

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

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

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

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

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

.cr-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: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(240,90,40,.32);
}

.cr-action-btn:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(240,90,40,.42);
}

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

.cr-dl-hint a { color: var(--txt-white2); font-weight: 600; }
.cr-dl-hint a:hover { color: var(--white); }

/* ===== SHARE BAR ===== */
.cr-shrbar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--card-glass);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
    backdrop-filter: blur(14px);
}

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

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

.cr-shrbar .cshr-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ===== VISIBILITY HELPERS ===== */
.cr-pcshow { display: block; }
.cr-mbshow { display: none; }

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

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

    .cr-sitename { font-size: 1.08rem; }
    .cr-domain .crd-url { font-size: .92rem; }

    .cr-nav-strip { align-items: stretch; }

    .cr-zone-nm {
        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;
    }

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

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

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

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

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

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

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

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