* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #000066; min-height: 100vh; padding: 20px; transition: background 0.3s; } body.light-mode { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .container { max-width: 1200px; margin: 0 auto; } h1 { color: white; text-align: center; margin-bottom: 30px; font-size: 2.5em; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; gap: 15px; } .logo { width: 80px; height: 80px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 45px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } } .search-box { background: linear-gradient(135deg, #4a0e34 0%, #2d1b3d 100%); padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 30px; transition: background 0.3s; } body.light-mode .search-box { background: white; } .input-group { display: flex; gap: 10px; margin-bottom: 15px; } input[type="text"] { flex: 1; padding: 15px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; font-size: 16px; transition: border-color 0.3s, background 0.3s; background: #000000; color: white; } body.light-mode input[type="text"] { background: white; color: #333; border: 2px solid #e0e0e0; } input[type="text"]::placeholder { color: rgba(255,255,255,0.5); } body.light-mode input[type="text"]::placeholder { color: rgba(0,0,0,0.5); } input[type="text"]:focus { outline: none; border-color: #7b1fa2; background: #1a1a1a; } body.light-mode input[type="text"]:focus { background: #f9f9f9; border-color: #7b1fa2; } button { padding: 15px 30px; background: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(123,31,162,0.5); } button:active { transform: translateY(0); } button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .player-section { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 30px; } #player { width: 100%; aspect-ratio: 16/9; border-radius: 10px; background: #000; } #playerContainer { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; } video { width: 100%; height: 100%; border-radius: 10px; } .controls { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; } .controls button { flex: 1; min-width: 100px; } .quality-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 15px; } .quality-controls button { min-width: 120px; padding: 12px 20px; font-size: 14px; } .quality-controls button.active { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); box-shadow: 0 3px 10px rgba(76,175,80,0.4); } .results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .video-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; } .video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); } .video-card img { width: 100%; height: 180px; object-fit: cover; } .video-info { padding: 15px; } .video-title { font-weight: bold; margin-bottom: 8px; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .video-channel { color: #666; font-size: 12px; } .loading { text-align: center; color: white; font-size: 18px; margin: 20px 0; } .error { background: #ff5252; color: white; padding: 15px; border-radius: 8px; margin-bottom: 20px; } .info { background: #4CAF50; color: white; padding: 15px; border-radius: 8px; margin-bottom: 20px; } #currentVideo { text-align: center; margin-bottom: 15px; font-size: 18px; font-weight: bold; color: #333; } .stream-url { margin-top: 15px; padding: 10px; background: #f5f5f5; border-radius: 5px; font-size: 12px; word-break: break-all; } .api-note { font-size: 12px; color: rgba(255,255,255,0.9); margin-top: 10px; transition: color 0.3s; } body.light-mode .api-note { color: #666; } .theme-toggle { position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,0.2); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 24px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; } .theme-toggle:hover { transform: scale(1.1); background: rgba(255,255,255,0.3); } body.light-mode .theme-toggle { background: rgba(0,0,0,0.1); } body.light-mode .theme-toggle:hover { background: rgba(0,0,0,0.2); }