/* Cinema Dark - Video Website Template */

:root {
    --pk: #f5a623;
    --pk-deep: #e8941a;
    --pk-dim: #c07a10;
    --tone: #1a1a2e;
    --tone2: #16213e;
    --tone3: #0f3460;
    --surface: #1e2035;
    --surface2: #252742;
    --surface3: #2d2f4a;
    --ink: #e8e9f0;
    --ink2: #b0b3c8;
    --ink3: #7a7d96;
    --rim: rgba(245, 166, 35, 0.2);
    --rim2: rgba(255,255,255,0.06);
    --rim3: rgba(255,255,255,0.1);
    --glow: 0 0 20px rgba(245, 166, 35, 0.15);
    --glow2: 0 0 40px rgba(245, 166, 35, 0.08);
    --stripe: linear-gradient(135deg, var(--pk) 0%, #ff6b35 100%);
    --stripe2: linear-gradient(135deg, var(--tone3) 0%, #1a1a3e 100%);
    --arc: 6px;
    --arc2: 10px;
    --arc3: 14px;
    --move: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --lift: 0 4px 20px rgba(0,0,0,0.4);
    --lift2: 0 8px 32px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--tone);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(15, 52, 96, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.04) 0%, transparent 40%);
    color: var(--ink);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.hd-wrap {
    background: linear-gradient(180deg, rgba(15,15,35,0.98) 0%, rgba(22,22,55,0.95) 100%);
    border-bottom: 1px solid var(--rim);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 0 rgba(245,166,35,0.1);
}

.hd-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.lk-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--move);
}

.lk-brand:hover {
    transform: scale(1.03);
}

.lk-brand::before {
    content: '▶';
    font-size: 22px;
    color: var(--pk);
    filter: drop-shadow(0 0 6px rgba(245,166,35,0.6));
}

.nm-site {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #f5a623 0%, #ff6b35 50%, #f5a623 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-transform: uppercase;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.dm-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.dm-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.15), transparent);
    animation: sweep 2.5s ease-in-out infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.dm-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--pk);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dm-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    padding: 14px 0;
}

/* ===== NAV STRIP ===== */
.nav-zone {
    background: var(--surface);
    border-radius: var(--arc2);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
}

.nav-zone::before {
    content: '';
    display: block;
    height: 2px;
    background: var(--stripe);
}

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

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

.nav-row .nav-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--pk);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--rim2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    background: rgba(245, 166, 35, 0.05);
    letter-spacing: 0.5px;
    writing-mode: horizontal-tb;
}

.nav-row .nav-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 10px;
    align-items: center;
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--ink2);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--arc);
    transition: var(--move);
    background: var(--surface3);
    border: 1px solid var(--rim2);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--pk);
    color: #111;
    border-color: var(--pk);
    box-shadow: 0 0 12px rgba(245,166,35,0.4);
    font-weight: 600;
}

.nav-row .nav-links a.active {
    background: var(--pk);
    color: #111;
    border-color: var(--pk);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245,166,35,0.4);
}

/* ===== SEARCH ===== */
.seach {
    background: var(--surface);
    border-radius: var(--arc2);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
}

.seach form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.seach input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 1px solid var(--rim3);
    border-radius: var(--arc);
    background: var(--tone2);
    color: var(--ink);
    font-size: 14px;
    transition: var(--move);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--pk);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
    background: var(--surface3);
}

.seach input[type="text"]::placeholder {
    color: var(--ink3);
}

.seach button {
    padding: 10px 16px;
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: var(--arc);
    background: var(--stripe);
    color: #111;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--move);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.seach button:hover {
    box-shadow: 0 4px 16px rgba(245,166,35,0.35);
    transform: translateY(-1px);
}

/* ===== HOT TAGS ===== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--arc2);
    margin-bottom: 14px;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
}

.grid-item {
    padding: 5px 13px;
    background: var(--surface3);
    border-radius: 14px;
    color: var(--ink2);
    text-decoration: none;
    font-size: 12px;
    transition: var(--move);
    border: 1px solid var(--rim2);
}

.grid-item:hover {
    background: rgba(245,166,35,0.15);
    color: var(--pk);
    border-color: rgba(245,166,35,0.4);
    box-shadow: 0 0 8px rgba(245,166,35,0.15);
}

/* ===== SECTION BLOCKS ===== */
.mhlleset {
    margin-bottom: 22px;
}

.mhlleset-heading {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rim2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mhlleset-heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--stripe);
    border-radius: 2px;
    flex-shrink: 0;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: var(--stripe);
}

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
    color: var(--ink);
}

.mhlleset-title a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--move);
}

.mhlleset-title a:hover {
    color: var(--pk);
}

.mhlleset-main {
    background: var(--surface);
    border-radius: var(--arc2);
    padding: 16px;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
}

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

.thumbnail2-group li {
    position: relative;
    animation: riseIn 0.5s ease backwards;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.04s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.16s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.20s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.24s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.28s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.32s; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--arc);
    aspect-ratio: 600 / 350;
    background: var(--surface3);
    border: 1px solid var(--rim2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.thumbnail2:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--pk);
}

.thumbnail2:hover img {
    transform: scale(1.08);
}

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail2:hover::after {
    opacity: 1;
}

.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 28px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    opacity: 0;
    transition: var(--move);
    text-shadow: 0 0 20px rgba(245,166,35,0.8);
}

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

.video-info {
    padding: 8px 0 2px;
}

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.video-info h5 a {
    color: var(--ink2);
    text-decoration: none;
    transition: var(--move);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info h5 a:hover {
    color: var(--pk);
}

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 18px;
    background: #000;
    border-radius: var(--arc2);
    overflow: hidden;
    box-shadow: var(--lift2), 0 0 0 1px var(--rim2);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--arc2);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--lift2);
}

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid {}

.torrent-capture-grid picture {
    display: block;
    width: 100%;
}

.torrent-capture-grid picture img,
.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--arc);
    border: 1px solid var(--rim2);
    display: block;
}

.torrent-capture-grid .img_item {
    width: 100%;
}

/* ===== DOWNLOAD BUTTONS ===== */
.download {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--arc2);
    margin: 16px 0;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.down_btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--stripe);
    color: #111;
    text-decoration: none;
    border-radius: var(--arc);
    font-weight: 700;
    font-size: 14px;
    transition: var(--move);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
    transform: translateY(-1px);
}

/* ===== SHARE SECTION ===== */
.share-box {
    background: var(--surface);
    border-radius: var(--arc2);
    padding: 12px;
    margin: 14px 0;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
}

.share-box span {
    color: var(--ink3);
    font-size: 13px;
    word-break: break-all;
}

.share-box a {
    color: var(--pk);
    text-decoration: none;
    font-weight: 600;
    transition: var(--move);
}

.share-box a:hover {
    color: var(--pk-deep);
}

.share-section {
    background: var(--surface);
    border-radius: var(--arc2);
    padding: 18px;
    margin: 18px 0;
    border: 1px solid var(--rim2);
    box-shadow: var(--lift);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-display {
    background: var(--tone2);
    border: 1px solid var(--rim2);
    border-radius: var(--arc);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--pk);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.share-copy-btn {
    padding: 11px 22px;
    background: var(--stripe);
    color: #111;
    border: 2px solid transparent;
    border-radius: var(--arc);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--move);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
    transform: translateY(-1px);
}

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

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

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--arc);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--move);
    min-width: 38px;
    text-align: center;
}

.a_page_info {
    background: var(--surface);
    color: var(--ink2);
    border: 1px solid var(--rim2);
}

.a_page_info:hover {
    background: var(--pk);
    border-color: var(--pk);
    color: #111;
    box-shadow: 0 0 12px rgba(245,166,35,0.3);
}

.page_info_focus {
    background: var(--stripe);
    color: #111;
    border: 1px solid var(--pk);
    cursor: default;
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--rim2);
    margin-top: 30px;
    background: rgba(10,10,25,0.6);
}

.footer p {
    margin: 6px 0;
    color: var(--ink3);
    font-size: 13px;
}

.footer a {
    color: var(--ink3);
    text-decoration: none;
    transition: var(--move);
}

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

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 12px;
    background: var(--surface);
    border-radius: var(--arc2);
    border: 1px solid var(--rim2);
}

.txtguanggao2 dl { margin: 0; }

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

.txtguanggao2 a {
    color: var(--ink3);
    text-decoration: none;
    transition: var(--move);
    font-size: 13px;
}

.txtguanggao2 a:hover {
    color: var(--pk);
}

/* ===== DETAIL PAGE BLOCKS ===== */
.info-panel {
    line-height: 1.8;
    text-align: center;
    padding: 18px 20px;
    font-size: 17px;
    margin: 16px 0;
    word-break: break-all;
    background: var(--surface);
    border-radius: var(--arc2);
    border: 1px solid var(--rim2);
    border-left: 3px solid var(--pk);
    box-shadow: var(--lift);
}

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

    .hd-wrap {
        padding: 0.6rem 0;
    }

    .brand-block {
        gap: 10px;
    }

    .nm-site {
        font-size: 20px;
    }

    .dm-badge {
        padding: 4px 10px;
        gap: 5px;
    }

    .dm-tag {
        font-size: 10px;
    }

    .dm-val {
        font-size: 13px;
    }

    .content {
        padding: 10px 0;
    }

    .video-container {
        height: 56.25vw;
        max-height: 400px;
        margin-bottom: 12px;
    }

    .nav-row {
        display: flex;
        align-items: stretch;
    }

    .nav-row .nav-label {
        width: 15%;
        font-size: 11px;
        padding: 8px 2px;
        text-align: center;
        word-break: break-all;
        line-height: 1.3;
    }

    .nav-row .nav-links {
        width: 85%;
        font-size: 11px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 5px;
    }

    .nav-row .nav-links a {
        padding: 4px 2px;
        margin: 0;
        font-size: 11px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .seach {
        padding: 10px;
    }

    .seach form {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .seach input[type="text"] {
        min-width: 100px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .seach button {
        padding: 9px 9px;
        font-size: 12px;
    }

    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-info {
        padding: 6px 0;
    }

    .video-info h5 {
        font-size: 12px;
    }

    .mhlleset {
        margin-bottom: 14px;
    }

    .mhlleset-heading {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .mhlleset-title {
        font-size: 16px;
    }

    .grid-container {
        padding: 10px;
        gap: 6px;
    }

    .grid-item {
        padding: 4px 10px;
        font-size: 12px;
    }

    .down_btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .download {
        padding: 12px 8px;
        margin: 12px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-section {
        padding: 12px;
        margin: 12px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 8px 10px;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 10px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

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

    .page_info_div {
        padding: 14px 0;
        gap: 5px;
    }

    .a_page_info,
    .page_info_focus {
        padding: 7px 10px;
        font-size: 12px;
        min-width: 32px;
    }

    .footer {
        padding: 18px 0;
        margin-top: 18px;
    }

    .mhlleset-main {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hd-wrap {
        padding: 0.5rem 0;
    }

    .nm-site {
        font-size: 18px;
    }

    .dm-badge {
        padding: 4px 8px;
    }

    .dm-tag {
        font-size: 9px;
    }

    .dm-val {
        font-size: 12px;
    }

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

    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .nav-row .nav-links a {
        padding: 3px 1px;
        font-size: 10px;
        width: calc((100% - 9px) / 4);
    }

    .video-container {
        height: 56.25vw;
        max-height: 300px;
        margin-bottom: 10px;
    }

    .seach input[type="text"] {
        min-width: 80px;
        padding: 8px 8px;
        font-size: 11px;
    }

    .seach button {
        padding: 8px 7px;
        font-size: 11px;
    }

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

    .video-info h5 {
        font-size: 11px;
    }

    .mhlleset-title {
        font-size: 15px;
    }

    .download {
        padding: 10px 4px;
        gap: 6px;
    }

    .down_btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .share-section {
        padding: 8px;
        margin: 10px 0;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 7px 8px;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .share-label {
        font-size: 10px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 8px 9px;
        font-size: 11px;
        gap: 4px;
        flex-shrink: 0;
    }

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

/* ===== UTILITIES ===== */
.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(--surface3);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.pd5 { padding: 5px; }
