/* Video Site - Agoda Light Blue Style */

:root {
    --blue:        #1a56db;
    --blue-mid:    #3b82f6;
    --blue-light:  #eff6ff;
    --blue-hover:  #1e40af;
    --text-dark:   #1a202c;
    --text-body:   #374151;
    --text-muted:  #6b7280;
    --text-faint:  #9ca3af;
    --bg-page:     #f0f4f8;
    --bg-white:    #ffffff;
    --bg-input:    #f9fafb;
    --border:      #e2e8f0;
    --border-mid:  #cbd5e1;
    --shadow-sm:   0 1px 4px rgba(26,86,219,0.07);
    --shadow-md:   0 4px 16px rgba(26,86,219,0.10);
    --shadow-lg:   0 8px 32px rgba(26,86,219,0.14);
    --r:           10px;
    --r-sm:        6px;
    --r-pill:      20px;
    --ease:        all 0.25s cubic-bezier(0.4,0,0.2,1);
    --grad:        linear-gradient(135deg,#1a56db 0%,#3b82f6 100%);
}

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

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

/* ─ HEADER ──────────────────────────── */
.top-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.48rem 0;
    box-shadow: var(--shadow-sm);
}

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

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

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

.logo-dots { display:flex; gap:3px; align-items:center; }
.logo-dots span {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
}
.logo-dots span:nth-child(1) { background:#e53e3e; }
.logo-dots span:nth-child(2) { background:#f97316; }
.logo-dots span:nth-child(3) { background:#22c55e; }
.logo-dots span:nth-child(4) { background:#3b82f6; }

.logo-wordmark {
    font-size: 23px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: -0.4px;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    border: 1.5px solid var(--blue-mid);
    border-radius: var(--r-pill);
    padding: 4px 14px;
}

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

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

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

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

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

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

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

.zone-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--blue-light);
}

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

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

.zone-links a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(26,86,219,0.22);
}

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

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

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

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

.search-bar input[type="text"]:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

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

.search-bar button {
    padding: 9px 13px;
    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;
}

.search-bar button:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgba(26,86,219,0.28);
}

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

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

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

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

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

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

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

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

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

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

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

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

.thumbnail2:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-mid);
}
.thumbnail2:hover img { transform: scale(1.07); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,86,219,0.42) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.28s 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(--text-body);
    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(--blue); }

/* ─ PLAYER ───────────────────────────── */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-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(--shadow-lg);
}

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

.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 ─────────────────────────── */
.download {
    text-align: center;
    padding: 13px;
    background: var(--bg-white);
    border-radius: var(--r);
    margin: 11px 0;
    border: 1px solid var(--border);
    box-shadow: var(--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(--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;
}

.down_btn:hover {
    background: var(--blue-hover);
    box-shadow: 0 6px 16px rgba(26,86,219,0.32);
}

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

.share-url-display {
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    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(--blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--text-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(--blue-hover);
    box-shadow: 0 4px 12px rgba(26,86,219,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(--bg-white);
    color: var(--text-body);
    border: 1px solid var(--border-mid);
}

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

.page_info_focus {
    background: var(--grad);
    color: #fff;
    border: 1px solid var(--blue);
    cursor: default;
}

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

.foot-wrap p {
    margin: 5px 0;
    color: var(--text-muted);
    font-size: 13px;
}

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

.friend-links-box {
    padding: 10px 12px;
    background: var(--bg-white);
    border-radius: var(--r);
    border: 1px solid var(--border);
}

.friend-links-box dl  { margin:0; }
.friend-links-box dd  { display:inline-block; margin:3px 4px; }
.friend-links-box a   { color:var(--text-muted); text-decoration:none; font-size:13px; transition:var(--ease); }
.friend-links-box a:hover { color:var(--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(--bg-input); }

/* ══ RESPONSIVE ══════════════════════════ */
@media (max-width: 768px) {

    .page-wrap { padding:0 8px; }
    .top-bar   { padding:0.38rem 0; }
    .row-pad   { padding:5px 0; }

    .logo-wordmark { font-size:18px; }
    .logo-dots span { width:6px; height:6px; }

    .domain-badge { padding:3px 9px; gap:6px; }
    .domain-badge-label { font-size:10px; }
    .domain-badge-url   { font-size:14px; }

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

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

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

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

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

    /* search all on one row */
    .search-bar { padding:8px 9px; margin-bottom:6px; }

    .search-bar form { flex-wrap:nowrap; gap:5px; }

    .search-bar input[type="text"] {
        min-width:70px;
        padding:8px 10px;
        font-size:13px;
    }

    .search-bar button {
        padding:8px 9px;
        font-size:12px;
    }

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

    .video-container {
        height:56.25vw;
        max-height:350px;
        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) {
    .logo-wordmark { font-size:16px; }
    .domain-badge  { padding:3px 7px; gap:4px; }
    .domain-badge-label { font-size:9px; }
    .domain-badge-url   { font-size:13px; }

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

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

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

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

    .mhlleset-title { font-size:14px; }
    .video-info h5  { font-size:12px; }
    .down_btn { padding:8px 10px; font-size:12px; }
    .download { padding:9px 4px; gap:5px; }
}
