:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f5f5;color:#333}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2)}.auth-box{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 4px 20px #0000001a;width:100%;max-width:400px}.auth-box h1{text-align:center;margin-bottom:1.5rem;color:#333}.auth-box form{display:flex;flex-direction:column;gap:1rem}.auth-box input{padding:.75rem;border:1px solid #ddd;border-radius:4px;font-size:1rem}.auth-box button{padding:.75rem;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer}.auth-box button:hover{background:#5a6fd6}.auth-box button:disabled{background:#ccc}.auth-box p{text-align:center;margin-top:1rem}.auth-box a{color:#667eea}.error{background:#fee;color:#c00;padding:.75rem;border-radius:4px;margin-bottom:1rem}header{background:#fff;padding:1rem 2rem;box-shadow:0 2px 4px #0000001a}.header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.user-info{display:flex;align-items:center;gap:1rem}.admin-link{background:#764ba2;color:#fff;padding:.5rem 1rem;border-radius:4px;text-decoration:none}.logout-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#eee;border:none;border-radius:4px;cursor:pointer}main{max-width:1200px;margin:2rem auto;padding:0 1rem}.controls{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}.search-form{display:flex;flex:1;min-width:200px}.search-form input{flex:1;padding:.75rem;border:1px solid #ddd;border-radius:4px 0 0 4px}.search-form button{padding:.75rem 1rem;background:#667eea;color:#fff;border:none;border-radius:0 4px 4px 0;cursor:pointer}.filters{display:flex;align-items:center;gap:.5rem}.filters select{padding:.75rem;border:1px solid #ddd;border-radius:4px}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.5rem}.media-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a;cursor:pointer;transition:transform .2s}.media-card:hover{transform:translateY(-4px)}.media-cover{height:150px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff}.media-cover img{width:100%;height:100%;object-fit:cover}.media-info{padding:1rem}.media-info h3{font-size:1rem;margin-bottom:.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-info .creator{color:#666;font-size:.875rem;margin-bottom:.5rem}.type-badge{display:inline-block;padding:.25rem .5rem;background:#eee;border-radius:4px;font-size:.75rem;text-transform:capitalize}.pagination{display:flex;justify-content:center;gap:.5rem;margin-top:2rem}.pagination button{padding:.5rem 1rem;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.pagination button.active{background:#667eea;color:#fff;border-color:#667eea}.loading,.empty{text-align:center;padding:3rem;color:#666}.admin header{display:flex;align-items:center;gap:1rem}.back-link{display:flex;align-items:center;gap:.5rem;color:#667eea;text-decoration:none}.admin-tabs{display:flex;gap:.5rem;margin-bottom:2rem;border-bottom:1px solid #ddd;padding-bottom:1rem}.admin-tabs button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border:none;background:#eee;border-radius:4px;cursor:pointer}.admin-tabs button.active{background:#667eea;color:#fff}.add-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:1rem}.media-form{background:#fff;padding:1.5rem;border-radius:8px;margin-bottom:1.5rem;display:grid;gap:1rem}.media-form input,.media-form select,.media-form textarea{padding:.75rem;border:1px solid #ddd;border-radius:4px}.media-form button{padding:.75rem;background:#667eea;color:#fff;border:none;border-radius:4px;cursor:pointer}table{width:100%;background:#fff;border-radius:8px;border-collapse:collapse;overflow:hidden}th,td{padding:1rem;text-align:left;border-bottom:1px solid #eee}th{background:#f9f9f9;font-weight:600}.delete-btn{padding:.5rem;background:#fee;color:#c00;border:none;border-radius:4px;cursor:pointer}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.stat-card{background:#fff;padding:1.5rem;border-radius:8px;text-align:center}.stat-card h3{color:#666;font-size:.875rem;margin-bottom:.5rem;text-transform:capitalize}.stat-card p{font-size:2rem;font-weight:700;color:#667eea}
