.song-request-widget,
.song-request-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: normal;
  list-style: none;
  text-decoration: none;
  color: inherit;
  background: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  vertical-align: baseline;
}
.song-request-widget {
  color: #1a1a1a;
  display: block;
}
.song-request-widget button,
.song-request-widget select,
.song-request-widget input {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.song-request-widget svg { display: block; }
.song-request-widget {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.song-request-widget .wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
.song-request-widget .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.song-request-widget .table-scroll table { width: 100%; table-layout: fixed; }
.song-request-widget thead th:first-child,
.song-request-widget td:first-child { width: auto; }
.song-request-widget thead th.actions-col,
.song-request-widget td.actions-col-cell { width: 110px; }
.song-request-widget .toolbar,
.song-request-widget .pager,
.song-request-widget .search-box,
.song-request-widget .right-tools {
  min-width: 0;
  max-width: 100%;
}

.song-request-widget .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.song-request-widget .pager {
  display: flex;
  align-items: center;
  gap: 6px;
}
.song-request-widget .pager button,
.song-request-widget .pager .pnum {
  min-width: 34px;
  height: 34px;
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.song-request-widget .pager .pnum.active {
  background: #1e6fd9;
  border-color: #1e6fd9;
  color: #fff;
}
.song-request-widget .pager .ellipsis { border: none; background: none; cursor: default; }
.song-request-widget .pager input[type="number"] {
  width: 46px;
  height: 34px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
}
.song-request-widget .pager .go {
  background: #f4f4f4;
  font-weight: 600;
}

.song-request-widget .search-box {
  position: relative;
  flex: 1;
  max-width: 760px;
  min-width: 200px;
}
.song-request-widget .search-box .icon {
  position: absolute !important;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.song-request-widget .search-box .icon svg { width: 15px !important; height: 15px !important; }
.song-request-widget .search-box input {
  width: 100%;
  height: 42px;
  border: 1px solid #d7d7d7 !important;
  border-radius: 6px;
  padding: 0 32px 0 34px;
  background: #fff !important;
}
.song-request-widget .search-box input:focus { outline: none; border-color: #9ec3ee !important; }
.song-request-widget .search-clear {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent !important;
  border-radius: 50%;
  cursor: pointer;
}
.song-request-widget .search-clear:hover { background: #eee !important; }
.song-request-widget .search-clear[hidden] { display: none !important; }
.song-request-widget .search-clear svg { width: 14px !important; height: 14px !important; }

.song-request-widget .right-tools {
  display: flex !important;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  background: #333 !important;
}
.song-request-widget .right-tools > * {
  border-radius: 0 !important;
  border-right: 1px solid #4a4a4a !important;
}
.song-request-widget .right-tools > *:last-child { border-right: none !important; }
.song-request-widget .right-tools select {
  height: 42px;
  color-scheme: dark;
  background-color: #333 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='white'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  color: #fff !important;
  padding: 0 28px 0 14px;
}
.song-request-widget .right-tools select:focus { outline: none; }
.song-request-widget .right-tools button {
  height: 42px;
  width: 42px;
  background: #333 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.song-request-widget .right-tools #filterBtn { width: 52px; }
.song-request-widget .right-tools button:hover,
.song-request-widget .right-tools select:hover { background-color: #444 !important; }
.song-request-widget .right-tools button svg { width: 17px !important; height: 17px !important; display: block !important; }
.song-request-widget .right-tools #filterBtn svg:last-child { width: 10px !important; height: 6px !important; }

.song-request-widget .filter-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.song-request-widget .filter-menu {
  position: fixed;
  background: #fff !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 160px;
  z-index: 10000;
}
.song-request-widget .filter-menu[hidden] { display: none !important; }
.song-request-widget .filter-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #333 !important;
  cursor: pointer;
  white-space: nowrap;
}
.song-request-widget .filter-item:hover { background: #f4f4f4 !important; }
.song-request-widget .filter-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid #b8b8b8 !important;
  border-radius: 3px;
  background: #fff !important;
  flex-shrink: 0;
  position: relative;
}
.song-request-widget .filter-item input[type="checkbox"]:checked {
  background: #1e6fd9 !important;
  border-color: #1e6fd9 !important;
}
.song-request-widget .filter-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.song-request-widget .filter-item input[type="checkbox"]:disabled { opacity: 0.6; cursor: not-allowed; }

.song-request-widget table { width: 100%; border-collapse: collapse; }
.song-request-widget thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e2e2;
}
.song-request-widget thead th.actions-col { text-align: right; }

.song-request-widget tbody tr:nth-child(odd) { background: #f4f4f4; }
.song-request-widget tbody tr:nth-child(even) { background: #fff; }

.song-request-widget td { padding: 10px 8px; vertical-align: middle; font-size: 14px; }
.song-request-widget .track-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.song-request-widget .track-cell > div:last-child { min-width: 0; overflow: hidden; }
.song-request-widget .track-title,
.song-request-widget .track-artist,
.song-request-widget .track-extra {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.song-request-widget .cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #ddd;
  flex-shrink: 0;
}
.song-request-widget .track-title { font-weight: 500; color: #1a1a1a; line-height: 1.3; }
.song-request-widget .track-artist { font-size: 12.5px; color: #6b6b6b; line-height: 1.3; }
.song-request-widget .track-extra { font-size: 12px; color: #999; line-height: 1.3; }
.song-request-widget .actions-col-cell { text-align: right; padding-right: 8px; padding-left: 4px; }

.song-request-widget .req-btn {
  background: #1e6fd9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  cursor: pointer;
}
.song-request-widget .req-btn:hover { background: #175cb8; }
.song-request-widget .req-btn:disabled { background: #b9c8dc; cursor: not-allowed; }

.song-request-widget .toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9999;
}
.song-request-widget .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.song-request-widget .empty { text-align: center; padding: 40px 0; color: #888; font-size: 14px; }

@media (max-width: 940px) {
  .song-request-widget .wrap { padding: 0; }

  .song-request-widget .toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .song-request-widget .toolbar > * { width: 100%; max-width: 100%; }

  .song-request-widget .pager {
    order: 2;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
  }
  .song-request-widget .pager button,
  .song-request-widget .pager .pnum {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
    padding: 0 4px;
  }
  .song-request-widget .pager input[type="number"] {
    width: 38px;
    height: 30px;
  }

  .song-request-widget .search-box { order: 1; width: 100%; max-width: 100%; }

  .song-request-widget .right-tools {
    order: 3;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .song-request-widget .right-tools button,
  .song-request-widget .right-tools select { height: 38px; width: auto; }
  .song-request-widget .right-tools select { padding: 0 22px 0 10px; font-size: 12px; }
  .song-request-widget .filter-wrap { display: none !important; }

  .song-request-widget tbody td:not(:first-child):not(.actions-col-cell),
  .song-request-widget thead th:not(:first-child):not(.actions-col) { display: none !important; }
}

@media (max-width: 330px) {
  .song-request-widget .table-scroll { overflow-x: visible; }
  .song-request-widget .table-scroll table { min-width: 0; }
  .song-request-widget table,
  .song-request-widget thead,
  .song-request-widget tbody,
  .song-request-widget tr {
    display: block;
    width: 100%;
  }
  .song-request-widget thead { display: none; }
  .song-request-widget tbody tr {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 6px;
    gap: 8px;
  }
  .song-request-widget td {
    display: block;
    padding: 0;
    border: none;
    width: 100%;
  }
  .song-request-widget .actions-col-cell { text-align: left; }
  .song-request-widget .cover { width: 32px; height: 32px; }
  .song-request-widget .req-btn { padding: 8px 12px; font-size: 11px; white-space: nowrap; }
  .song-request-widget td[data-label] { font-size: 13px; color: #555; }
  .song-request-widget td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 500;
    color: #888;
  }
  .song-request-widget .track-artist,
  .song-request-widget .track-title {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}