/* YingJieSheng Style - White + Yellow Modern Template */

:root {
    --yellow:       #ffb800;
    --yellow-deep:  #e6a500;
    --yellow-light: #fff8e6;
    --yellow-pale:  #fffdf5;
    --orange:       #ff8c00;
    --body-bg:      #f7f8fa;
    --white:        #ffffff;
    --border:       #e8eaed;
    --border-lt:    #f0f2f5;
    --text:         #1a1a2e;
    --text-sub:     #4a4a6a;
    --text-muted:   #9a9ab0;
    --link:         #2c2c4e;
    --shadow-xs:    rgba(0,0,0,0.05);
    --shadow-sm:    rgba(0,0,0,0.08);
    --shadow-md:    rgba(0,0,0,0.12);
    --shadow-yel:   rgba(255,184,0,0.25);
    --r:            10px;
    --r-sm:         6px;
    --r-lg:         14px;
    --ease:         all 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

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

/* ══════════════════════════════
   TOP HEADER / BRANDING
══════════════════════════════ */
.yjs-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

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

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

.yjs-brand-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

.yjs-brand-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 1px;
    position: relative;
}

.yjs-brand-name::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
    opacity: 0.6;
}

.yjs-domain-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--yellow-light);
    border: 1.5px solid var(--yellow);
    border-radius: 20px;
    padding: 5px 14px;
}

.yjs-domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.8px;
}

.yjs-domain-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Courier New', monospace;
}

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

.content {
    padding: 10px 0;
}

/* ══════════════════════════════
   NAVIGATION ROWS
══════════════════════════════ */
.yjs-nav-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--yellow);
    border-radius: 0 0 var(--r) var(--r);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

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

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

.nav-row .nav-label {
    width: 9%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    background: var(--yellow-light);
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
    border-right: 2px solid var(--yellow);
}

.nav-row .nav-links {
    width: 91%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
    background: var(--white);
}

.nav-row .nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-sub);
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 4px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    transition: var(--ease);
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--shadow-yel);
}

.nav-row .nav-links a.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--shadow-yel);
}

/* ══════════════════════════════
   SEARCH BAR
══════════════════════════════ */
.yjs-search-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

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

.yjs-search-box input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 16px;
    border: 2px solid var(--yellow);
    border-radius: var(--r-sm);
    background: var(--yellow-pale);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
    font-family: inherit;
}

.yjs-search-box input[type="text"]:focus {
    border-color: var(--yellow-deep);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--shadow-yel);
}

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

.yjs-search-box button {
    padding: 9px 18px;
    background: var(--yellow);
    color: var(--text);
    border: none;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.yjs-search-box button:hover {
    background: var(--yellow-deep);
    box-shadow: 0 3px 10px var(--shadow-yel);
}

/* ══════════════════════════════
   HOT TAGS
══════════════════════════════ */
.grid-container {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

.grid-item {
    text-decoration: none;
    color: var(--text-sub);
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    transition: var(--ease);
}

.grid-item:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text);
    font-weight: 600;
}

/* ══════════════════════════════
   SECTION HEADING
══════════════════════════════ */
.mhlleset {
    margin-bottom: 20px;
}

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

.mhlleset-heading::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: var(--yellow);
    border-radius: 3px;
    flex-shrink: 0;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--yellow);
    border-radius: 1px;
}

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

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

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

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

.thumbnail2-group li {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border-lt);
    transition: var(--ease);
    animation: yjsFadeUp 0.4s ease both;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.03s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.06s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.09s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.15s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.18s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.21s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.24s; }

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

.thumbnail2-group li:hover {
    box-shadow: 0 6px 20px var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--yellow);
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: #f0f0f0;
}

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

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

.thumbnail2::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.6);
    width: 40px;
    height: 40px;
    background: rgba(255,184,0,0.92);
    border-radius: 50%;
    color: var(--text);
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
}

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

.yjs-card-info {
    padding: 8px 10px 10px;
}

.yjs-card-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.yjs-card-info h5 a {
    color: var(--link);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}

.yjs-card-info h5 a:hover {
    color: var(--orange);
}

/* ══════════════════════════════
   DETAIL TITLE BAR
══════════════════════════════ */
.yjs-detail-bar {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--yellow-light);
    border: 1.5px solid var(--yellow);
    border-radius: var(--r);
    box-shadow: 0 2px 10px var(--shadow-yel);
}

.yjs-detail-bar a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

/* ══════════════════════════════
   TORRENT META PANEL
══════════════════════════════ */
.yjs-torrent-info {
    font-size: 14px;
    line-height: 2;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin: 12px 0;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

/* ══════════════════════════════
   TORRENT CAPTURE IMAGE
══════════════════════════════ */
.torrent-capture-grid {
    margin-top: 12px;
}

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

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

/* ══════════════════════════════
   DOWNLOAD BUTTONS
══════════════════════════════ */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    padding: 18px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin: 12px 0;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

.down_btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--yellow);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid var(--yellow);
    cursor: pointer;
}

.down_btn:hover {
    background: var(--yellow-deep);
    border-color: var(--yellow-deep);
    box-shadow: 0 4px 14px var(--shadow-yel);
    transform: translateY(-1px);
}

/* ══════════════════════════════
   SHARE SECTION
══════════════════════════════ */
.share-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px var(--shadow-xs);
}

.share-url-display {
    background: var(--yellow-pale);
    border: 1.5px solid var(--yellow);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--orange);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--yellow);
    color: var(--text);
    border: none;
    border-radius: var(--r-sm);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--yellow-deep);
    box-shadow: 0 3px 10px var(--shadow-yel);
}

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

/* ══════════════════════════════
   PAGINATION
══════════════════════════════ */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 18px 0;
}

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

.a_page_info {
    background: var(--white);
    color: var(--text-sub);
    border: 1px solid var(--border);
}

.a_page_info:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text);
    font-weight: 700;
}

.page_info_focus {
    background: var(--yellow);
    color: var(--text);
    border: 1.5px solid var(--yellow);
    font-weight: 800;
    cursor: default;
    box-shadow: 0 2px 8px var(--shadow-yel);
}

/* ══════════════════════════════
   FRIENDLY LINKS
══════════════════════════════ */
.txtguanggao2 {
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 1px 4px var(--shadow-xs);
}

.txtguanggao2 dl { margin: 0; }

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

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

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

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
    padding: 22px 0;
    text-align: center;
    border-top: 2px solid var(--yellow-light);
    margin-top: 26px;
    background: var(--white);
}

.footer p {
    margin: 5px 0;
    color: var(--text-muted);
    font-size: 12px;
}

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

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

/* ══════════════════════════════
   VIDEO PLAYER
══════════════════════════════ */
.MacPlayer,
.video-container {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px var(--shadow-md);
}

.video-container {
    width: 100%;
    height: 580px;
    max-height: 580px;
    position: relative;
}

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

/* ══════════════════════════════
   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: #f0f0f0; }

/* ══════════════════════════════
   RESPONSIVE ≤900px
══════════════════════════════ */
@media (max-width: 900px) {
    .thumbnail2-group {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

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

    .yjs-header-inner { gap: 10px; }

    .yjs-brand-name {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .yjs-domain-pill { padding: 4px 10px; }
    .yjs-domain-tag  { font-size: 10px; }
    .yjs-domain-val  { font-size: 13px; }

    /* Mobile nav: label 15% / links 85% / 4 per row × 2 rows */
    .nav-row { align-items: stretch; }

    .nav-row .nav-label {
        width: 15%;
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 2px;
        word-break: break-all;
        white-space: normal;
        line-height: 1.3;
        letter-spacing: 0;
    }

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

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 5px 2px;
        border-radius: 12px;
        /* 4 per row: 3 gaps × 3px = 9px */
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

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

    .video-container {
        height: 56.25vw;
        max-height: 360px;
    }

    .share-section    { padding: 10px; gap: 7px; }
    .share-url-display { padding: 7px 10px; }

    .download { padding: 12px 8px; gap: 8px; flex-wrap: nowrap; }
    .down_btn { padding: 9px 14px; font-size: 13px; }

    .page_info_div { padding: 12px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 10px; font-size: 12px; min-width: 30px; }
}

/* ══════════════════════════════
   RESPONSIVE ≤480px
══════════════════════════════ */
@media (max-width: 480px) {
    .yjs-brand-name { font-size: 17px; }
    .yjs-domain-val { font-size: 12px; }

    .nav-row .nav-label {
        width: 15%;
        font-size: 12px;
        padding: 5px 2px;
        word-break: break-all;
        white-space: normal;
    }

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

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

    .video-container { height: 56.25vw; max-height: 260px; }
    .mhlleset-title  { font-size: 14px; }

    .share-url    { font-size: 10px; }
    .share-label  { font-size: 10px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
}
