/* ZLEDI public board skin */

.public-page {
  background: #eef1f5;
  color: #252a33;
  padding-top: 44px;
  font-family: Arial, "Malgun Gothic", sans-serif;
}

.public-page .public-aurora {
  display: none;
}

.board-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 42px;
  background: #1f232b;
  border-bottom: 2px solid #d8313a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.board-nav {
  width: min(1120px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.board-nav::-webkit-scrollbar {
  display: none;
}

.board-brand {
  height: 100%;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  background: #d8313a;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  flex-shrink: 0;
}

.board-nav-item {
  height: 100%;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #c8ced8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.board-nav-item:hover,
.board-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.board-nav-item.highlight {
  color: #8fffe5;
}

.public-page .requests-layout {
  width: min(1120px, calc(100% - 20px));
  margin: 16px auto 28px;
  gap: 10px;
}

.public-page .public-hero {
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  margin: 0;
}

.board-title-block {
  gap: 12px;
}

.board-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #1f232b;
  color: #fff;
  border: 3px solid #d8313a;
  border-radius: 4px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.board-logo-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #161a22;
  font-family: Arial, "Malgun Gothic", sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.board-logo-title span {
  padding: 2px 7px;
  border-radius: 3px;
  background: #d8313a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.public-page .public-tagline {
  margin: 4px 0 0;
  color: #687386;
  font-size: 13px;
  font-weight: 600;
}

.public-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-page .public-channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  border: 1px solid #0f9f75;
  background: #10b981;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

.public-page .public-channel-link:hover {
  background: #059669;
}

.public-page .public-live-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #c9eedc;
  border-radius: 3px;
  background: #f0fdf4;
}

.public-page .public-live-text strong {
  color: #15803d;
  font-size: 11px;
  letter-spacing: 0;
}

.public-page .public-live-badge .status-update-text {
  color: #16a34a;
  font-size: 11px;
  margin: 1px 0 0;
}

.public-page .card {
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  padding: 14px 16px;
}

.public-page .public-submit-panel {
  padding: 14px 16px;
}

.public-submit-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e6ee;
}

.public-submit-heading h2,
.public-page .requests-section-title {
  margin: 0;
  color: #1f232b;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.public-submit-heading p {
  margin: 0;
  color: #7a8495;
  font-size: 12px;
  font-weight: 600;
}

.public-page .public-submit-form {
  display: grid;
  grid-template-columns: minmax(100px, 150px) minmax(220px, 1fr) 86px;
  gap: 8px;
  align-items: end;
}

.public-page .public-submit-field {
  gap: 5px;
}

.public-page .public-submit-field span {
  color: #4a5568;
  font-size: 12px;
  font-weight: 800;
}

.public-page .public-submit-field input {
  height: 36px;
  border: 1px solid #cfd5df;
  border-radius: 3px;
  background: #fbfcfe;
  color: #252a33;
  font-size: 13px;
  padding: 0 10px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.public-page .public-submit-field input:focus {
  border-color: #d8313a;
  box-shadow: 0 0 0 2px rgba(216, 49, 58, 0.12);
  background: #fff;
}

.public-page .public-submit-form .btn-primary {
  height: 36px;
  border-radius: 3px;
  background: #d8313a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.public-page .public-submit-form .btn-primary:hover {
  background: #bd252e;
  transform: none;
  box-shadow: none;
}

.public-page .public-submit-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: progress;
}

.public-page .public-submit-status {
  min-height: 16px;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.public-page .public-submit-status.success { color: #059669; }
.public-page .public-submit-status.error { color: #dc2626; }
.public-page .public-submit-status.pending { color: #0891b2; }

.public-page .requests-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e6ee;
  margin-bottom: 8px;
}

.public-page .requests-section-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: #d8313a;
  flex-shrink: 0;
}

.public-page .requests-grid {
  gap: 10px;
}

.public-page .table-container {
  border: 1px solid #dfe4ec;
  border-radius: 3px;
  background: #fff;
  overflow: auto;
}

.public-page table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

.public-page th,
.public-page td {
  border-bottom: 1px solid #edf0f5;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.public-page thead th {
  background: #f6f7fa;
  color: #4b5565;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.public-page tbody td {
  background: #fff;
  color: #2d3748;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-page tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.public-page tbody tr:hover td {
  background: #fff8f8;
}

.public-page tbody tr:last-child td {
  border-bottom: 0;
}

.public-page .request-playing td {
  background: #fff6f6;
  box-shadow: inset 3px 0 0 #d8313a;
}

.public-page .request-video-cell {
  white-space: normal;
  width: 100%;
}

.public-page .video-cell-container {
  gap: 9px;
}

.public-page .cell-thumb {
  width: 66px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.public-page .cell-title-link {
  color: #263245;
  font-size: 13px;
  font-weight: 800;
}

.public-page .cell-title-link:hover {
  color: #d8313a;
}

.public-page .cell-channel-name {
  color: #7a8495;
  font-size: 11px;
}

.public-page .status-pill {
  min-width: 54px;
  justify-content: center;
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.public-page .status-playing {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.public-page .status-waiting {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.public-page .status-played {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.public-page .status-skipped {
  background: #f3e8ff;
  border: 1px solid #c084fc;
  color: #5b21b6;
}

.public-page .status-blocked {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.public-page .empty-state {
  margin: 8px 0 0;
  padding: 14px;
  border: 1px dashed #d8dde6;
  border-radius: 3px;
  background: #fbfcfe;
  color: #8792a4;
  font-size: 13px;
}

.public-page .pagination-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  flex-wrap: wrap;
}

.public-page .pagination-controls[hidden] {
  display: none;
}

.public-page .pagination-button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cfd5df;
  border-radius: 3px;
  background: #fff;
  color: #4b5565;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.public-page .pagination-button:hover,
.public-page .pagination-button.is-active {
  border-color: #d8313a;
  background: #d8313a;
  color: #fff;
}

@media (max-width: 900px) {
  .public-page .requests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .public-page {
    padding-top: 42px;
  }

  .public-page .requests-layout {
    width: min(100% - 12px, 1120px);
    margin-top: 8px;
  }

  .public-page .public-hero {
    align-items: flex-start;
  }

  .board-logo-title {
    font-size: 22px;
  }

  .public-page .public-submit-form {
    grid-template-columns: 1fr;
  }

  .public-page .public-submit-form .btn-primary {
    width: 100%;
  }

  .public-page .card {
    padding: 12px 10px;
  }

  .public-page th,
  .public-page td {
    padding: 7px 8px;
  }

  .public-page .cell-thumb,
  .public-page .cell-channel-name {
    display: none;
  }

  .public-page #requests-table th:nth-child(2),
  .public-page #requests-body td:nth-child(2),
  .public-page #requests-table th:nth-child(5),
  .public-page #requests-body td:nth-child(5) {
    display: none;
  }

  .public-page #requests-table th:nth-child(1) { width: 68px !important; }
  .public-page #requests-table th:nth-child(4) { width: 80px !important; }

  .public-page .requests-grid > section:first-child table th:nth-child(3),
  .public-page #waiting-requests-body td:nth-child(3) {
    display: none;
  }
}
