* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: #f0f0f0;
    color: #333;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.main-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.main-desc {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.intro-section {
    background: white;
    padding: 40px 20px;
    margin: 20px 0;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.video-section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #764ba2;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.video-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-cover {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #e0e0e0;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.video-one-line {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-header {
    background: white;
    padding: 40px;
    margin: 20px 0;
    border-radius: 8px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.page-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.list-main {
    padding: 20px 0 60px;
}

.list-main .video-grid {
    margin-top: 20px;
}

.top-list__items {
    list-style: none;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.top-list__item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.top-list__item:last-child {
    border-bottom: none;
}

.top-list__item:hover {
    background: #fafafa;
}

.rank-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 20px;
    border-radius: 4px;
}

.rank-badge--top {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.rank-badge--normal {
    background: #f5f5f5;
    color: #999;
}

.top-list__item .video-cover {
    flex-shrink: 0;
    width: 160px;
    padding-top: 90px;
    margin-right: 20px;
}

.top-list__item .video-info {
    flex: 1;
    padding: 0;
}

.detail-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.detail-link:hover {
    background: #764ba2;
}

.video-player-section {
    background: #000;
    padding: 40px 0;
}

.video-player {
    max-width: 1000px;
    margin: 0 auto;
}

.video-player-inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.player-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
    font-size: 32px;
    color: #667eea;
    margin-left: 4px;
}

.detail-main {
    padding-bottom: 60px;
}

.title-section {
    padding: 40px 20px 20px;
}

.detail-title {
    font-size: 36px;
    font-weight: bold;
}

.info-section {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    font-size: 15px;
}

.info-list dt {
    font-weight: 600;
    color: #666;
}

.info-list dd {
    color: #333;
}

.content-module {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
}

.module-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.module-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.module-content p {
    margin-bottom: 16px;
}

.module-content p:last-child {
    margin-bottom: 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.related-section {
    margin: 40px 0;
}

.site-footer {
    background: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    font-size: 14px;
    opacity: 0.8;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #764ba2;
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .nav-container {
        height: auto;
        padding: 12px 20px;
    }

    .nav-links {
        gap: 2px;
        font-size: 13px;
    }

    .nav-links li a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .main-title {
        font-size: 24px;
    }

    .main-desc {
        font-size: 16px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .video-cover {
        padding-top: 140%;
    }

    .video-card .video-cover {
        padding-top: 56.25%;
    }

    .video-info {
        padding: 12px;
    }

    .video-title {
        font-size: 14px;
    }

    .video-meta,
    .video-one-line {
        font-size: 13px;
    }

    .page-header {
        padding: 24px 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .detail-title {
        font-size: 28px;
    }

    .top-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-badge {
        margin-bottom: 12px;
    }

    .top-list__item .video-cover {
        width: 100%;
        padding-top: 56.25%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

.ui-style-0 body {
    background: #121212;
    color: #e0e0e0;
}

.ui-style-0 .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.ui-style-0 .video-card,
.ui-style-0 .page-header,
.ui-style-0 .info-section,
.ui-style-0 .content-module {
    background: #1e1e1e;
    color: #e0e0e0;
}

.ui-style-1 .hero-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.ui-style-2 .hero-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ui-style-3 .hero-section {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ui-style-3 .logo {
    color: #fa709a;
}

.ui-style-4 .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ui-style-5 body {
    background: #0f0f0f;
}

.ui-style-5 .hero-section {
    background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
}

.ui-style-6 .hero-section {
    background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
}

.ui-style-7 .hero-section {
    background: linear-gradient(135deg, #00467f 0%, #00a8e8 100%);
}

.ui-style-8 .hero-section {
    background: linear-gradient(135deg, #134e4a 0%, #14b8a6 100%);
}

.ui-style-9 body {
    background: #000;
}

.ui-style-9 .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.ui-style-10 .hero-section {
    background: linear-gradient(135deg, #00C75A 0%, #00e676 100%);
}

.ui-style-11 .hero-section {
    background: linear-gradient(135deg, #0099FF 0%, #00b8ff 100%);
}

.ui-style-12 .hero-section {
    background: linear-gradient(135deg, #FF6700 0%, #ff8c00 100%);
}

.ui-style-13 .hero-section {
    background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%);
}

.ui-style-14 .hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}
