/* ============================================================
   Video Portal Template - Hupu Sports Community Red Style
   主色：虎扑红 #e8232a  白底内容区  灰色辅助  运动社区感
   ============================================================ */

:root {
    --hp-red:          #e8232a;
    --hp-red-dk:       #c01a20;
    --hp-red-lt:       #fff2f2;
    --hp-red-nav:      #d41f25;
    --hp-orange:       #ff6b00;
    --hp-text:         #1a1a1a;
    --hp-text-sub:     #555555;
    --hp-text-light:   #999999;
    --hp-body-bg:      #f2f3f5;
    --hp-panel:        #ffffff;
    --hp-border:       #e0e0e0;
    --hp-border-lt:    #f0f0f0;
    --hp-gray-bg:      #f7f8fa;
    --hp-shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
    --hp-shadow:       0 2px 10px rgba(0,0,0,0.1);
    --hp-shadow-md:    0 4px 18px rgba(0,0,0,0.13);
    --hp-radius:       4px;
    --hp-radius-sm:    2px;
    --hp-radius-lg:    6px;
    --hp-ease:         all 0.18s ease;
}

*, *::before, *::after {
    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(--hp-body-bg);
    color: var(--hp-text);
    font-size: 14px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

.content {
    padding: 10px 0;
}

/* ========== TOP HEADER ========== */
.header {
    background: var(--hp-red);
    border-bottom: none;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 48px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 0;
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    background: var(--hp-red-dk);
    align-self: stretch;
    margin-right: 2px;
}

.site-name {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.domain-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-left: 1px solid rgba(255,255,255,0.18);
}

.domain-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: var(--hp-radius-sm);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.domain-url {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ========== BANNER ZONE ========== */
.banner-zone {
    width: 100%;
    overflow: hidden;
    margin: 4px 0;
    line-height: 0;
    border-radius: var(--hp-radius);
}

.banner-zone a { display: block; }
.banner-zone img { width: 100%; display: block; border-radius: var(--hp-radius); }

/* ========== NAVIGATION ========== */
.nav-container {
    background: var(--hp-panel);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--hp-shadow-sm);
}

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

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

.nav-row .nav-label {
    width: 9%;
    min-width: 56px;
    flex-shrink: 0;
    background: var(--hp-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 3px;
    line-height: 1.3;
    letter-spacing: 0.3px;
    position: relative;
}

/* 虎扑风格：红色标签右侧小箭头 */
.nav-row .nav-label::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--hp-red);
    z-index: 1;
}

.nav-row .nav-links {
    width: 91%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 14px 7px 18px;
    align-items: center;
    font-size: 13px;
    background: var(--hp-panel);
}

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

.nav-row .nav-links a:hover {
    color: var(--hp-red);
    background: var(--hp-red-lt);
    border-color: var(--hp-red);
}

.nav-row .nav-links a.active {
    color: #fff;
    background: var(--hp-red);
    border-color: var(--hp-red);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(232,35,42,0.28);
}

/* ========== SEARCH BAR ========== */
.seach {
    background: var(--hp-panel);
    border: 1px solid var(--hp-border);
    border-top: 2px solid var(--hp-red);
    border-radius: var(--hp-radius-lg);
    padding: 11px 14px;
    margin-bottom: 12px;
    box-shadow: var(--hp-shadow-sm);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 13px;
    border: 1.5px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: var(--hp-gray-bg);
    color: var(--hp-text);
    font-size: 13px;
    outline: none;
    transition: var(--hp-ease);
}

.seach input[type="text"]:focus {
    border-color: var(--hp-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232,35,42,0.09);
}

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

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

.seach button:hover {
    background: var(--hp-red-dk);
    box-shadow: 0 3px 10px rgba(232,35,42,0.3);
}

/* ========== HOT TAGS ========== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 14px;
    background: var(--hp-panel);
    border-radius: var(--hp-radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
}

.grid-item {
    padding: 4px 11px;
    background: var(--hp-gray-bg);
    border-radius: var(--hp-radius-sm);
    color: var(--hp-text-sub);
    text-decoration: none;
    font-size: 12px;
    transition: var(--hp-ease);
    border: 1px solid var(--hp-border);
}

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

/* ========== SECTION PANEL ========== */
.mhlleset {
    margin-bottom: 14px;
}

.mhlleset-main {
    background: var(--hp-panel);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
}

.mhlleset-heading {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--hp-border-lt);
    background: var(--hp-panel);
    position: relative;
}

.mhlleset-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-text);
    padding: 11px 14px;
    margin: 0;
    line-height: 1;
    /* 虎扑风格：左侧粗红色竖条 */
    border-left: 4px solid var(--hp-red);
    letter-spacing: 0.3px;
    position: relative;
}

/* 虎扑风格：标题下方红色短下划线 */
.mhlleset-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    width: 32px;
    height: 2px;
    background: var(--hp-red);
    border-radius: 1px;
}

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

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

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

.thumbnail2-group li {
    position: relative;
    animation: hpFadeIn 0.35s ease backwards;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.02s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.05s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.11s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.14s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.17s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.20s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.23s; }

@keyframes hpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--hp-radius);
    aspect-ratio: 600 / 350;
    background: var(--hp-border-lt);
    border: 1px solid var(--hp-border);
    transition: var(--hp-ease);
}

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

/* 虎扑风格：左上角红色直播/热点角标 */
.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 6px;
    left: 0;
    background: var(--hp-red);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px 3px 6px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    opacity: 0;
    transition: var(--hp-ease);
    z-index: 2;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* 红色遮罩条 */
.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(232,35,42,0.12);
    opacity: 0;
    transition: var(--hp-ease);
}

.thumbnail2:hover {
    box-shadow: var(--hp-shadow);
    border-color: var(--hp-red);
    transform: translateY(-2px);
}

.thumbnail2:hover img { transform: scale(1.05); }
.thumbnail2:hover::before { opacity: 1; }
.thumbnail2:hover::after  { opacity: 1; }

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

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--hp-text);
}

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

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

/* ========== VIDEO PLAYER ========== */
.video-container {
    width: 100%;
    height: 560px;
    background: #111;
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--hp-shadow-md);
    position: relative;
    border: 2px solid var(--hp-red);
}

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

.MacPlayer {
    background: #111;
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--hp-shadow-md);
    border: 2px solid var(--hp-red);
}

/* ========== TORRENT CAPTURE ========== */
.torrent-capture-grid {
    margin-top: 10px;
}

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

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

/* ========== DOWNLOAD BUTTONS ========== */
.download {
    text-align: center;
    padding: 16px 14px;
    background: var(--hp-panel);
    border-radius: var(--hp-radius-lg);
    margin: 14px 0;
    border: 1px solid var(--hp-border);
    border-top: 2px solid var(--hp-red);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    box-shadow: var(--hp-shadow-sm);
}

.down_btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--hp-red);
    color: #fff;
    text-decoration: none;
    border-radius: var(--hp-radius);
    font-weight: 700;
    font-size: 14px;
    transition: var(--hp-ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(232,35,42,0.25);
}

.down_btn:hover {
    background: var(--hp-red-dk);
    box-shadow: 0 4px 14px rgba(232,35,42,0.38);
    transform: translateY(-1px);
}

/* ========== SHARE SECTION ========== */
.share-section {
    background: var(--hp-panel);
    border-radius: var(--hp-radius-lg);
    padding: 13px 14px;
    margin: 14px 0;
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--hp-gray-bg);
    border: 1.5px solid var(--hp-border);
    border-radius: var(--hp-radius);
    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(--hp-red);
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid var(--hp-border);
    padding-right: 8px;
    letter-spacing: 0.3px;
}

.share-url {
    font-size: 12px;
    color: var(--hp-text-sub);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--hp-red);
    color: #fff;
    border: none;
    border-radius: var(--hp-radius);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--hp-ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(232,35,42,0.22);
}

.share-copy-btn:hover {
    background: var(--hp-red-dk);
    transform: translateY(-1px);
}

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

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

.a_page_info {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--hp-radius-sm);
    text-decoration: none;
    font-size: 13px;
    transition: var(--hp-ease);
    min-width: 36px;
    text-align: center;
    background: var(--hp-panel);
    color: var(--hp-text-sub);
    border: 1px solid var(--hp-border);
}

.a_page_info:hover {
    background: var(--hp-red);
    border-color: var(--hp-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,35,42,0.25);
}

.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--hp-radius-sm);
    font-size: 13px;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    background: var(--hp-red);
    color: #fff;
    border: 1px solid var(--hp-red);
    cursor: default;
    box-shadow: 0 2px 8px rgba(232,35,42,0.25);
}

/* ========== FOOTER ========== */
.footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--hp-border);
    margin-top: 22px;
    background: var(--hp-panel);
}

.footer p { margin: 5px 0; color: var(--hp-text-light); font-size: 12px; }
.footer a { color: var(--hp-text-light); text-decoration: none; transition: var(--hp-ease); }
.footer a:hover { color: var(--hp-red); }

/* ========== FRIEND LINKS ========== */
.txtguanggao2 {
    padding: 10px 14px;
    background: var(--hp-panel);
    border-radius: var(--hp-radius);
    border: 1px solid var(--hp-border);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px 6px; }
.txtguanggao2 a { color: var(--hp-text-sub); text-decoration: none; font-size: 13px; transition: var(--hp-ease); }
.txtguanggao2 a:hover { color: var(--hp-red); }
.txtguanggao2 .pd5 { padding: 2px 4px; }

/* ========== UTILITIES ========== */
.clearfix::after { content: ""; display: table; clear: both; }

.hide_mobile { display: block; }
.hide_pc     { display: block; }
.hide-mobile { display: block; }
.hide-pc     { display: block; }

img[data-original] { background: var(--hp-border-lt); }

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

    .header { padding: 0; }
    .header-content { min-height: 42px; }
    .logo { padding: 0 12px; }
    .site-name { font-size: 18px; letter-spacing: 0.5px; }

    .site-branding { padding: 6px 0; gap: 0; }
    .domain-info { padding: 4px 10px; gap: 6px; }
    .domain-label { font-size: 9px; padding: 2px 5px; }
    .domain-url { font-size: 13px; }

    .content { padding: 8px 0; }

    /* 移动端导航：标签紧凑13%，链接区87%，每行4个 */
    .nav-row .nav-label {
        width: 13%;
        min-width: 0;
        font-size: 11px;
        padding: 4px 1px;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .nav-row .nav-label::after { display: none; }

    .nav-row .nav-links {
        width: 87%;
        gap: 4px;
        padding: 5px 8px;
        font-size: 15px;
    }

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

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

    .thumbnail2:hover { transform: none; }

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

    .video-container { height: 56.25vw; margin-bottom: 12px; }

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

    .grid-container { padding: 8px 12px; gap: 5px; }
    .grid-item { font-size: 11px; padding: 3px 9px; }

    .download { padding: 12px 8px; gap: 8px; flex-wrap: nowrap; }
    .down_btn { padding: 9px 16px; font-size: 13px; }
    .down_btn:hover { transform: none; }

    .share-section { padding: 10px 12px; gap: 8px; flex-wrap: nowrap; }
    .share-url-display { padding: 8px 11px; }
    .share-label { font-size: 10px; padding-right: 6px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 12px; font-size: 12px; }
    .share-copy-btn:hover { transform: none; }
    .share-icon { font-size: 13px; }

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

    .hide_mobile, .hide-mobile { display: none !important; }
}

/* ========== RESPONSIVE 480px ========== */
@media (max-width: 480px) {
    .logo { padding: 0 10px; }
    .site-name { font-size: 16px; }
    .domain-info { padding: 3px 8px; gap: 5px; }
    .domain-label { font-size: 8px; }
    .domain-url { font-size: 12px; }

    .nav-row .nav-label {
        width: 13%;
        min-width: 0;
        font-size: 10px;
        padding: 3px 1px;
        line-height: 1.2;
        letter-spacing: 0;
    }

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

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

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 14px; padding: 8px 10px; }
    .down_btn { padding: 8px 12px; font-size: 12px; }
    .download { padding: 10px 5px; gap: 6px; }
    .share-section { padding: 8px 10px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
}

@media (min-width: 769px) {
    .hide_pc, .hide-pc { display: none !important; }
}

#ddab { margin-bottom: 0; }
