/*
 * MOBILE MODERN THEME - REFINED MINIMALISM (ARCHITECTURAL)
 * Adapted from PC theme for a consistent, elegant mobile experience.
 * Version 2: Fine-tuned adjustments
 */

/* === 1. 全局重置与排版设定 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: #1c1c1c;
    color: #ffffff;
}

/* [Gemini 修复]: 添加 overflow-x: hidden; 以禁止所有页面的水平滚动 */
html,
body {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: #ffffff;
    color: #1c1c1c;
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: #1c1c1c;
    transition: opacity 0.2s ease-in-out;
}

a:hover {
    opacity: 0.7;
}

img.lazyload:not([src]) {
    visibility: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 2. 布局与容器 === */
.container-mobile {
    width: 100%;
    padding: 0 15px;
}

/* === 3. 头部 === */
.top-bar-mobile {
    background-color: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-bar-mobile .home-link {
    font-weight: 600;
    font-size: 16px;
    color: #1c1c1c;
}
.top-bar-mobile .lang-switcher a {
    font-size: 14px;
    font-weight: 500;
    color: #767676;
    border: 1px solid #eaeaea;
    padding: 6px 14px;
    border-radius: 50px;
}
.top-bar-mobile .lang-switcher a:hover {
    border-color: #1c1c1c;
    color: #1c1c1c;
    background-color: #f9f9f9;
    opacity: 1;
}

/* === 4. 英雄区/搜索区 === */
.hero-section-mobile {
    padding: 40px 0;
    text-align: center;
}
.hero-sitename {
    font-size: 25px; /* (已修改) 字体从 28px 缩小 */
    font-weight: 600;
    margin-bottom: 12px;
}
.hero-search form {
    display: flex;
    border-bottom: 1.5px solid #eaeaea;
    transition: border-color 0.2s ease;
}
.hero-search form:focus-within {
    border-color: #1c1c1c;
}
.hero-search .search-input-mobile {
    flex: 1;
    border: none;
    padding: 10px 0;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #1c1c1c;
    text-align: center;
}
.hero-search .search-input-mobile::placeholder {
    color: #b0b0b0;
}
.hero-search .search-button-mobile {
    border: none;
    background: transparent;
    color: #1c1c1c;
    font-weight: 500;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 16px;
}

/* === 5. 视频卡片 === */
.video-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 15px;
}
.video-item-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.video-card-mobile {
    background: transparent;
    border: none;
    box-shadow: none;
}
.video-card-mobile a:hover {
    opacity: 0.8;
}
.video-card-image {
    position: relative;
    padding-top: 56.25%;
    background-color: #f5f5f5;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}
.video-card-image img {
    position: absolute; top: 0; left: 0;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
}
.video-card-label {
    display: none;
}
.video-card-info {
    padding: 0;
}
.video-title {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1c;
    line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === 6. 首页组合标签与分类区块 === */
.combo-tags-section,
.category-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eaeaea;
}
.combo-tag,
.category-promo-item {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #767676;
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.combo-tag:hover,
.category-promo-item:hover {
    border-color: #cccccc;
    color: #1c1c1c;
    background-color: #f5f5f5;
    opacity: 1;
}

/* === 7. 详情页与播放页 === */
.content-section {
    margin: 30px 0;
    padding: 0;
    border: none;
    background: none;
}
.content-title {
    font-size: 21px; /* (已修改) 字体从 24px 缩小 */
    font-weight: 600;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
}
.player-placeholder-mobile {
    position: relative; width: 100%;
    background-color: #1c1c1c; border-radius: 4px;
    overflow: hidden; padding-top: 56.25%;
}
.player-placeholder-mobile img, #dplayer {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.info-card-mobile { margin-top: 30px; }
.info-card-mobile h2 {
    font-size: 14px; font-weight: 600; color: #1c1c1c;
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.info-list-mobile { list-style: none; padding: 0; font-size: 15px; color: #767676; }
.info-list-mobile li {
    padding: 12px 0; border-bottom: 1px solid #eaeaea;
    display: flex; gap: 15px;
}
.info-list-mobile li:last-child { border-bottom: none; }
.info-list-mobile .label { font-weight: 500; color: #1c1c1c; min-width: 60px; flex-shrink: 0; }
.tag-list-mobile { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tag-list-mobile a {
    font-size: 15px; color: #767676;
    text-decoration: underline; text-underline-offset: 3px;
}
.play-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.play-button, .play-line {
    display: block;
    padding: 10px 20px; /* (已修改) 减小内边距，使其更紧凑 */
    background-color: #1c1c1c;
    border-radius: 4px;
    font-size: 16px; /* 字体大小不变 */
    font-weight: 500;
    color: #fff !important;
    text-align: center;
}
.play-line-options { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.play-line {
    background-color: #ffffff;
    color: #1c1c1c !important;
    border: 1px solid #1c1c1c;
}

/* === 8. 搜索与分页 === */
.search-header { margin: 30px 0; padding-bottom: 30px; border-bottom: 1px solid #eaeaea; }
.search-term { font-size: 24px; font-weight: 600; color: #1c1c1c; }
.search-term span { color: #767676; }
.pagination { display: flex; justify-content: center; margin: 40px 0 20px; }
.el-pager { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.el-pager .number, .el-pager .pager-prev, .el-pager .pager-next {
    background: none; border: none; padding: 4px; color: #767676; font-weight: 500;
}
.el-pager .active { color: #1c1c1c; font-weight: 600; }
.el-pager .active span { text-decoration: underline; text-underline-offset: 4px; }
.el-pager .is-disabled { opacity: .4; cursor: not-allowed; }

/* === 9. 加载提示与“无结果”信息 === */
#loading-spinner, .no-results {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    color: #767676;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}