/* 91 视频风格 - 深色紧凑网格 */
:root {
    --v91-bg: #0d0d0d;
    --v91-card: #161616;
    --v91-border: #2a2a2a;
    --v91-text: #e5e5e5;
    --v91-text2: #737373;
    --v91-accent: #ff6b35;
    --v91-radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.v91-body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--v91-bg);
    color: var(--v91-text);
    line-height: 1.5;
    min-height: 100vh;
}

.v91-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* 顶栏 - 简洁 */
.v91-header {
    background: #0a0a0a;
    border-bottom: 1px solid var(--v91-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.v91-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.v91-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--v91-accent);
    text-decoration: none;
    flex-shrink: 0;
}

.v91-logo:hover { color: #ff8555; }

.v91-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.v91-nav-link {
    padding: 6px 12px;
    color: var(--v91-text2);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--v91-radius);
    transition: color .2s, background .2s;
}

.v91-nav-link:hover { color: var(--v91-text); background: rgba(255,255,255,.06); }
.v91-nav-link.is-active { color: var(--v91-accent); background: rgba(255,107,53,.12); }

.v91-search {
    display: flex;
    align-items: center;
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    border-radius: 20px;
    overflow: hidden;
}

.v91-search-input {
    width: 160px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--v91-text);
    font-size: 13px;
}

.v91-search-input::placeholder { color: var(--v91-text2); }
.v91-search-input:focus { outline: none; }

.v91-search-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: var(--v91-text2);
    cursor: pointer;
    font-size: 14px;
}

.v91-menu-btn { display: none; border: none; background: none; color: var(--v91-text); font-size: 18px; cursor: pointer; padding: 8px; }

/* 主内容 */
.v91-main { flex: 1; min-width: 0; }
.v91-container { max-width: 1400px; margin: 0 auto; padding: 16px; }

/* 区块 */
.v91-section { margin-bottom: 24px; }
.v91-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.v91-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--v91-text);
    margin: 0;
}
.v91-section-title a { color: inherit; text-decoration: none; }
.v91-section-title a:hover { color: var(--v91-accent); }
.v91-section-more {
    font-size: 13px;
    color: var(--v91-text2);
    text-decoration: none;
}
.v91-section-more:hover { color: var(--v91-accent); }
.v91-section .v91-section-more { margin-top: 0; padding-top: 0; border-top: none; }

/* 分类标签 */
.v91-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.v91-tab {
    padding: 6px 14px;
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    border-radius: 20px;
    color: var(--v91-text2);
    text-decoration: none;
    font-size: 12px;
    transition: border-color .2s, color .2s, background .2s;
}

.v91-tab:hover,
.v91-tab.is-active {
    border-color: var(--v91-accent);
    color: var(--v91-accent);
    background: rgba(255,107,53,.08);
}

/* ========== 最新更新 - 独立排版（左大图 + 右列表） ========== */
.v91-latest {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .v91-latest { grid-template-columns: 1fr; }
}

.v91-latest-featured {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    transition: border-color .2s, box-shadow .2s;
}
.v91-latest-featured:hover {
    border-color: var(--v91-accent);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.v91-latest-featured-pic {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--v91-border);
}
.v91-latest-featured-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.v91-latest-featured:hover .v91-latest-featured-pic img {
    transform: scale(1.04);
}

.v91-latest-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}
.v91-latest-play svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.5));
}
.v91-latest-featured:hover .v91-latest-play { opacity: 1; }

.v91-latest-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0,0,0,.8);
    color: #fff;
    border-radius: 4px;
    z-index: 1;
}

.v91-latest-featured-info {
    padding: 14px 16px;
}
.v91-latest-featured-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v91-latest-featured-meta {
    font-size: 12px;
    color: var(--v91-text2);
    margin: 0;
}

/* 右侧列表 - 横条带序号 */
.v91-latest-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    border-radius: 12px;
    overflow: hidden;
}

.v91-latest-item {
    display: grid;
    grid-template-columns: 28px 72px 1fr 24px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--v91-border);
    transition: background .2s;
}
.v91-latest-item:last-child { border-bottom: none; }
.v91-latest-item:hover {
    background: rgba(255,107,53,.06);
}

.v91-latest-item-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--v91-text2);
    line-height: 1;
}
.v91-latest-item:hover .v91-latest-item-num { color: var(--v91-accent); }

.v91-latest-item-pic {
    position: relative;
    width: 72px;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background: var(--v91-border);
    flex-shrink: 0;
}
.v91-latest-item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v91-latest-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.v91-latest-item-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v91-latest-item-meta {
    font-size: 11px;
    color: var(--v91-text2);
}
.v91-latest-item-arrow {
    font-size: 14px;
    color: var(--v91-text2);
    opacity: 0;
    transition: opacity .2s;
}
.v91-latest-item:hover .v91-latest-item-arrow { opacity: 1; color: var(--v91-accent); }

@media (max-width: 900px) {
    .v91-latest-list { max-height: 420px; overflow-y: auto; }
    .v91-latest-item { grid-template-columns: 24px 64px 1fr 20px; gap: 10px; padding: 8px 12px; }
    .v91-latest-item-pic { width: 64px; }
    .v91-latest-item-num { font-size: 13px; }
    .v91-latest-item-title { font-size: 12px; }
}

/* 网格 - 16:9 卡片，图内底栏叠字（流媒体风格）- 用于下方分类区块 */
.v91-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.v91-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.v91-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,107,53,.25);
}

.v91-card-pic {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--v91-border);
}

.v91-card-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.v91-card:hover .v91-card-pic img {
    transform: scale(1.06);
}

/* 底部渐变 + 标题叠在图上 */
.v91-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,.85) 45%, rgba(0,0,0,.95) 100%);
    color: #fff;
}

.v91-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.v91-card-meta {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    margin-top: 4px;
    padding: 0;
}

/* 悬停播放图标 - 居中 */
.v91-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}

.v91-card-play svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.v91-card:hover .v91-card-play { opacity: 1; }

/* 时长/集数角标 - 右上角 */
.v91-card-duration {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,.75);
    color: #fff;
    border-radius: 4px;
    z-index: 1;
}

/* 详情页 */
.v91-detail-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.v91-detail-poster {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--v91-radius);
    overflow: hidden;
    background: var(--v91-border);
}

.v91-detail-poster-link { display: block; height: 100%; }
.v91-detail-poster-link img { width: 100%; height: 100%; object-fit: cover; }
.v91-detail-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 48px;
    opacity: 0;
    transition: opacity .2s;
}

.v91-detail-poster-link:hover .v91-detail-play { opacity: 1; }
.v91-detail-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    background: var(--v91-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
}

.v91-detail-info { min-width: 0; }
.v91-detail-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.v91-detail-meta-line { font-size: 13px; color: var(--v91-text2); margin-bottom: 16px; }
.v91-detail-actions { margin-bottom: 20px; }

.v91-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--v91-accent);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: var(--v91-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.v91-btn:hover { background: #ff8555; }
.v91-btn-ghost { background: transparent; border: 1px solid var(--v91-border); color: var(--v91-text); }
.v91-btn-ghost:hover { border-color: var(--v91-accent); color: var(--v91-accent); }

.v91-detail-ep { margin-bottom: 20px; }
.v91-detail-ep-group { margin-bottom: 12px; }
.v91-detail-ep-line { font-size: 12px; color: var(--v91-text2); margin-bottom: 6px; display: block; }
.v91-detail-ep-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.v91-detail-ep-item {
    padding: 6px 12px;
    background: var(--v91-bg);
    border: 1px solid var(--v91-border);
    border-radius: 4px;
    color: var(--v91-text);
    text-decoration: none;
    font-size: 12px;
    transition: border-color .2s, color .2s;
}
.v91-detail-ep-item:hover {
    border-color: var(--v91-accent);
    color: var(--v91-accent);
}

.v91-detail-plot { margin-top: 20px; }
.v91-detail-plot h3 { font-size: 14px; margin-bottom: 8px; color: var(--v91-text2); }
.v91-detail-plot p { font-size: 13px; color: var(--v91-text2); line-height: 1.7; }

/* 播放页 - 主区 + 侧边播放列表 + 泛列表 */
.v91-play-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1024px) {
    .v91-play-layout { grid-template-columns: 1fr; }
}

.v91-player-wrap {
    position: relative;
    border-radius: var(--v91-radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.v91-player-box { aspect-ratio: 16/9; width: 100%; }

.v91-play-info { margin-bottom: 8px; }
.v91-play-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.v91-play-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--v91-text2);
}
.v91-play-ep-now {
    padding: 4px 10px;
    background: rgba(255,107,53,.15);
    color: var(--v91-accent);
    border-radius: 4px;
    font-weight: 600;
}
.v91-play-meta-item { color: var(--v91-text2); }
.v91-play-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.v91-play-lines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.v91-play-lines-label { font-size: 12px; color: var(--v91-text2); }
.v91-play-line {
    padding: 6px 12px;
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    border-radius: 4px;
    color: var(--v91-text2);
    text-decoration: none;
    font-size: 12px;
    transition: border-color .2s, color .2s;
}
.v91-play-line:hover,
.v91-play-line.is-active {
    border-color: var(--v91-accent);
    color: var(--v91-accent);
}

.v91-play-plot {
    padding: 14px 0;
    border-top: 1px solid var(--v91-border);
}
.v91-play-plot-title { font-size: 14px; color: var(--v91-text2); margin-bottom: 8px; }
.v91-play-plot-text { font-size: 13px; color: var(--v91-text2); line-height: 1.6; margin-bottom: 8px; }
.v91-play-plot-more { font-size: 12px; color: var(--v91-accent); text-decoration: none; }
.v91-play-plot-more:hover { text-decoration: underline; }

/* 侧边 - 播放列表 */
.v91-play-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 64px;
}
@media (max-width: 1024px) {
    .v91-play-sidebar { position: static; }
}

.v91-play-list-box {
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    border-radius: 10px;
    overflow: hidden;
}
.v91-play-list-title {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--v91-border);
    margin: 0;
}
.v91-play-list-inner {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}
.v91-play-list-line {
    padding: 6px 8px;
    font-size: 11px;
    color: var(--v91-text2);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.v91-play-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--v91-text);
    font-size: 13px;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.v91-play-list-item:hover { background: rgba(255,255,255,.05); color: var(--v91-accent); }
.v91-play-list-item.is-active {
    background: rgba(255,107,53,.15);
    color: var(--v91-accent);
    font-weight: 500;
}
.v91-play-list-num {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--v91-text2);
}
.v91-play-list-item.is-active .v91-play-list-num { color: var(--v91-accent); }
.v91-play-list-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 侧边 - 热门推荐（泛列表） */
.v91-play-recommend {
    background: var(--v91-card);
    border: 1px solid var(--v91-border);
    border-radius: 10px;
    overflow: hidden;
}
.v91-play-recommend-title {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--v91-border);
    margin: 0;
}
.v91-play-recommend-list {
    list-style: none;
    padding: 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.v91-play-recommend-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
}
.v91-play-recommend-pic {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--v91-border);
    display: block;
}
.v91-play-recommend-pic img { width: 100%; height: 100%; object-fit: cover; }
.v91-play-recommend-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: opacity .2s;
}
.v91-play-recommend-pic:hover .v91-play-recommend-play { opacity: 1; }

.v91-play-recommend-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.v91-play-recommend-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--v91-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v91-play-recommend-name:hover { color: var(--v91-accent); }
.v91-play-recommend-btn {
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 12px;
    background: var(--v91-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s;
}
.v91-play-recommend-btn:hover { background: #ff8555; color: #fff; }

/* 分页 */
.v91-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
}

.v91-pag-btn {
    padding: 8px 18px;
    background: var(--v91-accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--v91-radius);
    font-size: 13px;
}

.v91-pag-btn:hover { background: #ff8555; color: #fff; }
.v91-pag-info { color: var(--v91-text2); font-size: 13px; }

.v91-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--v91-text2);
    background: var(--v91-card);
    border-radius: var(--v91-radius);
    border: 1px solid var(--v91-border);
}

/* 页脚 */
.v91-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--v91-border);
    text-align: center;
}

.v91-footer-text { font-size: 12px; color: var(--v91-text2); }

/* 移动端 */
@media (max-width: 900px) {
    .v91-nav { display: none; }
    .v91-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 48px; left: 0; right: 0; background: #0a0a0a; padding: 12px; gap: 4px; }
    .v91-menu-btn { display: block; }
    .v91-search-input { width: 120px; }
    .v91-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .v91-detail-top { grid-template-columns: 1fr; }
    .v91-detail-poster { max-width: 320px; }
    .v91-play-list-inner { max-height: 220px; }
}

@media (max-width: 600px) {
    .v91-container { padding: 12px; }
    .v91-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .v91-card-title { font-size: 12px; padding: 6px 8px 2px; }
    .v91-card-meta { font-size: 10px; padding: 0 8px 6px; }
}
