:root { --primary-color: #6366f1; --primary-hover: #4f46e5; --secondary-color: #8b5cf6; --accent-color: #06b6d4; --background: #0a0a0a; --surface: #1a1a1a; --surface-hover: #2a2a2a; --border: #333333; --text-primary: #ffffff; --text-secondary: #cccccc; --text-muted: #888888; --success: #10b981; --warning: #f59e0b; --error: #ef4444; } * { box-sizing: border-box; } body { margin: 0; font-family: 'Segoe UI', sans-serif; background-color: var(--background); color: var(--text-primary); } header { text-align: center; padding: 20px; background-color: var(--surface); border-bottom: 2px solid var(--primary-color); } h1 { margin: 0; font-size: 28px; color: var(--primary-color); } form { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; background-color: var(--surface); } input[type="text"] { width: 60%; padding: 12px; font-size: 16px; border: none; border-radius: 6px; outline: none; background-color: var(--surface-hover); color: var(--text-primary); } .media-type { display: flex; gap: 20px; color: var(--text-secondary); } button { padding: 12px 20px; font-size: 16px; background-color: var(--primary-color); color: white; border: none; border-radius: 6px; cursor: pointer; } button:hover { background-color: var(--primary-hover); } #results { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; } .movie-card { position: relative; display: flex; flex-direction: column; background-color: var(--surface); width: 200px; /* antes era 180px, aumentamos */ border-radius: 8px; overflow: hidden; transition: transform 0.2s; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); height: 100%; } .movie-card img { width: 100%; aspect-ratio: 2/3; /* mantém proporção das imagens */ object-fit: cover; } .movie-info { flex: 1; /* faz o conteúdo ocupar espaço igual */ display: flex; flex-direction: column; justify-content: space-between; /* empurra botão para baixo */ padding: 10px; text-align: center; } .movie-info h3 { margin: 0 0 5px 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .movie-info p { font-size: 14px; color: var(--text-muted); margin: 4px 0; } .movie-info button { margin-top: 10px; width: 100%; padding: 8px; background-color: var(--secondary-color); border: none; color: white; border-radius: 4px; cursor: pointer; flex-shrink: 0; } /* MODAL */ .modal { display: none; position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%; overflow-y: auto; background-color: rgba(0, 0, 0, 0.8); } .modal-content { position: relative; margin: 5% auto; background-color: var(--surface); padding: 20px; border-radius: 10px; width: 90%; max-width: 900px; } .modal-body { display: flex; flex-wrap: wrap; gap: 20px; } .modal-body img { max-width: 300px; border-radius: 10px; } .modal-info { flex: 1; min-width: 250px; } .modal-info h2 { margin-top: 0; color: var(--primary-color); } .modal-info p { color: var(--text-secondary); } .modal-info .warning { color: var(--warning); font-size: 14px; margin-top: 10px; } .modal iframe { width: 100%; height: 500px; margin-top: 20px; border: none; } .close { position: absolute; top: 10px; right: 20px; font-size: 32px; font-weight: bold; color: var(--text-primary); cursor: pointer; z-index: 9999; background-color: rgba(0, 0, 0, 0.6); padding: 4px 12px; border-radius: 6px; transition: background 0.2s; } .close:hover { background-color: rgba(255, 255, 255, 0.1); } .badge { position: absolute; top: 6px; left: 6px; background-color: var(--accent-color); color: white; padding: 2px 6px; font-size: 12px; border-radius: 4px; font-weight: bold; z-index: 2; } .movie-card { position: relative; } .spinner { border: 6px solid var(--surface-hover); border-top: 6px solid var(--primary-color); border-radius: 50%; width: 50px; height: 50px; margin: 40px auto; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }