:root {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-primary: #4267B2;
  --accent-secondary: #5B7BD5;
  --accent-success: #42b72a;
  --accent-error: #e41e3f;
  --border-radius: 12px;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glow: 0 0 15px rgba(66, 103, 178, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

header {
  padding: 20px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo i {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 1.2rem;
  box-shadow: var(--glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 103, 178, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(66, 103, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 103, 178, 0);
  }
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 1.5s forwards 0.5s;
}

@keyframes lineGrow {
  to {
    transform: scaleX(1);
  }
}

.download-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin: 0 auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(66, 103, 178, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}

.download-card:hover::before {
  opacity: 1;
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.1;
  }
}

.input-group {
  display: flex;
  gap: 15px;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(66, 103, 178, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.input-group input::placeholder {
  color: var(--text-secondary);
}

.btn-download {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 0 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.btn-download:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  100% {
    left: 200%;
  }
}

.btn-download:disabled {
  background: #555555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-download i {
  font-size: 1rem;
  transition: var(--transition);
}

.btn-download:hover i {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.result {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.video-thumbnail {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.video-thumbnail img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.thumbnail-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.thumbnail-label i {
  font-size: 1rem;
  color: var(--accent-primary);
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.download-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.download-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.option-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-right: 15px;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(66, 103, 178, 0.3);
}

.option-icon.hd {
  background: linear-gradient(135deg, var(--accent-success), #36a420);
  box-shadow: 0 0 10px rgba(66, 183, 42, 0.3);
}

.option-info {
  flex: 1;
}

.option-info .quality {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.option-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.download-option:hover .option-action {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-primary);
  transform: scale(1.1);
  box-shadow: var(--glow);
}

.error {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(228, 30, 63, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-icon {
  color: var(--accent-error);
  font-size: 1.5rem;
  margin-right: 15px;
}

.error-message {
  color: var(--accent-error);
  font-weight: 500;
}

footer {
  padding: 20px;
  text-align: center;
}

.footer-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-content a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.footer-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-primary);
  transition: var(--transition);
}

.footer-content a:hover {
  color: var(--accent-secondary);
}

.footer-content a:hover::after {
  width: 100%;
}

.heart {
  display: inline-block;
  color: var(--accent-error);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
   
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite linear;
}

.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-duration: 20s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-duration: 25s;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 15%;
  animation-duration: 18s;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  top: 40%;
  left: 40%;
  animation-duration: 22s;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  top: 65%;
  left: 70%;
  animation-duration: 15s;
  animation-delay: 4s;
}

.particle:nth-child(6) {
  top: 90%;
  left: 30%;
  animation-duration: 24s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  top: 30%;
  left: 90%;
  animation-duration: 21s;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  top: 50%;
  left: 60%;
  animation-duration: 19s;
  animation-delay: 7s;
}

.particle:nth-child(9) {
  top: 70%;
  left: 20%;
  animation-duration: 23s;
  animation-delay: 8s;
}

.particle:nth-child(10) {
  top: 15%;
  left: 50%;
  animation-duration: 17s;
  animation-delay: 9s;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) translateX(-10px) scale(1);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(-20px) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .btn-download {
    width: 100%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .download-card {
    padding: 20px;
  }
  
  .logo span {
    font-size: 1.2rem;
  }
}
