/* Media Portal - Guancha Observer Style: White + Red + Clean News */

:root {
    /* ── 主色：观察者红 ── */
    --obs-red: #cc0000;
    --obs-red-dark: #a80000;
    --obs-red-deeper: #800000;
    --obs-red-light: #fff0f0;
    --obs-red-mid: #f4a0a0;

    /* ── 导航/标题：近黑文字 ── */
    --obs-nav-bg: #ffffff;
    --obs-nav-text: #1a1a1a;
    --obs-nav-hover: #cc0000;

    /* ── 文字 ── */
    --text-dark: #111111;
    --text-body: #333333;
    --text-muted: #888888;
    --text-dim: #bbbbbb;

    /* ── 背景 ── */
    --bg-page: #f4f4f4;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-strip: #fafafa;

    /* ── 边框/阴影 ── */
    --border: #e0e0e0;
    --border-soft: #eeeeee;
    --border-red: #cc0000;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.09);
    --shadow-md: 0 4px 18px rgba(0,0,0,0.12);

    /* ── 圆角：观察者几乎无圆角，极简直角 ── */
    --rd: 2px;
    --rd-sm: 2px;
    --rd-lg: 4px;

    --ease: all 0.18s ease;
    --red-glow: 0 2px 10px rgba(204,0,0,0.22);
}

*, *::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', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════
   TOPBAR — 白色品牌区（非固定）
   观察者：LOGO左，导航右，红色点缀
════════════════════════════════════ */
.obs-topbar {
    background: var(--bg-white);
    border-bottom: 3px solid var(--obs-red);
    padding: 0;
}

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

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

.obs-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* 观察者风格：红色方块Logo */
.obs-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--obs-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
}

.obs-logo-icon::after {
    content: '观';
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.obs-sitename {
    font-size: 24px;
    font-weight: 900;
    color: var(--obs-red);
    letter-spacing: 2px;
    white-space: nowrap;
    line-height: 1.1;
    font-family: 'STSong', 'SimSun', 'PingFang SC', 'Microsoft YaHei', serif;
}

.obs-domain-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--obs-red-light);
    border: 1px solid var(--obs-red-mid);
    border-radius: var(--rd-sm);
    padding: 4px 12px;
}

.obs-domain-lbl {
    font-size: 11px;
    color: var(--obs-red-dark);
    font-weight: 700;
    white-space: nowrap;
}

.obs-domain-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* ════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════ */
.obswrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.obspad { padding: 10px 0; }

/* ════════════════════════════════════
   CATEGORY NAV BLOCK
   观察者风格：红色左标签，白底链接，
   悬停红色底
════════════════════════════════════ */
.obs-catblock {
    background: var(--bg-white);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--obs-red);
    box-shadow: var(--shadow-xs);
}

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

.obs-catrow:last-child { border-bottom: none; }

.obs-zone-lbl {
    font-weight: 900;
    font-size: 12px;
    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(--obs-red);
    letter-spacing: 0.5px;
    border-right: 2px solid var(--obs-red-dark);
}

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

.obs-zone-links a {
    display: inline-block;
    color: var(--text-body);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: 0;
    transition: var(--ease);
    background: var(--bg-strip);
    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;
}

.obs-zone-links a:hover {
    background: var(--obs-red);
    color: var(--bg-white);
    border-color: var(--obs-red);
}

.obs-zone-links a.active {
    background: var(--obs-red);
    color: var(--bg-white);
    border-color: var(--obs-red-dark);
    font-weight: 700;
}

/* ════════════════════════════════════
   SEARCH BAR — 观察者搜索框：方形边框
════════════════════════════════════ */
.obs-searchbar {
    background: var(--bg-white);
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--obs-red);
    box-shadow: var(--shadow-xs);
}

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

.obs-searchbar input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-strip);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.obs-searchbar input[type="text"]:focus {
    border-color: var(--obs-red);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px rgba(204,0,0,0.08);
}

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

.obs-searchbar button {
    padding: 8px 16px;
    border: none;
    border-radius: 0;
    background: var(--obs-red);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.obs-searchbar button:hover {
    background: var(--obs-red-dark);
    box-shadow: var(--red-glow);
}

/* ════════════════════════════════════
   HOT TAGS — 观察者风格：无圆角标签
════════════════════════════════════ */
.obs-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--bg-white);
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--obs-red);
    box-shadow: var(--shadow-xs);
}

.obs-tag {
    padding: 3px 10px;
    background: var(--bg-strip);
    border-radius: 0;
    color: var(--text-body);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.obs-tag:hover {
    background: var(--obs-red);
    color: var(--bg-white);
    border-color: var(--obs-red);
}

/* ════════════════════════════════════
   SECTION HEADING
   观察者风格：红色方块 + 粗体标题
════════════════════════════════════ */
.obs-section { margin-bottom: 20px; }

.obs-sec-head {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--obs-red);
    padding-bottom: 6px;
}

.obs-sec-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: var(--text-dark);
    /* 红色方块前缀 */
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.obs-sec-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--obs-red);
    flex-shrink: 0;
    border-radius: 0;
}

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

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

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

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

.obs-filmgrid li:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--obs-red-mid);
    transform: translateY(-2px);
}

.obs-filmcover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg-strip);
}

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

.obs-filmcover:hover img { transform: scale(1.06); }

.obs-filmcover::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--bg-white);
    background: rgba(204,0,0,0.50);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.obs-filmcover:hover::after { opacity: 1; }

.obs-filminfo { padding: 7px 9px 9px; }

.obs-filminfo h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

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

.obs-filminfo h5 a:hover { color: var(--obs-red); }

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

.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 12px;
    background: #000;
    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
════════════════════════════════════ */
.obs-detail-head {
    line-height: 1.8;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--obs-red);
    box-shadow: var(--shadow-xs);
}

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

/* ════════════════════════════════════
   INFO PANEL
════════════════════════════════════ */
.obs-infobox {
    font-size: 14px;
    line-height: 2;
    padding: 16px 20px;
    background: var(--bg-white);
    margin: 12px 0;
    border: 1px solid var(--border);
    border-top: 3px solid var(--obs-red);
    box-shadow: var(--shadow-xs);
}

/* ════════════════════════════════════
   TORRENT CAPTURE
════════════════════════════════════ */
.obs-preview img,
.obs-preview .img_item img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    display: block;
}

.obs-preview .img_item { width: 100%; }

/* ════════════════════════════════════
   DOWNLOAD BUTTONS — 红色直角大按钮
════════════════════════════════════ */
.obs-dlzone {
    text-align: center;
    padding: 16px;
    background: var(--bg-white);
    margin: 12px 0;
    border: 1px solid var(--border);
    border-top: 3px solid var(--obs-red);
    box-shadow: var(--shadow-xs);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

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

.obs-dlbtn:hover {
    background: var(--obs-red-dark);
    box-shadow: var(--red-glow);
}

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

.share-url-display {
    background: var(--bg-strip);
    border: 1px solid var(--border);
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    border-radius: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--obs-red);
    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: 8px 16px;
    background: var(--obs-red);
    color: var(--bg-white);
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

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

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

/* ════════════════════════════════════
   PAGINATION — 观察者风格：方形页码
════════════════════════════════════ */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    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(--obs-red);
    border-color: var(--obs-red);
    color: var(--bg-white);
}

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

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.obs-footer {
    padding: 20px 0;
    text-align: center;
    background: var(--bg-white);
    border-top: 3px solid var(--obs-red);
    margin-top: 24px;
}

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

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

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

/* ════════════════════════════════════
   FRIEND LINKS
════════════════════════════════════ */
.obs-flinks {
    padding: 12px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--obs-red);
}

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

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

.obs-flinks a:hover { color: var(--obs-red); }

/* ════════════════════════════════════
   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-strip); }

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

    .obswrap { padding: 0 8px; }

    .obs-topbar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
    .obs-logo-icon    { width: 34px; height: 34px; }
    .obs-logo-icon::after { font-size: 16px; }
    .obs-sitename     { font-size: 20px; }
    .obs-domain-row   { padding: 3px 10px; gap: 5px; }
    .obs-domain-lbl   { font-size: 10px; }
    .obs-domain-val   { font-size: 12px; }

    .obspad { padding: 6px 0; }

    /* Mobile nav */
    .obs-catrow { display: flex; align-items: stretch; }

    .obs-zone-lbl {
        width: 13%;
        min-width: 34px;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        border-right-width: 1px;
    }

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

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

    /* 2-column grid */
    .obs-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .obs-filminfo       { padding: 5px 7px 7px; }
    .obs-filminfo h5    { font-size: 12px; }
    .obs-sec-title      { font-size: 16px; }

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

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

    .obs-searchbar      { padding: 8px 10px; }
    .obs-searchbar form { gap: 5px; }
    .obs-searchbar input[type="text"] { min-width: 80px; padding: 7px 10px; font-size: 13px; }
    .obs-searchbar button             { padding: 7px 12px; font-size: 12px; }

    .obs-dlzone { padding: 12px 8px; gap: 8px; }
    .obs-dlbtn  { padding: 9px 14px; font-size: 12px; }

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

    .obs-section  { margin-bottom: 14px; }
    .obs-sec-head { margin-bottom: 8px; }
    .obs-infobox  { padding: 12px 14px; font-size: 13px; }
}

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

    .obs-sitename { font-size: 18px; }

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

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

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

    .obs-filmgrid   { gap: 7px; }
    .obs-dlbtn      { padding: 8px 10px; font-size: 11px; }
    .obs-dlzone     { padding: 10px 4px; gap: 5px; }
    .share-section  { padding: 7px; gap: 5px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
    .video-container { height: 56.25vw; max-height: 280px; }
}
