* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #4a4a4a;
}

.input-section {
  display: flex;
  margin-bottom: 20px;
}

#urlInput {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

#parseBtn {
  padding: 12px 20px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#parseBtn:hover {
  background-color: #3367d6;
}

.loading {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #4285f4;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.result-container {
  display: none;
  margin-top: 20px;
}

.video-container {
  display: none;
  margin-bottom: 20px;
}

#videoPlayer {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.images-container {
  display: none;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.image-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.download-single {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(66, 133, 244, 0.8);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}

.download-single:hover {
  background-color: rgba(51, 103, 214, 0.9);
}

.download-buttons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.download-btn {
  padding: 10px 20px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  margin: 0 5px;
}

.download-btn:hover {
  background-color: #3367d6;
}

.error-message {
  color: #d93025;
  margin: 10px 0;
  padding: 10px;
  background-color: rgba(217, 48, 37, 0.1);
  border-radius: 4px;
  text-align: center;
} 