@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #007AFF;
    --color-primary-rgb: 0, 122, 255;
    --color-secondary: #5856D6;
    --color-secondary-rgb: 88, 86, 214;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-background: #FFFFFF;
    --color-card: #F9FAFB;
    --color-card-hover: #F3F4F6;
    --color-border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-base: all 0.3s ease;
    --border-radius-base: 8px;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    --letter-spacing-base: -0.01em;
    --color-twitter: #1DA1F2;
    --color-linkedin: #0077B5;
    --color-youtube: #FF0000;
}

.dark {
    --color-primary: #3B82F6;
    --color-primary-rgb: 59, 130, 246;
    --color-secondary: #8B5CF6;
    --color-secondary-rgb: 139, 92, 246;
    --color-text: #F9FAFB;
    --color-text-light: #D1D5DB;
    --color-background: #111827;
    --color-card: #1F2937;
    --color-card-hover: #374151;
    --color-border: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Base styles with improved readability */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Text styling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Card styling */
.social-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    height: 100%;
}

.social-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Control Panel Styling */
.modern-control-panel {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    animation: slideInFromTop 0.6s ease-out;
}

.modern-control-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-control-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-control-panel:hover::before {
    opacity: 1;
}

/* View Tab Styling */
.view-tab {
    position: relative;
    background: transparent;
    color: #6B7280;
    border: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.view-tab:hover {
    color: #374151;
}

.view-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #1F2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark .view-tab {
    color: #9CA3AF;
}

.dark .view-tab:hover {
    color: #D1D5DB;
}

.dark .view-tab.active {
    background: rgba(55, 65, 81, 0.9);
    color: #F9FAFB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Filter Group Styling */
.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* 级联筛选器样式 */
.translation-group {
    opacity: 0.4;
    pointer-events: none;
    transform: scale(0.95);
    position: relative;
}

.translation-group.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* 级联筛选器提示 */
.translation-group::after {
    content: 'YouTube 专用';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.translation-group:not(.active):hover::after {
    opacity: 1;
}

/* 时间线专用筛选器 */
.timeline-only {
    display: flex;
}

.creators-mode .timeline-only {
    display: none;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .filter-label {
    color: #9CA3AF;
}

.filter-buttons {
    display: flex;
    gap: 4px;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.dark .filter-buttons {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
}

/* Filter Button Styling */
.platform-filter, .translation-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #6B7280;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* 确保子元素不会干扰点击事件 */
.platform-filter *, .translation-filter * {
    pointer-events: none;
}

.platform-filter:hover, .translation-filter:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    transform: translateY(-1px);
}

.platform-filter.active, .translation-filter.active {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.platform-filter.active::before, .translation-filter.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-filter.active:hover::before, .translation-filter.active:hover::before {
    opacity: 1;
}

.dark .platform-filter, .dark .translation-filter {
    color: #9CA3AF;
}

.dark .platform-filter:hover, .dark .translation-filter:hover {
    background: rgba(55, 65, 81, 0.8);
    color: #D1D5DB;
}

.dark .platform-filter.active, .dark .translation-filter.active {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Platform specific colors */
.platform-filter[data-platform="youtube"].active {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.platform-filter[data-platform="twitter"].active {
    background: linear-gradient(135deg, #1DA1F2, #0D8BD9);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

/* Translation specific colors */
.translation-filter[data-translation="translated"].active {
    background: linear-gradient(135deg, #10B981, #047857);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.translation-filter[data-translation="original"].active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Separator Styling */
.separator {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #E5E7EB, transparent);
    margin: 0 8px;
}

.dark .separator {
    background: linear-gradient(to bottom, transparent, #4B5563, transparent);
}

/* Active Filters Styling */
.active-filters {
    position: relative;
    padding: 8px 0;
}

.active-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #E5E7EB, transparent);
}

.dark .active-filters::before {
    background: linear-gradient(to right, transparent, #4B5563, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-group {
        margin-bottom: 12px;
    }
    
    .separator {
        display: none;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    
    .platform-filter, .translation-filter {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }
    
    .modern-control-panel {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .modern-control-panel:hover {
        transform: none;
    }
    
    .filter-label {
        font-size: 11px;
    }
    
    .active-filters {
        padding: 6px 0;
    }
    
    .active-filters span {
        font-size: 11px;
    }
    
    /* 移动端级联筛选器优化 */
    .translation-group {
        transition: all 0.3s ease;
    }
    
    .translation-group:not(.active) {
        opacity: 0.3;
        transform: scale(0.9);
    }
    
    /* 移动端紧凑布局 */
    .modern-control-panel .p-4 {
        padding: 12px;
    }
    
    .modern-control-panel .space-y-3 > * + * {
        margin-top: 12px;
    }
}

/* Modern Date Selector Styling */
.modern-date-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.date-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.date-controls:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark .date-controls {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
}

.date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-nav-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    transform: scale(1.1);
}

.date-nav-btn:active {
    transform: scale(0.95);
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-nav-btn:disabled:hover {
    background: transparent;
    color: #6B7280;
    transform: none;
}

.dark .date-nav-btn {
    color: #9CA3AF;
}

.dark .date-nav-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.date-display {
    margin: 0 8px;
    position: relative;
}

.modern-date-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    min-width: 140px;
    text-align: center;
    outline: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modern-date-select:hover {
    background: rgba(59, 130, 246, 0.05);
}

.modern-date-select:focus {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.dark .modern-date-select {
    color: #F9FAFB;
}

.dark .modern-date-select:hover {
    background: rgba(59, 130, 246, 0.1);
}

.dark .modern-date-select:focus {
    background: rgba(59, 130, 246, 0.2);
}

/* Custom dropdown arrow */
.date-display::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
    font-size: 12px;
}

.dark .date-display::after {
    color: #9CA3AF;
}

/* Animation for date selector */
.modern-date-selector {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 紧凑的日期控制器样式 */
.compact-date-controls {
    display: flex;
    align-items: center;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    gap: 2px;
}

.dark .compact-date-controls {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
}

.compact-date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-date-nav-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.compact-date-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.compact-date-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
    outline: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.compact-date-select:hover {
    background: rgba(59, 130, 246, 0.05);
}

.compact-date-select:focus {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.dark .compact-date-select {
    color: #F9FAFB;
}

.dark .compact-date-select:hover {
    background: rgba(59, 130, 246, 0.1);
}

.dark .compact-date-nav-btn {
    color: #9CA3AF;
}

.dark .compact-date-nav-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

/* Mobile responsive design for date selector */
@media (max-width: 768px) {
    .modern-date-selector {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .date-controls {
        padding: 4px;
    }
    
    .date-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .modern-date-select {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .compact-date-nav-btn {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .compact-date-select {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 60px;
    }
}

/* Platform filter styling (legacy support) */
.platform-filters-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.platform-filter {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    background-color: var(--color-card);
    color: var(--color-text-light);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    outline: none;
}

.platform-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-1px);
}

.platform-filter:not(.active):hover {
    background-color: var(--color-card-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.2);
}

/* Loading spinner */
.loading-spinner {
    display: none;
    justify-content: center;
    padding: 2rem;
}

.loading-spinner.visible {
    display: flex;
}

/* Card style variants */
.twitter-card, .youtube-card, .linkedin-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-base);
    overflow: hidden;
    background-color: var(--color-card);
    transition: var(--transition-base);
    height: 100%;
    box-shadow: var(--shadow-sm);
    display: flex; 
    flex-direction: column;
}

.twitter-card:hover, .youtube-card:hover, .linkedin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--color-card-hover);
}

.platform-icon {
    width: 24px;
    height: 24px;
}

/* Navigation styles */
.nav-link {
    position: relative;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 500;
}

/* Platform badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.twitter-badge {
    background-color: rgba(29, 161, 242, 0.1);
    color: var(--color-twitter);
}

.linkedin-badge {
    background-color: rgba(0, 119, 181, 0.1);
    color: var(--color-linkedin);
}

.youtube-badge {
    background-color: rgba(255, 0, 0, 0.1);
    color: var(--color-youtube);
}

/* Copy button styles */
.copy-video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.copy-video-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .copy-video-btn {
    color: #D1D5DB;
}

.dark .copy-video-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* AI Summary Toggle */
.summary-toggle {
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    user-select: none;
}

.summary-toggle:hover {
    opacity: 0.8;
}

/* 摘要标签样式 */
.summary-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.summary-label.ai-summary {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.summary-label.video-intro {
    background-color: #f3f4f6;
    color: #6b7280;
}

.dark .summary-label.ai-summary {
    background-color: #1e3a5f;
    color: #93c5fd;
}

.dark .summary-label.video-intro {
    background-color: #374151;
    color: #9ca3af;
}

/* 摘要内容容器样式 */
.summary-content {
    position: relative;
    max-height: 200px; /* 设置最大高度 */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* 渐变遮罩效果 */
.summary-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-background));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 展开状态 */
.summary-content.expanded {
    max-height: none;
}

.summary-content.expanded::after {
    opacity: 0;
}

/* 展开按钮 */
.expand-summary {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    z-index: 1;
}

.expand-summary:hover {
    background: #f3f4f6;
    color: #374151;
}

/* 暗色主题适配 */
.dark .summary-content::after {
    background: linear-gradient(to bottom, transparent, var(--color-background-dark));
}

.dark .expand-summary {
    background: var(--color-background-dark);
    border-color: #374151;
    color: #9ca3af;
}

.dark .expand-summary:hover {
    background: #374151;
    color: #e5e7eb;
}

/* 摘要内容的段落样式 */
.summary-point {
    margin-bottom: 0.75rem;
}

.summary-point:last-child {
    margin-bottom: 0;
}

/* 原文 Toggle */
.original-toggle {
    color: var(--color-text-light);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    user-select: none;
}

.original-toggle:hover {
    color: var(--color-primary);
}

.original-content {
    display: none;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.original-content.expanded {
    display: block;
}

.original-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light);
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    white-space: pre-wrap;
}

.dark .original-text {
    background-color: rgba(255, 255, 255, 0.05);
}

.card-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Card footer */
.card-footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-card);
    margin-top: auto;
}

/* YouTube thumbnail */
.youtube-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.youtube-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.youtube-card:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.youtube-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.summary-point {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.summary-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.twitter-card .summary-point::before {
    background-color: var(--color-twitter);
}

.linkedin-card .summary-point::before {
    background-color: var(--color-linkedin);
}

.youtube-card .summary-point::before {
    background-color: var(--color-youtube);
}

/* Summary Point Markdown Formatting */
.summary-point strong {
    font-weight: 600;
    color: var(--color-text);
}

.summary-point em {
    font-style: italic;
    color: var(--color-text);
}

.summary-point code {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--color-primary);
}

.summary-point a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-primary);
    transition: var(--transition-base);
}

.summary-point a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Mobile styles */
@media (max-width: 768px) {
    .platform-filters-container {
        margin-bottom: 1.5rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.chevron-icon.up {
    transform: rotate(180deg);
}

/* Avatar styles */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-card-hover);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 600;
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 999;
    transition: top 0.3s;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    top: 0;
    height: auto;
    width: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Video Modal Styles */
.video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.video-modal {
    width: 90%;
    max-width: 900px;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.video-modal-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-height: calc(90vh - 50px); /* Account for header height */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-modal-buttons {
    display: flex;
    gap: 10px;
}

.video-modal-button {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.video-modal-button:hover {
    color: white;
}

/* 平台筛选器样式 */
.filter-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-filter {
    padding: 8px 16px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-filter:hover {
    background-color: #e0e0e0;
}

.platform-filter.active {
    background-color: #4CADFF;
    color: white;
}

/* 社交媒体内容样式 */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.social-media-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.social-media-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.social-media-item h3 {
    padding: 15px 20px 10px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.social-media-item p {
    padding: 0 20px;
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.social-media-item .read-more {
    display: inline-block;
    margin: 10px 20px 20px;
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-media-item .read-more:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 视频缩略图样式 */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.video-thumbnail:hover img {
    filter: brightness(0.8);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .video-modal {
        width: 95%;
        max-height: 80vh;
    }
    
    .video-play-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 平台筛选器样式 */
.filter-section {
    background-color: #f7f9fc;
    padding: 20px 0;
    margin-bottom: 40px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.platform-filter {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-filter:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.platform-filter.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-container {
        gap: 8px;
    }
    
    .platform-filter {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .social-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .video-modal {
        width: 95%;
    }
    
    .video-play-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .social-media-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-title {
        font-size: 0.9rem;
    }
}

/* Mobile menu styles */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    z-index: 50;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-menu.hidden {
    display: none;
}

.video-modal-overlay.hidden {
    display: none;
}

/* 订阅者数量标签样式 */
.subscribers-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    background-color: var(--color-card-hover);
    color: var(--color-text-light);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 500;
    vertical-align: middle;
    border: 1px solid var(--color-border);
}

.dark .subscribers-badge {
    background-color: var(--color-card-hover);
    border-color: var(--color-border);
}

/* 翻译徽章样式 */
.translation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 中文版已有标识样式 */
.translation-badge.translation-available {
    background: rgba(16, 185, 129, 0.8); /* 绿色背景 */
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* 字幕/Transcript 标记 */
.transcript-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.transcript-badge i {
    font-size: 10px;
}

/* 有字幕的缩略图样式 */
.youtube-thumbnail.has-transcript {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-thumbnail.has-transcript:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 阅读全文按钮样式 */
.read-article-btn {
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.read-article-btn:hover {
    transform: translateY(-1px);
}

/* 翻译弹窗样式 */
.translation-modal-overlay {
    backdrop-filter: blur(3px);
    z-index: 60;
}

.translation-modal {
    max-height: 90vh;
    overflow-y: auto;
}

.qrcode-container {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 申请翻译按钮样式 */
.request-translation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.request-translation-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* 标签样式 - 更亮、更有吸引力的样式 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 16px; /* 更圆润的外观 */
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    background-color: #e0f2fe; /* 浅蓝色背景 */
    color: #0369a1; /* 深蓝色文字 */
}

.tag:nth-child(2) {
    background-color: #dcfce7; /* 浅绿色背景 */
    color: #15803d; /* 深绿色文字 */
}

.tag:nth-child(3) {
    background-color: #fef9c3; /* 浅黄色背景 */
    color: #ca8a04; /* 深黄色文字 */
}

.tag:nth-child(4) {
    background-color: #ffedd5; /* 浅橙色背景 */
    color: #ea580c; /* 深橙色文字 */
}

.tag:nth-child(5) {
    background-color: #fce7f3; /* 浅粉色背景 */
    color: #db2777; /* 深粉色文字 */
}

.dark .tag {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dark .tag {
    background-color: #0c4a6e; /* 深蓝色背景 */
    color: #bae6fd; /* 浅蓝色文字 */
}

.dark .tag:nth-child(2) {
    background-color: #166534; /* 深绿色背景 */
    color: #bbf7d0; /* 浅绿色文字 */
}

.dark .tag:nth-child(3) {
    background-color: #854d0e; /* 深黄色背景 */
    color: #fef9c3; /* 浅黄色文字 */
}

.dark .tag:nth-child(4) {
    background-color: #9a3412; /* 深橙色背景 */
    color: #fed7aa; /* 浅橙色文字 */
}

.dark .tag:nth-child(5) {
    background-color: #9d174d; /* 深粉色背景 */
    color: #fbcfe8; /* 浅粉色文字 */
}

.tag:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* 创作者专栏样式 */
.control-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.view-tab {
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

.view-tab:not(.active):hover {
    background-color: var(--color-card-hover);
    transform: translateY(-1px);
}

.view-tab.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platform-filter {
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.platform-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.platform-filter:hover::before {
    left: 100%;
}

.platform-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.platform-filter:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 翻译状态筛选器样式 */
.translation-filter {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.translation-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.translation-filter:hover::before {
    left: 100%;
}

.translation-filter:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.translation-filter.active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    color: white !important;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.translation-filter:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 翻译状态徽章样式增强 */
.translation-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    z-index: 1;
}

.translation-badge.translation-available {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* 筛选状态显示 */
#filterStatus {
    padding: 8px 16px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#filterStatus.show {
    display: block !important;
}

.creators-nav {
    margin-bottom: 1.5rem;
}

.creator-category-filter {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
}

.creator-category-filter.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.creator-card {
    transition: all 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.creator-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .control-panel {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .view-tab {
        min-width: 120px;
        font-size: 0.875rem;
    }
    
    .platform-filter {
        font-size: 0.875rem;
    }
} 