/* Streamline 模板 - 现代简约明亮主题 */
:root {
    /* 明亮背景 - 现代简约 */
    --streamline-bg: #ffffff;
    --streamline-bg-secondary: #f8fafc;
    --streamline-bg-tertiary: #f1f5f9;

    /* 主色调 - 蓝色系（现代科技感） */
    --streamline-primary: #3b82f6;
    --streamline-primary-hover: #2563eb;
    --streamline-primary-light: #60a5fa;
    --streamline-primary-dark: #1d4ed8;

    /* 文字颜色 */
    --streamline-text: #1e293b;
    --streamline-text-secondary: #64748b;
    --streamline-text-tertiary: #94a3b8;

    /* 边框和阴影 */
    --streamline-border: rgba(0, 0, 0, 0.1);
    --streamline-border-light: rgba(0, 0, 0, 0.05);
    --streamline-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --streamline-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --streamline-shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* 渐变 */
    --streamline-gradient: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    --streamline-gradient-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.streamline-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--streamline-bg);
    color: var(--streamline-text);
    line-height: 1.6;
    min-height: 100vh;
}

.streamline-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏 - 全新设计 */
.streamline-header {
    background: var(--streamline-bg);
    border-bottom: 2px solid var(--streamline-bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.streamline-header-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.streamline-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid var(--streamline-border-light);
}

.streamline-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--streamline-text);
    font-weight: 800;
    font-size: 20px;
    transition: transform 0.2s;
}

.streamline-logo:hover {
    transform: scale(1.05);
}

.streamline-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--streamline-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.streamline-logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.streamline-logo:hover .streamline-logo-icon::before {
    transform: translateX(100%);
}

.streamline-logo-text {
    color: var(--streamline-text);
    letter-spacing: -0.5px;
}

.streamline-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.streamline-search-form {
    position: relative;
}

.streamline-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    background: var(--streamline-bg-secondary);
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 10px 18px;
    transition: all 0.3s;
}

.streamline-search-box:focus-within {
    width: 320px;
    border-color: var(--streamline-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.streamline-search-box svg {
    width: 18px;
    height: 18px;
    color: var(--streamline-text-tertiary);
    flex-shrink: 0;
}

.streamline-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--streamline-text);
    font-size: 14px;
    outline: none;
    font-weight: 500;
}

.streamline-search-input::placeholder {
    color: var(--streamline-text-tertiary);
    font-weight: 400;
}

.streamline-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: transparent;
    border: 2px solid var(--streamline-border-light);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.streamline-menu-toggle:hover {
    border-color: var(--streamline-primary);
    background: var(--streamline-bg-secondary);
}

.streamline-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--streamline-text);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

/* 导航栏 - 标签式设计 */
.streamline-nav {
    background: var(--streamline-bg-secondary);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.streamline-nav::-webkit-scrollbar {
    display: none;
}

.streamline-nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 12px 32px;
    min-width: max-content;
}

.streamline-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--streamline-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    background: transparent;
}

.streamline-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--streamline-primary);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    z-index: -1;
}

.streamline-nav-link:hover {
    color: var(--streamline-primary);
    transform: translateY(-2px);
}

.streamline-nav-link:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.streamline-nav-link.is-active {
    color: white;
    background: var(--streamline-primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.streamline-nav-link.is-active::before {
    opacity: 1;
    transform: scale(1);
}

.streamline-nav-text {
    position: relative;
    z-index: 1;
}

/* 主内容 */
.streamline-main {
    flex: 1;
    padding: 0;
}

.streamline-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 32px;
}

/* 顶部热门推荐区域 */
.streamline-top-section {
    margin: 48px 0 64px;
}

.streamline-top-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--streamline-text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.streamline-top-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--streamline-primary), var(--streamline-primary-light));
    border-radius: 2px;
}

.streamline-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.streamline-top-card {
    background: var(--streamline-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--streamline-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--streamline-border-light);
}

.streamline-top-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--streamline-shadow-lg);
    border-color: var(--streamline-primary-light);
}

.streamline-top-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.streamline-top-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--streamline-bg-secondary);
}

.streamline-top-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.streamline-top-card:hover .streamline-top-card-image img {
    transform: scale(1.1);
}

.streamline-top-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.streamline-top-card:hover .streamline-top-card-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.streamline-top-card-play {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.streamline-top-card:hover .streamline-top-card-play {
    opacity: 1;
    transform: scale(1);
}

.streamline-top-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.streamline-top-card-content {
    padding: 20px;
}

.streamline-top-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--streamline-text);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.streamline-top-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.streamline-top-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--streamline-primary-light);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.streamline-top-card-year {
    color: var(--streamline-text-secondary);
    font-size: 13px;
}

.streamline-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.streamline-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.streamline-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.streamline-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.streamline-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamline-featured-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.streamline-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 80px;
    z-index: 2;
    max-width: 1100px;
}

.streamline-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.streamline-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--streamline-primary);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.streamline-hero-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
}

.streamline-hero-rating svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.streamline-hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--streamline-text);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    letter-spacing: -1px;
}

.streamline-hero-description {
    font-size: 20px;
    color: var(--streamline-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 800px;
}

.streamline-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 16px;
    color: var(--streamline-text-secondary);
}

.streamline-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.streamline-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.streamline-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;
}

.streamline-hero-btn-primary {
    background: var(--streamline-primary);
    color: white;
}

.streamline-hero-btn-primary:hover {
    background: var(--streamline-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.streamline-hero-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--streamline-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.streamline-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.streamline-hero-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.streamline-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;
}

.streamline-hero-indicator.is-active {
    background: var(--streamline-primary);
    width: 32px;
    border-radius: 5px;
}

/* 分类区块 */
.streamline-section {
    margin-bottom: 64px;
}

.streamline-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--streamline-border-light);
}

.streamline-section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streamline-section-count {
    font-size: 14px;
    color: var(--streamline-text-tertiary);
    background: var(--streamline-bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.streamline-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--streamline-text);
    margin: 0;
}

.streamline-section-link {
    color: var(--streamline-text);
    text-decoration: none;
    transition: color 0.2s;
}

.streamline-section-link:hover {
    color: var(--streamline-primary);
}

.streamline-section-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--streamline-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--streamline-bg-secondary);
}

.streamline-section-more:hover {
    color: white;
    background: var(--streamline-primary);
    transform: translateX(4px);
    gap: 8px;
}

/* 视频网格 */
.streamline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .streamline-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .streamline-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 视频卡片 */
.streamline-card {
    background: var(--streamline-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--streamline-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.streamline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--streamline-primary), var(--streamline-primary-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.streamline-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    border-color: transparent;
}

.streamline-card:hover::before {
    opacity: 1;
}

.streamline-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.streamline-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--streamline-bg-secondary);
    border-radius: 16px 16px 0 0;
}

.streamline-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.streamline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.streamline-card:hover .streamline-card-image img {
    transform: scale(1.15);
}

.streamline-card-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.streamline-card:hover .streamline-card-hover {
    opacity: 1;
}

.streamline-card-play-btn {
    width: 64px;
    height: 64px;
    background: rgb(255 255 255 / 22%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.4s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.streamline-card:hover .streamline-card-play-btn {
    transform: scale(1);
}

.streamline-card-rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 20px;
    color: var(--streamline-text);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.streamline-card-content {
    padding: 16px;
    background: var(--streamline-bg);
}

.streamline-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--streamline-text);
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    transition: color 0.3s;
}

.streamline-card:hover .streamline-card-title {
    color: var(--streamline-primary);
}

.streamline-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.streamline-card-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: var(--streamline-bg-secondary);
    color: var(--streamline-text-secondary);
    border: 1px solid var(--streamline-border-light);
    transition: all 0.3s;
}

.streamline-card:hover .streamline-card-label {
    background: var(--streamline-primary-light);
    color: white;
    border-color: var(--streamline-primary-light);
}

.streamline-card-date {
    font-size: 13px;
    color: var(--streamline-text-tertiary);
}

/* 列表页 */
.streamline-page-header {
    margin-bottom: 40px;
}

.streamline-page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--streamline-text);
    margin-bottom: 12px;
}

.streamline-page-subtitle {
    font-size: 16px;
    color: var(--streamline-text-secondary);
}

.streamline-empty {
    text-align: center;
    padding: 120px 20px;
    color: var(--streamline-text-secondary);
}

.streamline-empty svg {
    margin: 0 auto 24px;
    color: var(--streamline-text-tertiary);
}

/* 分页 */
.streamline-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 64px;
    padding: 32px;
}

.streamline-pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--streamline-text);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--streamline-border);
    background: var(--streamline-bg-secondary);
    transition: all 0.2s;
    font-size: 14px;
}

.streamline-pagination-btn:hover {
    background: var(--streamline-primary);
    color: white;
    border-color: var(--streamline-primary);
}

.streamline-pagination-info {
    color: var(--streamline-text-secondary);
    font-size: 15px;
}

/* 详情页 */
.streamline-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px 24px;
    background: var(--streamline-bg-secondary);
    border: 1px solid var(--streamline-border);
    border-radius: 12px;
    font-size: 14px;
}

.streamline-breadcrumb-item {
    color: var(--streamline-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.streamline-breadcrumb-item:hover {
    color: var(--streamline-primary);
}

.streamline-breadcrumb-separator {
    color: var(--streamline-text-tertiary);
    user-select: none;
}

.streamline-breadcrumb-current {
    color: var(--streamline-text);
    font-weight: 600;
}

.streamline-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.streamline-detail-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.streamline-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--streamline-text);
    margin: 0;
    line-height: 1.3;
}

.streamline-detail-episode {
    font-size: 24px;
    color: var(--streamline-primary);
    font-weight: 600;
}

/* 播放器 */
.streamline-player-section {
    margin-bottom: 32px;
}

.streamline-player-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.streamline-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--streamline-shadow-xl);
}

/* 播放列表 */
.streamline-episode-section {
    background: var(--streamline-bg-secondary);
    border: 1px solid var(--streamline-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--streamline-shadow);
}

.streamline-episode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.streamline-episode-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--streamline-text);
}

.streamline-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(--streamline-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.streamline-episode-sort:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--streamline-primary);
}

.streamline-episode-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.streamline-episode-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.streamline-episode-group-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--streamline-text);
    margin-bottom: 4px;
}

.streamline-episode-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.streamline-episode-item {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--streamline-border);
    border-radius: 8px;
    color: var(--streamline-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.streamline-episode-item:hover {
    background: var(--streamline-primary);
    color: white;
    border-color: var(--streamline-primary);
    transform: translateY(-2px);
}

.streamline-episode-item.is-active {
    background: var(--streamline-primary);
    color: white;
    border-color: var(--streamline-primary);
    font-weight: 600;
}

.streamline-episode-btn {
    border: none;
    font-family: inherit;
}

/* 上一集/下一集导航 */
.streamline-episode-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.streamline-episode-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--streamline-bg-secondary);
    border: 1px solid var(--streamline-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--streamline-text);
    transition: all 0.2s;
}

.streamline-episode-nav-btn:hover {
    background: var(--streamline-primary);
    color: white;
    border-color: var(--streamline-primary);
    transform: translateY(-2px);
}

.streamline-episode-nav-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.streamline-episode-nav-label {
    font-size: 12px;
    color: var(--streamline-text-secondary);
}

.streamline-episode-nav-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--streamline-text);
}

.streamline-episode-nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 视频信息 */
.streamline-detail-info {
    margin-top: 8px;
}

.streamline-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.streamline-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.streamline-detail-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.15);
    color: var(--streamline-primary-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.streamline-detail-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: var(--streamline-text-secondary);
}

.streamline-detail-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--streamline-text-secondary);
}

.streamline-detail-stat svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* 简介 */
.streamline-detail-description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--streamline-border);
}

.streamline-detail-description-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--streamline-text);
    margin: 0 0 16px 0;
}

.streamline-detail-description-text {
    font-size: 15px;
    color: var(--streamline-text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* 相关推荐侧边栏 */
.streamline-detail-sidebar {
    position: sticky;
    top: 20px;
    background: var(--streamline-bg-secondary);
    border: 1px solid var(--streamline-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--streamline-shadow);
}

.streamline-detail-sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--streamline-text);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--streamline-border);
}

.streamline-detail-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.streamline-detail-sidebar-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--streamline-text);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.streamline-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(--streamline-shadow);
}

.streamline-detail-sidebar-poster {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--streamline-bg-tertiary);
    border: 1px solid var(--streamline-border);
}

.streamline-detail-sidebar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.streamline-detail-sidebar-item:hover .streamline-detail-sidebar-poster img {
    transform: scale(1.05);
}

.streamline-detail-sidebar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    justify-content: space-between;
}

.streamline-detail-sidebar-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--streamline-text);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.streamline-detail-sidebar-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-top: auto;
}

.streamline-detail-sidebar-tag {
    color: var(--streamline-primary-light);
    font-size: 12px;
    font-weight: 500;
    background: rgba(220, 38, 38, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.streamline-detail-sidebar-rating {
    color: #fbbf24;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 页脚 */
.streamline-footer {
    background: var(--streamline-bg-secondary);
    border-top: 1px solid var(--streamline-border);
    margin-top: 80px;
    padding: 40px 0;
}

.streamline-footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.streamline-footer-content {
    text-align: center;
}

.streamline-footer-text {
    color: var(--streamline-text-secondary);
    font-size: 14px;
}

/* 底部泛搜索列表 */
.streamline-footer-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--streamline-border-light);
    padding: 10px 0;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.streamline-footer-links-container {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    animation: streamline-footer-scroll 30s linear infinite;
    will-change: transform;
}

.streamline-footer-links-container:hover {
    animation-play-state: paused;
}

.streamline-footer-link {
    display: inline-block;
    padding: 6px 16px;
    color: var(--streamline-text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.streamline-footer-link:hover {
    color: white;
    background: var(--streamline-primary);
}

@keyframes streamline-footer-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 确保主内容不被底部链接遮挡 */
.streamline-app {
    padding-bottom: 50px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .streamline-content {
        padding: 0 24px;
    }

    .streamline-header-container {
        padding: 16px 24px;
    }
}

@media (max-width: 1024px) {
    .streamline-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .streamline-detail-sidebar {
        position: static;
    }

    .streamline-hero {
        height: 65vh;
        min-height: 500px;
        max-height: 600px;
        margin-left: calc(-24px);
        margin-right: calc(-24px);
        width: calc(100% + 48px);
        border-radius: 0;
    }

    .streamline-hero-content {
        padding: 60px 40px;
    }

    .streamline-hero-title {
        font-size: 48px;
    }

    .streamline-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .streamline-header-top {
        padding: 16px 20px;
    }

    .streamline-logo {
        font-size: 18px;
        gap: 8px;
    }

    .streamline-logo-icon {
        width: 28px;
        height: 28px;
    }

    .streamline-logo-text {
        font-size: 16px;
    }

    .streamline-header-actions {
        gap: 12px;
    }

    .streamline-search-box {
        width: 180px;
    }

    .streamline-search-box:focus-within {
        width: 220px;
    }

    .streamline-nav {
        display: none;
    }

    .streamline-menu-toggle {
        display: flex;
    }

    .streamline-nav-inner {
        padding: 12px 20px;
        gap: 4px;
    }

    .streamline-nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .streamline-content {
        padding: 0 20px;
    }

    .streamline-main {
        padding: 24px 0;
    }

    .streamline-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;
    }

    .streamline-hero-content {
        padding: 40px 24px;
    }

    .streamline-hero-title {
        font-size: 32px;
    }

    .streamline-hero-description {
        font-size: 15px;
    }

    .streamline-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .streamline-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .streamline-episode-nav {
        flex-direction: column;
    }

    .streamline-episode-items {
        gap: 8px;
    }

    .streamline-episode-item {
        padding: 8px 16px;
        font-size: 13px;
    }

    .streamline-detail-title {
        font-size: 24px;
    }

    .streamline-detail-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .streamline-detail-sidebar-poster {
        width: 100px;
        height: 70px;
    }

    .streamline-footer-links {
        padding: 8px 0;
    }

    .streamline-footer-link {
        font-size: 12px;
        padding: 4px 12px;
    }
}

