/* eBay-Inspired Style - White / Blue / Clean Modern */

:root {
    --blue: #3665f3;
    --blue-dark: #2851a3;
    --blue-light: #e8f0fe;
    --blue-hover: #1a44c2;
    --ebay-red: #e53238;
    --ebay-yellow: #f5af02;
    --ebay-green: #86b817;
    --fg: #111820;
    --fg-soft: #555e6c;
    --fg-muted: #8c96a3;
    --bg: #f7f7f7;
    --bg-white: #ffffff;
    --bg-input: #f9f9f9;
    --line: #e5e5e5;
    --line-md: #d0d0d0;
    --shadow-xs: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-blue: 0 2px 10px rgba(54,101,243,0.25);
    --rd: 8px;
    --rd-sm: 6px;
    --rd-pill: 24px;
    --ease: all 0.2s ease;
    --cover-ratio: calc(350 / 600 * 100%);
}

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

body {
    font-family: 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== TOP HEADER ===== */
.eb-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    padding: 10px 0 9px;
}

.eb-header .eb-wrap {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.eb-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    flex-shrink: 0;
}

.eb-logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.eb-logo-text .l-e { color: var(--ebay-red); }
.eb-logo-text .l-b { color: var(--blue); }
.eb-logo-text .l-a { color: var(--ebay-yellow); }
.eb-logo-text .l-y { color: var(--ebay-green); }

.eb-domain-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    border: 1.5px solid var(--blue);
    border-radius: var(--rd-pill);
    padding: 5px 14px;
    flex-shrink: 0;
}

.eb-domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.eb-domain-url {
    font-size: 14px;
    font-weight: 800;
    color: var(--fg);
    font-family: 'Courier New', monospace;
}

/* ===== LAYOUT ===== */
.eb-wrap {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 14px;
}

.eb-row { padding: 6px 0; }

/* ===== NAV SECTION ===== */
.eb-nav-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.eb-nav-section .eb-wrap {
    padding: 0 14px;
}

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

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

.eb-zone-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--bg-white);
    background: var(--blue);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    border-right: none;
    border-radius: 0;
}

.eb-nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 8px;
    align-items: center;
}

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

.eb-nav-links a:hover,
.eb-nav-links a.active {
    background: var(--blue);
    color: var(--bg-white);
    border-color: var(--blue);
    box-shadow: var(--shadow-blue);
}

/* ===== SEARCH ===== */
.eb-search-wrap {
    background: var(--bg-white);
    border-radius: var(--rd);
    padding: 12px 14px;
    margin-bottom: 6px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

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

.eb-search-wrap input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    border: 2px solid var(--line-md);
    border-radius: var(--rd-pill);
    background: var(--bg-input);
    color: var(--fg);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.eb-search-wrap input[type="text"]:focus {
    border-color: var(--blue);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(54,101,243,0.12);
}

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

.eb-search-wrap button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--rd-pill);
    background: var(--blue);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.eb-search-wrap button:hover {
    background: var(--blue-hover);
    box-shadow: var(--shadow-blue);
}

/* ===== TAG CLOUD ===== */
.eb-tag-panel {
    background: var(--bg-white);
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}

.eb-tag-head {
    background: var(--blue);
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eb-tag-head strong {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.eb-tag-body {
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.grid-item {
    padding: 5px 13px;
    background: var(--blue-light);
    border-radius: var(--rd-pill);
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid rgba(54,101,243,0.2);
    font-weight: 600;
}

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

/* ===== SECTION HEADINGS ===== */
.mhlleset { margin-bottom: 10px; }

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

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

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

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

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

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

.thumbnail2-group li {
    animation: ebFadeUp 0.4s ease backwards;
}

.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 ebFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    padding-top: var(--cover-ratio);
    background: var(--bg);
    border: 1px solid var(--line);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.thumbnail2 img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumbnail2:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail2:hover::after { opacity: 1; }

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

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

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

.video-info h5 a:hover { color: var(--blue); }

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
}

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid { width: 100%; }

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

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

.torrent-capture-grid picture { display: block; width: 100%; }
.torrent-capture-grid picture img { width: 100%; }

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

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

.down_btn:hover {
    background: var(--blue-hover);
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}

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

.share-url-display {
    background: var(--bg-input);
    border: 1.5px solid var(--line-md);
    border-radius: var(--rd-pill);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--blue-hover);
    box-shadow: var(--shadow-blue);
}

.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 14px;
    border-radius: var(--rd-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(--fg);
    border: 1.5px solid var(--line-md);
}

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

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

/* ===== FRIEND LINKS ===== */
.flink-panel {
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    padding: 10px 14px;
}

.flink-panel dl { margin: 0; }
.flink-panel dd { display: inline-block; margin: 3px 5px; }

.flink-panel a {
    color: var(--fg-soft);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--ease);
}

.flink-panel a:hover { color: var(--blue); }

/* ===== FOOTER ===== */
.eb-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--blue);
    margin-top: 16px;
    background: var(--fg);
}

.eb-footer p {
    margin: 6px 0;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.eb-footer a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--ease);
}

.eb-footer a:hover { color: #fff; }

/* ===== CARD WRAPPERS ===== */
.eb-card {
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 6px;
}

.eb-card-body { padding: 14px; }

/* ===== HIDE UTILS ===== */
.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; } }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .eb-wrap, .container { padding: 0 8px; }

    .eb-header .eb-wrap { gap: 10px; }

    .eb-logo-text { font-size: 22px; }

    .eb-domain-row { padding: 3px 10px; gap: 5px; }
    .eb-domain-tag { font-size: 8px; }
    .eb-domain-url { font-size: 12px; }

    .eb-row { padding: 4px 0; }

    /* Mobile nav: label 15%, links 85%, 4 per row */
    .eb-nav-strip { display: flex; align-items: stretch; }

    .eb-zone-badge {
        width: 15%;
        font-size: 10px;
        padding: 6px 3px;
        letter-spacing: 0;
        word-break: keep-all;
    }

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

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

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

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

    .mhlleset { margin-bottom: 8px; }
    .mhlleset-title { font-size: 15px; }
    .mhlleset-heading { padding-bottom: 7px; margin-bottom: 9px; }

    .down_btn { padding: 9px 15px; font-size: 13px; }
    .download { padding: 11px 8px; gap: 8px; }

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

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

    .eb-search-wrap { padding: 10px 10px; }
    .eb-search-wrap button { padding: 9px 12px; font-size: 12px; }
    .eb-search-wrap input[type="text"] { padding: 9px 13px; font-size: 13px; }

    .eb-footer { padding: 16px 0; margin-top: 12px; }
}

/* Large phones */
@media (min-width: 481px) and (max-width: 768px) {
    .eb-nav-links a { font-size: 14px; }
    .eb-zone-badge { font-size: 10px; }
}

@media (max-width: 480px) {
    .eb-logo-text { font-size: 18px; }
    .eb-domain-tag { font-size: 7px; }
    .eb-domain-url { font-size: 11px; }

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

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info h5 { font-size: 11px; }
    .mhlleset-title { font-size: 14px; }
    .down_btn { padding: 8px 12px; font-size: 12px; }
}

@media (min-width: 769px) {
    .thumbnail2-group { grid-template-columns: repeat(4, 1fr); }
    .eb-zone-badge { font-size: 13px; }
    .eb-nav-links a { font-size: 13px; }
}
