body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 10px 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 10px;
}

.header h1 {
  font-size: 40px;
  color: #2ebec6;
  margin: 0px 0 5px 0;
}

.header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 8px 16px;
  margin-right: 10px;
  background: #f1f1f1;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
}

.tab.active {
  background: #2ebec6;
  color: white;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section h2 {
  font-size: 20px;
  margin: 0 0 15px 0;
  padding-left: 10px;
  border-left: 3px solid #2ebec6;
}

.grid {
  display: grid;
  grid-template-rows: 1fr;
  gap: 20px;
  padding: 15px 0;
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  min-height: 341px;
}

.video-content {
  flex: 0.8;
}

.video-info {
  flex: 1;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  /* padding-top: 56.25%; */
  /* 16:9 aspect ratio */
  position: relative;
  background-color: #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0.8;
  object-fit: contain;
  border: 1px solid #80808024;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid white;
  margin-left: 5px;
}

.video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px;
  text-align: center;
}

.video-container {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  flex: 0.8;
}

.video-container.active {
  display: block;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
}

.video-info {
  padding: 25px;
}

.video-info h3 {
  font-size: 32px;
  margin: 0 0 10px 0;
}

.video-info span {
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  text-decoration: underline;
}

.video-info p {
  font-size: 16px;
  color: #666;
  margin: 0;
  margin-top: 10px;
}

.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  display: none;
}

.loading.active {
  display: block;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 24px;
  }

  .video-card {
    flex-direction: column;
  }

  .video-content {
    min-height: 200px;
  }

  .video-info {
    min-height: 130px;
    padding: 20px;
  }

  .grid {
    padding: 0;
  }

  .video-info h3 {
    font-size: 20px;
  }

  .tab {
    font-size: 14px;
  }
}
