* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: #1f2937;
}

h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.upload {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  width: min(500px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stats {
  margin-top: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  width: min(100%, 700px);
  height: fit-content;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  justify-content: center;
  gap: 1rem;
}
.stats div {
    display: flex;
    justify-content: center;
    align-items: center;
  height: 100%;
  width: 100%;
}

canvas{
    width: 100%;
}

input[type="file"] {
  padding: 0.75rem;
  border: 2px dashed #2563eb;
  border-radius: 0.75rem;
  background: #eff6ff;
  cursor: pointer;
}

input[type="submit"] {
  padding: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  background: #2563eb;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

input[type="submit"]:hover {
  background: #1d4ed8;
}

.results {
  margin-top: 2rem;
  width: min(700px, 100%);
}

.results-general {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.results-general p {
  background: white;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  font-size: 1.1rem;
  font-weight: 600;
}

.results-total-vids::before {
  content: "📹 Total Videos";
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.results-total-channels::before {
  content: "📺 Total Channels";
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
