* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--font-body, sans-serif);
  background: linear-gradient(160deg, var(--bg-color, #1f1147), var(--bg-color2, #5b2a86));
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

.blob-a {
  width: 320px;
  height: 320px;
  background: var(--accent, #ffb703);
  top: -80px;
  right: -100px;
}

.blob-b {
  width: 260px;
  height: 260px;
  background: var(--bg-color2, #5b2a86);
  bottom: 10%;
  left: -100px;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 18px 60px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
  animation: fadeInDown .6s ease both;
}

.hero-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.2));
}

.hero h1 {
  font-family: var(--font-heading, sans-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.hero .sub {
  opacity: .85;
  font-size: .95rem;
  margin: 0;
  line-height: 1.5;
}

.card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: fadeInUp .6s .1s ease both;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  opacity: .9;
}

.field em { font-weight: 400; opacity: .7; font-style: normal; }

.field input[type="text"],
.field textarea {
  font-family: var(--font-body, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  padding: 13px 15px;
  border-radius: 14px;
  border: none;
  outline: none;
  background: rgba(255,255,255,.95);
  color: #222;
  resize: vertical;
  transition: box-shadow .15s ease;
}

.field input[type="text"]:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px var(--accent, #ffb703);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 26px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.dropzone:active,
.dropzone.has-files {
  border-color: var(--accent, #ffb703);
  background: rgba(255,255,255,.06);
}

.dz-icon {
  width: 30px;
  height: 30px;
  color: var(--accent, #ffb703);
  margin-bottom: 4px;
}

#dz-text {
  font-size: .92rem;
  font-weight: 600;
}

.dz-hint {
  font-size: .74rem;
  font-weight: 400;
  opacity: .65;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-grid img,
.preview-grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

.btn-primary {
  background: var(--accent, #ffb703);
  color: #1a1a1a;
  border: none;
  padding: 15px;
  border-radius: 16px;
  font-family: var(--font-heading, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
}

.btn-primary:active {
  transform: scale(.97);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar {
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}

.progress-fill {
  background: var(--accent, #ffb703);
  height: 100%;
  width: 0%;
  transition: width .2s ease;
}

.progress-text {
  font-size: .8rem;
  text-align: center;
  opacity: .85;
  margin: 0;
}

.status-msg {
  text-align: center;
  font-size: .9rem;
  min-height: 1.2em;
  margin: 0;
  font-weight: 600;
}

.status-msg.success { color: #8ef7a0; }
.status-msg.error { color: #ff9c9c; }

.my-uploads {
  margin-top: 28px;
  animation: fadeInUp .6s .2s ease both;
}

.my-uploads h2 {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.1rem;
  margin: 0 0 12px;
  text-align: center;
}

.my-uploads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.my-uploads-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

.my-uploads-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.1);
}

.footer-note {
  text-align: center;
  font-size: .8rem;
  opacity: .55;
  margin-top: 26px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 480px) {
  .hero h1 { font-size: 2.3rem; }
}
