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

:root {
    --bg: #ffffff;
    --bg-soft: #fafaf8;
    --bg-muted: #f2f2ee;
    --orange: #d4570a;
    --orange-dk: #b84508;
    --orange-lt: #fff6f0;
    --orange2: #e8640f;
    --coral: #e05a3a;
    --teal: #1d7a6b;
    --teal-lt: #e6f4f1;
    --teal-dk: #155e52;
    --navy: #1b2b4b;
    --navy-lt: #eef0f5;
    --gold: #c8860a;
    --gold-lt: #fdf6e3;
    --txt: #1a1a1a;
    --txt2: #444444;
    --txt3: #888888;
    --border: #e4e4de;
    --border2: #ccccc6;
    --shadow1: 0 1px 4px rgba(0,0,0,.07);
    --shadow2: 0 3px 12px rgba(0,0,0,.11);
    --shadow3: 0 6px 22px rgba(0,0,0,.15);
    --radius: 4px;
    --radius2: 3px;
    --radius3: 24px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--txt);
    font-family: 'Arial','Helvetica Neue',Helvetica,sans-serif;
    line-height: 1.6;
}

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

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

/* ===== SITE HEADER ===== */
.ar-header {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow1);
}

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

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

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

/* Allrecipes-style italic orange serif logo */
.ar-site-name {
    font-size: 1.44rem;
    font-weight: 900;
    color: var(--orange);
    font-style: italic;
    font-family: Georgia,'Times New Roman',serif;
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
}

.ar-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--navy);
    border-radius: var(--radius3);
    padding: 5px 15px;
}

.ar-domain-pill .ap-tip {
    font-size: 0.67rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

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

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

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

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

.ar-zone-tag {
    background: var(--bg-muted);
    color: var(--txt3);
    font-size: .66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.ar-zone-links a {
    font-size: .8rem;
    color: var(--txt2);
    padding: 4px 4px;
    border-radius: var(--radius2);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.ar-zone-links a:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: #f5c4a8;
}

.ar-zone-links a.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ar-search-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

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

.ar-search-card input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius3);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.ar-search-card input[type="text"]:focus {
    border-color: var(--orange);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(212,87,10,.1);
}

.ar-search-card button {
    height: 38px;
    padding: 0 13px;
    border: none;
    border-radius: var(--radius3);
    background: var(--txt2);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, transform .12s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ar-search-card button:hover { background: var(--navy); transform: translateY(-1px); }

.ar-search-card button[value="1"] {
    background: var(--orange);
}
.ar-search-card button[value="1"]:hover { background: var(--orange-dk); }

.ar-search-card button[value="2"] {
    background: var(--teal);
}
.ar-search-card button[value="2"]:hover { background: var(--teal-dk); }

/* ===== HOT TAGS ===== */
.ar-hot-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.ar-hot-card h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

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

.ar-tag-row .ar-tag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--border);
    border-radius: var(--radius3);
    padding: 3px 12px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .16s;
    font-weight: 500;
}

.ar-tag-row .ar-tag:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: #f5c4a8;
    transform: translateY(-1px);
}

/* ===== CONTENT SECTION ===== */
.ar-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

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

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

.ar-sec-hd h3 {
    font-size: 1.0rem;
    font-weight: 800;
    color: var(--navy);
    font-family: Georgia,'Times New Roman',serif;
    letter-spacing: -.2px;
    line-height: 1.2;
}

.ar-sec-hd h3 a { color: var(--navy); }
.ar-sec-hd h3 a:hover { color: var(--orange); }

.ar-sec-hd h4 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--navy);
    font-family: Georgia,'Times New Roman',serif;
}

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

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

.ar-grid li:hover {
    box-shadow: var(--shadow3);
    transform: translateY(-3px);
}

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

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

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

.ar-caption {
    padding: 6px 8px 8px;
    border-top: 2px solid var(--bg-muted);
}

.ar-caption h5 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: Georgia,'Times New Roman',serif;
}

.ar-caption h5 a { color: var(--txt); }
.ar-caption h5 a:hover { color: var(--orange); }

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

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

.ar-pager-row a.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius2);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .16s;
    font-weight: 600;
}

.ar-pager-row a.ap-btn:hover {
    background: var(--orange-lt);
    border-color: var(--orange);
    color: var(--orange);
}

.ar-pager-row a.ap-btn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--orange);
    border: 1.5px solid var(--orange);
    border-radius: var(--radius2);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
}

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

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

.ar-flinks dd { display: inline; }

.ar-flinks a {
    display: inline-block;
    font-size: .74rem;
    color: var(--txt3);
    padding: 2px 10px;
    border-radius: var(--radius3);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .16s;
}

.ar-flinks a:hover {
    color: var(--orange);
    border-color: #f5c4a8;
    background: var(--orange-lt);
}

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

/* ===== DETAIL PAGES ===== */
.ar-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--orange);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    font-family: Georgia,'Times New Roman',serif;
}

.ar-dtl-title a {
    color: var(--orange);
    font-weight: 700;
    margin-right: 6px;
    font-family: Arial,sans-serif;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ar-dtl-info {
    font-size: .9rem;
    line-height: 2;
    padding: 15px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    margin: 5px 0;
    color: var(--txt2);
}

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

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

/* ===== DL BUTTONS ===== */
.ar-dl-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}

.ar-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius3);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s, box-shadow .18s;
    text-decoration: none;
    letter-spacing: .3px;
    box-shadow: 0 2px 10px rgba(212,87,10,.3);
}

.ar-dl-btn:hover {
    background: var(--orange-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(212,87,10,.4);
}

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

.ar-cli-hint a { color: var(--teal); font-weight: 600; }
.ar-cli-hint a:hover { color: var(--teal-dk); }

/* ===== SHARE ===== */
.ar-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--gold-lt);
    border: 1px solid #ead8a0;
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.ar-share-bar .as-lbl {
    font-size: .73rem;
    color: var(--txt3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ar-share-bar .as-url {
    font-size: .78rem;
    color: var(--txt2);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.ar-share-bar .as-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius3);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s, transform .12s;
    flex-shrink: 0;
}

.ar-share-bar .as-btn:hover {
    background: var(--orange-dk);
    transform: translateY(-1px);
}

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

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

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

    .ar-site-name { font-size: 1.12rem; }
    .ar-domain-pill .ap-url { font-size: .9rem; }

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

    .ar-zone-tag {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .ar-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: one row, no wrap */
    .ar-search-card form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .ar-search-card input[type="text"] {
        height: 34px;
        font-size: .75rem;
        padding: 0 8px;
    }

    .ar-search-card button {
        height: 34px;
        padding: 0 7px;
        font-size: .70rem;
    }

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

    .ar-thumb { aspect-ratio: 600 / 350; }
    .ar-caption h5 { font-size: .72rem; }
    .ar-section { padding: 10px 10px 8px; }
    .ar-dl-btn { padding: 9px 16px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .ar-zone-tag { font-size: 10px; }
    .ar-zone-links a { font-size: 12px; }
    .ar-search-card button { padding: 0 5px; font-size: .64rem; }
}
