@charset "utf-8";
/* lflcinema — 参考 lflchb.com（vfed）：灰底、白卡、强调色 #ff5f00，顶栏固定 */
:root {
    --lc-bg: #f5f5f5;
    --lc-card: #fff;
    --lc-text: #333;
    --lc-muted: #888;
    --lc-border: #eee;
    --lc-accent: #ff5f00;
    --lc-header-h: 3.125rem;
    --lc-radius: 5px;
    --lc-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body.lc-body {
    font-family: Helvetica, Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--lc-text);
    background: var(--lc-bg);
    padding-top: var(--lc-header-h);
    padding-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 100vh;
}
a { color: var(--lc-text); text-decoration: none; }
a:hover { color: var(--lc-accent); }
img { max-width: 100%; vertical-align: middle; border: 0; }
ul { list-style: none; }

/* 顶栏（vfed fed-head-info） */
.lc-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--lc-header-h);
    z-index: 1000;
    background: var(--lc-card);
    box-shadow: var(--lc-shadow);
}
.lc-head-inner {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}
.lc-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--lc-accent);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-logo:hover { color: var(--lc-accent); }
.lc-nav {
    display: none;
    flex: 1;
    align-items: center;
    gap: 2px;
    min-width: 0;
    /* 不可设 overflow-x:auto，否则会裁切绝对定位的下拉子菜单 */
    overflow: visible;
}
@media (min-width: 768px) {
    .lc-nav { display: flex; }
}
.lc-nav a {
    padding: 0 10px;
    line-height: var(--lc-header-h);
    white-space: nowrap;
    font-size: 14px;
}
.lc-nav a.lc-this { color: var(--lc-accent); font-weight: 700; }

.lc-nav-group {
    position: relative;
    flex-shrink: 0;
}
.lc-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    line-height: var(--lc-header-h);
    white-space: nowrap;
    font-size: 14px;
    font-family: inherit;
    color: var(--lc-text);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.lc-nav-toggle:hover { color: var(--lc-accent); }
.lc-nav-toggle.lc-this { color: var(--lc-accent); font-weight: 700; }
.lc-nav-arrow {
    display: inline-flex;
    opacity: 0.7;
    font-size: 10px;
    transition: transform 0.2s ease;
}
.lc-nav-group.is-open .lc-nav-arrow { transform: rotate(180deg); }
.lc-nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10rem;
    margin-top: 0;
    padding: 6px;
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    box-shadow: var(--lc-shadow);
    z-index: 1002;
}
.lc-nav-group::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}
.lc-nav-group:hover .lc-nav-submenu,
.lc-nav-group.is-open .lc-nav-submenu {
    display: block;
}
.lc-nav-subitem {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--lc-text);
    white-space: nowrap;
}
.lc-nav-subitem:hover { color: var(--lc-accent); background: rgba(255, 95, 0, 0.08); }
.lc-nav-subitem.is-active {
    color: var(--lc-accent);
    font-weight: 600;
    background: rgba(255, 95, 0, 0.1);
}

.lc-drawer-details {
    border-bottom: 1px solid var(--lc-border);
}
.lc-drawer-details summary {
    padding: 12px 8px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.lc-drawer-details summary::-webkit-details-marker { display: none; }
.lc-drawer-sublist {
    padding: 0 8px 10px 12px;
}
.lc-drawer-sublist a {
    display: block;
    padding: 8px 8px 8px 12px;
    border-bottom: 0;
    font-size: 13px;
    color: #555;
}
.lc-drawer-sublist a:hover { color: var(--lc-accent); }

.lc-search {
    flex: 1;
    min-width: 0;
    max-width: 280px;
    margin-left: auto;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--lc-border);
    border-radius: 999px;
    overflow: hidden;
    height: 30px;
}
@media (min-width: 768px) {
    .lc-search { max-width: 220px; margin-left: 0; }
}
.lc-search input {
    flex: 1;
    border: 0;
    padding: 0 12px;
    font-size: 13px;
    outline: 0;
    background: transparent;
    color: #666;
}
.lc-search input:focus { border-color: var(--lc-accent); }
.lc-search button {
    border: 0;
    background: transparent;
    padding: 0 12px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
}
.lc-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}
@media (min-width: 768px) {
    .lc-menu-btn { display: none; }
}

.lc-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.45);
}
.lc-drawer.is-open { display: block; }
.lc-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    padding: 16px;
    overflow-y: auto;
}
.lc-drawer-panel a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--lc-border);
}
.lc-drawer-panel a.lc-this { color: var(--lc-accent); font-weight: 700; }

/* 容器 fed-part-case ≈ 60.625rem @ md */
.lc-case {
    max-width: 60.625rem;
    margin: 0 auto;
    padding: 10px;
}

/* 区块 fed-list-home */
.lc-block {
    background: var(--lc-card);
    border-radius: var(--lc-radius);
    box-shadow: var(--lc-shadow);
    margin-bottom: 12px;
    overflow: hidden;
}
.lc-block-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 8px;
    border-bottom: 1px solid var(--lc-border);
}
.lc-block-hd h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--lc-text);
}
.lc-index-filter {
    padding: 12px;
    border-bottom: 1px solid var(--lc-border);
    background: rgba(0, 0, 0, .02);
}
.lc-index-filter__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.lc-index-filter__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-text);
}
.lc-index-filter__badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
    background: var(--lc-accent);
}
.lc-index-filter__hint {
    font-size: 12px;
    color: var(--lc-muted);
    margin: -4px 0 10px;
    line-height: 1.4;
}
.lc-index-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    margin-bottom: 10px;
}
.lc-index-filter__row:last-of-type {
    margin-bottom: 0;
}
.lc-index-filter__label {
    flex: 0 0 auto;
    min-width: 2.5em;
    padding-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lc-muted);
}
.lc-index-filter__chips {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.lc-index-filter__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 3px;
    color: var(--lc-text);
    background: #f5f5f5;
    border: 1px solid var(--lc-border);
}
.lc-index-filter__chip:hover {
    border-color: var(--lc-accent);
    color: var(--lc-accent);
}
.lc-index-filter__chip.is-active {
    color: #fff;
    background: var(--lc-accent);
    border-color: var(--lc-accent);
}
.lc-index-filter__footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--lc-border);
}
.lc-index-filter__back {
    font-size: 12px;
    font-weight: 500;
    color: var(--lc-accent);
}
.lc-tips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 12px;
    color: var(--lc-muted);
}
.lc-tips a { color: var(--lc-muted); }
.lc-tips a:hover { color: var(--lc-accent); }
.lc-more { color: var(--lc-accent) !important; font-weight: 500; }

/* 网格海报 2:3 */
.lc-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 4px 12px;
    margin: 0;
}
.lc-item {
    width: 33.333%;
    padding: 6px;
}
@media (min-width: 36rem) {
    .lc-item { width: 25%; }
}
@media (min-width: 62rem) {
    .lc-item { width: 16.666%; }
}
.lc-pic-wrap {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 150%;
    border-radius: var(--lc-radius);
    overflow: hidden;
    background: #e8e8e8;
}
.lc-pic-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lc-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s;
    color: #fff;
    font-size: 28px;
}
.lc-pic-wrap:hover .lc-play { opacity: 1; }
.lc-score {
    position: absolute;
    right: 4px;
    top: 4px;
    background: var(--lc-accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
}
.lc-remarks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    font-size: 11px;
    color: #fff;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.lc-title {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}
@media (min-width: 36rem) {
    .lc-title { text-align: left; }
}
.lc-desc {
    display: none;
    font-size: 12px;
    color: var(--lc-muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 36rem) {
    .lc-desc { display: block; }
}

.lc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
}
.lc-tab {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 13px;
}
.lc-tab.is-active { background: rgba(255, 95, 0, 0.12); color: var(--lc-accent); font-weight: 600; }

.lc-tabs-sub {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: -4px;
}

.lc-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--lc-muted);
}
.lc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}
.lc-pagination a {
    padding: 8px 16px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    background: #fff;
}
.lc-pagination a:hover { border-color: var(--lc-accent); color: var(--lc-accent); }

/* 详情页 */
.lc-block .lc-detail {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 48rem) {
    .lc-detail { flex-direction: row; align-items: flex-start; }
}
.lc-detail-poster {
    flex-shrink: 0;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}
.lc-detail-poster .lc-pic-wrap { padding-top: 140%; }
.lc-detail-info { flex: 1; min-width: 0; }
.lc-detail-info h1 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.lc-meta { font-size: 13px; color: var(--lc-muted); margin-bottom: 12px; }
.lc-btn-play {
    display: inline-block;
    padding: 10px 28px;
    background: var(--lc-accent);
    color: #fff !important;
    border-radius: var(--lc-radius);
    font-weight: 600;
}
.lc-btn-play:hover { filter: brightness(1.05); color: #fff !important; }
.lc-ep-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lc-ep-grid a {
    padding: 6px 12px;
    border: 1px solid var(--lc-border);
    border-radius: 4px;
    font-size: 13px;
}
.lc-ep-grid a:hover { border-color: var(--lc-accent); color: var(--lc-accent); }
/* 剧情简介（参考 theater-detail-description：顶部分割 + 正文层级） */
.lc-detail-desc {
    margin-top: 0;
    padding: 18px 16px 20px;
    border-top: 1px solid var(--lc-border);
    background: #fafafa;
}
.lc-detail-desc-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--lc-text);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lc-border);
}
.lc-detail-desc-body {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
}
.lc-detail-desc-html {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
}
.lc-detail-desc-html p { margin: 0 0 0.75em; }
.lc-detail-desc-html p:last-child { margin-bottom: 0; }
.lc-detail-desc-html img { max-width: 100%; height: auto; }

.lc-detail-desc-story-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--lc-text);
    margin: 14px 0 6px;
}
.lc-detail-desc-story-title:first-child { margin-top: 0; }
.lc-detail-desc-story-text {
    font-size: 14px;
    color: #555;
    line-height: 1.85;
    margin: 0 0 10px;
    text-indent: 2em;
}
.lc-detail-desc-story-text:last-child { margin-bottom: 0; }

/* 播放页（对齐 theater 结构，vfed 浅色） */
.lc-play-shell {
    max-width: 75rem;
    margin: 0 auto;
    padding: 12px 12px 24px;
}
.lc-play-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    font-size: 13px;
    box-shadow: var(--lc-shadow);
}
.lc-play-bc-a { color: var(--lc-muted); }
.lc-play-bc-a:hover { color: var(--lc-accent); }
.lc-play-bc-sep { color: #ccc; user-select: none; }
.lc-play-bc-cur { color: var(--lc-text); font-weight: 600; }

.lc-play-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .lc-play-layout { grid-template-columns: 1fr; }
}

.lc-play-main { min-width: 0; }
.lc-play-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
}
@media (min-width: 48rem) {
    .lc-play-title { font-size: 1.5rem; }
}
.lc-play-ep {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lc-accent);
    margin-left: 6px;
}

.lc-play-player-block { margin-bottom: 16px; }
.lc-play-player-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}
.lc-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--lc-radius);
    overflow: hidden;
    box-shadow: var(--lc-shadow);
}

.lc-play-pn {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.lc-play-pn-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    text-decoration: none;
    color: var(--lc-text);
    box-shadow: var(--lc-shadow);
    transition: border-color 0.15s, color 0.15s;
}
.lc-play-pn-btn:hover {
    border-color: var(--lc-accent);
    color: var(--lc-accent);
}
.lc-play-pn-btn.is-muted {
    opacity: 0.55;
    pointer-events: none;
}
.lc-play-pn-next { justify-content: flex-end; text-align: right; }
.lc-play-pn-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lc-play-pn-label { font-size: 11px; color: var(--lc-muted); }
.lc-play-pn-name { font-size: 14px; font-weight: 600; }
.lc-play-pn-btn svg { flex-shrink: 0; }

.lc-episode-section {
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    padding: 14px;
    box-shadow: var(--lc-shadow);
}
.lc-episode-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}
.lc-episode-hd-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.lc-episode-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--lc-accent);
    background: rgba(255, 95, 0, 0.08);
    border: 1px solid rgba(255, 95, 0, 0.35);
    border-radius: 999px;
    cursor: pointer;
}
.lc-episode-sort:hover {
    background: rgba(255, 95, 0, 0.14);
    border-color: var(--lc-accent);
}
.lc-episode-list { display: flex; flex-direction: column; gap: 12px; }
.lc-episode-group { display: flex; flex-direction: column; gap: 8px; }
.lc-episode-group-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.lc-episode-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lc-episode-item {
    padding: 8px 14px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    font-size: 13px;
    color: var(--lc-text);
    background: #fafafa;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lc-episode-item:hover {
    border-color: var(--lc-accent);
    color: var(--lc-accent);
    background: #fff;
}
.lc-episode-item.is-active {
    border-color: var(--lc-accent);
    background: rgba(255, 95, 0, 0.12);
    color: var(--lc-accent);
    font-weight: 600;
}

.lc-play-back { margin-top: 16px; font-size: 14px; }
.lc-play-back a { color: var(--lc-accent); }

.lc-play-side {
    position: sticky;
    top: calc(var(--lc-header-h) + 8px);
    background: var(--lc-card);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    padding: 14px;
    box-shadow: var(--lc-shadow);
}
.lc-play-side-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lc-border);
}
.lc-play-side-list { display: flex; flex-direction: column; gap: 12px; }
.lc-play-side-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: var(--lc-radius);
    text-decoration: none;
    color: var(--lc-text);
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.lc-play-side-item:hover {
    border-color: var(--lc-border);
    background: #fafafa;
}
.lc-play-side-poster {
    flex-shrink: 0;
    width: 88px;
    height: 66px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    border: 1px solid var(--lc-border);
}
.lc-play-side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lc-play-side-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: space-between; }
.lc-play-side-item-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-play-side-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.lc-play-side-tag {
    color: var(--lc-accent);
    background: rgba(255, 95, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.lc-play-side-rating { color: #c90; font-weight: 600; }

/* 兼容旧类名 */
.lc-player-box {
    background: #000;
    border-radius: var(--lc-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}
.lc-ep-nav {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.lc-ep-nav a, .lc-ep-nav span {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    text-align: center;
    font-size: 13px;
}
.lc-ep-nav span { opacity: 0.5; pointer-events: none; }

/* 页脚 */
.lc-foot {
    text-align: center;
    padding: 24px 16px;
    font-size: 12px;
    color: var(--lc-muted);
}
