/*
 * filmhub 新增样式。public/assets/template1 下的原有 CSS 原样保留不改，
 * 重构新增的元素（静态页富文本正文、详情页面包屑）与修正只写在这里，选择器一律带限定前缀。
 */

/* ---------- 静态页 / 404 富文本正文（配色对齐 outline.css 的 .card-description） ---------- */
.about-card.page-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
}

/* 法务正文很长，整卡悬停上浮会晃眼 */
.about-card.page-body:hover {
    transform: none;
}

.page-body h2 {
    font-size: 1.4rem;
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 0.8rem;
}

.page-body h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.6rem;
}

.page-body > :first-child {
    margin-top: 0;
}

.page-body p,
.page-body ul,
.page-body ol {
    margin: 0 0 1rem;
}

.page-body ul,
.page-body ol {
    padding-left: 1.5rem;
}

.page-body li {
    margin-bottom: 0.4rem;
}

.page-body strong {
    color: #fff;
}

.page-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dashed rgba(102, 126, 234, 0.5);
    word-break: break-word;
}

.page-body a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* ---------- 详情页面包屑 ---------- */
.film-breadcrumb {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.film-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.film-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
}

.film-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.film-breadcrumb a:hover {
    color: #fff;
}

.film-breadcrumb [aria-current] {
    color: #fff;
}

@media (max-width: 768px) {
    .film-breadcrumb {
        padding: 0.75rem 1rem 0;
    }
}

/* 详情页背景图是 absolute + z-index:0，文档流里的广告会被它压在下面（点不到），抬到同内容一层 */
.detail-page > .ad {
    position: relative;
    z-index: 2;
}

/* 首页 h1 只给读屏与爬虫，视觉上沿用旧版（无可见大标题） */
.film-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 详情页预告片：YouTube iframe 填满原 DPlayer 的 16:9 黑框（#dplayer 尺寸在 details.css） */
#dplayer iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Genres 等不换行的 .info-value 填上长内容后会撑大 grid 子项的最小宽度（移动端溢出视口），允许收缩让省略号生效 */
.detail-info-section {
    min-width: 0;
}
