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

:root {
    --bg-page: #eaeded;
    --bg-white: #ffffff;
    --bg-soft: #f3f3f3;
    --bg-muted: #e8e8e8;
    --navy: #131921;
    --navy2: #1a2535;
    --navy-mid: #232f3e;
    --orange: #f90;
    --orange2: #febd69;
    --orange-dk: #e47911;
    --orange-lt: #fff8ee;
    --teal: #007185;
    --teal-dk: #005f6b;
    --txt: #0f1111;
    --txt2: #333333;
    --txt3: #565959;
    --link: #007185;
    --bdr: #ddd;
    --bdr2: #c6c6c6;
    --sh1: 0 1px 3px rgba(0,0,0,.08);
    --sh2: 0 2px 8px rgba(0,0,0,.12);
    --sh3: 0 4px 16px rgba(0,0,0,.16);
    --r: 8px;
    --r2: 4px;
    --r3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.amz-topbar {
    background: var(--navy);
    padding: 9px 0;
}

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

.amz-brand-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.amz-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    letter-spacing: -.2px;
    text-decoration: none;
    border-bottom: none;
}

.amz-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy-mid);
    border: 1px solid var(--orange2);
    border-radius: 4px;
    padding: 4px 13px;
}

.amz-domain-badge .adb-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

.amz-domain-badge .adb-val {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--orange2);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.amz-hero {
    margin: 4px 0 3px;
}
.amz-hero img { border-radius: var(--r2); width: 100%; }

/* ===== CATEGORY NAV ===== */
.amz-navpanel {
    background: var(--navy-mid);
    border-radius: var(--r2);
    overflow: hidden;
    margin: 4px 0;
    border: 1px solid rgba(255,255,255,.08);
}

.amz-navline {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.07);
    min-height: 38px;
}

.amz-navline:last-child { border-bottom: none; }

.amz-zone-id {
    background: rgba(0,0,0,.3);
    color: var(--orange2);
    font-size: 10px;
    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,.07);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.amz-navset a {
    font-size: .82rem;
    color: rgba(255,255,255,.80);
    padding: 3px 6px;
    border-radius: var(--r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.amz-navset a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: var(--orange2);
    text-decoration: none;
}

.amz-navset a.active {
    background: var(--orange);
    color: var(--navy);
    border-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.amz-searchrow {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.amz-searchrow input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 2px solid var(--orange);
    border-radius: var(--r2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-white);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.amz-searchrow input[type="text"]:focus {
    border-color: var(--orange-dk);
    box-shadow: 0 0 0 3px rgba(255,153,0,.2);
}

.amz-searchrow button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--r2);
    background: var(--navy-mid);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.amz-searchrow button:hover { background: var(--navy2); }

.amz-searchrow button[value="1"] {
    background: var(--orange);
    color: var(--navy);
}
.amz-searchrow button[value="1"]:hover { background: var(--orange-dk); color: #fff; }

.amz-searchrow button[value="2"] {
    background: var(--bg-white);
    color: var(--teal);
    border: 2px solid var(--teal);
}
.amz-searchrow button[value="2"]:hover { background: #e8f5f6; }

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

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

.amz-hotlist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.amz-hotlist .amz-ht {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--bdr);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.amz-hotlist .amz-ht:hover {
    background: var(--orange-lt);
    color: var(--orange-dk);
    border-color: var(--orange);
    text-decoration: none;
}

/* ===== CONTENT SECTION ===== */
.amz-cardbox {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.amz-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.amz-card-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 32px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.amz-card-hd h3 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--txt);
}

.amz-card-hd h3 a { color: var(--txt); text-decoration: none; }
.amz-card-hd h3 a:hover { color: var(--teal); text-decoration: underline; }

.amz-card-hd h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--txt);
}

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

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

.amz-filmgrid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
}

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

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

.amz-filmthumb:hover img { transform: scale(1.04); }

.amz-filmtext {
    padding: 5px 7px 7px;
}

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

.amz-filmtext h5 a { color: var(--txt); text-decoration: none; }
.amz-filmtext h5 a:hover { color: var(--teal); text-decoration: underline; }

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

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

.amz-pagenums a.apg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1px solid var(--bdr2);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--teal);
    text-decoration: none;
    transition: all .15s;
}

.amz-pagenums a.apg:hover {
    background: var(--orange-lt);
    border-color: var(--orange);
    color: var(--orange-dk);
    text-decoration: none;
}

.amz-pagenums a.apg-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--orange);
    border: 1px solid var(--orange-dk);
    border-radius: var(--r2);
    font-size: .84rem;
    font-weight: 700;
    color: var(--navy);
    cursor: default;
}

/* ===== FOOTER ===== */
.amz-flinks-sec {
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.amz-flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.amz-flink-list dd { display: inline; }

.amz-flink-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
}

.amz-flink-list a:hover {
    color: var(--teal);
    border-color: var(--teal);
    text-decoration: none;
}

.amz-copyright {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.amz-title-strip {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--orange);
    border-radius: var(--r);
    box-shadow: var(--sh1);
}

.amz-title-strip a {
    color: var(--teal);
    font-weight: 700;
    margin-right: 6px;
    text-decoration: none;
}

.amz-title-strip a:hover { color: var(--orange-dk); text-decoration: underline; }

.amz-detail-info {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

.amz-snapview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.amz-snapview picture,
.amz-snapview img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

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

.amz-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 22px;
    background: var(--orange);
    color: var(--navy);
    border: none;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(255,153,0,.35);
}

.amz-action:hover {
    background: var(--orange-dk);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255,153,0,.4);
}

.amz-tip-line {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.amz-tip-line a { color: var(--teal); font-weight: 600; text-decoration: none; }
.amz-tip-line a:hover { color: var(--orange-dk); text-decoration: underline; }

/* ===== SHARE BAR ===== */
.amz-share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.amz-share-strip .ss-lbl { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.amz-share-strip .ss-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.amz-share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--orange);
    color: var(--navy);
    border: none;
    border-radius: 16px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.amz-share-strip .ss-btn:hover { background: var(--orange-dk); color: #fff; }

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

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

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

    .amz-sitename { font-size: 1.06rem; }
    .amz-domain-badge .adb-val { font-size: .94rem; }

    .amz-navline { align-items: stretch; }

    .amz-zone-id {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.5;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .amz-navset a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: single row, no wrap */
    .amz-searchrow form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .amz-searchrow input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 8px;
    }

    .amz-searchrow button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

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

    .amz-filmthumb { aspect-ratio: 600 / 350; }
    .amz-filmtext h5 { font-size: .72rem; }
    .amz-cardbox { padding: 9px 9px 7px; }
    .amz-action { padding: 8px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .amz-zone-id { font-size: 10px; }
    .amz-navset a { font-size: 13px; }
}

@media (max-width: 380px) {
    .amz-zone-id { font-size: 10px; }
    .amz-navset a { font-size: 12px; }
    .amz-searchrow button { padding: 0 5px; font-size: .68rem; }
}
