/* ============================================================
   影视剧场公共样式
   theater.php / theater_list.php / theater_detail.php / theater_play.php 共用
   修改剧场频道公共外观只需改这一个文件
   ============================================================ */
@font-face {font-family:"alimama";src:url('/assets/font/YuanTiVF-Thin.woff2') format("woff2");}
a { text-decoration: none !important; }
body { background: #0a0a0f; color: #e0e0e0; font-family: "alimama","Open Sans",Arial,"Hiragino Sans GB","Microsoft YaHei","STHeiti","WenQuanYi Micro Hei",SimSun,sans-serif !important; }

/* ===== 剧场顶部栏 ===== */
.theater-topbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 14px 30px; display: flex; justify-content: space-between; align-items: center;
}
.theater-topbar .logo {
    display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-decoration: none;
}
.theater-topbar .logo i { -webkit-text-fill-color: #667eea; font-size: 1.5rem; }
.theater-topbar .search-box { flex: 1; max-width: 500px; margin: 0 30px; }
.theater-topbar .search-box input {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(102,126,234,0.3);
    color: #fff; border-radius: 25px; padding: 8px 18px;
}
.theater-topbar .search-box input::placeholder { color: rgba(255,255,255,0.4); }
.theater-topbar .search-box input:focus {
    background: rgba(255,255,255,0.12); border-color: #667eea; outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.theater-topbar .back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border: none; padding: 9px 22px; border-radius: 25px;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; gap: 7px; font-size: 0.9rem; text-decoration: none;
}
.theater-topbar .back-btn:hover { transform: translateX(-3px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); color: #fff; }
.theater-body { max-width: 1600px; margin: 0 auto; padding: 25px 30px 60px; }

@media (max-width: 768px) {
    .theater-topbar { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .theater-topbar .search-box { order: 3; flex: 100%; margin: 0; }
    .theater-body { padding: 15px 14px 40px; }
}

/* ===== 面包屑 ===== */
.t-breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 20px; }
.t-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.t-breadcrumb a:hover { color: #667eea; }
.t-breadcrumb .sep { margin: 0 8px; }

/* ===== 区块标题 ===== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(102, 126, 234, 0.3); }
.section-header h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-header h3::before { content: ''; width: 4px; height: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 2px; }
.section-header .more { color: #888; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.section-header .more:hover { color: #667eea; }

/* ===== 视频卡片网格 ===== */
.theater-grid,
.video-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1400px) { .theater-grid, .video-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1100px) { .theater-grid, .video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .theater-grid, .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .theater-grid, .video-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 视频卡片 ===== */
.movie-card {
    position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: all 0.4s; background: #15151f; text-decoration: none; color: inherit; display: block;
}
.movie-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(102,126,234,0.3); }
.movie-card .cover {
    width: 100%; aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.movie-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.movie-card:hover .cover img { transform: scale(1.08); }
.movie-card .cover .placeholder { color: rgba(255,255,255,0.2); font-size: 2.5rem; }
.movie-card .cover .quality-tag {
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; z-index: 2;
    max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movie-card .cover .play-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; z-index: 1;
}
.movie-card:hover .cover .play-overlay { opacity: 1; }
.movie-card .cover .play-overlay .play-btn {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; transform: scale(0.8); transition: transform 0.3s;
}
.movie-card:hover .cover .play-overlay .play-btn { transform: scale(1); }
.movie-card .info { padding: 12px 12px 14px; }
.movie-card .info .title {
    color: #e0e0e0; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.movie-card .info .meta { color: rgba(255,255,255,0.5); font-size: 0.8rem; display: flex; justify-content: space-between; align-items: center; }
.movie-card .info .meta .cate { color: #667eea; }
.movie-card .info .meta .year { color: rgba(255,255,255,0.45); }

/* ===== 选集按钮 ===== */
.ep-btn {
    padding: 10px 14px; border-radius: 8px;
    background: rgba(255,255,255,0.06); color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.1); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: all 0.3s;
}
.ep-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border-color: transparent; transform: translateY(-2px);
}

/* ===== 分页 ===== */
.theater-pagination { display: flex; justify-content: center; margin-top: 40px; gap: 6px; }
.theater-pagination a, .theater-pagination span {
    padding: 8px 16px; border-radius: 8px; font-size: 0.9rem;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
    text-decoration: none; transition: all 0.3s; border: 1px solid transparent;
}
.theater-pagination a:hover { color: #fff; background: rgba(102,126,234,0.2); border-color: rgba(102,126,234,0.4); }
.theater-pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border-color: transparent;
}
.theater-pagination .disabled { opacity: 0.3; cursor: not-allowed; }
.empty-state { text-align: center; padding: 80px 20px; color: rgba(255,255,255,0.4); }
.empty-state i { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }
.empty-state p { font-size: 1.1rem; }

/* ===== 影视剧场页脚 ===== */
.theater-footer {
    background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, rgba(15,15,25,0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102,126,234,0.2);
    margin-top: 50px;
    padding: 40px 30px 22px;
}
.footer-inner { max-width: 1600px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .brand-logo {
    font-size: 1.5rem; font-weight: 800; margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: flex; align-items: center; gap: 10px;
}
.footer-brand .brand-logo i { -webkit-text-fill-color: #667eea; font-size: 1.7rem; }
.footer-brand .brand-desc { color: rgba(255,255,255,0.55); line-height: 1.8; font-size: 0.9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 {
    color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.footer-col h4::before {
    content: ''; width: 3px; height: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 2px;
}
.footer-col a {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.55); font-size: 0.88rem; padding: 5px 0;
    text-decoration: none; transition: all 0.25s;
}
.footer-col a:hover { color: #667eea; transform: translateX(4px); }
.footer-col a i { color: rgba(102,126,234,0.7); width: 14px; text-align: center; }
.footer-bottom { padding-top: 22px; text-align: center; }
.footer-bottom .copy { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 6px; }
.footer-bottom .disc { color: rgba(255,255,255,0.35); font-size: 0.78rem; line-height: 1.6; }
@media (max-width: 768px) {
    .theater-footer { padding: 30px 16px 15px; margin-top: 30px; }
    .footer-top { grid-template-columns: 1fr; gap: 25px; }
    .footer-brand .brand-logo { font-size: 1.25rem; }
    .footer-brand .brand-desc { font-size: 0.82rem; }
}