.wdbm-download-box {
  max-width: 420px;
  margin: 24px auto;
  padding: 34px 34px 32px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 30, 35, 0.04);
  font-family: Arial, Helvetica, sans-serif;
  color: #243238;
  box-sizing: border-box;
}

.wdbm-download-box *,
.wdbm-download-box *::before,
.wdbm-download-box *::after {
  box-sizing: border-box;
}

.wdbm-size {
  text-align: center;
  font-size: 62px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: #263237;
}

.wdbm-size span {
  margin-left: 4px;
  font-size: 28px;
}

.wdbm-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 34px;
  font-size: 14px;
}

.wdbm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: #8d6b00;
  color: #fff;
  font-weight: 700;
}

.wdbm-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

.wdbm-star {
  width: 21px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3d3d3;
  font: 700 22px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: color 0.15s ease;
}

.wdbm-star.is-active,
.wdbm-stars:hover .wdbm-star {
  color: #ffb800;
}

.wdbm-stars .wdbm-star:hover ~ .wdbm-star {
  color: #d3d3d3;
}

.wdbm-status {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  font-size: 16px;
  font-weight: 700;
}

.wdbm-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #18c9a7;
  position: relative;
  flex: 0 0 auto;
}

.wdbm-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  inset: 7px;
}

.wdbm-actions {
  display: grid;
  gap: 16px;
}

.wdbm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  border: 0;
  border-radius: 4px;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.wdbm-btn:hover,
.wdbm-btn:focus {
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #fff !important;
}

.wdbm-btn-dark {
  background: #29383c;
}

.wdbm-btn-fast {
  gap: 18px;
  background: #ffa21a;
  min-height: 53px;
}

.wdbm-btn-fast small {
  font-size: 14px;
  font-weight: 400;
}

.wdbm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 55px);
  gap: 12px;
}

.wdbm-row.wdbm-icons-1 {
  grid-template-columns: minmax(0, 1fr) 55px;
}

.wdbm-row.wdbm-icons-2 {
  grid-template-columns: minmax(0, 1fr) repeat(2, 55px);
}

.wdbm-row.wdbm-row-icons-only {
  grid-template-columns: repeat(3, 55px);
  justify-content: center;
}

.wdbm-row.wdbm-row-icons-only.wdbm-icons-1 {
  grid-template-columns: 55px;
}

.wdbm-row.wdbm-row-icons-only.wdbm-icons-2 {
  grid-template-columns: repeat(2, 55px);
}

.wdbm-btn-torrent,
.wdbm-btn-icon {
  background: #008f76;
}

.wdbm-btn-torrent {
  gap: 16px;
}

.wdbm-btn-icon {
  padding: 0;
  position: relative;
}

.wdbm-like-btn.is-liked {
  background: #007f68;
}

.wdbm-like-btn.is-liked .wdbm-svg {
  fill: currentColor;
}

.wdbm-like-count {
  position: absolute;
  right: 5px;
  bottom: 4px;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

.wdbm-svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px !important;
  color: currentColor;
  overflow: visible;
}

.wdbm-btn-fast .wdbm-svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  flex-basis: 26px !important;
}

.wdbm-btn-torrent .wdbm-svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  flex-basis: 26px !important;
}

.wdbm-history .wdbm-svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  flex-basis: 22px !important;
}

.wdbm-copy-done,
.wdbm-copy-btn.is-copied .wdbm-copy-icon {
  display: none;
}

.wdbm-copy-btn.is-copied .wdbm-copy-done {
  display: inline;
}

.wdbm-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  color: #008f76 !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .wdbm-download-box {
    padding: 28px 22px;
  }

  .wdbm-size {
    font-size: 52px;
  }

  .wdbm-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 52px);
    gap: 12px;
  }

  .wdbm-row.wdbm-icons-1 {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .wdbm-row.wdbm-icons-2 {
    grid-template-columns: minmax(0, 1fr) repeat(2, 52px);
  }

  .wdbm-row.wdbm-row-icons-only {
    grid-template-columns: repeat(3, 52px);
  }

  .wdbm-row.wdbm-row-icons-only.wdbm-icons-1 {
    grid-template-columns: 52px;
  }

  .wdbm-row.wdbm-row-icons-only.wdbm-icons-2 {
    grid-template-columns: repeat(2, 52px);
  }
}

/* ============================================================
   PREVIOUS VERSIONS TABLE
   ============================================================ */
.wdbm-prev-versions {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 32px auto 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #243238;
}

.wdbm-prev-versions *,
.wdbm-prev-versions *::before,
.wdbm-prev-versions *::after {
  box-sizing: border-box;
}

.wdbm-pv-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #263237;
}

.wdbm-pv-table {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.wdbm-pv-header,
.wdbm-pv-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 0;
}

.wdbm-pv-header {
  background: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}

.wdbm-pv-header .wdbm-pv-info {
  display: block;
}

.wdbm-pv-row {
  border-bottom: 1px solid #ebebeb;
  transition: background 0.15s;
}

.wdbm-pv-row:last-child {
  border-bottom: none;
}

.wdbm-pv-row:hover {
  background: #f9f9f9;
}

.wdbm-pv-col {
  padding: 14px 16px;
}

.wdbm-pv-date {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #263237;
}

.wdbm-pv-info {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 8px;
  font-size: 14px;
  align-items: start;
}

.wdbm-pv-info span:not(.wdbm-pv-label) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.wdbm-pv-label {
  font-weight: 700;
  color: #263237;
}

.wdbm-pv-dl {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding-left: 24px;
  padding-right: 36px;
}

.wdbm-pv-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wdbm-pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #008f76;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
  flex-shrink: 0;
}

.wdbm-pv-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.wdbm-pv-btn-direct { background: #29383c; }
.wdbm-pv-btn-torrent { background: #008f76; }
.wdbm-pv-btn-fast   { background: #ffa21a; }

.wdbm-pv-btn .wdbm-svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex-basis: 20px !important;
}

.wdbm-pv-size {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .wdbm-pv-header,
  .wdbm-pv-row {
    grid-template-columns: 1fr;
  }

  .wdbm-pv-header .wdbm-pv-date,
  .wdbm-pv-header .wdbm-pv-info {
    display: none;
  }

  .wdbm-pv-col {
    padding: 10px 14px;
  }

  .wdbm-pv-date {
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 6px;
  }

  .wdbm-pv-dl {
    min-width: unset;
    padding-top: 10px;
  }

  .wdbm-pv-info {
    grid-template-columns: 80px 1fr;
  }
}
