/* ESPN Inspired Theme - Black, White, Red Sports Style */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Archivo+Narrow:wght@400;500;600;700&display=swap');

:root {
    --espn-red:      #cc0000;
    --espn-red-dark: #a30000;
    --espn-black:    #0d0d0d;
    --espn-dark:     #1a1a1a;
    --espn-charcoal: #222222;
    --espn-gray:     #f2f2f2;
    --espn-gray2:    #e8e8e8;
    --espn-gray3:    #d0d0d0;
    --espn-mid:      #888888;
    --espn-text:     #111111;
    --espn-text2:    #444444;
    --espn-white:    #ffffff;
    --espn-link:     #0056a2;
    --espn-link-hov: #003d75;
    --border:        #dddddd;
    --shadow:        rgba(0,0,0,0.08);
    --shadow-lg:     rgba(0,0,0,0.18);
    --radius:        4px;
    --radius-sm:     3px;
    --transition:    all 0.18s ease;
}

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

body {
    font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--espn-gray);
    color: var(--espn-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    background: var(--espn-black);
    border-bottom: 3px solid var(--espn-red);
    z-index: 1000;
    padding: 0.5rem 0;
}

.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-block;
    transition: var(--transition);
}

.logo:hover { opacity: 0.85; }

.site-name {
    font-family: 'Archivo', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--espn-white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-style: italic;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 15px;
    background: var(--espn-red);
    border-radius: var(--radius);
    position: relative;
}

.domain-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.domain-url {
    font-size: 18px;
    font-weight: 800;
    color: var(--espn-white);
    font-family: 'Archivo', sans-serif;
    letter-spacing: 0.2px;
}

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

.content { padding: 6px 0; }

/* ===== NAVIGATION ===== */
.nav-container {
    background: var(--espn-white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--espn-red);
    box-shadow: 0 1px 4px var(--shadow);
}

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

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

.nav-row .nav-label {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 11px;
    color: var(--espn-white);
    background: var(--espn-black);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 2px solid var(--espn-red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.nav-row .nav-links {
    font-size: 12px;
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 7px 8px;
    align-items: center;
    background: var(--espn-gray);
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--espn-text);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--espn-white);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-row .nav-links a:hover {
    background: var(--espn-red);
    color: var(--espn-white);
    border-color: var(--espn-red);
    box-shadow: 0 2px 6px rgba(204,0,0,0.25);
}

.nav-row .nav-links a.active {
    background: var(--espn-red);
    color: var(--espn-white);
    border-color: var(--espn-red);
    font-weight: 700;
}

/* ===== SEARCH BOX ===== */
.seach {
    background: var(--espn-black);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 6px;
    border: 1px solid var(--espn-charcoal);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 9px 16px;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius);
    background: var(--espn-charcoal);
    color: var(--espn-white);
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    transition: var(--transition);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--espn-red);
    background: #2a2a2a;
    box-shadow: 0 0 0 2px rgba(204,0,0,0.2);
}

.seach input[type="text"]::placeholder { color: #666; }

.seach button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius);
    background: var(--espn-red);
    color: var(--espn-white);
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.seach button:hover {
    background: var(--espn-red-dark);
    box-shadow: 0 4px 12px rgba(204,0,0,0.35);
    transform: translateY(-1px);
}

.seach button:active { transform: translateY(0); }

/* ===== HOT SEARCH TAGS ===== */
.mhlleset-main h4 {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--espn-white);
    margin-bottom: 0;
    padding: 5px 12px;
    background: var(--espn-black);
    display: inline-block;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px;
    background: var(--espn-white);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    margin-bottom: 6px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--espn-red);
    border-top: none;
}

.grid-item {
    padding: 4px 12px;
    background: var(--espn-gray);
    border-radius: var(--radius-sm);
    color: var(--espn-text2);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
    font-family: 'Archivo', sans-serif;
}

.grid-item:hover {
    background: var(--espn-red);
    color: var(--espn-white);
    border-color: var(--espn-red);
}

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

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

.mhlleset-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--espn-red);
    border-radius: 2px;
    flex-shrink: 0;
}

.mhlleset-title {
    font-family: 'Archivo', sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--espn-black);
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

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

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

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

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: var(--espn-gray2);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
    transition: var(--transition);
}

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

.thumbnail2:hover {
    border-color: var(--espn-red);
    box-shadow: 0 4px 16px rgba(204,0,0,0.2), 0 3px 10px var(--shadow-lg);
    transform: translateY(-2px);
}

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

/* Red top-bar reveal on hover */
.thumbnail2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--espn-red);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.thumbnail2:hover::before { transform: scaleX(1); }

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

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

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

.video-info h5 {
    margin: 0;
    font-family: 'Archivo Narrow', 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--espn-text);
}

.video-info h5 a {
    color: var(--espn-text);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== DOWNLOAD BUTTONS ===== */
.download {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 11px 0;
    margin: 8px 0;
    align-items: center;
    border-top: 2px solid var(--espn-black);
    border-bottom: 1px solid var(--border);
}

.down_btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--espn-red);
    color: var(--espn-white);
    text-decoration: none;
    border-radius: var(--radius);
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.down_btn:hover {
    background: var(--espn-red-dark);
    box-shadow: 0 4px 14px rgba(204,0,0,0.35);
    transform: translateY(-1px);
    color: var(--espn-white);
    text-decoration: none;
}

/* ===== SHARE SECTION ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--espn-black);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid var(--espn-charcoal);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    background: var(--espn-charcoal);
    border-radius: var(--radius);
    padding: 7px 12px;
    border: 1px solid #3a3a3a;
}

.share-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--espn-red);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Archivo', sans-serif;
}

.share-url {
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--espn-red);
    color: var(--espn-white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-copy-btn:hover {
    background: var(--espn-red-dark);
    box-shadow: 0 3px 10px rgba(204,0,0,0.3);
}

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

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.torrent-capture-grid img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

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

.a_page_info,
.page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
}

.a_page_info {
    background: var(--espn-white);
    color: var(--espn-text);
    border: 1px solid var(--border);
}

.a_page_info:hover {
    background: var(--espn-red);
    border-color: var(--espn-red);
    color: var(--espn-white);
}

.page_info_focus {
    background: var(--espn-black);
    color: var(--espn-white);
    border: 2px solid var(--espn-red);
    cursor: default;
    font-weight: 800;
}

/* ===== FOOTER ===== */
.footer {
    padding: 14px 0;
    text-align: center;
    border-top: 3px solid var(--espn-red);
    margin-top: 10px;
    background: var(--espn-black);
}

.footer p {
    margin: 5px 0;
    color: #777;
    font-size: 12px;
    font-family: 'Archivo', sans-serif;
}

.footer a {
    color: #777;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover { color: var(--espn-red); }

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 9px;
    background: var(--espn-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--espn-red);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }

.txtguanggao2 a {
    color: var(--espn-text2);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    font-family: 'Archivo', sans-serif;
}

.txtguanggao2 a:hover { color: var(--espn-red); }

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--espn-charcoal);
}

.video-container iframe,
.video-container video,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

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

    .nav-row .nav-label { width: 15%; font-size: 12px; padding: 6px 2px; letter-spacing: 0; white-space: normal; word-break: keep-all; line-height: 1.3; }
    .nav-row .nav-links { width: 85%; flex-wrap: wrap; gap: 4px; padding: 6px 4px; }
    .nav-row .nav-links a {
        padding: 4px 2px;
        font-size: 12px;
        flex: 0 0 calc((100% - 12px) / 4);
        min-width: 0;
    }

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

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info { padding: 5px 0 3px; }
    .video-info h5 { font-size: 12px; }

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

    .grid-container { padding: 7px; gap: 5px; margin-bottom: 5px; }
    .grid-item { padding: 3px 10px; font-size: 11px; }

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

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

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

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 480px) {
    .header { padding: 0.3rem 0; }
    .site-branding { gap: 7px; }
    .site-name { font-size: 19px; }
    .domain-info { padding: 3px 10px; }
    .domain-label { font-size: 8px; }
    .domain-url { font-size: 13px; }

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

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

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

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

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

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

/* ===== MISC ===== */
img[data-original] { background: var(--espn-gray2); }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
