/* Vortex Template - 动态流动风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vortex-bg: linear-gradient(135deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #302b63 75%, #0f0c29 100%);
    --vortex-accent: #6366f1;
    --vortex-accent-light: #818cf8;
    --vortex-accent-dark: #4f46e5;
    --vortex-glass: rgba(99, 102, 241, 0.1);
    --vortex-glass-border: rgba(99, 102, 241, 0.3);
    --vortex-text: #ffffff;
    --vortex-text-secondary: rgba(255, 255, 255, 0.7);
    --vortex-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --vortex-glow: 0 0 20px rgba(99, 102, 241, 0.5);
}

body.vortex-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--vortex-bg);
    background-size: 400% 400%;
    animation: vortexGradient 15s ease infinite;
    color: var(--vortex-text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

@keyframes vortexGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.vortex-body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: vortexRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes vortexRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.vortex-header {
    background: var(--vortex-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--vortex-glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--vortex-shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--vortex-text);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon svg {
    animation: vortexSpin 3s linear infinite;
    filter: drop-shadow(0 0 8px var(--vortex-accent));
}

@keyframes vortexSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-spiral {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: vortexDraw 2s ease-in-out infinite;
}

@keyframes vortexDraw {
    0%, 100% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 0; }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--vortex-accent-light), var(--vortex-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 0.75rem;
    opacity: 0.7;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--vortex-text-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 120px;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--vortex-accent) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 200px;
    height: 200px;
}

.nav-link:hover {
    color: var(--vortex-text);
    transform: translateY(-2px);
    box-shadow: var(--vortex-glow);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.search-input {
    padding: 0.625rem 1.25rem;
    background: var(--vortex-glass);
    border: 1px solid var(--vortex-glass-border);
    border-radius: 25px;
    color: var(--vortex-text);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--vortex-text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--vortex-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), var(--vortex-glow);
    width: 250px;
}

.search-btn {
    padding: 0.625rem 1.25rem;
    background: var(--vortex-accent);
    border: none;
    border-radius: 25px;
    color: var(--vortex-text);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--vortex-glow);
}

.search-btn:hover {
    background: var(--vortex-accent-light);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--vortex-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.vortex-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.vortex-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vortex-glass-border);
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--vortex-accent-light), var(--vortex-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--vortex-accent), var(--vortex-accent-light));
    border-radius: 2px;
    box-shadow: var(--vortex-glow);
    animation: vortexPulse 2s ease-in-out infinite;
}

@keyframes vortexPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(0.8); }
}

.section-more {
    color: var(--vortex-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-more:hover {
    color: var(--vortex-accent-light);
    transform: translateX(5px);
}

.section-more .arrow {
    transition: transform 0.3s ease;
}

.section-more:hover .arrow {
    transform: translateX(3px);
}

.section-count {
    color: var(--vortex-text-secondary);
    font-size: 0.9rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.video-grid .video-card-featured {
    grid-column: 1 / -1;
}

.video-card {
    background: var(--vortex-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vortex-glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.video-card-featured {
    border: 2px solid var(--vortex-accent);
    box-shadow: var(--vortex-shadow), var(--vortex-glow);
}

.featured-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--vortex-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: var(--vortex-glow);
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vortex-text);
    text-decoration: none;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--vortex-accent-light), var(--vortex-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.featured-title:hover {
    transform: translateX(5px);
}

.featured-meta {
    color: var(--vortex-text-secondary);
    font-size: 1rem;
}

.featured-desc {
    color: var(--vortex-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.featured-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--vortex-accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: var(--vortex-glow);
    margin-top: 0.5rem;
}

.featured-link:hover {
    background: var(--vortex-accent-light);
    transform: translateX(5px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7);
}

.featured-thumb {
    flex: 0 0 400px;
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--vortex-shadow);
}

.featured-thumb .thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.featured-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-thumb:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .video-grid .video-card-featured {
        grid-column: span 1;
    }

    .featured-content {
        flex-direction: column;
        padding: 1.5rem;
    }

    .featured-thumb {
        flex: 1;
        width: 100%;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.video-card:hover::before {
    opacity: 1;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--vortex-shadow), var(--vortex-glow);
    border-color: var(--vortex-accent);
}

.card-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--vortex-glass);
}

.thumb-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .card-thumb img {
    transform: scale(1.15) rotate(2deg);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--vortex-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--vortex-glow);
    z-index: 3;
}

.card-time {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--vortex-accent-light);
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 3;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.card-info {
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.card-title {
    display: block;
    color: var(--vortex-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.card-title:hover {
    color: var(--vortex-accent-light);
}

.card-meta {
    color: var(--vortex-text-secondary);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.time-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.time-text {
    color: var(--vortex-accent-light);
    font-size: 0.8rem;
}

.featured-meta .time-text {
    font-size: 0.9rem;
}

/* Detail Page */
.detail-section {
    margin-bottom: 2rem;
}

.detail-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: var(--vortex-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vortex-glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--vortex-shadow);
}

.detail-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--vortex-shadow);
}

.poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
}

.detail-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--vortex-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--vortex-glow);
    z-index: 2;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--vortex-accent);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: var(--vortex-glow);
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--vortex-accent-light), var(--vortex-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.detail-actor {
    color: var(--vortex-text-secondary);
    font-size: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--vortex-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--vortex-text);
    font-weight: 500;
}

/* Player */
.player-section {
    margin-bottom: 2rem;
}

.vortex-player {
    background: var(--vortex-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vortex-glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--vortex-shadow);
}

.player-screen {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vortex-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.control-btn {
    padding: 0.625rem 1.25rem;
    background: var(--vortex-glass);
    border: 1px solid var(--vortex-glass-border);
    border-radius: 20px;
    color: var(--vortex-text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--vortex-accent) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.control-btn:hover::before {
    width: 200px;
    height: 200px;
}

.control-btn:hover {
    color: var(--vortex-text);
    transform: translateY(-2px);
    border-color: var(--vortex-accent);
}

.control-btn.active {
    background: var(--vortex-accent);
    border-color: var(--vortex-accent);
    color: white;
    box-shadow: var(--vortex-glow);
}

/* Content Section */
.content-section {
    margin-bottom: 2rem;
}

.detail-content {
    background: var(--vortex-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vortex-glass-border);
    border-radius: 16px;
    padding: 2rem;
    line-height: 1.8;
    color: var(--vortex-text-secondary);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Footer */
.vortex-footer {
    background: var(--vortex-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--vortex-glass-border);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    color: var(--vortex-text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--vortex-text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-link {
        max-width: none;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--vortex-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--vortex-glass-border);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        order: 0;
        width: auto;
        margin-top: 0;
        z-index: 1200;
    }

    .main-nav[data-open="true"] {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        max-width: none;
        width: 100%;
        text-align: left;
    }

    .search-form {
        width: 100%;
        order: 3;
        margin-left: 0;
    }

    .search-input {
        flex: 1;
        width: auto;
    }

    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 12, 41, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
    }

    .vortex-main {
        padding: 1rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .detail-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-poster {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

