:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-hover: #252542;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.navbar {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; }

.main-content { padding: 40px 0; min-height: calc(100vh - 160px); }
.page-header { text-align: center; margin-bottom: 48px; }
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle { color: var(--text-secondary); font-size: 1.1rem; }

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

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

.video-preview {
    position: relative;
    aspect-ratio: 9/16;
    max-height: 300px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    display: block;
}
.video-preview video { width: 100%; height: 100%; object-fit: cover; }
.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.video-preview:hover .play-overlay { opacity: 1; }
.play-icon { font-size: 3rem; color: white; }

.video-info { padding: 20px; }
.video-date { display: inline-block; font-size: 0.85rem; color: var(--primary-light); font-weight: 500; margin-bottom: 8px; }
.video-title { font-size: 1.2rem; margin-bottom: 8px; line-height: 1.3; }
.video-summary { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-primary { background: var(--gradient-2); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.4); }
.btn-view { background: var(--bg-hover); color: var(--text-primary); width: 100%; justify-content: center; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h2 { font-size: 1.8rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-secondary); }

.video-detail { max-width: 1000px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; color: var(--text-secondary); text-decoration: none; margin-bottom: 24px; font-weight: 500; transition: color 0.2s; }
.back-link:hover { color: var(--primary-light); }

.video-detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .video-detail-grid { grid-template-columns: 400px 1fr; } }

.video-player-container { background: #000; border-radius: var(--radius-lg); overflow: hidden; }
.video-player { width: 100%; max-height: 70vh; display: block; }

.video-metadata .video-date { display: block; margin-bottom: 8px; }
.video-metadata .video-title { font-size: 1.8rem; margin-bottom: 20px; }
.action-buttons { margin-bottom: 32px; }

.content-section { margin-bottom: 28px; }
.content-section h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 12px; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-text { color: var(--text-secondary); line-height: 1.7; }
.stanzas-text {
    white-space: pre-wrap;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
.footer p { color: var(--text-secondary); font-size: 0.95rem; }
.footer-sub { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }

@media (max-width: 640px) {
    .video-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
}
