* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.logo {
  width: 40px;
  height: 40px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
}

.error {
  padding: 15px;
  background-color: #ff3333;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.video-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-item {
  position: relative;
  width: 100%;
}

.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
}

.video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  margin-top: 15px;
}

.video-info h2 {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.video-actions a {
  display: inline-block;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.video-actions a:hover {
  background-color: #444;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: #aaa;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #ff0050;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.retry-button, .load-more-button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #ff0050;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.retry-button:hover, .load-more-button:hover {
  background-color: #e00045;
}

.load-more {
  text-align: center;
  padding: 20px 0;
    }

/* Halaman 404 */
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.error-container {
  max-width: 500px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.error-message {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.error-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.5;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.home-button, .back-button {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.home-button {
  background: linear-gradient(45deg, #ff0050, #ff4040);
  color: white;
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 0, 80, 0.3);
}

.back-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.error-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tiktok-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #ff0050, #00f2ea);
  border-radius: 12px;
  position: relative;
  animation: pulse 2s infinite;
}

.tiktok-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-color: black;
  border-radius: 6px;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background-color: #ff0050;
  border-radius: 50%;
  animation: loading 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

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

@keyframes loading {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
  }

.search-container {
  margin-bottom: 25px;
}

.search-form {
  display: flex;
  margin-bottom: 15px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 20px 0 0 20px;
  font-size: 16px;
  background-color: #333;
  color: #fff;
}

.search-button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 20px 20px 0;
  background-color: #ff0050;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #e00045;
}

.popular-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.popular-tags span {
  color: #aaa;
  font-size: 14px;
}

.tag-button {
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tag-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
