/* Media Portal — Nebula Studio Theme */

:root {
    --nb-white:       #ffffff;
    --nb-off-white:   #f7f8fc;
    --nb-light:       #f0f1f7;
    --nb-light-mid:   #e8eaf4;
    --nb-border:      #dde0ee;
    --nb-border-dk:   #c8cce0;

    --nb-purple:      #6c5ce7;
    --nb-purple-dk:   #5649c0;
    --nb-purple-lt:   #a29bfe;
    --nb-blue:        #4a6fa5;
    --nb-blue-lt:     #74b9ff;
    --nb-violet:      #8e44ad;

    --nb-grad-hero:   linear-gradient(135deg, #3d2b8e 0%, #6c5ce7 35%, #a855a8 70%, #c77dcd 100%);
    --nb-grad-btn:    linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --nb-grad-nav:    linear-gradient(90deg, #6c5ce7 0%, #8e44ad 100%);

    --nb-txt:         #1e1e2e;
    --nb-txt-mid:     #3d3d5c;
    --nb-txt-muted:   #7a7a9a;
    --nb-txt-dim:     #aaaacc;

    --nb-shadow-sm:   0 1px 4px rgba(108,92,231,.10);
    --nb-shadow-md:   0 3px 12px rgba(108,92,231,.15);
    --nb-shadow-lg:   0 6px 24px rgba(108,92,231,.22);
    --nb-shadow-card: 0 2px 8px rgba(30,30,46,.10);

    --r:    8px;
    --r-sm: 5px;
    --r-lg: 12px;
    --ease: all 0.22s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--nb-off-white);
    color: var(--nb-txt);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

/* ── HEADER ── */
.header {
    background: var(--nb-white);
    border-bottom: 1px solid var(--nb-border);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(108,92,231,.08);
}

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

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

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--ease);
}
.logo:hover { opacity: .85; }

.site-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 27px;
    font-weight: 800;
    color: var(--nb-txt);
    letter-spacing: -.3px;
    line-height: 1;
    background: var(--nb-grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(108,92,231,.08) 0%, rgba(162,155,254,.12) 100%);
    border-radius: 20px;
    border: 1.5px solid var(--nb-purple-lt);
}

.domain-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--nb-purple);
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
}

.domain-url {
    font-size: 17px;
    font-weight: 700;
    color: var(--nb-purple-dk);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: .2px;
}

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

/* ── NAV ── */
.nav-container {
    background: var(--nb-white);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--nb-border);
    box-shadow: var(--nb-shadow-sm);
}

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

.nav-row .nav-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--nb-white);
    background: var(--nb-grad-nav);
    white-space: nowrap;
    width: 10%;
    min-width: 56px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    letter-spacing: .2px;
}

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

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

.nav-row .nav-links a:hover {
    background: var(--nb-purple);
    color: var(--nb-white);
    border-color: var(--nb-purple);
    box-shadow: 0 2px 8px rgba(108,92,231,.3);
}

.nav-row .nav-links a.active {
    background: var(--nb-grad-btn);
    color: var(--nb-white);
    border-color: var(--nb-purple-dk);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(108,92,231,.3);
}

/* ── SEARCH ── */
.seach {
    background: var(--nb-white);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--nb-border);
    box-shadow: var(--nb-shadow-sm);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 13px;
    border: 1.5px solid var(--nb-border-dk);
    border-radius: var(--r-sm);
    background: var(--nb-off-white);
    color: var(--nb-txt);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}
.seach input[type="text"]:focus {
    border-color: var(--nb-purple);
    background: var(--nb-white);
    box-shadow: 0 0 0 3px rgba(108,92,231,.12);
}
.seach input[type="text"]::placeholder { color: var(--nb-txt-dim); }

.seach button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--nb-grad-btn);
    color: var(--nb-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .3px;
}
.seach button:hover {
    background: var(--nb-purple-dk);
    box-shadow: 0 3px 10px rgba(108,92,231,.35);
}

/* ── TAG CLOUD ── */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px;
    background: var(--nb-white);
    border-radius: var(--r);
    margin-bottom: 7px;
    border: 1px solid var(--nb-border);
}

.grid-item {
    padding: 4px 12px;
    background: var(--nb-light);
    border-radius: 20px;
    color: var(--nb-txt-mid);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--nb-border);
}
.grid-item:hover {
    background: var(--nb-purple);
    color: var(--nb-white);
    border-color: var(--nb-purple);
    box-shadow: 0 2px 8px rgba(108,92,231,.28);
}

/* ── SECTION BLOCKS ── */
.mhlleset { margin-bottom: 12px; }

.mhlleset-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--nb-border);
    position: relative;
}
.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--nb-grad-btn);
    border-radius: 2px;
}

.mhlleset-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--nb-txt);
    letter-spacing: -.2px;
}
.mhlleset-title a { color: var(--nb-txt); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--nb-purple); }

/* ── MEDIA GRID ── */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}
.thumbnail2-group li { position: relative; }

@keyframes nbFadeUp {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}
.thumbnail2-group li:nth-child(1){animation:nbFadeUp .32s ease .04s both}
.thumbnail2-group li:nth-child(2){animation:nbFadeUp .32s ease .08s both}
.thumbnail2-group li:nth-child(3){animation:nbFadeUp .32s ease .12s both}
.thumbnail2-group li:nth-child(4){animation:nbFadeUp .32s ease .16s both}
.thumbnail2-group li:nth-child(5){animation:nbFadeUp .32s ease .20s both}
.thumbnail2-group li:nth-child(6){animation:nbFadeUp .32s ease .24s both}
.thumbnail2-group li:nth-child(7){animation:nbFadeUp .32s ease .28s both}
.thumbnail2-group li:nth-child(8){animation:nbFadeUp .32s ease .32s both}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--nb-light-mid);
    border: 1px solid var(--nb-border);
    box-shadow: var(--nb-shadow-card);
}
.thumbnail2 img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .42s ease;
    display: block;
}
.thumbnail2:hover { box-shadow: var(--nb-shadow-md); }
.thumbnail2:hover img { transform: scale(1.07); }
.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61,45,142,.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .28s ease;
}
.thumbnail2:hover::after { opacity: 1; }
.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(.7);
    color: var(--nb-white);
    font-size: 26px;
    opacity: 0;
    transition: all .28s ease;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.thumbnail2:hover::before { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.video-info { padding: 6px 0 3px; }
.video-info h5 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45; }
.video-info h5 a {
    color: var(--nb-txt-mid);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-info h5 a:hover { color: var(--nb-purple); }

/* ── VIDEO PLAYER ── */
.video-container {
    width: 100%; height: 640px; max-height: 640px;
    margin-bottom: 14px;
    background: #0d0b1a;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--nb-shadow-lg);
    position: relative;
}
.video-container iframe,
.video-container video,
.video-container #video-container { width:100%; height:100%; border:none; }

.MacPlayer {
    background: #0d0b1a;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--nb-shadow-lg);
}

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

/* ── DOWNLOAD BUTTONS ── */
.download {
    text-align: center;
    padding: 14px;
    background: var(--nb-white);
    border-radius: var(--r);
    margin: 12px 0;
    border: 1px solid var(--nb-border);
    box-shadow: var(--nb-shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--nb-grad-btn);
    color: var(--nb-white);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: .3px;
}
.down_btn:hover {
    background: var(--nb-purple-dk);
    box-shadow: 0 4px 14px rgba(108,92,231,.4);
    color: var(--nb-white);
}

/* ── SHARE ── */
.share-section {
    background: var(--nb-white);
    border-radius: var(--r);
    padding: 12px 15px;
    margin: 12px 0;
    border: 1px solid var(--nb-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--nb-light);
    border: 1px solid var(--nb-border-dk);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 12px;
    color: var(--nb-txt-muted);
    font-family: 'SF Mono','Fira Code',monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 9px 16px;
    background: var(--nb-grad-btn);
    color: var(--nb-white);
    border: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .3px;
}
.share-copy-btn:hover { background: var(--nb-purple-dk); box-shadow: 0 3px 10px rgba(108,92,231,.35); }
.share-copy-btn:active { transform: scale(.97); }
.share-icon { font-size: 15px; }

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

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

.a_page_info { background: var(--nb-white); color: var(--nb-txt-mid); border: 1px solid var(--nb-border); }
.a_page_info:hover { background: var(--nb-purple); border-color: var(--nb-purple); color: var(--nb-white); box-shadow: 0 2px 8px rgba(108,92,231,.28); }
.page_info_focus { background: var(--nb-grad-btn); color: var(--nb-white); border: 1px solid var(--nb-purple-dk); cursor: default; }
.p_c { cursor: default; }

/* ── FOOTER ── */
.footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--nb-border);
    margin-top: 14px;
    background: var(--nb-white);
}
.footer p { margin: 5px 0; color: var(--nb-txt-muted); font-size: 12px; }
.footer a { color: var(--nb-txt-muted); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--nb-purple); }

.txtguanggao2 { padding: 9px; background: var(--nb-white); border-radius: var(--r); border: 1px solid var(--nb-border); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px 4px; }
.txtguanggao2 a { color: var(--nb-purple); text-decoration: none; transition: var(--ease); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--nb-violet); }
.pd5 { padding: 2px 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .header { padding: 8px 0; }
    .site-branding { gap: 10px; }
    .site-name { font-size: 22px; }
    .domain-info { padding: 4px 10px; gap: 6px; }
    .domain-label { font-size: 9px; }
    .domain-url { font-size: 15px; }
    .content { padding: 5px 0; }

    .nav-row .nav-label { width: 15%; min-width: 0; font-size: 10px; padding: 7px 3px; line-height: 1.3; }
    .nav-row .nav-links { width: 85%; font-size: 12px; gap: 4px; padding: 6px 5px; }
    .nav-row .nav-links a { padding: 4px 2px; font-size: 12px; width: calc((100% - 12px) / 4); flex-shrink: 0; flex-grow: 0; }

    .thumbnail2-group { grid-template-columns: repeat(2,1fr); gap: 9px; }
    .video-container { height: 56.25vw; max-height: 400px; margin-bottom: 10px; }
    .mhlleset { margin-bottom: 10px; }
    .mhlleset-heading { margin-bottom: 8px; padding-bottom: 6px; }
    .mhlleset-title { font-size: 16px; }

    .seach { padding: 8px; }
    .seach form { gap: 5px; }
    .seach input[type="text"] { min-width: 100px; padding: 8px 10px; font-size: 13px; }
    .seach button { padding: 8px 10px; font-size: 12px; }

    .grid-container { padding: 8px; gap: 5px; }
    .grid-item { padding: 3px 10px; font-size: 12px; }

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

    .share-section { padding: 9px; margin: 10px 0; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 8px 10px; gap: 6px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 9px 10px; font-size: 11px; flex-shrink: 0; }
    .share-icon { font-size: 13px; }

    .page_info_div { padding: 12px 0; gap: 4px; }
    .a_page_info,.page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
    .footer { padding: 13px 0; margin-top: 10px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-row .nav-links a { font-size: 14px; }
}

@media (max-width: 480px) {
    .header { padding: 6px 0; }
    .site-name { font-size: 19px; }
    .domain-info { padding: 3px 8px; gap: 5px; }
    .domain-label { font-size: 9px; }
    .domain-url { font-size: 13px; }

    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 5px 4px; }
    .nav-row .nav-links a { padding: 3px 1px; font-size: 12px; width: calc((100% - 9px) / 4); }

    .thumbnail2-group { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .video-container { height: 56.25vw; max-height: 300px; margin-bottom: 8px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }

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

    .download { padding: 8px 4px; gap: 4px; }
    .down_btn { padding: 7px 10px; font-size: 11px; }

    .share-section { padding: 7px; margin: 8px 0; gap: 5px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 8px; gap: 4px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 9px; }
    .share-copy-btn { padding: 7px 9px; font-size: 10px; gap: 3px; flex-shrink: 0; }
    .share-icon { font-size: 12px; }
}

/* ── VISIBILITY ── */
.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; } }

/* ── MISC ── */
img[data-original] { background: var(--nb-light-mid); }
.clearfix::after { content:""; display:table; clear:both; }
