#agefy-youtube-forensics {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

#agefy-youtube-forensics * {
  box-sizing: border-box;
}

.ayf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.ayf-header h2,
.ayf-block h3 {
  margin: 0;
  color: #0f172a;
}

.ayf-header p {
  margin: 7px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.ayf-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ayf-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.ayf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ayf-field label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.ayf-field input,
.ayf-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}

.ayf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ayf-actions button {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.ayf-primary {
  background: #0f766e;
  color: #fff;
}

.ayf-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.ayf-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ayf-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.45;
}

.ayf-status.visible {
  display: block;
}

.ayf-status.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.ayf-status.success {
  background: #ecfdf5;
  color: #047857;
}

.ayf-status.error {
  background: #fef2f2;
  color: #b91c1c;
}

.ayf-results {
  display: none;
  margin-top: 24px;
}

.ayf-results.visible {
  display: block;
}

.ayf-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ayf-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.ayf-card span {
  color: #64748b;
  font-size: 12px;
}

.ayf-card strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 22px;
}

.ayf-block {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.ayf-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.ayf-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ayf-table th,
.ayf-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.ayf-table th {
  background: #f8fafc;
  color: #475569;
}

.ayf-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.ayf-list li {
  margin: 8px 0;
  color: #334155;
  line-height: 1.5;
}

.ayf-title-priority {
  padding: 12px 14px;
  margin-top: 9px;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #f0fdfa;
}

.ayf-title-priority strong {
  color: #0f172a;
}

.ayf-note {
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .ayf-grid,
  .ayf-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  #agefy-youtube-forensics {
    padding: 18px;
  }

  .ayf-header {
    flex-direction: column;
  }

  .ayf-grid,
  .ayf-cards {
    grid-template-columns: 1fr;
  }
}
