/* Film Portal - Meitu Style: Pink/Purple Gradient Theme */

:root {
    --pk-1: #ff5c8a;
    --pk-2: #e8417a;
    --pu-1: #7b2ff7;
    --pu-2: #5a1fd1;
    --grad-hero: linear-gradient(135deg, #ff8c69 0%, #e8417a 30%, #7b2ff7 70%, #4a1fc8 100%);
    --grad-btn: linear-gradient(90deg, #ff5c8a 0%, #c451e8 100%);
    --grad-nav: linear-gradient(90deg, #e8417a 0%, #7b2ff7 100%);
    --clr-bg: #f7f5ff;
    --clr-bg-card: #ffffff;
    --clr-txt: #1a1a2e;
    --clr-txt-soft: #555577;
    --clr-txt-muted: #9999bb;
    --clr-border: #e8e0f5;
    --clr-border-lt: #f0eaff;
    --clr-shadow: rgba(123, 47, 247, 0.08);
    --clr-shadow-md: rgba(123, 47, 247, 0.18);
    --rad: 12px;
    --rad-sm: 8px;
    --rad-pill: 24px;
    --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ===== HERO HEADER ===== */
.site-header {
    background: var(--grad-hero);
    padding: 14px 0 16px;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hdr-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    font-style: normal;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    border-bottom: none;
    text-decoration: none;
}

.latest-domain-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: var(--rad-pill);
    padding: 6px 18px;
    backdrop-filter: blur(6px);
}

.domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.domain-val {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Consolas', monospace;
    text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

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

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

/* ===== NAV BOARD ===== */
.nav-board {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: 0 2px 12px var(--clr-shadow);
}

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

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

.zone-tag {
    background: var(--grad-nav);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    width: 10%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
}

.zone-links a {
    display: inline-block;
    color: var(--clr-txt-soft);
    text-decoration: none;
    padding: 5px 3px;
    border-radius: var(--rad-sm);
    font-size: 13px;
    font-weight: 500;
    transition: var(--ease);
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.zone-links a:hover {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(232, 65, 122, 0.3);
}

.zone-links a.active {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(232, 65, 122, 0.35);
}

/* ===== SEARCH ===== */
.srch-panel {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: 0 2px 10px var(--clr-shadow);
}

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

.srch-panel input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 9px 14px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--rad-pill);
    background: var(--clr-bg);
    color: var(--clr-txt);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.srch-panel input[type="text"]:focus {
    border-color: var(--pk-1);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.12);
}

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

.srch-panel button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--rad-pill);
    background: var(--grad-btn);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(232, 65, 122, 0.25);
}

.srch-panel button:hover {
    box-shadow: 0 4px 14px rgba(232, 65, 122, 0.4);
    transform: translateY(-1px);
}

/* ===== HOT TAGS ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-bg-card);
    border-radius: var(--rad);
    margin-bottom: 6px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px var(--clr-shadow);
}

.tag-item {
    padding: 4px 13px;
    background: var(--clr-bg);
    border-radius: var(--rad-pill);
    color: var(--clr-txt-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.tag-item:hover {
    background: var(--grad-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(232, 65, 122, 0.3);
}

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

.sec-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--clr-border-lt);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-head::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--grad-btn);
    border-radius: 3px;
    flex-shrink: 0;
}

.sec-ttl {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-txt);
}

.sec-ttl a {
    color: var(--clr-txt);
    text-decoration: none;
    transition: var(--ease);
}

.sec-ttl a:hover { color: var(--pk-1); }

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

.film-grid li { animation: cardIn 0.4s ease backwards; }
.film-grid li:nth-child(1) { animation-delay: 0.04s; }
.film-grid li:nth-child(2) { animation-delay: 0.08s; }
.film-grid li:nth-child(3) { animation-delay: 0.12s; }
.film-grid li:nth-child(4) { animation-delay: 0.16s; }
.film-grid li:nth-child(5) { animation-delay: 0.2s; }
.film-grid li:nth-child(6) { animation-delay: 0.24s; }
.film-grid li:nth-child(7) { animation-delay: 0.28s; }
.film-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.film-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px var(--clr-shadow);
}

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

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

.film-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123,47,247,0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.film-cover:hover::after { opacity: 1; }

.film-cover:hover {
    box-shadow: 0 6px 20px rgba(232, 65, 122, 0.25);
    border-color: rgba(255,92,138,0.4);
}

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

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

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

.film-meta h5 a:hover { color: var(--pk-1); }

/* ===== PLAYER ===== */
.player-wrap {
    width: 100%;
    height: 600px;
    background: #0a0015;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 6px 24px rgba(123, 47, 247, 0.35);
    position: relative;
}

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

.MacPlayer {
    background: #0a0015;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 6px 24px rgba(123, 47, 247, 0.3);
}

/* ===== CAPTURE AREA ===== */
.capture-area {
    width: 100%;
    margin-top: 10px;
}

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

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

/* ===== DOWNLOAD BUTTONS ===== */
.btn-row {
    text-align: center;
    padding: 14px;
    background: var(--clr-bg-card);
    border-radius: var(--rad);
    margin: 10px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px var(--clr-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-btn);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(232, 65, 122, 0.3);
}

.down_btn:hover {
    box-shadow: 0 6px 18px rgba(232, 65, 122, 0.45);
    transform: translateY(-1px);
}

/* ===== SHARE SECTION ===== */
.link-share {
    background: var(--clr-bg-card);
    border-radius: var(--rad);
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px var(--clr-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad-pill);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--pk-1);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--clr-txt-soft);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--grad-btn);
    color: #fff;
    border: none;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(232, 65, 122, 0.28);
}

.share-copy-btn:hover {
    box-shadow: 0 5px 16px rgba(232, 65, 122, 0.42);
    transform: translateY(-1px);
}

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

/* ===== DETAIL BOXES ===== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 8px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(255,92,138,0.08) 0%, rgba(123,47,247,0.08) 100%);
    border-radius: var(--rad);
    border-left: 4px solid var(--pk-1);
}

.detail-title-bar a {
    color: var(--pk-1);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.detail-info-box {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,92,138,0.06) 0%, rgba(123,47,247,0.06) 100%);
    border-radius: var(--rad);
    margin: 8px 0;
    border-left: 4px solid var(--pu-1);
}

/* ===== FRIEND LINKS ===== */
.flink-board {
    padding: 10px 14px;
    background: var(--clr-bg-card);
    border-radius: var(--rad);
    border: 1px solid var(--clr-border);
}

.flink-board dl { margin: 0; }
.flink-board dd { display: inline-block; margin: 3px 5px; }

.flink-board a {
    color: var(--clr-txt-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.flink-board a:hover { color: var(--pk-1); }

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

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

.a_page_info {
    background: var(--clr-bg-card);
    color: var(--clr-txt);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--grad-btn);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(232,65,122,0.3);
}

.page_info_focus {
    background: var(--grad-btn);
    color: #fff;
    border: 1px solid transparent;
    cursor: default;
    box-shadow: 0 3px 10px rgba(232,65,122,0.3);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 14px;
    background: var(--clr-bg-card);
}

.site-footer p { margin: 6px 0; color: var(--clr-txt-muted); font-size: 12px; }
.site-footer a { color: var(--clr-txt-muted); text-decoration: none; transition: var(--ease); }
.site-footer a:hover { color: var(--pk-1); }

/* ===== UTILITIES ===== */
.hide-mb { display: block; }
.hide-pc { display: block; }
.hide_mobile { display: block; }
.hide_pc { display: block; }

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

img[data-original] { background: var(--clr-bg); }
.cf::after { content: ""; display: table; clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }
    .sec-block { padding: 4px 0; }

    .site-header { padding: 10px 0 12px; }
    .hdr-inner { gap: 10px; }
    .brand-title { font-size: 20px; }
    .latest-domain-wrap { padding: 5px 12px; gap: 6px; }
    .domain-tag { font-size: 10px; }
    .domain-val { font-size: 16px; }

    /* Nav: 15% label + 85% links, 4 per row x 2 rows */
    .nav-strip { align-items: stretch; }
    .zone-tag { width: 15%; font-size: 10px; padding: 6px 2px; letter-spacing: 0; }
    .zone-links { width: 85%; display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 5px; }
    .zone-links a {
        width: calc((100% - 9px) / 4);
        font-size: 12px;
        padding: 4px 2px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search: single row no wrap */
    .srch-panel { padding: 8px 10px; margin-bottom: 5px; }
    .srch-panel form { flex-wrap: nowrap; gap: 5px; }
    .srch-panel input[type="text"] { min-width: 50px; padding: 8px 10px; font-size: 12px; }
    .srch-panel button { padding: 8px 10px; font-size: 12px; }

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

    .film-meta h5 { font-size: 12px; }
    .sec-ttl { font-size: 15px; }

    .player-wrap { height: 56.25vw; max-height: 360px; margin-bottom: 8px; }

    .btn-row { padding: 10px; gap: 8px; flex-wrap: nowrap; }
    .down_btn { padding: 9px 14px; font-size: 13px; }

    .link-share { padding: 10px; gap: 8px; }
    .share-url-display { padding: 8px 12px; }
    .share-copy-btn { padding: 8px 12px; font-size: 12px; }

    .nav-board { margin-bottom: 5px; }
    .tag-cloud { margin-bottom: 5px; padding: 8px 10px; }
    .film-section { margin-bottom: 5px; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 18px; }
    .domain-val { font-size: 15px; }
    .zone-tag { width: 15%; font-size: 10px; padding: 6px 2px; }
    .zone-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .zone-links a { width: calc((100% - 9px) / 4); font-size: 12px; padding: 4px 1px; }
    .srch-panel input[type="text"] { min-width: 40px; padding: 7px 8px; font-size: 11px; }
    .srch-panel button { padding: 7px 8px; font-size: 11px; }
    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .player-wrap { height: 56.25vw; max-height: 260px; }
    .down_btn { padding: 8px 10px; font-size: 12px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .zone-links a { font-size: 12px; }
}
