.ytdl {
  --ytdl-red: #d70018;
  --ytdl-red-dark: #a70012;
  --ytdl-gold-2: #ffe7a0;
  --ytdl-blue: #1267d8;
  --ytdl-blue-dark: #0d4fa8;
  --ytdl-blue-soft: #dcebff;
  --ytdl-text: #1f1f28;
  color: var(--ytdl-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 760px;
}

.ytdl * {
  box-sizing: border-box;
}

.ytdl__panel {
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  border: 4px solid var(--ytdl-red);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(215, 0, 24, 0.12);
}

.ytdl__title {
  margin: 0 0 12px;
  color: #061536;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
}

.ytdl__description {
  margin: 0 0 18px;
  color: #4d5664;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.ytdl__form {
  display: grid;
  align-content: start;
  grid-template-rows: auto 24px auto auto;
  row-gap: 0 !important;
}

.ytdl__input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid #d6dce6;
  border-radius: 8px;
  background: #fff;
  color: var(--ytdl-text);
  font-size: 17px;
  font-weight: 700;
  outline: none;
  margin: 0;
}

.ytdl__input:focus {
  border-color: var(--ytdl-red);
  box-shadow: 0 0 0 4px rgba(215, 0, 24, 0.12);
}

.ytdl__trap {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ytdl__status {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-height: 24px;
  color: #5f6570;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 !important;
  text-align: center;
}

.ytdl__status.is-success {
  color: #11823b;
}

.ytdl__status.is-error {
  color: var(--ytdl-red-dark);
}

.ytdl__button,
.ytdl__file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  margin: 0 !important;
  min-height: 58px;
  padding: 0 28px;
  border: 3px solid var(--ytdl-red);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fff8dc 48%, var(--ytdl-gold-2) 100%);
  color: var(--ytdl-red);
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 4px 0 rgba(167, 0, 18, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  text-decoration: none !important;
}

.ytdl__file-button {
  border-color: var(--ytdl-blue);
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 45%, var(--ytdl-blue-soft) 100%);
  color: var(--ytdl-blue-dark);
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(18, 103, 216, 0.18);
}

.ytdl__button:hover,
.ytdl__button:focus,
.ytdl__file-button:hover,
.ytdl__file-button:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(167, 0, 18, 0.2);
}

.ytdl__file-button:hover,
.ytdl__file-button:focus {
  box-shadow: 0 6px 0 rgba(18, 103, 216, 0.22);
}

.ytdl__button:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.72;
  transform: none;
}

.ytdl__download-slot {
  display: grid;
  gap: 0;
  margin-top: 6px;
}
