/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Header Styles */
.site-header, .page-header {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header h1, .page-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

.site-intro, .page-intro {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Module Styles */
.module {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.module h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3, .video-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.video-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.video-oneline {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.video-summary {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.video-review {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Ranked Cards */
.video-card.ranked {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.video-card.ranked .rank {
    font-size: 2rem;
    font-weight: bold;
    color: #0066cc;
    min-width: 50px;
    text-align: center;
}

.video-card.ranked .card-content {
    flex: 1;
}

/* Timeline Cards */
.video-card.timeline {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 3px solid #0066cc;
    padding-left: 1rem;
}

.video-card.timeline .date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0066cc;
    min-width: 60px;
}

.video-card.timeline .card-content {
    flex: 1;
}

/* Genre Groups */
.genre-group {
    margin-bottom: 2rem;
}

.genre-title {
    font-size: 1.3rem;
    color: #0066cc;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #0066cc;
}

/* Video List */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.video-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Link Grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    display: block;
    transition: transform 0.3s;
}

.link-card:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.more-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* Detail Page */
.video-detail {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-detail header h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.video-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 2rem;
}

.video-info dt {
    font-weight: bold;
    color: #666;
}

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

.video-highlight, .video-summary, .video-review, .related-videos {
    margin-bottom: 2rem;
}

.video-highlight h2, .video-summary h2, .video-review h2, .related-videos h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.video-highlight p {
    font-size: 1.2rem;
    color: #0066cc;
    font-weight: 500;
}

.video-summary p, .video-review p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header h1, .page-header h1 {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-info dl {
        grid-template-columns: 80px 1fr;
    }
}

/* UI Style Variations */
body.ui-style-0 { --primary-color: #0066cc; }
body.ui-style-1 { --primary-color: #2d7d9a; }
body.ui-style-2 { --primary-color: #5c6ac4; }
body.ui-style-3 { --primary-color: #00848e; }
body.ui-style-4 { --primary-color: #0052cc; }
body.ui-style-5 { --primary-color: #0b7189; }
body.ui-style-6 { --primary-color: #4a5568; }
body.ui-style-7 { --primary-color: #2563eb; }
body.ui-style-8 { --primary-color: #1e40af; }
body.ui-style-9 { --primary-color: #0e7490; }
body.ui-style-10 { --primary-color: #0f766e; }
body.ui-style-11 { --primary-color: #065f46; }
body.ui-style-12 { --primary-color: #1e3a8a; }
body.ui-style-13 { --primary-color: #1e293b; }
body.ui-style-14 { --primary-color: #334155; }
body.ui-style-15 { --primary-color: #475569; }