/* ========================================
   多多影院风格 - Netflix Dark Cinema Theme
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: #141414; color: #e5e5e5; line-height: 1.6; min-height: 100vh; overflow-x: hidden;
}
a { color: #e5e5e5; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.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; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(20,20,20,0.96) 100%);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px;
    display: flex; align-items: center; gap: 32px;
}
.logo { font-size: 1.4rem; font-weight: 700; color: #E50914; white-space: nowrap; letter-spacing: -0.5px; flex-shrink: 0; }
.logo:hover { color: #ff1a25; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; gap: 4px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block; padding: 8px 14px; font-size: 0.9rem; color: #b3b3b3;
    border-radius: 4px; transition: color 0.2s, background-color 0.2s; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.current { color: #ffffff; background-color: rgba(255,255,255,0.08); }
.main-nav > ul > li > a.current { color: #E50914; }
.header-search { display: flex; align-items: center; flex-shrink: 0; }
.header-search input {
    width: 200px; height: 36px; padding: 0 12px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15); border-right: none; border-radius: 4px 0 0 4px;
    color: #fff; font-size: 0.85rem; outline: none; transition: border-color 0.2s, background-color 0.2s;
}
.header-search input:focus { border-color: #E50914; background: rgba(255,255,255,0.12); }
.header-search input::placeholder { color: #666; }
.header-search button {
    height: 36px; padding: 0 16px; background: #E50914; border: 1px solid #E50914;
    border-radius: 0 4px 4px 0; color: #fff; font-size: 0.85rem; cursor: pointer;
    transition: background-color 0.2s; white-space: nowrap;
}
.header-search button:hover { background: #ff1a25; }
.mobile-btns { display: none; align-items: center; gap: 8px; margin-left: auto; }
.mobile-btns button {
    background: none; border: none; color: #e5e5e5; cursor: pointer; padding: 6px;
    border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s;
}
.mobile-btns button:hover { background: rgba(255,255,255,0.1); }
.search-panel { display: none; background: #1a1a1a; border-bottom: 1px solid rgba(255,255,255,0.08); }
.search-panel.show { display: block; }
.search-panel-inner { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 0; }
.search-panel-inner input {
    flex: 1; height: 40px; padding: 0 14px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15); border-right: none; border-radius: 4px 0 0 4px;
    color: #fff; font-size: 0.9rem; outline: none;
}
.search-panel-inner input:focus { border-color: #E50914; }
.search-panel-inner input::placeholder { color: #666; }
.search-panel-inner button {
    height: 40px; padding: 0 20px; background: #E50914; border: 1px solid #E50914;
    border-radius: 0 4px 4px 0; color: #fff; font-size: 0.9rem; cursor: pointer;
}
.search-panel-inner button:hover { background: #ff1a25; }
.mobile-nav { display: none; background: #1a1a1a; border-bottom: 1px solid rgba(255,255,255,0.08); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-nav.show { display: block; max-height: 500px; overflow-y: auto; }
.mobile-nav ul { padding: 8px 0; }
.mobile-nav li a { display: block; padding: 10px 24px; color: #b3b3b3; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.2s, background-color 0.2s; }
.mobile-nav li a:hover { color: #ffffff; background: rgba(229,9,20,0.1); }

/* Content Sections */
.content-section { max-width: 1400px; margin: 0 auto 48px; padding: 0 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title {
    font-size: 1.3rem; font-weight: 700; color: #ffffff; margin-bottom: 16px;
    position: relative; padding-left: 14px;
}
.section-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: #E50914; border-radius: 2px; }
.section-header .section-title { margin-bottom: 0; }
.more-link { font-size: 0.88rem; color: #999; transition: color 0.2s; }
.more-link:hover { color: #E50914; }

/* Video Grid */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item { position: relative; border-radius: 6px; overflow: hidden; background: #1a1a1a; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.item:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,0.6); z-index: 10; }
.item a { display: block; color: inherit; }
.item-thumb { position: relative; padding: 0 0 56.25%; overflow: hidden; background: #222; }
.item-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.item:hover .item-thumb img { transform: scale(1.08); }
.item-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%); pointer-events: none; }
.item .badge { position: absolute; top: 8px; right: 8px; background: #E50914; color: #ffffff; font-size: 0.72rem; padding: 2px 7px; border-radius: 3px; font-weight: 500; z-index: 2; }
.item .info { padding: 10px 10px 12px; }
.item .info h3 { font-size: 0.88rem; font-weight: 500; color: #e5e5e5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.item:hover .info h3 { color: #ffffff; }

/* Breadcrumb */
.breadcrumb { max-width: 1400px; margin: 0 auto; padding: 16px 24px; font-size: 0.85rem; color: #666; }
.breadcrumb a { color: #999; transition: color 0.2s; }
.breadcrumb a:hover { color: #E50914; }
.breadcrumb em { font-style: normal; margin: 0 6px; color: #555; }
.breadcrumb span { color: #e5e5e5; }

/* List/Type Page */
.list-page { max-width: 1400px; margin: 0 auto; padding: 24px; }
.list-layout { display: flex; gap: 32px; }
.sidebar { width: 220px; flex-shrink: 0; }
.sidebar-section h3 { font-size: 1rem; font-weight: 600; color: #ffffff; padding: 12px 0; border-bottom: 2px solid #E50914; margin-bottom: 8px; }
.sidebar-section ul li a { display: block; padding: 8px 12px; font-size: 0.88rem; color: #999; border-radius: 4px; transition: color 0.2s, background-color 0.2s; }
.sidebar-section ul li a:hover, .sidebar-section ul li a.current { color: #ffffff; background: rgba(229,9,20,0.12); }
.sidebar-section ul li a.current { color: #E50914; }
.sidebar-section ul li.sub-item a { padding-left: 28px; font-size: 0.82rem; }
.list-content { flex: 1; min-width: 0; }
.list-content .video-grid { grid-template-columns: repeat(4, 1fr); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.filter-bar .filter-label { font-size: 0.88rem; color: #888; padding: 6px 0; min-width: 60px; }
.filter-bar .filter-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-bar .filter-tags a { display: inline-block; padding: 5px 12px; font-size: 0.82rem; color: #999; background: rgba(255,255,255,0.06); border-radius: 4px; transition: all 0.2s; }
.filter-bar .filter-tags a:hover, .filter-bar .filter-tags a.current { color: #fff; background: rgba(229,9,20,0.2); }
.filter-bar .filter-tags a.current { color: #E50914; background: rgba(229,9,20,0.15); }

/* Detail Page */
.archive-page { max-width: 1400px; margin: 0 auto; padding: 0 24px 48px; }
.archive-page .breadcrumb { padding-left: 0; padding-right: 0; }
.detail-section { display: none; }

/* Route Tabs */
.route-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.route-tab { display: inline-block; padding: 8px 20px; background: rgba(255,255,255,0.08); color: #ccc; font-size: 0.88rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.12); cursor: pointer; transition: all 0.2s; }
.route-tab:hover { background: rgba(229,9,20,0.2); color: #E50914; border-color: rgba(229,9,20,0.4); }
.route-tab.active { background: #E50914; color: #fff; border-color: #E50914; }
.episode-group { display: none; }
.episode-group.active { display: block; }
.detail-layout { display: flex; gap: 32px; align-items: flex-start; }
.detail-poster { width: 260px; flex-shrink: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.detail-poster img { width: 100%; display: block; }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 1.8rem; font-weight: 700; color: #ffffff; margin-bottom: 20px; line-height: 1.3; }
.detail-info h1 small { display: inline-block; font-size: 1rem; font-weight: 600; color: #FFD700; background: rgba(255,215,0,0.12); padding: 3px 10px; border-radius: 4px; margin-left: 10px; vertical-align: middle; }
.meta-list { margin-bottom: 24px; }
.meta-item { display: flex; gap: 8px; padding: 6px 0; font-size: 0.92rem; line-height: 1.8; }
.meta-label { color: #888; flex-shrink: 0; min-width: 48px; }
.meta-value { color: #ccc; word-break: break-all; }
.meta-value a { color: #ccc; }
.meta-value a:hover { color: #E50914; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-block; background: rgba(229,9,20,0.12); color: #E50914; font-size: 0.8rem; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(229,9,20,0.25); transition: background-color 0.2s; }
.tag:hover { background: rgba(229,9,20,0.25); }
.btn-play { display: inline-block; padding: 12px 40px; background: #E50914; color: #fff; font-size: 1rem; font-weight: 600; border-radius: 6px; transition: background-color 0.2s, transform 0.2s; cursor: pointer; border: none; }
.btn-play:hover { background: #ff1a25; color: #fff; transform: translateY(-1px); }
.play-action { margin-top: 8px; }

/* Episode Section */
.vod-section, .episode-section { margin-bottom: 40px; }
.vod-group { margin-bottom: 20px; }
.vod-name { font-size: 0.95rem; font-weight: 600; color: #ccc; margin-bottom: 10px; }
.episode-list { display: flex; flex-wrap: wrap; gap: 8px; }
.episode-btn { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.08); color: #ccc; font-size: 0.82rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12); transition: all 0.2s ease; white-space: nowrap; }
.episode-btn:hover { background: rgba(229,9,20,0.2); color: #E50914; border-color: rgba(229,9,20,0.4); }
.episode-btn.current { background: #E50914; color: #fff; border-color: #E50914; }

/* Description */
.desc-section { margin-bottom: 40px; }
.description { font-size: 0.92rem; color: #999; line-height: 1.8; }

/* Play Page */
.play-page { max-width: 1400px; margin: 0 auto; padding: 0 24px 48px; }
.play-page .breadcrumb { padding-left: 0; padding-right: 0; }
.play-page h1 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.player-section { margin-bottom: 32px; }
.player-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.player-wrapper iframe, .player-wrapper video, .player-wrapper embed, .player-wrapper object { width: 100%; height: 100%; border: none; }

/* Search Page */
.search-page { max-width: 1400px; margin: 0 auto; padding: 24px; }
.search-count { font-size: 0.9rem; color: #888; margin-bottom: 20px; }
.search-count strong { color: #E50914; }
.no-result { text-align: center; padding: 60px 20px; }
.no-result p { font-size: 1rem; color: #999; margin-bottom: 8px; }
.no-result strong { color: #E50914; }

/* Paging */
.paging { margin: 40px 0 24px; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.paging a, .paging span, .paging ul > li > a, .paging ul > li > span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
    padding: 0 12px; font-size: 0.88rem; color: #b3b3b3; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; transition: all 0.2s ease; text-decoration: none;
}
.paging a:hover, .paging ul > li > a:hover { color: #fff; background: rgba(229,9,20,0.2); border-color: rgba(229,9,20,0.4); }
.paging a.current, .paging span.current, .paging .active a, .paging .active span { color: #fff; background: #E50914; border-color: #E50914; }
.paging a.disabled, .paging span.disabled { color: #555; cursor: default; pointer-events: none; opacity: 0.5; }
.paging ul { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; justify-content: center; }

/* Footer */
.site-footer {
    background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.06);
    padding: 32px 0 24px; margin-top: 48px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.site-footer nav a { font-size: 0.85rem; color: #666; transition: color 0.2s; }
.site-footer nav a:hover { color: #E50914; }
.site-footer p { font-size: 0.8rem; color: #444; }

/* Comment Section */
.comment-section { margin-bottom: 40px; }
.comment-section .section-title { margin-bottom: 20px; }
.comment-form { margin-bottom: 24px; }
.comment-form textarea { width: 100%; height: 80px; padding: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: #e5e5e5; font-size: 0.9rem; resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: #E50914; }
.comment-form button { margin-top: 8px; padding: 8px 24px; background: #E50914; border: none; border-radius: 4px; color: #fff; cursor: pointer; font-size: 0.88rem; }
.comment-form button:hover { background: #ff1a25; }

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .header-inner { gap: 16px; }
    .header-search input { width: 160px; }
    .video-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .list-content .video-grid { grid-template-columns: repeat(4, 1fr); }
    .detail-poster { width: 200px; }
    .detail-info h1 { font-size: 1.5rem; }
    .sidebar { width: 170px; }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; height: 56px; gap: 12px; }
    .main-nav { display: none; }
    .header-search { display: none; }
    .mobile-btns { display: flex; }
    .video-grid { grid-template-columns: 1fr; gap: 10px; }
    .list-content .video-grid { grid-template-columns: 1fr; }
    .content-section { padding: 0 16px; margin-bottom: 32px; }
    .section-title { font-size: 1.1rem; margin-bottom: 12px; }
    .list-page { padding: 16px; }
    .list-layout { flex-direction: column; gap: 20px; }
    .sidebar { width: 100%; }
    .sidebar-section ul { display: flex; flex-wrap: wrap; gap: 4px; }
    .detail-layout { flex-direction: column; gap: 20px; }
    .detail-poster { width: 180px; margin: 0 auto; }
    .detail-info h1 { font-size: 1.3rem; text-align: center; }
    .play-action { text-align: center; }
    .archive-page { padding: 0 16px 32px; }
    .play-page { padding: 0 16px 32px; }
    .breadcrumb { padding: 12px 16px; font-size: 0.8rem; }
    .paging a, .paging span, .paging ul > li > a, .paging ul > li > span { min-width: 34px; height: 34px; padding: 0 8px; font-size: 0.82rem; }
    .site-footer { padding: 24px 0 20px; margin-top: 32px; }
}

/* Responsive: Small */
@media (max-width: 480px) {
    .logo { font-size: 1.15rem; }
    .video-grid { grid-template-columns: 1fr; gap: 8px; }
    .list-content .video-grid { grid-template-columns: 1fr; }
    .content-section { padding: 0 12px; margin-bottom: 24px; }
    .section-title { font-size: 1rem; }
    .item .info { padding: 6px 6px 8px; }
    .item .info h3 { font-size: 0.78rem; }
    .item .badge { font-size: 0.65rem; padding: 1px 5px; top: 5px; right: 5px; }
    .detail-poster { width: 150px; }
    .detail-info h1 { font-size: 1.15rem; }
    .btn-play { padding: 10px 32px; font-size: 0.9rem; }
    .episode-btn { padding: 5px 12px; font-size: 0.78rem; }
}
.mobile-btns {
    display: flex;
    gap: 10px;
}

/* 高级圆形按钮 */
.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    position: relative;
    transition: all 0.25s ease;
}

/* hover效果 */
.btn-icon:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
}

/* 点击效果 */
.btn-icon:active {
    transform: scale(0.95);
}

/* 🔍 搜索图标 */
.search-btn::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.search-btn::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    bottom: 10px;
    right: 10px;
    border-radius: 2px;
}

/* ☰ 菜单图标 */
.menu-btn::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    top: 11px;
    left: 10px;
    box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}
@media (min-width: 768px) {
    .header-search {
        display: none !important;
    }
}


/* =========================
   PC：10列自动换行
========================= */
.netflix-grid{
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px;
}

/* 卡片 */
.nf-card{
    min-width: 0;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* 图片 */
.nf-card img{
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* 标题 */
.nf-card span{
    display:block;
    padding:6px;
    font-size:12px;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* hover */
.nf-card:hover{
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,.6);
}

/* =========================
   手机：5列
========================= */
@media (max-width:768px){
    .netflix-grid{
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }
}