/* AbpEdge VideoSite Template — ABP News inspired */

:root {
    --crimson:     #cc1a1a;
    --crimson-dk:  #a01212;
    --crimson-lt:  #e82020;
    --crimson-soft:#fdf0f0;
    --top-bg:      #1a0a0a;
    --nav-bg:      #ffffff;
    --nav-border:  #eeeeee;
    --white:       #ffffff;
    --bg-page:     #f2f2f2;
    --bg-white:    #ffffff;
    --bg-panel:    #f7f7f7;
    --bg-section:  #efefef;
    --txt-main:    #1a1a1a;
    --txt-sub:     #333333;
    --txt-muted:   #888888;
    --border:      #e2e2e2;
    --border-dk:   #cccccc;
    --shadow:      rgba(0,0,0,0.07);
    --shadow-md:   rgba(0,0,0,0.14);
    --rad:         4px;
    --rad-sm:      3px;
    --ease:        all 0.18s ease;
}

*, *::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', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--txt-main);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== TWO-TIER TOPBAR ===== */
/* Tier 1: dark red utility strip */
.abp-topstrip {
    background: var(--top-bg);
    padding: 0.45rem 0;
    border-bottom: 2px solid var(--crimson);
}
.abp-topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.abp-logo {
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    font-style: normal;
    white-space: nowrap;
}
.abp-logo span { color: var(--crimson-lt); }
.abp-logo:hover { opacity: 0.88; }

.abp-domain-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--crimson);
    border-radius: 20px;
    padding: 4px 14px;
    border: 1px solid var(--crimson-dk);
}
.abp-domain-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    white-space: nowrap;
}
.abp-domain-str {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

/* Tier 2: white main nav bar */
.abp-mainbar {
    background: var(--nav-bg);
    border-bottom: 2px solid var(--crimson);
    box-shadow: 0 2px 6px var(--shadow);
}
.abp-mainbar-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
}
.abp-mainbar-inner a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--txt-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--ease);
}
.abp-mainbar-inner a:first-child { color: var(--crimson); border-bottom-color: var(--crimson); }
.abp-mainbar-inner a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

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

/* ===== NAV PANEL ===== */
.abp-nav-panel {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--crimson);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px var(--shadow);
}
.abp-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.abp-nav-row:last-child { border-bottom: none; }

.abp-zone-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--crimson);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
}

.abp-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    align-items: center;
    background: var(--bg-white);
}
.abp-zone-links a {
    display: inline-block;
    color: var(--txt-sub);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}
.abp-zone-links a:hover {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson-dk);
}
.abp-zone-links a.active {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson-dk);
    font-weight: 600;
}

/* ===== SEARCH ===== */
.abp-search-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px var(--shadow);
}
.abp-search-wrap form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}
.abp-search-wrap input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    border: 1.5px solid var(--border-dk);
    border-radius: var(--rad-sm);
    background: var(--bg-panel);
    color: var(--txt-main);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
}
.abp-search-wrap input[type="text"]:focus {
    border-color: var(--crimson);
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(204,26,26,0.12);
}
.abp-search-wrap input[type="text"]::placeholder { color: var(--txt-muted); }
.abp-search-wrap button {
    padding: 8px 14px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--crimson);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}
.abp-search-wrap button:hover { background: var(--crimson-dk); }

/* ===== TAG CLOUDS ===== */
.abp-tag-band {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--crimson);
    border-radius: var(--rad);
    margin-bottom: 8px;
    box-shadow: 0 1px 4px var(--shadow);
}
.abp-tag-lnk {
    padding: 3px 11px;
    background: var(--bg-panel);
    border-radius: var(--rad-sm);
    color: var(--txt-sub);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--border);
    transition: var(--ease);
}
.abp-tag-lnk:hover {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson-dk);
}

/* ===== AD BANNER ===== */
.abp-banner {
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 8px;
}

/* ===== SECTION BLOCK ===== */
.abp-block { margin-bottom: 14px; }

.abp-block-hd {
    display: flex;
    align-items: center;
    padding-bottom: 7px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.abp-block-hd::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--crimson);
    border-radius: 2px;
    margin-right: 9px;
    flex-shrink: 0;
}
.abp-block-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--crimson);
}

.abp-block-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-main);
    margin: 0;
}
.abp-block-title a { color: inherit; text-decoration: none; }
.abp-block-title a:hover { color: var(--crimson); }

/* ===== CARD GRID ===== */
.abp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}
.abp-grid li { animation: abpRise 0.35s ease backwards; }
.abp-grid li:nth-child(1){animation-delay:0.03s}
.abp-grid li:nth-child(2){animation-delay:0.06s}
.abp-grid li:nth-child(3){animation-delay:0.09s}
.abp-grid li:nth-child(4){animation-delay:0.12s}
.abp-grid li:nth-child(5){animation-delay:0.15s}
.abp-grid li:nth-child(6){animation-delay:0.18s}
.abp-grid li:nth-child(7){animation-delay:0.21s}
.abp-grid li:nth-child(8){animation-delay:0.24s}

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

.abp-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--bg-section);
    border: 1px solid var(--border);
    box-shadow: 0 1px 5px var(--shadow);
}
.abp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
    display: block;
}
.abp-cover:hover { box-shadow: 0 4px 14px var(--shadow-md); border-color: var(--crimson); }
.abp-cover:hover img { transform: scale(1.05); }
.abp-cover::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.95);
    font-size: 24px;
    background: rgba(0,0,0,0.28);
    border-radius: var(--rad);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}
.abp-cover:hover::after { opacity: 1; }
/* Red live-style tag on hover bottom */
.abp-cover::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--crimson);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.26s ease;
}
.abp-cover:hover::before { transform: scaleX(1); }

.abp-card-cap { padding: 6px 0 0; }
.abp-card-cap h5 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--txt-sub);
}
.abp-card-cap h5 a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}
.abp-card-cap h5 a:hover { color: var(--crimson); }

/* ===== PLAYER ===== */
.MacPlayer {
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 3px 14px var(--shadow-md);
}

/* ===== DETAIL TITLE ===== */
.abp-detail-cap {
    line-height: 1.6;
    text-align: center;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    border-top: 3px solid var(--crimson);
    box-shadow: 0 1px 4px var(--shadow);
    color: var(--txt-main);
}

/* ===== TORRENT INFO ===== */
.abp-info-zone {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    border-top: 3px solid var(--crimson);
    margin: 8px 0;
    color: var(--txt-main);
    box-shadow: 0 1px 4px var(--shadow);
}
.abp-screen-zone { width: 100%; margin-top: 8px; }
.abp-screen-zone picture { display: block; width: 100%; }
.abp-screen-zone img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    border: 1px solid var(--border);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.abp-action-bar {
    text-align: center;
    padding: 12px;
    background: var(--bg-white);
    border-radius: var(--rad);
    margin: 8px 0;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    box-shadow: 0 1px 4px var(--shadow);
}
.down_btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--crimson);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.down_btn:hover {
    background: var(--crimson-dk);
    box-shadow: 0 3px 10px rgba(204,26,26,0.3);
    transform: translateY(-1px);
}

/* ===== SHARE ===== */
.abp-share-bar {
    background: var(--bg-white);
    border-radius: var(--rad);
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 4px var(--shadow);
}
.share-url-display {
    background: var(--bg-panel);
    border: 1px solid var(--border-dk);
    border-radius: var(--rad-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--txt-sub);
    white-space: nowrap;
    flex-shrink: 0;
}
.share-url {
    font-size: 11px;
    color: var(--txt-muted);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-copy-btn {
    padding: 8px 16px;
    background: var(--crimson);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.share-copy-btn:hover { background: var(--crimson-dk); }
.share-icon { font-size: 14px; }

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}
.a_page_info {
    background: var(--bg-white);
    color: var(--txt-sub);
    border: 1px solid var(--border-dk);
}
.a_page_info:hover {
    background: var(--crimson);
    border-color: var(--crimson-dk);
    color: var(--white);
}
.page_info_focus {
    background: var(--crimson);
    color: var(--white);
    border: 1px solid var(--crimson-dk);
    cursor: default;
}

/* ===== FRIEND LINKS ===== */
.abp-flink-box {
    padding: 10px 12px;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}
.abp-flink-box dl { margin: 0; }
.abp-flink-box dd { display: inline-block; margin: 3px; }
.abp-flink-box a { color: var(--crimson); text-decoration: none; font-size: 13px; font-weight: 500; }
.abp-flink-box a:hover { color: var(--crimson-dk); text-decoration: underline; }

/* ===== FOOTER ===== */
.abp-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 2px solid var(--crimson);
    margin-top: 14px;
    background: var(--top-bg);
}
.abp-footer p { margin: 4px 0; color: #999999; font-size: 12px; }
.abp-footer a { color: #999999; text-decoration: none; }
.abp-footer a:hover { color: var(--crimson-lt); }

/* ===== UTILITIES ===== */
.hide_mobile { display: block; }
.hide_pc     { display: block; }
@media (min-width: 769px) { .hide_pc { display: none !important; } }
.clearfix::after { content:''; display:table; clear:both; }
img[data-original] { background: var(--bg-section); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .abp-wrap { padding: 0 8px; }
    .abp-sec  { padding: 6px 0; }
    .abp-topstrip { padding: 0.38rem 0; }
    .abp-topstrip-inner { gap: 10px; }
    .abp-logo { font-size: 17px; }
    .abp-domain-str { font-size: 13px; }
    .abp-domain-lbl { font-size: 10px; }
    .abp-mainbar-inner a { padding: 7px 9px; font-size: 12px; }

    /* Nav: zone 15%, links 85%, 4-per-row, min 12px */
    .abp-zone-tag   { width:15%; font-size:10px; padding:6px 2px; }
    .abp-zone-links { width:85%; gap:3px; padding:6px 4px; }
    .abp-zone-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search one row, no wrap */
    .abp-search-wrap form { flex-wrap: nowrap; }
    .abp-search-wrap input[type="text"] { min-width:60px; padding:7px 8px; font-size:12px; }
    .abp-search-wrap button { padding:7px 9px; font-size:11px; }

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

    .abp-card-cap h5  { font-size:11px; }
    .abp-block-title  { font-size:14px; }
    .abp-block        { margin-bottom:10px; }

    .abp-action-bar { padding:9px 6px; gap:6px; }
    .down_btn       { padding:8px 14px; font-size:12px; }
    .abp-share-bar  { padding:9px; flex-wrap:nowrap; }
    .share-url-display { padding:7px 10px; }
    .share-copy-btn { padding:8px 10px; font-size:11px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .abp-logo { font-size:15px; }
    .abp-domain-str { font-size:12px; }
    .abp-mainbar-inner a { padding:6px 7px; font-size:11px; }
    .abp-zone-tag   { width:15%; font-size:10px; padding:5px 1px; }
    .abp-zone-links { width:85%; gap:3px; padding:5px 3px; }
    .abp-zone-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }
    .abp-search-wrap input[type="text"] { padding:6px 7px; font-size:11px; }
    .abp-search-wrap button { padding:6px 8px; font-size:11px; }
    .abp-grid { grid-template-columns:repeat(2,1fr); gap:6px; }
    .down_btn { padding:7px 10px; font-size:11px; }
    .abp-action-bar { gap:4px; }
}
