:root {
  --accent: #8ab4ff;
  --accent-strong: #5e79ff;
  --accent-soft: #c5d9ff;
  --accent-hover: #bcd3ff;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #171717;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Overpass", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  color: #eee;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}


h1 {
  font-family: "Stack Sans Headline", sans-serif;
  font-weight: 700;
  font-size: 50px;
  margin-top: 40px;
  margin-bottom: 0;
  color: #ffffff;
}

h1 .emb {
  color: #ffffff;
}

h1 .eddr {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(138, 180, 255, 0.25);
}

h1 .top {
  color: #ffffff;
}


.title-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.title-link h1 {
  pointer-events: none;
}

.subtitle {
  margin-top: 8px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--accent-soft);
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(138, 180, 255, 0.15);
}

.subtitle-small {
  margin-top: -10px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--accent-soft);
  line-height: 1.45;
  opacity: 0.85;
  text-shadow: 0 0 6px rgba(138, 180, 255, 0.12);
}

.site-alert {
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffdb6e;
  padding: 12px 18px;
  border-radius: 12px;
  margin: 0 auto 22px;
  max-width: 420px;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(255, 200, 0, 0.35);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(255, 200, 0, 0.2);
}

.site-alert strong {
  font-weight: 600;
  color: #ffe6a0;
}


.why-details {
  margin: -6px auto 16px;
  padding: 0;
}

.why-details summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-hover);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.why-details summary span {
  text-decoration: underline;
}

.why-details summary::-webkit-details-marker {
  display: none;
}

.why-details summary::after {
  content: "▾";
  font-size: 13px;
  color: var(--accent-hover);
  transition: transform 0.2s ease;
}

.why-details[open] summary::after {
  transform: rotate(180deg);
}

.why-details p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-soft);
  line-height: 1.45;
  opacity: 0.9;
}

.container {
  padding: 0 16px 40px;
  width: 100%;
  max-width: 500px;  
  margin: 0 auto;
}

.drop-area {
  border: 2px dashed #6f96d9;
  padding: 42px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  height: 200px;
  width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.drop-area:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drop-area.dragover {
  border-color: var(--accent);
  background: rgba(138, 180, 255, 0.12);
}

#drop-message {
  pointer-events: none;
}

#upload-icon {
  margin-bottom: 12px;
  opacity: 0.8;
  transition: 0.2s ease;
}

.drop-area:hover #upload-icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(138, 180, 255, 0.4));
}

.preview {
  margin-top: 16px;
}

.preview video {
  width: 100%;
  border-radius: 12px;
  max-height: 260px;
  object-fit: cover;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(138, 180, 255, 0.18);
}

.preview-fallback {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  background: #111;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(138, 180, 255, 0.18);
}

.upload-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
}

.expiry-container {
  margin: 10px auto -4px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100px;
}

.expiry-label {
  font-size: 14px;
  color: var(--accent-soft);
  opacity: 0.85;
}

.expiry-select {
  padding: 8px 12px;
  font-size: 14px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(138, 180, 255, 0.4);
  border-radius: 10px;
  color: #dde7ff;
}

.expiry-select:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 8px rgba(138, 180, 255, 0.3);
}

.cf-turnstile {
  margin-top: 10px;
}

.result-note {
  margin-top: 10px;
  font-size: 14px;
  color: #ffbf6b;  /* soft friendly orange */
  opacity: 0.9;
  text-align: left;
  line-height: 1.35;
}

.hidden {
  display: none !important;
}

button {
  all: unset;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-strong));
  border: 1px solid #304f8f;
  color: #fff;
  padding: 12px 26px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 0 #263b6a;
  transition: 0.15s ease;
  display: inline-block;
  margin: 0 auto;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #263b6a;
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #263b6a;
}

.secondary-btn {
  all: unset;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-soft);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  margin: 4px auto 0;
  cursor: pointer;
  transition: 0.15s ease;
  box-shadow: 0 0 0 transparent;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--accent-hover);
}

#newUploadBtn {
  margin-top: 20px;
}

.direct-link-card {
  width: 350px;
  max-width: 90%;
  margin: 10px auto 0 auto;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(138, 180, 255, 0.28);
  padding: 18px 18px;
  border-radius: 14px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(138, 180, 255, 0.2);
  animation: popIn 0.25s ease forwards;
  transform: scale(0.96);
  opacity: 0;
}

.direct-link-card input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(138, 180, 255, 0.4);
  border-radius: 10px;
  color: #dde7ff;
  font-size: 14px;
}

.direct-link-card input:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 10px rgba(138, 180, 255, 0.3);
}

.tooltip-text {
  font-size: 12px;
  margin-top: 4px;
  text-align: center;
  opacity: 0.6;
  color: var(--accent-soft);
  margin-bottom: 0;
}

.status-box {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
  font-size: 14px;
  text-shadow: 0 0 6px rgba(138, 180, 255, 0.2);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 4px solid rgba(138, 180, 255, 0.22);
  border-top-color: var(--accent-hover);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.slow-note {
  font-size: 13px;
  color: var(--accent-soft);
  opacity: 0.8;
  margin-top: -4px;
  max-width: 260px;
  text-align: center;
}

.status-hint {
  font-size: 13px;
  opacity: 0.8;
  margin-top: -4px;
  color: var(--accent-soft);
}

.result {
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
}

.result-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(138, 180, 255, 0.28);
  padding: 18px 18px;
  border-radius: 14px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(138, 180, 255, 0.2);
  animation: popIn 0.25s ease forwards;
  transform: scale(0.96);
  opacity: 0;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-title {
  font-size: 17px;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

#resultLink {
  flex: 1;
  padding: 10px 12px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(138, 180, 255, 0.4);
  border-radius: 10px;
  color: #dde7ff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

#resultLink:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 10px rgba(138, 180, 255, 0.3);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 38px;
  width: 38px;
  padding: 0;
  
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s ease;
  box-shadow: 0 0 0 transparent;
}

.icon-btn i,
.icon-btn svg {
  font-size: 18px;
  width: 20px;
  height: 20px;
  color: var(--accent-soft);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #263b6a;
}

.icon-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #263b6a;
}


.copy-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.footer {
  margin-top: auto;
  padding: 20px 0 30px;
  font-size: 14px;
  color: #8ca5d9;
}

.footer a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: 0.2s ease;
}

.footer a:hover {
  color: #d6e4ff;
  text-shadow: 0 0 8px rgba(138, 180, 255, 0.5);
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {

  body {
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  h1 {
    font-size: 50px !important;
    margin-bottom: 0px !important;
    text-align: center !important;
  }

  .subtitle,
  .subtitle-small {
    font-size: 14px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }

  .drop-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 12px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  #upload-icon {
    width: 36px !important;
    height: 36px !important;
  }

  #drop-message p {
    font-size: 14px !important;
  }

  #preview video,
  #previewVideo {
    max-width: 100% !important;
    border-radius: 8px;
  }

  #mobilePreviewImage {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

  #uploadBtn,
  #changeFileBtn {
    width: 100% !important;
  }

  #statusText {
    font-size: 14px !important;
  }

  .direct-link-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 12px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .result-card {
    width: 100% !important;
    box-sizing: border-box;
  }

  .link-row input {
    font-size: 14px !important;
  }

  .footer {
    font-size: 14px !important;
    margin-top: 40px !important;
  }
}

@media (max-width: 600px) {
  #uploadBtn,
  #changeFileBtn,
  #newUploadBtn {
    width: 100%;
    max-width: 300px;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 10px;
    margin: 12px auto 0 auto;
  }

  .upload-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}
