
/* ===== GLOBAL ===== */
body {
  background-color: #111;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
}

/* ===== HEADER ===== */
h1 {
  margin: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #1b1b1b;
  border-bottom: 1px solid #333;
}

/* ===== UPLOAD BUTTON ===== */
.upload-btn {
  background: #00b894;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.upload-btn:hover {
  background: #019875;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* ===== CARD (FIXED BUT SAME LOOK) ===== */
.card {
  background: #222;
  border-radius: 10px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  height: 100%;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.05);
}

/* ===== LINK WRAPPER ===== */
.card a:first-child {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
}

/* ===== THUMBNAIL ===== */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* ===== TITLE ===== */
.card p {
  margin: 10px;
  text-align: center;
  font-size: 14px;
}

/* ===== PLAYER ===== */
.player-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

video {
  width: 80%;
  max-width: 2080px;
  border-radius: 10px;
}

/* ===== CONVERT BUTTON ===== */
.convert-btn {
  display: block;
  margin: 10px;

  padding: 8px;
  background: #0984e3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;

  flex-shrink: 0;
  transition: background 0.2s ease;
}

.convert-btn:hover {
  background: #0652dd;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  video {
    width: 95%;
  }
}
