.dtes-video-app {
  margin: 40px auto;
  max-width: 1120px;
}

.dtes-video-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.dtes-device-status {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 10px 12px;
  color: #102b55;
  background: #fff;
  font-weight: 700;
}

.dtes-video-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
}

.dtes-video-list {
  display: grid;
  gap: 10px;
}

.dtes-video-item {
  text-align: left;
  padding: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.dtes-video-item strong,
.dtes-video-item span {
  display: block;
}

.dtes-video-item span {
  margin-top: 5px;
  color: #59677a;
}

.dtes-player-card {
  position: relative;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.dtes-player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071222;
  border-radius: 6px;
}

.dtes-watermark {
  position: absolute;
  top: 28px;
  right: 28px;
  max-width: min(80%, 520px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.dtes-watermark-top-left {
  top: 28px;
  right: auto;
  left: 28px;
}

.dtes-watermark-top-right {
  top: 28px;
  right: 28px;
  left: auto;
}

.dtes-watermark-center {
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dtes-watermark-bottom-left {
  top: auto;
  right: auto;
  bottom: 28px;
  left: 28px;
}

.dtes-watermark-bottom-right {
  top: auto;
  right: 28px;
  bottom: 28px;
  left: auto;
}

.dtes-empty,
.dtes-video-gate {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.dtes-preview-card {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcff;
}

.dtes-preview-frame {
  overflow: hidden;
  border-radius: 6px;
  background: #071222;
  aspect-ratio: 16 / 9;
}

.dtes-preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dtes-preview-card strong,
.dtes-preview-card span {
  display: block;
}

.dtes-preview-card span {
  margin-top: 6px;
  color: #59677a;
}

.dtes-dashboard {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto;
  color: #102b55;
}

.dtes-dashboard-hero {
  padding: 28px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.dtes-dashboard-hero h2 {
  margin: 6px 0 10px;
}

.dtes-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dtes-dashboard-grid,
.dtes-admin-forms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dtes-metric,
.dtes-admin-form,
.dtes-dashboard-section {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.dtes-metric {
  padding: 18px;
}

.dtes-metric span {
  display: block;
  color: #59677a;
  font-size: 13px;
}

.dtes-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.dtes-dashboard-section {
  margin-top: 18px;
  padding: 20px;
}

.dtes-dashboard-section h3,
.dtes-admin-form h3 {
  margin: 0 0 14px;
}

.dtes-list {
  display: grid;
  gap: 10px;
}

.dtes-list article {
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcff;
}

.dtes-list strong,
.dtes-list span {
  display: block;
}

.dtes-list span {
  margin-top: 4px;
  color: #59677a;
}

.dtes-admin-form {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.dtes-admin-form label,
.dtes-admin-form input,
.dtes-admin-form select {
  display: block;
  width: 100%;
}

.dtes-admin-form label {
  color: #40516a;
  font-weight: 700;
}

.dtes-admin-form input,
.dtes-admin-form select {
  min-height: 40px;
  margin-top: 5px;
  border: 1px solid #ccd8e6;
  border-radius: 6px;
  padding: 7px 9px;
}

.dtes-table-wrap {
  overflow-x: auto;
}

.dtes-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.dtes-table th,
.dtes-table td {
  padding: 10px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
}

.dtes-table th {
  color: #40516a;
  font-size: 13px;
}

@media (max-width: 800px) {
  .dtes-video-panel,
  .dtes-video-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dtes-dashboard-grid,
  .dtes-admin-forms {
    grid-template-columns: 1fr;
  }

  .dtes-preview-card {
    grid-template-columns: 1fr;
  }
}
