/* Media Portal - BOSS Style: Dark Header + Teal Green Theme */

:root {
    --teal: #00c0a3;
    --teal-dark: #00a88d;
    --teal-light: #e6faf7;
    --teal-mid: #b3ede5;
    --topbar-bg: #1c2535;
    --topbar-border: #2e3a4e;
    --text-dark: #2b3a52;
    --text-body: #4a5568;
    --text-muted: #8a9ab5;
    --text-dim: #b8c4d4;
    --bg-page: #f0f4f8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-soft: #edf2f7;
    --shadow-xs: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
    --rd: 8px;
    --rd-sm: 5px;
    --rd-lg: 14px;
    --ease: all 0.22s ease;
    --teal-glow: 0 4px 14px rgba(0,192,163,0.28);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== TOP BAR (dark, non-sticky) ===== */
.topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    padding: 0;
    position: relative;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    gap: 20px;
}

/* 品牌区：名称 + 域名同行 */
.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

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

.brand-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--teal);
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-name em {
    color: #ffffff;
    font-style: normal;
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,192,163,0.12);
    border: 1px solid rgba(0,192,163,0.35);
    border-radius: 20px;
    padding: 3px 12px;
    flex-shrink: 0;
}

.domain-lbl {
    font-size: 11px;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.domain-txt {
    font-size: 13px;
    font-weight: 700;
    color: #e8f0fe;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* ===== WRAPPER ===== */
.wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.sec-pad {
    padding: 10px 0;
}

/* ===== BANNER AD ===== */
.banner-slot {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ===== NAV BLOCK ===== */
.nav-block {
    background: var(--bg-white);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

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

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

.zone-tag {
    font-weight: 800;
    font-size: 13px;
    color: var(--bg-white);
    white-space: nowrap;
    width: 9%;
    min-width: 58px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: var(--teal);
    letter-spacing: 0.3px;
}

.zone-links {
    width: 91%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--bg-white);
}

.zone-links a {
    display: inline-block;
    color: var(--text-body);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--bg-page);
    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(--teal);
    color: var(--bg-white);
    border-color: var(--teal);
    box-shadow: var(--teal-glow);
}

.zone-links a.active {
    background: var(--teal);
    color: var(--bg-white);
    border-color: var(--teal-dark);
    font-weight: 700;
    box-shadow: var(--teal-glow);
}

/* ===== SEARCH BAR ===== */
.search-zone {
    background: var(--bg-white);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

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

.search-zone input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-zone input[type="text"]:focus {
    border-color: var(--teal);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0,192,163,0.1);
}

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

.search-zone button {
    padding: 9px 18px;
    border: none;
    border-radius: 22px;
    background: var(--teal);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.search-zone button:hover {
    background: var(--teal-dark);
    box-shadow: var(--teal-glow);
}

/* ===== HOT TAGS ===== */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--bg-white);
    border-radius: var(--rd);
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.hot-tag {
    padding: 4px 13px;
    background: var(--bg-page);
    border-radius: 14px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.hot-tag:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
    border-color: var(--teal-mid);
}

/* ===== SECTION HEADING ===== */
.content-section {
    margin-bottom: 18px;
}

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

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

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

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

.sec-title a:hover {
    color: var(--teal);
}

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

.card-grid li {
    background: var(--bg-card);
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

.card-grid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--teal-mid);
}

.card-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg-page);
}

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

.card-cover:hover img {
    transform: scale(1.06);
}

.card-cover::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--bg-white);
    background: rgba(0,192,163,0.52);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.card-cover:hover::after {
    opacity: 1;
}

.card-info {
    padding: 8px 10px 10px;
}

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

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

.card-info h5 a:hover {
    color: var(--teal);
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-md);
}

.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 14px;
    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;
}

/* ===== DETAIL TITLE ===== */
.detail-head {
    line-height: 1.8;
    text-align: center;
    padding: 13px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--border);
    border-top: 3px solid var(--teal);
    box-shadow: var(--shadow-xs);
}

.detail-head a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== INFO PANEL ===== */
.info-box {
    font-size: 14px;
    line-height: 2;
    padding: 18px 22px;
    background: var(--bg-white);
    border-radius: var(--rd);
    margin: 12px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    border-top: 3px solid var(--teal);
}

/* ===== TORRENT CAPTURE ===== */
.grab-grid img,
.grab-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--border);
    display: block;
}

.grab-grid .img_item {
    width: 100%;
}

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

.dl-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--teal);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 22px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.dl-btn:hover {
    background: var(--teal-dark);
    box-shadow: var(--teal-glow);
}

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

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

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--teal);
    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;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--teal);
    color: var(--bg-white);
    border: none;
    border-radius: 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

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

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

/* ===== 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 13px;
    border-radius: 20px;
    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);
}

.a_page_info:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--bg-white);
}

.page_info_focus {
    background: var(--teal);
    color: var(--bg-white);
    border: 1px solid var(--teal-dark);
    cursor: default;
}

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

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

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

.foot-wrap a:hover { color: var(--teal); }

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

.flink-box dl { margin: 0; }

.flink-box dd {
    display: inline-block;
    margin: 3px 5px;
}

.flink-box a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.flink-box a:hover { color: var(--teal); }

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

.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; } }

img[data-original] { background: var(--bg-page); }

/* AD zones: no margin/padding */
[class*="ad-slot"] { margin: 0; padding: 0; }

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

    .wrapper { padding: 0 8px; }

    /* topbar brand */
    .topbar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
    .brand-name { font-size: 19px; }
    .domain-pill { padding: 3px 10px; gap: 5px; }
    .domain-lbl { font-size: 10px; }
    .domain-txt { font-size: 12px; }

    .sec-pad { padding: 6px 0; }

    /* Mobile nav: 缩小标签区域，放大链接区域和字号 */
    .nav-row { display: flex; align-items: stretch; }

    .zone-tag {
        width: 13%;
        min-width: 34px;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
    }

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

    .zone-links a {
        font-size: 14px;
        padding: 6px 2px;
        width: calc((100% - 12px) / 4);
    }

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

    .card-info { padding: 6px 8px 8px; }
    .card-info h5 { font-size: 12px; }
    .sec-title { font-size: 16px; }

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

    .hot-tags { padding: 8px 10px; gap: 5px; }
    .hot-tag { padding: 3px 10px; font-size: 12px; }

    .search-zone { padding: 8px 10px; }
    .search-zone form { gap: 6px; }
    .search-zone input[type="text"] { min-width: 80px; padding: 8px 12px; font-size: 13px; }
    .search-zone button { padding: 8px 12px; font-size: 12px; }

    .dl-bar { padding: 12px 8px; gap: 8px; flex-wrap: nowrap; }
    .dl-btn { padding: 9px 14px; font-size: 12px; }

    .share-section { padding: 10px 12px; gap: 8px; }
    .share-url-display { padding: 7px 12px; gap: 6px; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 11px; }
    .share-copy-btn { padding: 8px 12px; font-size: 12px; }

    .content-section { margin-bottom: 14px; }
    .sec-heading { margin-bottom: 10px; padding-bottom: 8px; }
    .info-box { padding: 14px 16px; font-size: 13px; }
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {

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

    .zone-tag {
        width: 13%;
        min-width: 30px;
        font-size: 9px;
        padding: 3px 1px;
    }

    .zone-links {
        width: 87%;
        gap: 3px;
        padding: 4px 4px;
    }

    .zone-links a {
        font-size: 13px;
        padding: 5px 1px;
        width: calc((100% - 9px) / 4);
    }

    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dl-btn { padding: 8px 10px; font-size: 11px; }
    .dl-bar { padding: 10px 4px; gap: 5px; }
    .share-section { padding: 8px; gap: 6px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }
    .video-container { height: 56.25vw; max-height: 280px; }
}
