/* Film Portal — News Portal Theme (ABP News-inspired) */

:root {
    --abp-red:       #e8121c;
    --abp-red-dark:  #c20e17;
    --abp-red-dim:   rgba(232,18,28,0.08);
    --abp-red-mid:   rgba(232,18,28,0.14);

    --abp-black:     #111111;
    --abp-charcoal:  #1e1e1e;
    --abp-dark:      #2c2c2c;

    --bg-root:       #f2f2f2;
    --bg-card:       #ffffff;
    --bg-section:    #f7f7f7;
    --bg-input:      #f0f0f0;
    --bg-muted:      #e8e8e8;

    --ink-dark:      #111111;
    --ink-mid:       #333333;
    --ink-soft:      #666666;
    --ink-faint:     #999999;
    --ink-white:     #ffffff;

    --line:          #e0e0e0;
    --line-mid:      #cccccc;
    --line-dark:     #bbbbbb;

    --topbar-bg:     #111111;
    --topbar-text:   #f0f0f0;

    --radius-xs:     2px;
    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     12px;
    --radius-pill:   50px;

    --shadow-xs:     0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm:     0 2px 6px rgba(0,0,0,0.1);
    --shadow-md:     0 3px 12px rgba(0,0,0,0.12);
    --shadow-lg:     0 6px 24px rgba(0,0,0,0.15);

    --ease: all 0.18s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

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

/* ===================== TOPBAR ===================== */
.abp-topbar {
    background: var(--topbar-bg);
    padding: 0;
    border-bottom: 3px solid var(--abp-red);
}

.abp-topbar-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    flex-wrap: wrap;
    gap: 14px;
}

.abp-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.abp-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--ease);
}

.abp-logo-link:hover { opacity: 0.88; }

.abp-site-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--ink-white);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.abp-site-name span {
    color: var(--abp-red);
}

.abp-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    background: var(--abp-red);
    border-radius: var(--radius-sm);
    transition: var(--ease);
    border: none;
}

.abp-domain-badge:hover {
    background: var(--abp-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(232,18,28,0.35);
}

.abp-domain-tag {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 7px;
}

.abp-domain-url {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink-white);
    white-space: nowrap;
    letter-spacing: 0;
}

/* ===================== LAYOUT ===================== */
.abp-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.abp-zone {
    padding: 7px 0;
}

/* ===================== BANNER ===================== */
.abp-banner {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin: 2px 0;
    border: 1px solid var(--line);
}

.abp-banner a { display: block; line-height: 0; }
.abp-banner img { width: 100%; display: block; border-radius: var(--radius-sm); }

/* ===================== NAV ===================== */
.abp-nav-block {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.abp-nav-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}

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

.abp-nav-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-white);
    background: var(--abp-red);
    width: 10%;
    min-width: 52px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    border-right: none;
    white-space: nowrap;
    overflow: hidden;
}

.abp-nav-cats {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 9px;
    align-items: center;
    background: var(--bg-card);
}

.abp-nav-cats a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    background: var(--bg-input);
    border: 1px solid var(--line);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
    font-weight: 600;
}

.abp-nav-cats a:hover {
    background: var(--abp-red);
    color: var(--ink-white);
    border-color: var(--abp-red);
    transform: translateY(-1px);
}

.abp-nav-cats a.active {
    background: var(--abp-red);
    color: var(--ink-white);
    border-color: var(--abp-red);
    font-weight: 700;
}

/* ===================== SEARCH ===================== */
.abp-search {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 7px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.abp-search form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

.abp-search input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 9px 14px;
    border: 1.5px solid var(--line-mid);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--ink-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.abp-search input[type="text"]:focus {
    border-color: var(--abp-red);
    background: #fff;
    box-shadow: 0 0 0 2px var(--abp-red-dim);
}

.abp-search input[type="text"]::placeholder { color: var(--ink-faint); }

.abp-search button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--abp-red);
    color: var(--ink-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.abp-search button:hover {
    background: var(--abp-red-dark);
    box-shadow: 0 3px 10px rgba(232,18,28,0.28);
    transform: translateY(-1px);
}

/* ===================== TAG CLOUDS ===================== */
.abp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 11px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 7px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.abp-tag {
    padding: 4px 12px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--ease);
    border: 1px solid var(--line-mid);
}

.abp-tag:hover {
    background: var(--abp-red);
    color: var(--ink-white);
    border-color: var(--abp-red);
    transform: translateY(-1px);
}

/* ===================== SECTION HEADERS ===================== */
.abp-section {
    margin-bottom: 12px;
}

.abp-section-hd {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--abp-red);
}

.abp-section-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: var(--ink-white);
    letter-spacing: 0.01em;
    background: var(--abp-red);
    padding: 6px 16px 6px 12px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
    padding-right: 24px;
    display: inline-block;
}

.abp-section-title a {
    color: inherit;
    text-decoration: none;
}

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

.abp-grid li {
    animation: abp-in 0.38s ease backwards;
}

.abp-grid li:nth-child(1) { animation-delay: 0.02s; }
.abp-grid li:nth-child(2) { animation-delay: 0.05s; }
.abp-grid li:nth-child(3) { animation-delay: 0.08s; }
.abp-grid li:nth-child(4) { animation-delay: 0.11s; }
.abp-grid li:nth-child(5) { animation-delay: 0.14s; }
.abp-grid li:nth-child(6) { animation-delay: 0.17s; }
.abp-grid li:nth-child(7) { animation-delay: 0.20s; }
.abp-grid li:nth-child(8) { animation-delay: 0.23s; }

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

.abp-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
    text-decoration: none;
}

.abp-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--abp-red);
}

.abp-card-img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg-muted);
}

.abp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.abp-card:hover .abp-card-img img { transform: scale(1.06); }

.abp-card-img::before {
    content: 'LIVE';
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--abp-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.8px;
    z-index: 2;
    opacity: 0;
    transition: var(--ease);
}

.abp-card:hover .abp-card-img::before { opacity: 1; }

.abp-card-body {
    padding: 7px 8px 8px;
}

.abp-card-body h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--ink-dark);
}

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

.abp-card-body h5 a:hover { color: var(--abp-red); }

/* ===================== DETAIL PANELS ===================== */
.abp-headline-bar {
    background: var(--abp-charcoal);
    color: var(--ink-white);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.75;
    word-break: break-all;
    text-align: center;
    border-left: 5px solid var(--abp-red);
}

.abp-headline-bar a {
    color: var(--abp-red);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

.abp-headline-bar b { color: var(--ink-white); }

.abp-spec-box {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin: 8px 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    color: var(--ink-mid);
    border-top: 3px solid var(--abp-red);
}

.abp-img-holder {
    margin-top: 12px;
}

.abp-img-holder picture { display: block; width: 100%; }

.abp-img-holder picture img,
.abp-img-holder img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

/* ===================== ACTION BUTTONS ===================== */
.abp-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 14px 10px;
    margin: 8px 0;
    background: var(--abp-red-dim);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(232,18,28,0.15);
    box-shadow: var(--shadow-xs);
}

.abp-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--abp-red);
    color: var(--ink-white) !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: 0 2px 10px rgba(232,18,28,0.22);
    letter-spacing: 0.03em;
    font-family: inherit;
}

.abp-btn:hover {
    background: var(--abp-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232,18,28,0.3);
}

/* ===================== CLIENT LINKS ===================== */
.abp-getpc,
.abp-getmb {
    text-align: center;
    padding: 12px;
}

.abp-getpc a,
.abp-getmb a {
    color: var(--abp-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
}

.abp-getpc a:hover,
.abp-getmb a:hover { color: var(--abp-red-dark); }

/* ===================== SHARE ===================== */
.abp-sharebox {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    margin: 8px 0;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-mid);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.share-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--abp-red);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-right: 1px solid var(--line-mid);
    padding-right: 7px;
}

.share-url {
    font-size: 12px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    font-family: 'Courier New', monospace;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--abp-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--abp-red);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(232,18,28,0.25);
}

.share-icon { font-size: 14px; line-height: 1; }

/* ===================== PAGINATION ===================== */
.abp-pages {
    padding: 14px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.abp-pg-a,
.abp-pg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
    text-decoration: none;
}

.abp-pg-a {
    background: var(--bg-card);
    color: var(--ink-mid);
    border: 1.5px solid var(--line-mid);
}

.abp-pg-a:hover {
    background: var(--abp-red);
    border-color: var(--abp-red);
    color: #fff;
}

.abp-pg-cur {
    background: var(--abp-red);
    color: #fff;
    border: 1.5px solid var(--abp-red);
    cursor: default;
}

/* ===================== FOOTER ===================== */
.abp-friendlinks {
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.abp-friendlinks dl { margin: 0; }

.abp-friendlinks dd {
    display: inline-block;
    margin: 4px;
}

.abp-friendlinks a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.abp-friendlinks a:hover { color: var(--abp-red); }

.pd5 { padding: 3px 6px; }

.abp-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--abp-red);
    margin-top: 14px;
    background: var(--abp-charcoal);
}

.abp-footer p {
    margin: 5px 0;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

.abp-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--ease);
}

.abp-footer a:hover { color: var(--abp-red); }

/* ===================== UTILS ===================== */
.clearfix::after { content: ""; display: table; clear: both; }

.pc-only { display: block; }
.mb-only { display: block; }

@media (max-width: 768px) { .pc-only { display: none !important; } }
@media (min-width: 769px) { .mb-only { display: none !important; } }

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

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .abp-wrap { padding: 0 8px; }

    .abp-topbar-inner { min-height: 40px; gap: 9px; }
    .abp-brand { gap: 9px; }

    .abp-site-name    { font-size: 18px; }
    .abp-domain-badge { padding: 4px 11px; gap: 5px; }
    .abp-domain-tag   { font-size: 9px; padding-right: 5px; }
    .abp-domain-url   { font-size: 16px; }

    .abp-zone { padding: 5px 0; }

    /* Mobile nav: zone 15% / links 85% / 2×4 grid */
    .abp-nav-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        white-space: normal;
        word-break: break-all;
        overflow: visible;
    }

    .abp-nav-cats {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }

    .abp-nav-cats a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .abp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .abp-section-title { font-size: 16px; padding: 5px 20px 5px 10px; }
    .abp-card-body h5  { font-size: 12px; }

    .abp-search { padding: 9px; }
    .abp-search form { gap: 5px; }
    .abp-search input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .abp-search button { padding: 8px 9px; font-size: 12px; }

    .abp-tags { padding: 8px 9px; gap: 5px; }
    .abp-tag  { padding: 3px 10px; font-size: 12px; }

    .abp-btn-row { padding: 10px 8px; gap: 7px; }
    .abp-btn     { padding: 9px 16px; font-size: 13px; }

    .abp-sharebox      { padding: 9px; gap: 7px; margin: 7px 0; }
    .share-url-display { padding: 7px 10px; gap: 5px; }
    .share-label       { font-size: 9px; padding-right: 5px; }
    .share-url         { font-size: 10px; }
    .share-copy-btn    { padding: 7px 10px; font-size: 12px; }
    .share-icon        { font-size: 13px; }

    .abp-pg-a,
    .abp-pg-cur { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .abp-section { margin-bottom: 9px; }

    .abp-headline-bar { padding: 12px 13px; font-size: 14px; margin: 8px 0; }
    .abp-spec-box     { padding: 13px 12px; font-size: 14px; margin: 7px 0; }
}

@media (max-width: 480px) {
    .abp-topbar-inner { min-height: 36px; gap: 7px; }

    .abp-site-name    { font-size: 16px; }
    .abp-domain-badge { padding: 4px 9px; }
    .abp-domain-tag   { font-size: 9px; }
    .abp-domain-url   { font-size: 14px; }

    .abp-nav-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .abp-nav-cats {
        width: 85%;
        gap: 3px;
        padding: 5px 4px;
    }

    .abp-nav-cats a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .abp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .abp-search input[type="text"] { min-width: 70px; padding: 7px 8px; font-size: 12px; }
    .abp-search button { padding: 7px 7px; font-size: 11px; }

    .abp-section-title { font-size: 15px; }
    .abp-btn { padding: 8px 13px; font-size: 12px; }

    .abp-sharebox   { padding: 7px; gap: 5px; }
    .share-copy-btn { padding: 6px 9px; font-size: 11px; }
}

@media (min-width: 769px) {
    .abp-grid      { grid-template-columns: repeat(4, 1fr); }
    .abp-nav-label { font-size: 14px; }
    .abp-nav-cats a { font-size: 13px; }
}
