* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}
header {
    background: #1e3c72;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
header .logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}
header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}
header nav a:hover {
    text-decoration: underline;
}
main {
    min-height: 70vh;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
footer {
    background: #eee;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.video-card:hover {
    transform: translateY(-5px);
}
.video-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.video-card h3 {
    padding: 10px;
    font-size: 16px;
}
.video-card p {
    padding: 0 10px 10px;
    font-size: 12px;
    color: #666;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 15px 0;
}
.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.table th {
    background: #f2f2f2;
}
.btn, button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.btn-danger {
    background: #dc3545;
}
.btn-primary {
    background: #007bff;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.admin-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
}
.error {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.success {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; }
    header nav a { margin: 0 10px; }
}