/* Video Site Template - Adobe Clean Light Style */

:root {
    --ab-red:        #eb1000;
    --ab-red-dk:     #c50000;
    --ab-red-lt:     #ff3d2e;
    --ab-blue:       #4c6ef5;
    --ab-blue-lt:    #6e8efb;
    --ab-bg:         #f8f8f8;
    --ab-bg2:        #ffffff;
    --ab-bg3:        #f2f2f2;
    --ab-bg4:        #eaeaea;
    --ab-dark:       #1a1a1a;
    --ab-dark2:      #2c2c2c;
    --ab-dark3:      #111827;
    --ab-text:       #2c2c2c;
    --ab-text-sub:   #4a4a4a;
    --ab-text-muted: #7a7a7a;
    --ab-border:     #e0e0e0;
    --ab-border-dk:  #cccccc;
    --sh-sm: 0 1px 4px rgba(0,0,0,0.08);
    --sh-md: 0 4px 16px rgba(0,0,0,0.10);
    --sh-lg: 0 8px 32px rgba(0,0,0,0.14);
    --rd: 8px;
    --rd-lg: 12px;
    --rd-sm: 5px;
    --rd-pill: 50px;
    --ease: all 0.2s ease;
    --grad-red: linear-gradient(135deg, #eb1000 0%, #c50000 100%);
    --grad-dark: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --grad-card: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', Arial, sans-serif;
    background: var(--ab-bg);
    color: var(--ab-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.pg-header {
    background: var(--ab-bg2);
    border-bottom: 1px solid var(--ab-border);
    padding: 10px 0;
    box-shadow: var(--sh-sm);
}

.pg-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.site-logo-link { text-decoration: none; display: inline-block; }

.pg-site-name {
    font-size: 25px;
    font-weight: 900;
    color: var(--ab-dark3);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    transition: var(--ease);
}

.site-logo-link:hover .pg-site-name { color: var(--ab-red); }

.pg-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid rgba(235,16,0,0.25);
    border-radius: var(--rd-pill);
    padding: 5px 14px;
}

.pg-domain-tag {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: var(--ab-red);
    padding: 1px 7px;
    border-radius: var(--rd-pill);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pg-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--ab-dark);
    letter-spacing: 0.2px;
}

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

.wrap-section { padding: 5px 0; }

/* ===== NAV ===== */
.nav-wrap {
    background: var(--ab-bg2);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid var(--ab-border);
    box-shadow: var(--sh-sm);
}

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

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

.nav-zone-lbl {
    font-weight: 700;
    font-size: 13px;
    color: var(--ab-text-muted);
    background: var(--ab-bg3);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    border-right: 1px solid var(--ab-border);
}

.nav-zone-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
    background: var(--ab-bg2);
}

.nav-zone-links a {
    display: inline-block;
    color: var(--ab-text-sub);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--ab-bg3);
    border: 1px solid var(--ab-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

.nav-zone-links a:hover {
    background: var(--ab-red);
    color: #fff;
    border-color: var(--ab-red);
    box-shadow: 0 2px 6px rgba(235,16,0,0.25);
}

.nav-zone-links a.active {
    background: var(--ab-red);
    color: #fff;
    border-color: var(--ab-red-dk);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(235,16,0,0.3);
}

/* ===== SEARCH ===== */
.search-panel {
    background: var(--ab-bg2);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin-bottom: 5px;
    border: 1px solid var(--ab-border);
    box-shadow: var(--sh-sm);
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1.5px solid var(--ab-border-dk);
    border-radius: var(--rd-pill);
    background: var(--ab-bg);
    color: var(--ab-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-panel input[type="text"]:focus {
    border-color: var(--ab-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(235,16,0,0.1);
}

.search-panel input[type="text"]::placeholder { color: var(--ab-text-muted); }

.search-panel button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--rd-pill);
    background: var(--ab-dark3);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.search-panel button:hover {
    background: var(--ab-red);
    box-shadow: 0 3px 10px rgba(235,16,0,0.3);
}

/* ===== TAGS ===== */
.tags-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 8px 10px;
    background: var(--ab-bg2);
    border-radius: var(--rd);
    margin-bottom: 5px;
    border: 1px solid var(--ab-border);
    box-shadow: var(--sh-sm);
}

.tags-panel .tag-item {
    padding: 4px 12px;
    background: var(--ab-bg3);
    border-radius: var(--rd-pill);
    color: var(--ab-text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--ab-border-dk);
}

.tags-panel .tag-item:hover {
    background: var(--ab-dark3);
    color: #fff;
    border-color: var(--ab-dark3);
}

/* ===== SECTION HEAD ===== */
.film-section { margin-bottom: 10px; }

.film-section-hd {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ab-border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.film-section-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--ab-red);
    border-radius: 2px;
}

.film-section-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--ab-dark3);
    letter-spacing: -0.2px;
}

.film-section-title a { color: var(--ab-dark3); text-decoration: none; transition: var(--ease); }
.film-section-title a:hover { color: var(--ab-red); }

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

.film-list-grid li {
    position: relative;
    animation: abFadeUp 0.4s ease backwards;
}

.film-list-grid li:nth-child(1) { animation-delay: 0.03s; }
.film-list-grid li:nth-child(2) { animation-delay: 0.07s; }
.film-list-grid li:nth-child(3) { animation-delay: 0.11s; }
.film-list-grid li:nth-child(4) { animation-delay: 0.15s; }
.film-list-grid li:nth-child(5) { animation-delay: 0.19s; }
.film-list-grid li:nth-child(6) { animation-delay: 0.23s; }
.film-list-grid li:nth-child(7) { animation-delay: 0.27s; }
.film-list-grid li:nth-child(8) { animation-delay: 0.31s; }

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

.film-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 600 / 350;
    background: var(--ab-bg4);
    border: 1px solid var(--ab-border);
    box-shadow: var(--sh-sm);
}

.film-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.film-thumb-link:hover {
    border-color: var(--ab-red);
    box-shadow: 0 0 0 2px rgba(235,16,0,0.2), var(--sh-md);
}

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

.film-thumb-link::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 24px;
    color: rgba(255,255,255,0.95);
    z-index: 2;
    opacity: 0;
    transition: all 0.25s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.film-thumb-link:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.film-thumb-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.film-thumb-link:hover::after { opacity: 1; }

.film-meta { padding: 6px 0 0; }

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.film-meta h5 a {
    color: var(--ab-text-sub);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover { color: var(--ab-red); }

/* ===== VIDEO PLAYER ===== */
.video-wrap {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 10px;
    background: #000;
    border-radius: var(--rd-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    position: relative;
    border: 1px solid var(--ab-border);
}

.video-wrap iframe,
.video-wrap video,
.video-wrap #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--rd-lg);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--sh-lg);
    border: 1px solid var(--ab-border);
}

/* ===== TORRENT CAPTURE ===== */
.capture-block { width: 100%; }

.capture-block img,
.capture-block .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--ab-border);
    display: block;
}

.capture-block .img_item { width: 100%; }

/* ===== DOWNLOAD BUTTONS ===== */
.dl-actions {
    text-align: center;
    padding: 14px;
    background: var(--ab-bg2);
    border-radius: var(--rd);
    margin: 10px 0;
    border: 1px solid var(--ab-border);
    box-shadow: var(--sh-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--ab-dark3);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rd-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.dl-btn:hover {
    background: var(--ab-red);
    border-color: var(--ab-red);
    box-shadow: 0 4px 14px rgba(235,16,0,0.35);
    color: #fff;
}

/* ===== SHARE SECTION ===== */
.link-share-box {
    background: var(--ab-bg2);
    border-radius: var(--rd);
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid var(--ab-border);
    box-shadow: var(--sh-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-share-display {
    background: var(--ab-bg3);
    border: 1.5px solid var(--ab-border-dk);
    border-radius: var(--rd-pill);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.link-share-lbl {
    font-weight: 800;
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--ab-red);
    padding: 1px 8px;
    border-radius: var(--rd-pill);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.link-share-url {
    font-size: 12px;
    color: var(--ab-text-muted);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-share-btn {
    padding: 9px 18px;
    background: var(--ab-dark3);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.link-share-btn:hover {
    background: var(--ab-red);
    box-shadow: 0 4px 14px rgba(235,16,0,0.3);
}

.link-share-btn:active { transform: scale(0.97); }

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

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

.pg-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--rd-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.pg-btn-link {
    background: var(--ab-bg2);
    color: var(--ab-text);
    border: 1.5px solid var(--ab-border-dk);
}

.pg-btn-link:hover {
    background: var(--ab-dark3);
    border-color: var(--ab-dark3);
    color: #fff;
}

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

/* ===== FOOTER ===== */
.pg-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--ab-border);
    margin-top: 14px;
    background: var(--ab-bg2);
}

.pg-footer p { margin: 5px 0; color: var(--ab-text-muted); font-size: 12px; }
.pg-footer a { color: var(--ab-text-muted); text-decoration: none; transition: var(--ease); }
.pg-footer a:hover { color: var(--ab-red); }

/* ===== FRIENDLY LINKS ===== */
.flink-wrap {
    padding: 10px 12px;
    background: var(--ab-bg2);
    border-radius: var(--rd);
    border: 1px solid var(--ab-border);
}

.flink-wrap dl { margin: 0; }
.flink-wrap dd { display: inline-block; margin: 3px; }
.flink-wrap a { color: var(--ab-text-muted); text-decoration: none; transition: var(--ease); font-size: 13px; }
.flink-wrap a:hover { color: var(--ab-red); }

/* ===== UTILITIES ===== */
.clearfix::after { content: ''; display: table; clear: both; }

.hide_mobile { display: block; }
.hide_pc { display: block; }
@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }

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

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }
    .pg-header { padding: 7px 0; }
    .pg-site-name { font-size: 20px; }
    .pg-domain-badge { padding: 4px 10px; }
    .pg-domain-tag { font-size: 9px; }
    .pg-domain-val { font-size: 14px; }
    .wrap-section { padding: 4px 0; }

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

    .film-list-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-wrap { height: 56.25vw; max-height: 380px; margin-bottom: 10px; }
    .search-panel { padding: 7px 8px; }
    .search-panel input[type="text"] { min-width: 100px; padding: 8px 11px; font-size: 13px; }
    .search-panel button { padding: 8px 10px; font-size: 12px; }
    .film-meta h5 { font-size: 12px; }
    .film-section-title { font-size: 15px; }
    .dl-actions { padding: 9px 6px; gap: 6px; }
    .dl-btn { padding: 8px 14px; font-size: 13px; }
    .link-share-box { padding: 9px; margin: 8px 0; gap: 6px; }
    .link-share-display { padding: 7px 10px; }
    .link-share-lbl { font-size: 9px; }
    .link-share-url { font-size: 11px; }
    .link-share-btn { padding: 8px 11px; font-size: 12px; }
    .pg-btn { padding: 6px 11px; font-size: 12px; min-width: 32px; }
}

@media (max-width: 480px) {
    .pg-site-name { font-size: 18px; }
    .pg-domain-val { font-size: 13px; }
    .nav-zone-lbl { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-zone-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .search-panel input[type="text"] { min-width: 80px; font-size: 12px; }
    .search-panel button { padding: 7px 8px; font-size: 11px; }
    .dl-btn { padding: 7px 10px; font-size: 12px; }
}

@media (min-width: 769px) {
    .film-list-grid { grid-template-columns: repeat(4, 1fr); }
}
