* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --premium-primary: #6366f1;
    --premium-primary-dark: #4f46e5;
    --premium-primary-light: #818cf8;
    --premium-secondary: #ec4899;
    --premium-accent: #f59e0b;
    --premium-bg: #0f172a;
    --premium-surface: #1e293b;
    --premium-surface-light: #334155;
    --premium-border: #334155;
    --premium-text: #f1f5f9;
    --premium-text-secondary: #cbd5e1;
    --premium-text-light: #94a3b8;
    --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --premium-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --premium-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --premium-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --premium-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --premium-radius: 12px;
}

body.premium-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--premium-bg);
    color: var(--premium-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.premium-header {
    background: var(--premium-surface);
    border-bottom: 1px solid var(--premium-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--premium-shadow);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--premium-text);
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 28px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--premium-text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--premium-text);
    background: var(--premium-surface-light);
}

.nav-link.active {
    background: var(--premium-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nav-icon {
    font-size: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--premium-surface-light);
    border: 1px solid var(--premium-border);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s;
    min-width: 300px;
}

.search-box:focus-within {
    border-color: var(--premium-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    margin-left: 16px;
    color: var(--premium-text-light);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--premium-text);
}

.search-input::placeholder {
    color: var(--premium-text-light);
}

.search-btn {
    padding: 10px 20px;
    background: var(--premium-gradient);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--premium-surface-light);
    border: 1px solid var(--premium-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--premium-text);
    border-radius: 2px;
    transition: all 0.2s;
}

/* Main */
.premium-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Hero Section */
.premium-hero {
    margin-bottom: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: var(--premium-radius);
    overflow: hidden;
    box-shadow: var(--premium-shadow-lg);
}

.hero-link {
    display: block;
    text-decoration: none;
    color: white;
}

.hero-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--premium-gradient);
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-link:hover .hero-image img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--premium-gradient-2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-tag.highlight {
    background: var(--premium-accent);
    border-color: var(--premium-accent);
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--premium-text);
}

.featured-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--premium-surface);
    border-radius: var(--premium-radius);
    text-decoration: none;
    color: var(--premium-text);
    transition: all 0.3s;
    border: 1px solid var(--premium-border);
}

.featured-item:hover {
    background: var(--premium-surface-light);
    transform: translateX(4px);
    box-shadow: var(--premium-shadow);
}

.featured-image {
    position: relative;
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--premium-gradient);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-item:hover .featured-overlay {
    opacity: 1;
}

.featured-info {
    flex: 1;
    min-width: 0;
}

.featured-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--premium-text-light);
    align-items: center;
}

/* Section */
.premium-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--premium-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 28px;
}

.section-badge {
    padding: 4px 12px;
    background: var(--premium-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--premium-primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.section-more:hover {
    color: var(--premium-primary);
    gap: 10px;
}

.section-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    border-radius: 20px;
    color: var(--premium-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--premium-surface-light);
    color: var(--premium-text);
}

.filter-btn.active {
    background: var(--premium-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--premium-surface);
    border-radius: var(--premium-radius);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--premium-border);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow-lg);
    border-color: var(--premium-primary);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--premium-gradient);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.video-card:hover .card-hover-info {
    opacity: 1;
}

.hover-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.hover-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.hover-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.card-info {
    padding: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--premium-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--premium-text-light);
}

.meta-item {
    display: flex;
    align-items: center;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    border-radius: 8px;
    color: var(--premium-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--premium-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    border-radius: 8px;
    color: var(--premium-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-page:hover {
    background: var(--premium-gradient);
    color: white;
    border-color: transparent;
}

.pagination-page.active {
    background: var(--premium-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--premium-text-light);
}

/* Player */
.premium-player {
    background: var(--premium-surface);
    border-radius: var(--premium-radius);
    padding: 24px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--premium-border);
}

.player-screen {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--premium-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--premium-text);
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.control-btn {
    padding: 8px 16px;
    background: var(--premium-surface-light);
    border: 1px solid var(--premium-border);
    border-radius: 8px;
    color: var(--premium-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--premium-surface);
    border-color: var(--premium-primary);
    color: var(--premium-primary);
}

.control-btn.active {
    background: var(--premium-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Detail */
.detail-section {
    background: var(--premium-surface);
    border-radius: var(--premium-radius);
    padding: 24px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--premium-border);
}

.detail-container {
    display: flex;
    gap: 24px;
}

.detail-poster {
    position: relative;
    flex-shrink: 0;
    width: 220px;
}

.detail-poster img {
    width: 100%;
    border-radius: var(--premium-radius);
    box-shadow: var(--premium-shadow);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--premium-gradient-2);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--premium-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.detail-tag {
    padding: 6px 14px;
    background: var(--premium-surface-light);
    border: 1px solid var(--premium-border);
    color: var(--premium-text);
    font-size: 13px;
    border-radius: 20px;
}

.detail-meta {
    margin-bottom: 24px;
}

.meta-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    color: var(--premium-text-light);
    min-width: 70px;
    font-weight: 500;
}

.meta-value {
    color: var(--premium-text);
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--premium-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.action-btn.secondary {
    background: var(--premium-surface-light);
    color: var(--premium-text);
    border: 1px solid var(--premium-border);
}

.action-btn.secondary:hover {
    background: var(--premium-surface);
    border-color: var(--premium-primary);
    color: var(--premium-primary);
}

.content-section {
    background: var(--premium-surface);
    border-radius: var(--premium-radius);
    padding: 24px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--premium-border);
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--premium-text-secondary);
    white-space: pre-wrap;
}

/* Footer */
.premium-footer {
    background: var(--premium-surface);
    border-top: 1px solid var(--premium-border);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--premium-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--premium-primary-light);
}

.separator {
    color: var(--premium-text-light);
}

.footer-text {
    font-size: 13px;
    color: var(--premium-text-light);
    margin-bottom: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--premium-text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--premium-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--premium-shadow-lg);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Response */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--premium-surface);
        border-top: 1px solid var(--premium-border);
        box-shadow: var(--premium-shadow);
        display: none;
        flex-direction: column;
        padding: 10px 15px;
        gap: 4px;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .main-nav[data-open="true"] {
        display: flex;
        max-height: 500px;
        padding: 15px;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .header-right {
        width: 100%;
        margin-top: 10px;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-sidebar {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .detail-container {
        flex-direction: column;
    }

    .detail-poster {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .premium-main {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .scroll-top-btn {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

