:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: #f5f7fb;
  color: #17191d;
  margin: 0;
}

button {
  background: #111;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: 800 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 38px;
  padding: 0 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
}

.topbar p,
.meta,
.empty {
  color: #697280;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 14px;
}

.item {
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 30, 41, 0.05);
  display: grid;
  gap: 12px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 126px;
  padding: 10px;
}

.cover-box {
  align-items: center;
  background: #edf1f6;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  display: flex;
  height: 104px;
  justify-content: center;
  overflow: hidden;
  width: 104px;
}

.cover {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cover-box[data-empty="true"] .cover,
.cover-empty {
  display: none;
}

.cover-box[data-empty="true"] .cover-empty {
  color: #818b99;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.body {
  display: grid;
  gap: 6px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-width: 0;
  padding: 4px 0;
}

h2 {
  font-size: 17px;
  line-height: 1.38;
  overflow: hidden;
  word-break: break-word;
}

.meta {
  grid-column: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: flex-end;
  max-width: 470px;
}

button[data-kind="audio"] {
  background: #2563eb;
}

button[data-kind="full"] {
  background: #16a34a;
}

button[data-kind="cover"] {
  background: #0f766e;
}

button[data-action="view-video"] {
  background: #7c3aed;
}

button[data-action="copy-title"],
button[data-action="delete"] {
  background: #e8edf3;
  color: #20242a;
}

@media (max-width: 640px) {
  .item {
    align-items: start;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 0;
  }

  .cover-box {
    height: 76px;
    width: 76px;
  }

  .body {
    display: block;
    padding: 0;
  }

  .actions {
    justify-content: flex-start;
    margin-top: 10px;
    max-width: none;
  }
}
