/* Douban Music Style - Olive Green + Warm White + Art House */

:root {
    --olive:        #6b8e23;
    --olive-deep:   #556b1a;
    --olive-light:  #f0f4e8;
    --olive-pale:   #f8faf2;
    --amber:        #d4820a;
    --amber-light:  #f5a623;
    --orange-warm:  #c0540a;
    --nav-bg:       #f5f5f0;
    --nav-border:   #d8d8cc;
    --top-border:   #6b8e23;
    --body-bg:      #f9f9f6;
    --white:        #ffffff;
    --border:       #ddddd5;
    --border-lt:    #ebebе5;
    --text:         #333330;
    --text-sub:     #666660;
    --text-muted:   #aaaaaa;
    --text-link:    #3a6b00;
    --link:         #333330;
    --shadow-xs:    rgba(0,0,0,0.05);
    --shadow-sm:    rgba(0,0,0,0.09);
    --shadow-md:    rgba(0,0,0,0.14);
    --shadow-olv:   rgba(107,142,35,0.22);
    --r:            4px;
    --r-sm:         3px;
    --r-lg:         6px;
    --ease:         all 0.2s 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', Georgia, 'Noto Serif CJK SC', serif;
    background: var(--body-bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ══════════════════════════════
   SITE HEADER  — douban style
   white bg, logo left, clean
══════════════════════════════ */
.db-header {
    background: var(--white);
    border-bottom: 3px solid var(--olive);
    padding: 10px 0 8px;
}

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

.db-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-logo-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--olive);
    border-radius: var(--r);
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    font-family: Georgia, serif;
    letter-spacing: -1px;
    font-style: italic;
}

.db-site-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.5px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.db-domain-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--olive-light);
    border: 1px solid #c8d8a0;
    border-radius: var(--r);
    padding: 5px 14px;
}

.db-domain-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--olive-deep);
    letter-spacing: 1px;
    font-family: sans-serif;
}

.db-domain-txt {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Courier New', monospace;
}

/* ══════════════════════════════
   SECOND NAV ROW — douban tabs
══════════════════════════════ */
.db-topnav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: 0;
}

.db-topnav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 36px;
}

.db-topnav-inner a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    font-family: sans-serif;
    transition: var(--ease);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.db-topnav-inner a:hover,
.db-topnav-inner a.active {
    color: var(--olive);
    border-bottom-color: var(--olive);
    font-weight: 600;
}

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

.content {
    padding: 10px 0;
}

/* ══════════════════════════════
   NAVIGATION ROWS
══════════════════════════════ */
.db-nav-frame {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--olive);
    border-radius: 0 0 var(--r) var(--r);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 5px var(--shadow-xs);
}

.nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0f0ec;
}

.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: 8px 5px;
    background: var(--olive-light);
    color: var(--olive-deep);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
    border-right: 2px solid var(--olive);
    font-family: sans-serif;
}

.nav-row .nav-links {
    width: 91%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 12px;
    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: var(--r-sm);
    padding: 4px 4px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    transition: var(--ease);
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-family: sans-serif;
}

.nav-row .nav-links a:hover {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

.nav-row .nav-links a.active {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
    font-weight: 600;
}

/* ══════════════════════════════
   SEARCH BAR
══════════════════════════════ */
.db-search-area {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px var(--shadow-xs);
}

.db-search-area form {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
}

.db-search-area input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--body-bg);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
    font-family: inherit;
}

.db-search-area input[type="text"]:focus {
    border-color: var(--olive);
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(107,142,35,0.15);
}

.db-search-area input[type="text"]::placeholder {
    color: #bbb;
    font-family: sans-serif;
}

.db-search-area button {
    padding: 8px 16px;
    background: var(--olive);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    font-family: sans-serif;
}

.db-search-area button:hover {
    background: var(--olive-deep);
    box-shadow: 0 2px 8px var(--shadow-olv);
}

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

.grid-item {
    text-decoration: none;
    color: var(--text-link);
    background: var(--olive-pale);
    border: 1px solid #d0dcb0;
    border-radius: 2px;
    padding: 3px 10px;
    font-size: 12px;
    transition: var(--ease);
    font-family: sans-serif;
}

.grid-item:hover {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

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

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

/* thin olive underline accent */
.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--olive);
}

.mhlleset-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.2px;
    font-family: sans-serif;
}

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

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

/* ══════════════════════════════
   THUMBNAIL CARD GRID
   square Douban album cover style
══════════════════════════════ */
.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-sm);
    overflow: hidden;
    border: 1px solid #e8e8e0;
    transition: var(--ease);
    animation: dbFadeUp 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 dbFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2-group li:hover {
    box-shadow: 0 4px 18px var(--shadow-md);
    transform: translateY(-2px);
    border-color: #c8d8a0;
}

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

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

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

.thumbnail2::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.6);
    width: 38px;
    height: 38px;
    background: rgba(107,142,35,0.88);
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    line-height: 38px;
    text-align: center;
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
}

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

.db-card-caption {
    padding: 7px 9px 9px;
    background: var(--white);
}

.db-card-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    font-family: sans-serif;
}

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

.db-card-caption h5 a:hover {
    color: var(--olive);
}

/* ══════════════════════════════
   DETAIL TITLE BAR
══════════════════════════════ */
.db-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--olive);
    border-radius: var(--r);
    box-shadow: 0 1px 5px var(--shadow-xs);
    font-family: sans-serif;
}

.db-title-bar a {
    color: var(--olive);
    text-decoration: none;
    font-weight: 600;
    margin-right: 6px;
}

/* ══════════════════════════════
   TORRENT META PANEL
══════════════════════════════ */
.db-info-block {
    font-size: 13px;
    line-height: 2;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin: 12px 0;
    box-shadow: 0 1px 4px var(--shadow-xs);
    font-family: sans-serif;
}

/* ══════════════════════════════
   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: 12px;
    flex-wrap: nowrap;
    padding: 16px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin: 12px 0;
    box-shadow: 0 1px 4px var(--shadow-xs);
}

.down_btn {
    display: inline-block;
    padding: 9px 24px;
    background: var(--olive);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--olive);
    cursor: pointer;
    font-family: sans-serif;
}

.down_btn:hover {
    background: var(--olive-deep);
    border-color: var(--olive-deep);
    box-shadow: 0 3px 10px var(--shadow-olv);
    transform: translateY(-1px);
}

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

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

.share-label {
    font-weight: 700;
    font-size: 11px;
    color: var(--olive-deep);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: sans-serif;
}

.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: 8px 16px;
    background: var(--olive);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    font-family: sans-serif;
}

.share-copy-btn:hover {
    background: var(--olive-deep);
    box-shadow: 0 2px 8px var(--shadow-olv);
}

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    min-width: 34px;
    text-align: center;
    transition: var(--ease);
    font-family: sans-serif;
}

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

.a_page_info:hover {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

.page_info_focus {
    background: var(--olive);
    color: #fff;
    border: 1px solid var(--olive);
    font-weight: 700;
    cursor: default;
}

/* ══════════════════════════════
   FRIENDLY LINKS
══════════════════════════════ */
.txtguanggao2 {
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.txtguanggao2 dl { margin: 0; }

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

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

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

/* ══════════════════════════════
   FOOTER  — douban grey
══════════════════════════════ */
.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    background: var(--nav-bg);
}

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

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

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

/* ══════════════════════════════
   VIDEO PLAYER
══════════════════════════════ */
.MacPlayer,
.video-container {
    background: #111;
    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: #e8e8e0; }

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

    .db-header-inner { gap: 10px; }
    .db-site-name    { font-size: 18px; }
    .db-logo-glyph   { width: 28px; height: 28px; font-size: 14px; }
    .db-domain-row   { padding: 3px 9px; }
    .db-domain-lbl   { font-size: 10px; }
    .db-domain-txt   { font-size: 12px; }

    .db-topnav-inner a { padding: 0 10px; font-size: 12px; }

    /* 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 5px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 5px 2px;
        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: 14px; }

    .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: 8px 12px; font-size: 12px; }

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

/* ══════════════════════════════
   RESPONSIVE ≤480px
══════════════════════════════ */
@media (max-width: 480px) {
    .db-site-name   { font-size: 16px; }
    .db-domain-txt  { font-size: 11px; }

    .db-topnav-inner a { padding: 0 7px; font-size: 11px; }

    .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: 13px; }

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