/* Corporate Precision — Allianz Navy Blue & White Inspired */

:root {
    --nav: #003781;
    --nav2: #002a63;
    --nav3: #001d46;
    --nav-light: #e8eef8;
    --nav-mid: #b8c8e8;
    --sky: #0066cc;
    --sky2: #0055aa;
    --bg: #f5f7fa;
    --bg2: #ffffff;
    --bg3: #eef0f5;
    --sur: #ffffff;
    --bdr: #dde3ec;
    --bdr2: #c8d0de;
    --txt: #0d1b2e;
    --txt2: #3a4a60;
    --txt3: #8898b0;
    --wht: #ffffff;
    --shadow: 0 1px 6px rgba(0,55,129,0.07);
    --shadow2: 0 4px 20px rgba(0,55,129,0.13);
    --radius: 4px;
    --radius-sm: 3px;
    --radius-lg: 8px;
    --ease: all 0.2s ease;
    --maxw: 1060px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.az-header {
    background: var(--sur);
    border-bottom: 1px solid var(--bdr);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.az-hd-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.az-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.az-logo-lnk {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.az-logo-lnk::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--nav);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: linear-gradient(135deg, var(--nav) 0%, var(--sky) 100%);
}

.az-site-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--nav);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: 0.5px;
}

.az-domain-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--nav-light);
    border: 1px solid var(--nav-mid);
    border-radius: var(--radius);
}

.az-domain-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--nav);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.az-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--txt);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* ===================== LAYOUT ===================== */
.az-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
}

.az-sec {
    padding: 6px 0;
}

/* ===================== PROMO BANNER ===================== */
.az-banner {
    margin: 5px 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.az-banner img {
    display: block;
    width: 100%;
}

/* ===================== CATEGORY NAV ===================== */
.az-catbox {
    background: var(--sur);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: var(--shadow);
}

.az-catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--bdr);
}

.az-catrow:last-child { border-bottom: none; }

.az-zone-lbl {
    width: 10%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--wht);
    padding: 9px 4px;
    border-right: 1px solid rgba(255,255,255,0.15);
    background: var(--nav);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.az-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
    background: var(--bg);
}

.az-zone-links a {
    display: inline-block;
    color: var(--txt2);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bdr);
    background: var(--sur);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    transition: var(--ease);
}

.az-zone-links a:hover,
.az-zone-links a.active {
    background: var(--nav);
    color: var(--wht);
    border-color: var(--nav);
    box-shadow: 0 2px 8px rgba(0,55,129,0.22);
    font-weight: 600;
}

/* ===================== SEARCH ===================== */
.az-srch {
    background: var(--sur);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 12px;
    margin-bottom: 6px;
    box-shadow: var(--shadow);
}

.az-srch form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.az-srch input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 14px;
    border: 1px solid var(--bdr2);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--txt);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
    letter-spacing: 0.2px;
}

.az-srch input[type="text"]:focus {
    border-color: var(--nav);
    background: var(--sur);
    box-shadow: 0 0 0 2px rgba(0,55,129,0.12);
}

.az-srch input[type="text"]::placeholder { color: var(--txt3); }

.az-srch button {
    padding: 9px 15px;
    border: 1px solid var(--nav);
    border-radius: var(--radius-sm);
    background: var(--nav);
    color: var(--wht);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.az-srch button:hover {
    background: var(--nav2);
    border-color: var(--nav2);
    box-shadow: 0 2px 8px rgba(0,55,129,0.25);
}

/* ===================== TAG CLOUD ===================== */
.az-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    margin-bottom: 6px;
    box-shadow: var(--shadow);
}

.az-tagcloud a {
    padding: 4px 12px;
    background: var(--nav-light);
    border-radius: var(--radius-sm);
    color: var(--nav);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--nav-mid);
    transition: var(--ease);
    font-weight: 500;
}

.az-tagcloud a:hover {
    background: var(--nav);
    color: var(--wht);
    border-color: var(--nav);
}

/* ===================== SECTION BLOCKS ===================== */
.az-blk { margin-bottom: 12px; }

.az-blk-hd {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bdr);
    position: relative;
}

.az-blk-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--nav);
}

.az-blk-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt);
    letter-spacing: 0.2px;
}

.az-blk-title a {
    color: var(--txt);
    text-decoration: none;
    transition: var(--ease);
}

.az-blk-title a:hover { color: var(--nav); }

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

.az-filmgrid li {
    animation: azFade 0.36s ease backwards;
    background: var(--sur);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--bdr);
    transition: var(--ease);
}

.az-filmgrid li:hover {
    box-shadow: var(--shadow2);
    transform: translateY(-3px);
    border-color: var(--nav-mid);
}

.az-filmgrid li:nth-child(1) { animation-delay: 0.03s; }
.az-filmgrid li:nth-child(2) { animation-delay: 0.06s; }
.az-filmgrid li:nth-child(3) { animation-delay: 0.09s; }
.az-filmgrid li:nth-child(4) { animation-delay: 0.12s; }
.az-filmgrid li:nth-child(5) { animation-delay: 0.15s; }
.az-filmgrid li:nth-child(6) { animation-delay: 0.18s; }
.az-filmgrid li:nth-child(7) { animation-delay: 0.21s; }
.az-filmgrid li:nth-child(8) { animation-delay: 0.24s; }

@keyframes azFade {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.az-img-lnk {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 12 / 7;
    background: var(--bg3);
}

.az-img-lnk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.az-img-lnk:hover img { transform: scale(1.05); }

.az-img-lnk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,55,129,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.az-img-lnk:hover::after { opacity: 1; }

.az-card-body {
    padding: 8px 10px 10px;
}

.az-card-body h5 {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--txt2);
    letter-spacing: 0.1px;
}

.az-card-body h5 a {
    color: var(--txt2);
    text-decoration: none;
    transition: var(--ease);
}

.az-card-body h5 a:hover { color: var(--nav); }

/* ===================== DETAIL PAGES ===================== */
.az-detail-bar {
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    margin: 7px 0;
    word-break: break-all;
    background: var(--sur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bdr);
    border-left: 3px solid var(--nav);
    box-shadow: var(--shadow);
    line-height: 1.7;
}

.az-detail-bar a {
    color: var(--nav);
    text-decoration: none;
    font-weight: 700;
    margin-right: 7px;
}

.az-info-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 17px 20px;
    background: var(--sur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bdr);
    margin: 6px 0;
    box-shadow: var(--shadow);
    color: var(--txt2);
}

.az-preview-area { margin-top: 12px; }

.az-preview-area picture { display: block; width: 100%; }

.az-preview-area picture img,
.az-preview-area img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bdr);
}

/* ===================== ACTION BUTTONS ===================== */
.az-btnrow {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 14px 8px;
    margin: 6px 0;
    background: var(--sur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bdr);
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.az-act-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--nav);
    color: var(--wht);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--nav);
    transition: var(--ease);
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(0,55,129,0.2);
}

.az-act-btn:hover {
    background: var(--nav2);
    border-color: var(--nav2);
    box-shadow: 0 4px 14px rgba(0,55,129,0.3);
    transform: translateY(-1px);
    color: var(--wht);
}

.az-act-btn:active { transform: translateY(0); }

/* ===================== SHARE ===================== */
.az-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: var(--sur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bdr);
    margin: 6px 0;
    flex-wrap: nowrap;
    box-shadow: var(--shadow);
}

.az-share-url-box {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    border: 1px solid var(--bdr);
    overflow: hidden;
}

.az-share-lbl {
    font-size: 11px;
    color: var(--txt3);
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.az-share-url {
    font-size: 12px;
    color: var(--nav);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.az-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--nav);
    color: var(--wht);
    border: 1px solid var(--nav);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.az-share-btn:hover { background: var(--nav2); border-color: var(--nav2); }

.az-share-ico { font-size: 13px; }

/* ===================== FRIENDLY LINKS ===================== */
.az-flinks {
    padding: 10px 12px;
    background: var(--sur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bdr);
    box-shadow: var(--shadow);
}

.az-flinks dl { margin: 0; }

.az-flinks dd { display: inline-block; margin: 3px 4px; }

.az-flinks a { color: var(--txt3); text-decoration: none; transition: var(--ease); font-size: 13px; }

.az-flinks a:hover { color: var(--nav); }

/* ===================== PAGINATION ===================== */
.az-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 14px 0;
    align-items: center;
    justify-content: center;
}

.az-pgbtn,
.az-pgcur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.az-pgbtn {
    background: var(--sur);
    color: var(--txt2);
    border: 1px solid var(--bdr);
}

.az-pgbtn:hover {
    background: var(--nav);
    border-color: var(--nav);
    color: var(--wht);
    box-shadow: 0 2px 6px rgba(0,55,129,0.2);
}

.az-pgcur {
    background: var(--nav);
    color: var(--wht);
    border: 1px solid var(--nav);
    cursor: default;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,55,129,0.2);
}

/* ===================== FOOTER ===================== */
.az-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 2px solid var(--nav);
    margin-top: 16px;
    background: var(--sur);
}

.az-footer p { margin: 5px 0; color: var(--txt3); font-size: 12px; letter-spacing: 0.2px; }

.az-footer a { color: var(--txt3); text-decoration: none; transition: var(--ease); }

.az-footer a:hover { color: var(--nav); }

/* ===================== UTILITIES ===================== */
.az-clr::after { content:""; display:table; clear:both; }

.az-pconly  { display: block; }
.az-mobonly { display: block; }

img[data-original] { background: var(--bg3); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .az-wrap { padding: 0 8px; }
    .az-header { padding: 0.45rem 0; }
    .az-brand { gap: 10px; }
    .az-site-name { font-size: 18px; }
    .az-domain-val { font-size: 15px; }
    .az-domain-lbl { font-size: 10px; }
    .az-sec { padding: 5px 0; }
    .az-logo-lnk::before { width: 26px; height: 26px; }

    /* Cat nav: label 15%, links 85%, 4 per row × 2 rows */
    .az-catrow { flex-wrap: nowrap; }
    .az-zone-lbl { width: 15%; font-size: 10px; padding: 7px 2px; letter-spacing: 0; }
    .az-zone-links { width: 85%; gap: 4px; padding: 7px 4px; }
    .az-zone-links a { font-size: 12px; padding: 4px 2px; width: calc((100% - 12px) / 4); }

    /* Film grid: 2 per row on mobile */
    .az-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .az-card-body h5 { font-size: 12px; }

    .az-blk { margin-bottom: 10px; }
    .az-blk-title { font-size: 15px; }

    .az-tagcloud { padding: 8px 10px; gap: 5px; }
    .az-tagcloud a { padding: 4px 10px; font-size: 12px; }

    /* Search: force no-wrap single line */
    .az-srch { padding: 8px 10px; }
    .az-srch form { gap: 5px; flex-wrap: nowrap; }
    .az-srch input[type="text"] { min-width: 60px; font-size: 13px; padding: 7px 10px; }
    .az-srch button { padding: 7px 10px; font-size: 12px; }

    .az-btnrow { padding: 11px 6px; gap: 8px; }
    .az-act-btn { padding: 10px 18px; font-size: 13px; }

    .az-share { padding: 9px 10px; gap: 6px; }
    .az-share-url-box { padding: 6px 9px; }
    .az-share-btn { padding: 7px 11px; font-size: 12px; }

    .az-pager { padding: 10px 0; gap: 4px; }
    .az-pgbtn, .az-pgcur { padding: 6px 11px; font-size: 12px; min-width: 32px; }

    .az-footer { padding: 14px 0; margin-top: 13px; }

    .az-pconly { display: none !important; }
}

@media (max-width: 480px) {
    .az-site-name { font-size: 15px; }
    .az-domain-val { font-size: 14px; }
    .az-domain-strip { padding: 4px 10px; gap: 5px; }
    .az-logo-lnk::before { width: 22px; height: 22px; }

    .az-zone-lbl { width: 15%; font-size: 10px; padding: 6px 2px; }
    .az-zone-links { width: 85%; gap: 3px; padding: 6px 3px; }
    .az-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .az-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .az-card-body h5 { font-size: 11px; }
    .az-blk-title { font-size: 14px; }

    .az-srch input[type="text"] { font-size: 12px; padding: 7px 8px; }
    .az-srch button { padding: 7px 8px; font-size: 11px; }

    .az-act-btn { padding: 9px 14px; font-size: 12px; }
    .az-detail-bar { font-size: 13px; padding: 11px 13px; }
    .az-info-panel { padding: 13px 15px; font-size: 13px; }
}

@media (min-width: 769px) {
    .az-mobonly { display: none !important; }
    .az-filmgrid { grid-template-columns: repeat(4, 1fr); }
}
