* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(217, 212, 206);
  font-family: Arial, sans-serif;
}


.container {
  width: 100%;
  max-width: 530px;
  margin: 20px auto;
  padding: 20px;

  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}


.fabric-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 6px;
}

/* Video preview card */
.video-card {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 16px;

  padding: 12px;
  margin-bottom: 16px;

  border: 1px solid #e9e9e9;
  border-radius: 8px;
  cursor: pointer;
}

.video-preview {
  position: relative;
  width: 40%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #eee;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  justify-content: center;
  align-items: center;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 16px;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-title {
  font-size: 15px;
  color: #222;
}

.video-duration {
  font-size: 13px;
  color: #999;
}

/* Video player overlay */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal video {
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .container {
    margin: 0 auto;
    border-radius: 0;
    min-height: 100vh;
  }
}
