/* Reset and base styles */
body { font-family: Arial, sans-serif; background: #fff; color: #333; margin: 0; padding: 0; font-size: 12px; }
#container { width: 800px; margin: 0 auto; }

/* Header */
header { background: white; color: black; padding: 5px 10px; display: flex; justify-content: space-between; align-items: center; }
#logo h1 { margin: 0; font-size: 24px; }
#search { flex: 1; text-align: center; }
#search input { width: 200px; padding: 2px; }
#search button { padding: 2px 5px; background: #fff; border: 1px solid #ccc; }
#user-links { text-align: right; }
#user-links a { color: black; text-decoration: none; margin-left: 10px; }

/* Navigation */
nav { background: #f0f0f0; border-bottom: 1px solid #ccc; }
nav ul { list-style: none; margin: 0; padding: 5px; display: flex; }
nav li { margin-right: 15px; }
nav a { text-decoration: none; color: #333; }

/* Content layout */
#content { display: flex; margin-top: 10px; }
aside { width: 150px; margin-right: 20px; }
aside h3 { font-size: 14px; margin-bottom: 5px; }
aside ul { list-style: none; padding: 0; }
aside li { margin-bottom: 5px; }
aside a { text-decoration: none; color: #06c; }
main { flex: 1; }
.video-page { max-width: 600px; }

/* Video grid */
#video-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.video-item { width: 140px; text-align: center; border: 1px solid #ccc; padding: 5px; background: #f9f9f9; }
.video-item img { display: block; margin: 0 auto; }
.video-item h4 { font-size: 12px; margin: 5px 0; }
.video-item p { font-size: 10px; margin: 2px 0; }

/* Forms and interactions */
.forms { margin: 10px 0; }
input, textarea, select, button { font-size: 12px; padding: 3px; }
button { background: #cc0000; color: white; border: none; cursor: pointer; }
.comment { border-bottom: 1px solid #ccc; padding: 5px; margin-bottom: 5px; }

/* Messages */
.message { padding: 5px; margin-bottom: 10px; border: 1px solid; }
.success { color: green; background: #e0ffe0; }
.error { color: red; background: #ffe0e0; }

/* Footer */
footer { text-align: center; padding: 10px; background: #f0f0f0; border-top: 1px solid #ccc; margin-top: 20px; }
footer a { text-decoration: none; color: #06c; margin: 0 5px; }