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

:root {
  --primary: #ff69b4;
  --primary-dark: #ff1493;
  --primary-light: #ffb6d9;
  --secondary: #ffd700;
  --bg-main: #fff0f5;
  --bg-card: #ffffff;
  --text-dark: #4a2c4a;
  --text-light: #8b6b8b;
  --shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
  --shadow-hover: 0 8px 24px rgba(255, 105, 180, 0.25);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--bg-main) 0%, #ffe0f0 100%);
  color: var(--text-dark);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

#app {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.6s ease;
}

header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
}

.search-container {
  position: relative;
  margin-bottom: 30px;
  animation: fadeIn 0.8s ease;
}

#searchInput {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 3px solid var(--primary-light);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

#searchInput::placeholder {
  color: var(--text-light);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  pointer-events: none;
}

.themes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeIn 1s ease;
}

.theme-btn {
  background: linear-gradient(135deg, var(--bg-card) 0%, #fff5fb 100%);
  border: 3px solid var(--primary-light);
  border-radius: 20px;
  padding: 24px;
  padding-right:56px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  text-align: left;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.theme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.1), transparent);
  transition: left 0.5s ease;
}

.theme-btn:hover::before {
  left: 100%;
}

.theme-btn:hover {
  border-color: var(--primary);
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.theme-btn:active {
  transform: translateY(-2px) scale(1);
}

.theme-title {
  display: block;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-indicator,
.upload-indicator {
  position: absolute;
  top: 28px;
  right: 12px;
  font-size: 1.5rem;
  animation: bounce 1s infinite;
}

.add-theme-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-family: inherit;
}

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

.add-theme-btn:active {
  transform: translateY(-1px);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 44, 74, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 25px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
  animation: slideUp 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

#modalBody h2 {
  color: var(--primary);
  margin-top:30px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
}

video {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 200px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-family: inherit;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.action-btn.secondary {
  background: linear-gradient(135deg, var(--text-light) 0%, var(--text-dark) 100%);
}

.upload-container {
  text-align: center;
}

.upload-container p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

#videoFile,
#newThemeInput {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 3px dashed var(--primary-light);
  border-radius: 15px;
  background: var(--bg-main);
  cursor: pointer;
  font-family: inherit;
}

#videoFile:hover {
  border-color: var(--primary);
}

#newThemeInput {
  border-style: solid;
  cursor: text;
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

#newThemeInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
  transform: scale(1.02);
}

#newThemeInput::placeholder {
  color: var(--text-light);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-main);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
  border-radius: 50px;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 640px) {
  header h1 {
    font-size: 2rem;
  }

  .themes-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .action-btn {
    min-width: 100%;
  }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

a.badge{
  display:none !important
}
