/* Entertainment Video Portal - Dark Sports Theme */

:root {
    --clr-accent: #3b82f6;
    --clr-accent-hover: #2563eb;
    --clr-accent2: #7c3aed;
    --clr-danger: #ef4444;
    --clr-text-primary: #f1f5f9;
    --clr-text-secondary: #94a3b8;
    --clr-text-muted: #64748b;
    --clr-bg-base: #0f172a;
    --clr-bg-surface: #1e293b;
    --clr-bg-elevated: #263447;
    --clr-bg-card: #1a2235;
    --clr-border: #2d3f56;
    --clr-border-light: #334155;
    --clr-shadow: rgba(0, 0, 0, 0.4);
    --clr-shadow-lg: rgba(0, 0, 0, 0.6);
    --grad-main: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    --grad-warm: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== TOP BRAND BAR (non-sticky) ===== */
.site-topbar {
    background: linear-gradient(180deg, #0d1b2e 0%, #0f172a 100%);
    border-bottom: 1px solid var(--clr-border);
    padding: 14px 0;
}

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

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

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--grad-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--clr-text-primary);
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newest-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 20px;
    padding: 5px 14px;
}

.newest-domain-badge .nd-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.newest-domain-badge .nd-url {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-text-primary);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0.5px;
}

/* ===== STICKY NAV ===== */
.header {
    background: var(--clr-bg-surface);
    border-bottom: 2px solid var(--clr-border);
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px var(--clr-shadow);
}

.header-content {
    padding: 8px 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.content {
    padding: 14px 0;
}

/* ===== NAV ROWS ===== */
.nav-wrapper {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    margin-bottom: 14px;
}

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

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

.nav-row .nav-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--clr-text-secondary);
    background: rgba(59, 130, 246, 0.08);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

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

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

.nav-row .nav-links a:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.nav-row .nav-links a.active {
    background: var(--grad-main);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
    font-weight: 700;
}

/* ===== SEARCH BOX ===== */
.seach {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--clr-border);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-bg-elevated);
    color: var(--clr-text-primary);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.seach input[type="text"]::placeholder {
    color: var(--clr-text-muted);
}

.seach button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--grad-main);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.seach button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* ===== HOT TAGS ===== */
.tag-cloud-wrap {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--clr-border);
}

.tag-cloud-wrap h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-text-primary);
    margin-bottom: 10px;
}

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

.grid-item {
    padding: 5px 12px;
    background: var(--clr-bg-elevated);
    border-radius: 14px;
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--clr-border-light);
}

.grid-item:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

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

.mhlleset-main {
    width: 100%;
}

.mhlleset-heading {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--clr-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mhlleset-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--grad-main);
    border-radius: 2px;
    flex-shrink: 0;
}

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

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

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

.thumbnail2-group li {
    position: relative;
    animation: fadeSlideUp 0.5s 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 fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

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

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

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

.thumbnail2:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    border-color: var(--clr-accent);
}

.clip-entry {
    padding: 8px 0 4px;
}

.clip-entry h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--clr-text-primary);
}

.clip-entry h5 a {
    color: var(--clr-text-primary);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clip-entry h5 a:hover {
    color: var(--clr-accent);
}

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 20px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--clr-shadow-lg);
    position: relative;
    border: 1px solid var(--clr-border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px var(--clr-shadow-lg);
    border: 1px solid var(--clr-border);
}

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

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

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

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

/* ===== DOWNLOAD BUTTONS ===== */
.download {
    text-align: center;
    padding: 16px;
    background: var(--clr-bg-surface);
    border-radius: var(--radius-md);
    margin: 16px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.down_btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--grad-main);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    opacity: 0.88;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-display {
    background: var(--clr-bg-elevated);
    border: 1px solid var(--clr-border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 11px 20px;
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

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

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0;
}

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

.a_page_info {
    background: var(--clr-bg-surface);
    color: var(--clr-text-secondary);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

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

/* ===== FOOTER ===== */
.footer-links-wrap {
    border-top: 1px solid var(--clr-border);
    padding-top: 20px;
    margin-top: 30px;
}

.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 0;
    background: var(--clr-bg-surface);
}

.footer p {
    margin: 6px 0;
    color: var(--clr-text-muted);
    font-size: 12px;
}

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

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

.friend-links-box {
    padding: 12px;
    background: var(--clr-bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

.friend-links-box dl {
    margin: 0;
}

.friend-links-box dd {
    display: inline-block;
    margin: 3px 4px;
}

.friend-links-box a {
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.friend-links-box a:hover {
    color: var(--clr-accent);
}

/* ===== BANNER AREA ===== */
.promo-banner-row {
    width: 100%;
    margin: 2px 0;
    overflow: hidden;
}

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

/* ===== LOADING PLACEHOLDER ===== */
img[data-original] {
    background: var(--clr-bg-elevated);
}

/* ===== RESPONSIVE: LARGE MOBILE (481px - 768px) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .content {
        padding: 10px 0;
    }

    .site-topbar {
        padding: 10px 0;
    }

    .brand-name {
        font-size: 20px;
    }

    .newest-domain-badge .nd-url {
        font-size: 13px;
    }

    /* Mobile nav: label 15%, links 85%, 2-row layout */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
        letter-spacing: 0;
    }

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

    .nav-row .nav-links a {
        /* 4 per row, 2 rows */
        width: calc((100% - 12px) / 4);
        font-size: 14px;
        padding: 4px 2px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .seach form {
        gap: 5px;
    }

    .seach input[type="text"] {
        min-width: 100px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .seach button {
        padding: 9px 10px;
        font-size: 12px;
    }

    /* 2 columns on mobile */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .clip-entry h5 {
        font-size: 12px;
    }

    .mhlleset-title {
        font-size: 16px;
    }

    .mhlleset-title::before {
        height: 16px;
    }

    .video-container {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 14px;
    }

    .download {
        padding: 12px 8px;
        gap: 8px;
    }

    .down_btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .share-section {
        padding: 10px;
        gap: 8px;
    }

    .share-url-display {
        padding: 8px 10px;
    }

    .share-label {
        font-size: 10px;
    }

    .share-url {
        font-size: 11px;
    }

    .share-copy-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

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

    .page_info_div {
        gap: 4px;
        padding: 14px 0;
    }

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

    .footer {
        padding: 16px 0;
    }
}

/* ===== RESPONSIVE: SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
    .brand-name {
        font-size: 18px;
    }

    .brand-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .newest-domain-badge .nd-label {
        font-size: 9px;
    }

    .newest-domain-badge .nd-url {
        font-size: 12px;
    }

    /* Small mobile nav label: still 15% wide, font 10px */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

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

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

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

    .clip-entry h5 {
        font-size: 11px;
    }

    .mhlleset-title {
        font-size: 15px;
    }

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

    .seach button {
        padding: 8px 8px;
        font-size: 11px;
    }

    .down_btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .download {
        gap: 5px;
    }

    .share-section {
        padding: 8px;
        gap: 6px;
    }

    .share-url-display {
        padding: 7px 8px;
    }

    .share-copy-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}
