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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #e94560;
}

header h1 { font-size: 2.2em; color: #fff; margin-bottom: 8px; }
header .subtitle { font-size: 1.1em; color: #a0a0b0; margin-bottom: 16px; }

.yt-link {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 8px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.yt-link:hover { background: #c73650; }

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #16213e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #a0a0b0;
    background: #1a1a2e;
    border: 1px solid #333;
    transition: all 0.2s;
    font-size: 0.95em;
}
.nav-link:hover { color: #fff; border-color: #e94560; }
.nav-link.active { background: #e94560; color: #fff; border-color: #e94560; }

main { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }

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

.video-card {
    background: #16213e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #222;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.2);
}

.video-card .thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f0f1a;
}
.video-card .thumbnail img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-card .thumbnail .play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0;
    transition: opacity 0.2s;
}
.video-card:hover .play-overlay { opacity: 1; }

.video-card .info { padding: 16px; }
.video-card .info h3 { font-size: 1em; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.video-card .info .description { font-size: 0.85em; color: #888; margin-bottom: 12px; line-height: 1.5; }
.video-card .info .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.video-card .info .tag {
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 12px;
    background: #1a1a2e;
    color: #e94560;
    border: 1px solid #e94560;
}

.no-results { text-align: center; padding: 60px 20px; color: #666; font-size: 1.1em; }

.docs-section { margin-bottom: 32px; }
.docs-section summary { color: #fff; font-size: 1.4em; cursor: pointer; padding: 12px 0; user-select: none; }
.docs-section summary:hover { color: #e94560; }
.docs-section details[open] summary { margin-bottom: 16px; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.doc-card {
    display: flex; align-items: center; gap: 16px;
    background: #16213e; border: 1px solid #222; border-radius: 12px;
    padding: 20px; text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(233, 69, 96, 0.15); }
.doc-icon { font-size: 2.4em; }
.doc-info h3 { color: #fff; font-size: 1em; margin-bottom: 6px; }
.doc-info p { color: #888; font-size: 0.85em; line-height: 1.5; margin-bottom: 6px; }
.doc-meta { font-size: 0.75em; color: #e94560; }

footer {
    text-align: center;
    padding: 24px;
    color: #555;
    border-top: 1px solid #222;
    margin-top: 40px;
}
footer a { color: #e94560; text-decoration: none; }

@media (max-width: 600px) {
    header h1 { font-size: 1.6em; }
    .video-grid { grid-template-columns: 1fr; }
    nav { gap: 6px; }
    .nav-link { padding: 6px 14px; font-size: 0.85em; }
}
