/* Video Site — Microsoft Teams Soft Style */

:root {
    --tm-blue:      #5b5fc7;
    --tm-blue-dk:   #4a4db5;
    --tm-blue-lt:   #eef0ff;
    --tm-blue-mid:  #7b7fde;
    --tm-indigo:    #464775;
    --tm-text-dk:   #201f37;
    --tm-text:      #3b3a52;
    --tm-muted:     #717094;
    --tm-faint:     #a8a8c0;
    --tm-bg:        #eceef8;     /* Teams hero bg colour */
    --tm-bg-card:   #ffffff;
    --tm-bg-soft:   #f5f5fc;
    --tm-bg-panel:  #dde1f5;     /* Teams lower section bg */
    --tm-border:    #dddcee;
    --tm-border-md: #c8c6e0;
    --sh-xs:        0 1px 4px rgba(91,95,199,0.07);
    --sh-sm:        0 2px 10px rgba(91,95,199,0.10);
    --sh-md:        0 4px 20px rgba(91,95,199,0.13);
    --sh-lg:        0 8px 32px rgba(91,95,199,0.18);
    --r:            10px;
    --r-sm:         7px;
    --r-xs:         4px;
    --r-pill:       999px;
    --ease:         all 0.22s cubic-bezier(0.4,0,0.2,1);
    --grad:         linear-gradient(135deg,#5b5fc7 0%,#7b7fde 100%);
}

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

body {
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',
                 'Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif;
    background: var(--tm-bg);
    color: var(--tm-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ─ TOPBAR ─────────────────────────────────── */
.tm-topbar {
    background: var(--tm-bg-card);
    border-bottom: 1px solid var(--tm-border);
    padding: 0.5rem 0;
    box-shadow: var(--sh-xs);
}

.tm-topbar-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.tm-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: var(--ease);
}
.tm-logo-link:hover { opacity: 0.82; }

.tm-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--grad);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(91,95,199,0.30);
}

.tm-logo-icon::after {
    content: '▶';
    color: #fff;
    font-size: 12px;
    margin-left: 2px;
}

.tm-sitename {
    font-size: 21px;
    font-weight: 800;
    color: var(--tm-indigo);
    letter-spacing: -0.2px;
}

.tm-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--tm-blue-lt);
    border: 1.5px solid var(--tm-blue-mid);
    border-radius: var(--r-pill);
    padding: 5px 15px;
}

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

.tm-domain-url {
    font-size: 18px;
    font-weight: 800;
    color: var(--tm-blue-dk);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

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

.tm-row { padding: 7px 0; }

/* ─ PROMO BANNER ─────────────────────────────── */
.tm-banner {
    width: 100%;
    overflow: hidden;
    margin: 3px 0;
    border-radius: var(--r-sm);
    box-shadow: var(--sh-xs);
}
.tm-banner a { display: block; }
.tm-banner img { width: 100%; display: block; }

/* ─ CATEGORY NAV ─────────────────────────────── */
.tm-nav-panel {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 7px;
    box-shadow: var(--sh-xs);
}

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

.tm-zone-chip {
    font-size: 12px;
    font-weight: 700;
    color: var(--tm-bg-card);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--grad);
}

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

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

.tm-zone-links a:hover {
    background: var(--tm-blue);
    color: #fff;
    border-color: var(--tm-blue);
    box-shadow: 0 2px 8px rgba(91,95,199,0.25);
}

.tm-zone-links a.active {
    background: var(--tm-blue);
    color: #fff;
    border-color: var(--tm-blue);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(91,95,199,0.28);
}

/* ─ SEARCH ───────────────────────────────────── */
.tm-search {
    background: var(--tm-bg-card);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--tm-border);
    box-shadow: var(--sh-xs);
}

.tm-search form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.tm-search input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 14px;
    border: 1.5px solid var(--tm-border-md);
    border-radius: var(--r-pill);
    background: var(--tm-bg-soft);
    color: var(--tm-text-dk);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.tm-search input[type="text"]:focus {
    border-color: var(--tm-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91,95,199,0.12);
}

.tm-search input[type="text"]::placeholder { color: var(--tm-faint); }

.tm-search button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.tm-search button:hover {
    background: var(--tm-blue-dk);
    box-shadow: 0 4px 14px rgba(91,95,199,0.30);
}

/* ─ TAG CLOUD ────────────────────────────────── */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--tm-bg-card);
    border-radius: var(--r);
    margin-bottom: 7px;
    border: 1px solid var(--tm-border);
    box-shadow: var(--sh-xs);
}

.grid-item {
    padding: 4px 12px;
    background: var(--tm-blue-lt);
    border-radius: var(--r-pill);
    color: var(--tm-blue);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid #cfd1f0;
    font-weight: 500;
}

.grid-item:hover {
    background: var(--tm-blue);
    color: #fff;
    border-color: var(--tm-blue);
    box-shadow: 0 2px 8px rgba(91,95,199,0.20);
}

/* ─ CONTENT SECTIONS ────────────────────────── */
.mhlleset { margin-bottom: 14px; }
.mhlleset-main { /* wrap */ }

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

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

.mhlleset-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--tm-text-dk);
}

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

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

.thumbnail2-group li {
    animation: tmSlide 0.38s 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 tmSlide {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--tm-bg-soft);
    border: 1px solid var(--tm-border);
    box-shadow: var(--sh-xs);
}

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

.thumbnail2:hover {
    box-shadow: var(--sh-md);
    border-color: var(--tm-blue-mid);
}
.thumbnail2:hover img { transform: scale(1.06); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(70,71,117,0.55) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.thumbnail2:hover::after { opacity: 1; }

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

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

.video-info h5 a {
    color: var(--tm-text);
    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(--tm-blue); }

/* ─ VIDEO PLAYER ─────────────────────────────── */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    position: relative;
}

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

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

/* ─ TORRENT CAPTURE ──────────────────────────── */
.torrent-capture-grid { /* wrapper */ }

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

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

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

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    background: var(--tm-blue-dk);
    box-shadow: 0 6px 16px rgba(91,95,199,0.32);
}

/* ─ SHARE ────────────────────────────────────── */
.share-section {
    background: var(--tm-bg-card);
    border-radius: var(--r);
    padding: 13px 15px;
    margin: 12px 0;
    border: 1px solid var(--tm-border);
    box-shadow: var(--sh-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--tm-bg-soft);
    border: 1px solid var(--tm-border-md);
    border-radius: var(--r-pill);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 9px 17px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: var(--r-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;
}

.share-copy-btn:hover {
    background: var(--tm-blue-dk);
    box-shadow: 0 4px 12px rgba(91,95,199,0.28);
}
.share-copy-btn:active { transform: scale(0.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-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--tm-bg-card);
    color: var(--tm-text);
    border: 1px solid var(--tm-border-md);
}
.a_page_info:hover {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(91,95,199,0.20);
}

.page_info_focus {
    background: var(--grad);
    color: #fff;
    border: 1px solid var(--tm-blue);
    cursor: default;
    box-shadow: 0 2px 8px rgba(91,95,199,0.22);
}

/* ─ FOOTER ───────────────────────────────────── */
.tm-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--tm-border);
    margin-top: 18px;
    background: var(--tm-bg-card);
}

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

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

.tm-linkbox {
    padding: 10px 12px;
    background: var(--tm-bg-card);
    border-radius: var(--r);
    border: 1px solid var(--tm-border);
}
.tm-linkbox dl  { margin:0; }
.tm-linkbox dd  { display:inline-block; margin:3px 4px; }
.tm-linkbox a   { color:var(--tm-muted); text-decoration:none; font-size:13px; transition:var(--ease); }
.tm-linkbox a:hover { color:var(--tm-blue); }

/* ─ SHOW/HIDE ────────────────────────────────── */
.hide_mobile { display: block; }
.hide_pc     { display: block; }

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
    .thumbnail2-group { grid-template-columns: repeat(4,1fr); }
}

/* ─ CLEARFIX ─────────────────────────────────── */
.clearfix::after { content:""; display:table; clear:both; }
img[data-original] { background: var(--tm-bg-soft); }

/* ══ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 768px) {
    .tm-wrap { padding: 0 8px; }
    .tm-topbar { padding: 0.38rem 0; }
    .tm-row { padding: 5px 0; }

    .tm-sitename { font-size: 17px; }
    .tm-logo-icon { width: 26px; height: 26px; }
    .tm-logo-icon::after { font-size: 11px; }

    .tm-domain-tag { padding: 4px 10px; gap: 6px; }
    .tm-domain-label { font-size: 10px; }
    .tm-domain-url   { font-size: 14px; }

    /* Nav: 15% label + 85% links, 4 per row */
    .tm-nav-row { display: flex; align-items: stretch; }

    .tm-zone-chip {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
        word-break: break-all;
        line-height: 1.35;
    }

    .tm-zone-links {
        width: 85%;
        gap: 4px;
        padding: 6px 4px;
    }

    .tm-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

    /* search: all one row, no wrap */
    .tm-search { padding: 8px 9px; margin-bottom: 6px; }
    .tm-search form { flex-wrap: nowrap; gap: 5px; }
    .tm-search input[type="text"] { min-width:70px; padding:8px 10px; font-size:13px; }
    .tm-search button { padding:8px 9px; font-size:12px; }

    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 14px; }
    .mhlleset { margin-bottom: 11px; }

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

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

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

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

    .grid-container { padding: 8px; gap: 5px; margin-bottom: 6px; }
    .grid-item { padding: 4px 10px; font-size: 12px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .tm-sitename { font-size: 15px; }
    .tm-domain-tag { padding: 3px 8px; gap: 5px; }
    .tm-domain-label { font-size: 9px; }
    .tm-domain-url   { font-size: 13px; }

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

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

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

    .video-container { height: 56.25vw; max-height: 240px; }
    .mhlleset-title { font-size: 13px; }
    .video-info h5  { font-size: 12px; }
    .down_btn { padding: 8px 10px; font-size: 12px; }
    .download { padding: 9px 4px; gap: 5px; }
}
