/* Theater 模板 - 影院风格深色主题 */
:root {
    /* 深色背景 - 影院氛围 */
    --theater-bg: #0a0a0a;
    --theater-bg-secondary: #141414;
    --theater-bg-tertiary: #1a1a1a;

    /* 主色调 - 红色系（影院经典色） */
    --theater-primary: #dc2626;
    --theater-primary-hover: #ef4444;
    --theater-primary-light: #f87171;
    --theater-primary-dark: #b91c1c;

    /* 文字颜色 */
    --theater-text: #ffffff;
    --theater-text-secondary: #d1d5db;
    --theater-text-tertiary: #9ca3af;

    /* 边框和阴影 */
    --theater-border: rgba(255, 255, 255, 0.1);
    --theater-border-light: rgba(255, 255, 255, 0.05);
    --theater-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --theater-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --theater-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.8);

    /* 渐变 */
    --theater-gradient: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --theater-gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.theater-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--theater-bg);
    color: var(--theater-text);
    line-height: 1.6;
    min-height: 100vh;
}

.theater-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏 */
.theater-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--theater-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--theater-shadow);
}

.theater-header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 32px;
}

.theater-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--theater-text);
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.theater-logo:hover {
    opacity: 0.8;
}

.theater-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--theater-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.theater-logo-text {
    color: var(--theater-text);
}

.theater-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.theater-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--theater-text-secondary);
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.theater-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.theater-nav-item:hover {
    color: var(--theater-text);
    background: rgba(255, 255, 255, 0.05);
}

.theater-nav-item.is-active {
    color: var(--theater-primary);
    background: rgba(220, 38, 38, 0.1);
    font-weight: 600;
}

.theater-nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--theater-primary);
    border-radius: 2px 2px 0 0;
}

.theater-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
}

.theater-search-form {
    flex-shrink: 0;
}

.theater-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--theater-border);
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s;
}

.theater-search-wrapper:focus-within {
    width: 360px;
    border-color: var(--theater-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.theater-search-wrapper svg {
    width: 18px;
    height: 18px;
    color: var(--theater-text-tertiary);
    flex-shrink: 0;
    margin-right: 10px;
}

.theater-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--theater-text);
    font-size: 14px;
    outline: none;
}

.theater-search-input::placeholder {
    color: var(--theater-text-tertiary);
}

.theater-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--theater-border);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

.theater-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theater-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--theater-text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* 主内容 */
.theater-main {
    flex: 1;
    padding: 0;
}

.theater-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 首页特殊样式 */
.theater-content:has(.theater-hero) {
    padding-top: 0;
}

/* 大屏轮播横幅 */
.theater-hero {
    position: relative;
    margin-bottom: 64px;
    border-radius: 0;
    overflow: hidden;
    height: 85vh;
    min-height: 700px;
    max-height: 1000px;
    box-shadow: var(--theater-shadow-xl);
    margin-left: calc(-32px);
    margin-right: calc(-32px);
    width: calc(100% + 64px);
}

.theater-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.theater-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.theater-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.theater-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.theater-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theater-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.theater-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 80px;
    z-index: 2;
    max-width: 1100px;
}

.theater-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.theater-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--theater-primary);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.theater-hero-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
}

.theater-hero-rating svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.theater-hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--theater-text);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    letter-spacing: -1px;
}

.theater-hero-description {
    font-size: 20px;
    color: var(--theater-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 800px;
}

.theater-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 16px;
    color: var(--theater-text-secondary);
}

.theater-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theater-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theater-hero-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.theater-hero-btn-primary {
    background: var(--theater-primary);
    color: white;
}

.theater-hero-btn-primary:hover {
    background: var(--theater-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.theater-hero-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--theater-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.theater-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.theater-hero-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.theater-hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.theater-hero-indicator.is-active {
    background: var(--theater-primary);
    width: 32px;
    border-radius: 5px;
}

/* 分类区块 */
.theater-section {
    margin-bottom: 64px;
}

.theater-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.theater-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--theater-text);
}

.theater-section-link {
    color: var(--theater-text);
    text-decoration: none;
    transition: color 0.2s;
}

.theater-section-link:hover {
    color: var(--theater-primary);
}

.theater-section-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--theater-text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.theater-section-more:hover {
    color: var(--theater-primary);
    gap: 10px;
}

/* 视频网格 */
.theater-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* 视频卡片 */
.theater-card {
    background: var(--theater-bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--theater-border);
    box-shadow: var(--theater-shadow);
    transition: all 0.3s;
}

.theater-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--theater-shadow-lg);
    border-color: var(--theater-primary);
}

.theater-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.theater-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--theater-bg-tertiary);
}

.theater-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.theater-card:hover .theater-card-poster img {
    transform: scale(1.1);
}

.theater-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.theater-card:hover .theater-card-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.theater-card-play-icon {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.theater-card:hover .theater-card-play-icon {
    opacity: 1;
    transform: scale(1);
}

.theater-card-info-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.theater-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.theater-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--theater-text);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.theater-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--theater-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.theater-card-body {
    padding: 20px;
}

.theater-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--theater-text);
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.theater-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.theater-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(220, 38, 38, 0.15);
    color: var(--theater-primary-light);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.theater-card-date {
    font-size: 13px;
    color: var(--theater-text-tertiary);
}

/* 列表页 */
.theater-page-header {
    margin-bottom: 40px;
}

.theater-page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--theater-text);
    margin-bottom: 12px;
}

.theater-page-subtitle {
    font-size: 16px;
    color: var(--theater-text-secondary);
}

.theater-empty {
    text-align: center;
    padding: 120px 20px;
    color: var(--theater-text-secondary);
}

.theater-empty svg {
    margin: 0 auto 24px;
    color: var(--theater-text-tertiary);
}

/* 分页 */
.theater-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 64px;
    padding: 32px;
}

.theater-pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--theater-text);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--theater-border);
    background: var(--theater-bg-secondary);
    transition: all 0.2s;
    font-size: 14px;
}

.theater-pagination-btn:hover {
    background: var(--theater-primary);
    color: white;
    border-color: var(--theater-primary);
}

.theater-pagination-info {
    color: var(--theater-text-secondary);
    font-size: 15px;
}

/* 详情页 */
.theater-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px 24px;
    background: var(--theater-bg-secondary);
    border: 1px solid var(--theater-border);
    border-radius: 12px;
    font-size: 14px;
}

.theater-breadcrumb-item {
    color: var(--theater-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.theater-breadcrumb-item:hover {
    color: var(--theater-primary);
}

.theater-breadcrumb-separator {
    color: var(--theater-text-tertiary);
    user-select: none;
}

.theater-breadcrumb-current {
    color: var(--theater-text);
    font-weight: 600;
}

.theater-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.theater-detail-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.theater-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--theater-text);
    margin: 0;
    line-height: 1.3;
}

.theater-detail-episode {
    font-size: 24px;
    color: var(--theater-primary);
    font-weight: 600;
}

/* 播放器 */
.theater-player-section {
    margin-bottom: 32px;
}

.theater-player-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.theater-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--theater-shadow-xl);
}

/* 播放列表 */
.theater-episode-section {
    background: var(--theater-bg-secondary);
    border: 1px solid var(--theater-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--theater-shadow);
}

.theater-episode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.theater-episode-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--theater-text);
}

.theater-episode-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    color: var(--theater-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.theater-episode-sort:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--theater-primary);
}

.theater-episode-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theater-episode-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theater-episode-group-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--theater-text);
    margin-bottom: 4px;
}

.theater-episode-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theater-episode-item {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--theater-border);
    border-radius: 8px;
    color: var(--theater-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.theater-episode-item:hover {
    background: var(--theater-primary);
    color: white;
    border-color: var(--theater-primary);
    transform: translateY(-2px);
}

.theater-episode-item.is-active {
    background: var(--theater-primary);
    color: white;
    border-color: var(--theater-primary);
    font-weight: 600;
}

.theater-episode-btn {
    border: none;
    font-family: inherit;
}

/* 上一集/下一集导航 */
.theater-episode-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.theater-episode-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--theater-bg-secondary);
    border: 1px solid var(--theater-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--theater-text);
    transition: all 0.2s;
}

.theater-episode-nav-btn:hover {
    background: var(--theater-primary);
    color: white;
    border-color: var(--theater-primary);
    transform: translateY(-2px);
}

.theater-episode-nav-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.theater-episode-nav-label {
    font-size: 12px;
    color: var(--theater-text-secondary);
}

.theater-episode-nav-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--theater-text);
}

.theater-episode-nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 视频信息 */
.theater-detail-info {
    margin-top: 8px;
}

.theater-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theater-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theater-detail-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.15);
    color: var(--theater-primary-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.theater-detail-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: var(--theater-text-secondary);
}

.theater-detail-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theater-text-secondary);
}

.theater-detail-stat svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* 简介 */
.theater-detail-description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--theater-border);
}

.theater-detail-description-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--theater-text);
    margin: 0 0 16px 0;
}

.theater-detail-description-text {
    font-size: 15px;
    color: var(--theater-text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* 相关推荐侧边栏 */
.theater-detail-sidebar {
    position: sticky;
    top: 20px;
    background: var(--theater-bg-secondary);
    border: 1px solid var(--theater-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--theater-shadow);
}

.theater-detail-sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--theater-text);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--theater-border);
}

.theater-detail-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theater-detail-sidebar-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--theater-text);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.theater-detail-sidebar-item:hover {
    transform: translateY(-2px);
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: var(--theater-shadow);
}

.theater-detail-sidebar-poster {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--theater-bg-tertiary);
    border: 1px solid var(--theater-border);
}

.theater-detail-sidebar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.theater-detail-sidebar-item:hover .theater-detail-sidebar-poster img {
    transform: scale(1.05);
}

.theater-detail-sidebar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    justify-content: space-between;
}

.theater-detail-sidebar-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--theater-text);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theater-detail-sidebar-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-top: auto;
}

.theater-detail-sidebar-tag {
    color: var(--theater-primary-light);
    font-size: 12px;
    font-weight: 500;
    background: rgba(220, 38, 38, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.theater-detail-sidebar-rating {
    color: #fbbf24;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 页脚 */
.theater-footer {
    background: var(--theater-bg-secondary);
    border-top: 1px solid var(--theater-border);
    margin-top: 80px;
    padding: 40px 0;
}

.theater-footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.theater-footer-content {
    text-align: center;
}

.theater-footer-text {
    color: var(--theater-text-secondary);
    font-size: 14px;
}

/* 底部泛搜索列表 */
.theater-footer-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--theater-border);
    padding: 10px 0;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.theater-footer-links-container {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    animation: theater-footer-scroll 30s linear infinite;
    will-change: transform;
}

.theater-footer-links-container:hover {
    animation-play-state: paused;
}

.theater-footer-link {
    display: inline-block;
    padding: 6px 16px;
    color: var(--theater-text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theater-footer-link:hover {
    color: var(--theater-primary);
    background: rgba(220, 38, 38, 0.1);
}

@keyframes theater-footer-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 确保主内容不被底部链接遮挡 */
.theater-app {
    padding-bottom: 50px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .theater-content {
        padding: 0 24px;
    }

    .theater-header-container {
        padding: 16px 24px;
    }
}

@media (max-width: 1024px) {
    .theater-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .theater-detail-sidebar {
        position: static;
    }

    .theater-hero {
        height: 65vh;
        min-height: 500px;
        max-height: 600px;
        margin-left: calc(-24px);
        margin-right: calc(-24px);
        width: calc(100% + 48px);
        border-radius: 0;
    }

    .theater-hero-content {
        padding: 60px 40px;
    }

    .theater-hero-title {
        font-size: 48px;
    }

    .theater-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .theater-header-container {
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .theater-logo {
        font-size: 18px;
        gap: 8px;
        flex-shrink: 0;
    }

    .theater-logo-icon {
        width: 32px;
        height: 32px;
    }

    .theater-logo-text {
        display: none;
    }

    .theater-nav {
        display: none;
    }

    .theater-header-right {
        gap: 12px;
        flex: 1;
        justify-content: flex-end;
    }

    .theater-search-form {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
    }

    .theater-search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .theater-search-wrapper:focus-within {
        max-width: 100%;
    }

    .theater-menu-toggle {
        display: flex;
        flex-shrink: 0;
        min-width: 44px;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
    }

    .theater-content {
        padding: 0 20px;
    }

    .theater-main {
        padding: 24px 0;
    }

    .theater-hero {
        height: 55vh;
        min-height: 400px;
        max-height: 500px;
        margin-bottom: 40px;
        margin-left: calc(-20px);
        margin-right: calc(-20px);
        width: calc(100% + 40px);
        border-radius: 0;
    }

    .theater-hero-content {
        padding: 40px 24px;
    }

    .theater-hero-title {
        font-size: 32px;
    }

    .theater-hero-description {
        font-size: 15px;
    }

    .theater-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .theater-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .theater-episode-nav {
        flex-direction: column;
    }

    .theater-episode-items {
        gap: 8px;
    }

    .theater-episode-item {
        padding: 8px 16px;
        font-size: 13px;
    }

    .theater-detail-title {
        font-size: 24px;
    }

    .theater-detail-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .theater-detail-sidebar-poster {
        width: 100px;
        height: 70px;
    }

    .theater-footer-links {
        padding: 8px 0;
    }

    .theater-footer-link {
        font-size: 12px;
        padding: 4px 12px;
    }
}

